Commit Graph
21362 Commits
Author SHA1 Message Date
dotCooCoo 30eb12aba3 JavaScript: generator functions, yield and yield* in ES2015 realms
A realm made with Options::es2015 reads function* declarations and
expressions, *name() methods in object literals, yield and yield*, as
ECMA-262 11th edition sections 14.4 and 25.4 define them. A suspended
generator keeps its frame in its object; next, return and throw on
%GeneratorPrototype% push it back on the interpreter's frame stack, so
a resumption takes fuel and counts against the frame limit, and return
runs the finally blocks around the yield. Resuming a running generator
throws a TypeError. yield* passes next, throw and return on to its
iterator and closes one without throw before throwing a TypeError.
%GeneratorFunction% is reached through a generator function's
constructor. Outside generators, sloppy code still reads yield as a
name, and a realm without the option reads function* as a syntax error.

An engine that #targetengine kept from a .jsx run has no generator
built-ins, so a generator function called there throws a TypeError.

cargo xtask test262 runs the generator folders: 509 of 549 runs pass
(94 of 96 before). Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-22 08:15:47 -08:00
dotCooCoo d5de4b2f6b Plug-ins: errors for filters that write objects are translated in every complete catalog
The messages a filter's `writes` manifest key and its changed type,
images and symbol instances can give have an `@msg` row in each of the
25 complete-message catalogs. The other new errors use messages the
catalogs already translate: "`{key}` must be a string", "`{key}` must
be an object", and "read-only field 'text' changed" for text changes to
an object that is not type.
2026-11-22 08:09:59 -08:00
dotCooCoo 909c169afe Scripts: queued startup runs keep the file access scope of the request that queued them
In the app, script.startup.run starts only the first queued run inside the request; the later
startup scripts and the chosen script start from the frame loop. Each of them now starts, and its
file is read, in the scope captured when the queue was built, so a confined request's automation
roots apply to every run it queued.
2026-11-22 08:06:13 -08:00
Dylan M. Taylor a65bcb99bd metafile: use shared EMF and WMF writers (#778) 2026-11-22 11:05:07 -05:00
dotCooCoo 001e9ec83e JavaScript: the ?? precedence test tells the two groupings apart
`(null ?? 1 | 2)` and `(null ?? 0 ? 'a' : 'b')` give the same result under
either grouping. `(1 ?? 2 | 4)` gives 5 and `(1 ?? 0 ? 'a' : 'b')` gives 1
when `??` binds the wrong way, so the test now fails on a wrong precedence.
2026-11-22 07:59:50 -08:00
dotCooCoo 17c2f43485 Direct Selection: optional preference keeps paths joined when Delete removes anchors
The new General preference Delete Removes Anchor Points and Keeps Paths
Joined (`deleteKeepsPathsJoined`, off by default) is the default of a new
`keepJoined` param of edit.clear (Delete, Backspace, Edit › Clear, and the
Layers panel's Delete button while no row is highlighted). With it on,
Delete removes the direct-selected anchors of each path as Remove Anchor
Points does, refitting the curve around each one, so a closed path stays
closed and an open path stays in one piece. The next anchor along is selected (the one
before at an open path's end), so the next Delete goes on along the path.

- Objects selected whole are deleted and paths with a selected segment
  are cut there, as before, in the same undo step. A path left with fewer
  than two anchors is deleted; a compound path keeps its other members.
  When no changed subpath keeps two anchors, the path stays selected
  whole, as Remove Anchor Points leaves it.
- The value used joins the journal entry, so a replay removes the anchors
  the same way whatever the preference is at the time; a saved step
  without it opens the paths as it did when it was recorded. A keepJoined
  value that is not a boolean is an error, also with ids, where the param
  has no other effect. path.deleteAnchors and Cut are unchanged.
- The Smart Pen does not take the Delete key, so Delete follows the
  preference with it chosen too.
- The label and its description have a row in every catalog.

Without keepJoined and with the preference off, edit.clear gives the same
result as before.

Part of #8326

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-22 07:57:33 -08:00
centyandClaude Fable 5.2 ec674949df Decode an image's source in a helper that puts a left-out image's filters back
decode_image was over clippy's cognitive-complexity limit with the restore inline.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 10:53:21 -05:00
dotCooCoo 438f2a9ba8 Scripts: Promise review fixes for rooting, slices, finally and the combinators
- A promise resolved with itself roots its TypeError before the queue
  reserves room, so a collection there no longer frees the reason.
- A sliced run whose last job ends a slice reports Done in that slice
  instead of Paused, and a pause asked for in a run's last step no longer
  pauses the next run.
- The job queue is replaced at run end, which frees its buffer.
- A reaction job runs a finally callback as its own call, so a slice can
  pause inside it; the callback no longer runs to its end within the
  unbroken-fuel allowance.
- all, allSettled and race read an array to its current length at each
  step, and a string input is flattened through the charged path and
  shared instead of copied.
- The test262 runner checks the expected exception of an async test with
  a runtime negative.
2026-11-22 07:29:09 -08:00
dotCooCoo 81dfbf4078 Scripts: keep startup notes in the status bar when a folder is not read in full
A startup round whose listing of the Startup Scripts folder stopped at a limit or skipped an entry now says that the folder was not read in full, at launch and before a script chosen from File > Scripts. A folder that cannot be read is named before a chosen script too, not only at launch.

The notes of a round (startup scripts that could not start and the two folder notes) no longer replace each other: the status bar shows the first and its hover lists them all. When the round's last run ends they show again, with that run's message in the hover, so a later message does not hide them.
2026-11-22 07:28:58 -08:00
dotCooCoo 38cfc3073e Tests: the Shape Builder's freeform fill keeps its stops without points
The test now gives the tool's freeform fill Lines mode first, so the fill
has a freeform state with no points when its stops are edited. It checks
that the supplied stops and the mode survive the edit and the recolor of
the selected stop. Without the guard that skips recoloring from an empty
point list, the stops edit resets the first stop to white and the test
fails.
2026-11-22 07:28:41 -08:00
centyandClaude Fable 5.2 494635f932 Format the Reflect solve call
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 10:25:45 -05:00
dotCooCoo c664ce630b Plug-ins: importers whose manifest sets place also read files for File › Place
An importer plug-in with "place": true in its manifest now reads its files
for File › Place as well as File › Open. file.place, file.place.info and
file.place.queue take importer and params; without importer, a file no
built-in format reads goes to the first placing importer by id that lists
its extension. The importer is given at most 128 MiB of the file (a larger
file is refused from its size before it is read) with _context.mode
"place", and its objects, guides left out, become one group named after
the file, as one undo step, embedded. A decline, invalid output, a trap or
Cancel places nothing.

- The Place dialog lists placing importers' extensions under "All
  placeable files" and in a filter named after each importer.
- On the web, a placing importer's file dropped on the canvas is placed.
- A file placed with a named importer skips the text, PDF, DXF and PSD
  import options.
- document.formats and plugin.list mark placing importers with place:
  true; place on any other kind is refused at install.

Docs: docs/plugins.md, docs/mcp.md, docs/gaps.md, docs/target-app-parity.md.
2026-11-22 07:20:07 -08:00
dotCooCoo 2eef47e7e2 Plug-ins: commands placed after either label of a switching item keep their order
A placed command's spot is now the matched item's own label rather than the
label its `after` names, so commands whose `after` names the two labels of
one Show/Hide item (Show Bounding Box and Hide Bounding Box) share one spot
and keep plug-in id order and then manifest order. The parity line now says
a live effect whose commands are all placed elsewhere is a single item in
Effect › Plug-ins.
2026-11-22 07:10:11 -08:00
dotCooCoo 74d481ef68 JavaScript: strict eval code keeps its own environment through collections
Strict eval code runs in a new declarative environment that no frame holds
until its declarations are made. Making the scope of its let and const names
reserves heap, and a collection there freed that environment, so the new
scope's outer link pointed at a reused slot. The environment is now a root
while the declarations are made, for direct and indirect eval.
2026-11-22 07:08:44 -08:00
dotCooCoo 68df6224ea Accessibility: Save PDF and Print name every number and length field
Screen readers found six image resolution fields in Save PDF with no
name, and the four bleed fields were not connected to their labels. In
Print, the artboard Range field had no name, Width and Height were both
named Width:, Placement X and Y both Placement:, and Scale W and H both
Scale:.

- save_pdf::number_named and length_named take a name for a field that
  shares its row or has none; number and length keep naming a field by
  its row.
- The resolution fields are named by their group and the word before
  them (Color images to, Color images above), the bleed fields by their
  side, Width and Height by their own labels, and Placement and Scale by
  the row and the axis.
- No visible text changes.

Tests: dialogs::save_pdf::tests and dialogs::tests_print
every_number_and_length_field_is_named_by_its_label.
2026-11-22 07:06:17 -08:00
dotCooCoo e48b811707 Scripts: an opacity a graph mark already has replaces the one its series keeps
Assigning PageItem.opacity skipped object.setProps when the item already
had that opacity, so a graph mark or label set to the opacity it shows
left the graph keeping the opacity another mark of its series or kind had
set. The setter now leaves the no-op check to object.setProps, as the
command does for that case. A value within the getter's rounding of the
item's opacity sends the opacity the item has, so assigning the opacity a
script read back still changes nothing and adds no undo step.
2026-11-22 07:02:06 -08:00
dotCooCoo e1b15ecea6 Canvas: a click pressed and released in one frame starts where it was pressed
A press and release that come in one frame now start the gesture at the
press's own position, not where the pointer moved after the release in
that frame. With Animated Zoom off, such a Zoom tool click whose pointer
then moves away steps the zoom instead of zooming to the area between the
release and the new hover position, and a drag pressed, moved and released
in one frame zooms to the area dragged across. The Hand, Rotate View and
tool presses start at the press position the same way.
2026-11-22 06:59:03 -08:00
dotCooCoo 9fe9ad658a Plug-ins: paragraph styles follow the paragraphs' text when a filter adds or joins paragraphs
Runs written without text.paragraphs that change the paragraph count at
two separate places gave every paragraph between the first and last change
the first one's style. The host now matches the old and new paragraphs by
their text: an unchanged paragraph keeps its style, changed paragraphs take
the styles of those they replace in order, and an added paragraph takes the
style of the one before it (the next one at the start) without a list
number. Past 262,144 compared pairs the paragraphs are paired in order.
2026-11-22 06:51:52 -08:00
dotCooCoo 1592cee7a8 Plug-ins: Apply Last Filter and Last Filter… repeat the last filter plug-in
Object › Plug-ins now starts with Apply Last Filter (plugin.applyLastFilter)
and Last Filter… (plugin.lastFilter). Once a filter plug-in's plugin.run
succeeds (its menu item, its dialog's OK, a shortcut, a request, the last
plugin.run step of a command.batch or of an Action Batch that processed a
file or data set, or a background run once its result is applied), Apply
<name> runs it again on the selection with the same parameters, without
its dialog, as one undo step, and <name>… opens its dialog with those
parameters. A filter's own dialog opens with the parameters it last ran
with in the session. Previews, Cancel, failed runs, a plug-in's own
commands and live effects don't count.

Both items are grayed out, and return an error through automation, with
no document open, before a filter ran, once that filter was removed or
installed again, or when its manifest no longer takes the parameters as
they are. The parameters are kept for the session only, for at most 64
filters.

The help page describes the same pair for filters:
https://help.adobe.com/archive/en_US/illustrator/cs3/illustrator_cs3_help.pdf#page=357
Where the items sit and when they are grayed out are VectorCraft's own
rules.

Docs: docs/plugins.md, docs/mcp.md, docs/target-app-parity.md.
2026-11-22 06:48:36 -08:00
dotCooCoo f7b7ca5f86 Recolor with Preset: ask whether to limit colors to a swatch library first
Edit > Edit Colors > Recolor with Preset (1, 2 and 3 Color Job, Color
Library) now opens a Recolor with Preset dialog with a Limit to Library
menu (None, Document Swatches or a library) before Recolor Artwork
opens; OK opens Recolor Artwork with the preset's colors and that
library, and Cancel opens nothing. The menu items run
ui.recolorDialog {preset: true}.

A 1 Color Job limited to the document's swatches, with a spot or global
ink picked for its row, gives gray art tints of that ink linked to its
swatch, so editing the swatch recolors the art.

Opening either dialog over another dialog now ends that dialog as
Cancel does, so a Recolor Artwork preview is rolled back.
2026-11-22 06:47:42 -08:00
dotCooCoo f9679bf92b Overprint Preview: the canvas around the artboards is white, with no artboard shadows
In Overprint Preview, and in Separations Preview, which turns it on, the
canvas outside the artboards was drawn in the pasteboard color. It is now
white, and the artboards draw no drop shadows. Turning the preview off
brings back the pasteboard color and the shadows.

- With a display profile, translucent art around the artboards is blended
  with the white canvas before the conversion, as it is on the paper.
- Artboard names and the ruler origin's crosshair use the dark gray they
  use in Outline. Where the Artboard tool's Fade Region Outside Artboard
  darkens a white canvas, in Overprint Preview and in Outline, the names
  and the crosshair are black.
- Over a white canvas the Artboard tool's names of its selected artboards
  are dark blue instead of the selection blue.
- proof::overprint_preview_on() reads the proof view without copying it,
  since the canvas now asks for it several times a frame.
- The canvas tests that check the pasteboard, the names or the display
  profile's frames hold the proof view while they run, and the tests that
  change it outside the Proof Setup tests take it for writing.
- docs/mcp.md, docs/target-app-parity.md and docs/ui-parity.md describe
  the white canvas.
2026-11-22 06:46:46 -08:00
dotCooCoo faa5e3062c Scripts: .js scripts read optional chains and the ?? operator
With Options::es2015, vectorcraft-js reads and runs two ECMAScript 2020
forms: optional chains (a?.b, a?.[key], f?.(args) and the accesses and
calls after them) and ??.

- An optional step that finds undefined or null ends the whole chain
  with undefined, without evaluating its other keys and arguments.
  Parentheses end a chain. a?.b() and a.b?.() call with a as this,
  (a?.b)() does too, eval?.(code) is an indirect eval, and delete a?.b
  is true when a is undefined or null.
- ?? keeps any left side other than undefined and null.
- ?. before a digit still reads as ? and a number (a?.5:1).
- Mixing ?? with && or || without parentheses, assigning to or updating
  an optional chain, a tagged template after one and new a?.b() are
  syntax errors.

Two new jump instructions test for undefined and null, and the verifier
checks both of their paths. A chain of any length compiles with a loop.
.jsx files and source strings stay ES5.1, where ?. and ?? are syntax
errors.

The test262 ES2015 subset now also reads expressions/optional-chaining
and expressions/coalesce: 426 of 426 negative parse runs and 591 of 615
other runs pass with the option. The 24 failing runs are the same as
before this change.
2026-11-22 06:45:48 -08:00
dotCooCoo f1f0911ddb Merge branch feat/js-es2015-symbol-iterators into feat/js-es2015-generators 2026-11-22 06:28:23 -08:00
dotCooCoo 1cecbb9aee Display Print Size: keep the last density, fits and percentages right
- A fit made while a floating window's display has not answered keeps
  counting from the density the window was last shown at, so Actual
  Size and the zoom field no longer fall back to 96 points to an inch
  meanwhile.
- A view that still fits its floating window keeps fitting it after a
  move to a display of another density: the fit kept for the window
  takes the settled zoom.
- The plausible range of a measured display applies to its pixels per
  inch, before the display scale divides them into points. A
  1920 x 1080 display of 527 x 296 mm at scale 4 now measures about
  23 points to an inch instead of falling back to 96, and Actual Size
  takes any finite, positive point density the host measured.
- View > Set Zoom, Zoom In and Zoom Out, the wheel and the Zoom tool
  clear the zoom a fit gave the view, so a percentage that equals the
  last fit's zoom keeps its percentage at the first reading.
- The Actual Size and preference descriptions say that a size no
  display has also counts 96 points to an inch.
2026-11-22 06:25:08 -08:00
dotCooCoo 945d0a42b0 Plug-ins: check every number in the type styles a filter writes
Type a filter returned went to layout with its character and paragraph
styles only parsed, and a style equal to one of the type's runs was not
checked at all, so a filter could set leading of 1e9, 100,000 tab stops,
a scale of 0 or a Kinsoku set the document does not have.

- The ranges the character and paragraph style commands keep each
  attribute to move to CharStyle::check_ranges and
  ParaStyle::check_ranges in vectorcraft-doc (text/attr_ranges.rs).
  charStyle.new, charStyle.edit, charStyle.setAttrs and the paragraph
  style commands call them, and so does the filter write path, for every
  run and paragraph style, including one the type already has.
- A paragraph style's custom Kinsoku set must name one of the
  document's sets, and takes that set's characters.
- The character style commands now also refuse tracking and kerning
  outside -1000 to 10000, rotation outside -360 to 360, a miter limit
  outside 1 to 500, Small Caps outside 1 to 200, negative dash lengths
  and a variable font axis setting that is not a number.

Each refusal names the object and the field, and the document does not
change. Docs: docs/plugins.md, docs/mcp.md, docs/target-app-parity.md.
2026-11-22 06:24:25 -08:00
dotCooCoo 3a00d4a73a Scripts: show startup scripts that cannot start when a launch or chosen run begins
script.startup.run returns the startup scripts that could not start before the first run did, such as a file larger than 8 MiB, in its reply's failed list. The launch and the File > Scripts runs now show each one in the status bar as name: error, so a launch where every startup script fails to start no longer shows nothing.
2026-11-22 06:15:57 -08:00
dotCooCoo 4f73ef7fbb Images: Overprint Fill makes a colorized image's color overprint
A grayscale or 1-bit image colorized with a fill color had no way to
overprint: object.setOverprint {fill: true} changed nothing, since an
image has no fill row. The color now carries its own overprint flag
(colorize_overprint in native files).

- object.setOverprint (fill, without item) and attributes.info set and
  read it; Overprint Black and Print Ink Fixes' Remove White Overprint
  treat the color as the image's fill.
- Overprint Preview, Separations Preview and printed separations show
  the inks below the image where its color has none; on a plate the
  color puts no ink on, the image is left out.
- PDF export draws the image in an overprinting graphics state, a
  process color as an image of only the process inks it puts down.
- EPS export turns overprinting on for it, and now leaves white fills,
  strokes and colorized images knocking out with Discard White
  Overprint, as PDF export does.
- A legacy .ai file writes it as the image mask's fill overprint and
  reads it back. Warped pieces, geometry-effect copies and flattening
  keep or drop it as they do for fills.
- A white spot color is an ink: with Discard White Overprint it keeps
  overprinting in PDF and EPS export and in both previews.

Docs: docs/mcp.md (Overprint, Print Ink Fixes), docs/target-app-parity.md.
2026-11-22 06:15:41 -08:00
centyandClaude Fable 5.2 b40ea27592 Put a left-out image's filters back before skipping its data; test the measuring charge
materialize now empties a file whose decode failed, so the reduced image that is
left out restores its pending filters for skip_data. The new test runs an image
over 300 MB of compressed zeros from a reusable stream in a loop until the
operation budget ends.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:04:25 -05:00
dotCooCoo 0d4780e33c Export: GIF and PNG-8 take the Transparency Dither settings
document.export reads transparencyDither (none, diffusion, pattern or
noise) and transparencyDitherAmount (0 to 100) for GIF and PNG-8 with
the same ids as Save for Web, and refuses an unknown method or an
amount outside 0 to 100. Other formats do not read the keys, and the
warnings name them as not used.

GIF and PNG-8 Options show Transparency Dither and, for Diffusion, its
Amount, disabled while Transparency is off.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-22 06:03:49 -08:00
dotCooCoo a1bd1ba906 Shape Builder: a fill chosen while the tool is active leaves the selection's fills
Choosing a fill while the Shape Builder was active (a swatch, the Color
panel, the Fill box or a paint command) ran paint.setFill on every
selected path, so all of them took the color. With Pick Color From set
to Color Swatches the tool merges with the current fill, so the pick is
the color for the next merge.

While the Shape Builder is active, a fill chosen without ids, id or item
now changes only the current fill, with either Pick Color From: with
Color Swatches the next merge fills with it, and with Artwork merges
still take their look from the art. A stroke chosen then still goes to
the selection. Swap Fill and Stroke and Default Fill and Stroke change
only the paint for new art, and Swap gives the current fill the stroke
the Stroke proxy shows. This is VectorCraft's own rule; no default
setting changes.

- painting_tool_of says which tool paints with the chosen fill or
  stroke: the Live Paint Bucket with both, the Shape Builder with the
  fill. Session::tool_paints(stroke) replaces bucket_paints, so the
  paint and gradient commands, previews, the proxies, the Stroke panel
  and the Gradient panel's eyedropper follow it for each kind.
- A new selection does not replace the tool's fill for new art, with
  New Art Has Basic Appearance on or off, and new art is not linked to
  a graphic style whose fill it does not have.
- A cancel puts back a fill previewed for the tool, also after another
  tool was chosen during the drag.
- An Eyedropper pick armed for a stop of the tool's gradient samples
  only into a stop of that gradient, and ends once that stop is gone.
  Choosing another tool drops the stop the pick was armed for, and a
  pick armed while the Eyedropper waits for a Cmd-drag keeps its stop.
- The paint.freeform commands refuse the Shape Builder's fill as they
  refuse the Live Paint Bucket's colors, which lie on no object. For
  the gradient either tool paints with, the Color panel, the Gradient
  panel, the stop popover and swatch drops edit its stops instead of
  points, and the Gradient panel shows its Draw toggle, ramp and stop
  fields in place of the point controls. paint.editGradient keeps the
  given stops of a freeform gradient that has no points yet.
- A gradient command that names no kind edits the proxy in front when
  the tool paints with it, else the kind the selection's active
  Appearance row stands for.
- set_paint lists the commands that painted no object in unpainted.
- Params text and docs/mcp.md describe the rule.

Help (Pick Color From, Color Swatches):
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/shape-builder-tool-options.html
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=266
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=267
2026-11-22 06:01:44 -08:00
dotCooCoo b6bb1329cd New Document: choosing the selected Grid by Column keeps a preset's rows
Clicking the layout that is already selected removed the rows of a preset
made with file.new's rows and kept only the columns they showed, so Create
put a different number of artboards in each column. With five artboards
and rows 4, the first column got three artboards instead of four. A
different layout or a new column count still replaces the rows.
2026-11-22 05:58:20 -08:00
dotCooCoo b7f2eacc6a Canvas: a click pressed and released in one frame ends with its release's modifiers
A press whose release came in the same frame started the gesture and
left the release for the next frame, which read that frame's modifiers,
Space and position. Alt pressed before the release and let go after it
in the frame then opened the Rectangle dialog without centering the
shape on the click.

The press now ends the gesture in its own frame, through the same
release path a held drag takes, with the modifiers, Space and position
of the button-up.
2026-11-22 05:58:13 -08:00
dotCooCoo cbfc785886 Plug-ins: a slider drag previews only in its own interaction
- A drag on a plug-in parameter's slider in the Appearance panel notes
  the interaction it begins and previews and keeps values only in that
  one. An interaction that was open before the drag, or that replaced the
  drag's own while its row stays in view, is left as it is.
- The slider is a widget of its own for each document and selection, so
  a release in the same pass as a change of selection does not reach the
  objects selected now. The objects the drag began on keep its last
  preview as one undo step.
- A switch to another document during the drag keeps what it previewed
  as one undo step in the document it began in, instead of canceling it
  (Session::keep_interaction_on_switch).
2026-11-22 05:49:55 -08:00
dotCooCoo 5f2649aa63 Tests: the filter shortcut test no longer sees plug-ins another test installs
Installed plug-ins are process-wide, and the shortcut test
each_filter_plugin_takes_a_shortcut_of_its_own and the palette test
filter_plugins_with_one_name_show_their_ids both install two filter
plug-ins named Same Name. When the two ran at the same time, the
shortcut test counted 4 Same Name lines in the exported shortcuts
instead of its own 2, and its own row took an id suffix.

The tests that install filter plug-ins under a shared name, or that
check how plug-ins sharing a name are told apart, now hold one test
lock (SHARED_PLUGIN_NAMES in the ui-egui test module) while their
plug-ins are installed: the shortcut test and both palette tests
(each_filter_plugin_is_a_result_of_its_own checks the exact labels of
two filters named Group).

Running the two tests together with --test-threads=8, 50 times on
Linux: 0 of 50 passed before, 50 of 50 after.
2026-11-22 05:49:11 -08:00
dotCooCoo c85f3ebb5a Scripts: keep a stopped startup script's report and refuse a chosen script that cannot start
- A chosen script that script.run would refuse (a missing file, one larger
  than 8 MiB, bad parameters) ends script.startup.run with script.run's
  error before any startup script runs.
- When a queued run ends, the next one starts at the following pump, so
  the ended run's report stays for the status bar. The queue counts as a
  running script, so other runs and edits stay refused in that gap, and
  Stop asked for in it stops the run that starts next.
- Queued runs that could not start show in the status bar in the same
  frame, and the reply's failed list is not shown there again.
2026-11-22 05:48:51 -08:00
dotCooCoo e79aa9836a Docs: linked image crosses above the outline point limit
The progress-doc entry now says that above the 100,000-point overlay
limit, counting 4 points for each linked image's or placed document's
lines, both the current pane and other panes draw one rectangle around
the selection instead of outlines and crossing lines.
2026-11-22 05:45:22 -08:00
centyandClaude Fable 5.2 e53a643c86 Reflect by two clicks passes its drag to solve as a SolveDrag
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 08:42:40 -05:00
dotCooCoo 02ebfb7b8e Plug-ins: a run that changes nothing records no undo step
A filter run, a plug-in command, or a run that calls commands applied its
output through Session::edit, which records an undo step and marks the
document modified even when the output changes nothing. The output is now
applied to a copy first, as colorcmds::edit_if_changed does: only a copy
whose objects or kept documentData differ becomes the document, as one undo
step. Otherwise the document, its undo history and its saved state stay as
they were, and the run's objects are still selected.

Docs: params text of plugin.run and plug-in commands, docs/plugins.md,
docs/mcp.md, docs/target-app-parity.md.
2026-11-22 05:40:50 -08:00
dotCooCoo d4ca49b7c6 Tests: linked image crosses on distorted images, key, hover, Hide Edges
The selection marks test now also checks a distorted linked image and a
turned or distorted embedded image, the key object's outline alone and
the hover highlight, each along the image's frame and without lines
across it. A new test checks that the first canvas frame after View >
Hide Edges draws nothing in the layer's color for a selected linked
image. The render check comment uses American spelling.
2026-11-22 05:21:36 -08:00
Terra854 a9a0aad34f deps: scope EPS prefix update to the stream codec stack 2026-11-22 21:08:36 +08:00
dotCooCoo 1a48bd827b Display Print Size: a fit made during a reading counts from the last one
A fit made in the main window while its display was being read counted
from 96 points to an inch until the reading arrived, so the zoom field,
the tab title and the zoom stops counted from a different density than
the window's other views. The fit now counts from the last reading, and
the reading, when it comes, keeps the fit's zoom, also when the views are
settled again before it arrives.

An app that draws no frames now still reads the displays again a minute
after the last reading: it asks for a frame then.

Tests now cover Actual Size after a fit that gave the same zoom, a
Navigator thumbnail click, and a floating OS window's display readings
(first display, a move, off every display, a fit, and docking back).
docs/mcp.md now states which views keep their zoom at the first reading,
that X11 and Wayland are read on Linux only, that headless sessions and
the CLI count 96 points to an inch, and that the preference also applies
in Pixel Preview. The progress line names the two rules that differ from
the help page.
2026-11-22 04:54:25 -08:00
dotCooCoo d1c35436f7 Merge main into fix/overprint-preview-canvas 2026-11-22 04:44:01 -08:00
dotCooCoo 57be8ca36f Plug-ins: a command's manifest can place it in another menu
At plug-in API level 2 a command may give `menu`: `{"path": [...],
"after"?: label}`. The menus list it in that menu, right after the
built-in item `after` names (either label of an item that switches
between two), or at the end of the menu, with the plug-in's name in
parentheses after its label. Keyboard Shortcuts, the command palette
and `command_list` list it under that menu, and `plugin.list` gives its
`menu` with `after` escaped.

A manifest may name 14 menus of Edit, Object, Type, Select, Effect and
View. File, Window, Help, the application menu and the submenus that
list files, fonts, panels or plug-ins are refused when the module is
installed, as is any other `menu`, an `after` that is not 1-64
printable characters and a repeated `menu`. A command whose label with
the plug-in's name reads like a built-in item or submenu of that menu,
or like a command a plug-in with a lower id places there, stays in its
plug-in's submenu, and `plugin.list` and `plugin.inspect` mark it
`placed: false`. The desktop app and `vectorcraft-cli` give the same
result. Commands of several plug-ins at one spot are listed in plug-in
id order and then manifest order. A plug-in whose commands are all
placed elsewhere is a single item in Object › Plug-ins. At API level 1
the key is ignored, repeated or not.
2026-11-22 04:38:27 -08:00
dotCooCoo 4011ab760b Plug-ins: test modules with no initial pages or a module name build
wat::module and wat::sectioned give a module at least one page of
initial memory, so the first vc_alloc block does not start at 0, which
the host refuses. wat::with_field adds its field after a module's $name
when the module has one, so a named module stays valid WebAssembly text.
2026-11-22 04:25:26 -08:00
dotCooCoo cfb9f82568 Place: PDF bytes without a .pdf name take the PDF Text preference
The PDF Text preference decided whether a place was a PDF by the
extension of its path or name, so a file.place with dataBase64 and no
name, or a name with another extension, kept its type editable with
Outlines set. file.place reads such bytes as a PDF by their content.

Bytes now count as a PDF when they start with %PDF, as file.place
detects them; only the first bytes are decoded for the check. A .ai or
.ait name is still placed as the file says, and a path is still checked
by its extension. A test covers unnamed bytes, another extension and a
.ai name.
2026-11-22 04:14:26 -08:00
dotCooCoo 4528614324 Canvas: a still release sends the tool its changed modifiers and Space
A tool drag released without moving since its last frame sent only the
up, so Shift pressed in the release's frame did not constrain the shape
it committed. The release now also sends a drag when Shift, Alt,
Cmd/Ctrl, Space or Backtick changed since the drag's last frame, as a
held drag does.

Space at the release is now read at the button-up, as the other
modifiers are: Space pressed after the release in the same frame no
longer moves the shape, and a focus loss after the release keeps Space
as it was held.
2026-11-22 04:14:12 -08:00
dotCooCoo 49d4698c6a 3D: a twisted bevel's smoothed normals follow its curved pieces
With a twist, a band cuts each edge into pieces whose cut corners lie on
the art's curve, but the smoothed mesh normals and the 60 degree crease
test were worked out on straight chords between the edge's corners. On
a curved outline the normals then described quads other than the faces
the mesh holds. The corner rule is now one function, cut_corner, which
curved_band and smoothed_rows both use, so each piece's smoothed normal
comes from the quad that is built. Straight and uncut edges are as
before.

The test a_twisted_round_bevels_smoothed_normals_follow_its_curved_pieces
checks that each smoothed corner of a twisted, rounded bevel on a circle
is the mean of the normals of the two faces that meet there, with and
without perspective.
2026-11-22 03:56:16 -08:00
dotCooCoo 6280006e80 Plug-ins: a slider drag in the Appearance panel stays with its objects
The Appearance panel kept a plug-in slider's drag value under the row's
appearance item, effect index and parameter name only. When the
selection changed while the button was down and the drag ended off the
editor, the value stayed behind: the next object with the same effect,
or the same object selected again, showed it in place of its own. The
drag's interaction also stayed open, since the slider never saw its
release.

The kept value now carries the document and selection it was made for
and the UI pass that last drew its row, and it is dropped when either
changes or a pass does not draw the row. A drag that a pass did not
draw (its row or the panel closed), or that ended with no value to
keep, keeps what it previewed as one undo step and ends its
interaction. The app checks this at the end of every pass, after the
panels, as it does for the 3D panel's drags. Any other interaction is
left open.

The inline slider test now ends its drag on a value the canvas had not
previewed yet, and checks that the drag keeps that exact value.
2026-11-22 03:43:49 -08:00
dotCooCoo 86eed6b47d Selection: a selected linked image is crossed from corner to corner
A selected linked image or placed document now shows two lines in its
layer's color from corner to corner of its frame, in the current pane
and in other panes of the same document. A selected embedded image
shows its outline alone. An image is outlined along its frame, so a
turned or distorted image's outline follows its corners. The lines are
selection marks: View > Hide Edges hides them, the hover highlight
does not draw them, and output is unchanged. The overlay's point
limit counts their ends where they are drawn.

Fixes #9080
2026-11-22 03:41:21 -08:00
dotCooCoo 341f764458 Scripts: editable is false on a locked artboard, page item lists kept for several documents
- PageItem.editable is false for art on a locked artboard, as remove()
  refuses it. A group on a locked artboard is measured once for all its
  members.
- The lists of page items are kept for the last four documents read, so
  a script that reads two documents in turn does not walk each one again
  on every index.
2026-11-22 03:26:18 -08:00