Commit Graph
22494 Commits
Author SHA1 Message Date
dotCooCoo 0ab27fdc73 Placed documents: a bitmap made on the drawing thread stops being pending when it panics
Where no background worker starts (and on the web), schedule makes the
bitmap on the drawing thread. A panic there left the bitmap pending, so
wait_idle, which has no time limit, could wait for it forever. That path
now does what the worker does after a panic: it marks the bitmap failed
and stops it being pending, then lets the panic go on to the caller.
2026-11-28 04:39:53 -08:00
.CooCoo 3d88485fa6 Merge pull request #9896 from dotCooCoo/fix/corner-select-accepted
Properties: a live rectangle's Corner menu sets a kind only when it is chosen
2026-11-28 03:14:41 -08:00
.CooCoo e1e7844b21 Merge pull request #9894 from dotCooCoo/fix/palette-hide-menuless-commands
Command Palette: leave out commands with no menu item that need a value
2026-11-28 03:14:22 -08:00
.CooCoo b335904091 Merge pull request #9888 from dotCooCoo/feat/ai-inline-placed-eps
.ai import: a placed EPS file whose bytes the editing data includes opens as a placed document
2026-11-28 03:14:10 -08:00
.CooCoo d3de968852 Merge pull request #9859 from dotCooCoo/fix/direct-click-keeps-group
Direct Selection: a press on a member of a selected group keeps the group
2026-11-28 03:13:58 -08:00
.CooCoo 0e41019424 Merge pull request #9893 from dotCooCoo/fix/document-setup-accepted
Document Setup: menus and fields apply a value only once it is chosen or committed
2026-11-28 02:57:44 -08:00
.CooCoo f3d22fce2c Merge pull request #9892 from dotCooCoo/fix/tests-hold-default-proof-view
Tests: ui-egui tests that change the proof view hold the default proof view
2026-11-28 02:57:30 -08:00
.CooCoo ab40213a4f Merge pull request #9887 from dotCooCoo/fix/outline-placed-docs-on-screen-wording
Docs: Outline view row says which layers draw placed documents crossed in Preview mode
2026-11-28 02:57:11 -08:00
dotCooCoo 1caf734c0f Docs: state the 256 MiB limit on included placed EPS bytes 2026-11-28 02:42:17 -08:00
dotCooCoo 3d33094d39 Direct Selection: hover marks the anchor a press takes across selected groups
The selected paths a hover tries were listed group by group in selection
order, while a press tries them topmost first across the document. With two
selected groups whose anchors fall within reach, hover marked the back
group's anchor and a press took the front one. The list is now sorted in
paint order, topmost first, with a Shaper Group's original shapes included.
2026-11-28 02:39:57 -08:00
.CooCoo 232587a9f7 Merge pull request #9891 from dotCooCoo/fix/eps-complexity-counts
EPS import: complexity tests count the work done instead of timing it
2026-11-28 02:38:57 -08:00
.CooCoo e5b46995c2 Merge pull request #9890 from dotCooCoo/fix/ai-envelope-budget-per-page
.ai import: envelopes and warped art spend a difference budget on each page
2026-11-28 02:38:45 -08:00
.CooCoo a74c946845 Merge pull request #9889 from dotCooCoo/fix/color-picker-live-artboard-flaky
Tests: run the profile-assigning status bar and Assign rows tests in their own process
2026-11-28 02:22:31 -08:00
.CooCoo 49b7ac722c Merge pull request #9886 from dotCooCoo/fix/group-cull-bounds-layer-mode
Outline view: a group measures a Preview-off sublayer in the sublayer's mode
2026-11-28 02:22:10 -08:00
.CooCoo 12468c14fb Merge pull request #9885 from dotCooCoo/fix/action-batch-accepted
Batch: Escape in the Play, Destination and File Name lists keeps the earlier choice
2026-11-28 02:21:59 -08:00
.CooCoo a9c0ceca00 Merge pull request #9837 from dotCooCoo/fix/prefs-dir-font-scans-own-root
Tests: app tests that share process-wide state pass under cargo test
2026-11-28 02:21:40 -08:00
.CooCoo aeed0ad5a1 Merge pull request #9807 from dotCooCoo/feat/select-inside-unfilled-shape
Selection: a click inside an unfilled closed shape selects it
2026-11-28 02:21:27 -08:00
.CooCoo da500eaa07 Merge pull request #9774 from dotCooCoo/fix/shape-control-canceled-tool-options-b-verify
Restore future shape settings when Control bar edits cancel
2026-11-28 02:21:09 -08:00
.CooCoo ba978a77a4 Merge pull request #9470 from dotCooCoo/fix/symbol-registry-budget
Charge Symbol registry hashing and correct key buffer reservations
2026-11-28 02:20:44 -08:00
.CooCoo 61149cc007 Merge pull request #9397 from dotCooCoo/fix/test262-promise-async-markers
Test262: match Promise async markers by argument
2026-11-28 02:20:20 -08:00
dotCooCoo ebf50139e7 Properties: a live rectangle's Corner menu sets a kind only when it is chosen
The Corner menus of a live rectangle's properties (one for all four
corners while Corner Radius is linked, one per corner otherwise) read
the select's current value, so a kind highlighted with the arrow keys
in the open list ran object.setLiveShape at once and recorded an undo
step, and Escape left the highlighted kind on the rectangle. The menus
now read only the committed pick, as the Corner menu of Direct-Selected
corners does since #9728. The rows are shared by the Transform panel,
the Properties panel's Transform section and the Contextual Task Bar.
2026-11-28 02:18:35 -08:00
.CooCoo 1997b26e7b Merge pull request #8828 from dotCooCoo/feat/corner-widget-hover
Live Corners: hovering a corner widget highlights the corner it controls
2026-11-28 02:16:55 -08:00
dotCooCoo 27104129d0 Docs: list the placed EPS files the .ai reader leaves as before
The progress line now names the cases where a placed EPS file whose bytes
the editing data includes stays as on main: DCS bytes, no bounding box of
its own, a VectorCraft document, bytes that don't read as EPS, an `.ai` or
`.ait` file name, and a previewed file that an image variable binds.
2026-11-28 02:10:33 -08:00
dotCooCoo 3315bc4bfd Docs: limit the Preview-off exception to layers that are not templates
A template layer stays in Preview whatever its Preview flag is, so only a
layer that is not a template and has Preview off draws placed files by the
Outline rules in Preview mode.
2026-11-28 02:10:15 -08:00
dotCooCoo 53aa1a148c Command Palette: leave out commands with no menu item that need a value
A command with no menu path whose params name a required field (Close
Path needs an `id`, Knife needs `points`) was still listed, and a pick
of it always failed with an error such as "missing id". The rule that
leaves out commands needing a value now applies to these commands as
well as to menu commands, so 232 more engine commands are left out (562
in all, up from 330).

Rename Artboards and the Remove Asset, Rename Asset and Set 3D Format
commands stay listed: a pick of each opens the Rename dialog or the
Asset Export panel.
2026-11-28 02:07:10 -08:00
dotCooCoo d19a3305a4 EPS import: complexity tests count the work done instead of timing it
Four EPS import tests asserted elapsed time (5 s, 20 s, a 20 s receive
timeout, and 1,000 copies against 5 times one copy). A busy test runner
could fail them, and a slower run that was still bounded could pass them.
Each now reads a test-only counter on its own thread:

- `]` without its `[`: the operand stack slots that `[` and `]` look at.
  200,000 brackets look at no more than 4 slots each.
- The outline check: the point-to-segment distances it works out. A look
  drawn 5,000 times works out no more than `MAX_OUTLINE_PAIRS`.
- Objects on a path: the paths and objects the records measure. A
  thousand copies of a record measure as many as one copy.
- File fonts: the glyphs `fits` compares. A string of 250,000 of one
  character makes fewer comparisons than it has glyphs.

Outside tests the counters do nothing.
2026-11-28 01:55:59 -08:00
.CooCoo 4167e0abca Merge pull request #9884 from dotCooCoo/fix/readout-copy-empty-values
Info panels: empty readouts offer no Copy action
2026-11-28 01:45:30 -08:00
dotCooCoo 06d977439b Tests: ui-egui tests that change the proof view hold the default proof view
View › Proof Colors, Overprint Preview and Separations Preview are one view
for the whole process, and the canvas draws through it. Canvas tests hold
`testing::DefaultProofView` to keep it fixed while they compare frames, and
`testing.rs` asks every test that sets the view to hold it too. Three tests
changed it without holding it:

- `panels::actions::tests_edits::every_listed_menu_item_runs_from_the_menu_what_its_step_holds`
  and `shortcut_editor::tests::listed_commands_run_from_a_key_without_a_missing_param`
  run every listed command, the View menu's proof commands included.
- `dialogs::new_document::tests::new_document_choice_enter_commits_before_create`
  creates a document with Preview Mode set to Overprint, which turns on
  Overprint Preview and leaves it on.

When one of them ran between two frames of a canvas test in the same test
process, the render options of the next frame no longer matched the frame
shown. An edit then rendered the whole frame instead of drawing its part, and
`canvas::tests::without_a_worker_edits_while_the_view_is_still_do_not_hold_off_the_render`
failed with "rendered whole about STILL_SECS after the view stopped: 1 frames".
Turning Overprint Preview on between two of its frames gives that failure
every time.
2026-11-28 01:43:17 -08:00
dotCooCoo 3499b7d7aa Merge main into feat/select-inside-unfilled-shape 2026-11-28 01:41:16 -08:00
.CooCoo 13fc74e4fd Merge pull request #9000 from dotCooCoo/feat/tangent-circle-ask-radius
Tangent Circle Tool: Ask For Circle Radius asks for the radius after a click
2026-11-28 01:40:20 -08:00
.CooCoo 1ed6f2f704 Merge pull request #8998 from dotCooCoo/fix/smooth-reach-pieces-bound
Smooth: a drag's segment search stays within its piece limit however many curved segments are in reach
2026-11-28 01:40:07 -08:00
dotCooCoo ca262510c8 Merge main into fix/shape-control-canceled-tool-options-b-verify 2026-11-28 01:39:04 -08:00
dotCooCoo 805758722a Merge main into feat/corner-widget-hover 2026-11-28 01:39:04 -08:00
dotCooCoo 31163418ed Merge main into fix/symbol-registry-budget 2026-11-28 01:38:44 -08:00
dotCooCoo 7d5794d0e4 .ai import: envelopes and warped art spend a difference budget on each page
Live envelopes, warped type and warped images were held to one shared
difference budget measured only on the first artboard. A file whose PDF
part shows a later artboard, a page cropped to the art, or more than one
artboard could then take more difference on that page than the page
check allows, and open from its PDF part instead of its layers.

Each page the art may be compared with (every artboard, and the art's
bounding box when it is not one of them) now has its own half share of
the page check's allowance. An envelope on a later artboard that draws
away from its drawn art over that artboard's page keeps its drawn art,
where before it opened live. Art on no such page is not held to a page.
Repeated pages are held once, the page list is worked out once per
change of artboards, and an import makes at most 1,024 comparisons with
pages; art that needs more keeps its drawn art.
2026-11-28 01:29:20 -08:00
dotCooCoo d7711e41bc Merge main into fix/prefs-dir-font-scans-own-root 2026-11-28 01:28:42 -08:00
dotCooCoo bc8934569d Batch: Escape in the Play, Destination and File Name lists keeps the earlier choice
The Batch dialog's lists wrote the row the arrow keys highlighted into
the dialog's fields. Escape closed the list but kept that row, and OK
then ran the batch with it. The lists now bind to the fields, so Escape
restores the earlier choice and only a committed choice applies, as
New Action and Action Options do since #9730.
2026-11-28 01:27:29 -08:00
dotCooCoo 789fbb6994 Tests: run the profile-assigning status bar and Assign rows tests in their own process
Assigning a profile to the front document changes the process's active
color settings (`cms::active`). The status bar readout test assigned
ProPhoto RGB, and the Separations Preview Assign rows test assigned other
RGB and CMYK profiles, in the shared test process. A test that converted
a color while either profile was active got that profile's values: under
plain `cargo test`, `an_artboard_shows_its_background_color_live` read
sRGB red as #b3461a, its ProPhoto RGB value.

Both tests now start with `testing::in_own_process`, as the crate's
other tests that assign profiles or change Color Settings do, and that
helper's doc names these cases.
2026-11-28 01:26:44 -08:00
.CooCoo cefcc8a955 Merge pull request #9882 from dotCooCoo/fix/cold-cache-clear-start-wait
CI: the cold cache clear fails on a late warm leg before its job times out
2026-11-28 01:24:42 -08:00
.CooCoo 87b3dd9a98 Merge pull request #9853 from dotCooCoo/fix/script-documents-strict-assign
Scripts: assigning documents throws in strict mode and is ignored otherwise
2026-11-28 01:24:23 -08:00
.CooCoo ad6bf48cf4 Merge pull request #9391 from dotCooCoo/fix/packaging-fold-geometry
Fold Preview: preserve panel layer order
2026-11-28 01:23:01 -08:00
dotCooCoo fda03c81ed .ai import: a placed EPS file whose bytes the editing data includes opens as a placed document
A .ai file's editing data can include a placed EPS file's bytes between
%%BeginDocument: and %%EndDocument. The reader did not read those bytes:
in the %AI5_BeginPlace form the placed file showed only the preview the
data keeps of it, or an unread placeholder box without one, and in the
version 7 form the art the file draws came in as editable paths with a
note that placed files weren't read.

- The reader keeps those bytes (up to 256 MB) and makes the placed file a
  placed document of them, in the file's bounding box where the
  matrix puts it. It draws its art whether or not its file is found, and
  a native save keeps the bytes. The version 7 form's placed EPS art is
  no longer editable on open.
- A placed file stays as before when its bytes are a DCS file (File >
  Place makes those linked images), have no bounding box of their own,
  carry a VectorCraft document (as VectorCraft's EPS export writes),
  don't read as an EPS file, or belong to a file named .ai or .ait.
  What reading the bytes warns of is in the open result.
- One with a preview that an image variable binds stays the linked image
  showing its preview, as a placed PDF page does.
- The link takes the size and hash of the bytes, so a file found unchanged
  is neither missing nor modified.
- Drawing and the open check each read at most 8 placed EPS files inside
  one another, so a file whose included files include others opens.
  The open check draws the placed documents inside the bytes from their
  previews, and it reads each included file once at each depth. A file
  nested 12 levels deep opens with at most 8 drawing reads and 72
  checks.
- File > Package with Copy Fonts reads the type of a placed EPS file, as
  it reads a placed PDF page's, and of the EPS files it includes in turn,
  pattern art included.
- On %_ lines the %_ that starts each line is taken off. Then one line
  end is taken off the end of the bytes when another line end comes
  before it: the one the %%BeginDocument: line ends with when the bytes
  end with it, otherwise the last one. An LF after a CR is kept with it
  when the file's first line ends with CRLF.

Docs: docs/target-app-parity.md.
2026-11-28 01:16:09 -08:00
dotCooCoo 658151d45c Docs: Outline view row says which layers draw placed documents crossed in Preview mode
The Outline view row in docs/ui-parity.md said Preview mode draws linked
images and placed documents as before. On screen, a layer whose Preview
is off draws in outline in Preview mode, so its placed documents are
crossed and its linked images show their crossed frames. A template layer
in Outline mode draws them as Preview mode does. The row now says so.
2026-11-28 01:08:44 -08:00
dotCooCoo 2b83acd239 Document Setup: menus and fields apply a value only once it is chosen or committed
Language, the Grid Colors menu, the two grid color hex fields and the
bleed fields read the value each control reported in the frame, which
includes a highlighted menu entry and a draft still being typed. A
language highlighted with the arrow keys replaced the quotes, and
Escape left them replaced; a highlighted Grid Colors preset replaced
both colors; a partly typed hex code or bleed changed the dialog's
values before Enter or Tab.

The four reads now take the committed value, as New Document does.
2026-11-28 01:07:50 -08:00
.CooCoo 22b17d6942 Merge pull request #9883 from dotCooCoo/fix/svg-complexity-tests-count-work
SVG import: complexity tests count the work done instead of timing it
2026-11-28 01:07:11 -08:00
.CooCoo c996fbba08 Merge pull request #9500 from dotCooCoo/fix/properties-profile-build
Properties: Fix the Profile row build after stroke tool routing changed
2026-11-28 01:06:43 -08:00
.CooCoo d5e41e24dc Merge pull request #9467 from dotCooCoo/fix/template-cache-code-reachability
Collect unreachable tagged-template cache entries in the same collection
2026-11-28 01:06:17 -08:00
.CooCoo 0b933e7a36 Merge pull request #9127 from dotCooCoo/feat/plugins-web-worker
Plug-ins: the web build checks plug-ins and runs filters in a Web Worker
2026-11-28 01:04:54 -08:00
.CooCoo 31066b39c2 Merge pull request #9065 from dotCooCoo/feat/scripts-reflection
Scripts: reflect describes an object's properties and methods
2026-11-28 01:03:47 -08:00
dotCooCoo 3c54a02fab Merge main into fix/test262-promise-async-markers 2026-11-28 00:59:20 -08:00