Commit Graph
23685 Commits
Author SHA1 Message Date
Terra854 eb3a9ba335 Import: share Mac Roman decoding across legacy formats (#9042) 2026-11-23 03:37:59 +07:00
dotCooCoo d998e7245d Plug-ins: web worker runs hold the documents safely and end on time
- A run that holds the documents applies its output only through the
  command and params it was started with, and one that ends without
  changing a document keeps that document's revision, so another worker
  run on it still applies.
- Clipboard imports are refused while a run holds the documents, and
  recovery copies wait until the run ends.
- A command call waiting under a dialog no longer keeps a run past its
  time budget, and a run whose document changed stops while a dialog is
  open too.
- A checked install waits for the run that holds the documents, and the
  progress window shows that run first.
- While a script runs, worker runs still get their requests, Cancel and
  their time budgets still end them, and no new worker run starts.
- Command call arguments and answers travel in blobs of their own, so
  they nest as deep as a JSON parse allows; the worker protocol is 2.
- docs/plugins.md and packaging/web/README.md scope the off-page runs,
  document the first ui.installPlugin reply, the start-up time in the
  budget, and the CSP fallback through child-src.
2026-11-22 12:37:28 -08:00
dotCooCoo 5edc81e548 Plug-ins: a null translations map is refused
A manifest that gives `null` for `translations` or for one of its maps
(`params`, `groups`, `commands`, `options`) is refused with an error
instead of being read as empty. The palette test of translated plug-in
commands uses names no other test's plug-in has.
2026-11-22 12:31:42 -08:00
dotCooCoo e90e860f80 Plug-ins: a piece's raster effects follow its Transform effect, and pieces take no Pathfinder effect
A raster effect that a painted live-effect plug-in lists on a piece before
a Transform effect now follows that Transform, as an object's raster
effects do once its geometry effects are applied: a Drop Shadow before a
scale of 200% draws at twice its offset. Before, it kept the offset and
size it had before the Transform.

A Pathfinder effect (pathfinder.*) in a piece's effects now refuses the
result, naming the field. A piece is one path, so the effect had nothing
to combine and was never drawn.

Docs: docs/plugins.md.
2026-11-22 12:24:56 -08:00
dotCooCoo 04557f4893 JavaScript: for-of exits close the iterator outside the loop's handler
A return, or a break or continue to an outer statement, now closes a
for-of loop's iterator after the loop's protected range. An exception
from the iterator's return method reaches the catch clause around the
loop instead of stopping the run with an internal error. Inner
iterators are closed first, and a throwing inner close still closes
the outer iterators.

A hole in an array pattern steps the iterator without reading the
result's value. A var pattern resolves each name before its value is
read. A block function named like a destructured catch parameter is no
longer also made a var (ECMA-262 11th edition sections B.3.3 and
B.3.5). Throwing an exception on after an iterator is closed reads a
finally block's mark only from the stack slot that holds the
exception.

Object patterns forget their shorthand defaults in one ordered pass
over the markers inside the pattern, instead of comparing every marker
in the script with every default in the pattern.

docs/mcp.md says that a loop left early calls return only when the
iterator has one and that an iterator whose next() throws is not
closed, and that an engine's first run decides its built-ins while
each run's script decides its syntax. docs/target-app-parity.md says
the same.
2026-11-22 12:19:33 -08:00
dotCooCoo 7615aed3ee JavaScript: a .mjs script runs as an ECMAScript 2015 module
script.run, File > Scripts and Other Script... run a file ending in .mjs as a
module: strict code with import and export declarations at its top level.
parse_module reads the module grammar and its early errors, and
Realm::start_module and Realm::run_module load the module graph through the
host, link every import before any module runs, and run each module once,
after the modules it imports. Imports read the exporting binding each time;
a read before initialization is a ReferenceError and an assignment is a
TypeError. import * as ns gives a namespace object that is not extensible,
and Object.isSealed and Object.isFrozen on it throw a ReferenceError for an
export its module has not initialized.

Specifiers are ./ and ../ paths to .mjs and .js files, resolved against the
importing file and read only through the script's file scope, so a module
can import only from the script's folder and the folders below it. Bare
names, URLs and absolute paths are a SyntaxError that names the specifier.
Module files count against the #include limits: 64 files besides the
script, 16 imports deep. import and export stay syntax errors in .js and
.jsx scripts; import() is not read. script.listInstalled lists .mjs files.

The test262 runner also runs the module tests under language/module-code,
import and export, reading the fixture files they import from the suite.
2026-11-22 12:16:11 -08:00
dotCooCoo 4723dd5e2b Merge main into feat/scripts-api-d7a-variables 2026-11-22 12:14:37 -08:00
dotCooCoo e37b052028 Print: the PDF fonts note names the fonts drawn as outlines
PDF print embeds subsets only of the fonts whose licenses allow it and
draws the others as outlines. The note that None and Complete add now
says so, as do the Fonts params text, docs/mcp.md and the progress line.
2026-11-22 12:12:38 -08:00
dotCooCoo e84336a5c7 Command palette: a plug-in command is found by its manifest's own text
A plug-in command whose plug-in translates its name and label into
English shows the translation, and a search for the manifest's own name
and label still finds it.
2026-11-22 12:05:42 -08:00
dotCooCoo 1da34ab336 Merge feat/scripts-api-d1a-app-documents into feat/scripts-api-d7a-variables
# Conflicts:
#	crates/engine/src/script/dom.rs
2026-11-22 12:03:26 -08:00
dotCooCoo 14e5fae4ca Docs: Overprint Preview's white canvas applies while the artboards show
The ui-parity row, the Views evidence line and docs/mcp.md now state the
condition that white_canvas() checks: the canvas around the artboards is
white in Overprint Preview and Separations Preview while the artboards
show.
2026-11-22 12:03:06 -08:00
dotCooCoo 10150cb77b Plug-ins: a piece's own effects keep to what the pieces before it leave of the budget
Each painted piece's own geometry effects now run within what the pieces
and the pieces before it leave of the budget of the object's geometry
effects, and stop at the first effect that would go past it or that would
make fewer Transform copies than it asks for. The pieces after it are not
built, and the object, or the fill or stroke the effect is on, draws the
geometry it was given. Before, each piece was reshaped with the whole
budget and checked afterwards, and on a fill every piece was reshaped
before any check.

Adds tests for SVG and PDF export and Expand Appearance of a piece's
opacity, blending mode and effects, and fuzz cases for hostile piece looks.
2026-11-22 12:01:37 -08:00
dotCooCoo 989aa08f16 Plug-ins: a failed removal keeps settings, and the key store reconnects
- plugin.remove deletes the stored module of a plug-in that isn't
  installed while its settings and cache are still moved aside, so a
  module that can't be deleted leaves them in place for the next try.
- plugin.remove of an invalid id no longer raises the grants generation.
- The size check before a signed grants write uses the generation the
  file is written at, so a file that fits the 1 MiB limit is kept.
- The system key store connection is dropped when the key store can't
  be reached through it or fails, and the next call connects again; a
  missing entry keeps the connection.
2026-11-22 11:58:30 -08:00
dotCooCoo f7a5e3991d Print: type left out for the page limit sends none of its glyphs
When an object passes the page body limit, the walk takes its body,
image placements and image codes back out. The glyphs it showed through
the job's fonts stayed in the page's font list, so Subset sent fonts for
type that was not printed, and Complete could send whole fonts for a face
no printed object uses. The walk now records the glyphs each object adds
and takes them back out with the rest.

Tests: the glyphs of an object left out for the limit are not in the
page's font list, and ruby readings print as outlines in place while the
base text shows through the font.
2026-11-22 11:52:43 -08:00
dotCooCoo 64ba4f59d1 Last Effect: a plug-in's translated name is not translated again
Last Effect shows a live-effect plug-in's name in the UI language as the
plug-in's translations give it, even where it matches text the app
translates ("Open" in German stays "Open").
2026-11-22 11:51:40 -08:00
dotCooCoo 2e9040d01b Canvas: a press moved and released in one frame drags the tool
A tool press that moves and goes up in the same frame now gets a Drag at
the release position before its Up, as a held press does, so the
Rectangle tool draws the rectangle instead of opening its dialog at the
press point. A press that does not move stays a click.

- A tool that builds a stroke from the drag's samples gets the frame's
  moves between the press and the button-up, not the hover moves before
  the press.
- The Zoom tool's marquee for such a press reads only the frame's events
  between the press and the button-up, with Space as it was at the
  press: Space and moves after the release no longer shift it.
- The press starts its gesture, and its Down goes, with the modifiers,
  Space and Backtick held at the press, not those held at the end of the
  frame. Space held at the press and let go before the release pans.
- A pan or a turn of the view pressed and released in one frame follows
  the pointer to the release, and Shift held at the release snaps the
  turn.
2026-11-22 11:50:42 -08:00
dotCooCoo ec3fe96195 Recolor Artwork: roll back the replaced preview before reading the group
Opening Recolor Artwork on a color group over its own preview of that
group read the group's colors before the preview was rolled back, so the
new dialog started on the previewed colors and OK could apply them again.
The replaced dialog now ends first, after the parameters are checked, and
the group is read from the restored document.
2026-11-22 11:46:52 -08:00
dotCooCoo 7a96c6c091 Scripts: XMP packet scanning needs the wrapper id, and failed alt-text sets add nothing
- A packet starts at a <?xpacket begin= whose header holds the wrapper
  id W5M0MpCehiHzreSzNTczkc9d within 256 bytes, so the same text inside
  a value, such as in a CDATA section, does not restart the scan.
- setLocalizedText adds a new array in the same change that sets its
  item, so a call that stops at the heap limit leaves no empty array.
- The 15 XMP error messages are English only; their translations are
  left to storytold/craft-i18n, as AGENTS.md asks of feature pull
  requests.

Tests: packets_are_found_in_file_bytes and
localized_text_past_the_heap_limit_adds_no_array in
crates/js/src/xmp_tests.rs. Docs: docs/mcp.md.
2026-11-22 11:44:03 -08:00
dotCooCoo 6327295d28 EPS: white fills and strokes knock out with Discard White Overprint
PDF export lets a fill or stroke marked to overprint do so only when it
is not white with Discard White Overprint in Output (Document Setup, on
by default). EPS export and composite PostScript printing ignored that
setting, so an overprinting white fill or stroke was written with
"true op" and the inks below it stayed visible. They now apply the same
rule to path fills and strokes, character fills and type object fills.

The tiles of an overprinting pattern fill overprint with it, as in PDF
export. Before, a tile marked to overprint wrote its own "true op" and
"false op", which turned overprinting off for the tiles after it.
Separated plates are not checked for white, since their colors are
already the plate's coverage.

Re-exporting or printing to PostScript a document with an overprinting
white fill or stroke gives different output: the white knocks out
instead of overprinting, unless Discard White Overprint in Output is off.
2026-11-22 11:39:17 -08:00
dotCooCoo 69be58d0d4 Merge main into feat/js-es2015-modules 2026-11-22 11:38:55 -08:00
dotCooCoo 4eca7a5ccb Merge feat/js-es2015-block-arrow-template into feat/js-es2015-classes
Conflicts were resolved by keeping both sides:

- The compiler keeps the base branch's `declared_function` and its block
  function names, and `list_scope` also declares class names.
- Global and eval code keep their environments and code reachable through
  `instantiate_global`, and declarations check functions before variables
  with `check_global_functions` and `check_global_vars`.
- A call's frame keeps `new.target` and the class bindings, and its heap
  reservation counts the class code's hidden bindings.
- Spread reads `String` objects and an array's length as the base branch
  does, and keeps its list of elements counted until the elements are the
  array's properties. A string's characters are counted only until the
  elements are reachable from the roots, so a collection does not count
  them twice.
2026-11-22 11:38:52 -08:00
dotCooCoo 8e093c9e14 Command palette: a translated plug-in is still found by its manifest name
A filter or live-effect plug-in whose name the UI language translates
shows the translation in the palette, and a search for the manifest's
own name finds it too. Export Text's test compares its rows with the
names the dialog shows, which for a plug-in with an English translation
differ from the manifest text that messages use.
2026-11-22 11:35:16 -08:00
dotCooCoo 23b6184c5b Recolor with Preset: reject a color group
ui.recolorDialog with preset: true and a group opened the preset dialog
and dropped the group, so OK recolored the art without rewriting the
group. That call is now an error. The params text and
docs/control-protocol.md say so.
2026-11-22 11:31:42 -08:00
dotCooCoo 977e896fd0 Plug-ins: File › Place keeps a named importer and its params for every file
- file.place with `importer` and `params` and `paths`, or with no file,
  opened the Place dialog with only the files, so its OK read them with the
  built-in reader. Each dialog entry now carries the importer and its
  params, from the paths given, the desktop pick and the web pick, and OK
  passes them to file.place and file.place.queue.
- On the web, each picked file carries its own pick's importer and params.
  Picked files with other ones, or that arrive while a Place dialog is open,
  wait for the next dialog.
- The Place dialog does not read the start of a PDF, .ai, EPS or PostScript
  file placed with an importer named to tell whether Link would place it as
  a document.
- A path placed or opened with `importer` named is refused from its size
  before any of it is read. Before, its first 64 KiB were read first.
- docs/plugins.md and docs/mcp.md say when the size check runs, that the
  web's File › Place reads the picked file in the browser, that File ›
  Place's filters leave out extensions a built-in format reads, and that a
  dropped file a built-in format reads goes to that format.
2026-11-22 11:31:23 -08:00
dotCooCoo d73d0c0f9b JavaScript: a yield reserves only the heap its saved frame takes
A yield reserved room for every finally entry on the interpreter, those
of the frames under the generator's included, and for the result it
hands back, while the saved frame keeps only its own operands and
entries. Under deep callers in finally blocks a yield could stop at the
heap limit with enough room for its frame. It now reserves what the
saved frame keeps.

The tests check the value a throw raises in a generator that has not
started, and the fuel each call of a completed generator's next takes
against a native method that takes none.

docs/mcp.md and docs/target-app-parity.md say that an engine a .js
script makes has Symbol and the iterators, and that one a .jsx script or
a source string makes does not. The parity entry no longer says that
spread is missing or that scripts call next() themselves.
2026-11-22 11:27:41 -08:00
dotCooCoo 1de14d2bdd Display Print Size: a floating window keeps its settled fit while a modal is open
A floating OS window whose view fits it and whose display changed
density while a dialog or other modal was open settled its zoom, but the
window kept the fit from before the change, so the next resize did not
fit the view again. The window now keeps the settled zoom and center as
its fit while a modal blocks it too.
2026-11-22 11:23:44 -08:00
dotCooCoo abc0872cd0 Plug-ins: a canvas context-menu command with parameters opens its own dialog
Choosing a plug-in command that has parameters from the canvas context
menu opened the generic parameter dialog, because its item carries the
selection's ids and its label ends with an ellipsis. Menu clicks on a
plug-in command now run the command, which opens the plug-in's dialog
for those objects.
2026-11-22 11:17:31 -08:00
dotCooCoo 787af19dfe Scripts: XMP item paths take no options, and alt-text needs a language on each item
- setProperty with an array item path, such as list[1], and any
  option throws that the value is not available yet instead of setting
  the item and leaving the option out.
- getLocalizedText and setLocalizedText throw that the array is not a
  language alternative array for an rdf:Alt with an item that has no
  xml:lang.

Tests: bad_arguments_and_unbuilt_members_throw in
crates/js/src/xmp_tests.rs.
2026-11-22 11:15:46 -08:00
ruchirguitar 2cc47a707e vectorcraft-metafile: format picture.rs 2026-11-23 00:44:19 +05:30
dotCooCoo da5344af2c Recolor with Preset: test that grays of different lightness get different tints
The 1 Color Job test now requires a strictly higher tint on the darker of
two grays for a linked ink, and different colors for a process swatch, so
a flat tint fails it. docs/ui-parity.md gets a Recolor with Preset item
and the M3 row in docs/roadmap.md names the preset flow.
2026-11-22 11:14:02 -08:00
dotCooCoo 185d79b820 Swatch libraries: only a numbered pattern swatch keeps its free library name
A library pattern swatch named after its pattern took the library
swatch's name whenever the document did not use it, even when its
pattern came in under another name. For an unnumbered name this changed
the existing result: adding a library "Tiles" to a document that has
another pattern "Tiles" without a swatch named the swatch "Tiles" while
it paints "Tiles 2". Only a numbered name, which the reservation keeps
for the library swatch, is now kept that way; an unnumbered one is named
after the pattern that comes in, as before.

docs/mcp.md is rewrapped where two lines were broken mid-paragraph, and
the progress line puts the Use Library Item sentence before the rules
that apply only to Add to Swatches.
2026-11-22 11:13:43 -08:00
dotCooCoo cf06887782 Plug-ins: importers at API level 4 open type, embedded images, layers and artboards
An importer whose manifest sets `api` 4 and lists `outputKinds` (any of
type, image, layer and artboard) may return point type (text, font
family and style, size, fill, transform), embedded RGBA images stored
as PNG, top-level layers with their names, visibility, lock and
objects, and named artboards that replace the one around the art.
Output of a kind the manifest doesn't list is refused naming the kind.

The host checks the whole output before it makes the document: limits
on layers (256), artboards (100), names (256 characters, no control or
text direction characters), text (1 MiB a type object, 16 MiB in all)
and pixels (16,384 a side, 32 MiB of RGBA in all, checked from the
sizes given before any base64 is decoded), and an image whose bytes
aren't 4 x width x height. One bad entry opens nothing and leaves the
open document as it was. Importers below level 4 read paths alone, as
before. The host's plug-in API level goes to 4.

Docs: docs/plugins.md, docs/gaps.md, docs/target-app-parity.md.
2026-11-22 11:13:38 -08:00
dotCooCoo 606157cc34 Scripts: XMPFile methods take only XMPFile objects, and x-default updates its matches
- XMPFile's methods refuse an object the XMPFile constructor did not
  make, so a plain object or one made from XMPFile.prototype with
  properties of the same names is not read or written as a file.
- setLocalizedText for x-default also changes the items that had the
  text of the x-default item.

Tests: a_script_cannot_change_the_state_of_an_xmp_file in
crates/engine/src/tests/script_xmp.rs and
localized_text_for_x_default_changes_the_items_that_matched_it in
crates/js/src/xmp_tests.rs.
2026-11-22 11:09:01 -08:00
dotCooCoo 2592dde6c8 Selection: a Cmd double-click after a tool switch is the new tool's
The double-click or triple-click that follows a lent Cmd-click went to
the tool lent to that press even after another tool or document was
chosen. The lent tool is now kept with the document and the tool it was
lent from, and a follow-up in another document or after a tool switch
goes to the active tool.
2026-11-22 11:07:03 -08:00
ruchirguitar edf449c379 chore: update craft-metafile rev to 6d02a9d79 2026-11-23 00:37:02 +05:30
dotCooCoo cc83f5ab63 Plug-ins: live effects set opacity, blending and effects on their pieces
A painted live effect whose manifest has "api": 3 and "appearanceOutput": true
may give each piece, and each fill and stroke it returns, an opacity from 0 to
1, a blending mode by its exact name and up to 16 built-in effect records (4,096
in one result). Rows take raster effects only, and the rows an effect on a fill
or stroke returns take no effects. 3D effects and plug-in effects, this one
included, are refused, so a returned effect never runs a plug-in.

The host checks each record as effect.apply checks its parameters: known keys,
the type of each default, documented ranges and the per-effect value checks. A
bad value refuses the whole result, naming the field, and that step draws its
input unchanged. A piece's geometry effects reshape it before the object's later
effects, which run on it once, and count against the geometry effects' budget.
The effect stays live and runs again when its source changes.

Docs: docs/plugins.md, docs/mcp.md (plugin.list), docs/target-app-parity.md.
2026-11-22 11:06:46 -08:00
dotCooCoo 2f465a09c3 Docs: ES2015 test262 counts include the tests that do not tokenize
The ES2015 subset now runs the tests whose sources the token reader
rejects, 151 more runs, so the evidence line gives 533 of 708 other runs
and lists the forms that the runs that do not parse use.
2026-11-22 11:03:57 -08:00
ruchirguitar e4df00ed5e Merge origin/main into refactor/metafile-pict-shared 2026-11-23 00:32:03 +05:30
dotCooCoo 6b8c10999d JavaScript: spread and default parameters stay within the heap limit
- Spreading an array checks the room in the result as each element is
  read, so a getter that shrinks an array of length 4294967295 gives the
  elements it reads. An array no getter reads, and any other object, is
  still checked against its length when spread begins.
- Spread counts each element's index name, and each character of a
  string, against the heap as it reads them.
- A function with default or rest parameters checks the heap again before
  its body's environment and declarations are made, since the parameters'
  values may have used the room the call reserved.
- Without the ES2015 option, a function that eval code declares on the
  global object closes over the global scope, so it sees the scripts'
  `let` and `const` names, as functions of global code do.
- With the ES2015 option, a global `var` whose name the global object
  only inherits gets its own property.
- The test262 ES2015 subset runs a test whose source does not tokenize,
  so the error counts as a failure instead of a skip.
2026-11-22 11:00:34 -08:00
dotCooCoo ece34c6ba7 Plug-ins: translated names keep their English text in messages and the heavy-budget prompt
- A choice's options are compared for repeats as dialogs show them, with
  control and bidirectional characters escaped, so a translation can no
  longer give one option the text another option's value shows as.
- Installing a heavy filter that asks for nothing else now shows its ID
  and file SHA-256, and the manifest's own name when the prompt names it
  by a translation.
- Shortcut conflict messages name a plug-in's filter and commands by the
  manifest's own text, as they name every other entry in English, while
  Keyboard Shortcuts still lists them in the UI language.
- Keyboard Shortcuts builds its list again when the UI language changed
  since it was last open.

Docs: docs/plugins.md, ui.installPlugin params.
2026-11-22 10:51:53 -08:00
dotCooCoo e6cf6a7dbb Docs: a batch forgets its filter only when it changes that same plug-in
docs/plugins.md said a batch step does not count when a later step
installs, removes or reloads any plug-in. The step is dropped only when
a later step installs or removes that same plug-in, or reloads
plug-ins; installing or removing another plug-in keeps it.
2026-11-22 10:51:08 -08:00
dotCooCoo 1596380f23 Merge #9079 into feat/js-es2020-optional-chaining-nullish 2026-11-22 10:48:32 -08:00
dotCooCoo 7bd49975d0 Display Print Size: a zoom set as a percentage keeps it at the first reading
A floating window whose view was given a zoom with View > Zoom (or
view.setZoom) and whose recorded fit matched that zoom counted the zoom
as a fit at its display's first reading, so the percentage changed with
the display's density. Only a view whose zoom is still the zoom a fit
gave it now counts from the reading without a change of zoom.
2026-11-22 10:47:19 -08:00
dotCooCoo 72c4875990 Scripts: a script cannot change the state an XMPFile keeps
An XMPFile kept its path, open flags and pending packet in writable,
configurable properties, so a script could assign a packet to a file
opened for reading and closeFile wrote it without checking the update
flag or reading the packet.

- The properties holding an XMPFile's state are not writable,
  enumerable or configurable, and the pending packet is one of them from
  the start.
- The XMPMeta docs say that only the namespaces a packet's names use
  are registered, which is what reading a packet does.

Test: a_script_cannot_change_the_state_of_an_xmp_file in
crates/engine/src/tests/script_xmp.rs. Docs: docs/mcp.md.
2026-11-22 10:44:46 -08:00
dotCooCoo b8c37560fe Scripts: queued ScriptUI events and typed texts survive the growth question and added controls
When a handler takes the run past its growth limit, the question to
continue now opens over the ScriptUI dialog, and Continue shows the
dialog again with the events the script has not had yet and the text
typed in its fields.

A queued click or change keeps where its control sits in the dialog,
and a typed text keeps where its field sits, so both reach the same
control after a handler adds controls before it.
2026-11-22 10:41:30 -08:00
dotCooCoo cfbb1cdf67 Selection: pie widgets hide while Cmd lends Direct Selection
With a shape tool active and Direct Selection chosen last, Cmd held
lends Direct Selection, which does not press a live ellipse's pie
widgets. The canvas now draws them for a shape tool only while that
tool is the one shown, as the bounding box already does.
2026-11-22 10:40:07 -08:00
dotCooCoo 6c37e6a071 Plug-ins: plugin.info's manifest gives a command's context menus
A command's `menu` in the manifest that `plugin.info` gives now carries its `context` list next to
`path` and `after`, and is present for a command listed only in context menus, as `plugin.list`
already reports it.
2026-11-22 10:32:18 -08:00
dotCooCoo 33c5835722 Plug-ins: a command's manifest can list it in the canvas and Layers panel context menus
At plug-in API level 2 a command's `menu` may give `context`: a list of
`{"menu": "canvas" | "layers", "when"?: condition}`, with or without a
`path`. The canvas context menu lists the command while objects are
selected, and the menu of a Layers panel layer, group or object row
lists it too, in a Plug-ins submenu that holds a submenu named after
each plug-in. `when` is one of selection, oneObject, typeObject and
layerRow (Layers panel only); while it fails the item is dimmed.

Choosing the item runs `plugin.<id>.<command>` with the selection, or
with the clicked or highlighted rows whatever is selected, as `ids`, as
one undo step. A command with parameters opens its dialog for those
objects first, and its preview and OK run on them.

A `context` that is not a list, an entry of the wrong shape, an unknown
menu or condition, layerRow for the canvas, a menu named twice and more
than 8 commands of one plug-in in one context menu are refused when the
module is installed, and the error names the command and the key.
`plugin.list` gives the command's `menu.context`. The three new
messages have an `@msg` row in each complete-message catalog.
2026-11-22 10:32:17 -08:00
ruchirguitar 946f33c878 metafile: address CodeRabbit feedback on truncation warnings, patterns, and region shapes 2026-11-23 00:00:42 +05:30
Dylan M. Taylor bcaeb29737 Merge pull request #9112 from storytold/feat/778-use-shared-metafile-writers
metafile: use shared EMF and WMF writers
2026-11-22 13:16:18 -05:00