Repository navigation
M3: Width tool depth and the new-art appearance template (M3.64, M3.65) - #58
Merged
Merged
Conversation
… discontinuous points Double-clicking a width point opens Width Point Edit (Side 1, Side 2, Total Width, a link keeping the sides equal, Adjust Adjoining Width Points, Delete; dialog `widthPoint`, also `ui.widthPointEdit`). Shift-click selects several width points, which drag and widen together as one undo step; Alt-dragging a point's centre copies it (`stroke.widthPoint.copy`); dropping a point onto another makes a discontinuous point (two points at the same t), and the stroke's width steps there. `stroke.widthPoint.set` takes `adjustAdjoining`, keeps a discontinuous point when only its widths change, and `stroke.widthPoint.remove` takes `indices`. Flipping a profile along the path swaps the sides of its steps; `document.inspect` reports `widthPoints`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… with nothing selected, New Art Has Basic Appearance) With nothing selected, Stroke panel edits (stroke.set / stroke.setAdvanced: cap, join, dashes, arrowheads, profile...) and a graphic style clicked in the Graphic Styles panel (graphicStyle.apply, add too) set up the next object drawn: its stroke options, fills, strokes, effects, opacity and blend mode, linked to the style. The Appearance panel's New Art Has Basic Appearance (appearance.setNewArtBasic, preference newArtBasic, on by default) now works: off, new art takes the whole appearance of the last selection. paint.default resets the template, appearance.newArt reports it, and with nothing selected the Stroke panel shows its stroke and the Appearance panel its rows. PaintDefaults gains the template appearance, opacity, blend mode and style. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of M3 (Paint & appearance). The Width tool gets Width Point Edit, multi-select, Alt-copy and discontinuous points, and new art can inherit an appearance template.
widthPoint, orui.widthPointEdit {id, index}). It has Side 1, Side 2 and Total Width with a link, Adjust Adjoining Width Points, and Delete.stroke.widthPoint.copy {id, index, t}).stroke.widthPoint.set {adjustAdjoining?},stroke.widthPoint.remove {indices}.document.inspectreportsstrokeOptions.widthPoints.PaintDefaultsgainsappearance,opacity,blend,styleandinherited. The preferences gainnewArtBasic(on by default).stroke.setandstroke.setAdvancedset up the next object drawn (cap, join, dash, arrowheads, profile…). Shapes, lines, grids, Pen, Pencil and Curvature all use it.graphicStyle.apply(withaddtoo) sets the template. New art is linked to the style, and the style's gradients land on the new object's bounds.appearance.setNewArtBasic {on?}, the Appearance panel's flyout), new art takes the last selection's whole appearance: every fill, stroke, effect, opacity and blend mode.paint.defaultresets the template, andappearance.newArtreports it.docs/mcp.mdanddocs/control-protocol.mdcover the commands and dialog.Known limits:
Checks
Rebased onto
d974093(#57).cargo xtask cipasses all 7 steps (fmt, clippy, test, assets, brands, layers, wasm): 1,852 tests, 0 failed.New tests:
🤖 Generated with Claude Code