Commit Graph
20420 Commits
Author SHA1 Message Date
dotCooCoo 6fb2028149 Print: classify a freeform gradient's plate cells after their opacity
A translucent cell whose samples round to ink before its opacity is
applied, such as 0.4% cyan at 25% opacity, is written with no ink once
the opacity is applied, yet it was kept and painted paper over the ink
below. The cells are now classified from the samples the image writes
after opacity, and RGB cells in CMYK output from their converted inks.
2026-11-20 23:55:44 -08:00
dotCooCoo 6458bdd9c5 Smooth: a drag that reaches only a sliver of the next segment no longer splits it
A Smooth drag that ends partway along a path splits each segment it
leaves at the edge of its reach, so the anchor it adds there lies on
that edge. The next drag over the same place reaches that anchor and
only a sliver of the segment beyond it. Splitting that sliver gave the
refit a segment of almost no length to end on, so the refit lost the
path's direction there: on an ellipse dragged along its lower half, the
second drag added two more anchors and left two 71.6° corners, and
later drags turned the ellipse more each time.

A segment leading out of the smoothed stretch that is in reach for no
more than 1/64 of the reach from the stretch's anchor is now left as it
is, and the stretch ends at that anchor. The same drags on the
ellipse now keep the anchors of the first drag and leave no corner.
2026-11-20 23:52:25 -08:00
dotCooCoo 6b123376fd Docs: artboard.rearrange with at and no indices places the whole grid
Without indices the command lays out every artboard; at still sets the grid's top-left there. The mcp.md paragraph now says so.
2026-11-20 23:51:45 -08:00
dotCooCoo 49fd8652b1 Dimension tool: a geometry effect on any part keeps a dimension in place
A press on one part of a dimension now also checks its other parts for
a geometry effect, so an effect on an extension line keeps the drag
from moving the dimension (and from drawing the parts again without
the effect). In isolation mode, only art inside the isolated object is
compared with the dimension when the press decides between them.
2026-11-20 23:49:54 -08:00
dotCooCoo 5a26a9abd5 Dimension tool: Alt over a path places its overall width or height
With the Linear Dimension tool and Alt (Option on macOS) held, hovering a
path shows a box through its outermost points (a Smart Guide when Smart
Guides are on), with its width and height beside the pointer when
Measurement Labels are on. A click on the path, then a placing click, or a
drag out from it, places a dimension of the whole path. With the pointer
above or below the path it measures the width, between the leftmost and
rightmost points; beside the path it measures the height, between the
topmost and bottommost points. The linear dimensions help page describes
the Alt hover; which side gives which measure is VectorCraft's own rule.

dimension.create takes a new source, {kind: extent, node}, for linear
dimensions. Its points are the outermost points of the segments the path
draws, curves included, and are read again whenever the path changes, so a
turned path shows its new overall width or height. The line keeps its
distance from the whole path when the path changes or is reflected, and
when dimension.update changes the orientation, which now reads the other
pair of points. When the box through the path's outermost points stays
where it was, as after Reverse Path Direction, the line stays on its side.
A version without the extent source does not open a file that holds one.

The measurement label beside the pointer while two points are picked now
keeps its distance in screen pixels at any zoom.

The Help Bar hint names Alt+Click. Docs: docs/dimensions.md and
docs/target-app-parity.md.
2026-11-20 23:47:35 -08:00
dotCooCoo 5a2eae86a7 Smooth: a drag over a long path measures only the anchors and segments near it
A Smooth drag measured every anchor of each path against every stretch of
the drag, and every curved segment's box against every stretch twice, so a
release on a path of 100,000 anchors made tens of millions of measures
however short the drag was.

- The drag's stretches are listed once per release in a grid over the
  drag's bounds grown past the reach. An anchor outside those bounds is out
  of reach without measuring, and a point or box is measured only against
  the stretches listed in the cells it covers. Every query gives at least
  the stretches the whole-drag measure finds in reach, so the marks, the
  cuts and the smoothed path are the same as before.
- The refitted runs of a path are put back from its end without moving the
  rest of the anchor list for each run.

On a curved path of 100,000 anchors, a drag of 200 points over 200 pt of it
makes 7,533 measures to find the curved segments in its reach, where it
made 19,899,801.
2026-11-20 23:43:00 -08:00
dotCooCoo 342341a55f Smooth: path.smoothRegion and path.joinScrub refuse a radius, fidelity or tolerance outside its range
path.smoothRegion read a radius below 0 as 0 and moved a fidelity into its
range, and path.joinScrub read a tolerance below 0 as 0. Each now refuses
a value outside its range with an error naming the key, and the document,
the selection and the undo history do not change: radius and tolerance
0.001 to 1000 pt (the Path Eraser's width range), fidelity 0.000078125 to
about 3195 pt (the Smooth tool's 0.05 to 100 px at the highest and the
lowest zoom). A key left out or null keeps its default.

The Smooth, Join and Path Eraser tools, and an Alt smoothing drag with the
Pencil, Paintbrush or Blob Brush, keep what they send within these ranges
at any zoom, also when the interface zoom puts the tool's zoom past the
view's range.

Docs: params text, docs/mcp.md, docs/target-app-parity.md.
2026-11-20 23:42:48 -08:00
dotCooCoo 5ea4753750 Print: an overprinting freeform gradient leaves out the cells its plate samples write without ink
On a PostScript plate, an overprinting freeform gradient left out only the
cells whose color is paper white. A cell such as 0.1% cyan rounds to no ink
in the 8-bit samples, yet it was kept and painted paper over the ink below.
The cells are now classified from the samples the image writes.

At Level 2, a field drawn again inside the clip of its inked cells was
charged its samples a second time against the page limit, so a page with
room for a reference to the image already kept left the placement out with
the too-large warning. The check now charges the reference when the image
is already kept.

Follows #8400.
2026-11-20 22:47:38 -08:00
dotCooCoo 525dea58f0 Native file: a distorted image with a malformed saved corner opens placed by its transform
A native file whose `image_quad` held an entry that was not a point among
its first four failed to open: `image_corners` read each entry as a
`Point` and returned the error. Such corners, and an `image_quad` that is
not a list, are now dropped as the file is read, and the image opens
placed by its transform, as a list of other than four points already did.
A point is `[x, y]` or `{"x": x, "y": y}`; values that are not taken are
skipped without being kept in memory.

Follows #8392.
2026-11-20 22:40:02 -08:00
dotCooCoo 557a6be962 Document Info: an image placed at a very small size keeps its resolution
The test for a transform that leaves an image no area compares the
determinant with the product of the two pixel axes' lengths instead of
a fixed 1e-12, so a placement at 1e-7 pt per pixel still reports its
resolution. The package report test expects the new Linked Images row
with the format and resolution.
2026-11-20 22:33:51 -08:00
dotCooCoo c6d9298540 Merge main into fix/retype-remeasure-budget 2026-11-20 22:30:12 -08:00
dotCooCoo ba0b3d2754 Tests: the inline refresh test's sessions share one created date
refreshing_only_changed_trees_matches_the_full_pass compares the
documents of two sessions. file.new stamps File Info's created date
with the current time, so sessions made in different seconds differed
in metadata.created and the test failed. The file's session() helper
now passes created: 0.
2026-11-20 22:18:48 -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 5caea7ad32 Artboards: Rearrange works on the selected artboards only
artboard.rearrange takes indices (the artboards to lay out, in document
order) and at (the grid's top-left). The other artboards, their art and
their guides stay where they are, and a listed locked artboard keeps its
place and its cell. Without indices the command lays out every artboard
as before. With indices the reply adds indices and moved, and no undo
step is recorded when nothing moved.

With the Artboard tool, the canvas menu's Rearrange, the Contextual Task
Bar's Rearrange, the Artboards panel menu's new Rearrange... and the
panel's Rearrange button open the Rearrange dialog for the selected
artboards, with their count. After OK the grid's outline follows the
pointer, and a click on the canvas places its top-left there in one undo
step. Enter places it from the keyboard when no other control has the
focus, a Space-drag pans, and Esc, another tool, another document or a
change to the listed artboards cancels it. Rearrange All Artboards is
unchanged.

The help page describes the selected-artboard arrangement and the click
that places it:
https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/organize-manage-artboards/rearrange-artboards.html
The top-left reference point, the outline, the fallback to the first
selected artboard's corner and the rules for locked artboards and for
art on other artboards are VectorCraft's own.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-20 22:16:00 -08:00
dotCooCoo b2e390f18f Save for Web: Transparency Dither makes a share of partly transparent pixels clear
With Transparency on, GIF and PNG-8 now offer Transparency Dither: No
Transparency Dither (the default, the half-opacity cut as before),
Diffusion with an Amount, Pattern and Noise. The help page describes the
four methods and the Diffusion amount:
https://help.adobe.com/archive/en_US/illustrator/cs4/illustrator_cs4_help.pdf#page=400

- render: `clear_mask` decides which pixels take the transparent entry.
  Diffusion spreads the opacity error Floyd-Steinberg style over two rows,
  scaled by the amount; Pattern uses the 8x8 ordered matrix and Noise a
  fixed coordinate hash, so the same art always gives the same file. Fully
  clear and fully opaque pixels do not change. `quantize_locked`,
  `quantize_to`, `nearest_entries` and the fixed-palette path use it.
- engine: `document.exportForWeb`, its preview, `webExport.settings` and
  presets take `transparencyDither` (none, diffusion, pattern, noise) and
  `transparencyDitherAmount` (0 to 100, default 100). An unknown method or
  an amount over 100 is refused; settings saved without the keys take the
  defaults.
- ui: the Transparency Dither row sits under Transparency, with an Amount
  slider for Diffusion; both are disabled while Transparency is off and
  keep their values. Rows for the five labels are in every complete
  catalog.

The matrix, the noise, the amount mapping and the defaults' combination
with the matte are VectorCraft's own rules.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-20 22:15:41 -08:00
dotCooCoo 05762dba5b Eyedropper: Cmd hover outlines what the lent selection tool selects
With Cmd held, a click with the Eyedropper selects with the selection
tool lent to it. The hover outline is now that tool's outline: the
object under the pointer, or none when that object is already
selected. Before, Cmd hid the outline.

While the pointer rests, the canvas compares the state its cached
outline was found for with the current state field by field. It
copies the selection, the paint defaults and the tool's options into
a new key only when some part of that state changed.

The progress-doc line states the Alt case as the front editable object
(the one below when locked art covers it) and names the tests. New
tests cover a selected object, Cmd, hidden art, an armed Ignore Color
pick, Shift over a blend on the canvas, and Shift over an envelope.
2026-11-20 22:04:19 -08:00
dotCooCoo 822987115c Transform: a Sides slider drag that ends early takes no more input until release
- A drag whose rows stop being drawn still keeps its preview as one undo
  step, and the rest of it is ignored while the button stays down, also
  when the rows are drawn again before the release. An Escape in the pass
  whose rows are not drawn (one that closes the task bar's popover) puts
  the count back instead.
- A drag during which another document comes to the front ends there; the
  rest of it changes neither document.
- The Escape that cancels a drag is the slider's: the tool, isolation mode
  and a command bound to Escape do not take it
  (shortcuts::handle, through transform::sides_drag_held).
2026-11-20 21:58:46 -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 66bfad067d Shortcuts: a tool takes back its own default with Alt
The Keyboard Shortcuts editor refused every tool shortcut with Cmd, Ctrl
or Alt, so the Quick Pen tool could not be given Alt+P again after its
shortcut was changed or cleared. A tool now takes back its own default;
other modifier shortcuts for tools are still refused.
2026-11-20 21:50:09 -08:00
dotCooCoo a93cd03c35 Type: text commands refuse a parameter of the wrong type
text.editRange's insert, text.setText's text and text.createInPath's
mode and text must be strings, text.createInPath's at must be two
numbers, and start in text.touchType, text.glyphAlternates and
text.setGlyphAlternate must be a whole number of at least 0. A wrong
value was read as left out (an edit inserting nothing, area type, no
start point) or reported as a missing start; it is now an error naming
the parameter, and the document and undo history do not change. Null
still reads as the parameter left out.

Pathfinder precision no longer reads the leading number of a string
such as "1abc"; a number, a string that is all one number and a length
with a unit ("10 pt") still read.
2026-11-20 21:44:34 -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 d03a34977a Canvas: a worker frame of other color settings is not shown
The render worker converts colors with the settings in force while it
renders, and the frame it returns carries the key captured when it was
asked for. A change of the color settings during the render could store
the new settings' colors under the old key, and a return to the old
settings then matched that key and kept the frame. The canvas now drops
a worker frame whose color key is not the current one and asks for the
frame again.
2026-11-20 21:40:40 -08:00
dotCooCoo b919dbd66f Plug-ins: read the manifest from a custom section before running any code
A module may carry its manifest in a `vc_manifest` custom section, with
`"abi": 1` in place of the `vc_abi_version` export. When it does,
Plugin::load parses the manifest from the section and does not
instantiate the module: its start function, data segments,
`vc_abi_version` and `vc_manifest` do not run when it is inspected,
installed or loaded at startup. The host checks the imports against the
manifest's permissions, the exports `memory`, `vc_alloc` and `vc_run`
by type, and the initial memory and the tables against the limits a run
has (at most 4 tables of 100,000 elements). A module with more than one
such section is refused, and so is a section over 64 KiB, before its
contents are decoded, and a manifest in the section without `"abi": 1`.
The host uses the section and does not call a `vc_manifest` export.
Modules without the section load as before.

The Desaturate example carries the section and keeps the export, and
its fixture is rebuilt with Rust 1.100.0. build.sh clears RUSTFLAGS:
.cargo/config.toml sets `+simd128` for wasm32, and the host refuses
SIMD instructions. wat::sectioned builds test plug-ins with the section.
2026-11-20 21:39:33 -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 1346b182cf Merge main into fix/retype-drawn-shape-font-state 2026-11-20 21:34:33 -08:00
dotCooCoo 92c63bb8cf Expand Appearance: Safe Mode skips raster groups inside a blurred group's image
A group or layer whose raster effects are not all shadows and outer
glows (a blur, feather or inner glow) becomes one image of what it
draws, and the groups and layers in it make no images of their own. The
Safe Mode plug-in check still looked into every group with a raster
effect inside it, so a hidden blurred group there holding a plain symbol
instance with a plug-in effect in its art stopped the expansion. The
check now stops at such a group. Under shadows and outer glows the
members still expand on their own, so their groups are still checked.
2026-11-20 21:34:07 -08:00
dotCooCoo a84a398a3f Expand Appearance: Safe Mode skips symbol art in a template layer of a group's image
The image a group's or layer's raster effect makes is drawn with
templates skipped, so it leaves out template layers, guides and ruler
guides with everything in them. The Safe Mode plug-in check still looked
into a template sublayer, so a plain symbol instance there whose symbol
art holds a plug-in effect stopped Expand Appearance of the layer. The
check now skips them as the renderer does.
2026-11-20 21:34:07 -08:00
dotCooCoo 6d264b2890 Expand Appearance: Safe Mode skips symbol art of a hidden instance in a group's image
The image a group's or layer's raster effect makes leaves out hidden
objects and everything in them, as the renderer does. The Safe Mode
plug-in check looked into every object of such a group, so a hidden
plain symbol instance whose symbol art holds a plug-in effect stopped
Expand Appearance of the group. The check now skips hidden objects
inside the group's image. The group itself still counts when it, or a
group around it, is hidden, since expansion still makes its image.
2026-11-20 21:34:07 -08:00
dotCooCoo 17517e93a5 Dimension tool: a level is checked across the whole span of both lines
The span a parallel line is checked across now runs from the lowest to
the highest point of both lines along the dimension. It no longer
depends on which end of the other line comes first, and it has no
one-point floor, so a short line that stays within 0.000001 pt of its
level is a level.
2026-11-20 21:27:59 -08:00
dotCooCoo c7a3b07465 Eyedropper: sampling into a stop of given objects reads their gradient
`paint.sampleColor` with `stop` and objects in `ids` took the stop list
from the gradient behind the proxy: the selection's, or the Live Paint
Bucket's while it was active. With the bucket on a solid color it
refused a valid target, and with another gradient behind the proxy it
copied that gradient's stops onto the given objects.

The stop list now comes from the topmost fill (or stroke) of the first
object `paint.editGradient` edits for those ids (a compound path for
its member, a group's first painted object), whatever tool is active.
Without objects in `ids`, the gradient behind the proxy is used as
before. The params text and docs/mcp.md describe the rule.
2026-11-20 21:26:35 -08:00
dotCooCoo acc07f19d6 Links: Unembed leaves a released or edited clipping mask as it is
Unembed re-applied the clipping path read back from the PNG or TIFF it
had just written, with a path and with a folder. A clipping mask
released in the document came back, and a mask edited in the document
got a clip group of the file's original path nested inside it. The same
held for a distorted image.

Unembed now leaves a clipping mask released, edited or made in the
document as it is. A clip group of the file's own clipping path still
follows the file written, as before.
2026-11-20 21:26:12 -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 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 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
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 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 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