* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)
* Drop a restated rule from This repository
* Remove the cleanroom xtask command, which does not exist
* AGENTS.md: correct the repository facts
The desktop app's platform modules allow unsafe; list them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Follows #8765. graphicStyle.apply with target "contents" gave every face
and edge of a Live Paint group the whole style, so faces drew the style's
strokes along their outlines and edges drew its fills. Each face now takes
only the style's fills and each edge only its strokes, with or without
add, and neither is linked to the style. An add that gives a face or edge
nothing leaves it and its link as they are, and an apply that changes
nothing records no undo step.
appearance.clear on the contents leaves a face one empty fill and an edge
one empty stroke, and appearance.reduceToBasic keeps only a face's fill
and only an edge's stroke.
Docs: docs/mcp.md, params text, docs/target-app-parity.md.
With Direct Selection, one live rectangle or live polygon selected whole now shows the Corners link in the Properties panel beside its own rows. Before, the panel showed the link only while an anchor of the shape was selected. The pop-up sets every corner of the shape. A path with Live Corners selected whole still shows no corner rows.
The Control bar and the Properties panel show a Corners link beside the
radius field of the picked corners. It opens a pop-up with the corner
kind, the radius (blank while the picked corners differ) and Relative or
Absolute rounding. Each change sets the picked corners of every selected
path in one object.setLiveShape call with items, one undo step: the
corners holding a Direct-Selected anchor, or every corner of a path
selected whole. The Properties panel shows the link while a corner is
Direct-Selected; its corner rows now cover several selected paths too,
and a live rectangle or polygon selected alone, which keeps its own
radius and kind rows, shows the link for the pop-up.
object.setLiveShape with relativeRadii: true now works on a plain path
with corners: the path keeps its outline as the base of its Live
Corners. Before, it did nothing, and relativeRadii: false added an empty
undo step. A Relative path whose corners are all uncut again keeps its
rounding, and Absolute on one with no corner cut makes it a plain path
again.
With Relative rounding, a radius is now compared as the fraction it
would store, so typing the radius the field shows, or a radius past the
corner's maximum again, adds no undo step. Before, it was compared with
the radius as drawn.
Part of #1232. Reported by XTRECY-BD.
README's What's missing no longer names Extrude & Bevel, Inflate and
Rotate; G3 and the effects-parity 3D summary name what remains: base and
Substance materials and shadows from lights after the first.
Near matching ranked every glyph of the shape's contour count and proportion
before comparing the 256 closest, and that ranking was not counted against the
point comparisons each shape and command may make, so a large selection over
many fonts could spend unbounded time there. Each glyph ranked now takes one
comparison per contour and one more from the same budget, the ranking keeps
the closest glyphs without sorting the rest, and the shares of contour length
are read without allocating per glyph.
Retype compares at most 96 loaded faces in one index: the document's
fonts, the fonts in `fonts` and the faces earlier searches of the
installed fonts loaded come first. Loaded faces past those 96 were never
compared, and the search of the installed fonts leaves loaded faces out,
so a shape only such a face matches stayed unmatched.
- type.retype now compares the loaded faces past the first 96, 96 at a
time, with the shapes that are not plain and that the first 96 do not
match, before it reads any installed file. The background search hands
those faces to the command with what it found in the installed fonts.
- A face that another version of its family and style shadows is no
longer compared ahead of the other loaded faces.
- A background search whose command fails before it takes what the
search found no longer leaves it for a later command.
- With the Retype panel's list full, installed faces count as skipped
only when a shape would start a search of the installed fonts.
- "Retype failed: internal error: its thread stopped" has a row in each
complete catalog.
Docs: docs/mcp.md (Retype installed fonts).
The glyphs of a split compound path can become separate type objects, for
example on two lines. A compound filled by the nonzero rule whose glyphs
overlap passed the paint check, and with an opacity below 100% the two objects
then painted the overlap twice. A split whose parts overlap now keeps the shape
an outline when the shape has an opacity below 100%, a blend mode other than
Normal, a gradient or pattern fill or a stroke.
Splitting a compound path copies its contours and compares each with the
others. A selected compound of a few contours with a very large number of path
elements was split however many elements it had. Such a shape is now matched
whole only, like one of more than 256 groups or 512 contours.
A near-matched glyph joins a line when its size and turn are each within the
tolerance of the line's, and the line's type then draws it at the line's size
and turn. Together with the glyph's own leftover distance, that change could
put the drawn glyph further from its shape than the tolerance: an m 4% larger
and turned 0.04 radians stayed on its line at tolerance 0.05.
The layout check now also measures, for each near-matched glyph (and each glyph
of a line whose first glyph is one), how far the change from its matched size
and turn moves the drawn outline relative to its spread, combined with its own
leftover distance, and splits the line before it when that passes the
tolerance, or when the glyph's center sits further away than its origin may.
Shapes no loaded font matches are now compared with the installed fonts
that nothing has loaded yet. type.retype reads their files one at a time,
smallest first, until each such shape matches a font it has read, and
type.retypeFonts (the Retype panel's list) ranks the matching installed
fonts with the loaded ones, up to 96 fonts in all.
- A file is read for the search and released. A face whose glyphs match
is loaded as it was read, without the family's other files, and later
searches in every open document compare it ahead of the other loaded
faces. A matching face that another version of the same family and
style shadows is loaded and not listed.
- Files over 256 MiB, and the files and faces past 2 GiB read or 500,000
glyphs drawn, are left out and counted in the result's
installed.skipped.
- A plain shape (one contour of up to four straight edges, such as a
rectangle or a hyphen) does not start the search, and matches only a
font the other shapes found.
- installed: false turns the search off; any value other than true,
false or null is an error. retype.find takes installed too.
- In the app, Type > Retype and Find Matching Fonts (the panel's button,
or retype.find from a menu or the command palette) search on a thread
of their own. After 0.4 seconds a progress window shows the files
read, with Cancel (also Esc, retype.cancelSearch). When the search is
done the command runs with the fonts it found, without reading the
installed fonts again, unless the document or its selection changed
meanwhile. Reset Retype Panel and a new search stop a panel search.
An MCP cancel stops the search between files.
Part of #4934.
A compound path whose split with the longest runs and split with the shortest
runs both failed the paint check stayed an outline, even when another complete
split (AB and CD for groups A, B, C and D) passed it. The split search now
checks the other complete splits in order, at most 32 per shape for exact
matches and 32 for near matches, and looks each run of groups up at most once,
only when the search reaches it.
With the Selection tool, a double-click on a visible corner widget of a
selected live rectangle or polygon now shows and selects the Transform
panel, where the shape's corner radius fields are, as the Rectangle,
Rounded Rectangle, Ellipse, Polygon and Star tools already do. It used to
open the Corners dialog. The tool, the selection, the document and the
undo history stay as they were. Direct Selection's double-click still
opens Corners.
Docs: docs/mcp.md (Live Corners), the ui.corners params text,
docs/ui-parity.md and docs/target-app-parity.md.
Part of #1232
Lines that a compound path of several glyphs splits into share that
shape, so the check that one line's shape comes right after the last
line's never passed for them, and each line stayed an object of its own.
Two lines of one shape now follow each other, and the other joining
rules decide as for lines of separate shapes. The lines of the existing
paint-order test are moved farther apart so they still make two objects.
With Smart Guides' Object Highlighting on, the Eyedropper now outlines
the object under the pointer that a click there would act on, with the
1.5 px layer-color outline the selection tools draw. It follows the
keys held: a plain click's source (locked and template art included,
as the Eyedropper reads them), the selected gradient mesh a click
recolors, the editable object an Alt-click gives the selection's
attributes to, and for a Shift-click the object whose color is sampled
(a blend or an envelope where its art is drawn, the art below where it
leaves a gap). Empty canvas and hidden art show no outline.
The tool finds that object with the same code its click uses: the
click is planned once (Tool::hover_object, Session::hover_object) and
the color sampler returns the object the color came from. The canvas
keeps the object found until the pointer, the keys, the document, the
selection or the tool's settings change, since finding it can sample
a color.
With Space held, a press pans the view, so no tool outlines an object
under the pointer; the selection tools showed one before.
A drawn bar, dot or ring can be the same shape as a combining mark in
one of the loaded fonts, and Retype turned it into point text that held
only that mark. On Linux, once other tests had loaded the system fonts,
the 80x40 rectangle in a_drawn_shape_is_reported_and_left_alone matched
U+05BD in DejaVu Sans Bold, so that test failed in full runs of the
engine's tests.
- When a shape would start a line and its first 16 matched glyphs
include another character's glyph, in its own font or another loaded
one, it starts the line as that character. A line's first shape is
not turned into a mark to take the glyph after it.
- When all of them are marks, the shape stays an outline and is listed
in unmatched, and the glyph after it starts the line. A lone
one-contour glyph after it (a dot after a bar) is judged alone, as on
its own.
- A mark left at the start of a part split off where type stops
drawing the outlines in place becomes the other character its shape
matches, on a line of its own, or else stays an outline. The glyphs
after it are measured for tracking again without the mark's gap.
- A mark that follows another glyph on its line is retyped with it, as
before.
- type.retypeFonts does not list a font whose glyphs match the shapes
only as combining marks.
Docs: docs/mcp.md and the params text of type.retype and
type.retypeFonts.
The remembered HSB, OKLCH and HSL now also belong to the document's undo
step. Another edit, an Undo or a Redo drops them, also when the slider
rows are hidden and the same color comes back before they show again.
docs/mcp.md: color.convert to oklch answers an object with
model "oklch" and values [L %, C, H°].
A line of two glyphs that untracked type does not draw in place takes the
tracking of the nearest tracked line in the same font, size and turn, and
keeps it only when type at that tracking draws both glyphs in place. A line
of one or two glyphs that joins tracked lines in one object takes their
tracking. The Retype row in docs/type-parity.md said other lines are set
untracked.
An interaction that previewed a command with defaultsOnly: true keeps
putting the defaults it began with back on every later preview and on
cancel, also when the latest preview gives no defaultsOnly. docs/mcp.md
says that library.use keeps item as the library item.
The end handle's drag now applies the release position before it ends, so a press let go
away from the handle without a drag event still changes the length. An edit made outside
the tool during the press ends the drag, so a later preview does not overwrite it. C and
[ ] do nothing until the drag ends. A selected compound path shows the length handles of
the paths it holds, and path.quickPenLength checks its result against the same canvas rule
as the drag.
With no path being drawn, the Quick Pen tool edits the selected paths, as the
help page describes ("Drag the anchor points or the path to edit the object",
and right-click Delete to remove a path):
- A drag on an anchor moves it, and a drag that starts on one of several
selected anchors moves them all; a drag on a segment moves its two ends.
The tool selects what it moves (select.anchors or select.segments) and
sends path.moveAnchors with interpolate, one undo step per drag, so a
segment with one moved end is turned and scaled to its new ends: a line
stays a line and an arc an arc of the same angle. A dragged anchor snaps
to Smart Guides. Escape during the drag takes it back.
- A click on an anchor selects it alone, and Shift-click adds it to the
selected anchors or takes it out. A click on an open end still goes on
drawing from it (with the path selected whole again), a drag there moves
the end, and a click on a segment starts a new path.
- With the Quick Pen chosen, the canvas context menu has Delete
(edit.clear), which removes the selected anchors or objects.
The cursor shows what a press does over an anchor, a selected anchor, an
open end or a segment. While a path is being drawn, a press adds a piece as
before. Which presses select and which move, and the drag snapping only an
anchor, are VectorCraft's own rules.
Docs: docs/mcp.md, ROADMAP, docs/target-app-parity.md, docs/ui-parity.md,
crates/tools/src/cursors.toml.
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.html
The fill check rejects a counter whose convex hull is narrower than three times the outline tolerance in some direction, so a turned strip is caught as well as an upright one, and rejects a shape whose outline is too large to flatten. Exact parts of a split compound are checked at tolerance 0 even when near matches are allowed, so a split that only exact matching found is not accepted under the wider tolerance. The tracking sentence in docs/type-parity.md names its three-glyph condition.
While the Live Paint Bucket is active, a paint or stroke command that names
no objects changes only the colors the bucket paints with. The journal
recorded the params as given, and the active tool is not journaled, so a
replay with the Selection tool active painted the selection instead.
The paint and stroke commands now take defaultsOnly: true, which keeps a
command without ids, id or item to the defaults with any tool active. When
the bucket routed a command, its journal entry notes defaultsOnly: true,
also when the params gave false. library.use (a color, gradient or pattern)
and swatch.library.add with apply note it too and pass it to the commands
they run.
- defaultsOnly is a bool. It is refused with ids, id or item, and in
stroke.setAdvanced with brush.
- With New Art Has Basic Appearance off, new-art inheritance does not
replace the defaults after such a command, unless a later step of a batch
selects another first object or changes its appearance.
- A preview with defaultsOnly: true, and the one after it, starts from the
defaults the interaction began with, and a cancel puts them back.
- paint.sampleColor with a stop and defaultsOnly reads the default's
gradient.
Test: live_paint_bucket_commands_replay_from_the_journal_with_another_tool
(engine). Docs: docs/mcp.md, the Live Paint Bucket paragraph; params text
of each command.
- paint.setFill and paint.setStroke give a graph's series marks and axis lines the opacity they write even when the object already shows it, so another mark's kept opacity no longer comes back after the graph is drawn again.
- The proxies answer no opacity whenever the Live Paint Bucket paints, which includes a Cmd+click and an Eyedropper pick armed for it.
- A swatch that is not a name is an error with an opacity instead of an opacity alone.
- Hiding the Show Opacity row, or the row turning gray, during a drag keeps the previewed opacity as one undo step and ends the interaction.
- The help text and docs/mcp.md name the picked mesh points case, the grayscale image colorize exception and the New Art Has Basic Appearance off case.
The Contour bar's distance, Graph Data's Number of Decimals and Column
Width, Map Art's surface number, the Keyboard Shortcuts dialog's Hold
Shortcut Delay, the unitless values of the 3D effect dialogs and the
number fields of Character Style Options read typed text with their own
readers, so `4x3` or `1+2` were not read in most of them. They now read
it with the shared field arithmetic. The Contour bar's distance and
Character Style Options' length fields also read a unit (`2 mm`).
Warichu Settings' Lines and Scale read text given through
`ui.dialog.set` the same way.
These fields take `%` and `°` only where they show them, and none of
them reads an exponent (`1e3`) or a space inside a number (`1 000`).
In the shared unitless fields, a unit suffix, `%` or `°` between two
digits is now refused: `1%2` read as 12. The Stroke panel's Limit reads
`2x3` as 6 instead of 23.
Docs: docs/mcp.md, docs/target-app-parity.md.