Derive the IDs of the resource and curve nodes the preprocessor inserts from the resource and the consuming input, so recompiles keep their proto nodes
* Add editor task module, drop NodeGraphUpdateSender
* Remove Node::reset and unused value nodes
* Remove unneeded async from vector nodes
* Remove unneeded async from graphic nodes
* Remove unneeded async from raster nodes
* Remove unneeded async from the remaining nodes
* Make most node fns private
* Make node construction sync
* Remove block_on around node construction
* Move GPU readback into ConvertAsync
* Make Convert sync
* Make wgpu pipelines and vello rendering sync
* Make convert, brush and render nodes sync
* Pass editor API as owned Arc
* Take scope inputs by value
* Move Spawn and Task into core-types
* Add Poll type and status tracking
* Add source generations to context
* Stop storing context features in the document
* Track source ids in context modification
* Add async runtime and memo table
* Pass runtime through scope, expose source ids
* Set up async runtime in editor, CLI and benches
* Give async nodes runtime and source id inputs
* Classify node return types in the macro
* Make Node eval sync and return Poll
* Make lazy input nodes, tests and benches sync
* Rerender when a spawned task finishes
* Rerender in CLI until all tasks are done
* Abort pending tasks when node is dropped
* Trace errors through Poll node inputs
* Let node errors carry upstream errors
* Resolve error traces to the origin node
* Show evaluation errors in the node graph
* Default unmapped item primaries to a value
* Add debug nodes
* Memoize fallback results too
* Show multiple node graph errors
* Report node errors in CLI
* Attach input fallback error as upstream
* Keep input fallback error when node fails
* Keep Poll status in render cache
* Keep last frame while graph is pending
* Treat partial export output as pending
* Move environment from global to dispatcher
* Add editor builder, drop global node runtime
* Add Wake message, rerun graph when tasks finish
* Add source generation tests
* Add test for node error origin
* Add render status overlay
* Replace error artwork with render status
* Poll node graph through portfolio message
* Minor review fixups
* Remove future type and macro
---------
Co-authored-by: Dennis Kobert <[email protected]>
* Clear two Clippy lints from the vector pool path structure code
* Find anchor tangents in one pass along the contours
* Share a list's attributes between its clones until one is written to
* Read each path's curve type, references, and IDs once when resolving its spans
* Gather attribute values in a buffer on their way to a trait-object hasher
* Append woven paths to their list as one piece
* Read an item's paths without copying them and leave them shared when only points move
* Weave any number of bezpaths in one pass, looking up the IDs to continue from once
* Hold a list's lone attribute in place, sparing each path a collection of its own
* Look up the paths' curve types once in the loops that walk every path
* Chain segments by their connections when weaving the working form
* Chain legacy segment soups into paths in the order they used to be drawn
* Record where a Path node's paths begin and chain older stored edits into paths on load
* Resolve turned segments through network ports and mark path starts after removals by what arrives
* Stitch contours from stored path order and direction in place of the walker
* Keep each path's boundary through the working form
* Bake the straightest route through junctions into legacy segment soups
* Keep Extrude's split pieces in their segment's place and order shared Close Path placements
* Build a list from its elements and write an attribute for every item at once
* Index connectivity roles once and build pools, paths, and IDs in bulk
* Apply point and handle moves in place without reweaving the paths
* Walk contours with curve types read once and tally junction spokes in a single pass
* Port the point nodes off the working form to weave the pool directly
* Move quadratic handles and free points correctly under a point delta
* Name a handle by its HandleId in the modification verbs
* Apply a modification in linear passes over the working form
* Swap Vector storage to the point pool and rebuild the vector-types crate on it
* Port graphic types, rendering, and the outer node crates to pool storage
* Migrate legacy document vector data onto pool storage
* Bridge the editor onto pool storage with the VectorGeometry bundle
* Port the editor tools to the vector geometry bundle
* Show the point pool and paths directly in the Data panel
* Port the vector nodes to pool storage and bring the workspace green
* Cover the stored modification format with the demo artwork that leans on it
* Add the Path and CurveType primitives for the pool-based Vector format
* Resolve path segments and emit contours against the Vector point pool
* Read a vector's paths and their curve types off its holder item
* Weave bezpath contours into pool points and stride-uniform paths
* Index which paths meet at each pool point for topology queries
* Assemble render contours by following welds across split paths
* Address segments as path spans while keeping stable point and segment IDs
* Give the 'flatten_add' test its own node ID counter so it can't flake
* Move resizing with the transform cage onto the snapping session in the Select, Shape, Text, and Artboard tools
* Move dragging artboards onto the snapping session
* Move drawing shapes, text boxes, and artboards onto the snapping session
* Remove the old snapping system now that every tool snaps through the snapping session
* Keep text box resizes that end on a snap target, and leave hidden layers out of the anchor snapping cutoff
* Expand nodes to reveal compatible hidden inputs while hovering them with a dragged wire
* Treat underscore-named parameters as internal state never exposed to the graph
* Show exposed optional-parameter toggles as their own Inspector rows
* Skip layers when expanding nodes hovered by a dragged wire
* Stop previewing hidden inputs on wire hover from creating empty undo steps
* Don't expand nodes upstream of a dragged wire's source, which would form a cycle
* End a wire drag when its graph is closed or its document is left mid-drag
* Abort the left document's wire drag and harden the internal parameter rule
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Rename the Properties panel to the Inspector throughout the code
* Update demo art
* Remove the migration test that depended on an unmigrated demo file
* Fix lint
* Add icons to nodes in the node graph, set by a node macro attribute
* Rename the 'Eval Curve' node to 'Evaluate Curve'
* Fix node graph layer buttons being covered by the next layer's chain area
* Move the node graph's visibility and lock buttons to the start of its control bar
* Dash the export wire while previewing, and keep its restore target on shake
* Rename the 'Split/Combine Channels' and 'Split/Combine Vec2' nodes to 'Image to Channels', 'Channels to Image', 'Vec2 to Numbers', and 'Numbers to Vec2'
* Fix a Clippy warning in the preprocessor's resource and animation curve input replacement
* Add tests for String Capitalization node and update convert_case dependency
* Add a sample_str variable to the test
* Keep 'String Capitalization' joiner output unchanged by dropping empty words after the convert_case 0.12 bump
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Rewrite the 'Image Color Palette' node using Wu's color quantizer in OkLab
* Weight alpha at 16-bit precision in the 'Image Color Palette' node so faint pixels count
* Improve time complexity of identity node removal
* Code review
* Ensure all passthrough nodes are removed
* Fix double test with invalid passthrough node
* Update glam
* More work to avoid panics
* Clean up with new FallibleVec2Operations extension trait
* Fix compile error
* Fix typo
* Fix Nix compiling rust-gpu (#4621)
* Add a warning icon to Math node expressions with errors as tooltips
* Point at a parse error with carets under a repeat of the expression, as a compiler does
* Render fenced code blocks in tooltips and put the parse error snippet in one
* Quote tokens as code in chumsky's parse messages and in custom parser errors
* Report the parse error past an operator rather than the operator itself
* Add matrices to the math expression parser as a second sort beside values
* Add Transform input and output to the Math f(x) node
* Add ranges and boxes to the math expression parser with inside, clamp, and remap over them
* Add Transform lists to the Math f(…) node with reducers composing, averaging, and counting them
* Lex a number's trailing e as Euler's number unless an exponent's digits follow it
* Fix matrix inversion scaling, exact matrix powers, infinite shears, matrix means, kept axes, and the Transform default
* Make shared box parts flat, give composed regions their inner map's axes, and fix lone logic items, spaced ranges, and the Math f(…) tooltip
* Transpose across spaces, name fractional matrix powers, check matrix builtin arities when parsing, read range literals by their corners, and let host functions shadow matrix builtins
* Make inside and clamp hold a region's uncovered parts at zero, so a box contains only the points between its corners
* Require hosts to declare the functions they provide, name the region functions' syntax node after its builtin, and remap onto ranges with equal infinite corners
* Apply a matrix to the whole product after it, so M 2 v is M (2 v)
* Pin prefix NOT's precedence above products, comparisons, and AND with tests
* Rename inside to within, since a range's ends count and the geometry predicates with a point first use that name
* Keep a range's corners as written, so clamp orders an integer past the reals' limit exactly
* Give within a tolerance of a billionth of the region's scale, so a point a float error off an edge or a flat side counts
* Write a unit part as its basis alone, so the identity displays as [1;i;j;k]
* Add tests for product folds, mixed chains, remap, and rejected inputs
* Evaluate matrix operands, builder arguments, regions, and comparison chains on the stack instead of the heap
* Build the expression parsers once per thread, since building the combinator tree cost as much as parsing a short expression
* Compare a chain reducer's items by their order directly, and reject an item with no order rather than reading it as false
* Send a host-built list of builder arguments or regions past the stack buffers to the heap instead of rejecting it
* Extend the math expression parser's value ladder past complex numbers to quaternions
* Add a vector function family (dot, cross, rotate, slerp, and more) to the math expression parser
* Let hosts read a math expression result as a 1D to 3D vector or weighted particle
* Let the 'Math f(x)' and 'Math f(…)' nodes take and output Vec2 values
* Remove unfulfillable dead_code expectations from methods reached only through replay