Commit Graph
917 Commits
Author SHA1 Message Date
BFlat 27e413fda5 Merge pull request #8936 from dotCooCoo/fix/dimension-level-snap-checks
Dimension tool: a line at a slight angle or past the distance limit is not a level
2026-11-22 10:46:51 +07:00
BFlat 4aa0de7867 Merge pull request #8911 from dotCooCoo/fix/revolve-surface-alpha-absolute
Tests: Revolve's surface alpha under colored lights is checked in absolute terms
2026-11-22 10:43:24 +07:00
dotCooCoo 479dd27535 Dimension tool: a line at a slight angle or past the distance limit is not a level
A linear dimension line placed near another dimension's line lands on its
level only when that line is parallel. Before, the check compared the two
directions only, so a long line at a slight angle passed it: with its first
end within the snapping tolerance, the new line landed on a level the other
line had already left, and the guide ran at an angle between the lines. A
line is now parallel when it moves off its level by no more than 0.000001 pt
across the span of both lines.

A level that would put the line more than 1,000,000 pt from its points is
passed over. Before, the tool took it, the preview failed validation and
was not sent, and a click committed the earlier preview position. The next
level within reach is taken instead, or the line goes where the pointer is.

The level guide also needs Smart Guides on when it is drawn, so turning
Smart Guides off before the next pointer move hides it.

The nonparallel case in the placement test now puts the pointer within
reach of the first line's end, so it fails without the parallel check, and
the guide test expects exactly one guide.
2026-11-20 20:42:08 -08: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 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 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 1106a8f667 Tests: check Revolve's surface alpha under colored lights in absolute terms
colored_revolve_faces_leave_no_alpha_holes_at_one_to_one compared each
representation only with its own 3x render, so a 60% opacity lost or
applied twice by SVG or PDF import passed at both scales. The test now
also reads the alpha inside the body: 153 within 3 levels with a fill
opacity of 60%, 214 within 3 levels with 60% gradient stops (front and
back faces at 60% each), and 255 when opaque.
2026-11-20 19:28:51 -08: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
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 <RobertLeeLW@gmail.com>

* 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 <RobertLeeLW@gmail.com>
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 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 3f8e4b1fdc Merge main into feat/distorted-image-commands 2026-11-19 16:54:09 -08:00
yoriswind 3aa1e34294 Tests: split scissors endpoint control helper
Preserve the endpoint, interior, and canonicalization checks while keeping each helper below strict Clippy complexity limits.
2026-11-19 20:21:09 +00:00
yoriswind 36bde202eb Scissors: preview the actual cut point
Show the native point marker at the existing cut target, respecting consumer endpoint eligibility/canonicalization and current snapping/selection. Keep cut commands unchanged.

Closes #8655.
2026-11-19 20:00:59 +00:00
dotCooCoo 70a36623ad Merge main into feat/distorted-image-commands 2026-11-19 11:17:21 -08:00
bflatastic 8157194da2 Merge remote-tracking branch 'origin/main' into fix/8585 2026-11-19 23:23:53 +07:00
dotCooCoo f8a5534abb Merge main into feat/distorted-image-commands 2026-11-19 07:42:56 -08:00
BFlat aad3ea3bb5 Merge pull request #7674 from dotCooCoo/feat/proof-setup-customize
View: Proof Setup › Customize… opens a dialog for the device to simulate
2026-11-19 21:31:51 +07:00
dotCooCoo c4c1495c04 Direct Selection: Alt and Cmd/Ctrl apply while Space moves a handle
A handle drag kept the Alt and Cmd/Ctrl state it had before Space was
pressed, so pressing Alt or releasing Cmd/Ctrl during a Space translation
changed nothing until Space was released and the pointer moved. Both
modifiers are now read on every drag event. The Space translation still
keeps the accepted handle position.
2026-11-19 06:23:27 -08:00
BFlat 6b7ad6cf55 Merge pull request #8605 from dotCooCoo/feat/dimension-stroke-arrowheads
Dimension: Arrow Style offers every built-in stroke arrowhead
2026-11-19 21:07:19 +07:00
dotCooCoo 8b289bf6bb Direct Selection: Cmd/Ctrl mirrors an ordinary path's handle again
The handle drag that keeps Space translation sent path.setHandle without
`symmetric`, so Cmd/Ctrl no longer mirrored the opposite handle on an
ordinary path. The drag now records the mirror with the handle it accepts
and sends it on every preview, so the opposite handle stays mirrored while
Space moves the anchor. Alt still takes priority.
2026-11-19 05:49:14 -08:00
BFlat 778b95918d Merge pull request #8460 from dotCooCoo/feat/transform-rect-ellipse-angle
Transform: Rectangle and Ellipse Properties show the shape's angle
2026-11-19 20:44:43 +07:00
dotCooCoo 056059d8cb Merge main into feat/direct-select-mirror-handles 2026-11-19 05:18:05 -08:00
dotCooCoo dafade6173 Merge main into feat/proof-setup-customize
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
#	crates/ui-egui/src/i18n/tests.rs
2026-11-19 05:04:12 -08:00
dotCooCoo d084e90cba Merge main into feat/dimension-stroke-arrowheads 2026-11-19 04:54:39 -08:00
dotCooCoo 173d72a867 Merge main into feat/distorted-image-commands 2026-11-19 04:49:23 -08:00
dotCooCoo b0bebd324d Merge main into feat/transform-rect-ellipse-angle 2026-11-19 04:42:52 -08:00
Sven Lafebre 4c20c3e21f Merge remote-tracking branch 'origin/main' into fix/8188-ai-arrowheads
# Conflicts:
#	crates/engine/src/cmd/stroke.rs
#	crates/eps/src/import/ai/read/ops.rs
#	docs/file-format-parity.md
2026-11-19 12:34:27 +01:00
bflatastic 06706b1660 Merge main into #8122
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-19 15:23:56 +07:00
bflatastic e4169d7412 Merge main into #7515
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 15:19:43 +07:00
BFlat 31c2107b73 Merge pull request #8649 from dotCooCoo/feat/actions-automatic-align-to
Actions: an action can choose Align To when it plays
2026-11-19 15:09:04 +07:00
BFlat 2c1c36c77a Merge pull request #8632 from dotCooCoo/feat/cmx-open
File formats: open and place .cmx files
2026-11-19 15:07:21 +07:00
BFlat f8a355786e Merge pull request #8575 from dotCooCoo/fix/pen-rubber-band-close-join
Pen: the rubber band over the first anchor or another path's end is the segment a click adds
2026-11-19 15:03:23 +07:00
BFlat c03765a22d Merge pull request #8571 from dotCooCoo/fix/dimension-levels-linear
Dimension tool: only a linear dimension reads the dimension lines
2026-11-19 15:02:00 +07:00
dotCooCoo 4696b3b010 Merge main into feat/transform-rect-ellipse-angle 2026-11-18 23:55:03 -08:00
BFlat df42e09ba5 Merge pull request #7733 from dotCooCoo/feat/color-profile-ask-prompts
Color Settings: Ask When Opening and Ask When Pasting prompt about profile mismatches
2026-11-19 14:52:30 +07:00
yoriswind 0471818814 Merge current main while preserving PR #6713 2026-11-19 06:32:22 +00:00
yoriswind 28ccda8dd5 Merge current main while preserving PR #8122 2026-11-19 06:31:27 +00:00
yoriswind b21a218b21 Merge current main while preserving PR #7515 2026-11-19 06:30:20 +00:00
dotCooCooandyoriswind d92a1f9134 Actions: an action can choose Align To when it plays
object.align takes to: "auto", which aligns to the key object, key
anchor or key guide when the selection has one, else to the artboard
when exactly one object is selected and no anchor points are, else to
the selection.

New Action and Action Options have Choose Align To at playback
(automaticAlignTo on ui.action.new and ui.action.options), off by
default. With it on, playback sends to: "auto" for each object.align
step, without any artboard index the step stores, so the step uses the
active artboard; the stored steps keep their recorded params. Save
Actions writes the option, and a set that uses it is saved as file
version 7.

The dialog's strings have rows in every catalog, and docs/mcp.md
describes to: "auto", automaticAlignTo and file version 7.

Fixes #6972. Supersedes #7635.

Co-authored-by: yoriswind <yoriswind@yahoo.com>
2026-11-18 20:46:38 -08:00
dotCooCoo d3696410d8 Dimension tool: levels come from the document the next preview applies to
While a linear dimension is placed, each preview starts again from the
document as the placement began. The tool now reads the lines of the
other dimensions from that document (the new ToolContext field
interaction_doc), not from the document a command changed in between, so
a dimension that a command moves or hides and that the next preview puts
back does not leave the placed dimension on a level the committed
document does not have.

The engine test now drags a dimension out, runs dimension.update or
object.hide on the other dimension, releases, and checks the committed
line against that dimension as the document has it. The tool test that
checks which dimensions read lines also covers radius and diameter
dimensions.
2026-11-18 18:00:26 -08:00
dotCooCoo ac8cdf071d Preflight: measure a distorted image's resolution as Image Info does
Production Preflight measured a distorted image's effective resolution
from its transform alone, so an image enlarged by Perspective Distort or
Free Distort could pass the minimum. It now measures it at its middle,
with the placement Image Info reports.
2026-11-18 18:00:12 -08:00
dotCooCoo 1f26501f91 Pen: no rubber band where a click adds no segment, and the label measures the band
A click on the last anchor retracts its handle, an Alt click over the path
goes to the Anchor Point tool, and a join with an end that lies on the last
anchor merges the two ends. None of these adds a segment, so no rubber band
shows there. The measurement label measures to the anchor the band ends on
instead of the snapped pointer. A press and a hover no longer search for an
end at the snapped point when snapping left the pointer where it was.
2026-11-18 17:05:57 -08:00
dotCooCoo 76705afc2f Dimension: leave a null arrowHead out of saved options
Saved and recorded dimension options carried "arrowHead": null even
without a stroke head, so a recorded dimension.create failed in versions
that do not know the option. The field is now left out when it is null.
dimension.create, dimension.update and Dimension Tool Options still take
it. The name is read without a copy of its own, and a name longer than
any built-in one is refused before it is parsed. Through ui.dialog.set,
an arrowStyle set in Dimension Tool Options clears arrowHead, and a
built-in arrowHead sets the arrowStyle of its Arrow Style entry, as that
menu does. The Arrow Style field reads only a built-in head's name from
a draft.

The Stroke panel and Arrow Style look up a built-in arrowhead's name in
the catalog's arrowhead rows first, then its plain row. Every complete
catalog gets an arrowhead row for Feather, so the Feather arrowhead is
named as an arrowhead in each, and the de, gu, it, ja, ko, uk, vi,
zh-hans and zh-hant catalogs no longer show it in English.

Versions that have the stroke arrowhead but do not read arrowHead keep a
dimension's saved arrows until they draw the dimension again, and then
draw arrowStyle; versions without the stroke arrowhead do not open the
file. The params text, the doc comments, docs/dimensions.md, docs/mcp.md
and docs/target-app-parity.md say so.

The French Line Arrow row moves next to the other rows of its block.
2026-11-18 16:46:10 -08:00
dotCooCoo c7d78a2dac File formats: open and place .cmx files
.cmx exchange files with 32-bit coordinates open and place as editable
art. vectorcraft-cdr reads the RIFF form CMX1, its header, the color,
pen, line type, dash, outline and arrowhead tables, and each page's
instructions in drawing order, into the drawing model the .cdr reader
uses, so the importer maps pages, layers, groups and curves with uniform
fills and outlines the same way. A layer that holds nothing is left out.
A page that gives no size of its own takes the size of the drawing's
bounds, which the page header stores, and is centered on them.

Text, images, rectangles, ellipses, clipping paths, fills other than
uniform ones and arrowheads are left out, and lenses are not applied;
the warnings name each kind, with rows in every complete catalog.
Big-endian files and files with 16-bit coordinates are refused with a
message. Layouts and their sources are rows R53 to R63 of
crates/cdr/PROVENANCE.md; tests use synthetic files only.
2026-11-18 15:52:44 -08:00
dotCooCoo 95ed13dd80 Color Settings: answer the review of the profile prompts
- An absolute-colorimetric conversion from CMYK starts from the source's
  absolute appearance.
- An assigned profile that was removed counts as the working space when
  copied colors are compared.
- Colors that can't convert are listed with convertible false, start on
  Preserve Numbers, and the dialog disables Convert for them.
- Paste on All Artboards leaves the backgrounds of copied artboards out of
  the question (clipboard.profileMismatch allArtboards).
- A converting paste into its own document keeps its image keys.
- An open answer is refused once Color Settings change the question; the
  dialog asks the new question, or opens by the policy.
- Files opened while a question is open ask their own questions in turn.
- OK on the paste question and on Swatch Conflict checks again where the
  paste runs and asks again when the question changed.
- docs/mcp.md and the command help describe these rules.
2026-11-18 15:42:03 -08:00
dotCooCoo 9754344712 Dimension tool: a dimension locked while another is placed is no longer a level
The engine test that runs commands while a linear dimension is placed now
also locks the other dimension, as well as hiding and deleting it, and
checks that no guide runs along its level.

docs/dimensions.md says that layers and groups count toward the 20,000
objects the tool reads for levels.
2026-11-18 14:52:47 -08:00