Commit Graph
9389 Commits
Author SHA1 Message Date
BFlat 4cea62ceee Merge pull request #8969 from dotCooCoo/fix/live-paint-bucket-freeform-points
Live Paint: freeform point edits without a target leave the selection alone under the bucket
2026-11-22 10:50:38 +07:00
BFlat 6767fefb11 Merge pull request #8968 from dotCooCoo/feat/script-file-hidden-create-alias
Scripts: File.hidden can be set and File.createAlias makes a link within the grants
2026-11-22 10:50:17 +07:00
BFlat ce062ce2a5 Merge pull request #8966 from dotCooCoo/fix/pattern-commands-unknown-ids
Patterns: pattern and Repeat commands refuse an ids entry that names no object
2026-11-22 10:49:36 +07:00
BFlat c2e1e28f87 Merge pull request #8958 from dotCooCoo/fix/duplicate-item-aligned-to-identical
Appearance: aligned copies go to `to` when the stacks are the same
2026-11-22 10:49:15 +07:00
BFlat 467261f531 Merge pull request #8957 from dotCooCoo/feat/plugin-storage-fuel
Plug-ins: storage calls pay instructions for the bytes they move
2026-11-22 10:48:55 +07:00
BFlat 6ba9e7ab0a Merge pull request #8956 from dotCooCoo/fix/curvature-circle-skip-on-selection
Shapes: the Curvature Circle tool reaches its circles again after Deselect
2026-11-22 10:48:35 +07:00
BFlat bbf17b4daf Merge pull request #8955 from dotCooCoo/fix/save-for-web-fixed-palette-clear-slot
Save for Web: a Custom table keeps shifted and locked colors first, and 255 opaque colors beside transparent pixels
2026-11-22 10:48:14 +07:00
BFlat a79fab35fe Merge pull request #8945 from dotCooCoo/fix/scriptcheck-folder-ambiguity
Script checker: setting length, hidden or readonly on new Folder(...) or a Folder place is not a file write
2026-11-22 10:47:33 +07:00
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 b288f27bd8 Merge pull request #8930 from dotCooCoo/fix/flare-lone-x2-y2-error
Flare: a lone x2 or y2 in shape.flare is an error
2026-11-22 10:46:31 +07:00
BFlat b3c83f75ba Merge pull request #8923 from dotCooCoo/fix/library-pattern-color-copies
Swatch libraries: repeated adds reuse numbered colors, and tints link to a color of their kind
2026-11-22 10:45:30 +07:00
dotCooCoo ff26d5e4a3 Swatch libraries: colors a pattern brings skip the library's other names
A global or spot color that a library pattern's art brings under a
numbered name no longer takes a name the library gives another swatch.
Before, adding a pattern whose art uses "Ink" to a document with another
"Ink" brought the color as "Ink 2" even when the library has its own
"Ink 2"; adding that library swatch next then came in as "Ink 2 2". The
brought color now takes the next free name the library does not use
("Ink 3"), and every paint linked to it follows the new name, so adding
the library's "Ink 2" next adds it under its own name and adding both
again adds nothing.

A color the pattern's art brings or takes is the color a library tint
or gradient links to only when it has the library color's paint and its
process, global or spot kind, as for the other lookups in the same add.

The test a_numbered_copy_named_like_another_library_color_is_found now
makes the blue "Ink 2" itself, as an earlier version's pattern add left
it, since a pattern add no longer gives that name.
2026-11-21 15:38:19 -08:00
dotCooCoo 79dd33e228 Swatch libraries: a tint whose color was deleted brings it back
A library tint or gradient counts as already in the document only when
each color it links to is there. When the document's tint of that name
links to a color the document no longer has (deleted without unlinking),
the color comes back under its own name and is listed in `added`.

A picked pattern the document already holds keeps the copy of a color
its art takes (a numbered copy the library also names), and the picked
tints and gradients of that color link to it, so adding the pattern and
the tint again adds nothing. Without such a pattern, a numbered copy the
library also names stands for that library swatch alone.

docs/mcp.md also states that a pattern pasted with Merge for some colors
and Add for others is added again as a copy.
2026-11-21 09:30:26 -08:00
dotCooCoo 7f97df87d4 Swatch libraries: library tints link only to a color of their own kind
swatch.library.add linked a library tint to the wrong color in two cases.
When the document had a process color with the same name and paint as the
tint's global color, the global color counted as already present and the
tint linked to the process color. When a tint was added without its global
color and the document had another swatch of that color's name, the tint
linked to that swatch.

- A library color counts as already in the document only when the
  document's color of that name is the same kind: process, global or spot.
  A global color whose name the document gives a process color now comes
  in under a numbered name, and its tints link to that copy.
- A global or spot color that an added tint or gradient links to, and that
  the document does not have, now comes in with the tint or gradient. It
  keeps its own name when that name is free and gets a number otherwise.
  added lists it after the picked swatches.
- A library tint is not the document's tint of the same name and paint
  when the document's swatch of the base's name is another color or kind.
- A tint that a pattern brought is used for a picked library tint only
  when the color it links to is the library color's kind.
2026-11-21 07:54:43 -08:00
dotCooCoo 9772495468 Swatch libraries: check the color names a pattern copy gives
When a library tint waits for a color that a pattern's art brings,
swatch.library.add learns the color's name by importing the pattern into
a copy of the document. The import into the document now confirms those
names: when it gives a color another name, or none, the tints linked
from the copy are linked again.

- library.use and Add to Swatches report an error from the import that
  merges a pattern's colors instead of falling back to adding them.
- The params text, docs/mcp.md and docs/target-app-parity.md say that a
  tint or gradient links to the numbered copy its global or spot color
  comes in under or already has, and name a gradient test.
- The new code uses the HashMap import, and one helper relinks the
  added tints and gradients at both places that did it.
2026-11-21 05:42:17 -08:00
dotCooCoo 35e43f9cfe Swatch libraries: library tints and gradients link to their colors in any order
A library tint or gradient whose global or spot color comes in under a
numbered name now links to that copy whichever order the swatches are
picked in, when the color was added by an earlier call, and when a
pattern's art brought the color or took the document's copy of it.
Adding the same tints again finds the ones added before.

- Each tint's or gradient's color is looked up for itself before
  anything is added, past a process swatch of the same paint and past a
  color group of that name. A numbered copy that the library's own
  swatch of that name is stays that swatch's, and a new copy skips the
  library's other names.
- A tint links to a global or spot color of the same kind only, and to
  a color this call picks rather than to a copy a pattern took.
- Links are set as soon as the color's name is known. A tint waiting
  for a color that a pattern's art brings learns its name from an
  import into a copy, so the pattern does not add a second tint.
- A swatch a pattern brought takes a picked swatch's place only when
  its colors link where the picked one's do.
- A stop linked to the Registration swatch counts as linked.
- library.use, Add to Swatches and the reuse check share one import
  probe (patternlib::probe_import), and the probed copy is kept instead
  of importing a second time.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 04:57:24 -08:00
dotCooCoo ae9a11f661 Patterns: pattern and Repeat commands refuse an unknown object id
object.pattern.make, object.pattern.replaceArt and the object.repeat
commands dropped an `ids` entry that names no object and acted on the
other entries alone. They now return "no such object id N" and change
nothing.
2026-11-20 22:16:52 -08:00
dotCooCoo 133a5a4759 Shapes: the Curvature Circle tool reaches its circles again after Deselect
The tool passed over the circles it drew until the undo history moved, the
tool changed or another document became active. Deselect and a pick in the
Layers panel change only the selection, so the drawn circles stayed out of
reach. The tool now forgets them once the selection holds none of them,
after a command run from outside the tool and at the next pointer event.

docs/mcp.md and the tool's module comment name every case that makes the
circles reachable again. The engine's Undo test checks which path the click
hit, and a comment on the set in candidate_paths says the loop skips ids
that are already listed.
2026-11-20 21:54:15 -08:00
dotCooCoo 5adeec1151 Save for Web: a Custom table keeps shifted and locked colors first, and 255 opaque colors beside transparent pixels
- With transparent pixels, a fixed palette's colors mapped to
  transparent share the transparent pixels' slot, so at Colors 256 all
  255 opaque colors keep their entries.
- The preview's mappedToTransparent lists a color mapped to transparent
  that did not fit in the fixed palette when its pixels became
  transparent.
- When Colors leaves a fixed palette fewer slots than it has opaque
  colors, shifted colors keep their slots first, then locked ones, then
  the others in palette order. The file keeps the palette's order.
- quantize::nearest_entries hands each pixel's entry to a callback
  instead of collecting one per pixel.
- A GIF lossy test with one fixed entry of three.

Docs: params text, docs/mcp.md.
2026-11-20 21:51:57 -08:00
dotCooCoo 36005d9a02 Appearance: aligned copies go to to when the stacks are the same
`appearance.duplicateItem` with `aligned: true` and `to` was refused for
every selection of two or more objects, so copying a row of a graph's
Legend group to `to` failed even when every label had the same rows. It
now refuses `to` with aligned rows only when the stacks differ, as the
params text says, and the copies land at `to` in each object as one
undo step.
2026-11-20 21:41:47 -08:00
dotCooCoo 999521e391 Scripts: File.hidden can be set and File.createAlias makes a link within the grants
On macOS and Linux, setting `hidden` renames the file or link in its folder with
one leading dot added, or its leading dots taken off. Both the old and the new
name must be places the script may write, and a name of dots alone, a name in
use and a folder are refused. A file the object has open stays open at the new
path.

`createAlias(target)` makes a symbolic link at the object's path to the real
path of a file the script may read. The link's place must be one the script may
write where nothing is, a link that leads nowhere included; the settings folder
is refused for both. When a folder above the link's place is replaced by a link
while the alias is made, the new link is removed and the call fails. `hidden`
reads a link's own name, and setting `hidden`, `rename` and `remove` act on the
link itself.

On Windows both still set `error` and change nothing. `execute` stays
unavailable.

Behavior: https://extendscript.docsforadobe.dev/file-system-access/file-object/
and https://extendscript.docsforadobe.dev/file-system-access/using-file-and-folder-objects/
2026-11-20 21:38:37 -08:00
dotCooCoo e49a0d628c Plug-ins: storage calls pay instructions for the bytes they move
The settings and cache imports could move up to 1 GiB a run while the
instruction budget charged only for the calls themselves. The bytes they
read or write now cost the run one instruction per 64 bytes, counted
over the whole run so that splitting a transfer into calls costs the
same. A get also pays for the bytes it copies into the module's memory
that the store didn't count, such as a setting answered from memory.

A storage call pays from the store's fuel and from the part of the
budget not yet handed out. The meter it gives the storage holds no more
bytes than those instructions pay for, so a read or write the run can't
pay for doesn't happen, and the run ends with "instruction budget". A
read or write past the 1 GiB still returns -7. Bytes beyond the current
slice are read or written only before the deadline and Cancel, and the
host checks the deadline and Cancel after every storage call, so a run
past either stops after the call instead of at the next slice.

The plug-in fuzz test now also makes writes of up to about 1 MiB on
small instruction budgets.

Docs: docs/plugins.md.
2026-11-20 21:38:22 -08:00
dotCooCoo b461422bee Live Paint: freeform point edits without a target leave the selection alone under the bucket
While the proxies show the colors the Live Paint Bucket paints with,
`paint.freeform.get` and `paint.freeform.selectPoint` with an index find
no freeform gradient. The point and line edits (`addPoint`, `setPoint`,
`deletePoint`, `addLine`, `splitLine`) still edited the selected
object's freeform gradient when they named no target.

Those edits now report an error then, when no `ids`, `id` or `item` is
given, as the other paint commands leave the selection alone. A bad
`aligned` or `target` is still reported first. With a target they edit
that object as before. `get` and `selectPoint` now say that the
bucket's colors have no freeform points instead of suggesting
`paint.editGradient`. The params text and docs/mcp.md describe the rule.
2026-11-20 21:25:25 -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 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 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 9eb8cd6146 Merge main into feat/draw-behind-alt-drag-copy 2026-11-20 20:07:57 -08: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 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 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 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
bflatastic 3bda231dd6 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/target-app-parity.md
2026-11-21 10:46:25 +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 911177c775 Merge pull request #8874 from dotCooCoo/docs/3d-shadow-expands-blurred-as-image
Docs: a blurred 3D shadow expands to an image
2026-11-21 10:37:51 +07:00
BFlat 53fe391488 Merge pull request #8865 from dotCooCoo/fix/palette-typo-order-docs
Command Palette: docs order typo matches by the field the word is met in
2026-11-21 10:37:26 +07:00
BFlat 193f110ebe Merge pull request #8864 from dotCooCoo/fix/relink-edited-mask-docs
Docs: Relink and Update Links keep a clipping mask edited in the document
2026-11-21 10:37:02 +07:00
BFlat 6aaef5ad68 Merge pull request #8886 from dotCooCoo/fix/outline-compound-strokes-not-fill
Pathfinder: Outline of a compound shape with no fill adds no stroke of its own
2026-11-21 10:35:55 +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 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 a5f9966ca5 Merge pull request #8861 from dotCooCoo/feat/freeform-lines-leave-ends-line
Gradient: moving out of a freeform object ends the Lines mode line
2026-11-21 10:33:27 +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 b82d2a2ac2 Merge main into fix/flare-lone-x2-y2-error 2026-11-20 19:22:08 -08:00
dotCooCoo 318d1ed6e2 Selection: an Alt-drag copy in Draw Behind goes directly below its original
In Draw Behind, an Alt-drag of whole objects with the Selection or Direct
Selection tool now puts each copy directly below its own original, in the
original's group or layer, and selects the copies, as the drawing modes help
page lists duplicating by Alt-drag among the actions Draw Behind applies to
(https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/learn-drawing-basics/drawing-modes-overview.html).
The copy of a clip group's or clipping layer's clipping path goes directly
above it, so the clipping path stays the bottom object.

- object.transform takes drawBehind (with copy); the tools send it while Alt
  is held. A value that is not true or false is refused.
- Draw Normal, Draw Inside, object.move, the transform dialogs' Copy,
  Duplicate and Transform Again keep putting copies above.
- Document::insert_below puts nodes directly below their anchors in one pass.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-20 19:19:13 -08:00
BFlat 3f5531a7d3 Merge pull request #8881 from dotCooCoo/fix/dimension-first-pick-link
Dimension: a first Linear point keeps its link when the art moves before the second click
2026-11-21 10:18:42 +07:00
dotCooCoo ce2fd22267 Path Precision Tools: the Tangent Circle Tool works out its circle again after a canceled live edit
A live edit changes the document without an undo step, so the tool was
not told about it. Circles found while a preview moved the second
segment stayed cached under the same segment key, and a click after the
preview was canceled drew the cached circle instead of one touching the
segment where it is again. A first segment picked during a preview kept
its old shape the same way.

The cache key now holds the shapes of the first segment and of the
segments a circle may touch, so moving along an unchanged segment still
reuses the search. The first segment is forgotten when its shape no
longer matches the document, and a press on the second segment follows
the segments as they are at the release; a pressed segment that is gone
leaves nothing to touch.
2026-11-20 19:15:06 -08:00