* Replace 'Copy to Points' and 'Assign Colors' with a family of 'Vary' nodes
* Resolve the type of Copy to Points content wired from a secondary output
* Let a synchronous node take its SourceId with #[source_id]
* Add the vectorize node, tracing with ollev in time slices that show partial scenes until the trace is done
* Take ollev from its git repository
* Take ollev at 7ca3452 and hold the vectorize node's trace in the node, showing its first look at once and a newer scene each second
* Take ollev at 803e9b6 and default the vectorize node to its quick stages
* Trace each vectorize slice for 10 ms on the runtime clock, show the newest scene in every evaluation, and drop the request for the next slice with its trace
* Switch ollev to crates.io release
* Clean up the vectorize node: collect lists and paths with iterators, simplify the test helpers, and trim comments
* Drop the trace of an emptied image and reject #[source_id] on data fields
* Improve panic safety and turn max pixel count into memory limit
* Hand ollev the raster without copying it, keep a failed trace's error, and name the no-limit case in the browser error
* Retire the rust-gpu twins of the adjustment nodes, leaving rust-gpu dormant
* Remove the dormant rust-gpu shader crate and everything that supported it
* Fix crashes and report errors in math nodes
* Fix crashes and report errors in text nodes and Boolean Operation
* Fix crashes and report errors in raster, brush and I/O nodes
* Fix crashes and report errors in vector and transform nodes
* Report errors from graphic and context nodes
* Split renders too dense for Vello GPU and make infinite coordinates finite
* Remove the Render Tile Resolution preference, sizing render regions by GPU limits
* Show errors on the deepest document node along their trace
* Show the error from inside a custom node on the node itself
* Add Placeholder, Fallback, Catch, Suppress Error and Throw Error nodes
* Remove most debug nodes
* Cleanup const checking in the compiler
* Reject constant data fields and update README node snippet
* Group all boolean node attributes into NodeFlags
* Switch rendering from Vello's classic compute renderer to Vello GPU
* Render the web build with WebGL2 rather than WebGPU
* Expand each shared geometry's strokes once and skip vector items outside the rendered area
* Create the WebGL2 viewport canvas in the canvas utilities instead of storing it on the wgpu context
* Restrict the raw wgpu surface accessor to wasm
---------
Co-authored-by: Dennis Kobert <[email protected]>
* Add convex hull node
* Finish the convex hull node: in-repo algorithm, robustness, and tests
Replaces the WIP node crate, which depended on a convex_hull crate that
only existed outside the repository, with a self-contained implementation:
- The curved hull algorithm lives in vector-types' algorithms module. It
splits curves at inflections and cusps into curvature-monotone arcs,
discovers the boundary structure from a sampled polygonal hull, refines
every transition to an exact tangency with closed-form quartic
tangent-through-point solves, then emits the boundary as cuts of the
original segments joined by straight bridge lines.
- The node moves into vector-nodes alongside the other 'Vector: Modifier'
nodes, ported to the List/attributes model. It accepts Graphic[] or
Vector[], wraps every subpath (open or closed) and free-floating anchor
point across all items, and outputs a single world-space hull path.
- The boolean-union pre-pass is dropped as unnecessary: the hull of all
segments equals the hull of their union, and the polyline connector it
relied on lost floating points and mishandled open paths.
* Make 'Convex Hull' a rolling-ball concave hull with a 'Curvature' parameter
* Keep shared welded anchors when closing, and fold -0 into 0 in position keys
---------
Co-authored-by: Dennis Kobert <[email protected]>
* Add overlays showing each path's start, direction, index, and flows
* Fix selection outlines closing the open paths of filled layers
* Fix ghost outlines drawing free points as regular blue anchors
* Add a Point Index overlay and color path overlays apart from points
* Fix click targets of filled meshes hitting areas their faces don't fill
* Keep taken IDs across Combine Paths concatenations so merging stays linear
* Use loose control-box bounds for transformed click targets and reset their shared rotation cache
* Compose group click targets from child layers instead of baking descendant copies
* Share outline and click target geometry, build combined target paths once, and find free points with a bitmap
* Share List element storage behind an Arc with copy-on-write
* Cache vector contours as an item attribute shared by rendering and click targets
* Cache mesh faces in the geometry cache alongside contours
* Share click target geometry through the geometry cache and place it by transform
* Address review feedback on click targets, bounds, naming, and the internal geometry cache attribute
* Fix 'Boolean Operation' Difference filling the overlap it should cut away
* Make 'Boolean Operation' Difference keep areas covered by an odd number of paths
* Rename 'Separate Subpaths' to 'Separate Paths' and 'Close Path' to 'Close Paths'
* Add a 'Reverse Paths' node that reverses the direction every path runs in
* Merge a path's end into its start when 'Close Paths' finds them coincident
* Rename Merge by Distance to Weld and add a Flow Ends method that joins only path flow ends
* Add an Unweld node that splits shared points apart, separating path flows or segments
* Skip welding all points when the transform collapses the geometry
* 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
* 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
* 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