* Compile the definitions table directly instead of inlining it before preprocessing
* Resolve scope inputs against each instance's enclosing scopes, specializing entries whose contexts differ in type
* 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
* Collapse network locations to a table entry and drop inline networks from document state
* Lift legacy inline networks before the migrations and reject missing entries in locate
* Share catalog networks under fixed IDs and fork them before a write
* Fork catalog entries before signature edits collect instances and keep view state shared
* Share copied networks and carry them through the clipboard
* Add Make Unique to give a node its own copy of a shared network
* Commit Make Unique and refuse pasted subgraphs that name each other in a cycle
* Record the network location of each delta at write time
* Lift inserted networks into the definitions table and stage table entries incrementally
* Stage the resources held by table entry exports
* Track resources written into exports earlier in the batch
* Store the definitions table one to one and lift nested networks into it
* Address review feedback on the definitions table storage
* Fix the CLI build and log expected staging fallbacks at debug level
* Shorten and simplify comments
* Reject definition cycles when converting to storage
* Walk definition instances in metadata traversals
* Store interface metadata on the implementing network
* Store network interface metadata on storage networks
* Apply interface edits inside a shared network to every instance
* Address review feedback on interface metadata
* 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
* Defer re-evaluations triggered by finished tasks to the next frame once the frame budget is spent, and abort the tasks of removed sources
* Clean up the frame budget change: share the Instant clock, drop redundant scheduling calls and comments
* Treat a zero frame budget as unlimited, let render signals cut the deferred-frame wait short, and fix the RFC's Runtime::spawn signature
* 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
* Frame CLI exports to the artwork bounds
* Include strokes in the bounds CLI exports frame to
* Count every item of a layer in the bounds CLI exports frame to
* Count every item of a layer in the bounds the editor exports
* Visit each definition once in recursive walks and validation
* Rename DefinitionId to NetworkId to mirror the storage model
* Review fixes
* Make test more precise
* Fix the Data panel showing another node's output for some layers
* Give every layer a thumbnail and remove the 'Merge' and 'Artboard' Monitor nodes
* Resolve inspected paths through the last graph that compiled
* Add a definitions table to NodeNetwork with path resolution and inlining before preprocessing
* Resolve network metadata, views, and network node checks through the definitions table
* Prevent infinite recursion
* Exchange retired history between peers: send what a peer lacks, follow a retirer's line, and fast-forward or merge
* Share the retired-op apply between follow and merge, and tidy the session tests
* Reject following to a head missing from history
* Add Graphviz output to graphene-cli
* Review
* Use compiler node IDs
* Simplify proto dump and hash EditorApi and RuntimeHandle by content
---------
Co-authored-by: Dennis Kobert <[email protected]>
* 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
* Draw Inspector header and layer button outlines as borders
* Draw single Inspector wires as one line
* Draw each Inspector section's outline as one border
* Inspect nodes without recompiling the graph (#4803)
* Edit the inspected node's context in the Data panel (#4804)
* Render thumbnails with Vello (#4805)
* Require attribute names to be compile time constants (#4822)
* Desktop: Recover from UI crashes and apply preferences without restarting (#4827)
* Desktop: Recover from UI crashes and apply preferences without restarting
* Show open dialog again after a UI restart
* Improve node graph navigation performance (#4824)
* Re-render only the node graph wires whose paths changed
* Keep nodes already in view rendered when the node graph's visible nodes change
* Cleanup const checking in the compiler (#4825)
* Cleanup const checking in the compiler
* Reject constant data fields and update README node snippet
* Group all boolean node attributes into NodeFlags
* Fix numerous bugs with the Path and Pen tools (#4830)
* Fix the Path tool ignoring the first click on a segment after any drag
* Make Enter and Esc during a Pen drag finish or cancel only that segment
* Stop Ctrl+Delete and Shift+Delete acting on a lone selected handle's anchor
* Keep the opposite handle's length when nudging a handle with the Path tool
* Fix Undo doing nothing after a plain click on a point with the Path tool
* Make the Path tool snap and lock a handle's angle on any of several selected paths
* Fix a Path tool drag just beside a segment moving the selected points
* Extend a path inside a selected group with the Pen, keeping it there
* Make Enter and Esc both take back the Pen tool's lone first anchor
* Fix the Pen tool drawing into another selected path after starting on a segment
* Make Space move the Pen tool's anchor as soon as it's pressed mid-drag
* Fix Shift-clicking a selected segment leaving its anchors selected
* Fix smoothing an anchor on top of its neighbor aiming its handle the wrong way
* Hide the Path tool's Swap Dragged Handle hint for a handle without a partner
* Fix Tab during a Path or Pen handle drag also switching to the Select tool
* Stop the Path tool editing the points of locked layers
* Scale the handles of exactly two selected anchors along with them
* Pull out a symmetric pair of handles when Alt-dragging a sharp anchor
* Make a Path tool lasso that closes on its start select what it encloses
* Delete the selected layers with the Path tool when no points are selected
* Stack: Path and Pen tools (bugfix-stack-path-and-pen)
* Keep the Fill and Gradient tools from editing locked layers
* Make the Eyedropper tool sample the canvas color around artboards in Normal mode
* Center the Eyedropper tool's sample on the pointer on HiDPI displays
* Finish an Eyedropper sample on any release, and skip it outside the viewport
* Fix the Eyedropper tool picking no color in SVG Preview mode on the web
* Stop the Fill tool previewing a fill over images it can't fill
* Stop the Fill tool's color picker offering None, which it can't fill with
* Fix the Gradient tool's hover missing evenly spaced stops on cyclic gradients
* Deselect the Gradient tool's stop on Esc and on presses that land on nothing
* Start new gradients from the Gradient tool's customized stops
* Keep the Pen, Spline, and Freehand tools' Fill and Stroke ticks when nothing is selected
* Fill new shapes with the gradient shown in the drawing tools' Fill swatch
* Fix new shapes losing their stroke or keeping a deselected layer's dashes
* Make the Fill and Gradient tools paint a Boolean Operation's result
* Keep stroke weights when resizing Pen, Freehand, and Spline layers
* Correct the Gradient tool's comment on its empty-canvas fallback
* Stack: Fill, Gradient, tool colors, and Eyedropper (bugfix-stack-paint-and-color)
---------
Co-authored-by: Dennis Kobert <[email protected]>
Co-authored-by: Timon <[email protected]>
* Fix the Path tool ignoring the first click on a segment after any drag
* Make Enter and Esc during a Pen drag finish or cancel only that segment
* Stop Ctrl+Delete and Shift+Delete acting on a lone selected handle's anchor
* Keep the opposite handle's length when nudging a handle with the Path tool
* Fix Undo doing nothing after a plain click on a point with the Path tool
* Make the Path tool snap and lock a handle's angle on any of several selected paths
* Fix a Path tool drag just beside a segment moving the selected points
* Extend a path inside a selected group with the Pen, keeping it there
* Make Enter and Esc both take back the Pen tool's lone first anchor
* Fix the Pen tool drawing into another selected path after starting on a segment
* Make Space move the Pen tool's anchor as soon as it's pressed mid-drag
* Fix Shift-clicking a selected segment leaving its anchors selected
* Fix smoothing an anchor on top of its neighbor aiming its handle the wrong way
* Hide the Path tool's Swap Dragged Handle hint for a handle without a partner
* Fix Tab during a Path or Pen handle drag also switching to the Select tool
* Stop the Path tool editing the points of locked layers
* Scale the handles of exactly two selected anchors along with them
* Pull out a symmetric pair of handles when Alt-dragging a sharp anchor
* Make a Path tool lasso that closes on its start select what it encloses
* Delete the selected layers with the Path tool when no points are selected
* Stack: Path and Pen tools (bugfix-stack-path-and-pen)
* 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]>
* Patch widget layouts in place through reactive proxies so a diff only re-renders the widgets it changes
* Parse theme colors once and reuse one canvas for CSS color parsing
* Apply layout, ruler, scrollbar and cursor updates without waiting a tick so they share the frame's flush
* Skip layer structure updates that match the current structure instead of rebuilding the Layers panel
* Bound the document from its outermost layers and skip targets that cannot extend the bounds
* Cache the document bounds until the layers change
* Skip non-finite bounds left by clipping to an artboard
* 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
* Match wire types only through conversions the compiler places at each input
* Match wire types through the rank promotions type resolution inserts, too
* Look through Monitor-like nodes to find what a subgraph's input accepts
* Follow subgraph exports out to what their output feeds when matching wire types
* Add hover and press feedback to node graph connectors
* Enlarge node graph connector click targets and match their hover areas
* Open the node menu when a wire from the add-import connector is dropped
* Show the click target overlay only in debug builds and fix small nits
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
* Fix the Shape tool grabbing an invisible leftover transform cage instead of drawing
* Keep a leftover Shape tool cage from catching a press before overlays redraw
* Fix canceling a Select tool pivot drag leaving the pivot where it was dragged
* Make keyboard transforms use the pivot Esc restored after the view pans
* Fix a Gradient tool click that barely moves replacing the fill with a broken gradient
* Take back a new gradient whose drag is released where it was pressed
* Snap the shape gizmos' angles, radii, and turns through the snapping session as one-value gestures
* Fix gizmo snapping on stretched shapes and keep trimmed arcs and spirals in place
* Land arrow-key nudges on the next grid line when grid snapping is on
* Give the grid its own visibility switch, subdivisions, an angle, and an origin that can follow the active artboard
* Regroup the snapping options into two columns of points, curves, alignment, spacing, grid, and angles, with an angle step every tool shares
* Lay out the Overlays popover in two columns, with the Select tool's choices beside the general and Pen and Path tools' ones
* Transfer hover between floating menus when the pointer is over a spawner's icon
* Keep artboard nudges level without grid snapping, and show the grid in documents that snapped to it
* Hold snapping off until the pointer has moved past the drag threshold from where a gesture began
* Mark every feature a snap holds and where a press would land, dash the outline of a box snapped to, and draw circle tracks
* List the quiet and cycle snapping keys in the hints bar wherever a tool snaps
* Test the quiet and cycle keys through the input mapper and the lifetime of woken snapping targets
* Show the snapping keys in the Path tool's hints whenever dragged points snap
* Move turning and skewing the transform cage and dragging the pivot onto the snapping session
* Move the keyboard grab, rotate, and scale transforms onto the snapping session
* Apply a typed keyboard transform once per keystroke rather than again after snapping
* 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
* Add stretching, turning, and skewing motions to the snapping library, with finders for even spacing and equal sizes
* Rank snaps by how far the pointer must travel to them, preferring the pointer's own feature among equals
* Center overlay text on its anchor for a vertical Middle pivot, as the native overlays already do
* Let the snapping session move and stretch boxes: a grip to hold them by, even spacing, equal sizes, and the boxes beside them awake unasked
* Move the Select tool's layer dragging onto the snapping session
* Draw evened-out gaps beside the box where it lands after another snap carries it across
* Move the Pen tool's snapping onto the snapping session
* Move the Path tool's snapping onto the snapping session
* Move the Spline tool's snapping onto the snapping session
* Move the Gradient tool's snapping onto the snapping session
* Start a Pen path, a spline, or a gradient where its press was shown snapping to
* 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
* Fix quick measurement's target, layers within the selected artboard, boxes within the selection, and labels on a rotated canvas, and consolidate its cases
* Measure overlapping boxes that share an edge in quick measurement
* Navigate menus with the arrow keys alongside the pointer, across submenus and the menu bar
* Keep a submenu open while the pointer crosses other menu entries on its way into it
* Make Tab move only between text fields and stop drawing focus outlines on other elements
* Code review fix: stop Tab from moving the focus before the key handler waits
* Keep stored output descriptions in sync as exports are added and removed
* Drag wires backward out of empty inputs and exports to connect them
* Close the node menu when changing networks and skip unchanged description writes
* Forget a clicked input's pending disconnect when its wire ends, and refresh the hints
* Show names, wired types, and possible types in connector tooltips
* Show descriptions on outputs and exports, stored for subgraph nodes
* Describe built-in subgraph nodes and fill descriptions into older documents
* Reorder imports and exports by dragging their names, including the primary
* Manage imports and exports from a context menu and a description popover
* Rename imports and exports in place and show tooltips on their names
* Drag imports and exports into or out of a primary slot set apart by a gap
* Add imports and exports with dimmed connectors in place of the + buttons
* Center the Inspector's empty-state message in the panel on two lines
* List the type of a value given to a subgraph's export in its output's tooltip
* Test filling output descriptions on a node set up for it, not the demo's saved state
* Close the description popover from its text area's own Ctrl+Enter, not the window's
* 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
* WIP: Part 1
* WIP: Part 2
* Make dropdowns keep the width of their widest entry again, restoring the menu measurement that an inverted guard had disabled
* Keep squished widgets usable with equal-width radio buttons that truncate only when short of room, icons that stay whole, ellipsized button labels, and fields that hide their label and hold their width while editing
* Squish the Layers panel's blend mode, Opacity, and Fill widgets at narrow widths, with the blend mode giving up its spare width first
* Let the Properties panel's parameter names give up their column to keep widgets usable at narrow widths, fading where cut off and showing the full name in their tooltip
* Give widgets one flexbox-style sizing setting in place of their min width, max width, and auto width, overriding only the parts it sets over the defaults of each layout
* Keep fields in control bars and popovers at least 80 pixels wide so they don't shift their neighbors or resize the popover as their values change
* Stop the Layers panel's blend mode dropdown from growing past its widest entry, and its Opacity and Fill fields past 100 pixels, in a wide panel
* Size the pivot gizmo type dropdown to its chosen entry via a new dropdown option
* Keep Data panel cells on one line, scrolling sideways when columns don't fit
* Code review fixes: file drag outline, text area labels, and menu width measurement
* Show the Artboard's Content input and indent all rows beside the chain wire
* Nest the chain feeding any node input within its Properties panel section
* Reference layers that feed chains, and tidy the Properties and Data panels
* Code review fixes: chain toggle marker order and node icon dimming
* Show renamed nodes as their type followed by their name in parentheses
* Expand a layer's chain into rows of nodes in the Layers panel
* Code review fixes: drag and outline node rows, name renamed custom nodes
* Toggle node graph with double-tap Space
* Require clean presses for double tap
A first tap that arrived with a modifier or mouse button held still armed the
detector, so pressing Shift and Space for live preview and then tapping Space
promptly toggled the node graph. A press that cannot take part in a double tap
no longer seeds one and breaks a tap already waiting, and a test pins that case.
* Apply double-tap review feedback
* Tighten double-tap test and comments
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Copy, cut, and paste nodes within and between layers' chains
* Make Ctrl+D duplicate into the flow everywhere, including the node graph
* Remove the Ctrl+J shortcut for duplicating layers
* Double-click a Layers panel node icon to open the node graph centered on it
* Paste nodes into their flow over the copied selection, or loose in the graph
* Make copying behave the same in and out of the graph, and select only pasted layers
* Enable menu bar entries exactly when their actions apply
* Skip hidden layers in Align, Flip, and Turn like other canvas transforms
* Select every node with Select All in the graph, regardless of overlays
* Add a locked white background when converting to an infinite canvas
* Rearrange the Layers panel's visibility and lock controls
* Show layer chains as selectable, draggable node icons in the Layers panel
* Hold off an icon button's hover icon after a click until the pointer leaves
* 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
* Add expect assertions, console error checks, and scenario folders to the web editor driver
* Fail a scenario folder run on unreadable entries instead of skipping them
* 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
* Lint the website with the frontend's ESLint config instead of a diverging copy, selecting elements by data attributes
* Give the crate graph's marker attribute a value, cache npm in the website workflow, and mention installing the website's packages
* 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
* Fix the Pen tool misplacing anchors and losing a handle when joining another layer's path
* Keep the latest pointer move made while a join waits for the merged path, so a quick drag still shapes the handle
* 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
* Fix#4601: Limit unsaved document list in Close All dialog to prevent overflow
* Truncate individual long document names in Close All dialog
* Address review comments: move dialog constants to consts.rs and use write! macro
* Use Cow and iterator chaining in Close All dialog layout
* 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
* Fix the math expression parser giving a valid direction between multiple infinite vector parts
* Replace the math expression parser's if() with piecewise cases like {a if x > 0, b otherwise}
* Fix the math expression parser's error spans starting before whitespace and infinities displaying as inf
* 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
* Route every network interface write through a single-writer store
* Keep the existing previewing behaviour and fix the review findings that remain
* Record what each store write changed and stage it into the working copy
* Fix the delta path's resource staging, batch liveness, and stale comparisons
* Keep batch resource liveness and load-time repairs consistent with what reaches storage
* Correct the delta documentation and stop persisting pinned nodes the network lost
* Swap a node's implementation in place instead of rebuilding the node
* Resolve network attributes through the same source as the IDs they name
* Resolve an implementation swap by timestamp and let an edit report whether it changed the value
* Add TODO notes that the raster filters' lengths should scale through the footprint instead of counting whole source pixels
* Standardize the node catalog's integer parameters on i64, replacing u32 and u64 with hard-bounded i64
* Retire the 'As u32' and 'As u64' nodes into 'As Integer' and upgrade stored unsigned values to I64
* Add an I64 tagged value as the node graph's integer storage type, with a whole-number widget for it
* Round half away from zero on every Number to Integer conversion instead of truncating
Add magnitude bars to the math expression parser, with abs() acting on each part
Magnitude bars `|x|` give the magnitude on every rung, with `|`
opening where an operand is expected and closing where an operator is,
and `||` reading as Or unless two magnitudes are open, while `abs()`
stays the absolute value of each part. The `real()`, `imag()`, and
`arg()` functions are removed in favor of the matrix literals and
`angle()` the specification defines for those readings.
Make math expression results climb into the complex plane instead of ever producing NaN
Every value is a quaternion in principle, so narrower storage is never
observable: a result whose imaginary part is zero is the real number,
`-0` is `0`, and a real input whose answer leaves the real line climbs
into the complex plane (`sqrt(-4)` is `2i`, `ln(-1)` is `iπ`, `asin(2)`
its complex value) instead of producing NaN. No operation returns NaN
at all: an indeterminate form like `0/0` or `∞ - ∞` is an evaluation
error, as is a NaN arriving through a host binding at its point of use.
Shadow the constants behind case-sensitive bindings, with the `\` prefix reaching the builtin
Constants resolve at evaluation time, after the environment, so a
binding of any spelling, word or typeset symbol, shadows the builtin of
exactly that spelling, and a host-supplied function likewise shadows a
builtin function. The `\` prefix, in LaTeX's habit, names the language's
own constant or function regardless of bindings (`\pi`, `\e`, `\sin`),
and is an error when no builtin has that name.
Lex the math expression parser's identifiers as Unicode identifiers
Names follow the `XID_Start XID_Continue*` rule of UAX #31, the same
one Rust spells, so letters from every script name a variable and
combining marks extend a name: a decomposed `é` is one name rather
than the constant `e` beside a stray mark. Digits of any script, lone
marks, invisible formatting characters like the right-to-left
override, and symbols including emoji can no longer begin a name,
which also leaves `#`, `$`, `~`, and `@` free to become namespace
prefixes once a host scope needs them. Rust's special case admitting a
leading underscore is deliberately not adopted.
Reads the character classes from unicode-ident, the table crate the
proc-macro stack already builds with, rather than hand-rolling the
ranges.
* Standardize on the 'nonzero' spelling in comments
* Fill small gaps in the math expression parser
Adds the unary plus operator, the `true` and `false` constants, the
`choose` and `pick` combinatorics functions, base-suffixed `logN`/
`rootN` function names with optional underscores and fractional bases
like `log3.25`, the typeset operator spellings (`−`, `×`, `⋅`, `÷`,
`∧`, `∨`, `¬`), and `Value` accessors reading results as `f32` and the
standard integer types. Constants match their lowercase spelling
exactly, since uppercase-initial names are reserved for matrices. The
`¬` spelling is the prefix logical not alone, never the postfix
factorial that `!` also spells, and punctuation never begins a name,
which leaves `#`, `$`, `~`, and `@` free to become namespace prefixes
once a host scope needs them.
Retires the `√` prefix operator, which is untypeable and duplicates
`sqrt()`, and removes the undocumented unitless `G` constant: its
9.80665 is the value of lowercase-g standard gravity under capital-G's
name, and gravity's proper home is the future unit system's `g`
acceleration unit.
Also covers the previously untested interaction between implicit
multiplication and unary minus with parenthesized operands (`2 (-3)`,
`-3(2)`) in the test suite.
* Fix the 'Mix' and 'Color Overlay' nodes to use spec-compliant math for the Hue/Saturation/Color/Luminosity blend modes
* Fix potential NaN
* Clip light brighter than white before the luminosity construction, and assert the clipped result
* Split apart PortfolioMessage into several sub-messages
* Refresh the source group's active tab after a panel split, keep recovered document file names unique, and make the failed documents state private
* Make the dropdown widget's file drop a callback and keep stray file drops from navigating the browser away
* Look up the dropped file's widget before reading the file
* New node: 'Color Lookup' for applying .cube, .3dl, .look, .csp, and .icc LUT files
* Add LUT ingest to the UI
* Add caching to the parsed LUT
* More code review fixes
* Add a dropdown for resource selection and adopt it in the Image node
* Route every image upload through a new ResourceUpload handler with desktop support and migrate wired 'Image' node inputs
* Show each resource's user count in the resource picker dropdown
* Send a picked resource file to the document that requested it, list every non-font resource in the picker, and link sibling message docs
* Add a 'Use Tint' toggle to the 'Black & White' node and give its tint the Luminosity blend's clipping
* Fix the Black & White migration for a wired tint and gray out the tint when unused
* Add colorize and six hue ranges to the 'Hue/Saturation' node
* Hide the 'Hue/Saturation' range rows while colorize is on, note the +100 saturation rule, and tidy two lints and a tooltip
* Add per-channel records and a gamma midtones value to the 'Levels' node, with a channel selector in its Properties panel
* Migrate the old 'Levels' midtones through its output range and bound a lone midtone marker by the track edges
* Add a selection mode to the spectrum widget so only the gradient editor keeps a highlighted stop
* Record the drag mode for every drag and require selection for reordering so a non-selecting widget cannot drag the wrong stop
* Add a range slider mode to the spectrum widget and slider rows to node properties
* Reset the weighted strength slider to the node's default of zero and skip markers off the track when picking up the nearest one
* Remove the 'Threshold' node's luminance calculation dropdown so it always compares the Rec. 601 luma
* Find the HSL lightness extremes before encoding and drop a stale luminance TODO
* Switch Color struct back to storing unassociated alpha
* Address review feedback
* Update the Invert node and legacy image migration for straight alpha and add round-trip tests
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Let the Freehand tool continue a selected open path from its endpoint and show endpoint overlays in the Freehand and Spline tools
* Share the closest-point search with the open path endpoint lookup, tally endpoint connections in a single pass, and rename the endpoint overlay function
* Skip hidden layers and use the feeds-aware transform in path point searches, path overlays, and Freehand point placement
* Map the Spline tool's merge goal with the feeds-aware transform so it matches the endpoint candidates
* Highlight the hovered open path endpoint in the Freehand and Spline tools
* Give each Pen tool segment its own history step and keep drawing across undo/redo
* Test that undo during a Pen tool handle transform cancels it and rewinds
* Desktop: Make input routing aware of floating menus
* Desktop: Route mouse input like pen input
* Desktop: Model pointer input routing as a state machine
* 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
Some minor fixes to issues I ran into using devcontainer on this project
with vscode.
- Add `esbenp.prettier-vscode` to the recommended extensions list as
it's already used in `.vscode/settings.json`
- Install `wasm32-unknown-unknown` Rust target in devcontainer
- Add cargo-binstall and pin cargo-about version in devcontainer
- Remove `no-clearly-defined = true` from `about.toml`:
- cargo-about 0.9.1 fails to run if `no-clearly-defined` is present
- cargo-about 0.8.0 already [removed
support](https://github.com/EmbarkStudios/cargo-about/blob/main/CHANGELOG.md#080---2025-09-05)
for clearlydefined.io, so the argument is a no-op
* Revert "Fix corrupted font resource loading in older documents"
This reverts commit 404d9f3047.
* Fix migrations for the Read Vector, Dot Product, Query JSON, and Sample Polyline nodes
* Fix text node migrations
* Provide resource storage to the resource message handler
* Refetch resources whose stored bytes are missing
* Add test for refetching resources with missing bytes
* Draw raster images with pad extension instead of repeat
* Add the GPU basic brush renderer
* Rework the brush tool around the GPU basic brush
* Remove the CPU brush implementation
* Destroy GPU textures when the last reference drops
* Request pooled textures synchronously
* Pool cached textures by format
* Add the owned GPU buffer type
* Route the remaining GPU allocations through the executor
* Add weak texture parking to the texture cache
* Raise the texture cache budget to 1GB for native and 512MB for wasm
* 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
* Add event time to the editor pointer states
The brush trace's hot core is position plus per-sample time, and the
frame clock is too coarse for high-rate tablets: several samples share
one timestamp and speed dynamics see dt = 0. The desktop stamps
editor-routed pointer input with a monotonic arrival time since winit
does not surface hardware timestamps; the web path can thread the
PointerEvent timeStamp through later.
* Capture pen input via browser api
* Replay coalesced pointer samples for smoother pen strokes
* Handle missing or empty coalesced pen events
Add event time to the editor pointer states
The brush trace's hot core is position plus per-sample time, and the
frame clock is too coarse for high-rate tablets: several samples share
one timestamp and speed dynamics see dt = 0. The desktop stamps
editor-routed pointer input with a monotonic arrival time since winit
does not surface hardware timestamps; the web path can thread the
PointerEvent timeStamp through later.
* 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
* Make Data panel scalars selectable inline, denoise float display, and move breadcrumb truncation to Rust
* Code review fixes
* Remove denoising from f32
* Decide branching mesh fill insideness by winding, normalizing drawn direction at the Path node
* Fix dead connector click targets by explicitly closing the kurbo ellipse port paths
* Fix hole subtraction when a hole vertex is snapped exactly onto its covering contour
* Classify embedded negative space by its single surrounding face so fully enclosed mesh cells still fill
* Collapse duplicated BezPath emission, constants, and Polynomial surface across the vector algorithms
* Fix the quadratic segment length lower bound using a control leg instead of the chord
* Port all remaining Subpath producers to BezPath and delete the legacy subpath module
* Reset contour state at each MoveTo so an open contour's segments don't leak into the next region
* Give the polygon and star constructors a true center and radius instead of compensated arguments
* Render a paint from its Graphic directly instead of a single-element List wrapper
* Fix a stale doc comment reference to the moved paint render implementation
* Let the Fill and Stroke paint inputs take Item<Graphic>, replacing the IntoPaint trait
* Rename the FIll node's "fill" input to "paint"
* Let the graphic-consuming nodes take List<Graphic> directly, relying on the embedding adapters
* Remove outdated todo comments
* Re-save the demo art
* Split 'To Graphic' and 'Wrap Graphic' into the 'As Graphic' type assertion and 'Into Group' reducer nodes
* Make 'Into Group' reduce List<DVec2> not Item<DVec2>
* Reset the Merge definition for every legacy alias of its coercion nodes
* Improve test
* Add the rank-0 Item leaf variants to the Graphic enum, rendering leaves and list rows through shared per-row logic
* Traverse the rank-0 Graphic leaf variants in the vector node helpers and flattening
* Reach rank-0 vector graphics from the styling and gradient-fitting helpers
* Two code review fixes
* Fix comment
* Make the Artboard and Gradient newtype fields public to match the other list newtypes
* Rename the Graphic enum's self-named Graphic::Graphic variant to Graphic::GraphicList
* Rename the Graphic::Vector variant to Graphic::VectorList
* Rename the Graphic::RasterCPU variant to Graphic::RasterCPUList
* Rename the Graphic::RasterGPU variant to Graphic::RasterGPUList
* Rename the Graphic::Color variant to Graphic::ColorList
* Rename the Graphic::Gradient variant to Graphic::GradientList
* Rename the Graphic::Text variant to Graphic::TextList
* Restore the SVG group tag comment that the variant rename sweep clobbered
* Add the appearance model types and attribute constants
* Dual-write the appearance attribute alongside the fill/stroke pair in all paint-writing nodes
* Read paint from the appearance attribute in the renderer, analysis, metadata, and editor, cascading from ancestors
* Retire the fill/stroke attribute pair and the Vector stroke field in favor of the appearance attribute
* Replace the Stroke node's paint order input with the relative chain order of the Fill and Stroke nodes
* Code review fixes
* Re-save demo art
* Stamp coverages in place and fuse the renderer's per-item appearance reads into single walks
* Treat an empty appearance as the undeclared state so padded rows inherit instead of blocking the cascade
* Update demo art
* Treat padded appearance rows as undeclared in the boolean flatten's group recursion
* Make the 'Solidify Stroke' node preserve graphic structure instead of flattening its input
* Add a shared trait letting element-wise vector modifiers recurse into graphic groups
* Make 20 element-wise vector modifier nodes accept graphic input
* Make 'Separate Subpaths' and 'Points to Polyline' accept graphic input
* Make the 'Map Points' node accept graphic input
* Add TODO comments to the measure nodes deferred until the Graphic lowering refactor
* Honor clipping masks when rendering Vector[] lists, not just Graphic[] groups
* Keep per-layer click targets when a Vector[] round-trips through a Graphic[] wrapper
* Skip the rebuild and the merged-layers snapshot when flattening a lone anonymous graphic wrapper
* Fix a group's bounds excluding its raster children and stretching to the origin
* Fix SVG clipping masks landing in the wrong space when sibling layers differ in transform
* Stop chain node insertion from stranding a node on layers without a chain
* Gate the Layers panel blending controls on whether the layer can host them
* Gate the fill and stroke setters on whether the layer can host paint nodes
* Make the tool options fill and stroke controls treat layers that cannot take paint as unselected
* Remove the unused first_selected_stroke_weight helper
* New nodes: 'Gradient Reverse', 'Gradient Shift', and 'Gradient Stretch' nodes for rearranging a ramp's stops
* Clip a lone out-of-range stop into the bake, and correct the docs that still promised edge-held stops
* Rename the 'Sample Gradient' node to 'Evaluate Gradient'
* Let the Evaluate Gradient node's position reach the out-of-range values its spread modes handle
* 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
* Delete dead code function
* Add a Gradient Interpolation axis with Stepped, Linear, and Smooth paths through the stops
* Keep the gradient interpolation attached when dragging stops in the picker
* Give the gradient popover's dropdowns the same tooltips as their row labels
* Order the gradient popover with Intrp. above Space
* Hold gradient stops in place when the cyclic flag is toggled
* Fix wrong Smooth gradient colors around stops sitting on the ramp boundaries
* Consolidate gradient settings plumbing and fix bugs
* Bundle whole-ramp gradient settings into GradientSettings across the editor plumbing
* Name the Smooth gradient interpolation's spline type in its tooltip
* Linearize the gamma hex stop colors recovered from imported Graphite SVGs
* Code review
* Aim the Smooth bake's seam subdivision at the copied boundary color
* Add GradientEvaluator to build gradient sampling state once per loop instead of per sample
* Correct the gradient evaluator's documented setup cost to O(n log n)
* Add a Cyclic gradient attribute that wraps the stop list through the 1|0 boundary back to the first stop
* Show the wrap segment's midpoint diamond in the color picker spectrum strip when cyclic
* Keep the wrap midpoint diamond tracking the pointer by a wrapped strip width when dragged past the ends
* Give the Gradient tool's viewport overlay the same cyclic wrap midpoint diamond and drag behavior
* Correct the docs claiming the final stop's midpoint is always ignored now that cyclic uses it
* Move the gradient cyclic toggle onto the Ends row as a Link icon checkbox
* Update labels
* Register GradientHueDirection with the Data panel so its attribute column renders
* Reword wrap segment to wrapped interval and stray segment usages to interval
* Clean up comments
* Fix the color picker write-back losing default position elision and the blend path guessing the cyclic flag
* Add an OkLab gradient interpolation space and make it the new default
* Fix the Properties panel fill row resetting the gradient interpolation space to the default
* Add OkLch, Lab, LCh, and HSL gradient interpolation spaces
* Add a hue direction attribute and picker choice for polar gradient interpolation spaces
* Add an HSV gradient interpolation space
* Rename the sRGB Linear and sRGB Gamma gradient spaces to RGB Linear and RGB Gamma
* Divide the gradient interpolation dropdown between absolute and relative color spaces
* Rename the OkLch gradient interpolation space to OkLCh for channel-notation capitalization
* Shorten the color picker popover's hue direction row label to Arc
* Call the Gradient Interpolation node's parameter Space and extend the picker tooltip title to match
* Rename the gradient interpolation attribute and type family to gradient space
* Rename the gradient tool's gradient space transform to gradient to viewport transform
* Add serde aliases and a node replacement covering the gradient space renames
* Give the gradient space choices artist-facing labels and reorder the dropdown sections
* Add a Gradient Hue Direction node and its attribute read node
* Say interpolate instead of blend for gradient stop color traversal in docs and tooltips
* Label the polar perceptual gradient spaces as Perceptual Hue and group the dropdown sections by geometry
* Add a migration alias covering the gradient space attribute reader rename
* Carry the gradient hue direction attribute through boolean operations
* Register GradientHueDirection wire types in the node registry
* 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
* Build radio widget entries from choice type metadata so variants display their icons
* Route the node properties enum radio through the shared choice type entry builder
* Let the Gradient and Fill tools paint blank layers with whole-expanse gradients and colors
* Make it work on layers with un-fed Transform nodes
* Show the Fill tool's hover pattern over the whole expanse of layers painted by a color chain
* Let the Fill and Gradient tools replace one another's whole-expanse paint on a selected layer
* Keep a shared paint node alive when a tool takes over a layer, and share the paint value lookup
* Stop a chain node from being shifted twice when a node is inserted in front of it
* Rename spread method to gradient spread so it matches the other gradient attribute names
* Keep the legacy gradient struct's spread method field name matching its on-disk key
* Add a spread method field to GradientRamp, carried at runtime as the gradient item's attribute
* Retire the Fill node's spread method input, folding its value into the gradient ramps on document upgrade
* Add an Ends spread method radio to the color picker popover, replacing the Gradient tool's control bar radio
* Update the demo art
* Introduce the GradientRamp exchange struct as the serialized TaggedValue::Gradient payload
* Unify FillChoice and FillChoiceUI into one enum generic over color format, carrying GradientRamp stops
* Rename the TaggedValue::Gradient variant to GradientRamp to match its payload
* Move the Color variant into the tagged_value macro list since its stored and wire forms match
* Rework Gradient into a newtype of List<Color> with optional position and midpoint attributes
* Fix Vello stopless-gradient fallback coverage, empty legacy gradient tables, the node docs gradient swatch, NaN position elision, and wired setter input overwrites
* Remove the dead InputAccessor traits and the uncallable test helper built on them
* Replace raw node input indices with macro-generated parameter symbols across the editor
* Audit dynamic input index usage, converting to parameter symbols and named input position constants
* Abstract the remaining input index plumbing behind ParameterRef APIs and accessors
* Build SetInputValue messages as struct literals to keep message enums impl-free
* Delete the typed parameter markers in favor of explicit-output test introspection
* Wire the interpolation control path input per chain node type
* Return no input when a parameter symbol is read against the wrong node's parameter view
* Fix parsing regressions, make parsing 2.5x faster than the old pest parser, and clean up the math-parser rewrite
* Fix review findings: whitespace-juxtaposed numbers, mixed real/complex logic, correctly rounded literals, unified NaN truthiness, and gcd/lcm range checks
* Box the `value` field of `NodeGraphMessage::SetInputValue`
* Box the `ExecutionResponse` variant of `NodeGraphUpdate`
* Box the `Layer` variant of `NodeTypeClickTargets`
* Box the `Scope` variant of `ParsedValueSource`
* Route the remaining view queries through the logging query helper
* Name the cache readers by their loading contract and stop cloning the owned nodes per collision check
* Deduplicate the port center, output count, and upstream connector helpers and drop dead accessors
* Collapse the TransientMetadata enum into the Option inside TransientCache
* Extract the shared history snapshot install from undo and redo
* Remove commented-out code and fix stale names and doc comments
* Validate that the pinned node order only references existing nodes
* Abort remove_import before any mutation when the import's wires cannot be resolved
* Purge the deleted nodes' cached wire paths in delete_nodes
* Disconnect a deleted node's inputs by position so hidden inputs cannot mask a later exposed wire
* Gather the delete_nodes layer sweep only when deleting children needs it
* Move drag offsets out of the stack dependents cache into dedicated drag session state
* Replace the move_layer_to_stack selection hijack with a seeded stack dependents load
* Move text measurement into a neutral utility module out of the overlays layer
* Deduplicate the document bounds queries and name the artboard clip input index
* Replace the remove_references_from_network selection hijack with an explicit shift set
* Extract shared import and export wire disconnection used by the expose handlers
* Extract the shared epilogue of the import and export removal operations
* Move the post node lookup into the network interface to fix the layering inversion
* Clear drag offsets when the stack dependents cache unloads so programmatic shifts cannot replay them
* Use the thread-local text context for text measurement instead of a process-global mutex
* Resolve the post node lookup within the network being edited instead of the document root
* Back the outward wires cache with an interior-mutability cell readable through &self
* Convert the remaining network-level caches to interior-mutability TransientCache cells
* Move the owned nodes cache out of persistent layer metadata into a transient cell
* Flatten the transient node type enum into a layer width cell with &self loading
* Back the per-node click targets cache with a TransientCache cell
* Unify the per-input and per-export wire caches into one connector-keyed map
* Flip the click target, position, and stack dependent load chains to &self
* Flip the bounding box, import export position, and port load chains to &self
* Flip the wire geometry and resolved type query families to &self
* Flip the hit testing and frontend click target surface to &self
* Flip the frontend assembly, clipboard copy, and chain validation queries to &self
* Load stack dependents before filtering layer-owned nodes out of a selected-nodes shift
* Unify NodeTemplate into a single flat recursive shape with from_parts/into_parts as the storage split points
* Unify the three sole-dependent traversals onto one is_sole_dependent kernel
* Scan network exports for resource values when collecting used resources
* Introduce a NetworkView cursor with typed errors and convert the primitive queries to it
* Convert the composite name, selection, and eligibility queries onto NetworkView
* Add a network interface invariant validator and characterization tests as a refactor safety net
* Characterize stack, chain, layer move, signature edit, and preview behaviors in tests
* Sweep network interface invariants after every message in editor tests
* Deselect deleted layer children by pruning the expanded deletion set from the selection
* Rebuild the document structure on redo to match undo
* Check for cycles in set_input before applying layout side effects rather than reverting after
* Correct the swapped old/new exposure binding names in set_input
* Reload the document structure when an import or export is appended into the first two slots
* Treat toggling preview on a disconnected export as a preview with nothing to restore
* Replace panics on malformed networks with logged errors in the network interface
* Make is_artboard an identity check independent of scene connectivity
* Stop serializing the selection undo and redo history into saved documents
* Run the set_input cycle check before the node-to-node disconnect so a rejected wire swap leaves the graph unchanged
* Add Vec2 support to the scalar math operator nodes
* Support the scalar-with-Vec2 operand order in the Exponent, Root, Logarithm, Min, Max, and Clamp nodes
* Detect an f32 base of e in the Logarithm node despite inexact widening to f64
* Make wasm wrapper not depend on editor on native
* Introduce pkg-native
* Fix tests
* Fix fmt
* Correct span and make cargo fmt work inside editor_commands block
* Review
* Fix lint
* Rename the node 'Length' -> 'Magnitude'
* Rename the node 'Flatten Path' -> 'Combine Paths'
* Replace the node 'Vec2 Value' with 'Combine Vec2' and add a new 'Vec2 Value' that's actually a vec2
* Update demo artwork
* Add rank polymorphism node audit classifying all 271 nodes
* Implement StaticType for Item<T>
* Generate Item and mapped List wire variants for nodes declaring an Item<T> primary input
* Migrate nine nodes to Item element-wise kernels, dissolving the blending trait boilerplate
* Document the Item kernel implementation and staging plan
* Route Item<Vector> through TaggedValue::TypeDefault
* Add executor integration tests covering the Item and List wire variants
* Collapse element-wise Item/List wire pairs to the List form for conversion insertion
* Migrate sixteen vector modifier nodes to Item element-wise kernels
* Migrate Sample Image, Extend Image to Bounds, and Dehaze to Item element-wise kernels
* Fix bevel_with_transform test to actually exercise the transform attribute
* Implement From<T> for Item<T>
* Register PromoteNode rank adapters wrapping bare values into Item wires
* Insert PromoteNode adapters for Item/List wire pair fields in the preprocessor
* Define a real promote node backing the PromoteNode registry identifiers
* Zip ranked Item connectors by frame slot in the mapped element-wise variant
* Register ItemToListNode singleton raise adapters
* Resolve Item wires against List connectors by inserting promotion adapters at construction
* Rank the Offset Points distance connector and prove mixed-rank resolution end-to-end
* Implement Clampable for Item and List wires with per-variant clamp bounds
* Rank the Round Corners radius connector, exercising hard bounds on a ranked wire
* Implement ApplyTransform for Item
* Add Item wire implementations to the Transform node, keeping rank-0 chains rank 0
* Detect element-wise nodes by lazy primary connectors declaring Output = Item
* Convert Transform to an Item kernel with ranked parameters, delivering the broadcast milestone
* Rename Apply Transform to Bake Transform, baking item transforms on Vector, DAffine2, and DVec2
* Promote bare wires onto Item connectors at resolution via WrapItemNode adapters
* Rank the numeric, vector, and boolean parameters across the migrated element-wise nodes
* Rank the enum, integer, and seed parameters, registering their rank adapters via a consolidated macro
* Amend the audit with the DashPattern value type resolution
* Migrate the string family to Item element-wise kernels
* Unwrap Item wires into bare legacy connectors at resolution via UnwrapItemNode adapters
* Shadow owned node parameters in bodies instead of mut in signatures
* Migrate the math family and string measure nodes to Item element-wise kernels
* Convert the comparison and clamp nodes to Item kernels, dropping unreachable &str rows
* Flat-map expander kernels returning List under the mapped variant's frame
* Migrate the expander nodes to Item kernels flat-mapping under the frame
* Remove the unused peel_list helper
* Rank the raster adjustment and blending kernels, recontextualizing shader nodes onto an Item stand-in
Migrate the 16 adjustment nodes, Mix, Color Overlay, and Gradient Map from whole-List kernels to rank-0 Item kernels, letting the macro derive the List-mapped (zip) variants. Move the Adjust and Blend per-element seams off List onto the element types (add the Raster<CPU> impls, drop the now-dead List impls).
Shader nodes keep their bodies verbatim: PerPixelAdjust re-emits the identical kernel against a transparent no_std Item stand-in, so every Item<T> connector and .element() call resolves to a zero-cost identity on the GPU while the uniform buffer stays bare repr(C). The macro peels Item off ranked uniform params, wraps the fetched texel and uniforms at the entry point, and unwraps the result. This drops the shader_node/Item incompatibility guard. Register rank adapters for the adjustment enums.
* Update the rank polymorphism roadmap for the landed shader-node and adjustments chunk
* Rename the GPU Item stand-in to ShaderItem, aliased as Item at its shader-node import sites
* Flip the vector shape generators to emit rank-0 Item<Vector>
The shape generators (Rectangle, Circle, Ellipse, Arc, Spiral, Polygon, Star, Arrow, Line, Grid, QR Code) each produced exactly one shape wrapped in a singleton List<Vector>. Emit Item<Vector> directly so they connect to the rank-0 content connector of the migrated Transform node. Downstream List consumers receive the value through the existing Item to List promotion.
Relax the element-wise validation so a `()` (generator) primary may return Item<T> without being element-wise. Adapt the Repeat on Points test, which still takes a List content connector, by raising the generator's Item output through a singleton wrapper node.
* Parse ranked Item<T> parameter defaults against the bare element type
A ranked `Item<T>` parameter's default value is a bare, unranked `T` (promoted to the wire at resolution), but the preprocessor was handed the wrapped `Item<T>` type and could not parse the literal, flooding the console with warnings and dropping the defaults. Key the field's default_type metadata off the peeled element type for concrete ranked parameters, leaving generic `Item<T>` primaries and skip_impl nodes untouched.
* Parse an element-wise primary's scalar default against the bare element type
An element-wise node's primary reports its default_type as the List wire form so an unconnected primary defaults to an empty list. But when the primary carries a scalar `#[default]` (such as Root's radicand), that literal must parse as a bare element, not a List. Key the primary's default_type off the bare element type when it has a Default value source, keeping the List form otherwise.
* Add the DashPattern value type for stroke dash sequences
Introduce a rank-0 DashPattern value type (a Vec<f64> of alternating dash and gap lengths) so a stroke's dash pattern is a single frameable value rather than a rank-1 List<f64>. Register it as an auto-generated TaggedValue variant, parse its default from a comma or space separated string, and register its rank adapters. Not yet wired into the Stroke node.
* Rank the Fill and Stroke nodes element-wise and give Stroke a DashPattern connector
Migrate Fill and Stroke to element-wise Item<V> primaries (over Vector and Graphic element types) via a new element-level VectorItemMut trait, so styling one shape yields one shape and rank is preserved instead of promoting the input to a singleton List and emitting a List. The macro derives the List-mapped variant for genuine collections.
Wire the Stroke dash sequence to the new rank-0 DashPattern value type, collapsing the old content x paint x dash cartesian and dropping the IntoF64Vec trait. Update the stroke properties dash widget, the drawing tool, and graph-operation plumbing to read and write DashPattern, and migrate legacy F64Array, F64, and String dash inputs on document open.
Assign Colors stays a whole-collection node: each element's gradient position depends on its index among all siblings, which the element frame does not expose, so it keeps its List primary and the VectorListIterMut trait.
* Register rank adapters for the ranked Stroke enum parameters
The element-wise Stroke node ranks its align, cap, and paint order parameters as Item<StrokeAlign>, Item<StrokeCap>, and Item<PaintOrder>, but those enums lacked promotion adapters, so a bare default enum value could not be promoted to its Item wire and no Stroke variant resolved ("No construct found for node"). Register their rank adapters alongside StrokeJoin.
* Display Item wires in the Data panel without a List's ID column
Add a TableItemLayout impl for Item<T> and recognize Item wire types when introspecting graph data. An Item holds a single element, so it renders as a one-row table of the element plus its attributes with no leading index column, and it labels as its element type T rather than a List's T[]. Add ItemAttributeValues::get_any for the attribute widget dispatch.
* Register MonitorNode for Item wire types so the Data panel introspects them directly
Graph introspection wraps the inspected output in a generic MonitorNode typed to the wire. Without Item<T> monitor registrations, an Item<Vector> output could only be monitored after an Item to List promotion, so the Data panel captured and displayed a List<Vector> despite the connector being Item<Vector>. Register monitors for the Item types the element-wise nodes emit, and add the matching Data panel downcast entries.
* Color and double Item/List wires and cleave layer-stack connectors in the node graph
* Route wire color and rank through hidden nodes and refresh them on type changes
* Rework the DashPattern connector conversions with element-wise promotion and an explicit reducer node
* Rank the remaining value, context, aggregation, and transform nodes onto Item<T> wires
* Back DashPattern with a List<f64> so the Data panel can introspect its lengths
* Carry a single Item<T> through varargs so the Read context nodes emit Item<T> not List<T>
* Relax rank validation for aggregation shapes, add element adapters, and match variants by fewest promotions
* Rank the remaining bare and unnecessarily-List connectors across the node catalog
* Add Graphic::None and the FillChoice paint value, making colors and gradients plain values
* Rename GradientStops to Gradient and the legacy Gradient/Fill structs to LegacyGradient/LegacyFill
* Restore generator frame-from-params ranking to the roadmap as a planned stage
* Rename the ranked-field adapter identifier from PromoteNode to FieldAdapterNode to reflect its full contract
* Unload only the wires whose displayed style changed when types update
* Peel wire rank in the editor's semantic type checks so rank-0 layers are recognized
* Restore the whole-List Transform variant so rank-1 content wires resolve again
* Register the Item wire forms for the Memoize and Context Modification infrastructure nodes
* Give every ranked connector a field adapter and add numeric cast variants for legacy wires
* Key a ranked param's type default off its Item wire form when no literal default exists
* Inherit the layer's content value when splicing a node into an empty chain
* Migrate stale List-form TypeDefault inputs to the definition's current default
* Generate the mapped wire variant only when the element-wise node has a frame source
* Let a bare wire feed a List connector via a wrap-raise adapter, costed as two rank steps
* Add a zip companion to the whole-List Transform so ranked List parameters pair per slot
* Add the Sum, Average, Minimum, Maximum, Any, and All list reducers
* Convert the measure family to element-wise Item kernels per the audit classification
* Prefer the bare element value over the Item type default so ranked params keep their widgets
* Rename GradientStopsUI to GradientUI
* Split Fill's optional transform into a _has_transform bool and a ranked _transform matrix
* Rename the migration-only OptionalDAffine2 TaggedValue to LegacyOptionalDAffine2
* Flow byte buffers as Item<Resource> instead of List<u8> across the byte nodes
* Macro-generate the list-content wire variant, retiring the hand-written Transform-zip, Area, and Centroid companions
* Let ()-primary generators take ranked params and frame over them via the mapped variant, ranking Circle's radius
* Rank the vector shape generators' params to Item, adding a rank-aware input grab to the introspection harness
* Rank the value, color, and text generator params to Item
* Rank the raster, web-request, and context-reader generator params to Item
* Fix the repeat and brush test wirings left behind by the param-ranking sweeps
* Delete the vestigial Some, Unwrap Option, and Size Of debug nodes
* Delete the Attach Attribute node, folding its role into Write Attribute
* Add the Filter and Sort list companion nodes
* Guard the removed-definition migration swap target with a test
* Add the Box Corners value type in place of the rectangle corner radius list
* Split Text to Vector's per-glyph mode into a Text to Vector Glyphs node
* Rank the Combine Channels node's channel connectors to Item
* Make Map Points an element-wise node
* Delete the deprecated Upload Texture node
* Update the implementation roadmap to reflect the landed stages
* Let monitor introspection read rank-0 wires, locking in the layer coercion promotion path
* Prefer the rank-0 default when disconnecting a rank-capable input
* Make Path Modify an element-wise node
* Wrap node paths in a NodeIdPath newtype so they flow as a single Item
* Give Item<Raster<CPU>> a default so an unconnected Brush background resolves
* Stop the Brush node from setting layer attributes its paint operation doesn't produce
* Present-gate Flatten Path's adopted layer path like its fill and stroke
* Gate carried layer attributes on static column presence, not runtime values
* Give the remaining graphic Item<T> types a default so unconnected primaries resolve
* Dispatch a ranked param's Properties widget from its rank-0 element type
* Make Extract Transform an element-wise node, restoring the Origins to Polyline body
* Rename Flatten Path to Combine Paths
* Stamp Legacy Layer Extend's adopted layer path as a readable NodeIdPath
* Drop the dead List<u8> and List<NodeId> wire rows
* Rank Flatten Graphic's Fully Flatten toggle to Item
* Update the implementation roadmap with the endgame scope
* Make Combine Paths a reducer that collapses the whole frame into one path
* Stop type-converter nodes from carrying the source's unrelated attributes
* Format the Origins to Polyline regression test
* Wrap the Brush node's trace in a BrushTrace newtype so it flows as one value
* Make Switch a framed element-wise select, bundling whole collections
* Widen and align element-type coverage across the list and graphic nodes
* Register the compiler's cache chain pair for every ranked enum and newtype wire
* Fix wire colors for Passthrough outputs, bundled lists, and bools, and widen list wires
* Represent List wire types structurally with Type::List, replacing name-parsed rank promotion
* Treat scope and data fields as environment, rank scope wires as Item, and feed the render boundary through a context vararg
* Delete the vestigial Clone debug node
* Reinstate Upload Texture as an element-wise node and fix the GPU variants' scope executor and rank adapters
* Rename Combine Paths back to Flatten Path, deferring that rename to its own PR
* Deduplicate the promotion adapter registrations into the field adapter macro
* Rank Write Attribute's value connector to Item<AttributeValueDyn>, retiring the UnwrapItem bridge
* Vertical wire styling
* Store the editor layer path attribute as a bare NodeIdPath, not an Item<NodeIdPath>
* Rank Context Modification's features connector to Item<ContextFeatures>, dropping the dead memoize row
* Rank Path Modify's modification parameter to Item<Box<VectorModification>>
* Rename the field adapter node family to input adapter
* Drop the dead bare scalar rows from Context Modification's implementations list
* Move the dynamic executor's test module into its own file
* Drop the registry's unreachable bare rows for Memoize, the cache chain, and ConvertNode
* Materialize stored TaggedValues as ranked Item wires at the source
* Remove the bare-wire promotion and adapter machinery made dead by ranked value materialization
* Plant the input adapter for List-only inputs, composing position conversion from standard rows
* Consolidate Into/Convert conversions into the input adapter umbrella and rename the rank adapter identifiers
* Fix grouped layers gaining a phantom None stack element from the FillChoice default hijacking every List<Graphic> disconnect
* Enforce ranked node inputs in the macro, rejecting bare wire declarations
* Remove the unit Context => () machinery rows, leaving () purely as the no-primary sentinel
* Add a --signatures rank-audit mode to node-docs for the ranked-wire migration
* Remove the node-docs --signatures rank-audit mode now that ranked wires are enforced
* Migrate legacy no-color values on the Black & White, Color Overlay, and Empty Image color inputs
* Rewrite the element-wise accessor wire type at the primary input, not raw index 0
* Register the cache chain for Resource wires, replacing the lone hand-written Monitor row
* Gate the remaining Raster<GPU> registry rows behind the gpu feature
* Let List<DVec2> wires erase to ListDyn for the attribute reader and element counter
* Rename Extract Element to Item at Index, Count Elements to List Length, and Omit Element to Remove at Index
* Store paint picks as plain color/gradient values, removing the FillChoice value type
* Code review restructuring
* Sort by the consumed sort_key attribute or natural element order, adding the Sort Key node
* Remove the new list-combinator and reducer nodes to defer them to a follow-up PR
* Parse Fill and Stroke color defaults through the paint wire's Graphic element
* Emit ranked implementation-row default types structurally so their element TypeIds survive to default-literal parsing
* Exempt the deliberate no-paint choice from the stale List-form TypeDefault migration
* Migrate the legacy 4-input Fill directly to the split has-transform shape
* Upgrade the demo artwork
* Fix the valid AI review findings: Item eq/hash contract, table-era no-paint migration, quantize List rows, and other smaller issues
* Remove the rank polymorphism working documents
* Hash Item attribute values directly instead of debug-formatting them, speeding up cached evaluation
* Replace the data panel's dead bare-wire downcast arms with full coverage of the ranked monitor row types
* Derive PartialEq for Item now that attributes participate in equality
* Extend the data panel's attribute dispatchers with the newly supported scalar and choice enum types
* Add List monitor rows for the framed numeric conversion outputs so inspecting them resolves, with matching data panel arms
* Allow using any graphics type for fill
* Adapt gradient/fill property panels and tools to handle List<T>
* Make the initial gradient transform covers the target's bounding box
* Introduce AnyGraphicListDyn to avoid combinatorial explosion
* Allow using any graphics type for stroke paint
* Add FIll node migration
* Add `for_each_vector_list_mut` instead of `set_paint_attribute`
* Adapt paint flow to read and write attributes instead of legacy Fill/Stroke.color
* Fix responsibilities of paint related node input setters
* Fix Morph by storing List<Graphic> for attributes rather than the concrete types
Store fill/stroke paints as List<Graphic> so Color/Gradient transitions
do not hit set_attribute_value_dyn's type-mismatch fallback to default paint.
* Preserve paint attributes in vector editing ops
* Enhance the clarity between direct and chained fill gradients
* Update demo arts
* Consolidate Fill node gradient appearance inputs
* Fix after the cubic review
* Revert "Consolidate Fill node gradient appearance inputs"
This reverts commit 9622feb20196e2c4da99e98ca95dcc2e34c2c98e.
* Replace AnyGraphicListDyn with generic paint connectors on the Fill and Stroke nodes
* Canonicalize paint attribute storage to List<Graphic> with a single write helper
* Fix Solidify Stroke missing fills stored in the legacy style
* Fix Solidify Stroke producing invisible strokes for legacy-only stroke colors
* Fix the initial gradient transform ignoring the bounding box's vertical extent
* Step paint at the morph midpoint instead of dropping it for unmixable pairings
* Remove migration-stage comments
* Clarify the initial gradient transform helper's doc and name
* Correct the bake_paint_transforms doc and prune dead tolerance arms
* Delete the unused Gradient::lerp
* Fix a comment typo
* Thread network paths through the legacy gradient bake so nested fills migrate
* Restore the legacy fill fallback in Expand Fill and Stroke
* Read gradient stops from the node's own input in the Fill properties panel
* Use the transform input constant instead of a hardcoded index
* Remove the unreachable wired color fallback in the Fill properties solid branch
* Narrow the fill overlay redraw check to actual fill inputs
* Coalesce the fill setter's graph runs into a single dispatch
* Position the Gradient Value node inserted for gradient stops
* Bake backup gradient placement during migration
* Persist pending gradient bakes so unfinished migrations retry on reopen
* Migrate the backup gradient's type and spread method
* Harden the gradient-migration pass against document switches and stale bakes
* Keep the Fill properties UI for layerless and nested Fill nodes
* Leave a wired gradient transform input connected instead of overwriting it
* Refuse to start a gradient chain ahead of existing layer content
* Decode a Fill node's gradient through one shared reader
* Nudge a degenerate bounding box so the Fill gradient transform stays invertible
* Broadcast Fill and Stroke paint with a single attribute-column pass
* Fix Morph stepping the target's stroke in near the source instead of the target
* Tidy conventions: clippy get_first, comment periods, sentence-case test messages
* Reattach the gradient orientation doc to its function
* Re-save demo artwork
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Revamp the syntax to #[hard(a..b)] and #[soft(a..b)] bounds on node definitions
* Address review feedback: error on empty bounds ranges and remove redundant count clamps
* Fix NaN transform from Repeat Array with a count of 1
* Remove redundant manual clamps already enforced by #[hard(...)] bounds
* Move clipboard code to its dedicated handler
* Adapt clipboard format to work with resources
* Restore visibility, lock, and collapse state when pasting layers
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Add document-format RFC draft
* Align document-format RFC with graph-storage implementation
* Update writing style
* Recharacterize resource source chain as LWW-element-set, not add-wins OR-set
* Add Rev identity rationale framed against Git, plus patch-id future item
* Correct RFC inaccuracies found in implementation audit
* Mark unimplemented retirement coarsening and leader election as future; fix resurrection mechanism
* Add hot-log to the on-disk payload list in the architecture diagram
* Fix node graph connection to export in wrong place
Co-authored-by: James Lindsay <[email protected]>
* Review
---------
Co-authored-by: James Lindsay <[email protected]>
* Migrate legacy gradients via an isolated measurement pre-pass
Convert legacy bounding-box-relative Fill::Gradient values to absolute
space on document load by measuring each fill's evaluated geometry,
rather than walking each layer's primary flow. The pre-pass scans the
whole root network so fills on secondary branches (e.g. a Copy to Points
instance) and fills in hidden, disabled, or orphaned branches are all
found, redirecting the document export to each fill in turn to force its
branch to evaluate and reading its geometry back from the inspect result.
With every legacy gradient converted before any render, the legacy
bounding-box render path is removed: the ATTR_GRADIENT_LEGACY marker, the
renderer's legacy brush branch, and fill_to_graphic_list's bbox bake all
go away. Gradients nested inside subgraph node networks are out of scope
and warned about.
* Address review: harden gradient migration against stalls and document switches
- Advance the queue on dispatch early returns (missing export or channel
send error) so a failure can't leave the migration permanently stuck
with the document unable to render.
- Tag the migration with its DocumentId: cancel-and-restart when a
different document's migration is requested, and only apply a
measurement to the active document's in-progress migration, so
switching documents mid-migration can't stall or cross-apply.
* Remove nested network non-migration warning
* Cleanup
* Also add migrations for Fill node backup colors
* Apply migrations to the demo art
* Wire document-format into graphene-cli
* Support loading both legacy and new graphite files in the cli
* Address PR review: propagate CLI errors and use dyn resolver
* Fix CLI network wrap + preprocessor ordering
* Cleanup preprocessor
* Remove unused import
* Add document-format crate
* Adapt document-format to merged graph-storage and consolidate errors
* Fix resource write ordering, codec error masking, and export docs
* Remove document-format RFC; tracked in a dedicated PR
* Restructure document-format into gdd/persist/export/resource modules
Split the 963-line lib.rs by responsibility: persist path into persist.rs, resource I/O into resource.rs, export engine into export.rs. Rename the GddV1 layout struct to GddV1Layout and add a GddV1 = Gdd<GddV1Layout> alias.
* Feature-split document-format and graph-storage for minimal builds
* Address PR review: O(1) history-delta lookup and no-default-features test build
* Address PR review: propagate apply_hot_op persist error and assert resource hash
* Make decompression from archive streaming
* Share archive export body between export and export_to_bytes
* Review cleanup
* Export documents with un-retired hot ops losslessly
* Persist last_broadcast_rev in session.json, drop unused last_retired_at
* Move peer_id from manifest to session.json
* Rename gesture to interaction in document-format storage layer
* Use userSpaceOnUse to render gradient on SVG
* Allow non-uniform transform to radial gradient on vello
* Position gradients absolutely instead of by bbox
* Fix SVG import by removing multiplication of bound's inverse transform
* Represent sheared linear gradients via their equivalent gradient line
* Migration
* Fix migration for radial (elliptical) gradients
* Fix boolean operation gradients
---------
Co-authored-by: Keavon Chambers <[email protected]>
* feat: Render List<String> as raw paths in SVG and Vell mode
* chore: code review
* chore: change the hardcoded layout bounds to parley's
* chore: code review
* feat: Split text node to text_layer and text_to_vector node
* fix: CI fail because of difference in nature of Mac and github action
* chore: fix
* chore: replace FontStack as it got removed in parley 0.9
* chore: fmt
* chore: migrate the rendering as of new resource architechture
* chore: add text_layer node to text tool for testing
* code review
* Make boolean ops support the Text type
* chore: Move fallback_font_resource authority from editor to text node
* Fix 'Text Layer' node missing font dropdown
* Change node doc comments from Vec<T> to T[]
* Add migrations from the old Text node to Text -> Text to Vector
* Consolidate
* Rename the text attributes and reorder tilt to come before max_width/height
* Detect legacy Text nodes in the split migration by their trailing separate_glyphs input
* Code review
* Frame Text layer thumbnails by laying out their text for bounds
* Give Text layers click targets and selection outlines via collect_metadata
* Route Text tool through Text to Vector with fill, fixing editing-preview placement
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Make is_branching and free-point click targets O(n) instead of O(n^2)
* usize -> u8
* Fix profiling CI treating performance improvements as regressions
* Fix "Untitled Document {N}" numbering progression when another doc includes that substring
* Fix names with non-numeric suffixes blocking the base name
* Add History type and merge-commit model to graph-storage
* Add History::merge with canonical-sort convergence to graph-storage
* Append merge delta without re-sorting the whole history
* Resurrect across merges by searching all ancestors, not the primary chain
* Compiler changes
* Run preprocessor on wrapping network
* Remove test nodes
* FIx
* move generate_node_paths call to compiler
* Make it more obvious what input is set to
* Replace the 'Vec2 to Point' node with an 'As Vector' node and automatic conversion
* Accept a Vec2 as content for the Wrap Graphic node
* Rename the type-assertion nodes from 'To' to 'As'
* Fix the Transform node reversing a Vec2 input's direction
* Fix text migration bug
* Add conversion from Fill to Table<Graphic>
* Refactor Vector vello renderer for Gradient / Color
* Refactor Vector SVG renderer for Gradient / Color
* Fix conflicts
* Add basic clipping-based fill for SVG rendering
* Use Cow to avoid cloning graphic list for fill
* Cleanup for Cow usage
* format code
* Use `<pattern>` instead of `<clipPath>` for clip
This simplifies the future implementation of clipping-based rendering
for strokes, as the stroke does not support the use of a clip path but
rather paint sources from a paint server.
* Move svg pattern rendering function to RenderExt
* Fix comment
* Fix empty fill list rendering as default black
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Move opaque check function to Graphic impl
* Add color converter and debug node to use graphic
* WIP: Use List<Graphic> to render Color & Gradient
* Use `Arc<List<Vector>>` for vector_data metadata
This exposes List's attributes to message handlers, enabling them to
access the necessary attribute data such as ATTR_STROKE_PAINT_GRAPHIC
as `Fill` and `Stroke` will not have paint information in the future.
* Recurse opacity checks on nested `Graphic`
Also extracts `fill_graphic_list_at` /
`stroke_paint_graphic_list_at` to share the row-attribute
lookup across the existing call sites.
* Fix fill and stroke visibility check degradation
* Fix clipping based stroke paint positioning
* Refactor vello renderer for stroke to use graphic
* Reduce `Fill` / `Stroke.color` to `List<Graphic>` allocations
* Revert "Use `Arc<List<Vector>>` for vector_data metadata"
This reverts commit 4285243a5d
* Expose paint row attributes as dedicated metadata for vectors
Add `fill_attributes` / `stroke_paint_attributes` to `DocumentMetadata`
so the `ExpandFillStrokeOnSelectedLayers` handler can read row paint
visibility without exposing entire `List<Vector>`.
* Fix transparency check to consider fill opacity
* Fix consistency of gradient placement for SVG stroke
* Rename `stroke_paint_..` to `stroke_..`
* Remove debug nodes
* Allow to use any graphic type without casting
* Rename `fill_graphic` / `stroke_graphic` to `fill` / `stroke`
* Fix SVG pattern placement when stroke transform differs from item transform
* Fix click target fill check for empty list in graphic
* Fix blank fill/stroke attribute masking legacy style
* Fix SVG's paint order trick for vector/raster fills
* Add zero-division guard for pattern wraparound prevention
* Code review
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Macro support
* Preprocessor support
* Allow Cow str as scope name
* Use Passthrough node to work around compiler auto wrapping the producer node and invalidating the node id
* Stable NodeIds
* Less hacky but with bad performace
* Remove Cow from RegistryValueSource::Scope
* Connect scope injections to the inner network export
---------
Co-authored-by: Dennis Kobert <[email protected]>
* fix preview line to be visible on multiple undo
* fixed regression issue for last anchor
* Remove unneeded preview-state resync from the Pen tool undo handler
* Prevent a transient vector gap from ending the Pen tool drawing session
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Add Gradient node
* Add support of new Gradient node for Gradient tool
* Adapt gemini reviews
* Add tests
* Bring back visibility check
* Remove the 'Gradient' node since it's unwanted after all
* Formatting
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Impl NetworkMessageHandler
* Repalce Frontend fetch like messages with NetworkMessage
* Reimpl resource loading with NetworkMessage
* Fix wasm
* dedublicate resource requests
* Embedd font resources created by migration
* Fixup
* Fix tests
* Fix font catalog not loading
* Cleanup
* Fix layouts not updating when font catalog is loaded
* Review
* Review
* Cleanup
* Good start
* Impl
* allow responses.add(async { Message::NoOp });
* Fix
* Cache font blob in text node
* Refactor font handling to use Font struct direcly
* Fix fmt
* Embedd Font Resources by default
* Review
* Review
* Cache font info based on ResourceHash
* Use ResourceId for referring to Resources
* Use Doc
* use error for preprocessor ResourceId replacement failure
* Keep hashes in DocumentInfo
* Migrate with less mem copy
* Global ResourceMessage -> ResourceStorageMessage
* Add document ResourceMessage
* Move embedding logic
* Fix
* Cleanup
* Review
* Fix
* Add a recovery path for autosaved documents that don't open successfully
* Fix file naming edge case
* Add edge cases for Windows zip names
* Simplify comments and remove desktop portion
* Add .nvim.lua to gitignore
* Migrate from iai-callgrind to the renamed successor gungraun
---------
Co-authored-by: Dennis Kobert <[email protected]>
* Desktop: Forward file-open args from a second launch to the running instance
Also adds socket infrastructure that can be used in the future to allow dispatching actions from another process
* Use socket instead of ipc terminologie
* Fix
* Fix
* Better pipe name on windows
* Add TaggedValue::TypeDefault to avoid baking placeholder Tables into saved documents
* Add TaggedValue::TypeDefault to avoid baking placeholder Tables into saved documents
* Migrate empty Vector/Raster/Graphic/Artboard placeholder values to TypeDefault on load
Documents written before the TypeDefault mechanism existed have empty Table<Vector>/<Raster>/<Graphic>/<Artboard> values baked into every unwired exposed input. Walk each migrated node's inputs and rewrite any such placeholder NodeInput::Value into the equivalent NodeInput::type_default, so re-saved documents shed the placeholder payloads. Marked with a TODO for eventual removal once enough documents have been re-saved.
* Re-save demo artwork
* Remove Graphic and Artboard placeholder containers from TaggedValue
* Remove Raster placeholder TaggedValue variant
* Simplify document migration
* Remove Vector placeholder TaggedValue variant
* Remove NodeIdTable from the TaggedValue
* Remove StringTable from the TaggedValue
* Remove F64Table in place of F64Array in TaggedValue
* Replace TaggedValue::Color(Table<Color>) with ::Color(Option<Color>)
* Replace TaggedValue::GradientTable(Table<GradientStops>) with ::Gradient(GradientStops)
* Replace TaggedValue::BrushStrokeTable(Table<BrushStroke>) with ::BrushStrokes(Vec<BrushStroke>)
* Make TaggedValue::DocumentNode runtime-only with TypeDefault placeholder
* Make TaggedValue::ContextFeatures runtime-only
* Remove Serialize/Deserialize from Table<T>
* Add a widget for TaggedValue::BrushStrokes to visualize strokes and samples
* Define a reusable list of TaggedValue::TypeDefault types for its generated methods
* Re-save demo artwork
Fix missing welcome panel after closing all documents
Closing all documents left the Welcome panel as the only tab, but the old active document index could still point to a tab that no longer existed. The fix is to reset it to 0 when the document list becomes empty.
* Fix tool overlays and snap targets to use upstream Path node geometry not downstream final geometry
* Snap to upstream Path free points, dedupe the lookup via a helper
* Fix blend layers wrongly cropping Inside-aligned strokes on open paths
* Skip the closed-subpath check when stroke alignment can't apply
* Compute `can_draw_aligned_stroke` once and share it with the blend layer
* Use the actual axis scale, not the column-vector diagonal, when sizing stroke clip rects
* Fix under skew
* Break out VisualColorPickersInput.svelte
* Break out ColorComparisonInput.svelte and ColorPresetsInput.svelte
* Add backend definitions and plumbing for the 4 new widgets
* Port the ColorPicker.svelte layout and business logic to Rust
* Port more ColorComparisonInput.svelte logic to Rust
* Port more SpectrumInput.svelte logic to Rust
* Port more frontend logic to Rust
* Code review
* Code review
* Fix some CSS
* Rename the 'Identity' node to 'Passthrough' internally
* Rename the 'Memoize' node to 'Cache' internally
* Let skip_impl proto nodes auto-generate as document node definitions
* Remove the wrapper 'Passthrough' node from document_node_definitions.rs
* Remove the wrapper 'Cache' node from document_node_definitions.rs
* Remove the wrapper 'Monitor' node from document_node_definitions.rs
* Remove the wrapper 'Noise Pattern' node from document_node_definitions.rs
* Remove the wrapper 'Brush' node from document_node_definitions.rs
* Remove the wrapper 'Transform' node from document_node_definitions.rs
* Code review improvements
* Rename Cache node back to Memoize
* More code review
* Compensate for upstream row-0 transform absorption in viewport-space 'TransformSet'
* Add 'editor:text_frame' row attribute so the Text tool's drag cage tracks multi-row text
* "Separate Glyph Elements" -> "Separate Glyphs"
* Improve artboard migration robustness from older documents
* Code review
* Make the tools visualize the text frame based on attribute not upstream node
* Add ClickTargetType::CompoundPath variant for fill-rule-aware compound shape hit testing
* Generate one compound click target per Vector so glyph holes aren't treated as filled
* Fix insidenss logic
* Stop pushing duplicate layer entries when re-clicking an already-selected layer
* Make Text node generate per-glyph bounding box click targets
* Show source-geometry outlines and aggregate all rows for layer click targets
* Strip 'editor:click_target' override on Path node so direct edits restore precise hit testing
* Fix inverting a zero-determinate transform
* Fix another panel docking bug where restoring would leave a blank no-panel space
* Improve panel hide/show to restore position, size, and adjacency
* Check full subtree for document panel and avoid double traversal in insert
* Add a pointer hover marker line to the rulers
* Fix rulers and pointer marker when document is flipped
* Reduce duplicate code
* Fix ruler label placement
* Performance
* Separate 'Clip' into its own node out from the removed 'Blending' node
* Code review
* Rename to Clipping Mask
* Update Opacity node in demo art that use it
* Use DIsplay not Debug for printing blend modes
* Use 'Transform', 'Gradient Type', and 'Spread Method' nodes for table gradients
* Add gradient widget to the tool's control bar and update where the two swap buttons go
* Fix gradient rendering
* Format
* Code review
* Add Table<GradientStops> gradient rendering
* Add SVG and Vello renderers for Table<GradientStops>
* Add thumbnail rendering for Table<GradientStops>
* Use row transform to map (0,0), (1,0) unit line to document space
* Set 100px width for the initially created gradient
* Add support of table gradients for the gradient tool
* Fix after review
* Thumbnail rendering of artboard with infinite gradient layer
* Hide radial gradient's reverse direction button for gradient table
* Remove unused imports
* Format
* Fix conflict with spread method
* Code review
* Fix thumbnails
* Connect up gradient_type and spread_method to attributes
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Replace the Artboard struct with a Table<Table<Graphic>> shape
* Remove the never-functional, seemingly unneeded migrate_type_descriptor_names due to typo
* Allow negative artboard sizes
* Rename "editor:layer" to "editor:layer_path" and centralize it in a const
* Centralize "editor:merged_layers" in a const
* Centralize all other attributes in consts
* Rename consts with ATTR_ prefix
* Format
* Add support for double-clicking to rename layers in the graph view
* Fix text double-click area ending 10px too early from the right
* Fix clicking out and intermittent cursor clicking in text field
* Improve the Data panel with more type-specific detail pages
* Add network_path to SetDisplayName so renames target any network depth
* Track nested layers via full editor:layer paths and rename parent_layer to path_of_subgraph
* Polish the data panel NodeId leaf page with an editable name field
* Make lock and visibility toggles work for layers in nested subgraphs
* Fix formatting
* Fix connected_to_output running in the wrong network for nested-layer toggles
* Move Vec<String> to Table<String>
* Remove old VecDVec2
* Move Vec<u8> to Table<u8>
* Move Vec<f64> to Table<f64>
* Move [f64; 4] to Table<f64>
* Move Vec<NodeId> to Table<NodeId>
* Tidy up the TaggedValue variants
* Move Vec<BrushStroke> to Table<BrushStroke>
* Add missing type implementations
* Fix tests
---------
* Fix click target propagation with the Rasterize node
* Add the 'Write Attribute' node
* Remove tag_layer in favor of the new Write Attribute node, prune redundant attribute writes
* Replace the Vector<Upstream> type argument with the "editor:merged_layers" attribute
* Feature-gate serde derives behind cfg_attr in all runtime node graph type crates
* Refactor Table to move its hard-coded fields into an attributes field
* Encapsulate TableRow/TableRowRef/TableRowMut attribute fields behind accessor methods
* Remove TaggedValue::GraphicUnused
* Refactor Table<T> to use dynamic attributes instead fixed names
* Fix code review soundness concerns
* Add todo work
* Replace row-oriented Table<T> API with column-oriented access
* Fix attribute propagation bugs
---------
* Fix dropdown menus spawning offset in scrolled panels, a regression from upgrading to Svelte 5.54
Regression introduced in #3933 by upgrading from Svelte 5.47.1 to 5.54.1
* Code review
* Fix unrelated typo
* Add assets build size to build link comment
* Add new string processing nodes
* Remove the IntegerCount = u32 type alias
* Add the 'Format Number' node
* Add "Up To" parameter to the 'String Pad' node
* Fix 'String Capitalization' behavior
* Add 'Map String' and 'Read String' nodes
* Add separator_escaping to 'String Repeat'
* Add 'Regex Replace'
* Add 'Regex Match' node
* Regex Find and Regex Find All
* Code review
* Add the 'Escape String' node
* Improve implementations
* Move nodes from logic.rs to text/src/lib.rs
* Clean up migrations
* Fix #[{hard, soft}_{min, max}(...)] node macro attribute
* Improve Data panel number and text display
* Add the 'Query JSON' and 'Query JSON All' nodes
* Add the 'Lorem Ipsum' node and Ipsum library
* Add the 14 nodes back in their final state
* Add handling for fixed decimal places in number formatting
* Code review fixes
* Improve the Data panel's data display with monospaced text and copyable number values
* Revert attempted fix for dropdown menus appearing lower in scrolled Properties panel, since it makes other floating menus freeze the app
* Code review
* Rename 'Image Value' node to 'Image' and have its input value be Image<Color> not Table<Raster<CPU>>
* Add a Properties panel widget labeling "width x height" for images in the Image node
* Add Image<Color> node registry entry for MonitorNode
* Code review
* Make paste/import SVG store as the Path node's VectorModification not Table<Vector>
* Add a migration from Table<Vector> to VectorModification for existing documents
* Add a VectorModification widget to visualize change counts
* Refactor VectorModification to compute per-category counts for additions, removals, and modifications
* Switch indexedDb document serialized struct from camelCase to snake_case
* Refactor and migrate old indexedDb format to the same shape as desktop persistence
* Avoid duplicate struct definitions in the desktop crate
* Refactor frontend message handling to consolidate auto-save document loading
* Code review
* Review
---------
Co-authored-by: Timon <[email protected]>
* Add spread method support for gradients
* Add GradientSpreadMethod enum (Pad, Repeat, Reflect) to vector-types
* Add radio buttons to gradient tool and fill properties panel
* Convert spread method when importing SVGs via usvg
* Sync backup gradient input when changing spread method
* Table<GradientStops> rendering is not yet updated for spread method
* Sync gradient tool options with layer's gradient
* Sync gradient_type and spread_method from the selected
layer's existing gradient to the tool options bar when
switching to the gradient tool
* Refactor has_gradient_on_selected_layers
to reuse a new get_gradient_on_selected_layer helper
* Swap Reflect and Repeat order in UI radio buttons
* Fix alignment of the radio buttons in right panel
* Fix the position of the radio buttons in the tool
* Rename SpreadMethod to SetSpreadMethod
* Move default spread method omission logic
* Add checkered transparency rendering to infinite canvas and artboards
* Enable artboard clipping by default
* Make new infinite canvas documents begin with a white background layer
* Remove the export dialog's transparency option now that it's redundant
* Make exporting transparent JPGs use white not black
* Code review
* Add interactive panel docking
* Preserve active tab when a panel group is docked
* Add inter-panel gutter hover color
* Code review fixes
* More code review
* Add support for dragging panel tabs docked into other panel tab bars
* Fix terminology
* Add Group suffix to PanelGroupId enums variants
* Code review
* Remove sample based image hashing to avoid false equalities
This was originally introduced to improve the performance of working with
image data, but since the memo hash wrapper got introduced this should no
longer be really necessary.
* Fix todo comment
* Fix Morph node transform interpolation and preservation in the table
* Fix click target positions for Morph's nested layers by pre-compensating upstream_data transforms
* Redesign Morph node (v3) with control path input and uniformly spaced progression, and fix Stroke::lerp interpolation weights
* Add migration from Morph node v2 to v3
* Redesign the 'Blend Shapes' node behavior and subgraph definition
* Add the Layer > Blend menu entry to easily set up a blend
* Optimize the Morph node
* Refactor the Morph node to remove the roundtrip through BezPath
* Fine-tune Morph node Bezier order promotion and handle interpolation
* Add the Layer > Morph menu bar entry
* Fix NaN and guard against other potential NaN bugs breaking the editor
* Add InterpolationDistribution parameter to Morph with weighted progression, swap parameter orders, and rename shear to skew
* Add the Reverse parameter to the Morph node
* Update the order of the inputs to Blend Shapes for consistency with Morph
* Make Layer > Morph create the Morph Path control layer
* Fix migrations
* Move 10 to a constant
* Avoid division by 0 in the Blend Shapes node internals
* Rename nodes 'Blend' -> 'Mix' and 'Blend Shapes' to 'Blend'
* Fix a crash encountered while testing
* Final code review
* Make domain push dupe checks debug-only and use push_unchecked in the Morph node
* Pre-allocate for pushes to the vector domains
* Add fast path at t=0
* Inline reserve()
* Set up the control path layer above not below, and starting collapsed
* Review fixes
---------
Co-authored-by: Timon <[email protected]>
One appeared on load (a deprecated meta tag). One appeared when adding an Identity (Passthrough) node. One appeared when exposing the the Weight parameter of the Stroke node. This also fixes the intended behavior of the bisect script, which was involved when finding the prevenance of these errors.
* Fix virtual scrolling MenuList dropdowns shrinking when wider content goes away
* Code review fixes
* Fix small CI workflow bug
* Stop scrolling in dropdowns from horizontally scrolling the control bar
* Use more robust way of getting commit hash in CI workflow
* Implement the service worker for cached offline mode
* Improve pre-loaded font menu preview visualization
* Code review fixes
* Simplify Response construction
* Attempt to fix ERR_FAILED when reloading page on CF Pages
* Reject service worker install if any precache fetch fails
* Fix NaN points produced by Sample Polylines on 0-scaled input
* Fix Jitter Points inverse transform for zero-scale axes and stop resetting stroke transform
* Remove a couple confusing Debug nodes
* Fix edge case
* Update demo art
* Fix order change in Jitter Points causing different results from earlier
* Fix bug in bisect tool
* Break out functionality into helper functions
* Refactor transform decomposition API with skew support, add Decompose Skew node, and fix stroke transform interpolation
* Fix bug in master with skew changing Area node calculated value
* Code review simplification
* More code review fixes
* Rename cases where "shear" terminology was used in place of "skew"
* Fix an assertion failure bug when scaling a line in the transform cage
* Fix missing defaults on node gradient inputs
* Fix Blend Shapes path input wire not updating to show in the UI after Layer > Blend
* Fix assertion failure due to browser non-monotonic timestamp
* Fix SVG renderer drawing 1px strokes as half-width when using stroke alignment
* Fix incorrect appearance of the ColorInput widget when set to "none" and "disabled"
* Fix lerp function in Fill enum to handle None cases correctly
* Fix stroke alignment bug
* Fix half-pixel offset on imported images
* Break out reused function
* Fix SVG/image open flow placing content with unnecessary Transform nodes
* Fix redundant Transform nodes when opening SVG/image files as documents
* Offset the parent to its destination position not the child objects
* Fix SVG/image File > Open artboard dimensions, origin, and clipping
* Fix the SVG to drag in at the mouse position relative to its visible center
* Fix importing images into offset artboards so they don't get offset as well
* Code review
* Remove O(n^2) import by disabling bumping
* Add an import mode to avoid acyclic checks
* Rebuild the layer tree at the end, not after each step
* Incrementally update outward wires instead of repeatedly rebuilding them
* Add import->export direct connection guard
* Code review fixes
* Replace magic number offsets with consts
* Add consts for magic numbers
* Improve code structuring
* Fix hide artboard for raster render mode
* Desktop: Fix transparent viewport blending
* Fix vello render using wrong color space conversion for background
* Review
* fix: Shaking a Text layer breaks its type signature
* Add a second fix for the same issue
---------
Co-authored-by: Keavon Chambers <[email protected]>
* New node: Decimate
* Use preallocated stack to reduce number of allocations and fix double endpoints on closed paths
* Use Kurbo implementation of path-to-polyline sampling
* Add the 'Simplify' node
* Remove the unused Editor.raw/wasmMemory/wasmImport
* Split out Editor.subscriptions
* Replace editor.handle.* with editor.* (1 of 2)
* Replace editor.handle.* with editor.* (2 of 2)
* Replace Editor typedef with EditorHandle import
* Pluralize subscription-router and rename subscriptionsRef->subscriptionsRouter and editorRef->editorHandle
* Remove editor.ts
* Update the readme
* Fix demo art loading bug
* Replace parameter passing with getContext and extract destroy functions to module-level exports
* Resend layouts from Rust when editor is re-mounted on HMR
* Code review
* Clean up component setup/tear-down side effects
* Clean up more component setup/tear-down side effects
* Remove nonfunctional debouncer
* Clean up even more component setup/tear-down side effects
* Reuse backend state
* Fix HMR for IO Managers and for State Providers
* Rename IO Managers -> Managers and State Providers -> Stores
* Restructure and partially flatten managers/stores
* Code review fixes
* Review fixes
* Restore the CI "View deployment" button in PRs after building
* Consolidate release.yml functionality into build.yml
* Move build from ci.yml to a delegated run in build.yml
* Rename CI to Check
* Code review fixes
* Review 2
* Render raster images as outlines in Outline mode
* Draw a transformed unit-rectangle stroke instead of raster pixels
* Skip creating blend layers for a raster image in Outline mode
when only blend mode would trigger them
* Rename variable names
* Minor refactor to reduce nesting
* Extract shared outline drawing helper
* Update node-graph/libraries/rendering/src/renderer.rs
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
---------
Co-authored-by: Dennis Kobert <[email protected]>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* Make the order of Shape tool shape types consistent
* Add Arrow shape modifier keys and snapping support
* Add endpoint dragging to arrows
* Show the default cursor when hovering line/arrow endpoints
* Reduce duplicated function
* Fix incorrect coordinate spaces
* Improve endpoint dragging clarity
* Migrate Specta to Tsify to auto-generate messages.ts, working except colors and widgets
* Adopt the generated FillColor/Color/GradientStops
* Fix widget typing
* Separate WidgetGroup enum variants into wrapper structs
* Small rename
* Simplify widgets further
* Clean up message type references
* Switch type imports to the auto-generated file
* Remove lowercase serde rename
* Fix FillChoice deserialization
* Fix small regression from #3837
* Improve type safety
* Make WidgetSpan type-safe
* More cleanup and type safety
* More type safety
* More type safety
* Get the rest to type-check without errors; improve widget builder macro to have optional icons; improve Svelte 5 configs
* Cargo fmt
* Fix imports
* Update outdated readme info
* Fix lint command rename references
* Fix typos
* One more typos fix
* Remove unnecessary dep: prefix from the edited Cargo.toml files
* Remove excess parts from Cargo.toml
* Fix compiling on desktop
* Revert "Remove excess parts from Cargo.toml"
This reverts commit 6b711117b3a5d5d8a3ee20f36a43bc74930b7c82.
* Update dev docs with simpler, more accurate instructions
* move nix flake to root
* cargo run tool
* use thiserror in third-party-licenses tool
* prefere panic over exit
* Add automatic dependency check to cargo run tool
* Skip dependecies that are not needed for the current task
* Fixup
* Fixup
* fix windows
* Fixup
* improve usage text
* Fix linux bundle
* add graphen-cli
* fix build profile
* fix
* release profile should not include debug infos
* Review
* remove profiling profile
was redundent with release
* rename to cargo-run tool
* improve consistency
* rename deps to requirements
* fix
* return success when showing usage
* Fix gamma correction with HTML-based editable Text tool text
* Migrate simple, undecorated classes to types
* Remove TupleToVec2 transformation
* Remove @Transform from tooltips
* Cleanup: replace value.toString() with String(value) everywhere
* Convert documentId from string to bigint
* Migrate the rest of the easy @Transform/@Type decorations
* Migrate FillChoice
* Migrate WidgetDiffUpdate
* Migrate WidgetInstance
* Migrate away from classes that extend WidgetProps
* Remove class-transformer and all classes in messages.ts
* Migrate UI layout passing
* Remove dead code
* Remove unnecessary export and readonly prefixes
* Remove HSVA type
* Break out Color, Gradient, and FillChoice functions into a utility-functions file
* Move widget helper functions from messages.ts into a new utility-functions file; restructure type imports
* Reduce internal type defs
* Rename JsMessage to FrontendMessage
* Code review fixes
* Fix other usages
* Tidying up
* Improve Gradient tool dragging behavior and make hints reactive to current interaction state
* Reduce code duplication for drawing stops
* Fix coordinate system issue when PTZ'ing document during drag or autopan
* Split ci job to run on dedicated runners for web and native build
* Trigger CI
* Update labels
* Update comment text
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Refactor GradientStops to use struct-of-arrays and include midpoint
* Implement interaction and rendering
* Make color picker saturation-value color picking snap to original position and show both axis lines
Make color picker saturation-value color picking snap to original position and show both axis lines
* Add graphite:midpoint attribute to SVG exports
* Add graphite:midpoint parsing to SVG importer
* Remove Vello from preferences
* Add the Render Mode: SVG Preview radio button
* Remove SVG outline renderer
* Add a tooltip explaination when disabled in unsupported browsers
* Fix Eyedropper tool to support Outline render mode
* Use #[allow(clippy::too_many_arguments)] instead of tuple
* Rerun nodegraph when max render area is changed
---------
Co-authored-by: Dennis Kobert <[email protected]>
* WIP render caching
* Hook up render cache to render pipeline
* Fixed offsets
* Initial cleanup
* Integrate cache with context invalidation
* Cleanup
* Improve rounding and reduce tile size to fix vello not rendering
* Include pointer position in cache key
* Avoid unwraps and zero sized textures
* Destroy textures after blitting to surface
* Fix context dependencies
* Exclude footprint from render params
* Batch animation frame messages
* Add vello max render size to preference dialogue
* Remove unused import
* Reorder vello preference
* Clean up preferences dialog
* Apply review suggestions
* Cap max render region size
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Split ci job into multiple jobs running on github runners
* Add permission to build steps
* Try running rust build on selfhosted runner
* Disable nix setup for self hosted runner
* Revert build and only run lint + web build + rust fmt on gh runners
* Only build rust tests and ignore branding for frontend lint
* Provide stub ts types for running linter without building wasm bundle
* Manually install wasm-opt + use cargo-binstall
* Only build with shaders for master builds
* Revert splitting of lint job
* Attempt to build with shaders
* Explicitly install linux target
* Move frontend build back to self hosted runner
* Remove whitespace changes
* Remove explicit build step
refactor(document): extract large match arms into helper methods
Part of #2740 - Code quality refactors.
This commit addresses the 'Match statements' section of the tracking
issue by extracting three large match arms from process_message() into
dedicated helper methods:
- handle_group_selected_layers: Handles layer grouping in both artboard
and non-artboard workflows (~50 lines extracted)
- handle_move_selected_layers_to: Handles layer movement with proper
transform preservation (~85 lines extracted)
- handle_nudge_selected_layers: Handles keyboard nudging with optional
resize mode (~75 lines extracted)
The main match statement in DocumentMessageHandler is now ~210 lines
shorter and more readable. Logic and behavior remain unchanged.
* Comment on `!build` requests with the Actions run ID for easier troubleshooting
* Update the triggering comment instead of making another one for the build link
* Make sure the workflow doesn't fail if the triggering comment was deleted.
* Post comment on build/upload failure
* Don't post a build link comment separately if the OG is deleted
---------
Co-authored-by: Keavon Chambers <[email protected]>
* fixed the arrow's parameters
Signed-off-by: krVatsal <[email protected]>
* shifted the arrow's origin to its tail
Signed-off-by: krVatsal <[email protected]>
* modified arrow shapetype fucntion to be like other shapes
* fixed rust formatting
* Remove misleading part of comment referencing the origin
---------
Signed-off-by: krVatsal <[email protected]>
Co-authored-by: Keavon Chambers <[email protected]>
* made spiral node
* number of turns in decimal and arc-angle implementation
* logarithmic spiral
* unified log and arc spiral into spiral node
* add spiral shape in shape tool
* fix min value and degree unit
* make it compile
* impl turns handle gizmo
* chore : Refactoring PR #2851 for current code base with some fixes
* Code review
---------
Co-authored-by: Keavon Chambers <[email protected]>
Co-authored-by: Annonnymmousss <[email protected]>
* fix : sync the linear/radial option in menu bar and property panal
* fix : fmt
* Promote vector meshes from experimental by removing it from preferences
* fix : change reverting bug
* chore : refactor
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Desktop: Build and Sign Mac and Windows Bundles in CI
* Desktop: Remove unnecessary CEF files from Windows Bundle
* Desktop: Use a temp file for license generation on Windows to avoid PowerShell modifying stdout
* Only rerender ui if it has changed
* Don't immedeatly request new frame at the end of the event loop
* Request redraw after ui update
* Always request redraw after timeout
* Fix setting control flow in all cases
* Remove comment
---------
Co-authored-by: Timon <[email protected]>
* fix : Selection jumps back to previously selected node after its drag abort, upon clicking to select new node
* fix : Selection jumps back to previously selected node after its drag abort via esc key, upon clicking to select new node
* Generate the MVP node catalog in the manual (with some placeholders)
* Implement nearly the rest of everything
* Move to the tools directory and make it generate nicer default values
* Add category descriptions
* Organize file structure and improve type naming
* Improve book table of contents code
* Add collapsing chapter navigation to the book template
* Add to build workflow
* Clean up site structure
* Include single connected points as extrema in the extrude node
* Update styling of loading indicator
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Add tooltip documentation to web request, text, and brush nodes
- Add descriptive tooltips to web request nodes (GET/POST, string/image conversion, resource loading, image decoding)
- Add tooltip to GPU rasterization node explaining footprint usage
- Improve text node tooltip with clearer per_glyph_instances parameter explanation
- Add tooltips to brush stamp generator and blit operations explaining their internal roles
- Fix typos in tooltip and variable names (it's→its, perview→preview, instnace→instance)
* Fixed 2 issues with previous changes. Reversed order of documentation about per_glyph_instances. Can it be 3 lines?
* Improve post_request node documentation
Change doc comment to describe the node's purpose rather than focusing
only on the "Discard Result" parameter. Now clearly states this is an
HTTP POST operation with optional async behavior.
* Fix post_request documentation error
Corrected doc comment to say "HTTP POST" instead of "HTTP GET" since
this function performs POST requests with binary data.
* Review changes
---------
Co-authored-by: Keavon Chambers <[email protected]>
* add arrow shape feature in editor
Signed-off-by: krVatsal <[email protected]>
* fix the arrow tool to show arrow in viewport space
Signed-off-by: krVatsal <[email protected]>
* fix the direction of arrow and make the new arrow node
Signed-off-by: krVatsal <[email protected]>
* updated arrow tool to hae start and end points
Signed-off-by: krVatsal <[email protected]>
* fixed calculate point bug
Signed-off-by: krVatsal <[email protected]>
* fixed some bugs of arrow positioning
Signed-off-by: krVatsal <[email protected]>
* fixed formatting in whole codebase and added fill to arrow
Signed-off-by: krVatsal <[email protected]>
* fix
---------
Signed-off-by: krVatsal <[email protected]>
Co-authored-by: Timon <[email protected]>
* fix: handle PointId remapping when joining paths from different layers
When using Ctrl+J to join two points from different layers, the operation
failed because PointIds change during merge due to collision resolution.
The fix uses index-based point tracking instead of PointIds:
1. Before merge: Record the index of each selected point in its layer
2. Calculate post-merge indices using the point offset from layer1
3. After merge: Retrieve the actual PointIds at those indices
4. Create the connecting segment using the resolved PointIds
This works because Vector::concat() preserves point ordering during merge,
so we can use exact index arithmetic to find points after remapping.
Fixes#3519
* fix: use position-based lookup when joining paths from different layers
* fix cmd + g group case
* fix check for grouped folder
* add in the single layer inside a group case
* use ApplyPointDelta instead of creating a dummy segment
* Update editor/src/messages/tool/common_functionality/shape_editor.rs
Co-authored-by: James Lindsay <[email protected]>
* Update editor/src/messages/tool/common_functionality/shape_editor.rs
Co-authored-by: James Lindsay <[email protected]>
* encapsulate point connection logic in defer_connect_points_by_position
* reduce tolerance to 1e-6
* remove wrong comments
---------
Co-authored-by: James Lindsay <[email protected]>
* Add median filter option to blur node:
- Add median parameter to blur function for noise reduction
- Implement median_filter_algorithm with efficient quickselect
- Support gamma space calculations for median filtering
- Preserve edges while removing noise, complementing existing blur options
Feature in Issue: #912
* Optimize median filter algorithm by reusing buffers and improving pixel neighborhood collection
* Add median filter option to blur node:
- Add median parameter to blur function for noise reduction
- Implement median_filter_algorithm with efficient quickselect
- Support gamma space calculations for median filtering
- Preserve edges while removing noise, complementing existing blur options
Feature in Issue: #912
* Optimize median filter algorithm by reusing buffers and improving pixel neighborhood collection
* Improve median filter's NaN handling by using total_cmp for safe comparisons
* Add median filter node for noise reduction
- Create dedicated median_filter node separate from blur functionality
- Implement median_filter_algorithm with efficient quickselect
- Support gamma space calculations for consistency
- Use safe NaN handling with f32::total_cmp to prevent panics
- Optimize performance with memory reuse and O(n) median selection
* Refactor median filter to remove gamma handling and simplify algorithm
---------
Co-authored-by: Keavon Chambers <[email protected]>
Co-authored-by: Dennis Kobert <[email protected]>
* Exclude node registry functions from desktop frontend builds
This reduces compile times and file sizes
* Use early return
* Fix branch name in build-linux pipeline
* Desktop: Fix helper window zorder on Windows
* Attach to parent console if launched from a terminal
* Workaround for a Windows-specific exception that occurs when `app` is dropped
* Add #[data] and #[serialize] attributes to node macro
- Add #[data] attribute for struct fields that aren't node parameters
- Data fields are initialized with Default::default()
- Passed as references to the underlying function
- Excluded from registry metadata (internal state)
- Generic types in data fields allowed without #[implementations]
- Add #[serialize] attribute for custom Node::serialize() implementation
- Receives references to all data fields
- Generates serialize() method in Node trait impl
- Conditional derives based on data field presence
- With data fields: Debug, Clone only
- Without data fields: Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash
* Refactor Memo and Monitor Node to use node macro
* Move Complex type into type alias
* Fix format
* Update node-graph/nodes/gcore/src/memo.rs
Co-authored-by: Keavon Chambers <[email protected]>
* Update node-graph/nodes/gcore/src/memo.rs
Co-authored-by: Keavon Chambers <[email protected]>
---------
Co-authored-by: Keavon Chambers <[email protected]>
* fix: rasterize node document leakage with hashmap and eq check
* Use single Hashmap and ignore source id
* use or_insert_with instead of Entry match
---------
Co-authored-by: Dennis Kobert <[email protected]>
* Implement branching mesh rendering for SVG
* Patch mesh fill for Vello renderer
* Patch tangent_at_start and tangent_at_end
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Remove FontInput.svelte
* Move font picking to the backend
* Fix Text tool font choice style turning to "-" on font that doesn't support previous style
* ui scale preference
* cleanup
* add update ui scale message to SIDE_EFFECT_FREE_MESSAGES
* fix mac title bar height
* hide UI preference section on web
* set % as unit of ui scale
* gray background for viewport texture
* cust copy paste support
* connect clipboard read on web
* fix eyedropper bounds
* cleanup
* add missing char events for some named keys like enter
* okayish solution
should be improved at some point but for now it works well enough.
* do leftover renames
* better solution
* less weird resize frames
* move surface reconfiguration
* fix recent desktop mac breakages
* better looking resize on mac
* fix background color
* Fix blank screen on window initialization
* cleanup
---------
Co-authored-by: Keavon Chambers <[email protected]>
* Restyle UserInputLabel and refactor its usages to have all input its data sent from Rust
* Replace the welcome screen quick buttons with ones sent by backend
* Add the ShortcutLabel widget to the backend
* Replace hints bar with a backend-controlled layout; show mouse icons in place of mouse labels
* only allow single instance
* more reliable CEF cache cleanup
* some cleanup
* fix lock file location
* add simple signal handling
* fix skew handles on desktop
* mac remove unused helpers
* Refactor the old menu bar plumbing to use standard TextButtons
* WIP: Fix Mac native menu bar
* WIP: fix desktop menu bar mac
* Refactor menu bar definitions to use the builder pattern
* WIP: fixup desktop
* cleanup
* fix linux
* Remove dead code that was failing to lint
---------
Co-authored-by: Timon Schelling <[email protected]>
* Replace the title attribute with custom FloatingMenu tooltips
* Separate tooltip labels and descriptions into two styled blocks
* Move keyboard shortcut tooltips to a separate section at the bottom
* Update shortcut key styling in tooltips and hints bar
* Fix .to_string()
* Add support for RMB/Escape canceling layer drag reordering in the Layers panel
* Disable hover effects on layers during drag; fix insertion line getting cut off at top of stack
- Add the 'Reset Transform' and 'Replace Transform' nodes
- Add the 'Count Points' and 'Index Points' nodes
- Make the 'Index Elements' node support negative indexing from the end
- Make the 'Flatten Vector' node's implementation reusable
- Fix crash displaying 0x0 raster image in the Data panel
- Fix the 'Points to Polyline' node not working on two-point objects
* remove branded files
* use branding repo
* include favicons
* nixpkg fixup
* win fix ico path
* fix fmt
* skip licensenses for dev builds
* review fixup
* test
* test
* ci test
* ci test
* ci test
* fix ci
* Fix 'Mask' node missing Properties widget; fix crash with 'Brightness/Contrast Classic' node
Also clean up dead code and improve tooltip for the "-" Properties panel widget fallback.
* format type
---------
Co-authored-by: Adam <[email protected]>
* add browser debug port env
* mac use option as alt
* fix cef texture double sRGB conversion by using cef-rs fork with fix
* fix keyboard input on mac
* add missing frontend messages
* fixup
* fix keyboard input mac
* dbg
* re implement keyboard mapping
Co-authored-by: csmoe <[email protected]>
* Fix double arrow keys
* try fix for non mac
* test
* Revert "test"
This reverts commit c7cde9c597.
* fix mac
* some cleanup
* fix zoom in shortcut on mac introduced in #3377
* disable menu shortcut display
* fixup
* desktop support ui scaling
* fix some warnings
* use browser zoom if needed
* fix infinite footprint size
* fix web canvas scale
* always set zoom
* use only zoom for scaling
* prevent user zoom
* remove mouse position scaling
* Add two nodes for substring
* fix: number convention
* Remove unnecessay allocations and add support for \n in patterns
* Make split node return Vec<String> and remove count_elements node
* Add Cache implementations for Vec<String>
* Code review
---------
Co-authored-by: daniil.loban <[email protected]>
Co-authored-by: Dennis Kobert <[email protected]>
Co-authored-by: Keavon Chambers <[email protected]>
* macos native menu bar
* fix nix build
* Add shortcut symbols to menu
* fix fmt
* fix vendoring
* cleanup intercept frontend message
* accept into editor message in queue function
* add bundle for mac os and windows
* Fix bundle name
This name gets used as the display name of the app on mac os, shorter name looks better and is more consistent.
* preserve std out by running bin directly
* bundle placeholder on linux
* fix linux
* window abstraction
* fix linux
* fix windows
* fix fmt
* remove windows file that was left
* use self
* add bundle for mac os and windows
* Fix bundle name
This name gets used as the display name of the app on mac os, shorter name looks better and is more consistent.
* preserve std out by running bin directly
* bundle placeholder on linux
* fix linux
* Only consider changes significant if they exceed an absolute ir diff
* Node graph folder change to trigger ci
* Use extra step for detecting significant perf degradations
* Reenable expanding of sections with significant changes
* Remove temp file
* prepare nix for hashless cargo builds, update rust-gpu to non-orphaned
commit
* match commit hashes to repos, update packages to make nix flake build
properly
* add nix build dir to gitignore
* Add npm TODO to flake.nix
* Update Cargo.lock
* Update TODO comment
* Cache calculation of bounding boxes with transforms
* Reuse bounding boxes across for the same rotation
* Cleanup code and add documentation
* Add tests
* One annoying debugging session later
Discovered that the editor handles frontend messages differently from other messages.
It requires all frontend messages to be fully processed before dispatching any resulting messages.
In the web frontend, this behavior happened implicitly because message dispatch is queued at the current end of the JavaScript execution queue.
For the desktop frontend, I added a vector to collect all responses until the entire batch of frontend messages is handled, and then dispatch them afterwards.
* Fix double click travel
* browser console message forwarding
* replace target to make it easy to identify browser console messages
* use warn as per review comment
* cursor icon change
* fix win build
# Keep `--cfg=web_sys_unstable_apis` here so the wasm wrapper crates build with the same web-sys API signatures (e.g. `put_image_data`/`get_image_data` taking `i32` rather than `f64`) on both native and the wasm target.
[target.'cfg(not(target_family = "wasm"))']
rustflags=["--cfg=web_sys_unstable_apis"]
[target.'cfg(target_family = "wasm")']
rustflags=[
# Currently disabled because of https://github.com/GraphiteEditor/Graphite/issues/1262
# The current simd implementation leads to undefined behavior
#"-C",
#"target-feature=+simd128",
"-C",
"target-feature=+simd128",
"-C",
"target-feature=+bulk-memory",
"-C",
"link-arg=--max-memory=4294967296",
"--cfg=web_sys_unstable_apis",
# TODO: Remove this and find a better way to stay within the 25MB limit of cloudflare pages
// NOTICE: keep these tool versions in sync with `.github/workflows/build.yml`, `.nix/dev.nix` and `.nix/pkgs/graphite.nix` (wasm-bindgen-cli), `tools/cargo-run/src/requirements.rs` (wasm-bindgen-cli, cargo-about), `tools/cargo-run/src/requirements/wasm_opt.rs` (Binaryen), and the `wasm-bindgen` crate in `Cargo.toml`
"containerEnv":{
"WASM_BINDGEN_CLI_VERSION":"0.2.127",
"CARGO_ABOUT_VERSION":"0.9.2",
"BINARYEN_VERSION":"130",
"CARGO_BINSTALL_VERSION":"1.23.0"
},
"onCreateCommand":{
"Install cargo-about and wasm-bindgen-cli":"curl -sSfL https://github.com/cargo-bins/cargo-binstall/releases/download/v$CARGO_BINSTALL_VERSION/cargo-binstall-$(uname -m)-unknown-linux-musl.tgz | tar xz -C $CARGO_HOME/bin && BINSTALL_DISABLE_TELEMETRY=true cargo binstall --no-confirm cargo-about@$CARGO_ABOUT_VERSION wasm-bindgen-cli@$WASM_BINDGEN_CLI_VERSION",
- You are responsible for thoroughly testing the successful implementation of your changes and ensuring no obvious regressions occur.
- Egregiously dysfunctional PRs may be assumed to be undisclosed AI slop. If in doubt, ask on Discord before attempting a PR.
- You are highly recommended to include a video showing the before-and-after behavior of your changes and screenshots of any new or modified UI.
- Remember that Graphite maintains high standards for quality and the project is not a classroom for inexperienced developers to gain industry experience.
- In this PR description, reference any relevant tasks by writing "Closes", "Resolves", or "Fixes" with the issue # or the URL of a Discord message documenting the task.
- To acknowledge that you've read this, you must delete these rules and fill in the (strictly human-written) PR description in its place.
# NOTICE: keep these tool versions in sync with the other jobs in this file, `check.yml` (sccache), `.devcontainer/devcontainer.json`, `.nix/dev.nix` and `.nix/pkgs/graphite.nix` (wasm-bindgen-cli), `tools/cargo-run/src/requirements.rs` (wasm-bindgen-cli, cargo-about), `tools/cargo-run/src/requirements/wasm_opt.rs` (Binaryen), and the `wasm-bindgen` crate in `Cargo.toml`
# NOTICE: keep these tool versions in sync with the other jobs in this file, `.devcontainer/devcontainer.json`, `.nix/dev.nix` and `.nix/pkgs/graphite.nix` (wasm-bindgen-cli), `tools/cargo-run/src/requirements.rs` (wasm-bindgen-cli, cargo-about), `tools/cargo-run/src/requirements/wasm_opt.rs` (Binaryen), and the `wasm-bindgen` crate in `Cargo.toml`
# Azure login and signing occasionally fail on a brief outage of Azure's sign-in endpoints or the PowerShell Gallery (which the signing action installs its module from),
# so each is retried twice, after waiting 30 seconds and then 2 minutes
# NOTICE: keep these tool versions in sync with the other jobs in this file, `.devcontainer/devcontainer.json`, `.nix/dev.nix` and `.nix/pkgs/graphite.nix` (wasm-bindgen-cli), `tools/cargo-run/src/requirements.rs` (wasm-bindgen-cli, cargo-about), `tools/cargo-run/src/requirements/wasm_opt.rs` (Binaryen), and the `wasm-bindgen` crate in `Cargo.toml`
merge_group_tree=$(tree_of "$MERGE_GROUP_HEAD_SHA") || decide false "Running the checks since the merge queue commit $MERGE_GROUP_HEAD_SHA couldn't be read"
echo "The merge queue commit $MERGE_GROUP_HEAD_SHA has tree $merge_group_tree"
[[ "$merge_queue_branch" =~ ^gh-readonly-queue/.+/pr-([0-9]+)-[0-9a-f]+$ ]] || decide false "Running the checks since the merge queue branch '$merge_queue_branch' doesn't name a PR"
pr_number="${BASH_REMATCH[1]}"
pr_head_sha=$(gh api "$repository_api/pulls/$pr_number" --jq '.head.sha') || decide false "Running the checks since PR #$pr_number couldn't be read"
# The PR's own runs check out the PR merged into its base branch at that moment, which matches this content if the PR was up to date or its base hasn't moved since.
# Each run records the commit it loaded the local build.yml from (called by the build job below), and that is the merge commit it checked out.
export PR_MERGE_REF="refs/pull/$pr_number/merge"
pr_run=$(gh api -X GET "$workflow_runs_api" -f event=pull_request -f head_sha="$pr_head_sha" -f exclude_pull_requests=true -f per_page=100 --jq '
echo "The newest Check run of PR #$pr_number's head commit $pr_head_sha is $pr_run_url ($pr_run_result), which tested commit $pr_tested_sha"
if [ "$pr_run_result" != "success" ]; then
echo "That run hasn't succeeded"
elif ! pr_tested_tree=$(tree_of "$pr_tested_sha"); then
echo "The commit that run tested couldn't be read"
elif [ "$pr_tested_tree" = "$merge_group_tree" ]; then
decide true "Skipping the checks since $pr_run_url already passed on commit $pr_tested_sha, which has this exact content"
else
echo "That run tested different content (tree $pr_tested_tree)"
fi
fi
# A merge queue branch name pairs the PR with the commit it's built on, so an earlier run with this name may have passed on the same content before the PR was queued again
earlier_runs=$(gh api -X GET "$workflow_runs_api" -f event=merge_group -f status=success -f branch="$merge_queue_branch" -f exclude_pull_requests=true -f per_page=100 --jq '
') || decide false "Running the checks since the earlier merge queue runs couldn't be listed"
while read -r earlier_sha earlier_url; do
[ -n "$earlier_sha" ] || continue
if earlier_tree=$(tree_of "$earlier_sha") && [ "$earlier_tree" = "$merge_group_tree" ]; then
decide true "Skipping the checks since $earlier_url already passed on merge queue commit $earlier_sha, which has this exact content"
fi
done <<< "$earlier_runs"
decide false "Running the checks since no successful Check run has tested this exact content"
# Build the web app via the shared build workflow
build:
needs:skip-check
# Always called with the skip decision passed in, since a skipped caller job reports only as `build` and leaves the required `build / web` check missing.
# Like the jobs below, the checks still run if `skip-check` itself fails, since a skipped job counts as passing for required checks.
# Master pushes are left out because `build.yml` builds and deploys those itself.
# The web build renders with WebGL2 rather than the less widely supported and less stable WebGPU
"webgl",
# We don't have wgpu on multiple threads (yet) https://github.com/gfx-rs/wgpu/blob/trunk/CHANGELOG.md#wgpu-types-now-send-sync-on-wasm
"fragile-send-sync-non-atomic-wasm",
"spirv",
"strict_asserts",
]}
once_cell="1.13"# Remove when `core::cell::LazyCell` (<https://doc.rust-lang.org/core/cell/struct.LazyCell.html>) is stabilized in Rust 1.80 and we bump our MSRV
wasm-bindgen="=0.2.100"# NOTICE: ensure this stays in sync with the `wasm-bindgen-cli` version in `website/content/volunteer/guide/project-setup/_index.md`. We pin this version because wasm-bindgen upgrades may break various things.
once_cell="1.13"# Remove and replace with `core::cell::LazyCell` (<https://doc.rust-lang.org/core/cell/struct.LazyCell.html>)
wasm-bindgen="=0.2.127"# NOTICE: keep in sync with the `wasm-bindgen-cli` version pinned in `.github/workflows/build.yml`, `.devcontainer/devcontainer.json`, `.nix/dev.nix`, `.nix/pkgs/graphite.nix`, and `tools/cargo-run/src/requirements.rs`. We pin this version because wasm-bindgen upgrades may break various things.
wasm-bindgen-futures="0.4"
js-sys="=0.3.77"
web-sys={version="=0.3.77",features=[
js-sys="=0.3.104"
web-sys={version="=0.3.104",features=[
"Document",
"DomRect",
"Element",
@@ -131,39 +196,58 @@ web-sys = { version = "=0.3.77", features = [
vello={git="https://github.com/linebender/vello.git",rev="87cc5bee6d3a34d15017dbbb58634ddc7f33ff9b"}# TODO switch back to stable when a release is made
vello_encoding={git="https://github.com/linebender/vello.git",rev="87cc5bee6d3a34d15017dbbb58634ddc7f33ff9b"}# TODO switch back to stable when a release is made
interpreted-executor={opt-level=1}# This is a mitigation for https://github.com/rustwasm/wasm-pack/issues/981 which is needed because the node_registry function is too large
graphite-proc-macros={opt-level=1}
image={opt-level=2}
rustc-hash={opt-level=3}
serde_derive={opt-level=1}
specta-macros={opt-level=1}
syn={opt-level=1}
node-macro={opt-level=2}
[profile.release]
lto="thin"
debug=true
[profile.profiling]
inherits="release"
debug=true
[patch.crates-io]
rfd={git="https://github.com/timon-schelling/rfd.git",branch="graphite"}# TODO: Remove this once https://github.com/PolyMeilex/rfd/pull/317 is merged and released
# TODO: Remove these once the fork's fixes are upstreamed and released
**Graphite is a free, open source vector and raster graphics engine, [available now](https://editor.graphite.rs) in alpha. Get creative with a fully nondestructive editing workflow that combines layer-based compositing with node-based generative design.**
**Graphite is a free, open source vector and raster graphics engine, [available now](https://editor.graphite.art) in alpha. Get creative with a fully nondestructive editing workflow that combines layer-based compositing with node-based generative design.**
Having begun life as a vector editor, Graphite continues evolving into a generalized, all-in-one graphics toolbox that's built more like a game engine than a conventional creative app. The editor's tools wrap its node graph core, providing user-friendly workflows for vector, raster, and beyond. Photo editing, motion graphics, digital painting, desktop publishing, and VFX compositing are additional competencies on the planned [roadmap](https://graphite.rs/features/#roadmap) making Graphite into a highly versatile content creation tool.
Having begun life as a vector editor, Graphite continues evolving into a generalized, all-in-one graphics toolbox that's built more like a game engine than a conventional creative app. The editor's tools wrap its node graph core, providing user-friendly workflows for vector, raster, and beyond. Photo editing, motion graphics, digital painting, desktop publishing, and VFX compositing are additional competencies on the planned [roadmap](https://graphite.art/features/#roadmap) making Graphite into a highly versatile content creation tool.
Learn more from the [website](https://graphite.rs/), subscribe to the [newsletter](https://graphite.rs/#newsletter), consider [volunteering](https://graphite.rs/volunteer/) or [donating](https://graphite.rs/donate/), and remember to give this repository a ⭐!
Learn more from the [website](https://graphite.art/), subscribe to the [newsletter](https://graphite.art/#newsletter), consider [volunteering](https://graphite.art/volunteer/) or [donating](https://graphite.art/donate/), and remember to give this repository a ⭐!
Graphite is 100% community built and funded. Please become a part of keeping the project alive and thriving with a [donation](https://graphite.rs/donate/) if you share a belief in our **mission**:
Graphite is 100% community built and funded. Please become a part of keeping the project alive and thriving with a [donation](https://graphite.art/donate/) if you share a belief in our **mission**:
> Graphite strives to unshackle the creativity of every budding artist and seasoned professional by building the best comprehensive art and design tool that's accessible to all.
>
@@ -78,6 +78,8 @@ Graphite is 100% community built and funded. Please become a part of keeping the
## Contributing/building the code
Are you a graphics programmer or Rust developer? Graphite aims to be one of the most approachable projects for putting your engineering skills to use in the world of open source. See [instructions here](https://graphite.rs/volunteer/guide/) for setting up the project and getting started.
Are you a graphics programmer or Rust developer? Graphite aims to be one of the most approachable projects for putting your engineering skills to use in the world of open source. See [instructions here](https://graphite.art/volunteer/guide/) for setting up the project and getting started.
*By submitting code for inclusion in the project, you are agreeing to license your changes under the Apache 2.0 license, and that you have the authority to do so. Some directories may have other licenses, like dual-licensed MIT/Apache 2.0, and code submissions to those directories mean you agree to the applicable license(s).*
## License
Graphite's source code is dual-licensed under your choice of either the [MIT license](LICENSE-MIT) or the [Apache License 2.0](LICENSE-APACHE), at your option, unless otherwise noted within the repository. By submitting code for inclusion in the project, you agree to license your contributions under both licenses, and that you have the authority to do so.
"0BSD",# Keep this list in sync with those in `/deny.toml`
"Apache-2.0 WITH LLVM-exception",# Keep this list in sync with those in `/deny.toml`
"Apache-2.0",# Keep this list in sync with those in `/deny.toml`
"BSD-2-Clause",# Keep this list in sync with those in `/deny.toml`
@@ -13,6 +14,7 @@ accepted = [
"OpenSSL",# Keep this list in sync with those in `/deny.toml`
"Unicode-3.0",# Keep this list in sync with those in `/deny.toml`
"Unicode-DFS-2016",# Keep this list in sync with those in `/deny.toml`
"Unlicense",# Keep this list in sync with those in `/deny.toml`
"Zlib",# Keep this list in sync with those in `/deny.toml`
"NCSA",# Keep this list in sync with those in `/deny.toml`
"bzip2-1.0.6",# Keep this list in sync with those in `/deny.toml`
@@ -21,8 +23,6 @@ accepted = [
workarounds=["ring"]
ignore-build-dependencies=true
ignore-dev-dependencies=true
# Clearly Defined's API would occasionally (every few months) return errors for at least a full day (maybe some weird rate limiting?), but we can just disable to perform local checking (see #1653)
Loaded 100 of 1794 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.