* Multiple node outputs
* Add new nodes
* gcore use std by default to allow for testing
* Allow multiple node outputs
* Multiple outputs to frontend
* Add ImageFrameNode to node registry
* Minor cleanup
* Basic transform implementation
* Add some logging to image encoding
* Fix ImageFrameNode
* Add transform input to Imaginate node (#1014)
* Add transform input to imaginate node
* Force the resolution to be edited with no transform
* Add transform to imaginate generation
* Fix compilation
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* Add labels to node outputs
* Fix seed; disable mask when transform is disconnected; add Imaginate tooltips
* Rename 'Input Multiple' node to 'Input'
* Code review
* Replicate to Svelte
* Show only the primary input chain in the Properties panel
---------
Co-authored-by: Dennis Kobert <dennis@kobert.dev>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* Generate stable node ids
* checkpoint
* Implement borrow tree
* Add eval function on borrow tree
* Refactor Node trait to fix lifetime issues
* Compiler infinite loop
* Impl compose pair
* Transition to double lifetime on trait
* Change node trait to use a generic arg for the input
* Start adapting node_macro
* Migrate more nodes to new macro
* Fix raster tests
* Port vector nodes
* Make Node trait object safe
* Fix FlatMapResultNode
* Translate most of gstd
* Fix DowncastBothNode
* Refactor node trait once again to allow for HRTB for type erased nodes
* Start working on type erased nodes
* Try getting DowncastBothNode to work
* Introduce Upcasting node + work on BorrowTree
* Make enough 'static to get the code to compile
* Transition DynamicExecutor to use borrow tree
* Make Compose Node use HRTB's
* Fix MapResultNode
* Disable blur test
* Add workaround for Composing type erased nodes
* Convert more nodes in the node_registry
* Convert more of the node_registry
* Add update tree fn and hook up to frontend
* Fix blur node
* Implement CacheNode
* Make frontend use graph compiler
* Fix document_node_types type declaration for most nodes
* Remove unused imports
* Move comment down
* Reuse nodes via borrow tree
* Deprecate trait based value in favor of TaggedValue
* Remove unsafe code in buffer creation
* Fix blur node
* Fix stable node id generation
* Fix types for Image adjustment document nodes
* Fix Imaginate Node
* Remove unused imports
* Remove log
* Fix off by one error
* Remove macro generated imaginate node entry
* Create parameterized add node
* Fix test case
* Remove link from layer_panel.rs
* Fix formatting
* Allow text editing when pressing Enter on a single selected text layer
* Updated LayerDataType import
* Extract the logic to set the edit layer into a function
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* add derive(specta::Type)
* use specta from git
* introduce Uuid type
* remove unnecessary specta::Type
* document export_types test
* upgrade Specta
The previous Specta branch had some hacks that were just for this project. They have all been converted into proper features so they can be merged into main.
* remove some unnecessary specta::Type uses
* add MessageDiscriminantDef explanation
* manually export types with specta
* rename 'specta.rs' to 'export_types.rs'
* rename 'export_types' to 'generate_ts_types'
---------
Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
* Added new DocumentResponse variant
* Update Operation::DeleteSelectedManipulatorPoints to update Layer Tree by delegating deletion to Operation::DeleteLayer. Also emits Operation::DeletedSelectedManipulatorPoints to let editor clear Properties panel
* Update process_message() to deal with new DocumentResponse::DeletedSelectedManipulatorPoints match case. When this DocumentResponse is emitted, it clears the Properties panel.
* Added Display trait implementation for DocumentResponse::DeletedSelectedManipulatorPoints. Updated imports in document_message_handler.rs to get the correct types for messages emitted from DocumentResponse::DeletedSelectedManipulatorPoints match case in process_message().
* Removed useless import. Capitalized comments for style consistency.
* Updated messages emitted to clear Properties panel by emitting LayoutMessage::SendLayout's instead, which update the backend widget state
* Revert inclusion of unused imports
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* Use builder pattern for widgets
* Arguments to new function
* Add node graph when dragging in image
* Fix duplicate import
* Skip processing under node graph frame if unused
* Reduce node graph rerenders
* DUPLICATE ALL frontend changes into other frontend
* DUPLICATE more changes to another frontend
* Code review
* Allow importing SVG files as bitmaps
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* Convert DocumentSave to struct
* Comit the artboard history save in some cases
* Cause index out of bounds error
* Use box to avoid weird wasm error
* Implement the artboard history
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* Add self hosted runner to ci.yml
* Remove libgtk install
* Use mold as the linker
* Make build logs non verbose
* Fix crash on failure to get GLOBAL_PLATFORM
* Copy the platform enum before calling unwrap_or_default
Co-authored-by: 0hypercube <0hypercube@gmail.com>
* Make `tauri build` just work
* Move folder: frontend/wasm -> wasm
* Create SvelteKit project with 'npx create-svelte'
* Move wasm-communication into seperate npm package
* Use wasm-pack directly and pack package.json
* Got it to work
* Add primitive build script for wasm npm module
* Fix wasm build script (python)
* Clean up glue code
* Rewrite wasm build script in node.js
* Add serde-reflection to trace types
* Add traced types
* Generate typescript (.d.ts) from Rust types
* Update .d.ts
* Finalize TS types
* Add script to update .d.ts
* Add watch command to build wasm-bindgen
* Make wasm work again
* Add sass; fix build script for windows
* Describe requirement for wasm-pack
* Add license
* Copy and reorganize vue components
* translate LayoutCol.vue
* Split app.scss into pieces
* Translate LayoutRow.svelte
* Rename scss files
* Fix compile issues on Windows
* WIP port TitleBar
* Support classes for LayoutCol/Row
* Restructure based on Vue codebase
* Port all components in window folder
* Port FloatingMenu
* Port Document panel component
* Update readme after folder move
* Update typegen: print discriminant by default
* Update typegen: Merge from branch 'tailwind' 4f14fedb
Fixes bigint & bytes
* Made Vue/webpack/eslint to accept wasm package at new location
This is quite a hack.
Those two packages are both named the same. Yes, it's an npm package inside another npm package.
- frontend/src/wasm-communication/
- frontend-svelte/glue/
'wasm/pkg/index.js' imports the correct one registered when linking.
* Port LayerTree
* Port NodeGraph
* Port Properties
* Port components in /floating-menus
* Finish porting all Vue -> Svelte components
* Change import prefix
* Revert type generation
* Revert moved wasm folder
* Revert all of @locriacyber's work on this branch
- Remove Vite and restore Webpack
- Remove SvelteKit
- Remove everything except the components I ported to Svelte
- Restore all frontend files from Vue code, now altered for Svelte
* Convert Vue's 'reactive' and 'provide' to Svelte's stores and contexts
* Fix event emitting and bi-di data flow
* Undo removal of 'update:' events
* Fix 'update:' event dispatching
* Fix usage in parent of bi-di component props
* Fix component typing, more progress towards no errors
* The page builds and opens!
* Add loading spinner and remove postcss dependency
* Make the basics of document editing work
* Fix rebase history
Co-authored-by: Locria Cyber <74560659+locriacyber@users.noreply.github.com>
* Converted bezier example to vanilla js component
* Indent with tabs
* Add sliders
* Converted bezier example pane to vanilla js
* Implement the radio buttons + fixes
* Converted SubpathExample to vanilla js
* Converted SubpathExamplePane to vanilla js
* Removed vue components
* Remove App.vue
* Remove vue and other dependencies
* Minor fix in main.ts
* Added insert to subpath features
* Entry point tweaks
* Rename "example" to "demo"
* Kebab-case file names (except classes)
Co-authored-by: Hannah Li <hannahli2010@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* Add manipulator
* Add manipulator group
* Add UI
* Address comments and rebase
* Renamed add_manipulator_group to insert
Co-authored-by: Rob Nadal <robnadal44@gmail.com>
* Fixes issue of hints not closing when all documents are closed
* Fix whitespace and rewrite comment
* Close tool hints when you close all documents by doing File->Close All