category_fields reached clippy's cognitive complexity limit (31/30) once
main took #8086. The Num arms move into num_row and num_field_row, next
to bool_row and choice_row; the rows draw and save as before.
Over the path's first anchor, a click closes the path on that anchor; over
an end of another open path, it joins the two, and the segment arrives
along that end's own handle. The preview ended at the pointer and arrived
without a handle, so the segment moved by up to the pick tolerance at the
click and changed shape when the other end was smooth. The preview now
ends on the anchor the click uses, with that anchor's handle, and picks
the anchor at the pointer before snapping, in the order a press does.
Part of #8296.
The transform tool treats a null reflect, copy or origin, and a null
numeric step, as given, but its inputSchema allowed only the non-null
types, so a client that validates against the schema could not send
them. Each of those properties now also allows null. The transform row
in docs/mcp.md says a step that is neither a number nor null is an
error, and that a null dx or dy counts as 0 and still runs the move.
A kind-only object.setLiveShape call now leaves each rectangle whose
corners already have the kind as it is, even when its transform keeps
a scale, and changes only the other targets. The Corner menu applies a
pending tool edit before it reads the selected rectangles. The popup
test checks that the list opened before it picks the Chamfer row.
With no document open, the Asset Export commands are listed dimmed,
but a pick of one still opened the Asset Export panel. A pick of any
result that is drawn dimmed now leaves everything as it is, and the
status line says why the command can't run, as the row does.
Placing an angular, radius or diameter dimension no longer reads the
lines of the dimensions in the document, which only a linear dimension
can line up with. A linear dimension still reads them with Smart Guides
off, so it lines up when Smart Guides are turned on while it is placed.
docs/dimensions.md no longer says the level can come from a dimension
anywhere in the document: the tool reads at most 20,000 objects.
Each 24 px stamp is now placed 6 pt wide, the size of the Scatter
Shapes art, so a 1 pt stroke on a 10 pt line shows at least one stamp
with every preset. The test checks a 10 pt line as well as the 180 pt
line.
The loader change that read the clipping path a PNG or TIFF keeps also
changed File > Open and File > Place of plain images. It is now #8561,
with its tests, params text and docs, and this branch reads files as
main does.
For a distorted image, Relink and Update Links now read the new file's
clipping path from the PNG or TIFF it is stored as when the reader gives
none, as they already do for the old file. Unembed of a distorted image
from a PSD or PSB file, with or without a folder, therefore keeps the
clip group of that file's clipping path, and so does a later Relink to
the written file.
- Test: tests_psdread::unembed_keeps_the_clipping_path_of_a_distorted_psd
(RGB file kept as PNG, CMYK file kept as TIFF, path and folder).
- Docs: docs/mcp.md, links.unembed params text, the progress-doc line.
The i18n test of the `search` rows now also checks that no two rows of
one catalog add the same word. Such a word was given to only the first
row's group, so a search for it did not find results through the other
group.
The same-frame check now compares the joined run text with the full text as well as
checking that every run is superscript, so an empty or shortened result fails.
Readings of a shape are capped by those tried, not those kept, so a shape
whose every reading fails stops at the cap. The layout check grows a
window from each line start, doubling while the type draws the outlines,
and starts the next line at a mismatch, so a line split at every glyph
costs about twice its glyphs, not half their square; a glyph budget
leaves anything past it as outlines. A tracked line of 450 glyphs: 259 ms.
The typo search counted two swapped letters as one edit only when they
stayed next to each other, so "rectgale" (g and a swapped, n left out
between them) was 3 edits from "rectangle" and found nothing. Each
letter added between two swapped letters, or left out from between
them, now counts as one more edit, so "rectgale" is 2 edits from
"rectangle" and finds the Rectangle Tool. The count still keeps only
the last bound + 2 rows and stops as soon as a row passes the bound.
Docs: docs/target-app-parity.md.
The dialog test for a point now compares the previewed lines' end points
across the External, Internal and All choices, confirms OK with each choice
and checks that the kept lines are the previewed ones, then undoes.
The params text, docs/mcp.md and the parity doc now say "at most" the
touching tolerance, matching the comparison in the code, and the parity doc
gives the tolerance's value.
The lone-glyph rule looks at lines as the outlines lie, before the layout
check splits them, so tracked one-contour letters (L, I, T, H, E) become
type. A shape keeps every glyph and pose it fits exactly, upright first
(an L, and a turned L half round; an I upright or upside down), and the
line around it chooses; a one-glyph line may turn to another candidate
to take the next glyph.
The whole-outline check flattens the shape once per shape, samples every
corner and points twice the tolerance apart, and asks a flat uniform grid
of segments. With Microsoft YaHei loaded: 300 CJK outlines in 350 ms
(1.9 s before), one line in 25 ms. FontDb::outline reuses
outline_uncached, and the compositing test covers knockout_shape.