Commit Graph
23685 Commits
Author SHA1 Message Date
BFlat 1411d28618 Merge pull request #9782 from jmverges/fix/ai-type-spot-ink
.ai import: type set in a spot ink keeps its ink
2026-11-28 11:12:05 +07:00
dotCooCoo 944ba1c0c1 Direct Selection: a press on a member of a selected group keeps the group
With a group selected, Direct Selection treated a click on one of its
paths as a click on an unselected path: it selected that path alone, so
a drag moved only that path. The tools checked whether the path itself
was in the selection and ignored a selected group around it.

A path inside a selected object now counts as selected whole:

- A click on its fill keeps the group selected, and a drag from its
  fill or one of its anchors moves the group whole.
- A click on one of its anchors or segments selects that anchor or
  segment alone, as for a selected path.
- Its anchors show the selected-anchor cursor and highlight, and an
  object above the group does not take a press on one.
- Group Selection adds the group above the outermost selected one, and
  keeps the selection when that is the top group.

This applies to the Cmd/Ctrl press the Selection tool lends Direct
Selection too.
2026-11-27 20:11:45 -08:00
BFlat 721582b419 Merge pull request #9813 from jmverges/fix/pdf-stencil-hard-mask
PDF export: a black-and-white colorized image is never smoothed
2026-11-28 11:11:43 +07:00
BFlat efdb0fbfe5 Merge pull request #9757 from Hassan1305/fix-9227-offset-pasted-clip
Paste: a pasted copy of a clipping path is an ordinary path, so Offset Path works on it (#9227)
2026-11-28 11:10:32 +07:00
BFlat c693786275 Merge pull request #9759 from Hassan1305/fix-9320-random-uniform-scale
Transform Each: Random with the same horizontal and vertical scale keeps proportions (#9320)
2026-11-28 11:10:18 +07:00
dotCooCoo 3935a0775d Keep Place import state tied to its source entry 2026-11-27 20:03:44 -08:00
BFlat 1e413f5368 Merge pull request #9845 from dotCooCoo/fix/placed-document-tests-without-timing
Tests: placed document tests wait on handshakes instead of timers
2026-11-28 11:02:05 +07:00
.CooCoo e883b8a49c Merge pull request #9789 from dotCooCoo/fix/fontlist-test-global-fonts
Tests: the font list tests hold back other threads' font changes
2026-11-27 19:58:32 -08:00
.CooCoo 4c376b6914 Merge pull request #9790 from dotCooCoo/fix/canvas-tests-profiles-generation
Tests: ui-egui tests that load a color profile run in their own process, so the profiles generation stays fixed
2026-11-27 19:57:48 -08:00
.CooCoo bdcc2d92de Merge pull request #9825 from dotCooCoo/fix/panel-readout-copy-language-guard
Tests: panel readout copy cases hold the language guard
2026-11-27 19:57:09 -08:00
dotCooCoo c72b9c8f7a Color: with_active keeps the working settings on its thread too
cms::with_active put its settings in place of the active settings on
its thread, but cms::working() still read the process-wide working
settings. Code inside with_active could therefore read active settings
from one context and working settings from another, and a set_active
on another thread changed the working half while the scope ran.

Inside with_active, working() now gives the working settings of the
context it was given: the ones for_document put a document's profiles
in place of, else that context itself. use_document_profiles and
for_document still read the process working settings, because they
install or keep process-wide contexts. Outside with_active nothing
changes. The app calls with_active only with for_document contexts
(canvas panes and the color mode change on open), whose working
settings are the process ones, so the app reads the same working
settings as before.
2026-11-27 19:56:23 -08:00
dotCooCoo 6927affc24 CI: the cold cache clear waits for the warm leg's own save and reads every cache page
scripts/ci-clear-rolling-cache.py:
- The 160-minute wait is timed from the cache warm leg's start, not from
  the script's start. The clear job starts with the run, and the leg
  starts after gate / select legs and a free runner. The job's timeout
  goes from 170 to 200 minutes to leave room for that delay.
- The leg counts as saving when its Post Setup step (the gate-setup
  action's cache save) starts, not when any Post step starts. A leg that
  ends canceled or failed before that step succeeds deletes nothing and
  exits 1, as a leg that failed before its save already did.
- actions/caches is read one page at a time, sorted by creation, until a
  page holds fewer than 100 entries.

scripts/ci-clear-rolling-cache-tests.py checks the script with recorded
API answers, and Nightly check runs it when either file changes.
2026-11-27 19:55:45 -08:00
dotCooCoo 5dda611524 Transform: the corner radius labels start their column
With Corner Radius unlinked, the four corner rows (Top Left, Top Right,
Bottom Right, Bottom Left) put their labels in a form column that aligned
each label against its field, so the shorter labels started further in
than Bottom Right. The rows now use an inline form whose captions share
one column, so every label starts the column and the radius fields after
them still line up, in the Transform panel and in the Properties panel.
2026-11-27 19:53:50 -08:00
dotCooCoo 612d01adec Tests: the Retype progress window test holds the app's clock still
tests::retype_runs::the_progress_window_shows_a_search checked that the
window is not shown before its delay while the app's clock ran on the
monotonic clock. When 0.4 s passed between starting the search and the
first frame, as on a loaded machine, the window was already due and the
test failed with "not before the delay".

The test now sets now_override to 0, as the trace, opening and placing
progress-window tests do, and makes the search old enough by moving its
start back. Its assertions are unchanged.
2026-11-27 19:51:52 -08:00
dotCooCoo da02049ce1 Dialogs: Artboard Options and the light editor space their groups with the gap tokens
Artboard Options put a fixed 8 pt between its groups, and the light editor a fixed 4 pt below the
Move Light button, on top of the row gap. Artboard Options now stacks its groups a section gap
apart, and the light editor shows the light list with its sphere and the Light Settings rows as two
groups a stack gap apart. No add_space calls remain in the crate.
2026-11-27 19:13:26 -08:00
dotCooCoo 81d4dcc6ea File formats: export .cmx files
document.export and Export As write .cmx exchange files with 32-bit
coordinates through craft-cdr's write_cmx, in the layouts the .cmx
reader reads. The chosen artboard is the file's page, or with Use
Artboards each chosen artboard is a page of one file, and each layer with
art on a page is a layer of that page.

- vectorcraft-metafile gets painted_layers: the WMF writer's walk of the
  visible art, layer by layer, with each fill's and stroke's solid paint,
  its miter limit and the swatches of the document and of the documents
  it places.
- The export keeps CMYK, RGB, gray, spot colors at their tints and
  Registration; type is written as outlines, and gradients and patterns
  as one color. The warnings name images, clipping masks, transparency,
  art past a page's edge, dash offsets, dashes aligned to corners, miter
  limits, and each loss the writer reports: nonzero fills written
  even-odd, long paths, rounded dashes, shortened names, low spot tints,
  and spot colors without a name or a known color.
2026-11-27 19:12:32 -08:00
dotCooCoo 61d4c573c1 DXF import: the symbol-name and layout tests count the work instead of timing it
many_by_block_looks_import_in_linear_time and
many_paper_layouts_are_read_in_linear_time checked for quadratic work by
timing the import (under 4 and 5 seconds), so a slow machine could fail
them and a regression that stayed under the bound passed. They now count
the work in test builds:

- the names `unique` tries for a new symbol: 4,000 symbols named by one
  block try fewer than 8,000 names (8,002,000 without the per-label
  suffix memo);
- the layout names the paper-layout de-duplication compares: 10,000
  layouts compare at most 10,000 (49,995,000 with a list in place of the
  set).

The counters are thread-local cells under cfg(test); release builds do
not count.
2026-11-27 19:07:30 -08:00
dotCooCoo 62f1abe5bd Scripts: collection reads look up names such as -1 and 1.5
The indexer hands a key that is the text of a number to the collection as
a number, so pageItems["-1"] and documents["1.5"] read as positions and gave
undefined, and "-1" in pageItems was false, even when getByName("-1") found
the object. pageItems and documents now take only array indices as
positions and look up any other number by its text as a name, giving
undefined when nothing has it. index(key) still takes a number as a
position.
2026-11-27 18:58:46 -08:00
dotCooCoo b3917f89e8 Locks: dropping a lock holder unlocks its file
The plug-in store turn, the Data Recovery area hold, the script grants
lock and the hang report file each released their file lock only by
closing the file. The lock stays held while any copy of the handle is
open, and a child process that any thread starts holds a copy until it
runs its program. While one was starting, the next turn on the plug-in
store waited, an app found its own recovery area busy, a grants change
timed out, and the next launch left a hang report alone.

Each holder now unlocks the file when it is dropped, as #9837 does for
the nightly session and the GPU start file. The engine's three locks
share one type, `store::LockedFile`. A left hang report that a launch
locks to read is held the same way.

Each new test keeps a copy of the handle open, drops the holder and
takes the lock again.
2026-11-27 18:58:40 -08:00
dotCooCoo 2fc711da77 Dimension: Linear points snap onto preview bounds edges, groups and stroked type
With Use Preview Bounds on, a Linear point landed only on the four corners
of the preview bounds of a path or compound path. A group's own stroke or
effects and stroked type widen the bounds that W and H show, but gave no
corner to pick, and a click beside a stroked edge snapped to the stroke's
centerline.

- Stroked type, and a group or layer with fills, strokes or effects of
  its own, now give the corners of their preview bounds. A group's corner
  is held against the member path whose own box reaches nearest to it. A
  point on type has no link and stays where it was picked. A group or
  layer holding dimension artwork gives no corner, since its bounds take
  in the dimensions.
- A click that no anchor, corner, line end, guide, grid or pixel snapping
  places lands on the nearest point of an edge of the preview bounds
  within 8 pixels when no segment or dimension line is nearer. The point
  is held against the path holding the edge's nearer corner.
- Group members count against the same per-move member work as compound
  paths; a group holding more than one move may read is not read again
  for that revision.

Docs: docs/dimensions.md, docs/target-app-parity.md.
2026-11-27 18:55:32 -08:00
dotCooCoo 1d66710671 Selection: Cmd/Ctrl-clicks step through grouped objects under the pointer
With the Selection tool, the first Cmd-click (Ctrl on Windows and Linux)
now always goes to Direct Selection or Group Selection, also over a
selected object: it picks the object under the pointer, a member of a
group included, and arms Select Behind. While Cmd stays held, each
further Cmd-click over the selection selects the next object under the
pointer, counting the members of groups one by one, and comes back to
the topmost after the last. Letting go of Cmd (a pointer, hover or key
event without it), choosing another tool or switching documents ends it.

Before, the first Cmd-click over a selected object selected the object
behind it at once, and Select Behind stepped through whole groups, so a
member lying under another member of the same group could not be
reached that way.

- doc::hit::leaves_at lists the objects a Direct Selection click picks
  under a point, topmost first, in one traversal of the document; a
  clipping mask or a group drawn with its own geometry effects falls back
  to repeated hit tests. The list stops at 256 objects.
- The session keeps the arming (Session::behind_armed) and passes it to
  the tools as ToolContext::behind_armed.
- Docs: docs/control-protocol.md (ui.pointer), docs/mcp.md,
  docs/target-app-parity.md and docs/ui-parity.md.
2026-11-27 18:47:39 -08:00
dotCooCoo efb7911139 Scripts: assigning documents throws in strict mode and is ignored otherwise
The global `documents` has only a getter. The docs and the module and
test comments said only that assigning it keeps its value. They now say
that the assignment is ignored outside strict mode and throws a
TypeError in strict mode code or with `#strict on`, and the test also
checks the `#strict on` case.
2026-11-27 18:46:40 -08:00
dotCooCoo a335fbbf02 Docs: unfilled-interior selection scope and fill eligibility
The Path Only preference entry in docs/mcp.md now says the click inside
an unfilled closed path does not select it in Outline view. Both docs
state the condition as a click that hits no object's fill, stroke or
path there, so the topmost of two overlapping unfilled paths is still
picked. The #6625 fill eligibility entry now says hidden-only and
None interiors are picked with Path Only off when nothing else is hit.
2026-11-27 18:42:51 -08:00
dotCooCoo 64eb88e604 Plug-ins: web worker runs end on failure, deadline and automation as on the page
- A panic while a held run's output is applied ends the run, so the
  documents go back to their state before it, and ending a held run
  drops the output handed in for it.
- The worker loads a plug-in with the limits the page sends with the
  run, so its memory limit applies.
- A worker that is ready only after the run's deadline is not sent the
  run, with or without a dialog open.
- A run that holds the documents and fails while a dialog is open ends
  at once and frees them.
- A plug-in command's dialog that automation confirms runs the command
  on the page and returns its result.
- A plug-in file opened or dropped on the web whose worker check fails
  is reported in the Can't open dialog, not only in the status bar.
- The web README lists connect-src among the CSP directives the app
  needs.
2026-11-27 18:39:30 -08:00
dotCooCoo 4ec043813a Color Wheel: contrast lines stain picks for a symbol object with no fill
With a picked object of a dynamic symbol instance whose fill or stroke
is None or a pattern, the contrast lines measured picks unstained,
although a solid pick there is mixed towards the instance's stain when
drawn. Picks are now measured with the stain, as for a solid color;
gradients are still measured unstained.
2026-11-27 18:33:32 -08:00
dotCooCoo ad9210bcca Restore canceled Composite Fonts sample zoom 2026-11-27 18:29:10 -08:00
dotCooCoo 3dac89fe53 Outline view: test the crossed box in envelopes and blends of placed documents
In Outline mode without Show Images in Outline Mode, an envelope holding
a placed document distorts the document's crossed box, since the
envelope reads the art that PlacedDocument::art gives while placed
documents are crossed. Each step of a blend of placed documents is a
placed document itself, so it is drawn crossed.

- outline_mode_warps_an_enveloped_placed_documents_crossed_box: an Arc
  warp of a placed document draws the same pixels as the same warp of
  its crossed box as a plain path, and the file's art with Show Images
  in Outline Mode on.
- outline_mode_draws_each_step_of_a_blend_of_placed_documents_crossed:
  the step between two placed ends is crossed, and drawn uncrossed with
  the option on.

Docs: docs/ui-parity.md row, docs/mcp.md outlineImages.
2026-11-27 18:12:47 -08:00
dotCooCoo 5466829792 PDF import: complexity tests count the work done instead of timing it
The four tests of the pre-open stream scan and the page hash test
asserted elapsed time (5 s and 60 s), so a loaded machine could fail
them and a slower but still bounded scan could pass them.

- streams.rs: a test-only counter adds up the bytes the scan looks at:
  in each helper that walks the file, in each charge to the scan's
  budget, and once for each step of the main reading. The tests assert
  at most 32 bytes looked at for each byte of the file. The largest
  case today looks at 21.
- editing.rs: a test-only counter adds up the page content the hash
  decodes. The test asserts no more than the hash limit plus the one
  stream that goes past it.

Each counter assertion fails on a broken version: strings read to the
end of the file instead of 64 bytes (131,076 bytes a byte), each
stream keyword reading back 64 KiB (7,937 bytes a byte), and every
page decoding the shared stream again (300 MiB decoded).
2026-11-27 18:03:03 -08:00
dotCooCoo b3d19b5760 Clipboard: the Wayland pipe tests send with no idle limit
a_read_stops_at_its_limit and a_copys_data_is_sent_through_the_pipe_and_closed
send more than a pipe holds through a default `Sends`, whose idle limit is
the app's 2 s `IDLE_WAIT`. When the test thread took more than 2 s between
reads, the send gave up: the first test then got the bytes sent so far
instead of the "larger than 2 MiB" error, and the second got only part of
the data.

Both tests now send through `Sends { idle: LONG, .. }`, as
pastes_that_read_nothing_hold_a_few_sends_at_most does, so each send ends
when the reader takes the data or closes the pipe. The second test still
checks that a default `Sends` uses `IDLE_WAIT`. Every assertion is kept.
2026-11-27 18:00:50 -08:00
dotCooCoo baad987df5 Tests: complexity tests count work instead of timing it
Eight tests in effects, brush, tools and trace bounded their run time
with Instant::elapsed. Each now counts the work the bounded code does
and asserts that count instead:

- effects: the subpaths Offset Path offsets after Transform copies
  move behind it (1 for the rectangle, 5 for five leaves)
- brush: the calls a misbehaving bend map gets, at most what the
  fitting depth and the chord count allow
- tools: the points Liquify's simplify measures (five per anchor) and
  the anchors it moves (one each), and the objects the eyedropper's
  hit tests may visit (within the work limit)
- trace: the named logo colors compared with those kept (ten per
  color), the lookups that drop repeated swatches (one each) and the
  swatch colors compared with the picture's colors (each distinct
  swatch once per color)

Each count fails when the bounded step is removed or made to repeat.
2026-11-27 17:58:50 -08:00
dotCooCoo 477c861f62 Keep parity status and revision history unchanged 2026-11-27 17:45:10 -08:00
dotCooCoo 05cce47980 Keep parity status and revision history unchanged 2026-11-27 17:45:05 -08:00
dotCooCoo 57b4516494 Keep parity status and revision history unchanged 2026-11-27 17:45:01 -08:00
dotCooCoo ef0dc640b2 Keep parity status and revision history unchanged 2026-11-27 17:44:57 -08:00
dotCooCoo 551ba6649c Keep parity status and revision history unchanged 2026-11-27 17:44:53 -08:00
dotCooCoo 346af4b349 CI: cargo xtask ci warm records its build units for the cache trim
In the gate leg that saves the dependency cache, craft-common-actions'
rust-cache action names a file in CRAFT_CACHE_UNITS, and its cache-trim
action keeps only the build units that file names. xtask wrote nothing
to it, so every warm leg logged "cache-trim: no unit record, so the
target directory stays as it is" and the saved entry kept the old
builds of every dependency still in Cargo.lock.

With CRAFT_CACHE_UNITS set, each cargo build of `cargo xtask ci warm`
runs with --message-format json-render-diagnostics. Cargo's JSON
messages go to the record, and diagnostics stay readable on stderr.
xtask records its own build first (cargo build -p xtask), since
`cargo xtask` builds it before xtask can record anything. Without the
variable the commands run as before.
2026-11-27 17:34:23 -08:00
dotCooCoo 6e88608a4d Plug-ins: loader, registry and dialog tests wait on handshakes instead of spin counts
The plug-in loader, registry and dialog unit tests decided their results with
yield-count spins (up to 100,000,000 tries) and a 10 s recv_timeout. On a
loaded machine a spin could run out before a worker sent, and a test failed
without a fault.

- Loader tests block on the workers' outcome channel (Loads::record_next) and
  on the jobs' start channel. The stuck-thread tests keep the outcome channel
  of the dropped load and receive the stuck job's outcome, which its worker
  sends after it stops counting the thread as stuck. The window test checks
  that taking outcomes leaves the start limit where it was.
- The registry revision test holds the set and waits for a hook that install
  runs right before it asks for the write lock. The folder-order test drives
  the load on the test thread and receives the other two files' outcomes
  while the first file waits.
- The dialog test counts the conditions Manifest::visible checks and fails
  once it checks more than one per named parameter, so a check that does not
  end fails the test.

Every assertion is kept.
2026-11-27 17:11:33 -08:00
dotCooCoo 90749b1646 Tests: text tests count work and wait on handshakes instead of the clock
Six tests in vectorcraft-text passed or failed on how fast the machine
ran them. They now check work counts and handshakes:

- Layout speed (1,000 characters, and 10,000 under each composer):
  laying out twice the text takes at most 2.5 times the steps, and at
  most 32 steps a character. The steps are the bytes shaped, the clusters
  the single-line composer reads and the line starts the every-line
  composer weighs at each break, counted by a test-only counter.
- Many one-run paragraphs: the runs the paragraphs look through stay
  within 4 per paragraph.
- A contour-point caret on a huge composite reads no more glyphs than
  the lookup's budget, and a shape whose readings all fail tries no more
  readings than the cap.
- The font menu's quick list is read on the test thread while the font
  scan is held. A list that waited for the scan would hold the installed
  fonts, so the list's content decides the result. The 10 s timeout only
  releases a call that hangs.

Two font folder tests slept 50 ms to get past the file system's clock
tick. They now set the folder's modification time with
File::set_modified.
2026-11-27 17:10:42 -08:00
dotCooCoo 8b02390a61 Tests: placed document tests wait on handshakes instead of timers
The render crate's placed-document tests decided results by wall-clock
time:

- The gate that holds the background worker opened by itself after 10 s,
  so a test that forgot to open it still passed. It is now a mutex and a
  condition variable with no time limit, opened when the guard that
  shut_gate returns is dropped (also when the test fails).
- settle polled busy() every 5 ms for up to 10 s. It now waits on
  placed_document::wait_idle, which a condition variable signals when
  the last pending bitmap is finished.
- The self-placing document test asserted that drawing took under 10 s.
  It now asserts how deep the drawing went (at least 2 levels, at most
  MAX_DEPTH), read from a test-only counter kept by the depth guard.
2026-11-27 17:03:49 -08:00
dotCooCoo 5552e8a015 Color Wheel: contrast measures a painting tool's color without the selection's drawing
While the Live Paint Bucket or the Shape Builder is the active tool, the
proxy shows the color the tool paints with, so color.contrast no longer
takes the selected objects' opacities and blend modes for it, and
selected objects drawn differently are no longer an error. This brings
the change from #9358 onto this branch.
2026-11-27 16:55:54 -08:00
dotCooCoo ee3e7611b4 GPU: an ended start unlocks the start file
The start file's lock had the same fault as the nightly lease: it was
freed only when the file was closed, so a child process that held a
copy of the handle until it ran its program kept the file locked. The
next start then took the file for another copy of the app that was
starting, and did not read or write it. Under cargo test,
gpu::tests::a_damaged_or_unreadable_start_file_is_ignored failed this
way while the installed-root test started its child process.

StartFile now unlocks the file when it is dropped, and a new test holds
a copy of the file's handle while a start ends. The test guard from
e94b74eea4 (by mockydevs), whose write side was removed in #8800, kept
only its read side and no longer stopped any test from starting a
program. The unlock replaces it, so the guard has been removed.
2026-11-27 16:54:40 -08:00
dotCooCoo de8c87c194 Plugins: test-steady is on when the crate is tested in its own shard
The gate's test shard 4 builds vectorcraft-plugins without
vectorcraft-engine, which was the only crate that turned the
test-steady feature on, so `cargo xtask ci shard` stopped at its
feature check on every shard. vectorcraft-plugins now turns the
feature on in its own dev-dependencies, as vectorcraft-pdf and
vectorcraft-affinity do for their test features.
2026-11-27 16:51:29 -08:00
dotCooCoo 2a476af2b8 Scripts: charge an indexer's object and key to the run's data limits
Reading `object[k]` on an object of a host class with an indexer copied
the object's class name and handle, and a name key, to the indexer
without charging them to the data limits. A member call on the same
object was charged and could be refused. The indexer now reads the
object and a name key the same way, so `object[k]` throws a RangeError
when the handle or the name exceeds the limits.
2026-11-27 16:47:00 -08:00
dotCooCoo 502d264853 Canvas: render worker tests no longer depend on wall-clock time
In unit tests the canvas no longer starts render worker threads, so every
frame renders on the UI thread, as with VECTORCRAFT_SYNC_RENDER set and as
the thumbnail worker already does. Before, any canvas test that drew
without its own worker raced real threads, the first frame waited a real
16 ms for the worker, and the measured render time decided whether the
next frame counted as slow.

- raster.rs: the first-frame wait and the render time go through
  first_frame_grace() and render_ms(). In tests they read thread-locals
  (no wait, 1 ms), so a frame's outcome is the same on every run.
- panes/tests.rs: wait_ready no longer sleeps 5 ms per frame for up to
  400 frames. The pane pictures render in the frame that asks (the test
  context runs background jobs inline), so it runs at most 4 frames.
- canvas/tests.rs: the_render_worker_waits_for_a_frame_only_as_long_as_asked
  checks the time-up case with a zero wait and the late frame with a
  barrier and an unbounded wait, in place of a 30 ms sleep, an elapsed
  time assertion and 5 s bounds.
- New test: a first frame the worker finishes within the wait shows in
  the frame that queued it.
2026-11-27 16:46:40 -08:00
dotCooCoo 37567e8c5a Nightly: an ended session unlocks its lease
A nightly session's lease is a file lock, which the system frees only
when every copy of its handle is closed or the lock is unlocked. A
child process that any thread starts holds a copy of every handle until
it runs its program. When a session ended during that time, by its
controlled return or by the caught panic that frees the lease for the
successor a graphics restart starts, the next launch found the lease
held and kept no session record. Under cargo test, three
nightly_session tests failed this way while the installed-root test
started its child process.

Session now unlocks the lease when it is dropped. A new test holds a
copy of the lease's handle while a session completes and while one is
dropped, and the next session takes the lease each time.
2026-11-27 16:46:36 -08:00
dotCooCoo fec0e5ab75 Tests: the screenshot trial steps the app's clock instead of the wall clock
tests::automation::a_screenshot_is_issued_by_the_apps_frames_and_written
failed on a loaded machine with "screenshot 0 timed out: no frame was
presented within 8 s": the capture's settle delay and its 8 s deadline
started on the wall clock inside ControlChannel::settle, so a slow run
reached the deadline before a frame issued the capture.

The app now times control requests and captures on its own clock,
VectorcraftApp::instant: the monotonic clock, or now_override seconds
after the app was made when a test sets it. run_control admits each
screenshot with ControlChannel::settle_at at that instant, and the
drain, the request-expiry check and issue_captures read the same
clock. Behavior outside tests is unchanged.

The test starts the app's clock twice the deadline past the wall clock
and steps it one frame per pass, so the capture is issued after its
settle delay on that clock. With the admission or issue still on the
wall clock, the test fails with the timeout error above.
2026-11-27 16:45:53 -08:00
dotCooCoo 10a1be94f1 New Document profiles: Use Profile Defaults switches the default fill, stroke and font
file.newProfiles.applyDefaults {name} gives the active document the
Default Graphic Style and [Normal Character Style] of another category's
New Document profile, as one undo step and none when nothing changes. The
swatches, patterns, symbols and brushes the profile's style paints with
come along, its colors are converted to the document's color mode, and a
composite font the profile's default font names replaces the document's
of that name. Objects still linked to the Default Graphic Style and type
in [Normal Character Style] take the new definitions and keep their
overrides, as the Redefine commands do. New art and new type then start
with the profile's look. This is VectorCraft's own command.

- Document Color Mode now converts the fill and stroke of character and
  paragraph styles as well, so a document or profile switched between
  RGB and CMYK no longer keeps style colors in the old mode.
- Art pasted again with an SVG filter that was renamed on the first paste
  takes the same name, instead of a new name on each paste.

Refs #8350
2026-11-27 16:45:08 -08:00
dotCooCoo 5c709a1a64 Paths: painted boxes leave out lone anchors a fill does not paint
PathData::bounds now counts a subpath of one anchor, so three places
that measure what a path paints measured a point nothing paints:

- .ai import: the box arrowheads are placed against measured a visible
  fill by the path's geometric box. A filled path with a head and one
  stray anchor no longer fit the drawn look, so its style was not read.
  The fill now measures PathData::drawn_bounds(false).
- Type copies a Transform effect moves: the ink box of the glyph
  outlines now counts a contour of one anchor only where a round or
  projecting character stroke cap draws it as a dot.
- .ai envelopes: a piece of type outlines made only of contours of zero
  length kept them and counted their point. It now counts nothing, as
  the rule for such contours says.

Tests: a filled line with a head and a stray anchor still fits a look
of the line and its head; a dot-only piece beside a stroked square adds
nothing to the square's box. Both fail without the change.
2026-11-27 16:44:42 -08:00
dotCooCoo f119cd9e61 Fill Area: a clipped path its mask cannot cut stops the areas it reaches
When a clipped subpath had more segments or crossings than the crossing
search takes, Fill Area dropped it before the search, so a square that
its visible part crossed was still filled whole. Such a subpath now
stays out of the maps but is kept aside with the masks around it, and
an area it crosses or comes within the gap of is not filled when every
one of those masks reaches the area. An area it stays clear of, or
crosses only where a mask hides it, is filled as before. The hover
counts these subpaths and their masks when it decides whether to
search on another thread. docs/mcp.md describes the rule.

Follows #9336.
2026-11-27 16:43:16 -08:00
dotCooCoo e09fc706cf MCP: concurrency tests wait on handshakes and a test clock, not sleeps
The server reads the busy limit and the progress throttle from a clock
that tests can move. The concurrency tests no longer sleep past those
limits or wait out a window to show that no reply came:

- The slow backend holds each command until the test releases it or
  the call is cancelled, and reports when it ends.
- Busy and progress tests move the server's clock instead of sleeping.
- The cancel test shows that the cancelled request gets no reply by
  reading every reply up to the answer to a later ping.
- The pipelining test sends its calls behind a running call, and
  cancelling that call shows the reader has taken them in.
- The remote cancel test cancels once the app has read the request.
- The queue-limit test waits until the reader blocks for room and
  checks that exactly MAX_QUEUED lines are queued.

Every assertion is kept. The remaining time limits only end a test
that hangs.
2026-11-27 16:42:14 -08:00