Changes:
Graph is evaluated on every viewport change
move all navigation logic into the viewport
reduce the number of js roundtrips
add canvas rendering
enable image pasting
various cleanups
Fix cache nodes being reset every evaluation
* Make transform node accept footprint as input and pass it along to its input
use f32 instead of f64 and add default to document node definition
* Add cull node
* Fix types for Transform and Cull Nodes
* Add render config struct
* Add Render Node skeleton
* Add Render Node to node_registry
* Make types macro use macro hygiene
* Place Render Node as output
* Start making DownresNode footprint aware
* Correctly calculate footprint in Transform Node
* Add cropping and resizing to downres node
* Fix Output node declaration
* Fix image transform
* Fix Vector Data rendering
* Add concept of ImageRenderMode
* Take base image size into account when calculating the final image size
* Supply viewport transform to the node graph
* Start adapting document graph to resolution agnosticism
* Make document node short circuting not shift the input index
* Apply clippy lints
* Fix pen tool (except overlays)
* Thumbnail of only the layer and not the composite
* Fix occasional transform breakages
* Constrain size of thumbnail
* Insert new layers at the top
* Broken layer tree
* Fix crash when drawing
* Reduce calls to send graph
* Reduce calls to updating properties
* Store cached transforms upon the document
* Fix missing node UI updates
* Fix fill tool and clean up imports and indentation
* Error on overide existing layer
* Fix pen tool (partially)
* Fix some lints
* Changing return of topological_sort to Result and propagating error
* Simplifying "compile()" method, adding "expect()" to tests.
* Removing Result type from "map_gpu()"
* Reverting to assertion and removing unnecessary returns
* Initialize wgpu executor from graphene cli
* Make `graphene-core` `no-std` complient again
* Implemnt image similarity calculation
* Add nan checks
* Make image comparison optional
* Feature gate quantization to reduce the number of warnings
* Adding blank PortfolioMessage to close docs
* Connected new PortfolioMessage to Menu Bar
* Adding functionality to new PortfolioMessage
* Amending outdated tests in color.rs
* Added Pan,Tilt,Zoom to View menu + Tilt shortcut changes
* formating
* fixed menus, added action for when dispatch happens from menu
* set key mappings to spec
* fix labels for navigation tool
* fix some spacing
* add action that locks spacebar for navigation when using it as a modifier so the node overlay does not toggle
* escape from the node-graph-overlay, set toggle to ctrl+space, fix demo art
* move all transform state into an enum
* rename confusing flag
* fix demo art and tests
---------
Co-authored-by: Ezbaze <rybitwamateusz3@gmail.com>
* Added select all points method to ShapeState struct
* Map select_all_points functions to shortcut
* Make SelectAllPoints action relevant in the current context only
* Refactor select_all_points to only select anchors
* Fix(editor): enable selected point update after selection change via clicking
* fix: avoid deleting inner network's input nodes
* [wip]feat: set primary input on node deletion
- set input's input value to deleted node's primary input
* fix: check deleting node's output is used by other node(s)
* feat: enable conditionally reconnecting input
- user can press a key to avoid reconnecting nodes during deletion
* refactor: improve and restructure code
- make code quality improvements
- add NodeGraphHandlerData struct to replace big tuple
* fix: avoid deleting inner network's input nodes
* [wip]feat: set primary input on node deletion
- set input's input value to deleted node's primary input
* fix: check deleting node's output is used by other node(s)
* feat: enable conditionally reconnecting input
- user can press a key to avoid reconnecting nodes during deletion
* refactor: improve and restructure code
- make code quality improvements
- add NodeGraphHandlerData struct to replace big tuple
* Remove unnecessary recursion
* Code review cleanup
---------
Co-authored-by: 0hypercube <0hypercube@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* Create node (no implementation)
* Resampling - WIP
* use bezier::from_linear_dvec2
* Use from anchors instead of Bezier
* Tidy up anchor collection & subpath creation
* Add Spline from Points node (not implemented)
* Add spline from points node implementation
* Update resampling
* Update minimum density 0.01 -> 1.0
* Add a way to create a custom vector network
* Add spline from points node to spline tool
* Fix crash when no points
* Add anchor method to subpath
* Exact start and end point
* Fix compile errors from rebase
* Fix spline tool
* Rename 'Density' to 'Spacing'
* Fix transforms
* Only close subpaths with >1 anchor
* Fix compile
* Fix compile error
* Fix from points with many subpaths
* Fix new_cubic_spline crash with one point
* Rename to resample as polyline
* Fix div zero
* Fix missing file
* Fix resample
* Rename to resample points
---------
Co-authored-by: hypercube <0hypercube@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
* Add Boolean Operations Nodes
Adds OR AND XOR and NOT operators
* Fix operand naming
Inputs to the 'Min' 'Max' 'Equality' and boolean operations nodes were
previously named 'First' and 'Second' and are now called 'Operand A' and
'Operand B'
* Rename Equality to Equals
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>