The tests that count the layouts the Type tool keeps read vectorcraft_text::layout_inputs()
through its cache key. Tests in the same binary that add a font or change the hyphenation
exceptions bump it, so a count running beside one saw every frame laid out again
(type_overlays_keep_at_most_frame_layouts_max: 2051 instead of 2). Counting tests now hold a
shared test-only lock for reading and tests that change those inputs hold it for writing.
While a linear dimension is placed with Smart Guides on, the tool reads
the lines of the other dimensions again when the document changes, so a
dimension a command hides, locks or deletes stops being a level, and one
shown again or grouped is a level again. The preview of the dimension
being placed is left out of the lines and out of the 20,000 objects the
tool reads.
- A path made into a guide draws without its strokes or effects, so its
preview bounds give no corners.
- The members of a compound path draw with the compound path's own
appearance, so only the compound path's preview bounds give corners.
- Another path's anchor right on a preview bounds corner takes a click
on the anchor that corner stands in for, so the point links to that
path.
- A corner that its path cannot hold a point at, as on a stroked dot
whose anchors all coincide, is not snapped to, so a click by the dot
picks its anchor.
- The pointer test before measuring a path includes the right and
bottom edges, as the 8 pixel distance test does.
Docs: docs/dimensions.md and docs/target-app-parity.md name paths made
into guides and compound path members among the art without corners.
A corner of a path's preview bounds took a Linear pick from every anchor
of its own object within 8 pixels, so the top, left, right and bottom
anchors of a small stroked circle, and the anchors of a rotated stroked
shape when zoomed out, could no longer be picked.
- The corner now takes the pick only from the holding path's anchor at
the same corner of the object's geometric bounds. Any other anchor,
of that object or of other art, that is nearer the pointer takes the
point, and the nearest anchor wins a tie as the topmost.
- The path that holds a point picked on a corner is kept from the pick,
instead of being worked out again from the point's position, so a
point that only happens to lie on a corner links to what is under it.
A path deleted between the clicks holds nothing.
- A corner of a compound path whose supplying member is hidden or
locked is not snapped to.
- The hovering test checks the "anchor" label at the corner, and a new
test covers the anchor ring right on the end of a dimension's line.
Docs: docs/dimensions.md and docs/target-app-parity.md say that only the
four corners are snapped to, by VectorCraft's own rule, not the edges of
the preview bounds, a group's own strokes or effects, or type; that a
corner point starts no construction guides; and that the dimension
measures W and H when it is drawn, since a later stroke weight change or
a scale with Scale Strokes off moves the point with the anchors.
A window opened over a dialog (Import Shortcut Set over Keyboard
Shortcuts) held only the modal window drawn last in the pass before it
opened. When the dialog had an alert of its own drawn after it, the new
window held the alert instead, and when the new window closed the dialog
started again at its top. A second modal window that opened in the same
pass, such as an alert of the new window, was also counted as opened over
the dialog.
- A window opened over others holds every modal window drawn in the pass
before it opened. Only the first modal window drawn after `over_parent`
is counted as opened over them.
- `modal::drawn_this_pass` reads the pass from the record of the windows
drawn in each pass, in place of a key of its own.
- Save for Web measures Preview in Browser with `widgets::button_width`,
as the button is drawn, and translates the label once.
- The reopen test covers an alert drawn after the dialog before the other
window opens and checks which windows each one holds. The Save for Web
test compares Preview in Browser with the frame of the download speed
list instead of its text. The test of buttons inside a dialog's body
also covers a stop's message box.
docs/dimensions.md now says that the other dimension, and every layer
and group it is in, must be visible and unlocked, and that the tool
reads at most 20,000 visible, unlocked objects, from the frontmost back.
An edit to one side while the link is off now keeps it off when the four
values become equal, so the next edit changes one side only. Writing
`bleed` through ui.dialog.set lets the link follow the values each time,
also when the same values are written again.
A catalog's search rows are now checked together: a word that two rows
add to different groups fails the i18n test, naming the word and both
groups. A word repeated for one group, and a catalog with no search
rows, still pass.