When outlines replace circles that sit in different groups, the circles
that go left their groups behind with nothing in them. Each group or
compound path left empty now goes in the same undo step, and so does
each group above it left empty in turn; layers and sublayers stay.
Smooth Bridge refused a selected group with "select two or more circles
to bridge", even when every object in the group was a circle, so
grouping circles first and selecting the group did nothing. The command
now takes the objects inside each selected group (at any depth; a
clipping group stays one object), so a group of circles is bridged in
place, inside the group. A group that holds anything other than a circle
is still refused, as before.
The dialog's Reach field counts a selected group's objects too, so it is
available when a selected group holds three or more circles; a circle
selected together with its group counts once.
Make set the wrap option on every selected object, the area type
included, and the wrap resolver never wraps an object that has the
option, so selecting the object and the type together and choosing Make
left the type as it was.
- Make leaves a selected type object with another selected object above
it in its layer out of the wrap objects, and takes the option off it
if an earlier Make set it there. Text Wrap Options leaves it out too.
- Make warns in the status bar when no area type lies below any of its
wrap objects (the object is below the type, or the type is point
type).
- Make and Options record no undo step when nothing changes.
Docs: docs/mcp.md, the text_wrap tool description and the command
params text.
blend_render_consistency, direct_handle_mirror, ellipse_drag_anchors,
eraser_open_fill, group3_reference, path_fill_hits, pen_space_handle,
preflight and scissors_snap were each a test binary of their own. They
now are modules of crates/engine/tests/it, with their tests unchanged,
so the engine's tests link nine fewer binaries.
The files that stay separate change process-wide state (installed
plug-ins, Safe Mode, the font database, color settings, the working
directory), are run by name from CI or xtask (the Affinity corpus
tests, script_corpus, import_fuzz), or compile for about a minute on
their own (command_sweep), which would make every edit to tests/it
rebuild it.
Docs that named the old paths name the new ones, and the preflight
command in docs/production-preflight.md runs `--test it preflight::`.
After a move, the check that a view can move the selection's marks
instead of building them again looked each moved object up by id three
times: the object, its parent's id and the parent. With 10,000 objects
selected that was 30,000 lookups after the edit. The check now keeps
each object's place from the transform and reads the object and its
parent there, so the move looks each object up once, as before.
Leaving the Shape Builder saved every one of its options, so preferences
from earlier versions hold pickColorFrom "artwork" whether or not it was
picked, and kept the old default after Color Swatches became the default.
The preferences now carry toolSettingsVersion, written as 1 once a tool
setting is stored. Applying preferences without it changes a saved
Shape Builder pickColorFrom "artwork" to "swatches" and writes the
version, so Artwork picked after that is kept at the next launch. A
saved "swatches" and preferences without a saved pickColorFrom are
unchanged.
Docs: docs/mcp.md and the tool options params text.
While the Shape Builder is active, a fill picked from a swatch or a color
changes only the current fill, and the selected art keeps its own. With
Pick Color From set to Artwork, a merge takes the look of the art, so the
picked color never reached the merged shape and the tool looked as if it
could not fill.
Pick Color From now defaults to Color Swatches: a merge fills with the
picked color, and the Left and Right arrow keys step through the color
swatches. A pickColorFrom saved with the preferences is kept, so a saved
Artwork stays Artwork; preferences saved without one take Color Swatches.
The shapeBuilder.merge command still defaults to artwork when its
pickColorFrom is left out.
Docs: docs/mcp.md and the tool options params text.
With 10,000 objects selected, object.move walked the document's tree five
times and looked each object up by id three times. It now walks the tree
three times and looks each object up once.
- The selected roots (for the menus, for Move, Rotate, Scale and the
other transforms, for Copy and Cut, and inside an isolated group) are
put in paint order and reduced to their top-level objects from one walk
instead of two.
- A transform finds the objects' places once for Transform Patterns and
for the edit, instead of once for each.
- After a transform, the check for a pixel-aligned compound path reads
the parent at the object's place instead of looking the object and its
parent up by id.
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.
several_colors kept looking up the remaining ids, walking the remaining
children of a group and the rest of a pattern tile after it had found two
colors. It now stops as soon as the second color turns up.
CI failed `the_font_menu_preview_reads_the_menus_when_it_ends`: with the
state key holding the revision an interaction began from, the key no
longer changed when the font menu's preview began, so the menus were not
read then, though commands that check for an open interaction change
state at that point and the menu stays open while it previews.
The key now also holds whether an interaction that the active tool did
not begin is open. A tool's drag still keeps the key as it begins; a
dialog's, a panel's or the font menu's preview changes it as it begins
and as it ends. `Interaction::by_tool` reads the flag for the UI crate.
With one object selected, the preview of the objects Start Global Edit
would take walked every selectable object again after each edit. After
an edit that replaced only the selected object, and left it the same
shape, size and appearance (a move), the same objects match, so the
outlines found before are kept.
The check compares the two documents: the layers may differ only in
the selected object and in the layers and groups that hold it, which
must be the same apart from their contents; the symbols and the rest
of the document must be the same. The selected object's form, box,
geometric size and fill and stroke are compared within a millionth of
the matching tolerance, since a move rounds the form differently in its
unit box. Any other change walks the document as before.
The preview is now also empty while a part of a dynamic symbol
instance is selected, as Start Global Edit is refused then.
The canvas kept the selection's outlines, anchors and dots only while the
document revision stayed the same, so every move command, nudge and drag
step built them again from every selected object. With 10,000 selected
rectangles one build took about 26 ms in a release build.
A move of whole objects now records the documents before and after it
and the distance (DocState::moved). The record is made only when each
moved object is still the node the transform left (no later pass, such
as the pixel grid snap, changed it), none is a member of a blend, and
every object the selection shows, the key object and the key anchor's
object included, is a moved object or inside one. Copies, scales, moves
of patterns alone and moves that resize type areas make no record.
The canvas moves its kept marks by that distance when the record names
the document they show, or the document a drag began with. It also keeps
them through a new revision of the same document and selection, as at
the end of a drag. Every other change builds them as before.
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 an edit the selection keeps no record of its paints, so the Fill
and Stroke chips and the Stroke and Width Profile rows looked up the
groups around every selected object for Live Paint faces and edges each
time they were drawn. DocState::live_paint_covered_kept keeps an empty
answer for that version of the document and those objects.
The Recolor quick action listed and sorted every color of the selection
to see whether it held more than one. Session::several_colors_used reads
the same objects and pattern tiles and stops at the second color.
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.