View > Show Curvature Comb (view.curvatureComb) draws the curvature comb
of the selected paths, and of each path in a selected compound path,
while edges show. Each segment gets 16 evenly spaced teeth along the
normal, on the outer side of the bend, each as long as the curvature at
that point, and a line joins the tips in the path's layer color. A bend
with a radius of 100 screen points gives 20-point teeth at any zoom.
- vectorcraft-geom: curvature_comb samples the signed curvature of a
subpath. Straight segments give teeth of no length, points with no
direction give none, and the line through the tips breaks at those
points and at cusps between teeth.
- The comb draws at most 20,000 teeth, shared among the selected paths
by their number of segments, so a large selection gets fewer teeth
everywhere instead of losing whole stretches.
- The toggle is a view setting: it is not saved in the document, makes
no undo step and rejects parameters.
Docs: docs/mcp.md, ROADMAP progress log.
Fixes#10659
A raster width or height that needs more than 64 or less than 0.01
pixels per point was written at the clamped size with no note. The
export now adds a warning naming the requested and the written size,
for MCP export and the CLI's --width and --height alike.
Assigning fillColor or strokeColor on a text range compared the color as
given with the paint the characters have. In a CMYK document an RGB color
is stored as CMYK, so assigning the RGB color the text already stores ran
text.setRangeStyle again and recorded an undo step that changed nothing.
The comparison now converts the color through the text's own document
(its color mode and color settings), so the same assignment records no
step, and text in a background RGB document keeps an RGB color assigned
to it.
The text paint setters came with #9304.
- object.rasterize and Document.rasterize refuse clipBounds that reach
none of the selected objects' own bounds, including a rectangle in the
gap between two of them, instead of replacing the art with a
background-only image.
- imageCapture checks its destination again on every write the export
makes and as the file is committed, so a destination that becomes a
link to an open document or a linked file while the art renders is
refused.
- imageCapture refuses a destination whose real path is not valid UTF-8
instead of writing under a name with its bytes replaced.
- A missing linked file's name in the other Unicode normalization form
counts as the linked file in folders that ignore the form (macOS, and
casefolded folders on Linux).
- The hard-link tests skip on volumes without hard links.
- docs/mcp.md: imageCapture rounds clip dimensions to the nearest pixel;
rasterize rounds fractional dimensions up.
- recolor.pickTheme with an enabled clipping opacity mask: white mask art
over one of three squares lets only that square's color through, black
mask art hides all three, and inside a curved clip group the masked art
shows only where the mask and the clipping path both let it.
- recolor.pickTheme with a blend: a marquee over a middle step returns the
colors of both end objects, also when a clip group around the blend
hides the end objects.
- Pie legend labels past the wedge measurement limit take the contrast
most of their series' wedges show (2 of 3 dark gives dark, 1 of 3 gives
light). The limit is read through a thread-local in tests, as the
Extrude & Bevel face limit is; the shipped limit is unchanged.
The Gradient panel's number fields kept an unfinished value when the
panel switched to another stop, midpoint, freeform point or object
with the same value. With stop 2 selected, typing `20+` into Opacity
and then selecting stop 3 left `20+` in the field, and typing `1` with
Enter gave stop 3 21% instead of 1%. Location, Angle, Aspect Ratio,
Repeats and a freeform point's Opacity and Spread did the same.
Each of these fields now passes what it edits to
`NumberField::edit_target`: the gradient behind the active proxy
(`Session::gradient_owner`), the selected objects and symbol part, and
the selected stop, midpoint or point. When that key changes, the field
drops the unfinished text and shows the new target's value.
`StopOwner` derives `Eq` and `Hash` so it can be part of the key.
- A document added outside a command while edit.undoGroup.begin is
open joins the group: its two edits are one "Job" step, and one undo
takes both back (Session::add_document).
- Canceling a group rewrites a batch's journal entry: a dropped step
that left another document in front becomes document.activate with
that index, so the edit made after the group replays in the same
document (keep_batch_steps).
- Renaming a graph design to its own name succeeds and records no undo
step, and the design list stays the same.
Each test fails with the covered lines removed.
- PSD slices: a version 7 or 8 descriptor that lists more than 10,000
slices, objects nested 17 deep and lists nested 17 deep are refused
with a warning, and 16 levels of either still open.
- .pcraft: a 12000 x 12000 canvas leaves the preview with the "too
large to combine" note before any layer is read.
- .af files: Multiply keeps its blend mode, and Linear Light imports as
Normal with one warning however many objects use it.
- action.batch: an unknown destination is refused, and destination
"folder" without destinationFolder is refused before any file opens.
- The pump applies a Color Picker answer only while the row is the one the
picker answered; a row that ui.dialog.set changed in between takes neither
the color nor the swatch, and the status line says the rows changed.
- An excluded row offers no Tint slider, since recolor.apply skips its art;
the row keeps its tint.
- A row picked from a group swatch that groupColors removes (null) offers no
Tint slider; its chip keeps the tinted color, which the art takes unlinked.
- docs/mcp.md and the recolor.apply params say a null swatch is no swatch.
- object.rasterize with ids refuses objects whose nearest clip group or
clipped layer differs, before rendering: the image goes where the last
object is, so mixed sources would be clipped by another object's path.
- Document.rasterize reads the image id from the command's result inside
the run's savepoint, so an id above 2^53 binds the new RasterItem and a
missing id undoes the edit.
- Document.imageCapture refuses a destination that is another name of an
open document's file or a linked file (same device and inode, or same
volume and file index), and on Unix any file with other hard links,
which an in-place write would change under every name.
- Docs: gaps.md and target-app-parity.md list what rasterizing and
capturing still lack; mcp.md states the clipping rule, the hard-link
rule and that a later OS write failure can leave some files written.
An Image Trace object keeps its source image as its first child. object.newGroup
with index 0 put the new group below that image, so the group stopped being a
tracing. Index 0 in an Image Trace object is now refused before anything
changes; index 1 puts the group directly above the source image.
The index parameter came with #9048.
A file.new step replayed from a journal or the Actions panel rounded
artboardLayout.rows and then refused a result over 1000, so a step with
rows 1000.5 or 5000 stopped the playback. The rows count now follows the
columns rule: it is rounded, must be 1 or more, and is kept to at most
1000. Recent stores the kept count. docs/mcp.md says the same.
replace_runs reserved old.len() + 2 * changes.len() runs. For 2,000
numbers that is 4,001 runs on every preview change, while push merges
neighbors with equal style and the output usually keeps about
old.len() runs. The vector now starts at old.len() and grows when
formatting splits a run.
This changes only the initial allocation, so no test can fail without
it; the existing long-text and styled-output tests still pass.
file.new and file.newPresets.save read `preset` and `presetCategory`
with str_param, so a value that is not a string was dropped and the
call went on with the default settings or the search of every category.
An unknown category reported "no preset called" instead of naming the
category, and a presetCategory without a preset was dropped.
Each of these is now an error, with the same "unknown category" message
file.newPresets gives. Null still leaves a param out, and a replayed
journal step reads the params as before, so saved steps still play.
presetCategory came in with #9295.