Commit Graph
25127 Commits
Author SHA1 Message Date
dotCooCoo 06fc659299 Scripts: empty paths scale their strokes and refuse a compound's pattern
resize and transform with changeLineWidths equal to the scale now scale the
strokes, dashes and effects of a path with no anchors, as they do for a path
with anchors. A member with no anchors of a compound path or compound shape
that shows a pattern is refused when the call transforms patterns, as a path
with a pattern of its own is.

node.move's description and docs/mcp.md now say that a compound path on a
locked artboard takes a path while it is new art there and still selected.
2026-12-03 04:19:34 -08:00
dotCooCoo 7e8c6bae5c Merge main into feat/scripts-api-layer-path-items 2026-12-03 02:24:07 -08:00
dotCooCoo 6318369391 Scripts: a pattern on a path with no points is not left untransformed
rotate, resize and transform on a path with no points returned success
after setting only the stroke weight, even when the call asked to
transform a fill or stroke pattern the path uses. The pattern stayed as
it was. Such a call now throws "the object has no bounds", as it did
before empty paths were accepted, and leaves the document unchanged.
docs/mcp.md states the exception.
2026-12-03 01:34:27 -08:00
.CooCoo 1dc67e7756 Merge pull request #10674 from dotCooCoo/fix/geom-configured-shape-tests
Tests: cover rounding, Randomize, spirals, 3D boxes and full-turn arcs in configured shapes
2026-12-03 01:30:44 -08:00
.CooCoo 1790c1f1a4 Merge pull request #10678 from dotCooCoo/fix/engine-importer-batch-coverage
Tests: cover import limits, .af blend fallback and action.batch destinations
2026-12-03 01:26:06 -08:00
.CooCoo f765995df8 Merge pull request #10685 from dotCooCoo/fix/undo-group-coverage
Tests: cover three undo group paths no test reached
2026-12-03 01:26:01 -08:00
.CooCoo 94c14527c8 Merge pull request #10675 from dotCooCoo/fix/text-coverage-batch-17
Tests: bent type on a path and the fallback file size limit
2026-12-03 01:21:25 -08:00
.CooCoo 8ed527a9bf Merge pull request #10676 from dotCooCoo/fix/color-cad-table-rows
Tests: harmony labels and DXF miles and kilometers
2026-12-03 01:16:13 -08:00
.CooCoo 38ea9bde75 Merge pull request #10702 from dotCooCoo/fix/settings-save-crash-macos
macOS: closing Preferences no longer crashes on Macs with a Touch Bar
2026-12-03 01:10:19 -08:00
.CooCoo 3dd898fba6 Merge pull request #9260 from dotCooCoo/feat/scripts-layer-text-frames
Scripts: layers and groups give their own text frames
2026-12-03 01:02:35 -08:00
.CooCoo 97e3a5597d Merge pull request #10673 from dotCooCoo/fix/pdf-import-limit-tests
Tests: PDF import membership dictionaries, nesting caps and image pixel cap
2026-12-03 01:00:56 -08:00
dotCooCoo 0313f86491 Docs: name layer and group pathItems in the roadmap 2026-12-02 23:53:38 -08:00
dotCooCoo 5e68ecd7c8 macOS: closing Preferences no longer crashes on Macs with a Touch Bar
Clicking OK or Cancel in Preferences ended the app with an uncaught
NSRangeException from -[_NSTouchBarFinderObservation invalidate]
whenever the Touch Bar server runs (any Mac with a Touch Bar). When a
window closes, accesskit_macos 0.27.1 put the content view's original
class back, which removed the key-value observing subclass AppKit's
Touch Bar support had installed on the view. AppKit then failed to
remove its observer.

accesskit_macos 0.27.2 leaves the class alone when key-value observing
has subclassed the view (AccessKit/accesskit#835). Cargo.lock moves to
it, with accesskit 0.25.2 and accesskit_consumer 0.39.2, which it
requires.

Fixes #10473
2026-12-02 23:39:52 -08:00
dotCooCoo aeb11d6809 Merge main into feat/scripts-api-layer-path-items 2026-12-02 23:30:42 -08:00
dotCooCoo 3d69c8d49a Scripts: removeAll cannot leave an image first in a group named Image Trace
textFrames.removeAll() and the removeAll() of a group's pageItems,
groupItems and compoundPathItems checked only clip groups whose mask
they release. Deleting the type or art below an image in an ordinary
group named Image Trace left the image first, so the group was read as
a tracing and the image dropped out of pageItems. Both now throw
"Only Image Trace can make a tracing" and delete nothing, checking the
whole set being deleted at once.
2026-12-02 22:58:00 -08:00
.CooCoo 5470879a85 Merge pull request #9386 from Taha-Mahmoodi/integration/9286-canonical-084
Fix #9286: apply the PDF font preference to synchronous opens
2026-12-02 21:41:31 -08:00
dotCooCoo 206fc9684f Tests: remove the fallback size test's folder when the test panics
The folder sits in a guard that removes it on drop, so a panic in the
write or the search no longer leaves the 41 MiB file in the temporary
directory. The normal path still removes it explicitly and fails on an
error.
2026-12-02 21:34:29 -08:00
dotCooCoo 81263e7c0c Merge main into fix/undo-group-coverage 2026-12-02 21:27:18 -08:00
dotCooCoo 9ec2f5c4bd Tests: cover three undo group paths no test reached
- A document added outside a command while edit.undoGroup.begin is
  open joins the group: its two edits are one "Job" step, and one undo
  takes both back (Session::add_document).
- Canceling a group rewrites a batch's journal entry: a dropped step
  that left another document in front becomes document.activate with
  that index, so the edit made after the group replays in the same
  document (keep_batch_steps).
- Renaming a graph design to its own name succeeds and records no undo
  step, and the design list stays the same.

Each test fails with the covered lines removed.
2026-12-02 21:26:18 -08:00
dotCooCoo 72e99d1c3b Merge main into feat/scripts-layer-text-frames 2026-12-02 21:17:26 -08:00
dotCooCoo cd172d1e77 Tests: cover import limits, .af blend fallback and action.batch destinations
- PSD slices: a version 7 or 8 descriptor that lists more than 10,000
  slices, objects nested 17 deep and lists nested 17 deep are refused
  with a warning, and 16 levels of either still open.
- .pcraft: a 12000 x 12000 canvas leaves the preview with the "too
  large to combine" note before any layer is read.
- .af files: Multiply keeps its blend mode, and Linear Light imports as
  Normal with one warning however many objects use it.
- action.batch: an unknown destination is refused, and destination
  "folder" without destinationFolder is refused before any file opens.
2026-12-02 21:08:11 -08:00
dotCooCoo d29d2d03da Tests: harmony labels and DXF miles and kilometers
- rules_parse_by_id_and_label reads a few shown labels back through
  parse(label(h)). The labels are written in vectorcraft-color and the
  ids come from craft-libs, so a label that drifts from its id no longer
  parses.
- units_choose_the_default_scale covers $INSUNITS 3 (miles) and
  7 (kilometers), which have no unit of their own and read as
  millimeters at their scale.
2026-12-02 21:00:46 -08:00
dotCooCoo 00cb293b97 Tests: bent type on a path and the fallback file size limit
- A rectangle bent along a circle keeps its corners at the ends of its
  step, its baseline edge on the circle and its other edge on the circle
  its height along the normal, with and without a rise off the path. A
  straight path and a glyph with no advance leave the outline as it is.
- The file search for a character no loaded font covers loads a font
  that covers it, and skips the same font padded to 41 MiB.
2026-12-02 20:54:45 -08:00
dotCooCoo b81ede3532 Scripts: pathItems.removeAll keeps clipping paths; empty paths refuse stroke-only scaling
- pathItems.removeAll() now throws and deletes nothing when it would delete
  the clipping path of a group or layer that keeps other objects, as
  pageItems.removeAll() does. The check is shared with the art collections,
  and the document's collection counts compound paths that edit.clear
  empties and deletes.
- rotate, resize and transform check changeLineWidths at the
  transformation's own scale with changePositions false before the early
  return for a path with no points, so an empty path is refused as one with
  bounds is instead of having its stroke weight set.
- docs/mcp.md describes both.
2026-12-02 20:54:39 -08:00
dotCooCoo 03c3d8264b Tests: format the nested pattern and soft mask chains 2026-12-02 20:41:13 -08:00
dotCooCoo 254bfca8d0 Merge main into fix/geom-configured-shape-tests 2026-12-02 20:36:21 -08:00
dotCooCoo 99c9b51324 Tests: cover rounding, Randomize, spirals, 3D boxes and full-turn arcs in configured shapes
Adds six unit tests to the shapes module for behavior no test checked:

- A Rounded star or polygon with Randomize 0 still gets handles on
  every anchor.
- Rounding handles are 0.4 x Rounded of the side long and at right
  angles to the radius.
- A spiral starts at its center and ends a radius away at the angle
  its turns reach.
- Randomize keeps polygon and star vertex radii within 45% of their
  radius per unit, and moves at least one.
- Every face of a parallel 3D box is a parallelogram with four
  distinct corners, seen from five directions.
- An end angle within 1e-9 degrees of a full turn opens the whole
  shape for Arc instead of cutting it.
2026-12-02 20:36:00 -08:00
dotCooCoo 6114bdc991 Merge main into fix/pdf-import-limit-tests 2026-12-02 20:26:38 -08:00
dotCooCoo 95e2aa4804 Tests: PDF import limits and optional content membership
Add tests that fail when these PDF import paths break:

- Optional content membership dictionaries: AllOn, AnyOff, AllOff and
  the default AnyOn decide which marked art the page walk skips, with
  groups given as an array or a single reference. Each shown path keeps
  the spot ink the walk found it painted in.
- Tiling patterns and soft masks nested more than 8 levels deep open
  with their "nested too deeply" warnings.
- The ink-space scan stops 32 levels into an object and after 4,096
  spaces.
- A one-ink image of more than 2^26 pixels is refused before its
  samples are decoded.
2026-12-02 20:26:38 -08:00
dotCooCoo 80569dc577 Scripts: deleting a clipping path cannot make a tracing
remove(), the document's pageItems.removeAll() and textFrames.removeAll()
release the mask of a clip group whose clipping path they delete. A clip
group named Image Trace with an image next above its clipping path then
became an ordinary group named as a tracing with an image first, which
reads as a tracing. They now throw "Only Image Trace can make a tracing"
and delete nothing in that case.

docs/mcp.md names the removeAll() collections that release a mask and
the ones that refuse to delete a clipping path instead.
2026-12-02 20:24:21 -08:00
.CooCoo 4002b2b66c Merge pull request #9304 from dotCooCoo/feat/scripts-text-paint
Scripts: character attributes set the fill and stroke of text
2026-12-02 20:01:08 -08:00
dotCooCoo ebf7ebd063 Docs: opening a path deselects its closing segment and the ends it alone held
docs/mcp.md said that setting `closed` keeps the direct selection. Setting
it to false removes the closing segment, so the selection drops that
segment and each of its end anchors that no other selected segment uses.
The tests opening_a_path_* in crates/engine/src/tests/script_dom_paths.rs
cover these cases.
2026-12-02 18:58:47 -08:00
dotCooCoo 0d8a56cfde Scripts: zOrderPosition reuses the layer list; textFrames.removeAll releases masks
- Layer.zOrderPosition reads the sibling list through the cached layer
  lists, so reading it for every layer of a loop lists the layers once.
  Each read is still charged for the search through the list.
- TextFrames.removeAll releases the mask of a group or layer whose
  clipping path is one of the type objects it deletes, as
  PageItems.removeAll and remove() do, so the object above the type is
  not made the clipping path.
- GroupItems.createFromFile checks that its collection is still there
  first, so a collection whose group was deleted throws "Stale page item"
  instead of the not-available message. docs/mcp.md says so.
2026-12-02 18:44:26 -08:00
dotCooCoo 4010eb5be2 Merge main into feat/scripts-api-layer-path-items 2026-12-02 18:24:31 -08:00
dotCooCoo c1470adfc6 Merge main into feat/scripts-text-paint 2026-12-02 18:14:59 -08:00
dotCooCoo e4e6dd517d Merge main into feat/scripts-layer-text-frames 2026-12-02 17:49:12 -08:00
dotCooCoo b51d13d2a4 New document: a replayed rows count over 1000 is kept to 1000
A file.new step replayed from a journal or the Actions panel rounded
artboardLayout.rows and then refused a result over 1000, so a step with
rows 1000.5 or 5000 stopped the playback. The rows count now follows the
columns rule: it is rounded, must be 1 or more, and is kept to at most
1000. Recent stores the kept count. docs/mcp.md says the same.
2026-12-02 17:28:48 -08:00
.CooCoo 15cc3b048f Merge pull request #10581 from dotCooCoo/fix/print-paper-size-to-cups
Print: the job asks CUPS for the paper size chosen
2026-12-02 17:20:21 -08:00
.CooCoo cd502f08e8 Merge pull request #9073 from dotCooCoo/feat/scripts-api-d1b-prefs-matrix-clipboard
Scripts: app gives scripts preferences, matrices and the clipboard
2026-12-02 17:08:38 -08:00
.CooCoo 5d8deddaf0 Merge pull request #9048 from dotCooCoo/feat/scripts-api-d3-layers-artboards
Scripts: documents give scripts their layers, groups, compound paths and artboards
2026-12-02 16:50:47 -08:00
dotCooCoo dc94ae977c Docs: matrix records passed in need only the six mValue fields
The matrix functions read only mValueA to mValueTY from a record passed
in. The typename "Matrix" is on the records they give back.
2026-12-02 16:10:05 -08:00
.CooCoo e72ff7480d Merge pull request #9062 from dotCooCoo/feat/scripts-api-d8-placed-raster
Scripts: documents give scripts their placed and raster images
2026-12-02 16:07:47 -08:00
dotCooCoo aa4cce5080 Merge main into feat/scripts-api-layer-path-items 2026-12-02 16:02:05 -08:00
dotCooCoo 70504f6dfe Merge main into feat/scripts-layer-text-frames 2026-12-02 16:02:05 -08:00
dotCooCoo 98c6e5fb20 Merge main into feat/scripts-api-d3-layers-artboards 2026-12-02 15:57:11 -08:00
.CooCoo c800d92d1f Merge pull request #10610 from dotCooCoo/fix/one-column-rail-edit-toolbar
Tools: show Edit Toolbar alone in the one-column rail
2026-12-02 15:54:40 -08:00
dotCooCoo 44b238b814 Merge main into feat/scripts-text-paint 2026-12-02 15:51:24 -08:00
dotCooCoo 15d11beb83 Print: a second scheduler on a loopback port supplies its own paper sizes
A `CUPS_SERVER` or `ServerName` of `localhost`, `127.0.0.1` or `::1` counts
as this machine's scheduler only with no port or port 631. On another port
(a second CUPS instance) the dialog no longer reads `/etc/cups/ppd`, whose
queues belong to the default scheduler, and asks `lpoptions` and IPP
instead.

When the named server is one of CUPS's own domain sockets and neither the
PPD nor `lpoptions` lists sizes, the IPP lookup asks `localhost` on the IPP
default port, as it already does when no server is named. `ipptool` rejects
a URI whose host is a socket path (`httpSeparateURI` in CUPS's
`cups/http-support.c`), so another socket path is not asked.
2026-12-02 15:48:30 -08:00
dotCooCoo dfff55991f Merge main into feat/scripts-api-layer-path-items 2026-12-02 15:42:39 -08:00
.CooCoo 822651dc7a Merge pull request #9266 from dotCooCoo/feat/scripts-export-autocad
Scripts: exportFile writes DXF with ExportOptionsAutoCAD
2026-12-02 15:42:04 -08:00