The CJK row lists custom kinsoku sets as done, through Type › Kinsoku
Shori Settings… (#7229); custom mojikumi sets and the Mojikumi Settings
dialog stay missing. The Retype row no longer lists the Properties
panel's Quick Actions among the missing ways to open the Retype panel,
since its Retype Quick Action does that (#8778).
Merging main made DIALOGS one entry short: Offset Objects and Match Objects
both joined it, so vectorcraft-ui-egui did not compile. The table now
declares seven entries.
A stacking match moved a clipping path out of its clip position and could
move a member out of an Intertwine group with its old overlap tiers. It now
refuses to move a clipping path, refuses a destination that would nest
Intertwine art, and clears the tiers of members that leave their group.
A stacking or rotate-only match no longer needs bounds on the source. A
size match measures each target after it is sized and turned, in its final
frame, and is refused when a target can't take the requested size, instead
of reporting success with the size unchanged. A target with no bounds that
needs to turn is refused.
HeldLoad in the plug-in tests held a stored module's load for at most
1,000,000 yield_now calls and then let it go on its own. On a busy test
host that limit passed before the test released it, so the held file
loaded early: a_grant_given_elsewhere_since_the_load_removed_one_is_kept
and a_stored_module_without_permissions_ends_its_grant_when_it_installs
failed in a full engine run and passed alone.
- The hook now waits on a condition variable that release() and the
drop set. A load that runs on the test's own thread is not held and
sets gave_up, so a load that is no longer in the background still
fails the test instead of hanging it.
- stored_plugins_load_without_holding_the_plugin_changes_lock waited at
most 100,000 yields for the plug-in changes lock to be free; it now
waits until it is free.
- canceled_loads_forget_the_grants_of_what_they_installed releases the
held load before canceling, since cancel waits for a running load up
to its 10 second deadline.
- a_query_runs_while_the_plugins_load checks which commands wait for
the loads before it runs document.info.
After every edit, the pixel grid, color mask, Objects on Path, Shaper and
symbol instance passes, and the inline graphics refresh, pair each object
with its counterpart from before the edit. Each pass read both objects to
compare their ids before it found that they were the same node, so moving
one object in a layer of 20,000 objects read all of them in four passes.
The color mask pass is new since v0.24.1, and object.move became slower
than in that release.
The new vectorcraft_doc::changed_nodes does the pairing for all six. An
object that is the same node at the same position is skipped by a pointer
comparison; only changed and new objects are looked up by id.
object.move of one rectangle in a document of 20,000 objects, release
build, median CPU time of 2,000 moves: main 1.25 ms, this change 1.08 ms,
v0.24.1 1.06 ms. The passes' share of the move went from about 30% to 5%
in a profile.
Typing 10 into X in a millimeters document stored 28.35 pt instead of
28.3464567 pt, because the X and Y setters rounded to two point
decimals. They now only clamp. The flat view also wrote the map back
through the box on every frame, rounding the offsets again; it now
writes the map only when the box was edited.
Extrude & Bevel's Depth and bevel Width and Height, Revolve's Offset,
the classic Extrude & Bevel and Revolve rows, and the Map Art X and Y
rows showed points in a document set to millimeters, inches or another
unit. Each row now goes through Param::length, so its field shows and
reads the document's unit while the effect keeps points. The rows set
no decimals, so a typed 10 mm is kept unrounded and Up steps by the
shown unit's own step.
The doc comment on bottom_controls still said the tools scroll above the controls in a short rail. The Tools panel's rail now uses footer_scrolls, so the controls scroll with the tools and the rail draws the rule above them.
The frame after a document opens checked whether its Missing Fonts dialog
waits by building the whole dialog (opening::may_switch), and the dialog
pump then built it again to open it. Each build walked the document's type
and resolved every font it names: 6.5 ms over the two calls at 20,000
objects.
The rows are now kept in CanvasCache::missing_fonts for the document's
content version and the font database's generation, the same key Type ›
Find Font's cache uses, and both calls read them. An edit or a font that
loads while the dialog waits makes the next call list the fonts again. The
Fonts folder next to the document is still looked up when the dialog opens.
Rows are dropped once their document no longer waits.
text.missingFonts's answer is unchanged; its rows and its folder are now
two engine functions, missing_font_rows and fonts_next_to_document.
Tests count the row lists (one for the check and the open together) and
check that a document edited while its dialog waits lists its new font.
With one object selected and the Selection tool active, or while Global
Edit is on, every frame copied each highlighted outline out of the kept
list and made one overlay per object, which the canvas flattened and
stroked again. With 10,000 matching objects that was most of a 27 ms
frame.
highlights and similar now return the kept outlines as a shared
Highlights, grouped by layer color with a revision that changes only when
the outlines are found again. The session sends one Overlay::Outlines per
color, and the canvas shows it as a SelectionOutline keyed by that
revision, so the lines are stroked again only when the outlines or the
view change.
craft-libs 186a229c8d holds storytold/craft-libs#4261, so a properties
dialog keeps its bound tab when a measuring frame ends before its body
runs. The style_dialog! wrapper no longer saves and restores the tab
around that frame for Character Style Options, Paragraph Style Options
and New Character Style or New Paragraph Style.
New tests open Character Style Options on Advanced Character Formats,
New Character Style on Character Color, and Document Setup on
Transparency, Type and Color, and check that each tab is still shown
after the first frames. With craft-libs before that change they fail
with the dialog back on General.
The status bar's Zoom field, Zoom Presets menu, Rotation menu and artboard
navigator were one memoized view keyed on the whole canvas view, so every
frame of a wheel pan changed the key and ran all four again. The Zoom field
reads only the view's zoom, and the status bar reads only the zoom of the
view the field commits.
- The Zoom field and Zoom Presets menu are their own memoized view, keyed on
the zoom instead of the canvas view, so a pan replays them.
- The Rotation menu and the artboard navigator are a second memoized view, so
a zoom change runs only the zoom controls.
The new test counts the runs of each view over ten pan frames and four zoom
changes; before the change the pan ran the navigation controls ten times.
The culling box of every path a click or hover passes asked whether the
path draws geometry effects by reading its effects twice: once on the
path itself, and again in the walk of the path and what it holds, which
starts at the path. The walk alone now answers, so a hover over many
plain paths reads half as much.
The walk also stops at the first object with an effect, for drawn art
and for a clipping path's region, instead of visiting every member of a
large compound path or group after the answer is known.