Commit Graph
9004 Commits
Author SHA1 Message Date
.CooCoo 989d4512e7 Merge pull request #10683 from dotCooCoo/test/coverage-gaps-engine-file-limits
Tests: cover the script gate's checked writes and three file-size limits
2026-12-03 08:22:49 -08:00
.CooCoo fff1c92179 Merge pull request #10682 from dotCooCoo/fix/script-point-scan-charged
Scripts: the look for changed path points after each command is charged
2026-12-03 08:22:32 -08:00
.CooCoo f1c39395eb Merge pull request #10677 from dotCooCoo/chore/coverage-gaps-batch3-path-select
Tests: path joins, Pathfinder refusals and unknown selection modes
2026-12-03 07:37:19 -08:00
.CooCoo fc19f5a42d Merge pull request #10664 from dotCooCoo/fix/action-playback-current-artboard
Scripts: doScript steps act on the artboard the script made active
2026-12-03 07:36:06 -08:00
.CooCoo 041c6cbfe9 Merge pull request #10660 from dotCooCoo/fix/newgroup-keeps-tracing
Image Trace: object.newGroup at index 0 no longer ends a tracing
2026-12-03 07:35:43 -08:00
.CooCoo a64c923e04 Merge pull request #10658 from dotCooCoo/fix/layer-selection-scans
Scripts: hasSelectedArtwork selects inside an isolated group and charges its scans
2026-12-03 07:35:25 -08:00
.CooCoo de71cfc9ef Merge pull request #10654 from dotCooCoo/fix/script-image-matrix-locks
Scripts: image matrix assignment refuses locked and hidden images
2026-12-03 07:34:43 -08:00
.CooCoo 6d2b626597 Merge pull request #10653 from dotCooCoo/fix/script-transform-stroke-limit-empty-path
Scripts: transforms keep path strokes within 1000 points and take empty paths
2026-12-03 07:34:28 -08:00
.CooCoo 06d4971200 Merge pull request #10648 from dotCooCoo/fix/dxf-unit-scale-ratio-percent
Scripts: ExportOptionsAutoCAD.unitScaleRatio is a percentage
2026-12-03 07:34:11 -08:00
.CooCoo 4ed98d68c1 Merge pull request #10645 from dotCooCoo/fix/legacy-tracing-first-sight
Scripts: tracings saved without their record catch artwork added before the script reaches them
2026-12-03 07:33:48 -08:00
.CooCoo 2000adaa06 Merge pull request #10640 from dotCooCoo/fix/newdoc-preset-category
New Document: a bad preset or presetCategory is an error instead of being ignored
2026-12-03 07:32:45 -08:00
.CooCoo 6010e5c731 Merge pull request #10637 from dotCooCoo/fix/failed-run-keeps-plugin-events
Plug-ins: a failed script run gives back the events its opens pushed out
2026-12-03 07:32:20 -08:00
.CooCoo 9a21dae940 Merge pull request #10636 from dotCooCoo/fix/script-image-read-once
Scripts: placing or relinking an image reads its file once
2026-12-03 07:32:03 -08:00
.CooCoo cadb2f5901 Merge pull request #10605 from dotCooCoo/fix/numbers-single-pass
Type Tools: Make Numbers Sequence rebuilds long text in one pass
2026-12-03 07:28:37 -08:00
.CooCoo 2cb11e33d3 Merge pull request #10587 from dotCooCoo/fix/numbers-skip-threaded-unmatched
Type Tools: Make Numbers Sequence skips threaded type with nothing to replace
2026-12-03 07:28:19 -08:00
.CooCoo da592f192e Merge pull request #10573 from dotCooCoo/fix/mark-bounds-beside-live-objects
Arrange Tools: Mark Bounds of Each puts marks beside a live object, not inside it
2026-12-03 07:27:55 -08:00
.CooCoo afa90dff40 Merge pull request #10552 from dotCooCoo/fix/svg-pixel-size-not-zero
SVG export: a small positive pixel size is not written as 0
2026-12-03 07:27:33 -08:00
.CooCoo 1b16db38dd Merge pull request #10486 from dotCooCoo/fix/random-fill-undrawn-designs
Color Effects: Randomize Fill Colors colors compounds in a series that names a design it does not draw
2026-12-03 07:26:36 -08:00
.CooCoo 3a6e384f45 Merge pull request #10459 from dotCooCoo/fix/halftone-grid-styles
Vector Halftone: add Grid, Grid Angle, Grid Dots and Grid Dots Angle styles
2026-12-03 07:26:20 -08:00
.CooCoo a161afb339 Merge pull request #10451 from dotCooCoo/fix/step-repeat-review
Step and Repeat: pixel-aligned copies keep their artwork registered and stay on the sheet
2026-12-03 07:26:01 -08:00
.CooCoo 4f0d45d555 Merge pull request #10444 from dotCooCoo/fix/web-image-paste-speed
Paste: a bitmap copied in another app is not encoded and decoded again
2026-12-03 07:25:43 -08:00
.CooCoo 68fcab0512 Merge pull request #10436 from dotCooCoo/fix/slider-cancel-after-failed-preview
Path sliders: Cancel ends the edit a refused preview left open
2026-12-03 07:25:26 -08:00
.CooCoo 7836fbbe1c Merge pull request #10379 from dotCooCoo/fix/gradient-stop-swatch-identity
Gradient: the stop popover keeps the swatch picked among swatches of one color
2026-12-03 07:24:27 -08:00
.CooCoo 81af84dd2f Merge pull request #10357 from dotCooCoo/fix/ai-crop-to-crop-docs
Docs: say when an explicit crop box opens a PDF with editing data
2026-12-03 07:23:55 -08:00
.CooCoo a1cf53d324 Merge pull request #10345 from dotCooCoo/fix/classic-tool-icons
Preferences: Classic tool icons by default, with the current icons selectable
2026-12-03 07:23:43 -08:00
.CooCoo 7a14274d56 Merge pull request #10211 from dotCooCoo/feat/vector-3d-materials
3D: Roughness and Metallic on the Materials tab shade and export the surface
2026-12-03 07:21:12 -08:00
.CooCoo 4ae9e3641d Merge pull request #10189 from dotCooCoo/fix/compound-release-opacity
Compound Paths: Make and Release keep the transparency and opacity mask
2026-12-03 07:19:37 -08:00
.CooCoo d5aef1fb90 Merge pull request #10154 from dotCooCoo/fix/offset-objects-pixel-snap-gap
Arrange Tools: Offset Objects chains pixel-aligned objects from where they snap
2026-12-03 07:18:54 -08:00
.CooCoo 44c6916bde Merge pull request #10077 from dotCooCoo/feat/artboard-flood-fill
Document Tools: Flood Fill Artboards adds an artboard-sized rectangle on its own layer
2026-12-03 07:17:43 -08:00
.CooCoo c4c217a416 Merge pull request #9142 from dotCooCoo/fix/recolor-picked-swatch-link
Recolor Artwork: a swatch picked for a row keeps the art linked to it
2026-12-03 07:16:48 -08:00
.CooCoo 79fdfedfb5 Merge pull request #9075 from dotCooCoo/feat/scripts-api-d8c-rasterize-capture
Scripts: Document.rasterize and Document.imageCapture with their option classes
2026-12-03 07:14:28 -08:00
.CooCoo 7b67f8fc44 Merge pull request #10652 from dotCooCoo/fix/script-clipped-hidden-top
Scripts: clipped = true refuses a hidden or locked topmost object
2026-12-03 07:13:14 -08:00
dotCooCoo 4a1ac38ac3 Scripts: a Linux folder whose casefold flag can't be read is taken as casefolded
When the folder can't be opened or `FS_IOC_GETFLAGS` fails, `casefolded`
returned false, so `imageCapture` treated names that differ only in their
normalization form as two files and could write over a source document.
It now returns false only when the flags are read and the flag is clear.
2026-12-03 02:59:58 -08:00
dotCooCoo ade0e47f48 Scripts: refused writes create no file; Linux reads the casefold flag
A refused rename that falls back to copying into the target no longer
creates a missing target before the final authorization check. The
target is created only after that check, on every platform, so a
refusal at the final check leaves the path absent. An existing target
is still opened with O_CREAT, so Linux's fs.protected_regular applies.

imageCapture no longer treats an empty Linux folder as ignoring the
Unicode normalization form. It reads the folder's casefold inode flag
(FS_IOC_GETFLAGS) instead, so a missing linked cafe\u{301}.png no longer
matches cafe\u{e9}.png in an ordinary folder, and a casefolded folder
still matches both spellings.
2026-12-03 02:35:18 -08:00
.CooCoo a2c62a4a0a Merge pull request #10705 from dotCooCoo/fix/css-dotted-border-note
CSS Properties: evenly spaced round dots are a dotted border without a note
2026-12-03 02:18:36 -08:00
.CooCoo 40060e0943 Merge pull request #10680 from dotCooCoo/fix/pdf-coverage-gaps-batch-11
Tests: cover PDF mesh shadings, restroked glyphs, repeated masks and spot midpoints
2026-12-03 02:03:39 -08:00
.CooCoo 99cbe84d99 Merge pull request #10691 from dotCooCoo/fix/svg-web-export-coverage
Tests: cover SVG font keywords, CSS border styles and Save for Web text cells
2026-12-03 02:03:36 -08:00
dotCooCoo 0d9dfe6bb8 Merge main into fix/script-clipped-hidden-top 2026-12-03 01:54:05 -08:00
.CooCoo bbef8bc4cb Merge pull request #10684 from dotCooCoo/test/docx-place-coverage
Tests: cover the limits and package errors of placing Word documents
2026-12-03 01:47:17 -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
dotCooCoo 7b51b005eb CSS Properties: evenly spaced round dots are a dotted border without a note
A stroke of evenly spaced round dots (round cap, a zero-length dash, one
gap length, not fitted to corners) is written as `border: ... dotted`, but
the rule also carried the "arrowheads, width profiles, brushes or dashes
fitted to corners" note, and with rasterize on it got a picture as well.
Such a stroke no longer raises that note. Projecting caps, dots fitted to
corners, dots mixed with dashes and unevenly spaced dots keep it.

A gradient border is written with `border-image`, which replaces the
border's style, so its dots or dashes are lost. A dotted or dashed
gradient border now carries the note "dashes or dots on a gradient border".
2026-12-03 00:15:40 -08:00
dotCooCoo 4e90d6c211 Scripts: same_folder builds without a needless bool on Windows
On Windows the Unix block in same_folder is compiled out, which left
`if a == b { return true; } false` and failed clippy's needless_bool
lint with -D warnings in the Windows CI run. The early return now sits
inside the Unix block and the other platforms compare the paths.
Behavior is unchanged on every platform.
2026-12-03 00:09:32 -08:00
dotCooCoo 96ba49f5bd Files: check a write again before it is put in place off Unix
Off Unix, write_atomic_checked asked `allowed` once, before the file
was written, so a destination that stopped being allowed while the file
was filled still received it. The check now runs again after the fill,
right before the rename, and again before the content is copied over a
file whose folder refuses the rename. A refusal removes the staging
file and leaves the target as it was.

The hard-link fixtures in the capture tests unwrap the link again, as
the other hard-link tests in the engine do (script_io.rs, plugins.rs).
2026-12-02 23:09:11 -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
dotCooCoo 14e8959bc0 Scripts: tighten rasterize clip bounds and imageCapture destination checks
- object.rasterize and Document.rasterize refuse clipBounds that reach
  none of the selected objects' own bounds, including a rectangle in the
  gap between two of them, instead of replacing the art with a
  background-only image.
- imageCapture checks its destination again on every write the export
  makes and as the file is committed, so a destination that becomes a
  link to an open document or a linked file while the art renders is
  refused.
- imageCapture refuses a destination whose real path is not valid UTF-8
  instead of writing under a name with its bytes replaced.
- A missing linked file's name in the other Unicode normalization form
  counts as the linked file in folders that ignore the form (macOS, and
  casefolded folders on Linux).
- The hard-link tests skip on volumes without hard links.
- docs/mcp.md: imageCapture rounds clip dimensions to the nearest pixel;
  rasterize rounds fractional dimensions up.
2026-12-02 22:19:16 -08:00
dotCooCoo ebe9e41a33 Tests: check where the spot gradient midpoint lands in the PDF
The test passed "midpoint": 30, which the command clamps to 0.87, and its
tint assertions hold at any midpoint. It now passes 0.3 and asserts the
stitching function's /Bounds[0.3].
2026-12-02 21:57:42 -08:00
dotCooCoo 06e5e28a0b Tests: cover SVG font keywords, CSS border styles and Save for Web text cells
- SVG import: font-size keywords (x-large), larger and smaller against
  the parent's size, and every bolder and lighter step from the parent's
  weight.
- CSS Properties: a round-capped dash starting with 0 gives a dotted
  border, other dashes a dashed one, and a gradient stroke a border with
  border-image. A pen-drawn upright rectangle is written as a rectangle
  with square corners, and the same path rotated gets the note for a
  shape CSS cannot draw.
- Save for Web: a No Image cell over the matte color, aligned right and
  bottom, and an HTML Text cell whose lines are escaped and joined with
  <br>.
2026-12-02 21:55:45 -08:00
dotCooCoo 41ad2f9339 Tests: cover the script gate's checked writes and three file-size limits
- A checked write to a real path passes a script gate only inside its
  write folder, and only when every gate chained to it passes too.
- Stored plug-ins past the store's byte budget are listed as failed, and
  a stored file larger than what is left of the budget is skipped.
- library.import refuses a file over 512 MB from its size, before it is
  opened.
- An arrowheads file over 64 MB lists no heads and reports why.
2026-12-02 21:35:52 -08:00
dotCooCoo 74e7109026 Scripts: the look for changed path points after each command is charged
After a script reads a path's points, each command makes the run look
through the changed layers and groups of the document for those paths.
That look was not counted toward the script's operation budget, so a
loop of commands on a large layer did unbounded work. It now charges the
objects it looks at, as the layer scans in layers.rs do.

- The look pairs each object with the one of the same id under the same
  parent now, and lists the document once for a group that moved, so no
  object is searched for through the whole document.
- A document none of whose read paths remain is no longer looked at.

The look was added in #9288.
2026-12-02 21:28:43 -08:00