On the web, a plug-in being installed ran its start function and
vc_manifest on the page, and a filter ran on the page for its whole
budget, so a slow or looping module froze the tab for up to a minute
(five for a heavy filter), and Cancel could not stop it.
- A second wasm, apps/vectorcraft-plugin-worker, is built by Trunk as a
worker (data-type="worker" with data-loader-shim in index.html). The
page starts one worker for each check and each run, and terminates it
on Cancel, when the document or the plug-in changes, and 5 s past the
run's time budget, also while a dialog is open. Each worker's inbox
holds its latest progress report and at most 8 other messages.
- crates/plugins/src/worker.rs holds the messages and the worker's
side. Runs can pause at each vc_call (Plugin::begin_run and
resume_run), which the desktop's synchronous calls now use too.
- Install Plug-in... and File > Open check a module in a worker first;
the page then loads it with Plugin::load_checked, which runs none of
its code.
- A filter that calls commands sends each call to the page. The session
holds the run's undo step open and refuses other edits with "a
plug-in is running: cancel it or wait for it to finish" until the run
ends; the progress window shows at once with Cancel only.
- On the web every filter and plug-in command started from the menus
or their dialogs runs in a worker, and the dialogs have no Preview.
A plug-in command applies as itself, one undo step named after it.
Commands that automation runs directly still run where they are
called and return their result.
- packaging/web: the worker files carry no hash, so the sample cache
rules make only the hashed app files immutable.
Add to Swatches now passes the clipboard importer the library's numbered
swatch names that a picked pattern's swatches and patterns can come in
under. A swatch or pattern that the import brings under a numbered name
skips those names. This replaces the placeholder and copy swatches that
held the names around the import. Paste and Use Library Item pass none
and number swatches as before.
- A tint or gradient of a numbered library name that the art brings,
such as a tint "Ink 2" of "Ink", keeps that name. Before, in a
document with another "Ink", the art's "Ink" came in as "Ink 2", the
tint as "Ink 2 2", and adding the library's "Ink 2" next added it
again.
- A swatch of a numbered library name that the document does not use
comes in under that name instead of as the document's identical copy
("Ink 2 2"). A copy of it that the import already brought is not
reused for another library color of the same paint.
- Of two library swatches with one numbered name, the first one in the
library keeps the name when the other is a swatch the art brings or a
pattern swatch.
- A pattern that the art is painted with, and its swatch, skip the
library's names when they come in numbered. A pattern of a numbered
name whose library swatch places it otherwise keeps its name, and the
swatch that comes with it gets another, so adding the library swatch
next finds its name free.
- A pattern swatch's numbered name skips the library's names, as a
color's does, and a pattern swatch takes the library swatch's name
when it is free, also when its pattern is reused.
- A pattern pasted into the document is still found: when skipping the
names would add the pattern again, or would reuse it only by merging
colors, an import that does not skip them is used if it reuses the
pasted pattern and gives none of those names to another swatch.
- The paint and kind check on the colors a pattern's art brings or
takes has a test: a library whose spot "Ink" shares its name with a
global "Ink" in a color group, so that the art brings both.
docs/mcp.md is rewrapped and says that a library color is numbered
beside a document color of the same name and paint of another kind
(process, global or spot), not only beside a process color. The params
text of swatch.library.add, docs/mcp.md and the docs/target-app-parity.md
line describe these rules and name their tests.
- Overprint Preview, Separations Preview and printed separations show a
colorized image knocking out when it has any visible effect of its own
that paints colors (a shadow, a glow, a raster effect, a color
adjustment or a plug-in effect). Only the geometry effects leave it
overprinting; a test keeps that list equal to the geometry effects of
the effect catalog.
- EPS export writes an overprinting colorized image in a gray color as
black ink alone (a DeviceN image at Level 3, a Separation image at
Level 2), so it keeps the cyan, magenta and yellow below.
- On an EPS separation plate, an overprinting image without the plate's
ink is left out only while overprints are preserved.
- Reading a legacy .ai file, a colorized image mask takes the fill
overprint in force, as it takes the fill color: its own O, or the last
O before it.
White now follows the rule main has for white fills: with Discard White
Overprint on, PDF export, the previews and printed separations knock a
white color out, and EPS export turns overprinting on as it does for
fills and strokes. The changes to EPS output for white fills and to white
spot inks are no longer part of this change.
- The previews and printed separations treat an image with a visible
drop shadow, outer glow or Gaussian blur of its own as knocking out, so
the effect is not darkened or hidden with the image.
- Legacy .ai reading takes an image mask's fill overprint only from an O
written after the previous object, not from the path before it.
- A fill of None, which takes the color off, also turns its overprint off.
- On a PostScript separation plate, an overprinting image whose color puts
none of the plate's ink down is left out while a fill or stroke of it
still draws, and an image that does not overprint as a whole knocks out.
- PDF export writes an overprinting gray color as an image of black ink
alone, so the other process inks below it stay.
The Graphics section's Fonts setting was stored but no print writer read
it: PostScript output always drew type as glyph outlines.
- Subset (the default) defines, in each page's setup, Type 3 fonts drawn
from the faces' outlines that hold only the glyphs that page shows.
- Complete defines every glyph of each face the job shows once, in the
job's setup, and fails with an error before writing anything when the
definitions would take more than 64 MB.
- None sends no font program: each page asks for the printer's copy by
its PostScript name (%%DocumentNeededResources, %%IncludeResource) and
names each glyph in an encoding, with a note naming each font.
- Type in a gradient or pattern, color glyphs, glyphs bent along a
curved path, ruby and, under None, glyphs without names stay outlines.
So does type in a font whose license forbids embedding, or, under
Subset, allows only whole embedding, with a warning.
- Only the sheets the print order prints are drawn.
- PDF print still embeds font subsets; None and Complete add a note
saying so, in the print and its preview.
Docs: docs/mcp.md, the print.setup params text, docs/target-app-parity.md.
A toolbar made with Window > Toolbars > New Toolbar held tools only. Its
Add Tool... menu now ends in an Add Command submenu that searches every
Command Palette result other than a tool (menu commands, plug-in
commands, effects and panels); a pick adds a button after the tools, and
Remove Command in the same menu lists the buttons by their full names
and takes one off.
- A button shows its command's label without the ellipsis, on up to two
lines, and its full name and shortcut on hover. A click runs what the
command's menu item runs, so a command whose item ends in an ellipsis
opens its dialog; while the item is dimmed, the button is dimmed and a
click runs nothing and the status line says why.
- Each command is asked whether it can run once per app state, at most
12 in a frame, and again on a click or a key press.
- The button's context menu has Move Up, Move Down and Remove from
Toolbar.
- The buttons are saved with the toolbar (`commands`, left out when
empty, so older layouts load unchanged), and Manage Toolbars' copy keeps
them. A command that is gone, such as an uninstalled plug-in's, keeps
its button, dimmed and labeled with its id, until it comes back or is
removed.
- `toolbar.addCommand {command, toolbar, at?}` adds or moves a button,
`toolbar.removeCommand {command, toolbar}` takes one off, and
`window.toolbar.list` reports `commands`. `toolbar.reset` with
`toolbar` clears them along with the tools. A UI command that fails
without params, such as `toolbar.addTool`, is not listed and cannot be
added.
Not done: dragging a menu item or a Command Palette result onto a
toolbar, an Add to Toolbar item in the palette, dragging command buttons
to reorder or remove them, and command icons. Command buttons are
VectorCraft's own.
Docs: docs/control-protocol.md, docs/mcp.md, docs/target-app-parity.md.
- effect.apply with some Pathfinder Options in params journals all three
options the effect used. The journal entry used to keep only the ones
given, so a replay took the others from the preferences at that time.
The journal now merges an object a command resolved with the object
the call gave, key by key.
- A Pathfinder effect's stored precision that is not a number (true,
false, "1abc") evaluates and scales as the 0.01 pt default. It used
to read true as 1 pt, false as the 0.001 pt bound and "1abc" as 1 pt.
Commands still refuse such a value with an error.
- Outline, the panel operation and the effect, applies Precision. Its
tolerance for crossings that count as one point, and for coincident
edges, is multiplied by precision / 0.01, so the default leaves the
output unchanged.
- Pathfinder Options' precision range is the Pathfinder effects' range
constant rather than a copy of it.
Docs: params text, docs/mcp.md, docs/target-app-parity.md.
An object filter may be a .vcplugin manifest with "runtime": "js" and the
.js file its script key names in the same folder. plugin.install {path},
plugin.inspect, plugin.reload and File > Open read the two together; the
host keeps them as one JSON object (the manifest with the script's text in
source), which plugin.install {dataBase64} also takes and which the grant's
SHA-256 covers.
Each run gets a new interpreter with no file, command or clock access, the
filter's instruction and time budgets, and a heap within the plug-in's
memory cap. run(input, params) returns the output a module returns, checked
the same way, and the document changes as one undo step. Syntax errors,
thrown errors, limits and a missing result name the plug-in and its script,
with the line and column when the interpreter reports them. A manifest
without script, an unsafe script name or a script over 8 MiB is refused
before the script is read.
Docs: docs/plugins.md (JavaScript filters), docs/mcp.md, progress line.
Part of #2193.
setProperty and the other property members took a path in the RDF or
XML namespace, and serialize() wrote a packet that XMPMeta could not
read back. Such a path now throws "... is not a valid property name".
Test: rdf_and_xml_namespaces_hold_no_properties in
crates/js/src/xmp_tests.rs.
A batch that ran several filters remembered only the last one, so the
earlier filters' dialogs opened with older parameters or their defaults.
Each plugin.run step of a command.batch or Action Batch is now noted in
the order it ran: the last one stays the filter Apply Last Filter runs,
and a filter that ran twice keeps its newer parameters.
A later install, removal or reload drops a filter's parameters only when
it may have changed that filter: a removal of its id, an install that
reports its id (or whose result is unknown), or a reload. Installing
another plug-in later in the batch keeps them.
- A block function whose name a function of an enclosing block declares is
not assigned to the variable of that name.
- A labelled function in a block is made when the block is entered, and the
parser checks it against the `let` and `const` names of its statement list.
- A function standing alone as an `if` branch gets a block of its own.
- Spread reads a `String` object by code point, and reads an array's length
again before each element.
- A `var` or function declared on the global object stops a later `let` or
`const` of its name until its property is deleted, and a `var` the global
object cannot take is a `TypeError` before anything is declared.
- A call keeps its callee, receiver and arguments reachable until its frame
holds them, and global and eval code keep their environment and their heap
charge until their frame is pushed.
- Template objects are released when no code that can run holds their sites,
even when one code has several sites.
- `Realm::set_es2015` during a run applies once the run ends.
- A template piece that spans lines does not let a preprocessor line start
after it on its last line.
- EPS export writes an overprinting colorized image in a CMYK color in
only the process inks the color puts down: one DeviceN image at
Level 3, one Separation image per ink at Level 2. A pass turned away
at the page limit takes back the passes before it, and the encoding
cache keeps overprinting and plain encodings apart.
- A fill or stroke of a colorized image counts as drawing only with a
visible Convert to Shape or Outline Object (one shared list with the
effects crate), so another effect, such as Offset Path, no longer
keeps the image from overprinting as a whole.
- Flattening without Preserve Overprints, and clearing overprints on
PDF import and printing, also clear the overprint an image keeps
after its color is removed, so a color given later knocks out.
Docs: docs/mcp.md (Overprint), docs/target-app-parity.md.
- The contrast lines count a narrow band's crossings among a cell's
crossings where no band on the next line joins it, so a band that
widens past the samples is no longer cut across.
- The lines show where a pick passes when the fill or stroke is None or
a pattern (`contrast_pick_backdrop`), and are hidden while Alt sends
a pick to the other proxy.
- The Background chip shows the background the ratio uses, so a pinned
100 % K shows as black with a rich black Appearance of Black.
- `color.contrast` with "below" is an error when a blend mode other
than Normal mixes the color with art that is not one color where its
level reads it; a blend inside an isolating group over such art still
answers.
- `wcag::closest_passing`, `color.contrast`'s params text and
docs/mcp.md say that a nearer passing color can be missed when the
passing lightnesses fall in more than one stretch, that a null fix
shows no chip, and that a null `contrastBackground` sets Behind
Selection.
- The wide-gamut contrast test restores the color settings through
`restored_settings()`.
The Smart Pen Tool joins the Pen group in both shipped toolbars, after
the Quick Pen, and stays in Object › Plug-ins › Smart Pen. The All Tools
drawer lists it once, under Draw, and Edit › Keyboard Shortcuts › Tools
lists it once. It has no default shortcut, and the Pen keeps P. A
toolbar the user already edited keeps its saved layout; Reset Toolbar
adds the tool.
A group torn off the Tools panel's toolbar now shows the tools of the
current layout's group that starts with the same tool, after toolbar
edits, Reset Toolbar, a switch between Basic and Advanced, loading the
preferences and switching workspaces, as groups torn off a toolbar made
with New Toolbar already did. A strip with no such group keeps its
tools.
Part of #8326
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.
closeFile() writes a sidecar through a new temporary file and renames it
over the sidecar, so a 0600 sidecar became 0644 under a 022 umask. The
temporary file now takes the sidecar's permission bits before the
rename, as File.copy does for its target.
Test: a_replaced_sidecar_keeps_its_permissions (Unix only) in
crates/engine/src/tests/script_xmp.rs.
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.
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.
%TypedArray%.prototype.toLocaleString invokes each element's method
(Invoke, section 7.3.18), so a getter for toLocaleString on
Number.prototype now gets the number as this, as the call already does.
Array.prototype.toLocaleString keeps the element's object for both.
`(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.
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.
%TypedArray%.from and of make their result with AllocateTypedArray in
the 6th edition (sections 22.2.2.1.1, 22.2.2.2 and 22.2.1.2.1), which
looks for a typed array constructor on the receiver's prototype chain
and throws a TypeError when it finds none. A function that returns a
typed array, or a bound typed array constructor, is refused again
instead of being called. Later editions call the receiver through
TypedArrayCreate.
Resolving a fill's outlines snaps points within the sweep tolerance
together, and that tolerance grows with the shape's size. For a shape
large enough that the tolerance reaches the fine measure's error, the
outline could collapse and the shape was reported as thinner than the
width (a 1e12 by 0.0011 pt rectangle at 0.001 pt was removed although
a 0.001 pt circle fits inside it). Such a shape is now not measured and
is left as it is.
- A collection that removes the holes of a Map or Set releases the room
its entries and index held, and a WeakMap or WeakSet whose table has
far more room than entries after pruning releases the extra room, so
the heap estimate covers what the tables still hold.
- %TypedArray%.from throws a TypeError for a receiver that is not a
constructor before it reads the source (section 22.2.2.1 step 2).
- %TypedArray%.from and of make their result with any constructor they
are called on (TypedArrayCreate, section 22.2.4.6): the result must be
a typed array with room for every element, or the call is a TypeError.
- %TypedArray%.prototype.toLocaleString calls each element's method on
the number itself (section 22.2.3.27); Array.prototype.toLocaleString
still calls it on the element's object.
- ArrayBuffer.prototype.slice and the typed array map, filter, slice and
subarray read the receiver's constructor where SpeciesConstructor does
(section 7.3.20): a getter's error propagates, and a value that is
neither undefined nor an object is a TypeError. filter reads it before
its callback runs.
- sort charges a unit of fuel for each element it reads and each it
writes back, before it starts.
- set between typed arrays on different buffers writes each element as
it reads it, without holding a copy of the source.
- The binary data module comment says a constructor reads a primitive
string as a length and from reads it by code point, and a prototype
test puts its value at the index it checks.
The test clicks into an edit field, types a text longer than 16 KiB
and clicks OK with egui pointer events. It checks that the text stays
in the field, that nothing is queued for the script, that the status
bar shows the error and that the script still waits.
A property holding text next to its rdf:Bag, rdf:Seq or rdf:Alt was
read as an array of simple items, and serialize() dropped the text.
Such a property is now kept as the XML it was written in.
Test: text_beside_an_array_is_kept in crates/js/src/xmp_tests.rs.
- Spread keeps its list of elements counted against the heap limit until
the elements are the array's properties, so a list and an array that
only fit one at a time end the run with the heap limit.
- A script stopped at the fuel or heap limit while its functions and
variables are declared removes its `let` and `const` names from the
global scope, so running it again in the same realm does not throw a
redeclaration error. A script that throws once it runs keeps them.
- A function whose only non-simple parameter is a rest parameter keeps
its parameters and body in one environment (ECMA-262 2015 section
9.2.12), so `var r` in the body or in direct eval is the parameter.
Its `arguments` object still does not follow the parameters.
- 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.
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.
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.
A structure or qualifier whose element or attribute used a prefix that
nothing declared was read and then serialized with the prefix unbound.
Such a packet is now refused as not well-formed XMP.
Test: namespaces_inside_kept_values_are_registered in
crates/js/src/xmp_tests.rs.
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.
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.
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.
A namespace declared only inside a structure, an array of structures or
on a qualifier was not registered when the packet was read, so
XMPMeta.getNamespacePrefix gave undefined for it. Reading a value that
is kept as it was written now registers the namespaces its element and
attribute names use, other than RDF and XML.
Test: namespaces_inside_kept_values_are_registered in
crates/js/src/xmp_tests.rs.
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.
A function declaration standing alone as an if branch outside strict
mode code is in a block of its own (Annex B.3.4), so a function of the
same name in the block around the if keeps it from assigning the outer
variable: var f; { function f() { return 1; } if (true) function f()
{ return 2; } } f() gives 1.
Global and eval code stays in the collector's roots while its
declarations are made, so a collection in that time keeps the code's
heap charge.
A plug-in manifest may give `translations`, keyed by language code, with
the plug-in's name, its commands' labels, its parameters' labels, help and
choice labels, and its group headings. Menus, plug-in dialogs, the
Appearance panel, Keyboard Shortcuts, the command palette and Last Effect
show the text for the UI language, then for the language without its
region (pt-br, then pt), then the manifest's own text. Command ids,
parameter names, choice values, plugin.list and errors keep the
manifest's own text. The install approval asks with the name in the UI
language and shows the manifest's own name under the ID when they differ.
Installing refuses malformed or repeated language codes, more than 16
languages, empty or over-long text, control, direction and line-separator
characters, keys the manifest does not declare, and two choices with the
same label after fallback, with an error that names the key. The 64 KiB
manifest limit covers the translations.
Filter and importer menu items, plug-in dialog text and the heavy-filter
refusal now escape bidirectional characters, and Keyboard Shortcuts and
the palette no longer put a plug-in's own name or command label through
the app's catalogs.
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.
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.
- setLocalizedText reads its generic language argument. With no item in
the specific language and exactly one item in the generic language
or a variant of it, that item changes, as the XMP Toolkit SDK's
SetLocalizedText does (XMPCore/source/XMPMeta-GetSet.cpp); with
several, the specific language is added.
- A packet read from rdf:RDF alone could hold a value nested 64
elements deep that serialize() then wrote under x:xmpmeta, 65 deep,
so the written packet did not read back. A value is now measured as
deep as serialize() writes it, and one past 64 elements throws when
the packet is read.
Tests: localized_text_updates_a_single_generic_language_item and
deeply_nested_values_read_back_after_serializing in
crates/js/src/xmp_tests.rs. Docs: docs/mcp.md.
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.
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.
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.