Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo 9b8d1d00c1 Deps: craft-libs comes from storytold/craft-libs at 423b0375
storytold/craft-libs#3545 has reached craft-libs main, so every craft-libs
pin points at storytold/craft-libs again at the same revision, 423b0375,
which is on main. `cargo xtask pdf-deps` expects that revision.
2026-11-27 16:36:40 -08:00
dotCooCoo 51302b2de0 Tests: the installed profile root test runs in its own process
profile::tests::the_installed_root_is_used_once_and_must_be_absolute
(from #9233) installs the launch's profile root, which a OnceLock holds
for the rest of the process. Under cargo test the other tests of the
vectorcraft and vectorcraft-cli binaries run on threads of that process
and read the settings folder from it. When the root was installed while
prefs_dir::tests::the_font_scans_read_the_fonts_folder_next_to_the_settings
ran, the Fonts folder it had set and the settings folder it read next
differed, and the test failed. nextest runs each test in its own
process, so CI passed it.

The installed-root test now runs again in a child process of the test
binary, as crates/engine/src/tests.rs's in_own_process does, and the
font test asserts that no root was installed beside it. With one test
thread the font test runs after the installed-root test, so without
the change it fails on every run.
2026-11-27 16:29:40 -08:00
dotCooCoo a70c571415 CI: a cold cache warm leg fits its timeout and the old rolling entry goes first
After Rust stable moved to 1.100.1, main's cache warm leg built cold
and was canceled at the 90-minute timeout with three steps still to
run, so no entry was saved and every leg stayed cold. The legs now get
150 minutes, and the cache prune watch runs for 160.

The nightly cold run restores nothing, so the old rolling entry and the
new one would be in the cache together while it saves, over the 10 GB
limit. A cold cache clear job deletes the old rolling entries when the
cache warm leg starts saving (scripts/ci-clear-rolling-cache.py). It
deletes nothing when the leg fails or is canceled, and fails itself so
that re-running the failed jobs runs it again with the leg.

cache-prune.yml prunes after every CI attempt on main, so a re-run of
the cache warm leg does not leave the entry it replaced in place.
2026-11-27 16:29:27 -08:00
dotCooCoo a93ba163b6 Plug-ins: hostile, time budget and cancel tests check errors, not elapsed time
Three tests in crates/plugins/tests/abi.rs passed or failed on how long a
run took (under 5 s or 3 s), so a slow or loaded runner could fail them and
a fast one could hide a run stopped by the wrong limit.

- hostile_modules_fail_within_their_budget (was _fail_quickly) checks each
  module's error. The endless ones must end with the instruction budget, so
  a run stopped by the 60 s time budget fails the test.
- wall_clock_budget_stops_runaway_plugins gives an endless loop two slices
  of instructions: with a time budget of 0 it ends with the time budget at
  the end of the first slice, and with the default one it ends with the
  instruction budget.
- cancelling_stops_a_run_between_two_slices_of_its_budget gives the loop
  two slices: cancelled, it comes back Cancelled; not cancelled, the same
  plug-in ends with the instruction budget.

Each test fails when its check in Plugin::call_with is removed.
2026-11-27 16:25:42 -08:00
dotCooCoo 8c2ab73b81 Tests: bounded-work checks count the work instead of timing it
Six engine tests guarded against quadratic or unbounded work by timing
it (under 2, 10, 30 or 60 seconds) or by printing how long it took. A
slow or loaded machine could fail them, and a regression that stayed
under the bound passed. Each now counts the work the guarded code does
and compares it with a smaller input or with the code's own limit:

- An unknown command id or parameter key of 200,000 characters compares
  no more characters than one of 20 (edit-distance cells).
- A Word .doc with 20,000 hidden paragraphs reads at most one more Prl
  per paragraph than one with a single paragraph, and each style's
  properties are read once.
- One function-based shading filling 5,000 paths takes no more function
  evaluations than filling one, and twenty stay within the import's
  evaluation budget.
- A form decoding to 64 MiB drawn 1,000 times is walked no further than
  the page's form-content limit and one more form.
- A blend of 998 steps measures no more laid steps per object than a
  blend of 3, and one of 1,500 steps is not laid out.
- Retype of a tracked line of 450 glyphs lays out at most 20 times the
  glyphs a line of 45 does.

The counters are test-only: thread-local cells in the engine under
cfg(test), and in vectorcraft-pdf (read-count feature) and
vectorcraft-eps (new work-count feature), which the engine enables in
its dev-dependencies only. Retype's layout calls go through one helper
that counts them.
2026-11-27 16:20:23 -08:00
dotCooCoo a354d09af4 Scripts: folder listings take their time limit from the session's clock
script::folder::list and script::startup::list measured the 250 ms
listing limit (MAX_SCAN) with a real Instant. script.listInstalled,
script.startup.run and the File > Scripts menu read the folders through
them, so a test that went through any of these got a truncated listing
and missing scripts whenever the disk stalled for 250 ms.

- folder::Clock is either Wall (the real time since the listing started,
  the default) or Fixed (the same time at every check). Both list
  functions take one.
- Session::set_script_listing_clock sets the clock the two commands and
  the menu's listing job use; the app keeps the real clock.
- The script folder, startup script, scripts menu, script run and Safe
  Mode tests list with a fixed zero time, so a slow disk cannot cut a
  listing short. Direct listing calls use the test file's list helper.
- New tests check that script.listInstalled, script.startup.run and the
  menu stop at the session's clock once it is past the limit and list
  everything at the limit.
2026-11-27 16:10:28 -08:00
dotCooCoo 0528468228 Keep unchanged 3D effect options out of Undo and recorded actions 2026-11-27 16:08:40 -08:00
dotCooCoo 3f21199a7c Tests: cancel the plug-in export test on the exporter's first progress report
a_cancelled_export_stops_the_exporter cancelled from another thread after
a 300 ms sleep and asserted the elapsed time. The exporter now reports one
step before it loops forever, and the test's progress sink cancels the
token when that report arrives. The cancel lands while the exporter runs,
and the test asserts Err(Cancelled) and that the report arrived once. With
the cancel check between budget slices removed, the export ends at its
instruction budget instead and the test fails.
2026-11-27 16:06:29 -08:00
dotCooCoo 310f400b75 Tests: automation root tests wait for the app to exit, not for a 30 s deadline
The automation_args tests polled try_wait every 10 ms and failed when the
binary had not exited within 30 seconds, so a slow start on a loaded
machine failed a correct build. They now read stdout and stderr until both
pipes close, which happens when the binary exits, through the same helper
the help tests used, now moved to tests/it/main.rs as exit_output. The
helper's deadline only stops a binary that is still running.

The tests also remove DISPLAY, WAYLAND_DISPLAY and WAYLAND_SOCKET, as the
help tests do, so on Linux a binary that gets past argument parsing exits
with a display error that the exact stderr check rejects.
2026-11-27 16:04:28 -08:00
dotCooCoo 8aa8c22633 macOS: clippy -D warnings passes on the desktop app again
`cargo clippy -p vectorcraft --all-targets -- -D warnings` failed on
macOS with three dead-code errors:

- `launch_profile::child_args` and `child_args_for` have one caller,
  `single_instance`, which is not built on macOS. They and their two
  tests are now `cfg(not(target_os = "macos"))`, the same as that module.
- `app.rs`'s `discard_marked_text` lost its caller in #8800, where the
  craft UI framework took over IME routing. The framework's window layer
  discards the input method's marked text on macOS itself, so the app's
  copy is removed, along with the `NSTextInputContext` feature of
  `objc2-app-kit` that only it used.
2026-11-27 16:04:16 -08:00
dotCooCoo 9220b1c42f MCP: refused-connect tests count connect attempts instead of timing them
remote_connect_fails_fast and
remote_call_reports_nothing_sent_when_reconnect_is_refused asserted that
a refused connect took less than 1.5 s, retried up to five times. A busy
machine can hold the test thread longer than that, and on Linux a
refused loopback connect returns at once, so a second connect attempt
still passed.

Remote now opens its connection and every reconnect through a connect
function, ControlClient::connect outside tests. The tests pass a
counting wrapper around it and check that a refused connect makes one
attempt, fails without reaching a server, and that the call reports
nothing was sent.
2026-11-27 16:00:24 -08:00
dotCooCoo 1e4d67272d Links: Embed and Break Link leave images placed from DCS files linked
The Links panel's Embed and Break Link sent every selected linked row
to links.embed, which refuses an image placed from a DCS file and then
embeds nothing. With a DCS image and other linked images selected, all
of them stayed linked. Both actions now send only the linked rows that
are not DCS images, and are unavailable when only DCS images are
selected.
2026-11-27 15:54:25 -08:00
dotCooCoo a0d922c0f2 Dependencies: take every craft-libs crate from craft-libs main at 51fcc3b041
All storytold/craft-libs crates and the hayro, krilla and linesweeper
patches move from b0d422cf0c to 51fcc3b041, the head of craft-libs main
(craft-libs#3718). craft-libs main now holds what was on next, so the
pin follows main as AGENTS.md rule 10 asks. The move brings the .cmx
writer (craft-libs#2807) and the macOS Save sheet Format menu
(craft-libs#3565). xtask pdf-deps expects the new rev.

The egui patches move from b15ffe9bfc to 932a73b285, the egui rev
craft-libs main pins: craft-ui-contract at 51fcc3b041 calls
Context::set_pointer_move_gate and Context::widgets_at, which
storytold/egui adds after b15ffe9bfc.

App changes the move needs:
- AppShell's title, options, status and hint slots take a version
  function (craft-libs c417cd3050). Each passes |_| None, so every slot
  still runs in every pass.
- PartResult::hover_pos is private (craft-libs 27e8a77145). The track
  cube reads the pointer through Cx::hover_pos, which is None when the
  cube is not hovered, as the old filter on hovered was.
- craft_dxf::write_binary returns a Result (craft-libs#3347, binary DXF
  writing fails on an invalid integer). The binary DXF import test
  unwraps it.

Test changes the move needs:
- An inline slider field now shows its slider before its number field,
  and both carry the field's name (craft-libs#3553). The panel harness
  types into the number field, the part that takes typing, and the
  plug-in effect test reads the number field's value.
- A painted tool cursor's marks use the overlay.cursor token (craft-libs
  a830ff539b), so the cursor test looks for that color.
- The Keyboard Shortcuts area tabs are named by their visible label,
  "Show:" (craft-libs 702cb295c6).
- The gradient stop's color mode menu now opens over part of the stop
  editor. The test clicks the Web Color Sliders row where it lies
  outside the editor, as before, and keeps the same checks.

Cargo.lock adds what the new craft-libs crates depend on
(craft-control-protocol, craft-font-os-windows, ed25519-dalek and its
dependencies, jpeg-encoder 0.7.1 for craft-image-codecs).
2026-11-27 15:53:24 -08:00
dotCooCoo 57230b2fe4 Plug-ins: a multi-value br_table gives every target its values (wasmi 2.0.3)
wasmi 2.0.0 miscompiles a multi-value br_table whose targets take the
same values when another operand sits under those values: the targets
read their values from slots the branch never wrote
(https://github.com/wasmi-labs/wasmi/pull/2106, fixed in 2.0.2). A
plug-in that branched that way got wrong results. 2.0.1 to 2.0.3 also
fix other miscompilations, a use-after-free on resuming a call on
another store, and memory.grow past a declared maximum bypassing the
resource limiter
(https://github.com/wasmi-labs/wasmi/blob/main/CHANGELOG.md).

Only Cargo.lock changes: the workspace requirement "2.0.0" allows
2.0.3, and wasmi 2.0.3 still uses wasmparser 0.228.

The new abi test runs such a branch table for each of its targets; it
fails on 2.0.0 with the plug-in's unreachable trap.
2026-11-27 15:53:05 -08:00
dotCooCoo 7120dd34e7 Tests: panel readout copy cases hold the language guard
The integration binary from #8826 draws the Links panel's Location case in
French and German, and in an integration binary the UI language is one
value for the whole process. Under `cargo test`, which runs the cases on
threads of one process, the other five cases drew frames in French or
German, or reset the language to English under the Location case. Taps
then missed the moved readouts, and two cases failed on each run (on the
Location case and on the first-click copy cases). nextest runs each case
in its own process, so CI passed them.

Each App now holds the same language guard as control_bar_corners.rs and
selection_tools_toggle.rs: the cases run one at a time and the previous
language comes back when the app drops.
2026-11-27 15:51:37 -08:00
dotCooCoo f225bfd0a7 Artboards: the Control bar's Name field renames on Enter or Tab and Escape cancels
The Name field read the text field's latest edit event, so each keystroke renamed the
artboard and Escape renamed it back, each as its own undo step. It now reads only the
committed value: typing changes the draft, Escape restores the shown name without touching
the document, and Enter or Tab renames the artboard in one undo step.
2026-11-27 15:50:59 -08:00
dotCooCoo 365c15b49c Free Distort: an arrow nudge keeps each corner's other coordinate exact
An arrow key in the Free Distort dialog moves every corner along one axis,
but the dialog rounded both coordinates of each moved corner to four
decimals, so a corner placed with more precision drifted on the axis the
key did not move. Only the coordinates the box moved are now limited to the
view and rounded; the other coordinate keeps its value.
2026-11-27 15:47:17 -08:00
dotCooCoo 5eb4152b20 Tests: placing tests wait for the read instead of a time window
The placing tests waited on the clock in several places. The clipboard
fake let a held paste go on after 10 s, three tests polled for 400 ms
and then asserted that a file was still waiting, and the other waits
gave up after 60 s. On a slow runner those tests checked a different
order of events, and a regression in the guards that hold a placed file
back could pass.

- A test helper waits for the first file read for Place to finish and
  leaves its result for the next poll. The tests poll once after it, so
  a file that waits for a dialog, a drag or a place cursor drag is
  checked after its read has ended.
- The clipboard fake blocks until its hold is sent or dropped.
- The read hooks of the progress and cancel tests block on a channel
  instead of sleeping in a loop.
- The count of running reads signals each change, so the cancel test
  waits for the read to end without polling.
- The Place dialog's line test and the action recording test wait for
  their reads the same way.
2026-11-27 15:44:01 -08:00
dotCooCoo a202ae3468 Single instance: hand-off tests no longer depend on how fast the machine is
The hand-off tests used the app's own waits: 500 ms to connect, 2 s for
the running app and 5 s for a launch. On a busy machine an exchange can
take longer, and then forward() fails, or a refusal test passes because a
wait ran out rather than because the app refused the message.

listen(), forward() and start_at() now take the waits as a Timeouts
value; the app passes the same 500 ms, 2 s and 5 s as before. The tests
pass a 60 s guard that only stops a hung test, wait for each delivery
on the channel, and check that each refused exchange ended with an
error from the other side, not with a wait that ran out.

With a 6 s stall added to receive(), the 10 single_instance tests pass;
with the stall and the app's own waits, four of them fail.
2026-11-27 15:41:49 -08:00
dotCooCoo 9d54c7ccec Paths: a lone anchor widens the visual box only where a stroke draws it
The previous commit made PathData::bounds hold the point of a subpath of
one anchor. Node::visual_bounds measures a path from that box, so a lone
anchor that draws nothing (an open one, or a closed one under a butt cap
or with no stroke) widened the visual box by the stroke's reach. The
renderer draws a lone anchor only as the dot of a round or projecting
cap on a closed subpath (point_dots in crates/effects/src/stroke.rs).

- PathData::drawn_bounds measures the segments, and the lone anchors of
  closed subpaths when a cap draws dots. Node::visual_bounds measures
  paths and compound paths from it, falling back to the geometric box
  when nothing is drawn. Geometric bounds still hold every lone anchor.
- The .ai envelope import's box of what type's outlines paint relied on
  PathData::bounds leaving lone anchors out. It now removes contours of
  zero length from the baked pieces before measuring them, so
  a_contour_of_zero_length_paints_nothing passes unchanged.
2026-11-27 15:33:20 -08:00
dotCooCoo 2eef0b81b5 CI: the gate keeps the compiled workspace crates between runs
Turn on the shared gate's cache-workspace-crates. Each main run's
cache warm leg saves a rolling entry that also holds the workspace
crates' compiled libraries and test executables, and every leg restores
the newest one, so a pull request's shards rebuild only the crates its
changes reach. A cache prune job keeps one rolling entry on main, and a
nightly cold build restores nothing and starts the entry afresh.
2026-11-27 15:32:51 -08:00
dotCooCoo 6d134ad522 Isolation mode: an edit that removes the isolated object ends isolation mode
Clear, Ungroup, a script or any other edit that removed the isolated
object left isolation mode on an id that was no longer in the document.
Session::edit now ends isolation mode after every edit that removes the
isolated object, as Undo and Redo already did. While a symbol is edited,
removing a group isolated inside the symbol's art isolates the editing
layer again, as Exit Isolation Mode from that group does.

The paths that put an earlier document back now put isolation mode back
with it: a canceled undo group, a canceled undo scope that joined an open
group, an interaction's next preview or cancel, and the measured deferred
preview. When the edits they take back had removed the isolated object,
that object is isolated again.
2026-11-27 15:28:11 -08:00
dotCooCoo 64ada8e7fc Tests: hover memo counts hold plug-ins and hyphenation steady
The Preview Bounds memo checks the fonts, the hyphenation exceptions and
the plug-in revisions on every lookup. Other engine tests change the
hyphenation exceptions and install plug-ins on other threads, so a
change between two hovers refreshed one memo slot and
a_hover_checks_the_memo_as_often_however_many_objects_are_selected
counted 5 checks instead of 4.

- set_hyphenation_exceptions takes the font gate (test_fonts::font_change),
  as composite font changes do, so steady_fonts holds it back too.
- vectorcraft_plugins::steady (feature test-steady) gates every revision
  bump in the plug-in registry and the deferred stages the same way.
- Both counting tests in previewbounds.rs hold both guards, and the
  hyphenation round-trip test holds steady_fonts through its sequence.
2026-11-27 15:23:49 -08:00
dotCooCoo 6ed4a4511e Images: Embed leaves images placed from DCS files linked
links.embed refuses an image placed from a DCS file and then embeds
nothing, so Embed on a selection that held one DCS image and other
linked images left all of them linked. The several-images Embed now
sends only the linked images that are not DCS images, and is offered
only when one of those is selected. With one DCS image selected, the
Properties panel and the Control bar offer Edit Original and no Embed.
2026-11-27 15:18:14 -08:00
dotCooCoo a996a37bec Clipboard: tests wait for each read's answer instead of a time limit
Nine clipboard tests passed only when the test worker answered within
the app's own read limits (2 s for text and file lists, 10 s for a
paste's bitmap): on a loaded machine a slow answer failed them.

The read limits are now a `Waits` value that each `Loads` carries, set
to `Waits::APP` (`LOAD_WAIT`, `IMAGE_WAIT`) where the app opens its
clipboard. A read kept for a later paste takes the same limits, and
the core protocol's paste and reads use them instead of the constants.
Tests pass `Waits::UNTIL_ANSWERED`, so each wait ends when the answer
comes, the owner is released or the worker stops. A wait past the
clock's range has no limit. The values the app uses are unchanged.

The tests' own 5 s and 600 s waits are also unbounded now. Every
assertion is kept.
2026-11-27 15:14:56 -08:00
dotCooCoo beb52aa72e Fold Preview: time the print's settle wait on the app clock
The window waited for a changed document to settle by the monotonic
clock, so its tests slept 20 ms a frame for up to 200 frames and ignored
whether the print queue had finished.

The window now reads the app's clock (`VectorcraftApp::now`), which a
test sets through `now_override`. The tests move that clock on by a
second before each frame and wait for the print queue to finish its
work, with no sleep and no deadline. A new test checks that a changed
document is printed again only once the app's clock has passed the
settle time.
2026-11-27 15:10:12 -08:00
dotCooCoo 47058f9041 Tests: wait for the Scripts and Proof Setups reads with no deadline
The test helpers scripts_menu::finish and proof_setup::wait called
JobQueue::finish with a 10 s deadline and ignored its result. On a busy
runner a read still running on a lane past that deadline left the test
reading a partial listing. Both helpers now call finish(Duration::MAX),
which waits on the queue's end-of-job signal with no deadline, and
assert that it finished.

The test that a finished read asks for a frame waited up to 10 s for
the repaint. It now installs a host whose jobs wait until the test runs
them (ManualJobs), runs the lane on another thread, joins it, and then
checks that the frame was asked for.
2026-11-27 15:07:53 -08:00
jmvergesandClaude Opus 5.5 3ce7a70811 PDF export: a black-and-white colorized image is never smoothed
A 1-bit image mask opens as a grayscale image of black and white pixels
colorized by its fill color. The PDF export wrote it as its ink with the
pixels as an 8-bit soft mask and /Interpolate true on both. A RIP that
honors /Interpolate smooths the mask and grays its edges, so where the
same mask is drawn over itself in another ink, as separated garment art
stacks its plates, the ink below shows along every edge. The file's own
PDF part and the EPS export keep the mask hard.

A colorized image whose coverage is only 0 or 255 (the test the
Monochrome compression settings already use, now
`images::bilevel_coverage`) is written without /Interpolate. Grayscale
images keep it. krilla has no 1-bit soft mask or /ImageMask, so the
mask stays 8-bit and just isn't smoothed.

The pixelated colorized image test now uses gray pixels, since a
black-and-white image no longer asks for smoothing whether or not it is
pixelated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:35:24 +00:00
FredApps 5d70217e0c Merge pull request #8826 from yoriswind/codex/8432-panel-readout-copy
M3: Copy complete information-panel readouts on click
2026-11-27 23:29:02 +01:00
FredApps 5aed2d4cfa Merge pull request #8779 from yoriswind/codex/8687-status-bar-snapping
Status bar: add quick snapping controls
2026-11-27 23:28:36 +01:00
FredApps 24e5b56373 Merge pull request #5439 from Taha-Mahmoodi/fix/outline-stroke-context-menu
Fix #5267: Outline Stroke is in the canvas context menu
2026-11-27 23:28:10 +01:00
dotCooCoo 5433e02d8e Selection: a click inside an unfilled closed shape selects it
With Object Selection by Path Only off (the default), the Selection,
Direct Selection and Group Selection tools, Object Highlighting and a
right-click's selection now pick a closed path or compound path that
has no fill by a click inside its closed subpaths. Before, such a shape
could only be picked on its path, and a click inside started a marquee.

The inside counts only where no other object is hit: a click first
looks for what paints at the point, the same as before, and only then
for the topmost unfilled closed shape around it, so art drawn inside a
frame is still picked before the frame. Select Behind lists those
shapes after the objects that paint there, and Direct Selection in a
dynamic symbol's art picks parts in the same order. Open paths, guides
and clipping paths are still picked by their path only, and Outline
view is unchanged. With Object Selection by Path Only on, the inside of
an unfilled shape takes no click, as before.

Three tests clicked inside an unfilled square and expected nothing to
be selected: the Selection and Direct Selection center point tests and
the outside-stroke reach test. They now run with Object Selection by
Path Only on, and the Direct Selection and stroke reach tests also
check that the click selects the square with it off.

Fixes #9175
2026-11-27 13:49:28 -08:00
dotCooCoo 823619c46e .ai import: envelopes of a stroked straight line map from their stroked box
An envelope whose file saves the size of its contents with their
strokes maps from that box, with margins stored as shares of the
contents' height and width. A straight line along an axis has no
height (or no width), so it got no margins and mapped from its
zero-height geometric box instead.

Margins along a side with no length are now shares of the other
side's length (envelope_margin_lengths). The reader, the envelope's
map, leaving Edit Contents and the .ai writer all measure through it,
so a stroked line opens mapping from its stroked box and saves that
box's size again.

Docs: object.envelope.info params text, docs/mcp.md,
docs/target-app-parity.md.
2026-11-27 13:45:00 -08:00
dotCooCoo f015ccbf51 Retype: docs say which font a shape the winning font does not match takes
The font that the most selected shapes match is chosen per shape, among
the fonts that shape matches (crates/engine/src/cmd/retype.rs, `ranked`
over the part's own matches). A shape with no match in that font is set
in the first of its own fonts in the same order, so one selection can
become type in several fonts. The paragraph now says so.
2026-11-27 13:42:35 -08:00
dotCooCoo 53fb00b26c Dialogs: click, fold angle, gradient stop and link dialogs refuse drafts from before File > Revert
File > Revert keeps the document's uid and increments its revert count.
These dialogs compared only the uid, so after a revert their OK applied a
draft taken from the content the revert threw away:

- Set Fold Angle sent the line ids it opened on, and Graph drew at the
  click (the parameter dialog's `__doc`).
- A shape tool's click dialog drew at the click.
- The gradient stop popover applied its edit when the restored art was
  selected again with the same stop.
- Linked File Not Found and Find Linked Files relinked the ids they
  asked about.

Each now records the revert count with the uid and checks both. The
parameter and shape dialogs refuse OK with "The document was reverted.
Reopen this dialog to continue." and stay open, and the parameter dialog
neither previews nor rolls back on the restored content. The popover
discards the edit and closes, as it does when other art is selected. The
link dialogs show the same message and relink nothing.
2026-11-27 13:38:38 -08:00
dotCooCoo 698ec93090 Select: removing objects one at a time checks and reads only the removed ones
Taking objects out of a selection (select.toggle, which Shift-click, the
Layers panel and a script's selected = false run) checked the whole
selection again, walking the tree once it held more than an eighth of the
document, and read every selected object's paints for the fill and stroke
proxies. Deselecting N objects one at a time took O(N^2) lookups.

Session::select now checks only the objects that follow the objects it
already checked, kept in their order, so a removal needs no checks. The
selection's paints keep counts (the first fill, stroke and weight met,
how many match it, and how many there are), so the objects that leave are
taken out of them and the objects that join are read. The paints are read
again when every value matching the first one is gone and others are left,
or when that takes fewer lookups.
2026-11-27 13:37:08 -08:00
dotCooCoo ecb097d084 Fix #6310: macOS Copy puts the PDF and SVG on the pasteboard
On macOS, Copy and Cut put one format on the pasteboard: the text (a
type-only copy's text, or the SVG markup with Include SVG Code), else
the picture as TIFF. The PDF that the Clipboard Handling PDF setting
makes and the SVG that Include SVG Code makes were dropped, so apps
that paste vector art got only a TIFF or plain text.

After arboard writes the text or the picture, the other formats are
now added to the same pasteboard item: the SVG as public.svg-image,
the PDF under the system's PDF type and the PNG as public.png, in the
order Copy offers them. A type that can't be added is logged, and
what arboard wrote still carries the copy. This follows craft-libs'
offer/macos.rs. The ownership check still compares the text or
picture arboard wrote.

The Clipboard Handling sentence for PDF now names Windows and macOS.
2026-11-27 13:33:34 -08:00
dotCooCoo c5298100ee Appearance: proxies with an active row match only the targets they read
With an Appearance row active and many objects selected, the opacity
proxy (read on every repaint of the Color Wheel panel) and first_edited
stopped at the first target that answered, but ItemTarget::per_target
and per_target_of had already built a shared stack for every target.
With 30 objects selected, each call built 29.

ItemTarget::each_target and each_target_of now yield one target at a
time, and per_target and per_target_of collect them. The opacity proxy,
first_edited and the stroke proxy (which stops at a target it cannot
read) use the iterators, so a call that answers from the first object
builds no shared stack. The new test counts the stacks
built and fails with the eager form at either call site.
2026-11-27 13:32:23 -08:00
dotCooCoo 6245d6b118 Outline view: effects reshape a placed document's crossed box
In Outline mode without Show Images in Outline Mode, a placed document
with an effect that changes geometry (Transform, Roughen, plug-in
effects), its own or its group's, drew its file's art reshaped and
without the X. The effects now reshape the crossed box instead, so a
Transform effect moves the crossed box.

- While a frame draws placed documents crossed, a placed document's art
  is its box with both diagonals (PlacedDocument::crossed_art), so every
  effect and evaluation that reads that art uses the crossed box.
- Layers are drawn and measured in the mode their Layer Options give
  them: a template layer in Outline view still shows the file's art,
  and a layer or sublayer whose Preview is off shows the crossed box.
  A layer with effects of its own now follows its Layer Options too;
  before, it drew in the view's mode.
- Kept effect art, cull bounds and the areas redrawn after an edit are
  measured in that mode and kept apart per mode.

Docs: docs/ui-parity.md row done, docs/mcp.md outlineImages.
2026-11-27 13:30:42 -08:00
dotCooCoo cb0073747a Live preview: commit only the edit the dialog started
The shared dialog preview previewed into, canceled and committed whatever
edit the active document had in progress. After a dialog's preview had
ended (Preview turned off, an undo), OK ran the dialog's command on the
snapshot of another dialog's, a panel's or typing's edit and kept it in
that edit's place, losing the edit; Cancel rolled that edit back, and a
new preview replaced its preview.

The per-dialog fixes for Transform (#9584), the standalone effect
dialogs (#9626) and Flatten Transparency (#9784) each check in their own
dialog that a preview is theirs. The shared preview now makes the check
for every dialog: it records the interaction it ran in, by the
document's id and revert count and the interaction's selection
snapshot. Cancel rolls back only that interaction. With another edit in progress a new
preview does not run, and OK keeps typing in progress as its own step
and runs the command, or, with any other edit still open, is refused
with "Finish the active edit first." and the dialog stays open.

Vector Halftone dropped its preview whenever the interaction held no
halftone preview, which after a failed preview would now leave the
dialog unable to preview again; the shared preview forgets an ended
preview itself, so that reset is removed.
2026-11-27 13:25:27 -08:00
dotCooCoo 3c807e30d0 Parametric Shape: a new center, size or rotation takes a linked mask and placed gradients along
addon.pathtools.shape.set rewrote only the path and the shape's numbers, so
a linked opacity mask, placed gradients and pattern tiles stayed at their
old place when the shape moved, turned or changed size (a center-handle
drag, an explicit center, W or H with a reference point). The edit now
applies the transform between the old and new numbers to the object, as
object.scale and object.rotate do, and then sets the new outline. Scale
Strokes & Effects and Transform Patterns come from the new `strokes` and
`patterns` params or the preferences.
2026-11-27 13:22:59 -08:00
dotCooCoo 55bf6604be Scripts: app.documents lists the active document first
A script's documents[0] was the first tab, not the active document, so
scripts that read app.documents[0] as the document in front acted on
another one. The scripting guide says documents[0] is always the active
document:
https://ai-scripting.docsforadobe.dev/scriptingJavascript/objectReferences/

Each open document now records when it last became the current one.
documents lists the current document first and then the others from the
one current most recently to the one current longest ago (VectorCraft's
own rule). documents["name"] and getByName search in the same order. A
change a script makes to a document in the back switches to it and back,
and that switch no longer moves the document in the list.

Three tests that read documents[0] as the first tab with two documents
open now read documents[1].
2026-11-27 13:22:06 -08:00
dotCooCoo d0d748dd27 i18n: Turkish PPI rows read PPI instead of a producer price index
The Turkish catalog translated "PPI" as "ÜFE" and "Effective PPI" as
"Etkili ÜFE". ÜFE is the Turkish abbreviation for the producer price
index, so the Links panel's Link Info, the Preflight panel and the
Crop Image tool's PPI field showed an economics term. Both rows now
keep PPI, as the other Turkish rows that name pixels per inch do.
2026-11-27 13:13:12 -08:00
dotCooCoo c472749a87 Images: with several images selected, the Properties panel's Quick Actions and the Control bar offer Embed for the linked ones and Unembed… for the embedded ones, as they do for one image 2026-11-27 13:11:29 -08:00
dotCooCoo bf4bb07ec7 Graphs: paint opacity params text matches what a series stores
The params text of paint.setFill and paint.setStroke said a graph series
stores a path's opacity when `opacity` changed it. The commands store it
whenever `opacity` writes the topmost visible row of the kind, also when
the row already had that opacity (capture_series_opacity_writes). The
text now says so, and docs/mcp.md states the rule with the other series
paint rules.
2026-11-27 13:10:53 -08:00
dotCooCoo 477844c36d Plug-in export: write the document the dialog opened on
An exporter with parameters opens its dialog after Export As picks the
file. Export then wrote whichever drawing was active when it was
pressed, so switching tabs while the dialog was open exported the other
drawing under the first drawing's file name.

The dialog now records the drawing it opened on and its revert count.
Export makes that drawing active again and writes it, as the file
dialogs' continuations do (file_asks.rs, now through the shared
`back_to`). A drawing closed or reverted while the dialog was open is
not exported, and the status bar says why. The same pattern was used
for the Transform dialogs in #9584.
2026-11-27 12:50:32 -08:00
dotCooCoo 12e1b9189c Brushes: Scatter brush copies of stroked art are spaced by their stroked width
A Scatter brush spaced its copies by the art's geometric width, so at
100% spacing copies of stroked art overlapped by the stroke width. The
spacing now uses the art's width with its strokes (its visual bounds),
so stroked copies touch at 100%. Art without strokes is spaced as
before.

Test: scatter_spaces_stroked_art_by_its_stroked_width.
2026-11-27 12:48:57 -08:00
dotCooCoo 4adad149ac Direct Selection: a path held by its edge lands that point on other paths
With Smart Guides on, a path selected whole that Direct Selection or
Group Selection moved held by a point of its edge (a press on its fill
within 6 screen points of the edge, and with Group Selection also a
press on its stroke or, in Outline view, its outline) snapped that point
only to other anchors and centers, or lined its bounds up. It now snaps
as the Selection tool's edge hold does since #8617: the point also lands
on the other objects' paths ("path") and where paths and ruler guides
cross ("intersect"), and on a straight path the selection slides along
it until its bounds line up.

The shape tools move the selection only from its center point, which
snaps as the Selection tool's center press does, so they are unchanged.
2026-11-27 12:46:50 -08:00
dotCooCoo 325ec7305c Color: a targeted layer shows the paint of its editable art
With a layer targeted and no Appearance row active, the Fill and Stroke
proxies walked the layer itself and could show the paint of a locked
or hidden object in it, while paint.setFill, paint.setStroke and
paint.editGradient edit the layer's selected editable art. A gradient
stop edit from the Gradient, Color or Color Wheel panel then wrote the
locked object's stops onto the editable art. The proxies now read the
selected objects, as the commands do.
2026-11-27 12:45:17 -08:00
dotCooCoo 0b739a13c2 Dialogs: text style and transform dialogs refuse a draft from before File > Revert
File > Revert keeps the document's uid and increments its revert count.
Character Style Options, Paragraph Style Options, New Character Style,
New Paragraph Style and the Move, Rotate, Scale, Reflect and Shear
dialogs checked only the uid, so after a revert their preview and OK
applied the old draft to the restored document.

Each dialog now records the uid and the revert count when it opens and
compares both before previewing and at OK. OK after a revert is refused
with "The document was reverted. Reopen this dialog to continue.", as
Justification already does, and the dialog stays open.
2026-11-27 12:43:39 -08:00