Commit Graph
22508 Commits
Author SHA1 Message Date
.CooCoo e260844903 Merge pull request #9923 from dotCooCoo/fix/parametric-shape-accepted
Parametric Shape: canceling a panel edit restores the shape or the tool's next shape
2026-11-28 08:02:04 -08:00
.CooCoo f59c044080 Merge pull request #9921 from dotCooCoo/feat/move-several-handles
Direct Selection: picked direction handles move together
2026-11-28 08:02:02 -08:00
.CooCoo 2c2a86e688 Merge pull request #9928 from dotCooCoo/fix/host-handle-heap-bytes
Scripts: host object handles count toward the heap limit
2026-11-28 08:02:00 -08:00
.CooCoo f93b89c1ff Merge pull request #9926 from dotCooCoo/feat/place-pcraft
File formats: .pcraft documents open and place as one image
2026-11-28 08:01:57 -08:00
.CooCoo ef2ba3fd8f Merge pull request #9931 from dotCooCoo/fix/appearance-drag-revert
Appearance: an appearance drag held across File Revert is not dropped on the restored art
2026-11-28 08:01:53 -08:00
.CooCoo 0bf493fc1d Merge pull request #9933 from dotCooCoo/fix/transform-each-revert
Transform Each: a draft from before File > Revert no longer applies to the restored document
2026-11-28 08:01:51 -08:00
.CooCoo fc3bad34cf Merge pull request #9934 from dotCooCoo/train/carry9024
fix(ui): fit translated PDF import labels
2026-11-28 08:00:20 -08:00
dotCooCoo 05378c1b7e Merge main into train/carry9024 2026-11-28 07:59:17 -08:00
dotCooCoo f555b41389 Transform Each: a draft from before File > Revert no longer applies to the restored document
Transform Each recorded only the document's uid when it opened. Object
ids survive File > Revert, so after a revert the dialog previewed its old
values on the restored selection, and OK or Copy applied them there.

The dialog now records the document's uid and revert count, as the
Transform dialogs do since #9797. After a revert, Preview stops, Cancel
rolls nothing back, and OK and Copy are refused with "The document was
reverted. Reopen this dialog to continue." in the dialog and on the
status line. A refused OK now sets Copy to off instead of removing the
field, so the dialog keeps showing the reason.
2026-11-28 06:45:48 -08:00
dotCooCoo 09150f35e9 Scripts: host object handles count toward the heap limit
Each object of a host class keeps its handle twice, once in its slot and
once in the realm's index of the objects scripts hold, but creating one
reserved only the object's own bytes, and the collector's live-byte total
left the handle out. A host value with a long handle could therefore grow
the heap past the script's limit.

The object now reserves its handle's bytes before it is made, and the
collector counts them for every live object. Tests cover a handle larger
than the remaining budget and the bytes 100 retained objects add.
2026-11-28 06:27:56 -08:00
dotCooCoo 0b87334987 Appearance: an appearance drag held across File Revert is not dropped on the restored art
File > Revert keeps the document's uid and restores objects with the same
IDs, so an appearance dragged from a Layers target circle or the
Appearance panel's thumbnail before the revert was still accepted after
it, and its drop ran on the restored objects.

PanelDrag::Appearance now carries the document's revert count next to its
uid, as PanelDrag::Art does, and appearance_for(uid, reverts) returns the
source only while the destination shows the contents the drag came from.
Every drop compares the pair: a Layers target circle, the Layers trash,
the canvas (where it takes the drop and where it applies it) and the
Graphic Styles panel.
2026-11-28 06:00:13 -08:00
dotCooCoo 6f012b6621 File formats: .pcraft documents open and place as one image
File › Open and File › Place read layered raster .pcraft documents
through craft-doc and store them as one PNG, sized by the document's
resolution. A placed file links like any image.

- The image is the file's full-size composite when it has one.
- Without one, the layers are combined at the canvas size when the
  document is RGB at 8 or 16 bits and every visible layer is a raster
  layer that blends Normal, with no clipping, layer effects, vector
  mask, frame, advanced blending or feathered layer mask. Hidden layers
  are not read, and an RGB ICC profile the document names is kept.
- Otherwise the composite preview comes in at the canvas's size, and
  Open, Place, links.update, links.relink and links.replaceEmbedded
  warn when it has fewer pixels than the canvas, naming both sizes and
  why the layers were not combined.
- A full-size composite or preview the file names but doesn't hold,
  can't decode or, for the full-size one, of another size than the
  canvas is an error. The Links commands decode the kept PNG before
  taking it.

The import fuzz tests cover mutated bundles and manifests.
2026-11-28 05:33:55 -08:00
dotCooCoo 41a6005414 Direct Selection: picked direction handles move together
A click on a path's direction handle picks it, a Shift-click adds it to
the picked handles or takes it away, and Escape lets them go. Picked
handles show ringed. Dragging one of two or more picked handles moves
all of them, on one path or several, by the same offset in one undo
step. A Shift-press on a handle reshapes only once the pointer has moved
3 pixels, so a Shift-click leaves the handle where it is.

The new command path.moveHandles does the move: an anchor with one
handle listed places it as path.setHandle does, an anchor with both
listed moves both and becomes a corner, and independent (Alt during the
drag) makes every listed handle's anchor a corner.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-28 04:58:12 -08:00
dotCooCoo d2768427df Parametric Shape: canceling a panel edit restores the shape or the tool's next shape
The Parametric Shape panel read Shape, Count, W, H, Rotation, the kind's
own values and Corner Radius with value(), which carries each proposed
value but not the value a cancel restores. With no shape selected, a W
typed and then canceled with Escape stayed as the tool option, so the
next shape drawn had the canceled width. With a shape selected, each
keystroke was its own undo step and Escape left the shape edited.

- With a shape selected, each field's gesture runs in one undo scope
  (EditPath::Scope, as the Live Shape panel's fields do): Enter keeps the
  edit as one undo step, and Escape reverts it.
- With no shape selected, the fields send the value they land on
  (events.landed(), as the Corner and Shared Edge sections do since
  #9773), so Escape restores the opening tool option.
- With no shape selected, a highlighted Shape entry applies only once it
  is chosen: a new kind resets the kind's own count and values, which a
  restored kind would not bring back.
- A field left empty still ends its gesture, so its undo step closes.

Docs: docs/mcp.md (Parametric Shape Tool), docs/ui-parity.md.
2026-11-28 04:30:59 -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