Commit Graph
21362 Commits
Author SHA1 Message Date
dotCooCoo a935af0015 Eyedropper: count the steps that copy a nested blend before sampling it
Each step of a blend whose keys are blends is a copy of one of them,
which makes its own steps when drawn. The work check before a blend is
evaluated now counts those steps too, with the same count the blend
uses to fit its steps (`vectorcraft_doc::blend::blend_steps_made`), so
a nested blend with more steps than the work left is not evaluated.

Tests check that the blend is not evaluated when the work left is too
little, for a plain blend and for an outer blend of nested blends.
2026-11-21 00:34:42 -08:00
dotCooCoo d5e15200f1 Blob Brush: Size offers Stylus Wheel
Blob Brush Tool Options' Size menu offers Stylus Wheel beside Fixed and
Pressure. With it the brush is Size - Variation wide at one end of an
airbrush pen's finger wheel travel and Size + Variation at the other, in
a drag, a click and with a tip that is not round. A point without a wheel
counts as half way, and a mouse stroke keeps the Size.

- path.blob takes sizeMode "stylusWheel" with the wheel seventh in each
  point, and its error for an unknown sizeMode lists the three modes.
- The tool keeps the mode, records the wheel, and sends it on release.
  While the Blob Brush paints, its tip outline takes the size the pen
  gives (on Pressure too), and keeps the set angle and roundness. A wheel
  turned with the pen held in place updates the last sample.
- The Eraser's Size already offered Stylus Wheel and is unchanged.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 00:32:08 -08:00
dotCooCoo 4367a9ce68 Smooth: the progress line says every anchor and segment is still looked up
A release still looks up every anchor and curved segment of a path in
the drag's grid, so that work grows with the path's length. The line
now says the grid reduces the stretch measures, and that the 7,533 and
19,899,801 figures count stretch measures.
2026-11-21 00:22:58 -08:00
RuchirandCursor 01237f6379 Record Document Info Selection Only in the parity evidence.
The UI chrome row, status line and revision history now name the same tests as the gaps entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 13:51:48 +05:30
dotCooCoo 4cb3b0d5b6 Parametric Shape: W and H keep the shared reference point in place
The Parametric Shape panel's W and H fields resized a shape about its
center whatever point the reference point locator showed, while the
Transform panel and the Control bar keep that point in place.

- addon.pathtools.shape.set takes `reference` (0 to 8; any other value
  is an error). With it and no `center`, the point of the bounding box
  that object.setBounds measures (rotated with rotated objects, and as
  drawn with Use Preview Bounds) keeps its place. Without it the center
  stays, as before.
- The panel's W and H pass the locator's point.
- A shape set by id and not selected that the edit would take past the
  coordinate limit is refused, as object.setLiveShape refuses one.
- The result's `shape` is read back after the edit, and is null when
  snapping to the pixel grid left a plain path.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 00:21:10 -08:00
dotCooCoo 239a7d61d0 Smooth: the dashed band shows the radius its release sends at the lowest zooms
The band a smoothing drag shows took the Smooth radius in points without
the 1,000 pt bound the release applies, so below 1.2% zoom it drew wider
than the region path.smoothRegion smooths. It now uses the same bound.
2026-11-21 00:15:55 -08:00
RuchirandCursor bb66d9f5db Document Info counts the selection when Selection Only is on.
The panel menu stores the toggle, and an empty selection says that nothing is selected.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 13:40:49 +05:30
dotCooCoo f85fc7614e i18n: Bulgarian translates status and error messages
Bulgarian joins COMPLETE_MESSAGES. bg.tsv gets 987 new message rows
(982 @msg, 5 @msgplural) for the keys the other complete-message
languages translate, plus the liquify and variable context rows the
list tests read.

Nine existing Bulgarian @msg rows began with a space, so those status
messages were shown with a leading space. They are fixed, and the new
test message_translations_keep_their_english_edges checks every
catalog for a translation that adds whitespace at either end.

Docs: docs/localization-parity.md, docs/target-app-parity.md and
docs/development.md list Bulgarian with the other complete-message
languages.
2026-11-21 00:10:09 -08:00
dotCooCoo c8fb7729e5 Save for Web: diffusion transparency dither keeps its error past fully clear pixels
Fully transparent and fully opaque pixels keep their state but now pass on
the opacity error they receive. Before, that error was dropped, so a row
alternating half-opaque and fully transparent pixels kept every
half-opaque pixel opaque at amount 100. About half of them stay opaque
now, in a single row and in a checkerboard.
2026-11-21 00:08:27 -08:00
dotCooCoo 9758ece7ef Scripts: vc.run export of an open document reads its own linked files
A command a script runs with vc.run could read only the script's own places
and the open documents' own files, so an export, save, print or package of
a document whose linked images or placed files sit elsewhere fell back to
the saved previews.

The script gate now also reads, and never writes, the files that the
documents open when the run began link to: linked images, placed files, the
plate files of a DCS image and the images their data sets name. The list is
taken once, at the run's first vc.run, from those documents as they were
when the run began, and holds real paths, so a path that leads to another
file later is refused. A link the script adds or re-points, a path it names
itself and a document it opens give it no further file to read, a document
it opens from one of these files is not saved over it, and the automation
read roots and the name and traversal rules still apply first.
2026-11-21 00:07:34 -08:00
dotCooCoo 5e30728f4d Save PDF: a settings object set by ui.dialog.set keeps the options it leaves out
`ui.dialog.set` replaced a Save PDF settings object (`bleed`, `marks`,
`compression` and the others) with the value given. Options left out then
showed the default settings in the dialog, while Save PDF took them from
the chosen preset. With the bleed, the link copied the default top value
to the other sides while the file kept the preset's top: from a preset
with `[3, 5, 3, 3]`, `{"useDocument": false}` followed by linking wrote
`[3, 0, 0, 0]`.

- A settings object set there now sets only the options it holds; the
  ones it leaves out keep the dialog's values. A null option is still
  set as given.
- A value that is not an object is refused, and the request leaves the
  dialog as it was.
- A test sends a request that sets `bleed` and then an invalid
  `__bleedLinked` through the control handler and checks the dialog is
  unchanged.
2026-11-21 00:05:06 -08:00
dotCooCoo 91bfcc7455 Eyedropper: count a blend's steps before sampling it; hover skips a selected group member
Before the Eyedropper evaluates a blend to sample its color, it now
counts the steps of every blend the art holds against the work left.
When the steps alone exceed it, the blend is not evaluated and the
sample gives no color. Hover runs this lookup on every pointer move
with Shift held.

The Selection tool's hover outline, and the one it shows when lent to
the Eyedropper with Cmd, now outlines nothing over a selected group
member, where a press keeps the selection. It uses the same rule as
the press (select::selected_under_in).

Tests: blend_steps_count_before_the_blend_is_evaluated and
selection_hover_outline_skips_a_selected_group_member.
2026-11-21 00:04:25 -08:00
dotCooCoo 29dc2a4ec3 History: effect steps take the effect's name from the Effect menu
History and Edit > Undo/Redo looked a step's label up in the catalog's
plain row first, so in catalogs where that row translates the Feather
arrowhead (cs, es, fi, fr, hu, id, ka, nl, pl, pt-br) a Feather effect
step was named after the arrowhead. Many other effects had a plain row
that differed from their menu row too (de Levels), and the Appearance
panel showed Inner Glow, Outer Glow, Film Grain and others in English
when the catalog had only the menu row.

- The engine records which built-in effect a step applied or edited:
  HistoryEntry::effect(), set through Session::edit_effect around
  effect.apply, effect.setParams (when every target edits the same
  effect) and addon.color.filter, and kept through dialog previews,
  undo and redo. A step another command names like an effect (Object >
  Transform's Transform) and a step an undo group names keep none.
- i18n::effect_menu_label and effect_name give an effect's name from its
  @id row or the row of its English menu label. The Effect menu, Last
  Effect, History, Edit > Undo/Redo, the Appearance panel and its effect
  picker, the effect dialog heading and the Effect Gallery use them.
- The untranslated-text report lists missing effect names.
2026-11-20 23:59:24 -08:00
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 7b9603bb87 Tests: the Slices keyboard test checks Line Color and starts from the search field
keyboard_focus_on_a_slices_row_shows_its_description stopped at Show Slice
Numbers, so nothing checked that keyboard focus on Line Color shows its
sentence, and the test passed even when the first Tab did not start from
the search field. It now uses tab_to_each, as the Hyphenation test does:
it asserts the search field has the keyboard first, then tabs to Show
Slice Numbers and Line Color in that order and checks that each focused
control carries its sentence.
2026-11-20 23:50:12 -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 c6bea78bdf Shapes: Curvature Circle Tool Options set its reach, label, anchors and arc rule
Double-clicking the Curvature Circle tool opens Curvature Circle Tool
Options (`tool.options {tool: "curvatureCircle"}`, dialog
`curvatureCircleOptions`). OK sets the options with `tool.setOption`,
and the preferences keep them:

- Snap Tolerance (`snapTolerance`, 1 to 40 screen points, 5) is how
  near a path pulls the pointer; Smart Guides' Snapping Tolerance
  applies when it is larger.
- Snap with Smart Guides Off (`snapWithoutGuides`) unchecked keeps the
  reach within Selection & Anchor Display's Tolerance while Smart
  Guides are off.
- Annotate Radius (`annotateRadius`) unchecked hides the radius label.
- Anchors at Standard Positions (`standardAnchors`) unchecked draws a
  path with an anchor where the circle touches the path and one every
  90 degrees from there (`shape.curvatureCircle {anchors: "touch"}`).
- Use the Radius of Circular Arcs (`constantRadius`) unchecked gives
  the cubic's own curvature on the cubic of a circular arc too
  (`shape.curvatureCircle {constantRadius: false}`).

The range, the default and the Snap with Smart Guides Off rule are
VectorCraft's own. Every switch is on by default, so the tool draws as
before until an option is changed. The canvas check measures the path
drawn, whose cubics reach a little past the circle when its anchors
are where it touches.
2026-11-20 23:43:34 -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 9965de4ec2 Preferences: list the script file access kept with Always, with Revoke
Preferences > General gets a Script File Access section after Show
External Script Warning. It reads script.grants and shows one row for
each script and path, grouped by script, with the widest access any kept
version has (read file, read and write file, or read and write folder).
Revoke runs script.grants.revoke for that script and path, which removes
every kept version of the pair, so the next run asks again. The list is
read again after a revoke, the keyboard focus moves to the row now in
that place, and the status bar says whether anything was removed or
shows the command's error.

Paths and script names show control and bidirectional formatting
characters as escapes and are cut at 1,024 characters. A grants file
that is not well formed or is larger than 4 MiB makes Revoke show the
error and leaves the file as it was. Without a settings folder, and on
the web, the section is not shown. The rows are drawn only where they
are in view, so a long list stays fast.
2026-11-20 21:27:48 -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