Commit Graph
23685 Commits
Author SHA1 Message Date
.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
dotCooCoo 9e069427f1 Scripts: keep the preset-total test's titles within the title limit
The merge of main brought a 4,096-byte limit on a DocumentPreset title
(8ff8dbefc6), and document_preset_settings_are_held_to_a_total set
64,000-character titles, so the setter threw "the title is too long"
before the 16 MiB total was reached. The test now uses 4,096-byte titles
on 5,000 presets to reach the total, and reassigns a 4,000-character
title 5,000 times to show a reassigned setting counts only its new value.
2026-11-28 02:21:18 -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
dotCooCoo 3e8d293232 Direct Selection: a Shift-click on a member of a selected group deselects only that member
With a group selected, a Direct Selection Shift-click on the fill of one of its paths ran
select.toggle on the path, which added the path beside the group. The path stayed selected
through the group, and so did everything else in it.

The new select.remove command takes each target out of the selection. For a target inside a
selected group or compound path, Selection::expand_to first selects the objects inside the
outermost selected one on the way down to the target, in its place, so the rest of the group
stays selected. Hidden and locked objects and a Shaper Group's original shapes are left out. Direct Selection's Shift-click on such a path runs select.remove, and a
Shift-drag from there moves nothing. A Shift-click on one of the path's anchors runs
select.anchors with mode toggle, which now opens the group the same way and deselects only that
anchor. A path selected beside the group around it, as Group Selection leaves it, is taken out
with the group.

No public documentation describes this case, so this is VectorCraft's own rule.
2026-11-28 02:20:39 -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 23db97a4bd Dimension: Alt whole-path dimension measures the outside of the stroke with Use Preview Bounds
With Use Preview Bounds on, the box Alt shows over a path and the linear
dimension of the whole path it places now reach the outside of the
path's strokes, the width or height W and H show, instead of the
outermost anchors.

- The extent source records `preview: true` (omitted when false), so the
  dimension measures to the outside of the strokes again after later
  edits, a new stroke weight included. Files without it measure as
  before.
- A member of a compound path is measured with the compound path's
  strokes and only the arrowheads the compound path draws on that member.
  Releasing the compound path or changing which member holds the first
  or last subpath measures it again.
- The dimension line stays outside the stroke.
- `dimension.create` takes `preview` on the extent source; a value other
  than true or false is an error.

Geometry effects are not included.
2026-11-28 02:06:27 -08:00
dotCooCoo 908f8c5cb5 Image Trace: Flat Logo keeps gray bands along black when the gray is named some levels off
With a gray named 6 to 20 levels off the color its flat areas have, a gray band
3 or 4 pixels wide along black, with edges blurred by 0.6 pixels, traced as black
and white: no band pixel came within PURE of the named gray, so the run rule and
the sharp-edge halt in across_edge never kept the gray.

unmix now takes the colors of each class's flat areas (area_colors). For a class
with a flat area PURE or more from its named color, pixels within PURE of one of
those colors also count as the class's pixels for the LINE run rule. The
sharp-edge halt stops at a pixel near one of those colors, or at a pixel within
PURE of the named color whose previous pixel on the path is too, so a strip at
the named color 2 or more pixels wide keeps its gray while single edge pixels
near the named color do not. The halt is checked before the walk counts a pixel
as past the class, since a pixel of the area's color can lie past the named
color on the line.

On the band test images (gray 230, 200 and 128 named 6 or 12 levels off, 3 and
4 pixel bands beside a flat square of the gray), 0 to 33 band samples of 48 or
64 traced gray before, and 40 to 61 after. Images whose classes have no flat
area off their named color trace as before.
2026-11-28 01:58:05 -08:00
dotCooCoo 6229784fc2 Paste: pies in pasted symbols and patterns follow a merged swatch's wedge colors
When a paste merges a global swatch and that turns a pie's wedge from
light to dark or back, the pasted pie's legend labels already take the
contrast a redraw gives them. Pies inside the art of a symbol, pattern,
brush or graph design that the paste adds kept their old label colors,
because that art was relinked without the contrast step.

The contrast step now runs inside the relink of every node tree, so it
covers pasted objects and the definitions a paste adds alike, and a
second paste matches the definition the first one added.
2026-11-28 01:57:25 -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 0d5fd64d02 Merge main into fix/classic-3d-unchanged-approval-b 2026-11-28 01:41:16 -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 c1a5483017 Merge main into fix/brush-options-unchanged-approval-b-verify 2026-11-28 01:39:04 -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 9e03c309cf Merge main into fix/parser-var-scope-budget 2026-11-28 01:38:44 -08:00
dotCooCoo 31163418ed Merge main into fix/symbol-registry-budget 2026-11-28 01:38:44 -08:00
dotCooCoo 88766dea66 Scripts: super properties are destructuring and for-of targets
`[super.x] = [1]`, `({ a: super.a } = o)` and `for (super.x of xs)` were
syntax errors. The branch made super properties assignment targets in
`check_target`, but destructuring and for-of check their targets with
`check_simple_target` (from main's destructuring), which still rejected
them. The compiler already writes to super properties on both paths.
2026-11-28 01:35:28 -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 7b1885dab9 Merge main into feat/js-es2015-classes
# Conflicts:
#	crates/js/src/interp.rs
2026-11-28 01:01:45 -08:00
dotCooCoo 3c54a02fab Merge main into fix/test262-promise-async-markers 2026-11-28 00:59:20 -08:00
dotCooCoo e8ab35ad0c Outline view: a group measures a Preview-off sublayer in the sublayer's mode
A layer whose Preview is off draws a placed document in it as the crossed
box, and effects that change geometry reshape that box. Two cull-bounds
paths measured such a sublayer in the mode around it instead:

- A group with effects of its own (a drop shadow, for example) is measured
  by fx::cull_bounds, which did not enter each layer's own mode. The group
  was culled where the sublayer's moved crossed box was in view. Each layer
  in that walk is now measured in the mode its Layer Options give it.
- A group's cached bounds were keyed only on whether placed documents are
  crossed. Turning Show Images in Outline Mode on or off changes a
  Preview-off sublayer's mode without changing that, so the group kept its
  old bounds. Every object other than a path is now keyed on the full
  layer mode.
2026-11-28 00:54:53 -08:00
.CooCoo 3c7a3c7904 Merge pull request #9881 from dotCooCoo/fix/stroke-hit-cap-dots
Strokes: a click on the dot a round or projecting cap draws for a lone anchor hits the path
2026-11-28 00:48:03 -08:00
.CooCoo a949db79fe Merge pull request #9137 from dotCooCoo/feat/plugin-api-live-effect-appearance
Plug-ins: live effects set opacity, blending and effects on their pieces
2026-11-28 00:46:29 -08:00
.CooCoo ed86cbf5ab Merge pull request #9119 from dotCooCoo/feat/toolbar-command-buttons
Toolbars: a toolbar made with New Toolbar holds menu command buttons
2026-11-28 00:45:29 -08:00
dotCooCoo ab260718f5 CI: the cold cache clear fails when the warm leg starts after the start limit
start_overdue only looked at a leg that had not started, so a leg that
started 5 seconds past START_SECONDS and reached its save was let through
and the old entries were deleted. The script now exits 1 before the save
check when the leg's start time is more than START_SECONDS after the
script started.
2026-11-28 00:45:19 -08:00
.CooCoo 11ee54db00 Merge pull request #9058 from dotCooCoo/fix/issue-8583
Part of #8583: document tab titles draw in a condensed face, so more tabs fit
2026-11-28 00:43:51 -08:00