Commit Graph
19486 Commits
Author SHA1 Message Date
dotCooCoo 47a8bcde18 Merge main into feat/scripts-api-d8b-tracing 2026-12-02 02:46:39 -08:00
.CooCoo d100d66a06 Merge pull request #10250 from dotCooCoo/fix/retype-period-font-order
Retype: glyphs drawn alike in several fonts count as one outline in near matching
2026-12-02 02:22:02 -08:00
.CooCoo ce867b3d23 Merge pull request #10467 from dotCooCoo/fix/sr-art-limit
Step and Repeat: refuse a grid whose copies would hold more than 250,000 objects
2026-12-02 02:02:46 -08:00
.CooCoo 68b01f3a5d Merge pull request #10480 from dotCooCoo/fix/wrap-sources-no-copies
Text Wrap: Make's no-type warning checks the wrap objects without copying their shapes
2026-12-02 02:02:39 -08:00
.CooCoo d753c48d2e Merge pull request #10483 from dotCooCoo/fix/windows-evalfile-uri
Scripts: $.evalFile reads the URI paths File.parent gives, on Windows too
2026-12-02 02:02:31 -08:00
.CooCoo 907db2002f Merge pull request #10487 from dotCooCoo/fix/mark-bounds-tiny-objects
Arrange Tools: Mark Bounds of Each draws no empty group for an object too small for corner legs
2026-12-02 02:02:23 -08:00
.CooCoo 4e554e2c82 Merge pull request #10488 from dotCooCoo/fix/pdf-dialog-trim
Import PDF: a PDF with editing data opens on its trim boxes unless a box is picked
2026-12-02 02:02:15 -08:00
.CooCoo 245af424e0 Merge pull request #10511 from dotCooCoo/fix/print-media-per-printer
Print: the Size list shows the chosen printer's paper sizes
2026-12-02 02:02:07 -08:00
.CooCoo e3e84bd4fb Merge pull request #10539 from dotCooCoo/fix/ai-save-options-compatibility-default
Scripts: new IllustratorSaveOptions reads compatibility as ILLUSTRATOR19
2026-12-02 02:01:50 -08:00
.CooCoo 02ca7c1148 Merge pull request #10538 from dotCooCoo/fix/script-setters-measure-after-activate
Scripts: width, height and position setters measure after the document comes to the front
2026-12-02 01:45:21 -08:00
dotCooCoo 622459dd4b JavaScript: roll back every object of a family after a failed class install
main's failed-install roll back (#10544) read one object for each family
and handle, while this branch keeps one for each branch of the family.
The install now records the class and prototype of each of those objects
and the roll back puts each one back, so the merged tree builds again.
2026-12-02 01:42:49 -08:00
.CooCoo 1385fed88c Merge pull request #10518 from dotCooCoo/fix/panel-title-strip-corners
Dock: the docked Tools card keeps its rounded top corners
2026-12-02 01:40:36 -08:00
.CooCoo b62851f57a Merge pull request #10431 from dotCooCoo/fix/test-lint-hits
Tests: check nightly ids and panel places by behavior
2026-12-02 01:30:08 -08:00
.CooCoo b601a3bf44 Merge pull request #10540 from dotCooCoo/fix/script-write-holds-checked-folder
Save: checked writes go into the folder that was checked
2026-12-02 01:26:46 -08:00
dotCooCoo 4bcdc5d77c Merge main into feat/scripts-api-d8b-tracing 2026-12-02 01:26:36 -08:00
dotCooCoo a1b8b01383 Scripts: refuse moves that make a tracing, and a release that drops added art
- move, remove() and zOrder throw "Only Image Trace can make a tracing",
  with nothing changed, when they would leave an image at the bottom of
  an ordinary group named Image Trace: a path moved out of the group or
  to its top, Send to Back or Send Backward on the image, and Bring to
  Front or Bring Forward on the object below it.
- releaseTracing() throws "Cannot release a tracing containing added
  artwork", with nothing changed, when the tracing holds an object its
  trace did not make. imageTrace.release keeps only the source image, so
  the added object would be deleted.
- The TracingOptions members with no setting and TracingObject.areaCount
  are left out of hasOwnProperty and reflect. Reading them still throws.

Docs: docs/mcp.md.
2026-12-02 01:26:30 -08:00
.CooCoo d94c7477c5 Merge pull request #10544 from dotCooCoo/fix/js-host-class-install-atomic
JavaScript: a failed host class install adds none of its classes
2026-12-02 01:16:03 -08:00
.CooCoo 0c6aaa074d Merge pull request #10448 from dotCooCoo/fix/make-numbers-sequence
Type Tools: Make Numbers Sequence numbers the selected type objects
2026-12-02 01:10:32 -08:00
dotCooCoo 9b40798f6a Merge main into fix/retype-period-font-order 2026-12-02 00:40:20 -08:00
dotCooCoo 125d5dd171 Merge main into fix/panel-title-strip-corners 2026-12-02 00:40:08 -08:00
dotCooCoo 0c8fd2021b Save: checked writes keep the file's backup, ACL and grant name
- A path written as a folder (`draft.svg/`, `draft.svg/.`) is refused
  instead of saving `draft.svg`.
- The second check uses the name the file is stored under, so on a
  volume that ignores letter case a grant for `Report.svg` allows a save
  to `report.svg`.
- Where the rename is refused, the copy of the old content is made
  beside the temporary file through the open folder, and in the system's
  temporary folder only when the folder takes no new file.
- The copy of the old content is read from the file that is then
  overwritten: when another file is at the name by then, nothing is
  overwritten and the new content stays in the temporary file.
- On Apple platforms the folder is opened with `O_SEARCH`, so a folder
  that can be written and searched but not listed takes the file.
- On Linux the replaced file's ACL is read through an `O_PATH` handle,
  so a file its owner can write but not read keeps its ACL.
- The moved-folder test expects the original folder in the message on
  FreeBSD, which does not report where an open folder is now.
2026-12-02 00:25:05 -08:00
dotCooCoo 8c6ce6d5c9 Tests: read-only fixture test checks it caught its own panic
The test caught any panic from its closure, so a failed set_permissions
would also pass it while the file was still writable. It now asserts
the file is read-only before its panic and checks the caught payload is
that panic's message.
2026-12-01 23:53:39 -08:00
dotCooCoo 2690d0e133 Merge main into fix/script-write-holds-checked-folder 2026-12-01 23:24:23 -08:00
dotCooCoo 6cf9145890 Save: checked writes check the open folder's path as it is
The second check of a checked write passed the open folder's path as
text and looked it up again. A path that was not valid UTF-8 was refused,
and a folder on that path replaced by a link into an allowed folder
between the two lookups could let a place outside pass.
check_write_real compares the open folder's real path with the write
roots and the script's grants as it is, without looking it up again.

- The folder is opened with O_PATH on Linux, Android and FreeBSD, so a
  folder that can be written and searched but not listed takes the file.
  The folder flush opens it for reading, and an error there still
  reports the completed write.
- The replaced file's permissions are read after the new content is
  written, as write_atomic_with reads them, so permissions taken away
  meanwhile stay taken away. Its ACL is read only from the same file.
- A folder that changed while it was opened is no longer reported as a
  read-only location.
- Errors name the kept temporary file where its folder is now, after
  the folder moved.
- A file already at the name the old content is copied to is left as it
  is: only a copy this save made and could not finish is removed.
2026-12-01 23:24:20 -08:00
dotCooCoo 0a66352e8c JavaScript: a failed host class install adds none of its classes
Realm::define_host_classes registered each class, and defined its global
constructor, before it checked the next one. A batch whose second class
named an unknown parent or a member twice failed with the first class
already installed, so a retry failed with "defined twice". A failed
instance did the same, and could leave an object scripts held with a
class the realm no longer had.

Every class's name, parent and members are now checked before any class
is added, so a child must still follow its parent in the batch. A
failure after that point removes the classes added, puts back each
global the call replaced and the class of each object an instance moved
to a new class. The replaced globals stay rooted until the call ends, so
a collection during the call does not free them.
2026-12-01 23:19:55 -08:00
dotCooCoo 19d9f5af3b Merge main into fix/panel-title-strip-corners 2026-12-01 23:01:55 -08:00
dotCooCoo 615d35f878 Merge main into fix/script-save-test-workspace 2026-12-01 22:54:36 -08:00
dotCooCoo 81c9588b26 Tests: read-only gate test sets up its cleanup before the first assertion
a_script_gate_does_not_write_over_a_read_only_file created its
ReadOnlyFixture guard after two assertions, so a failure in either left
the test folder behind. The guard is now created right after the file
path is made, before the file is written.
2026-12-01 22:54:36 -08:00
dotCooCoo c07cc5fdfc Merge main into fix/test-lint-hits
main's c58415b307 already rewrote swatch::tests::default_swatches_parse
to check the built swatches, so the conflict keeps main's version.
2026-12-01 22:50:14 -08:00
.CooCoo 7554b7fc30 Merge pull request #10196 from dotCooCoo/fix/script-module-scan-clock
Tests: the .mjs listing test lists the Scripts folder on a fixed clock
2026-12-01 22:48:46 -08:00
.CooCoo 1cf61e3015 Merge pull request #10299 from dotCooCoo/test/tab-overflow-footer-semantics
Tests: overflowing panel tabs work from the keyboard, and footer buttons announce their state
2026-12-01 22:48:29 -08:00
.CooCoo 6e8bd90a0f Merge pull request #10419 from dotCooCoo/fix/linked-corner-menu-width
Transform: Corner selects are as wide as the Corner Radius field
2026-12-01 22:46:25 -08:00
.CooCoo 01c35a3fa5 Merge pull request #10531 from dotCooCoo/fix/window-panels-stay-shown
Panels: a Window-menu panel keeps showing while art is selected and moved
2026-12-01 22:46:14 -08:00
.CooCoo ed6619523c Merge pull request #10504 from dotCooCoo/fix/toolbar-chips-one-line
Tools: Color, Gradient and None share one line in a one-column rail
2026-12-01 22:45:13 -08:00
dotCooCoo 46dbb1fb28 Tests: script save tests remove their folders when an assertion fails
folder() in tests/script_save_open.rs returned a PathBuf, and each test
removed its folder only on its last line, so a failed assertion or a
panicking script left the folder in the system's temporary folder. It now
returns a Workspace guard, as tests/script_print.rs does, which removes
the folder when it is dropped and clears read-only flags first when the
first removal fails (Windows does not delete a read-only file).

a_script_gate_does_not_write_over_a_read_only_file in file_access.rs made
its file writable again and removed its folder only after its last
assertion; a guard now does both when the test ends.
2026-12-01 22:41:20 -08:00
.CooCoo 9cfa3f1d13 Merge pull request #10525 from dotCooCoo/fix/engine-test-pass
Tests: engine command and integration tests check what they claim
2026-12-01 22:31:51 -08:00
.CooCoo 2c60fc07f6 Merge pull request #10532 from dotCooCoo/fix/schema-phrases-follow-apischema
Tests: SCHEMA_PHRASES checked against the parameter schema's errors
2026-12-01 22:31:01 -08:00
.CooCoo 7387c46666 Merge pull request #10520 from dotCooCoo/fix/ui-egui-outside-panels-tests
Tests: ui-egui tests outside the panels check counts and waits
2026-12-01 22:30:43 -08:00
.CooCoo b15abf8a36 Merge pull request #10536 from dotCooCoo/fix/engine-src-tests-guards
Tests: engine tests that check every item also check the items exist
2026-12-01 22:30:11 -08:00
.CooCoo c45cdeff00 Merge pull request #10529 from dotCooCoo/fix/engine-src-tests-pass
Tests: engine tests assert results instead of only success
2026-12-01 22:29:55 -08:00
.CooCoo 95dd368c2c Merge pull request #10188 from dotCooCoo/fix/craft-fonts-pin-main
CI: move the craft-fonts pin to craft-fonts main in every workflow, so builds embed the tab-title face
2026-12-01 22:27:41 -08:00
.CooCoo 40b3f26d62 Merge pull request #10535 from dotCooCoo/fix/sysfonts-menu-family-held-scan
Tests: the menu family list test holds the font scan with a lister
2026-12-01 22:12:54 -08:00
dotCooCoo 4cb6f8f152 Save: checked writes go into the folder that was checked
While automation roots or a script's file grants are in force, a save,
export or print to a file checked its path and then wrote it by name: the
temporary file was created beside the target by name and renamed over it
by name. A folder on the path replaced by a link between the check and
the rename sent the file outside the allowed folders.

vectorcraft_format::write_atomic_checked opens the target's folder once,
checks the path that open folder has with the caller's check, and makes
the temporary file, the rename, the copy over the file where the folder
refuses the rename, and the folder flush through that open folder
(openat, renameat, fsync). A folder replaced before it is opened fails
the check; one replaced after it is opened does not receive the file. A
link put at the final name after the check is replaced, not followed.
The replaced file's permissions, group and ACL are copied through the
open handles.

write_file, write_file_with and write_save_file_with use it while writes
are checked, and keep write_atomic_with otherwise. Outside Unix the check
runs on the path and the write is unchanged.
2026-12-01 22:06:44 -08:00
dotCooCoo d54e2cf55b Print: a kept paper the new printer lists at a built-in size becomes that size
When the new printer listed the chosen paper at a size within half a
point of one of the dialog's own papers, the Size row kept the
`printer:<keyword>` choice, but the new Size list offers that paper
under the built-in id instead. The row then held a choice the list did
not contain, and the list was rebuilt and repainted on every frame. The
row now switches to the built-in paper the list offers.
2026-12-01 22:04:15 -08:00
dotCooCoo e5df2445e3 Scripts: new IllustratorSaveOptions reads compatibility as ILLUSTRATOR19
A new IllustratorSaveOptions left compatibility unset, so a script that
read it before setting it got undefined. It now starts at
Compatibility.ILLUSTRATOR19, the documented default, which saveAs already
accepts without changing what it writes.
2026-12-01 21:31:56 -08:00
dotCooCoo 20bad5e8a9 Merge main into fix/engine-test-pass 2026-12-01 21:19:18 -08:00
dotCooCoo 45bd5bb967 Tests: the plain column drawn for a design past the budget is checked as a rectangle
graph_column_params_are_checked_and_designs_too_big_are_drawn_plain checked
only the plain column's height, so an ellipse of the same height passed. It
now also checks that the column's path is the rectangle of its bounds.
2026-12-01 21:19:18 -08:00
dotCooCoo ee898bd9fe Merge main into fix/print-media-per-printer 2026-12-01 21:10:29 -08:00
dotCooCoo 8fa6a54207 Print: a paper keeps its size while a printer is looked up and in a new preset
While the newly chosen printer's driver has not answered, the Size list
keeps the previous printer's sizes, so a printer paper stays chosen at its
size. It becomes Custom only when the answer lists it at another size or
not at all.

A preset created in the same pass as a printer paper is chosen now saves
that paper's Width and Height, the size the dialog shows, instead of the
size before it.
2026-12-01 21:10:29 -08:00
dotCooCoo 70d70ca909 Scripts: width, height and position setters measure after the document comes to the front
Setting width, height, left, top or position on an item in a document in
the back measured the item before its document was made active. Making a
document active measures its type again where it is not measured yet or
where a composite font of the same name changed, so the scale ratio or the
move distance applied to bounds that no longer held, and the item ended
at a different size or place than the one asked for.

The measurement now runs inside the edit, after the switch, through a new
edit_item_with that edit_item also uses.
2026-12-01 21:09:17 -08:00