A twist cut a beveled edge at points of the art's curve itself, while the
inset cap's edge eases its corners' miter offsets across the whole edge.
Where the art meets another edge at a sharp angle, the pieces next to the
cap drew a different curve from the cap's, leaving a gap of up to about
1.5 pt between them.
Each cut corner now takes the edge's corner offsets, eased across the
edge as the cap's edge eases them, and each piece follows the whole
edge's curve, so the pieces draw the cap's edge within the cap's
sampling tolerance, with and without perspective.
The tiny-circle test now also requires the solids to keep at least one
curve before it checks their control points.
When several refit points tie for nearest to a closed path's old start,
the earliest-along-the-path tie rule now places each distinct point on
the old path once, so many segments meeting at one point no longer
search every old segment once each. The tie rule is unchanged. Also
"the same way around" in the docs.
The gate now records each path a script's command reads only because it led
to a file the open documents link to. A document whose file is such a path is
taken out of the open documents' files for the rest of the run, without
looking at where the path leads now or what the script may read now. Before,
the gate decided that again for each command from the path's current target,
so a path pointed at another file by a link, or a read grant given later,
let the run read and write through the document.
A Pressure or Stylus Wheel stroke whose samples all lie at one point
gave path.blob a spine with no length, and the command failed with
"empty brush stroke". It now paints one dab sized from the first
sample's reading, as a single point does.
When Size changes from Fixed to Pressure or Stylus Wheel during a drag,
the release sends no pressure or wheel for the stroke, so it paints at
the Size. The tip outline now reads the pressure and the pen pose only
when the release reads them, for the Blob Brush and the Eraser.
The Tangent Circle Tool's options dialog and tool.setOption take five more
options, kept with the preferences: center and radii show or hide the
preview's center cross and the lines to the two touch points, color sets
the color of the circle, the cross, the lines and the no-circle note (red,
blue, magenta, green, black or gray), snapTolerance sets how near (screen
pixels, 0 to 25) the pointer picks a segment, and snapWithoutGuides keeps
that reach with Smart Guides off. With Smart Guides on, their Snapping
Tolerance counts when it is larger; with snapping off a segment is picked
within the Selection Tolerance. The help page lists these options:
https://docs.astutegraphics.com/subscribe/tangent-circle-tool
The defaults (both shown, red, 3 px, snapping on) are VectorCraft's own.
With Smart Guides on, the default reach is now their Snapping Tolerance
(4 px) instead of the 3 px Selection Tolerance.
Of the segments within reach the tool now picks the nearest one, not the
first one found, so a larger tolerance does not pick a farther path over
a nearer one. tool.setOption gives an error for an unknown color, a
tolerance outside its range or a value of the wrong type, and sets none
of the values.
Docs: docs/mcp.md, docs/target-app-parity.md, docs/ui-parity.md.
docs/mcp.md and the tool's module comment say that unchecking Snap
with Smart Guides Off does not change the reach when Selection &
Anchor Display's Tolerance is as large as it.
Two test comments now say the cubic's own curvature at the end of a
quarter circle is smaller than the circle's, as their assertions
check.
Smooth Tool Options gets a Smoothness setting under Fidelity, from 0% to
100%, where a higher value leaves a smoother path, as the help page
describes the setting:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=164
- path.smoothRegion takes an optional `smoothness` (0 to 100, 50 when
left out). It scales the spread of the averaging done before the
refit in proportion: none at 0, today's spread at 50, twice it at
100. A value outside 0 to 100 is an error and changes nothing.
- The Smooth tool keeps the option with its preferences and sends it
with each drag; Alt smoothing with the Pencil, Paintbrush and Blob
Brush uses it, as it already uses the Smooth tool's Fidelity.
tool.setOption refuses a value outside 0 to 100.
- The default and the way the percentage scales the smoothing are
VectorCraft's own; the default keeps today's strength.
Docs: docs/mcp.md, docs/target-app-parity.md.
Simplify and Smooth refit a closed path from its first corner and kept
that order, so the path's first anchor moved and its dashes started
somewhere else. A refit now starts at the old first anchor when it keeps
one there, otherwise at a new anchor where the refit passes nearest that
point while the result still has fewer anchors than the path had, and
otherwise at the refit's nearest anchor. Its direction stays the same.
A direct-selected run across the start follows the same rule; before,
the path started at the run's end anchor.
The Smooth tool's start_nearest moves into vectorcraft-pathops, and both
commands call it with the limit on anchor count above.
docs/control-protocol.md said every settings value that isn't an object
is an error. A null is set as it is, and the save takes that section from
the preset; the docs now say so.
A settings object set after that section was null took the options it
leaves out from the default settings, so setting only marks.weight turned
off the preset's trim marks. They now come from Save PDF's preset, as the
save takes them. The test covers both.
Extrude & Bevel and Inflate drew several edges along the art's curves as
straight segments with a corner at every sample point, so Object > Expand
Appearance gave them corner anchors:
- The edges between two bevel steps and between two wall slices had no
outline. Every band now gets the outline of both its rings, and the two
faces that share a ring draw the same curves.
- A twist cut a wall's edge at points on the chord between two samples.
The cut corners now lie on the art's curve, and each piece follows its
own part of the curve, so the wall meets the cap along the cap's curve.
- Inflate's flat back, its side walls, and the cells of its front and
puffed back along the outline were polygons. They now follow the art's
curves, the cells within the sampling tolerance. The search for the
cells' edges along the outline stops after 4,194,304 edges per solid
(VectorCraft's own limit); the rest stay straight.
Visibility, depth order and face counts are still worked out on the
sampled polygons. Tests in crates/three-d/src/solid/tests_curves.rs.
Blob Brush Tool Options' Size menu offers Stylus Wheel beside Fixed and
Pressure. With it the brush is Size - Variation wide at one end of an
airbrush pen's finger wheel travel and Size + Variation at the other, in
a drag, a click and with a tip that is not round. A point without a wheel
counts as half way, and a mouse stroke keeps the Size.
- path.blob takes sizeMode "stylusWheel" with the wheel seventh in each
point, and its error for an unknown sizeMode lists the three modes.
- The tool keeps the mode, records the wheel, and sends it on release.
While the Blob Brush paints, its tip outline takes the size the pen
gives (on Pressure too), and keeps the set angle and roundness. A wheel
turned with the pen held in place updates the last sample.
- The Eraser's Size already offered Stylus Wheel and is unchanged.
Docs: docs/mcp.md, docs/target-app-parity.md.
A release still looks up every anchor and curved segment of a path in
the drag's grid, so that work grows with the path's length. The line
now says the grid reduces the stretch measures, and that the 7,533 and
19,899,801 figures count stretch measures.
The Parametric Shape panel's W and H fields resized a shape about its
center whatever point the reference point locator showed, while the
Transform panel and the Control bar keep that point in place.
- addon.pathtools.shape.set takes `reference` (0 to 8; any other value
is an error). With it and no `center`, the point of the bounding box
that object.setBounds measures (rotated with rotated objects, and as
drawn with Use Preview Bounds) keeps its place. Without it the center
stays, as before.
- The panel's W and H pass the locator's point.
- A shape set by id and not selected that the edit would take past the
coordinate limit is refused, as object.setLiveShape refuses one.
- The result's `shape` is read back after the edit, and is null when
snapping to the pixel grid left a plain path.
Docs: docs/mcp.md, docs/target-app-parity.md.
Bulgarian joins COMPLETE_MESSAGES. bg.tsv gets 987 new message rows
(982 @msg, 5 @msgplural) for the keys the other complete-message
languages translate, plus the liquify and variable context rows the
list tests read.
Nine existing Bulgarian @msg rows began with a space, so those status
messages were shown with a leading space. They are fixed, and the new
test message_translations_keep_their_english_edges checks every
catalog for a translation that adds whitespace at either end.
Docs: docs/localization-parity.md, docs/target-app-parity.md and
docs/development.md list Bulgarian with the other complete-message
languages.
A command a script runs with vc.run could read only the script's own places
and the open documents' own files, so an export, save, print or package of
a document whose linked images or placed files sit elsewhere fell back to
the saved previews.
The script gate now also reads, and never writes, the files that the
documents open when the run began link to: linked images, placed files, the
plate files of a DCS image and the images their data sets name. The list is
taken once, at the run's first vc.run, from those documents as they were
when the run began, and holds real paths, so a path that leads to another
file later is refused. A link the script adds or re-points, a path it names
itself and a document it opens give it no further file to read, a document
it opens from one of these files is not saved over it, and the automation
read roots and the name and traversal rules still apply first.
`ui.dialog.set` replaced a Save PDF settings object (`bleed`, `marks`,
`compression` and the others) with the value given. Options left out then
showed the default settings in the dialog, while Save PDF took them from
the chosen preset. With the bleed, the link copied the default top value
to the other sides while the file kept the preset's top: from a preset
with `[3, 5, 3, 3]`, `{"useDocument": false}` followed by linking wrote
`[3, 0, 0, 0]`.
- A settings object set there now sets only the options it holds; the
ones it leaves out keep the dialog's values. A null option is still
set as given.
- A value that is not an object is refused, and the request leaves the
dialog as it was.
- A test sends a request that sets `bleed` and then an invalid
`__bleedLinked` through the control handler and checks the dialog is
unchanged.
Before the Eyedropper evaluates a blend to sample its color, it now
counts the steps of every blend the art holds against the work left.
When the steps alone exceed it, the blend is not evaluated and the
sample gives no color. Hover runs this lookup on every pointer move
with Shift held.
The Selection tool's hover outline, and the one it shows when lent to
the Eyedropper with Cmd, now outlines nothing over a selected group
member, where a press keeps the selection. It uses the same rule as
the press (select::selected_under_in).
Tests: blend_steps_count_before_the_blend_is_evaluated and
selection_hover_outline_skips_a_selected_group_member.
A Smooth drag that ends partway along a path splits each segment it
leaves at the edge of its reach, so the anchor it adds there lies on
that edge. The next drag over the same place reaches that anchor and
only a sliver of the segment beyond it. Splitting that sliver gave the
refit a segment of almost no length to end on, so the refit lost the
path's direction there: on an ellipse dragged along its lower half, the
second drag added two more anchors and left two 71.6° corners, and
later drags turned the ellipse more each time.
A segment leading out of the smoothed stretch that is in reach for no
more than 1/64 of the reach from the stretch's anchor is now left as it
is, and the stretch ends at that anchor. The same drags on the
ellipse now keep the anchors of the first drag and leave no corner.
With the Linear Dimension tool and Alt (Option on macOS) held, hovering a
path shows a box through its outermost points (a Smart Guide when Smart
Guides are on), with its width and height beside the pointer when
Measurement Labels are on. A click on the path, then a placing click, or a
drag out from it, places a dimension of the whole path. With the pointer
above or below the path it measures the width, between the leftmost and
rightmost points; beside the path it measures the height, between the
topmost and bottommost points. The linear dimensions help page describes
the Alt hover; which side gives which measure is VectorCraft's own rule.
dimension.create takes a new source, {kind: extent, node}, for linear
dimensions. Its points are the outermost points of the segments the path
draws, curves included, and are read again whenever the path changes, so a
turned path shows its new overall width or height. The line keeps its
distance from the whole path when the path changes or is reflected, and
when dimension.update changes the orientation, which now reads the other
pair of points. When the box through the path's outermost points stays
where it was, as after Reverse Path Direction, the line stays on its side.
A version without the extent source does not open a file that holds one.
The measurement label beside the pointer while two points are picked now
keeps its distance in screen pixels at any zoom.
The Help Bar hint names Alt+Click. Docs: docs/dimensions.md and
docs/target-app-parity.md.
Double-clicking the Curvature Circle tool opens Curvature Circle Tool
Options (`tool.options {tool: "curvatureCircle"}`, dialog
`curvatureCircleOptions`). OK sets the options with `tool.setOption`,
and the preferences keep them:
- Snap Tolerance (`snapTolerance`, 1 to 40 screen points, 5) is how
near a path pulls the pointer; Smart Guides' Snapping Tolerance
applies when it is larger.
- Snap with Smart Guides Off (`snapWithoutGuides`) unchecked keeps the
reach within Selection & Anchor Display's Tolerance while Smart
Guides are off.
- Annotate Radius (`annotateRadius`) unchecked hides the radius label.
- Anchors at Standard Positions (`standardAnchors`) unchecked draws a
path with an anchor where the circle touches the path and one every
90 degrees from there (`shape.curvatureCircle {anchors: "touch"}`).
- Use the Radius of Circular Arcs (`constantRadius`) unchecked gives
the cubic's own curvature on the cubic of a circular arc too
(`shape.curvatureCircle {constantRadius: false}`).
The range, the default and the Snap with Smart Guides Off rule are
VectorCraft's own. Every switch is on by default, so the tool draws as
before until an option is changed. The canvas check measures the path
drawn, whose cubics reach a little past the circle when its anchors
are where it touches.
A Smooth drag measured every anchor of each path against every stretch of
the drag, and every curved segment's box against every stretch twice, so a
release on a path of 100,000 anchors made tens of millions of measures
however short the drag was.
- The drag's stretches are listed once per release in a grid over the
drag's bounds grown past the reach. An anchor outside those bounds is out
of reach without measuring, and a point or box is measured only against
the stretches listed in the cells it covers. Every query gives at least
the stretches the whole-drag measure finds in reach, so the marks, the
cuts and the smoothed path are the same as before.
- The refitted runs of a path are put back from its end without moving the
rest of the anchor list for each run.
On a curved path of 100,000 anchors, a drag of 200 points over 200 pt of it
makes 7,533 measures to find the curved segments in its reach, where it
made 19,899,801.
path.smoothRegion read a radius below 0 as 0 and moved a fidelity into its
range, and path.joinScrub read a tolerance below 0 as 0. Each now refuses
a value outside its range with an error naming the key, and the document,
the selection and the undo history do not change: radius and tolerance
0.001 to 1000 pt (the Path Eraser's width range), fidelity 0.000078125 to
about 3195 pt (the Smooth tool's 0.05 to 100 px at the highest and the
lowest zoom). A key left out or null keeps its default.
The Smooth, Join and Path Eraser tools, and an Alt smoothing drag with the
Pencil, Paintbrush or Blob Brush, keep what they send within these ranges
at any zoom, also when the interface zoom puts the tool's zoom past the
view's range.
Docs: params text, docs/mcp.md, docs/target-app-parity.md.
On a PostScript plate, an overprinting freeform gradient left out only the
cells whose color is paper white. A cell such as 0.1% cyan rounds to no ink
in the 8-bit samples, yet it was kept and painted paper over the ink below.
The cells are now classified from the samples the image writes.
At Level 2, a field drawn again inside the clip of its inked cells was
charged its samples a second time against the page limit, so a page with
room for a reference to the image already kept left the placement out with
the too-large warning. The check now charges the reference when the image
is already kept.
Follows #8400.
A native file whose `image_quad` held an entry that was not a point among
its first four failed to open: `image_corners` read each entry as a
`Point` and returned the error. Such corners, and an `image_quad` that is
not a list, are now dropped as the file is read, and the image opens
placed by its transform, as a list of other than four points already did.
A point is `[x, y]` or `{"x": x, "y": y}`; values that are not taken are
skipped without being kept in memory.
Follows #8392.
object.pattern.make, object.pattern.replaceArt and the object.repeat
commands dropped an `ids` entry that names no object and acted on the
other entries alone. They now return "no such object id N" and change
nothing.
artboard.rearrange takes indices (the artboards to lay out, in document
order) and at (the grid's top-left). The other artboards, their art and
their guides stay where they are, and a listed locked artboard keeps its
place and its cell. Without indices the command lays out every artboard
as before. With indices the reply adds indices and moved, and no undo
step is recorded when nothing moved.
With the Artboard tool, the canvas menu's Rearrange, the Contextual Task
Bar's Rearrange, the Artboards panel menu's new Rearrange... and the
panel's Rearrange button open the Rearrange dialog for the selected
artboards, with their count. After OK the grid's outline follows the
pointer, and a click on the canvas places its top-left there in one undo
step. Enter places it from the keyboard when no other control has the
focus, a Space-drag pans, and Esc, another tool, another document or a
change to the listed artboards cancels it. Rearrange All Artboards is
unchanged.
The help page describes the selected-artboard arrangement and the click
that places it:
https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/organize-manage-artboards/rearrange-artboards.html
The top-left reference point, the outline, the fallback to the first
selected artboard's corner and the rules for locked artboards and for
art on other artboards are VectorCraft's own.
Docs: docs/mcp.md, docs/target-app-parity.md.
With Transparency on, GIF and PNG-8 now offer Transparency Dither: No
Transparency Dither (the default, the half-opacity cut as before),
Diffusion with an Amount, Pattern and Noise. The help page describes the
four methods and the Diffusion amount:
https://help.adobe.com/archive/en_US/illustrator/cs4/illustrator_cs4_help.pdf#page=400
- render: `clear_mask` decides which pixels take the transparent entry.
Diffusion spreads the opacity error Floyd-Steinberg style over two rows,
scaled by the amount; Pattern uses the 8x8 ordered matrix and Noise a
fixed coordinate hash, so the same art always gives the same file. Fully
clear and fully opaque pixels do not change. `quantize_locked`,
`quantize_to`, `nearest_entries` and the fixed-palette path use it.
- engine: `document.exportForWeb`, its preview, `webExport.settings` and
presets take `transparencyDither` (none, diffusion, pattern, noise) and
`transparencyDitherAmount` (0 to 100, default 100). An unknown method or
an amount over 100 is refused; settings saved without the keys take the
defaults.
- ui: the Transparency Dither row sits under Transparency, with an Amount
slider for Diffusion; both are disabled while Transparency is off and
keep their values. Rows for the five labels are in every complete
catalog.
The matrix, the noise, the amount mapping and the defaults' combination
with the matte are VectorCraft's own rules.
Docs: docs/mcp.md, docs/target-app-parity.md.
With Cmd held, a click with the Eyedropper selects with the selection
tool lent to it. The hover outline is now that tool's outline: the
object under the pointer, or none when that object is already
selected. Before, Cmd hid the outline.
While the pointer rests, the canvas compares the state its cached
outline was found for with the current state field by field. It
copies the selection, the paint defaults and the tool's options into
a new key only when some part of that state changed.
The progress-doc line states the Alt case as the front editable object
(the one below when locked art covers it) and names the tests. New
tests cover a selected object, Cmd, hidden art, an armed Ignore Color
pick, Shift over a blend on the canvas, and Shift over an envelope.
- A drag whose rows stop being drawn still keeps its preview as one undo
step, and the rest of it is ignored while the button stays down, also
when the rows are drawn again before the release. An Escape in the pass
whose rows are not drawn (one that closes the task bar's popover) puts
the count back instead.
- A drag during which another document comes to the front ends there; the
rest of it changes neither document.
- The Escape that cancels a drag is the slider's: the tool, isolation mode
and a command bound to Escape do not take it
(shortcuts::handle, through transform::sides_drag_held).
The tool passed over the circles it drew until the undo history moved, the
tool changed or another document became active. Deselect and a pick in the
Layers panel change only the selection, so the drawn circles stayed out of
reach. The tool now forgets them once the selection holds none of them,
after a command run from outside the tool and at the next pointer event.
docs/mcp.md and the tool's module comment name every case that makes the
circles reachable again. The engine's Undo test checks which path the click
hit, and a comment on the set in candidate_paths says the loop skips ids
that are already listed.
- With transparent pixels, a fixed palette's colors mapped to
transparent share the transparent pixels' slot, so at Colors 256 all
255 opaque colors keep their entries.
- The preview's mappedToTransparent lists a color mapped to transparent
that did not fit in the fixed palette when its pixels became
transparent.
- When Colors leaves a fixed palette fewer slots than it has opaque
colors, shifted colors keep their slots first, then locked ones, then
the others in palette order. The file keeps the palette's order.
- quantize::nearest_entries hands each pixel's entry to a callback
instead of collecting one per pixel.
- A GIF lossy test with one fixed entry of three.
Docs: params text, docs/mcp.md.
text.editRange's insert, text.setText's text and text.createInPath's
mode and text must be strings, text.createInPath's at must be two
numbers, and start in text.touchType, text.glyphAlternates and
text.setGlyphAlternate must be a whole number of at least 0. A wrong
value was read as left out (an edit inserting nothing, area type, no
start point) or reported as a missing start; it is now an error naming
the parameter, and the document and undo history do not change. Null
still reads as the parameter left out.
Pathfinder precision no longer reads the leading number of a string
such as "1abc"; a number, a string that is all one number and a length
with a unit ("10 pt") still read.
`appearance.duplicateItem` with `aligned: true` and `to` was refused for
every selection of two or more objects, so copying a row of a graph's
Legend group to `to` failed even when every label had the same rows. It
now refuses `to` with aligned rows only when the stacks differ, as the
params text says, and the copies land at `to` in each object as one
undo step.
A module may carry its manifest in a `vc_manifest` custom section, with
`"abi": 1` in place of the `vc_abi_version` export. When it does,
Plugin::load parses the manifest from the section and does not
instantiate the module: its start function, data segments,
`vc_abi_version` and `vc_manifest` do not run when it is inspected,
installed or loaded at startup. The host checks the imports against the
manifest's permissions, the exports `memory`, `vc_alloc` and `vc_run`
by type, and the initial memory and the tables against the limits a run
has (at most 4 tables of 100,000 elements). A module with more than one
such section is refused, and so is a section over 64 KiB, before its
contents are decoded, and a manifest in the section without `"abi": 1`.
The host uses the section and does not call a `vc_manifest` export.
Modules without the section load as before.
The Desaturate example carries the section and keeps the export, and
its fixture is rebuilt with Rust 1.100.0. build.sh clears RUSTFLAGS:
.cargo/config.toml sets `+simd128` for wasm32, and the host refuses
SIMD instructions. wat::sectioned builds test plug-ins with the section.
On macOS and Linux, setting `hidden` renames the file or link in its folder with
one leading dot added, or its leading dots taken off. Both the old and the new
name must be places the script may write, and a name of dots alone, a name in
use and a folder are refused. A file the object has open stays open at the new
path.
`createAlias(target)` makes a symbolic link at the object's path to the real
path of a file the script may read. The link's place must be one the script may
write where nothing is, a link that leads nowhere included; the settings folder
is refused for both. When a folder above the link's place is replaced by a link
while the alias is made, the new link is removed and the call fails. `hidden`
reads a link's own name, and setting `hidden`, `rename` and `remove` act on the
link itself.
On Windows both still set `error` and change nothing. `execute` stays
unavailable.
Behavior: https://extendscript.docsforadobe.dev/file-system-access/file-object/
and https://extendscript.docsforadobe.dev/file-system-access/using-file-and-folder-objects/
The settings and cache imports could move up to 1 GiB a run while the
instruction budget charged only for the calls themselves. The bytes they
read or write now cost the run one instruction per 64 bytes, counted
over the whole run so that splitting a transfer into calls costs the
same. A get also pays for the bytes it copies into the module's memory
that the store didn't count, such as a setting answered from memory.
A storage call pays from the store's fuel and from the part of the
budget not yet handed out. The meter it gives the storage holds no more
bytes than those instructions pay for, so a read or write the run can't
pay for doesn't happen, and the run ends with "instruction budget". A
read or write past the 1 GiB still returns -7. Bytes beyond the current
slice are read or written only before the deadline and Cancel, and the
host checks the deadline and Cancel after every storage call, so a run
past either stops after the call instead of at the next slice.
The plug-in fuzz test now also makes writes of up to about 1 MiB on
small instruction budgets.
Docs: docs/plugins.md.
The image a group's or layer's raster effect makes is drawn with
templates skipped, so it leaves out template layers, guides and ruler
guides with everything in them. The Safe Mode plug-in check still looked
into a template sublayer, so a plain symbol instance there whose symbol
art holds a plug-in effect stopped Expand Appearance of the layer. The
check now skips them as the renderer does.
The image a group's or layer's raster effect makes leaves out hidden
objects and everything in them, as the renderer does. The Safe Mode
plug-in check looked into every object of such a group, so a hidden
plain symbol instance whose symbol art holds a plug-in effect stopped
Expand Appearance of the group. The check now skips hidden objects
inside the group's image. The group itself still counts when it, or a
group around it, is hidden, since expansion still makes its image.
Preferences > General gets a Script File Access section after Show
External Script Warning. It reads script.grants and shows one row for
each script and path, grouped by script, with the widest access any kept
version has (read file, read and write file, or read and write folder).
Revoke runs script.grants.revoke for that script and path, which removes
every kept version of the pair, so the next run asks again. The list is
read again after a revoke, the keyboard focus moves to the row now in
that place, and the status bar says whether anything was removed or
shows the command's error.
Paths and script names show control and bidirectional formatting
characters as escapes and are cut at 1,024 characters. A grants file
that is not well formed or is larger than 4 MiB makes Revoke show the
error and leaves the file as it was. Without a settings folder, and on
the web, the section is not shown. The rows are drawn only where they
are in view, so a long list stays fast.
`paint.sampleColor` with `stop` and objects in `ids` took the stop list
from the gradient behind the proxy: the selection's, or the Live Paint
Bucket's while it was active. With the bucket on a solid color it
refused a valid target, and with another gradient behind the proxy it
copied that gradient's stops onto the given objects.
The stop list now comes from the topmost fill (or stroke) of the first
object `paint.editGradient` edits for those ids (a compound path for
its member, a group's first painted object), whatever tool is active.
Without objects in `ids`, the gradient behind the proxy is used as
before. The params text and docs/mcp.md describe the rule.
Unembed re-applied the clipping path read back from the PNG or TIFF it
had just written, with a path and with a folder. A clipping mask
released in the document came back, and a mask edited in the document
got a clip group of the file's original path nested inside it. The same
held for a distorted image.
Unembed now leaves a clipping mask released, edited or made in the
document as it is. A clip group of the file's own clipping path still
follows the file written, as before.
While the proxies show the colors the Live Paint Bucket paints with,
`paint.freeform.get` and `paint.freeform.selectPoint` with an index find
no freeform gradient. The point and line edits (`addPoint`, `setPoint`,
`deletePoint`, `addLine`, `splitLine`) still edited the selected
object's freeform gradient when they named no target.
Those edits now report an error then, when no `ids`, `id` or `item` is
given, as the other paint commands leave the selection alone. A bad
`aligned` or `target` is still reported first. With a target they edit
that object as before. `get` and `selectPoint` now say that the
bucket's colors have no freeform points instead of suggesting
`paint.editGradient`. The params text and docs/mcp.md describe the rule.
- Done or Save right after the Color Picker's OK, before the dialog draws
again, now applies the picked shift, so the saved and remembered
settings keep it.
- Shifting a 257th color now changes nothing and the status bar shows
the engine's limit; shifting an already shifted color again, or
taking a shift away, still works.
- Unshift, a new shift and the Lock, Transparent and Web Shift lists
compare colors rather than text, so a key such as `#F00` is replaced
instead of left beside `#ff0000`.
Docs: docs/mcp.md.
script.check reported file.write and filesWritten when a script set
length, hidden or readonly on a Folder object as well as on a File
object. It now leaves out only objects that are Folder objects whatever
the path names: new Folder(...), new Folder, and the Folder places such
as Folder.temp, except Folder.current, which a script can assign.
Folder(...) without new gives a File object when the path names a file,
and Folder.selectDialog() gives a File or Folder object, so setting
those still counts.
A variable counts as a Folder only when every assignment the check
reads gives it one: an assignment in another branch, in a function
body, or in an included file that gives it an object that may be a
File object keeps it counting, and a variable assigned another
variable counts as a possible File object. A File object assigned to a
function's own variable or parameter, or to a catch block's parameter,
ends with them. Calls such as remove() on a Folder object still count
as writes.
Folder object constructors and selectDialog:
https://extendscript.docsforadobe.dev/file-system-access/folder-object/
A Linked Images row now gives the image's format, its size in pixels, its
resolution at the size it is placed at and its file
(`PNG; 1200 × 800 px; 150 ppi — /art/photo.png`, both axes when they
differ, `resolution unavailable` when the transform leaves the image no
area). An Embedded Images row gives the format, the size and the estimated
memory of the 8-bit RGBA pixels the image is drawn from
(`PNG; 1200 × 800 px; estimated memory 3.7 MiB`). The format comes from a
linked file's extension, else from the type of the pixels the document
holds, and reads `Unknown format` when neither is known.
document.info's imageObjects entries gain format, effectivePpi,
memoryBytes and storedBytes (the encoded bytes an embedded image keeps).
The Document Info report and Package's report write the same rows, and the
panel shows them in the interface language, with the new templates in every
complete catalog.