* Add a document-loader crate for opening documents with migrations outside the editor
* Convert the demo artwork to gdd archives
* Report malformed legacy documents as an open error instead of panicking
* Keep the demo artwork list in graph-craft and open the demos at each caller
* Add graphene-cli host, join and watch
* Trim the live CLI to the migrating opener, the graph output it renders and fewer comments
* Log a failed session transport, exit the watcher cleanly, recover a lost surface and clear answered resource requests
* 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
* Split renders too dense for Vello GPU and make infinite coordinates finite
* Remove the Render Tile Resolution preference, sizing render regions by GPU limits
* 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]>
* Record in the document metadata the view each render was made with and a generation that changes whenever its layer data does
* Add a snapping session shared by the tools, which mirrors the document into the snapping library's scene
* Draw overlays in the order their providers were added, so the snapping overlay drawn last stays on top
* Move the Line and Arrow shapes' snapping onto the snapping session
* Stop auto-panning once a Shape tool drag has ended outside the viewport
* Wake snapping targets by resting the pointer on them, so they offer alignment, extensions, and tangents from afar
* Fix snapping session review findings in options, crossings, labels, and handoffs
* Add a snapping library crate with its curve, track, and view geometry
* Add a spatial index of the scene's snappable geometry to the snapping library
* Add the snapping library's solver, which ranks spots, tracks, and their crossings with hysteresis and lands on the grid
* Add the snapping library's candidate finders, awake-target constructions, and gesture entry points
* Stop held crossings from jumping elsewhere and harden snapping library edge cases
* Add the web editor driver, a Rust port of the editor driver run with `cargo run drive`, built on a new editor control protocol crate with Playwright kept only for browser input and screenshots
* Refuse oversized step counts and empty page sizes, stop Vite if its record can't be saved, center the crosshair on half-pixel pointers, skip Wasm Opt for drive, and re-save the demo artwork
* 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]>
* 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)
* Pin cargo-binstall and cargo-about and cross-reference all tool version pins
* Pin the cargo-binstall GitHub Action to its release tag
* Use a version floor for cargo-about and drop the Nix sync notices
* Rename the editor mouse state types to Pointer* and the input_ modules
* Add optional pen attributes to the editor pointer state types
* Desktop: Send tablet pointer clicks to CEF as mouse clicks
* Desktop: End pointer lock and pending window drags on any left-equivalent release
* Desktop: Route pointer input carrying pen attributes directly to the editor
* Desktop: Route wheel and pinch input inside the viewport directly to the editor
* Desktop: Track double clicks on the direct editor route
* Desktop: Move the pointer lock position into InputState
* Restore the input state pointer position when pointer lock ends (review)
* Fix pen input being swallowed by Windows resize helper
* Update winit to 0.31.0-beta.2 from crates.io
* Upgrade Vello to a git main revision that honors the brush's interpolation alpha space
* Interpolate Vello gradients with straight alpha, matching the SVG renderer
* Draw the gradient picker strip and fill swatches as SVG so transparency previews with straight alpha
* Keep gradient stop handles opaque so a transparent stop's RGB stays visible
* Paint a stopless gradient's picker strip and swatch black rather than transparent
* Build dropdown menu entries from choice type metadata
* Add a gradient interpolation color space attribute, blending stops in linear light by default
* Add a Space interpolation dropdown to the color picker popover
* Stamp legacy gradient ramps with their implicit gamma interpolation during deserialization
* Resolve color-interpolation from SVG style blocks and fix cascade order among repeated declarations