Commit Graph
21362 Commits
Author SHA1 Message Date
dotCooCoo e674d8b7c2 Document Setup: an unchanged Color Picker OK keeps a grid color's own model
The Color Picker opened from a grid color's box wrote its color back to
Document Setup's gridColors as a hex code. Since #8630 Document Setup
opens the picker on the document's own grid colors, so an unchanged OK
on a Lab or CMYK grid color turned it into display RGB, and Document
Setup's OK stored that RGB color.

The picker now writes a list entry with grid_color_entry, which keeps a
color in its own model when its hex code would read back as another
color. A scalar color field still gets a hex code.
2026-11-20 21:23:50 -08:00
dotCooCoo 57dbc644a4 Window: a restored window fitted to a small work area is not held at the minimum size
When the work area is smaller than the smallest window (800 x 500
points), `place` fits the restored window to it, but the native
minimum inner size from `native_options` stayed at 800 x 500, so the
system kept the window bigger than the work area. `restore` now lowers
the minimum to the fitted size in each dimension where it is smaller,
and keeps the normal minimum where the work area has room for it.
2026-11-20 21:23:35 -08:00
dotCooCoo 17554f2a91 Gradient panel: a picked midpoint stays with the gradient it was picked on
The Gradient panel kept a selected midpoint diamond for the first selected
object only. With that object still selected, choosing the Live Paint
Bucket or toggling to the Stroke proxy left the diamond selected on the
gradient the panel showed then, and the Location field edited that
gradient's midpoint although nobody picked it.

The diamond is now kept for the same owner a selected stop is kept for
(document, object, proxy, Appearance row, symbol part and the bucket),
through the new `Session::gradient_owner`.
2026-11-20 21:20:58 -08:00
dotCooCoo 32afba75ae Live Paint: a Cmd-drag cut short keeps the bucket's colors
With the Live Paint Bucket active, Cmd lends the Selection tool for a
drag. When the bucket was chosen again during a drag of a corner, pie,
blend or similar widget, the lent tool canceled the drag as it went
back, after the session had already stopped treating the bucket as the
lender. With New Art Has Basic Appearance off, the cancel then gave the
selected object's appearance to the colors the bucket paints with.

The lent tool's last actions now run while the session still counts
them as the bucket's, as the Eyedropper's sample for the bucket does.
2026-11-20 21:20:58 -08:00
ruchirguitar fb591db314 Variables panel: scope row menus and respect text bindings 2026-11-21 10:47:31 +05:30
dotCooCoo c51fc47b30 Save for Web: a color shift survives Done right after the Color Picker, stops at 256 colors and matches keys written another way
- Done or Save right after the Color Picker's OK, before the dialog draws
  again, now applies the picked shift, so the saved and remembered
  settings keep it.
- Shifting a 257th color now changes nothing and the status bar shows
  the engine's limit; shifting an already shifted color again, or
  taking a shift away, still works.
- Unshift, a new shift and the Lock, Transparent and Web Shift lists
  compare colors rather than text, so a key such as `#F00` is replaced
  instead of left beside `#ff0000`.

Docs: docs/mcp.md.
2026-11-20 21:14:38 -08:00
dotCooCoo 992f6b3faf Script checker: setting length, hidden or readonly on new Folder(...) or a Folder place is not a file write
script.check reported file.write and filesWritten when a script set
length, hidden or readonly on a Folder object as well as on a File
object. It now leaves out only objects that are Folder objects whatever
the path names: new Folder(...), new Folder, and the Folder places such
as Folder.temp, except Folder.current, which a script can assign.
Folder(...) without new gives a File object when the path names a file,
and Folder.selectDialog() gives a File or Folder object, so setting
those still counts.

A variable counts as a Folder only when every assignment the check
reads gives it one: an assignment in another branch, in a function
body, or in an included file that gives it an object that may be a
File object keeps it counting, and a variable assigned another
variable counts as a possible File object. A File object assigned to a
function's own variable or parameter, or to a catch block's parameter,
ends with them. Calls such as remove() on a Folder object still count
as writes.

Folder object constructors and selectDialog:
https://extendscript.docsforadobe.dev/file-system-access/folder-object/
2026-11-20 21:10:50 -08:00
dotCooCoo 7f3888c59d Fonts: a rescan clears the version record after it publishes its catalog
A rescan of the font folders cleared the record of families whose other
versions had been looked for before it walked the folders. A version
lookup made during the walk read the old catalog and recorded its family
again, so a version the rescan found stayed hidden until the next scan.
The record is now cleared after the new catalog is written.

- The font gate used by tests: a thread's first SteadyFonts no longer
  waits for a font change that is itself waiting for guards other
  threads hold, so a guarded test does not hang when another test queues
  a change. It still waits for a change under way and for a waiting
  change that can start.
- Tests that check a change waits for a guard now read the gate's own
  decision, recorded under its lock, instead of the request to change.
2026-11-20 21:07:47 -08:00
dotCooCoo cd4ac68c09 Document Info: Linked Images and Embedded Images show each image's format, resolution and memory
A Linked Images row now gives the image's format, its size in pixels, its
resolution at the size it is placed at and its file
(`PNG; 1200 × 800 px; 150 ppi — /art/photo.png`, both axes when they
differ, `resolution unavailable` when the transform leaves the image no
area). An Embedded Images row gives the format, the size and the estimated
memory of the 8-bit RGBA pixels the image is drawn from
(`PNG; 1200 × 800 px; estimated memory 3.7 MiB`). The format comes from a
linked file's extension, else from the type of the pixels the document
holds, and reads `Unknown format` when neither is known.

document.info's imageObjects entries gain format, effectivePpi,
memoryBytes and storedBytes (the encoded bytes an embedded image keeps).
The Document Info report and Package's report write the same rows, and the
panel shows them in the interface language, with the new templates in every
complete catalog.
2026-11-20 21:05:34 -08:00
dotCooCoo e70ec2f136 Gradient: freeform Lines mode counts a symbol's stroke on a Preview-off layer of its art
The walk of a symbol instance's art switched to outline for a layer of
the art whose Preview is off without checking ignore_layer_preview, so
with the option set a press on the art's stroke past the instance's box
missed. FindPart::find now checks the option, as the other point hit
paths do.
2026-11-20 21:03:22 -08:00
dotCooCoo 011b6fb0e7 Docs: limit the matching-mask rule to a single path holding just the image
The relink rule for a clipping mask whose path matches the old file's
clipping path applies only when the mask holds just the image and its
clipping path is a single path. A mask that also holds other objects,
or whose clipping path is a compound path or text, is kept, with the
new file's clip group inside it. The kept-mask sentence now excludes
the matching masks.

Update Links and Relink keep a distorted image's corners and draw the
new file's clipping path through them; the PSD clipping-path entry
said that Update Links left that clipping as it was.
2026-11-20 20:56:06 -08:00
dotCooCoo 3c0bdfbd43 i18n: the message scan reads character literals and fn inside strings
The scan of status locals checked for a function boundary with a plain
search for `fn `, so a local whose string held `fn ` was skipped. It
now looks for `fn ` outside string and character literals.

`statement`, `closure_returns`, `skip_args` and `without_strings` read
the `"` of a character literal such as `'"'` as the start of a string,
so a `match` arm on `'"'` hid the arms after it. They now skip
character literals with `quoted_end`, which leaves a lifetime alone.
2026-11-20 20:48:18 -08:00
dotCooCoo d00e25c962 Paste on All Artboards: swatch conflicts leave copied artboard backgrounds out
Paste on All Artboards leaves copied artboards behind, so it does not
convert their background colors: edit.paste passes the boards only in
the other paste modes, and clipboard.profileMismatch takes allArtboards
for the same reason. clipboard.conflicts always counted the
backgrounds. When only a copied artboard's background had another
profile, it treated the paste as converting and listed the swatches the
document had edited since the copy, so Swatch Conflict asked about
swatches while the paste itself converted nothing.

- clipboard.conflicts takes allArtboards (true or false, default
  false; other values are refused). With true it lists the conflicts
  as Paste on All Artboards brings the colors, without the copied
  artboards' backgrounds.
- The Swatch Conflict dialog passes allArtboards: true when the paste
  it asks about is edit.pasteOnAllArtboards.
- Params text and docs/mcp.md describe the parameter.
2026-11-20 20:47:16 -08:00
dotCooCoo a1c46996c2 Place: file.place without the dialog applies the PDF Text preference to an embedded PDF
file.place run as a command (MCP, scripts in the app) applied the
pdfTextAs preference only to places the user started, so an embedded PDF
placed with showImportOptions: false and no textAs kept its text as
point type even with PDF Text set to Outlines. docs/mcp.md says such a
place takes the preference. The command path now applies it the same
way: a textAs given with the place, a linked place and a .ai file keep
their own text.
2026-11-20 20:46:59 -08:00
dotCooCoo 1be942d7fc Dimension tool: a drag from a dimension already drawn moves it
With no points or lines picked, a press within 8 pixels of what a
visible, unlocked dimension draws (its lines, arrowheads and label),
where it is the topmost object that can be edited, followed by a drag
moves that dimension as one undo step. A segment of the art as near
the press as the dimension's lines and label, or nearer, takes the
press instead, and a click there without a drag still picks a point.
The part grabbed follows the pointer: a linear dimension's line moves
as far across as the pointer moves, an angular arc moves as far as the
pointer moves away from or toward the vertex, and a radius or diameter
line turns about the center as the pointer turns, or toward the
pointer when grabbed at the center. The dimension keeps what it
measures and its link to the art. With Smart Guides on, a linear
dimension's line lands on the level of a parallel dimension line, as
when it is placed, and of two lines on one level the one nearer the
pointer along it wins. Isolation mode, clipping masks and locked artboards
apply as they do to a click; with a part of a dimension isolated, the
dimension is not dragged. A dimension that a geometry effect on it, on
one of its parts or on a group around it draws elsewhere is not
dragged, except in Outline view and on a layer whose Preview is off.

dimension.update takes `at: [x,y]`, which puts a linear dimension's
line through the point, gives an angular arc a radius of the point's
distance from the vertex (at least 12 pt), or turns a radius or
diameter line toward it. With Real-time Drawing off, a dimension.update
preview that names its dimensions outlines only those dimensions.

A dimension pasted into a document that had none now marks the
document as holding dimensions (Document::insert), so the Dimension
tool drags it like one drawn there and edits refresh it. Opening a
native file sets the flag from the objects it holds, which covers files
saved after such a paste.

Docs: docs/dimensions.md, docs/target-app-parity.md.
2026-11-20 20:44:44 -08: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
dotCooCoo 54dda6fd2f Canvas: a tool drag ends with the modifiers held at its button release
The canvas sent a tool's Up event the release event's position but the
frame's modifiers. A click released with Shift held, and Shift let go
in the same frame, counted as a release without Shift: the Tangent
Circle Tool, for one, then drew a circle where Shift at the release
draws none. The Up event, and the Zoom tool's click, now take the
modifiers from the button release event, and the frame's modifiers
when the frame has no release event.
2026-11-20 20:41:58 -08:00
dotCooCoo 9c643e302e Tests: canvas tests that compare renders keep the proof view while they run
The proof view is process-wide, and the Proof Setup dialog tests turn
Proof Colors on while other tests run. A change between two renders of
a canvas test made the frames differ, and
a_drag_on_the_canvas_draws_raster_effects_at_a_lower_resolution failed
in full runs of the crate's tests. The Proof Setup tests' lock is now a
read-write lock, and keeping_color_settings holds it for reading.
2026-11-20 20:41:56 -08:00
dotCooCoo 63fe462a1d Docs: a clipping mask that matches the old file's clipping path is relinked as the file's
The PSD clipping-path entry in docs/target-app-parity.md said that
links.update and links.relink keep every clipping mask made in the
document. placed_clip_to in crates/engine/src/cmd/links.rs treats a clip
group holding just the image as the old file's when same_path finds its
clipping path equal to the old file's (anchors and handles within a
thousandth of a point) and the fill rule matches, whoever made it. Such a
mask takes the new file's clipping path, or becomes a plain group when
the new file names none. The entry and the matching DCS sentence in
docs/mcp.md now say so.
2026-11-20 20:41:24 -08:00
dotCooCoo fd27b2e6d4 Command Palette: docs rank typo results that match a word by description last
A result matched through a typo that also matches another query word only
through its description ranks after every other result, since the ranking
compares that before the whole-query match and the label-before-path rule.
Two typo words split between label and menu path tie with the reverse split
only when the other words get the same grades in both results.
2026-11-20 20:40:58 -08:00
dotCooCoo 3785bc8b76 Place: an empty password keeps a placed PDF linked with PDF Text at Outlines
file.place reads an empty or null password as no password, but the app
counted any password key as given. A PDF placed from a path with Link on
and an empty password then took the PDF Text preference's Outlines and
was embedded instead of linked. With Show Import Options off, an
encrypted PDF placed with an empty password skipped the password prompt
and went to file.place without a password.

Both checks now read the password the way file.place does.
2026-11-20 20:39:23 -08:00
dotCooCoo 9145bd3203 i18n: translate the function type limit messages
The plug-in host's two new messages for a function type past 32
parameters or results get @msg rows in every complete-message catalog.
2026-11-20 20:29:07 -08:00
dotCooCoo 4cd36c8428 Merge main into fix/retype-drawn-shape-font-state 2026-11-20 20:29:06 -08:00
dotCooCoo f2eb016e98 Tests: transform turns about the same pivot with a null or omitted origin
transform_rejects_a_mistyped_reflect_copy_or_origin_before_editing ran
a rotate with a null origin and checked only that the call succeeded.
It now compares the resulting path with the same rotate with origin
left out, so a null origin that moved the pivot would fail the test.
2026-11-20 20:26:14 -08:00
dotCooCoo 15b4898f85 Canvas: a new working CMYK space renders a Working CMYK proof again
A proof of the working CMYK space converts through the working color
settings. With a profile assigned to the document in place of the
working CMYK space, Edit › Color Settings changes the working settings
while the active settings stay the same, and the canvas kept showing
the proof through the previous working space.

- The canvas's frame key also holds the working color settings
  (`cms::working_settings`).
- The test now requires a re-render after `edit.assignProfile`, and
  checks that a new working CMYK space re-renders a Working CMYK proof
  while the active settings stay the same.
2026-11-20 20:24:36 -08:00
dotCooCoo c9d6c8f126 Docs: an Alt-drag copy of a clipping path in Draw Behind goes above it
The progress line now says that in Draw Behind the copy of the clipping path of a clip group or a clipping layer goes directly above it, so the clipping path stays the bottom object, as docs/mcp.md and copy_beside already do.
2026-11-20 20:23:32 -08:00
dotCooCoo 153f6c0750 Scripts: script.grants reports an error when the grants file cannot be read
script.grants listed no grants when Script Grants.json was there but
could not be read, was larger than 4 MiB, did not parse, had another
version or held no list of grants, or when its lock could not be taken.
It now returns "the script file permissions could not be read: {e}" in
those cases, as script.grants.revoke already fails on such a file. A
missing grants file still lists none, and a grant in the file that is
not well formed is still left out.

The run-time grant lookup keeps reading such a file as holding no grants.
The new message has a row in every complete-message catalog. The params
text, docs/mcp.md and the Scripts line in docs/target-app-parity.md state
the error.
2026-11-20 20:23:01 -08:00
dotCooCoo 8d4f9e4f35 Color Settings: a background open whose profile question is gone finishes off the UI thread
A file read off the UI thread that waits behind another file's profile
question, and has no question any more once Color Settings change, now
does the rest of its read (policies, linked files, type) off the UI
thread, as an answered file does, instead of on the UI thread. It opens
at once when no thread can start, and a failure is reported once.

A profile question that comes while another dialog is open (a paste
waiting for its Swatch Conflict answer, say) now waits until that dialog
closes instead of replacing it and canceling the paste.

Follows #7733.
2026-11-20 20:22:29 -08:00
dotCooCoo 12fd6872cc Pathfinder: setting Soft Mix's Mixing Rate to the value it has records no undo step
effect.setParams compared a Pathfinder effect's values other than its
Pathfinder Options exactly, so a mixingRate of 50 over a stored 50.0
counted as an edit and recorded an undo step. A float now compares with
any number by value, and two integers still compare exactly.
2026-11-20 20:22:14 -08:00
dotCooCoo bd3f69f233 Path Precision Tools: Common Tangents finds a run's sample by binary search
The touching-run search looked up the sample before each angle with a
linear scan over the run, so a long run of samples within the tolerance
cost time in proportion to the square of its length. It now collects the
run's sample angles once and uses partition_point, which gives the same
sample at every angle.
2026-11-20 20:09:25 -08:00
dotCooCoo 9eb8cd6146 Merge main into feat/draw-behind-alt-drag-copy 2026-11-20 20:07:57 -08:00
dotCooCoo d1a0cbe8c7 Merge main into feat/packaging-fold-angle 2026-11-20 20:07:44 -08:00
dotCooCoo 6209f84bcf Document Setup: the grid preview test edits the open dialog in one context
The grid preview tests drew each edit in a new egui context, so they
would pass if an open dialog kept drawing the old colors' texture. A new
test draws one context through a color edit, a size edit and a preset
edit, and checks the pixels of the texture the preview's mesh draws.
2026-11-20 20:03:49 -08:00
BFlat 9fff48d88f Merge pull request #8910 from dotCooCoo/fix/similar-fonts-thai-scan
Type: the font scan tells whether a family sets Thai as loading it does
2026-11-21 11:03:21 +07:00
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 93388d642f Merge pull request #8887 from dotCooCoo/fix/tangent-circle-close-contacts
Path Precision Tools: the Tangent Circle Tool finds both circles where two second segments touch close together
2026-11-21 11:02:18 +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
dotCooCoo 3768dd0829 Packaging Tools: Set Fold Angle's OK changes the lines its dialog opened on
The dialog keeps the lines it opened on as the command's ids, with the uid
of their document. OK changes those lines even when the selection changes
while the dialog is open, and changes nothing once another document is the
active one.

The split flap raster test now requires a flap at both samples: the right
flap at both, or the left flap's inner part at the near sample and its
outer part at the far one.
2026-11-20 20:00:47 -08:00
BFlat ddcefb86c9 Merge pull request #8918 from storytold/train/carry8875
Path Precision Tools: the Tangent Circle Tool leaves out a circle that would reach past the canvas (#8875)
2026-11-21 11:00:19 +07:00
BFlat 5b52369187 Merge pull request #8919 from storytold/train/carry8873
Dimension: pointer moves read a compound path's members once per revision (#8873)
2026-11-21 10:58:44 +07:00
dotCooCoo 94f4d54b04 Width tool: an Alt-double-click on one of several selected points edits them all
An Alt-press on a width point's center narrows the selection to that point,
ready to drag a copy. A release without a drag kept it narrowed and did not
remember the earlier selection, so an Alt-double-click on one of several
selected points opened Width Point Edit for that point alone, where a plain
double-click opens it for all of them. A release without a drag now
remembers the earlier selection as a plain click does, and an Alt-drag
still copies only the point under the pointer.
2026-11-20 19:57:05 -08: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 9078e13d78 Merge pull request #8867 from dotCooCoo/perf/selection-widgets-kind-first
Selection: on-canvas widgets check an object's kind before its editability
2026-11-21 10:56:16 +07:00
dotCooCoo 0575c1604a Swatch libraries: adding a pattern again reuses its numbered colors
Since the change that brings a library pattern's global and spot colors
under a numbered name ("Ink 2") when the document gives the name another
color, adding the same pattern or color again added more copies, and
Use Library Item still linked a pattern's art to the document's own
color of that name.

- A library color whose name the document gives another color is the
  document's numbered copy with the same color, so adding it again adds
  nothing. A numbered name that the same call also picks is not shared.
- A pattern the document holds with its art linked to the document's
  own color of a name, as pasting with Merge leaves it, is reused
  instead of coming in again as "Squares 2".
- `added` lists the colors a pattern brought, after the picked swatches.
- A library tint added with its base color links to the base's name in
  the document, and a later add finds it there.
- library.use brings a pattern's colors the same way.

Docs: docs/mcp.md.
2026-11-20 19:55:08 -08:00
dotCooCoo b763053289 Merge main into fix/flare-lone-x2-y2-error 2026-11-20 19:55:07 -08:00
dotCooCoo d4cd3f2c48 Tests: the missing-font question's tests check the open question and the clicked caret
An answer that names another question, Cancel or OK, now has to leave the
open question answerable: the right token's OK still starts the edit at the
clicked character. The canvas double-click lands a quarter of the way into
the text, and after OK the caret has to be the one a click at that point
puts in the type being edited.
2026-11-20 19:52:46 -08:00
bflatastic 3bda231dd6 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/target-app-parity.md
2026-11-21 10:46:25 +07:00
bflatastic 8daaa2995b Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/tools/src/dimension.rs
2026-11-21 10:43:59 +07:00
dotCooCoo 5132eaebfe PDF: a distorted CMYK image with an image mask keeps the resolution its pieces need
A distorted CMYK image whose opacity mask is a gray image with the
same corners writes the mask as the image's /SMask, and every piece of
its mesh draws that one image. The image was resampled for the size its
transform places it at, before the pieces' shared size was known, so
with downsampling on every piece stretched a smaller image across the
corners. The masked image is now resampled for the size the pieces
share, as the same image without a mask is, and the pieces are drawn
from the same expansion they were measured on.
2026-11-20 19:42:31 -08: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