feat: Unified SVG shape editor — circle, polygon, polyline, path, ellipse#455
Draft
feat: Unified SVG shape editor — circle, polygon, polyline, path, ellipse#455
Conversation
…path and ellipse extensions Co-authored-by: jogibear9988 <364896+jogibear9988@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add unified shape and path editor for SVG and CSS
feat: Unified SVG shape editor — circle, polygon, polyline, path, ellipse
Feb 28, 2026
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.
The designer had no point-editing support for
<circle>,<polygon>,<polyline>elements, and the existing path/ellipse editors were implemented but never registered in the default service bootstrap.Changes
SvgElementExtension— new element type supportSVGCircleElement: renders 4 cardinal handles (N/E/S/W); dragging any handle adjusts radiusrwhile keeping center fixedSVGPolygonElement/SVGPolylineElement: renders one draggable handle per vertex; supports shift-constrained axis-lock_commitElementChange(): writes backr(circle) orpoints(polygon/polyline) viaextendedItem.setAttributeonPointerUpso changes flow through the undo serviceSvgElementExtensionProviderSVGPolygonElementandSVGPolylineElementtoshouldExtendpredicateDefaultServiceBootstrapPathExtensionProvider— activates the full bezier/cubic path editor for<path>by defaultEllipsisExtensionProvider— activates the rx/ry handle editor for<ellipse>by defaultindex.tsEllipsisExtension,EllipsisExtensionProvider,LineExtension,LineExtensionProvider,RectExtension,RectExtensionProviderfor use by third-party pluginsExample: polygon vertex editing
Circle radius editing follows the same pattern — four handles at
(cx, cy±r)and(cx±r, cy), all mapping back to a singlerattribute.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.