6767 Commits
Author SHA1 Message Date
BFlat f593dff00c Merge pull request #8903 from dotCooCoo/fix/plugins-folder-special-files
Plug-ins: the plug-ins folder can't block startup on a special file
2026-11-21 11:02:50 +07:00
BFlat 4ce43b1091 Merge pull request #8532 from dotCooCoo/feat/distorted-image-commands
Links: Relink, Embed and Unembed keep a distorted image's corners
2026-11-21 11:01:53 +07:00
BFlat 1a1a939bdf Merge pull request #8858 from dotCooCoo/fix/style-redefine-series-own-links
Graphic Styles: Redefine Graphic Style keeps the own style of a path inside a series group linked to the target
2026-11-21 10:56:45 +07:00
BFlat 96726b1f41 Merge pull request #8837 from dotCooCoo/fix/live-paint-contents-group-targets
Live Paint: graphic styles on a group's contents give fills to its faces and strokes to its edges
2026-11-21 10:39:37 +07:00
BFlat f558297963 Merge pull request #8681 from dotCooCoo/feat/retype-near-matches
Retype: near matches within a tolerance, and words outlined as one compound path
2026-11-21 10:38:18 +07:00
BFlat de11798f93 Merge pull request #8892 from dotCooCoo/fix/kinsoku-paste-relayout-test
Kinsoku sets: tests for pasted type and shaped lines under a custom set
2026-11-21 10:36:41 +07:00
BFlat 7945ef5c86 Merge pull request #8884 from dotCooCoo/fix/safe-mode-expand-symbol-art
Expand Appearance: Safe Mode checks symbol art that a group's raster effect draws
2026-11-21 10:35:31 +07:00
BFlat f39e3e06cf Merge pull request #8871 from dotCooCoo/feat/draw-behind-place-symbol
Symbols: in Draw Behind a placed instance goes directly below the selection
2026-11-21 10:35:08 +07:00
BFlat c86bb07a44 Merge pull request #8854 from dotCooCoo/fix/confined-single-pdf-test-artboards
Tests: a confined single-file PDF of several artboards checks every artboard it carries
2026-11-21 10:34:16 +07:00
BFlat e8b23c5ba9 Merge pull request #8852 from dotCooCoo/fix/mesh-picks-survive-tool-switch
Mesh: picked points stay picked between the mesh-point tools
2026-11-21 10:33:52 +07:00
BFlat 4c0edd8844 Merge pull request #8904 from dotCooCoo/feat/script-check-host-classes
Script checker: setting a File's length, hidden or readonly counts as a file write
2026-11-21 10:32:19 +07:00
dotCooCoo b2e7784160 Docs: progress line for the script checker's File setters and host test
docs/target-app-parity.md gets a line for the file.write report on a
File object's length, hidden and readonly and for the test that lists
every name the script host adds, with the tests that cover them. The
test's comment on vc no longer names another app.
2026-11-20 19:05:54 -08:00
dotCooCoo e2d62de4fe Merge main into feat/distorted-image-commands 2026-11-20 18:54:01 -08:00
dotCooCoo 417ed94431 Script checker: setting a File's length, hidden or readonly counts as a file write
Setting a File object's length truncates or pads the file, and setting
readonly or hidden changes it, but script.check reported no outside
category for those assignments. It now reports file.write and
filesWritten for them: plain and compound assignment, ++ and -- before
or after, and the property name as a string literal in brackets.

A new integration test lists every global and member the script host
adds to the JavaScript engine (the own properties of the global object,
of each object or function it holds and of each function's prototype,
compared with a plain engine) and fails when one has no row. Each name
that reaches outside the document has a probe script, and the test
checks that script.check gives it the expected outside id. vc is listed
as not checked: script.check reads scripts written for the reference
app's scripting, and what vc.run does depends on the command. The test
also checks that the checker lists every preprocessor directive the
host reads, through the new DirectiveName::ALL.

File object properties:
https://extendscript.docsforadobe.dev/file-system-access/file-object/
2026-11-20 18:36:13 -08:00
BFlat 4596183e67 Merge pull request #8898 from dotCooCoo/feat/scripts-api-c1-corpus 2026-11-21 09:01:03 +07:00
dotCooCoo 2adc433f5e Plug-ins: the plug-ins folder can't block startup on a special file
A folder load checked each .wasm path and then opened it with a blocking
open. When a named pipe replaced the file between the two, the open held
the load until something wrote to the pipe, and with it startup or a
prefs.set of the folder. On Unix the file is now opened
without waiting and without making a terminal the controlling terminal,
and the opened file is checked again: anything that is not a regular file,
or is over the module limit, is refused and listed in the folder report.

A folder load still reads at most 1,000 .wasm files, the first by file
name, and now holds only those paths while it lists the folder. The
files past the first 1,000 were dropped and not reported; plugin.reload
and plugin.list now return their count as leftOut. An error while the
folder is listed fails the load, as an error opening the folder does,
instead of dropping the entries after it.
2026-11-20 17:28:22 -08:00
Dylan M. TayloranddotCooCoo 82d5aabeec refactor(cdr): use shared craft-cdr from craft-libs (#8857)
* refactor(cdr): depend on shared craft-cdr from craft-libs (#1665)

Replaces the local crates/cdr (vectorcraft-cdr) crate with craft-cdr
from storytold/craft-libs#2697 (storytold/craft-libs#778), keeping
VectorCraft's document/artboard/layer/shape mapping in crates/engine.

Co-authored-by: dotCooCoo <[email protected]>

* build(cdr): pin craft-cdr to craft-libs main (75d179f8df)

* build(cdr): pin craft-cdr to craft-libs main (9b28b56bc7)

* docs(cdr): point CDR/CMX provenance and test paths to craft-cdr

---------

Co-authored-by: dotCooCoo <[email protected]>
2026-11-20 20:27:55 -05:00
dotCooCoo bbc183f793 Tests: fetch a pinned public script corpus and report its headless pass rate
Part of #1210.

- `cargo xtask corpus --scripts` fetches 397 scripts and 1 included file
  from 19 MIT and Apache-2.0 repositories at pinned commits into
  corpus/scripts, each repository's license file beside its scripts.
  xtask/script-corpus.txt lists every file with its size and SHA-256; a
  download replaces the previous copy only when both match. One more
  candidate is listed as excluded because it is over the 1 MiB limit for
  one script. The fetch caps 64 MiB of scripts and 128 MiB of transfer,
  refuses `..`, absolute paths, reserved names, case-fold collisions and
  links, and holds a lock file while it runs.
- `cargo xtask corpus` takes at most one of --download, --affinity and
  --scripts, and refuses other arguments with the usage text.
- `cargo xtask scripts --pass-rate [--report <path>]` runs each script in
  a process of its own (the ignored `row` test in
  crates/engine/tests/script_corpus.rs): a new document, 5,000,000
  instructions, no dialog answers, file reads only in the script's
  repository folder and a new folder of its own, file writes only in that
  folder, stopped after 10 seconds. It writes a JSON report with the pass
  rate overall, per repository and for scripts without dialogs or
  windows, how many parse, and each script's outcome, with local folders
  removed from messages. Script failures never fail the command, and
  without the corpus it prints a skip line and exits 0.
2026-11-20 16:47:30 -08:00
dotCooCoo 91e2551f47 Kinsoku sets: tests for pasted type and shaped lines under a custom set
Pasted type whose custom set was edited after the copy is checked against
a fresh layout by its line ends, which move from A to B while the line
count stays the same, so the test fails without the relayout in Relink.

The every-line composer's first-word measure is checked in a frame whose
top is narrower than the word the custom set's Cannot End Line makes, so
the test fails when that measure uses the built-in setting instead.
2026-11-20 16:38:04 -08:00
dotCooCoo 5721f96931 Expand Appearance: Safe Mode checks symbol art that a group's raster effect draws
A plain symbol instance does not expand on its own, so the Safe Mode
plug-in check skipped its symbol's art. When a group or layer around the
instance has a raster effect (its own, or on one of its fills or
strokes), the group's image draws that art, plug-in effect included, and
Expand Appearance committed pixels without the plug-in effect instead of
returning the Safe Mode error. The check now looks into every object of
such a group or layer, symbol art included.
2026-11-20 16:14:07 -08:00
dotCooCoo 14e22a1dff Mesh: a Lasso click that deselects also unpicks the mesh points
A plain Lasso click away from the art deselects everything but kept the
mesh points the tool held, so the Mesh tool chosen next showed the
deselected points as picked, nudged them with the arrow keys and
recolored them with a fill color. The click now unpicks them. Shift and
Alt clicks still change nothing.

docs/target-app-parity.md also lists the Eyedropper among the tools that
keep the picks, and docs/mcp.md describes the Lasso click.

Test: a_lasso_click_that_deselects_unpicks_the_mesh_points in
crates/engine/src/tests/mesh_picks.rs.
2026-11-20 15:28:27 -08:00
dotCooCoo a82de18956 Symbols: in Draw Behind a placed instance goes directly below the selection
symbol.place, symbol.placeFromDocument and symbol.addFromLibrary with
`place` now read the drawing mode: in Draw Behind the new instance goes
directly below the selected object, or at the bottom of the current
layer when nothing is selected, as the help page describes for placing
symbols
(https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/learn-drawing-basics/drawing-modes-overview.html).
Place Symbol Instance in the Symbols panel and a symbol dragged onto
the canvas from the Symbols panel or a symbol library all go through
these commands.

VectorCraft's own rules: with several objects selected the instance
goes below the bottommost one, a selected path in a compound path puts
it beside the compound path, and a clipping path stays at the bottom of
its clip group or clipping layer. Draw Normal and Draw Inside keep the
instance on top of the current layer, and a locked or hidden layer
still refuses it with no edit.
2026-11-20 15:14:53 -08:00
dotCooCoo 0a33781158 Links: the Unembed code comment names TIFF among the stored formats
An image that keeps CMYK inks is stored as TIFF, and Unembed writes it as a .tif file when the path has no extension. The comment above the format choice now lists TIFF with PNG, JPEG, GIF and WebP.
2026-11-20 15:02:06 -08:00
dotCooCoo a04159b287 Graphic Styles: Redefine Graphic Style keeps the own style of a path inside a series group linked to the target
graphicStyle.redefine passed the redefined style to every path directly in a
graph series group linked to it, and to every line and label of a linked Axes
or Legend group, so a member linked to another style (the `from` style or a
third one) was restyled and relinked to the target. Such a member now keeps
its look and its link, in the `from` and the object forms; unlinked members
and members still linked to the target follow as before. The group is still
cleared and unlinked, and one undo takes it all back.
2026-11-20 14:39:10 -08:00
dotCooCoo 3023335b59 Mesh: picked points stay picked between the mesh-point tools
Gradient mesh points picked with the Mesh tool, Direct Selection, the
Lasso or the Polygonal Lasso now stay picked when another of these tools
is chosen, and when one of them lends Direct Selection for a Cmd/Ctrl
click, so a fill color chosen afterwards recolors just those points.
Before, only a switch to or from the Eyedropper kept them. Any other
tool, Group Selection included, drops them.

Session::switch_tool, lend_selection_tool and give_back_tool share one
test of which tools pick mesh points. Giving the tool back leaves the
lender's picks alone when they did not change, so the Mesh tool keeps
the point whose handles it shows.

Tests: crates/engine/src/tests/mesh_picks.rs.
Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-20 14:14:48 -08:00
dotCooCoo 4df75635da Tests: a confined single-file PDF of several artboards checks every artboard it carries
A single-file PDF with Preserve Editing of an artboard range carries the
whole document, so a confined export of it checks the links on every
chosen artboard. The new test exports artboards 1-2 as one PDF, then
places an image linked outside the read roots on the second artboard
only and checks that the export is refused without writing its folder.
It also checks that assets.export refuses pdfs `single`, the source
that pdfs `single` does not accept.
2026-11-20 14:14:26 -08:00
bflatastic e1aa78590a Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/target-app-parity.md
2026-11-20 23:41:24 +07:00
dotCooCoo 562bc30860 Merge main into fix/live-paint-contents-group-targets 2026-11-20 06:45:10 -08:00
dotCooCoo f9c00a5ae5 Live Paint: graphic styles on a group's contents give fills to its faces and strokes to its edges
Follows #8765. graphicStyle.apply with target "contents" gave every face
and edge of a Live Paint group the whole style, so faces drew the style's
strokes along their outlines and edges drew its fills. Each face now takes
only the style's fills and each edge only its strokes, with or without
add, and neither is linked to the style. An add that gives a face or edge
nothing leaves it and its link as they are, and an apply that changes
nothing records no undo step.

appearance.clear on the contents leaves a face one empty fill and an edge
one empty stroke, and appearance.reduceToBasic keeps only a face's fill
and only an edge's stroke.

Docs: docs/mcp.md, params text, docs/target-app-parity.md.
2026-11-20 06:26:51 -08:00
BFlat 3f7620e00b test: compare the cut tests' documents without their creation stamps (#8836) 2026-11-20 21:11:52 +07:00
dotCooCoo 3e4e4e255f Merge main into feat/retype-near-matches 2026-11-20 06:02:09 -08:00
dotCooCoo c5959c36ae Retype: glyphs that fit several fonts equally often take the font they fit closest in all
Each shape votes for every face it fits, and each glyph is set in the face
with the most votes. When faces tied, each glyph took its own closest face,
so one line could be set in several fonts. With Noto Sans CJK SC loaded,
simplified Source Sans 3 outlines of "Tim" fit both faces (and Noto Sans
Hebrew) three times each: T and m took Source Sans 3 and i took Noto Sans
CJK SC, so T and m were left as lone outlines.

A tie now goes to the face with the least leftover distance summed over the
shapes that fit it, so every glyph that fits that face takes it.
2026-11-20 05:43:25 -08:00
dotCooCoo f9548440bd Retype: a translucent compound path whose glyphs overlap stays an outline
The glyphs of a split compound path can become separate type objects, for
example on two lines. A compound filled by the nonzero rule whose glyphs
overlap passed the paint check, and with an opacity below 100% the two objects
then painted the overlap twice. A split whose parts overlap now keeps the shape
an outline when the shape has an opacity below 100%, a blend mode other than
Normal, a gradient or pattern fill or a stroke.
2026-11-20 01:40:36 -08:00
dotCooCoo d1859cf03f Retype: a compound path of more than 65,536 path elements is not split into glyphs
Splitting a compound path copies its contours and compares each with the
others. A selected compound of a few contours with a very large number of path
elements was split however many elements it had. Such a shape is now matched
whole only, like one of more than 256 groups or 512 contours.
2026-11-20 00:44:37 -08:00
dotCooCoo b237da4672 Retype: a near glyph whose size and turn would draw it past the tolerance ends the line
A near-matched glyph joins a line when its size and turn are each within the
tolerance of the line's, and the line's type then draws it at the line's size
and turn. Together with the glyph's own leftover distance, that change could
put the drawn glyph further from its shape than the tolerance: an m 4% larger
and turned 0.04 radians stayed on its line at tolerance 0.05.

The layout check now also measures, for each near-matched glyph (and each glyph
of a line whose first glyph is one), how far the change from its matched size
and turn moves the drawn outline relative to its spread, combined with its own
leftover distance, and splits the line before it when that passes the
tolerance, or when the glyph's center sits further away than its origin may.
2026-11-20 00:24:20 -08:00
dotCooCoo cf80c11871 Retype: a compound tries its other complete splits when the paint check rejects the first two
A compound path whose split with the longest runs and split with the shortest
runs both failed the paint check stayed an outline, even when another complete
split (AB and CD for groups A, B, C and D) passed it. The split search now
checks the other complete splits in order, at most 32 per shape for exact
matches and 32 for near matches, and looks each run of groups up at most once,
only when the search reaches it.
2026-11-19 23:05:44 -08:00
dotCooCoo 2fa3e32c83 Retype: stacked lines split from one compound path become one object
Lines that a compound path of several glyphs splits into share that
shape, so the check that one line's shape comes right after the last
line's never passed for them, and each line stayed an object of its own.
Two lines of one shape now follow each other, and the other joining
rules decide as for lines of separate shapes. The lines of the existing
paint-order test are moved farther apart so they still make two objects.
2026-11-19 21:57:11 -08:00
dotCooCoo 99781bb329 Links: Relink and folder Unembed no longer refuse a distorted image
The refusals that ran before the files were read and before a folder was
written stopped Relink and the folder form of Unembed on an image changed
by Perspective Distort or Free Distort, which now keep their corners.
2026-11-19 17:10:00 -08:00
dotCooCoo fe7d225d6f Retype: a contour reaching outside a concave one is no counter of it, and a rejected split gives way to another
A contour counts as lying inside another only when up to eight of its anchor points do. When the paint check rejects the split with the longest runs, the split with the shortest runs is tried before the shape stays an outline.
2026-11-19 17:07:50 -08:00
dotCooCoo 3f8e4b1fdc Merge main into feat/distorted-image-commands 2026-11-19 16:54:09 -08:00
dotCooCoo 8158107e82 Retype: a counter too narrow in any direction, or an outline too large to probe, keeps the shape an outline
The fill check rejects a counter whose convex hull is narrower than three times the outline tolerance in some direction, so a turned strip is caught as well as an upright one, and rejects a shape whose outline is too large to flatten. Exact parts of a split compound are checked at tolerance 0 even when near matches are allowed, so a split that only exact matching found is not accepted under the wider tolerance. The tracking sentence in docs/type-parity.md names its three-glyph condition.
2026-11-19 16:40:10 -08:00
BFlat 7a519eea68 Merge pull request #8787 from dotCooCoo/fix/retype-skip-prohibited-tracking
Retype: a tracking that translucent glyphs cannot take no longer drops the tracked prefix already found
2026-11-20 07:37:24 +07:00
BFlat b9227b0b7c Merge pull request #8756 from storytold/train/carry8336
Symbols: Add original Nature Icons library (#8336)
2026-11-20 07:10:55 +07:00
BFlat 5efe19e7c5 Merge pull request #8782 from storytold/train/carry8001
Fill Area: a click adds a path of the enclosed area and keeps the paths around it (#8001)
2026-11-20 07:00:48 +07:00
bflatastic b95ff44c06 Merge main into #8336
# Conflicts:
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/bs.tsv
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/gu.tsv
#	crates/ui-egui/src/i18n/hi.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/it.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/ka.tsv
#	crates/ui-egui/src/i18n/ko.tsv
#	crates/ui-egui/src/i18n/nl.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-br.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/tr.tsv
#	crates/ui-egui/src/i18n/uk.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
2026-11-20 06:59:22 +07:00
BFlat 9d0ae305d6 Merge pull request #8730 from storytold/train/carry8383
Brushes: Add original Ornamental library (#8383)
2026-11-20 06:22:11 +07:00
bflatastic aa853ad275 Merge main into #8741
# Conflicts:
#	docs/effects-parity.md
#	docs/three-d.md
2026-11-20 06:07:45 +07:00
bflatastic 0810ac5b87 Merge remote-tracking branch 'origin/main' into fix/8001
# Conflicts:
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/menus/ui_commands.rs
#	docs/roadmap.md
2026-11-20 05:47:07 +07:00
BFlat d38e414b77 Merge pull request #8765 from dotCooCoo/fix/live-paint-group-review-gaps
Live Paint: the Eyedropper, overprint, proxies and contents edits follow the whole-group rule
2026-11-20 05:46:01 +07:00
bflatastic 864ef2f200 Merge main into #8763
# Conflicts:
#	docs/target-app-parity.md
2026-11-20 05:45:14 +07:00