feat(canvas): add editable vector layers and spline workflows - #9194
Open
DustyShoe wants to merge 38 commits into
Open
feat(canvas): add editable vector layers and spline workflows#9194DustyShoe wants to merge 38 commits into
DustyShoe wants to merge 38 commits into
Conversation
Preserve assigned point modes during handle editing and add regression coverage. Rename path edit actions to Apply/Cancel and update modifier hints. Keep vector path stroke width visually consistent across canvas zoom levels.
- add closed path creation from the starting point - improve handle direction selection and zoom-aware path interaction - add non-destructive whole-layer vector transforms - preserve editable geometry during vector layer operations - group path editing sessions into atomic undo steps
- integrate vector path creation into the Shapes tool - add outlined rectangles, ovals, polygons, polylines, and freehand paths - add multi-point selection, grouped movement, smoothing, and spline deletion - expose trace width for active vector layers - add closed-path fill and inpaint mask materialization - expand vector editing and geometry test coverage
DustyShoe
marked this pull request as ready for review
August 9, 2026 12:10
DustyShoe
requested review from
JPPhoto,
Pfannkuchensack,
blessedcoolant,
dunkeroni and
lstein
as code owners
August 9, 2026 12:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds an end-to-end MVP for editable vector layers on the Canvas.
A
vector_layerstores multiple open or closed cubic Bezier paths. Paths remain editable and serializable until the user explicitly materializes them into a raster layer or inpaint mask.The implementation now covers the complete core workflow and is ready for architecture, UX, and code review:
User-facing workflow
Path creation
There is no separate Path Tool. When a vector layer is selected, the existing Shapes tool creates editable vector outlines:
Vector shapes are outlines only. They are not stored as filled vector shapes.
Vector edit mode
A vector layer can contain multiple paths. In Edit mode:
Point, handle, path, and preview sizing remains usable across canvas zoom levels.
Layer operations
Vector layers participate in the normal layer stack and support:
Materialization
Materialization is explicit and nondestructive. Source vector paths are preserved.
Implementation
vector_layerto the Canvas entity model, Redux state, selectors, adapters, renderers, layer UI, context menus, and compositor integrationCurrent limitations / out of scope
isClosed = true; visually overlapping open endpoints are not treated as closedVerification
Automated coverage includes vector-layer state and undo behavior, project serialization, Merge Down, transforms, Bezier geometry and smoothing, freehand fitting, hit testing, and closed-path materialization.
Latest local checks:
pnpm lint:tsc