- Document.selection and PageItem.selected refuse a path made into a
guide while Lock Guides is on, instead of passing the check and then
selecting nothing. The locked artboards are measured once per
assignment.
- An edit whose command selects the objects it changes puts the current
layer and the highlighted Layers panel rows back as they were.
layer.setCurrent takes keepRows, which leaves the highlighted rows as
they are.
- move on an object on a locked artboard throws Cannot move, as editable
reads false for it. duplicate, with or without a relative object, on a
hidden or locked object or an object on a locked artboard throws
Cannot duplicate and makes no copy.
- When move takes the last path out of a compound path, the empty
compound path is deleted in the same undo step.
- addDocument writes each warning from reading the profile's file to the
Script Console as addDocument: <warning>, and a previewMode of
PixelPreview throws an error that says it is not available yet.
A command run from a panel, a menu or an automation client while a tool
drag was open ran inside the drag. With Real-time Drawing on, the drag's
next move put the document back to where the drag began and dropped the
command's edit, and Escape dropped it too. With Real-time Drawing off,
the release lost what the drag drew or moved.
Such a command now runs on the document without the drag's preview and
records its own undo step and journal entry. The drag then continues
from the command's result: with Real-time Drawing on, its preview is
applied again at once. The release records the drag's step after the
command's, Undo takes back the drag first and the command next, and
Escape cancels only the drag. The drag acts on the objects it started
with, so a selection the command makes does not change what it moves,
and the fill and stroke proxies keep showing those objects' paints.
Objects the command deletes, hides or locks are left out of the drag.
A change the command makes to the current layer or to the new-art paints
stays when the drag ends or is canceled. When the command deletes the
art being dragged, the drag records no step. A warning or an error from
the preview applied again goes to the command's result.
Commands that already kept the drag as a step first still do (Undo,
Redo, command.batch, swatch.renameGroup, edit.newDocumentFromState and
the others that call settle_interaction). Typing in progress is still
kept as a step of its own first. A command run during a Quick Pen press,
object.transform with copy during an Alt-drag, and a command run during
a dialog's or a panel's preview still run inside the interaction.
Docs: docs/mcp.md (undo / redo row), docs/target-app-parity.md.
When a frame holds the release of an earlier press, then a new press and
its release, the new press now ends at the release after it: its Up,
the pan or turn of the view, the modifiers, Space and Backtick all come
from that release, and a stroke's moves stop there. Before, they came
from the first release in the frame, which belongs to the earlier press.
With Animated Zoom on, a Zoom tool press that moves more than the scrub
slop and goes up in the same frame now zooms with the pointer about the
press, as it does over several frames, instead of stepping as a click.
Only the moves before the button-up count; a press that stays within
the slop still steps.
- A read-only image entry may leave out `opacity`, which hosts before API
level 3 don't give, so a level 2 filter that rebuilds an image entry from
the fields it knows still matches.
- A `text.paragraphs` list returned as it was given next to changed
`text.runs` is checked against the new paragraphs: a count that no longer
matches is refused instead of being dropped.
- Written runs hold at most 4,096 paragraphs, the limit for runs and for
the paragraphs a filter is given.
- A fill or stroke in a written run's style with a key its `type` doesn't
read (`tintt`) is refused with the `unknown key` error.
- The font family limit counts the name as given, not the trimmed name.
- The run styles of a type object are indexed once per object, not
compared with every run's style.
- Character styles loaded from another document are skipped when their
tracking, kerning, rotation, miter limit, dashes, Small Caps or variable
font axes are out of range, as `charStyle.new` checks them.
- The plug-in command test's Size command adds a square, since an output
that changes nothing records no undo step.
Docs: docs/plugins.md, docs/mcp.md, plugin.run params text.
`tmp_dir` in `crates/engine/tests/script_startup.rs` now returns
`vectorcraft_testkit::TempDir`, which deletes the folder when the test
ends, also after a failed assertion. Before, every run left its folders
under the system temporary directory.
effect.setParams named its step after the edited effect when the targets
that have an effect at the index all shared one, so with Feather on one
object and no effect on the other the step still recorded Feather. The
step now records the effect only when every target has one at the index
and all are the same. The target that has the effect is still edited.
The i18n menu-label test helper now reads an Effect menu item's label
through menus::effect_item_label, the function the menus draw it with.
Without a change count, a Copy or Cut whose formats could not be
written was kept for as long as the clipboard held the same text as at
the failure. When another app copied other text and later put the
older text back, Paste took the copied art again. The record of the
failed write is now dropped once a different change count, or
different readable text, is seen on the clipboard.
The Edit menu's Paste into a focused text field, after a failed Copy
whose formats have no text, found no text and fell through to the
canvas Paste, which pasted the copied art. The field now gets an empty
paste and takes nothing.
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.
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.
- 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.
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.
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.
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.
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.
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.
- 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.
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.
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.
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.
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.
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.
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.
- 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.
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.
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.
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.
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.
- 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.
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 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