Commit Graph
7891 Commits
Author SHA1 Message Date
dotCooCoo 1d880065f3 Smooth Bridge: test a selected group of grouped circles
A selected group that holds two groups of one circle each keeps the
group with the outline, and the lower circle's group is removed.
2026-11-30 12:17:05 -08:00
dotCooCoo 96018f6d81 Merge main into fix/smooth-bridge-empty-groups 2026-11-30 12:16:57 -08:00
dotCooCoo 798a029bfc Smooth Bridge: a group the bridged circles leave empty goes
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.
2026-11-30 11:44:20 -08:00
.CooCoo d794ccda0d Merge pull request #10298 from dotCooCoo/fix/smooth-bridge-circles
Smooth Bridge: a selected group of circles is bridged
2026-11-30 11:00:51 -08:00
.CooCoo dc6beff197 Merge pull request #10281 from dotCooCoo/fix/issue-3211
Fix #3211: Text Wrap › Make wraps the area type selected with the object
2026-11-30 10:30:57 -08:00
.CooCoo 82108c11bd Merge pull request #9277 from dotCooCoo/feat/scripts-app-select-tool
Scripts: app.selectTool picks a tool
2026-11-30 09:44:47 -08:00
dotCooCoo 452281a269 Smooth Bridge: a selected group of circles is bridged
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.
2026-11-30 09:33:37 -08:00
.CooCoo 8c1dc6bb5d Merge pull request #10069 from dotCooCoo/fix/brush-options-unchanged-undo
Brushes: Brush Options and Apply Brush that change nothing add no undo step
2026-11-30 08:45:52 -08:00
.CooCoo 99bc7a0702 Merge pull request #8743 from Silvertree2010/hand/print-cut-step-repeat
Add Object > Step and Repeat for print-and-cut sheets
2026-11-30 08:44:55 -08:00
.CooCoo fee0ecfbdd Merge pull request #10134 from dotCooCoo/fix/properties-selection-summary
Performance: Properties rows read a large selection once per edit
2026-11-30 07:53:44 -08:00
.CooCoo 44e57e37d7 Merge pull request #10169 from dotCooCoo/fix/shape-builder-fill
Shape Builder: Pick Color From defaults to Color Swatches, so a picked fill fills the merge
2026-11-30 07:53:27 -08:00
.CooCoo fdb2f64121 Merge pull request #10159 from dotCooCoo/fix/move-many-selected
Performance: a move finds the selected objects' places in fewer walks of the tree
2026-11-30 07:52:53 -08:00
dotCooCoo ede596a7ed Fix #3211: Text Wrap › Make wraps the area type selected with the object
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.
2026-11-30 07:28:17 -08:00
FredApps 582fa21727 Merge pull request #10251 from storytold/fix/vectorcraft-0251-outline-and-selection
Restore Outline and Selection tool feedback and keep large PDF imports responsive
2026-11-30 16:05:20 +01:00
.CooCoo c99d4615d1 Merge pull request #10131 from dotCooCoo/fix/menu-key-drag-start
Menus: the start of a drag keeps every row's state
2026-11-30 06:56:58 -08:00
.CooCoo 35980d8aba Merge pull request #10127 from dotCooCoo/fix/panel-menu-states-one-walk
Menus: panel menu states skip three selection walks on each rebuild
2026-11-30 06:56:41 -08:00
Codex 98026915ab Check the Selection move pointer over source art and document the centre-point modifier 2026-11-30 15:26:38 +01:00
Codex 80ceb782aa Measure copied art from the active source artboard for Paste in Place 2026-11-30 13:27:12 +01:00
dotCooCoo 04ced9bee7 Performance: the check of a moved selection reads the objects at their places
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.
2026-11-30 03:33:26 -08:00
dotCooCoo 18271017b7 Merge main into fix/move-many-selected 2026-11-30 02:41:35 -08:00
dotCooCoo 8a6e6ccb26 Merge main into fix/properties-selection-summary
# Conflicts:
#	crates/engine/src/doc_state.rs
2026-11-30 02:25:24 -08:00
.CooCoo 2e330bef17 Merge pull request #10143 from dotCooCoo/fix/speed-global-edit-preview-member-list
Global Edit: moving the selected object keeps the preview without walking the document
2026-11-30 01:06:42 -08:00
.CooCoo 006106a3cc Merge pull request #10141 from dotCooCoo/fix/selection-marks-move-translate
Canvas: a move of the selection moves its marks instead of building them again
2026-11-30 01:06:26 -08:00
NetterSilver 07b4332dfc fix: Step and Repeat fill picks the artboard from the whole selection; rustfmt 2026-11-30 08:42:16 +00:00
dotCooCoo 2be42e7986 Shape Builder: saved Artwork from earlier versions switches to Color Swatches once
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.
2026-11-29 19:52:59 -08:00
.CooCoo 4f95a30c98 Images: a selected image's color mode is read from its file header (#10167) 2026-11-30 09:22:52 +07:00
.CooCoo c767960328 Merge pull request #10136 from dotCooCoo/fix/plugin-test-held-load-handshake
Tests: a held stored load waits for the test instead of a yield count
2026-11-29 18:21:32 -08:00
.CooCoo ff60b8078d Merge pull request #10132 from dotCooCoo/fix/speed-object-move-large-doc
Performance: an edit skips unchanged objects without reading them
2026-11-29 18:21:16 -08:00
.CooCoo 8fe7aff22e Merge pull request #10120 from dotCooCoo/fix/missing-fonts-check-once
Missing Fonts: the frame after an open lists a document's missing fonts once
2026-11-29 18:20:43 -08:00
FredApps da851068bf Merge current main into Step and Repeat 2026-11-30 02:45:45 +01:00
dotCooCoo 8e68c5edcf Shape Builder: Pick Color From defaults to Color Swatches
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.
2026-11-29 17:43:37 -08:00
dotCooCoo 9a58807841 Performance: a move finds the selected objects' places in fewer walks of the tree
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.
2026-11-29 16:44:27 -08:00
dotCooCoo d82a022446 Merge main into feat/match-objects-to-key 2026-11-29 15:41:29 -08:00
dotCooCoo 2960e55b6c Match Objects: a stacking match keeps clipping paths and settles Intertwine groups
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.
2026-11-29 15:40:43 -08:00
dotCooCoo 3aa41526e2 Performance: the color check stops walking objects after a second color
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.
2026-11-29 15:18:35 -08:00
dotCooCoo f11aac5aaa Merge main into feat/match-objects-to-key 2026-11-29 15:00:53 -08:00
dotCooCoo cb6703c0f1 Menus: an interaction a dialog or the font menu begins reads the menus
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.
2026-11-29 14:58:15 -08:00
dotCooCoo 1a7e524d90 Merge main into fix/speed-global-edit-preview-member-list 2026-11-29 14:48:54 -08:00
dotCooCoo d7a71b7a58 Global Edit: moving the selected object keeps the preview without walking the document
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.
2026-11-29 14:47:33 -08:00
dotCooCoo e0670403e2 Merge main into fix/selection-marks-move-translate 2026-11-29 14:09:19 -08:00
dotCooCoo 389fc65631 Canvas: a move of the selection moves its marks instead of building them again
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.
2026-11-29 14:09:19 -08:00
dotCooCoo 867a6788e4 Tests: a held stored load waits for the test instead of a yield count
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.
2026-11-29 14:04:17 -08:00
dotCooCoo 97566860ec Merge main into feat/match-objects-to-key
# Conflicts:
#	ROADMAP.md
#	crates/engine/src/cmd/plugin_call/reviewed.rs
#	crates/ui-egui/src/addons/arrange.rs
#	docs/mcp.md
2026-11-29 13:57:34 -08:00
dotCooCoo d3e02f41a1 Performance: Properties rows read a large selection once per edit
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.
2026-11-29 13:52:49 -08:00
dotCooCoo 42bd1ffdfc Merge main into fix/speed-object-move-large-doc 2026-11-29 13:03:13 -08:00
dotCooCoo aaa54f1307 Performance: an edit skips unchanged objects without reading them
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.
2026-11-29 13:03:07 -08:00
dotCooCoo 17b4758709 Merge main into fix/menu-key-drag-start 2026-11-29 12:55:31 -08:00
dotCooCoo 950467b7de Menus: the start of a drag keeps every row's state
While an interaction is open (a move, scale or shape drag, a dialog's
preview, a typing session), the menus' state key left the document
revision out, so the key changed in the frame the interaction began and
the menus rebuilt every row's state for it, on top of the rebuilds for
the press and the release. A rebuild costs about 8 ms on small documents
and about 160 ms with 10,000 objects selected.

An interaction now records the revision it began from, and the key uses
that revision while the interaction is open. The key stays the same as
a drag begins and through its previews, and changes when it ends.

The new test drives a Selection tool move through the whole app and
counts the rebuilds in each frame: one for the press and one for the
release, none as the move begins.
2026-11-29 12:55:18 -08:00
dotCooCoo 7a09189a88 Menus: panel menu states skip three selection walks on each rebuild
The menus rebuild every panel menu's states on each edit and selection
change. With 10,000 objects selected, three of those menus walked the
whole selection for values they did not use or had already read:

- Make Opacity Mask's check sorted the selection into paint order for
  its outermost objects before testing whether the selection has one
  subject root, and it is enabled without that sort for any other
  count. The check now sorts only for one root and no target.
- The Transparency menu built the panel's full values (opacity, blend
  mode, isolation and knockout compared across the selection) to read
  its first target. It now reads that target alone
  (`Session::transparency_target`), and checks Make Opacity Mask only
  when that object has no mask, the only case whose rows show it.
- The Color and Color Wheel menus asked the session whether the fill
  and stroke differ, once in the Color menu and twice in the Color
  Wheel menu. They now read the proxies' per-revision cache, which the
  Tools panel's proxies fill on the same revision.

On a test document of 10,000 rectangles, all selected, one pass over
the panel menus' states took 24 to 31 ms before and 16.5 to 17 ms after
(release build, four passes each).
2026-11-29 12:32:19 -08:00
dotCooCoo 340edf90b2 Merge main into fix/missing-fonts-check-once 2026-11-29 11:42:08 -08:00