The read check for the files the documents link to now applies the script
scope's fence of the folder that holds the settings, as the script's own
reads do. A file in a place left open inside that folder is still read.
File › Open with a PSD or PSB file's layers as objects now reads the
nvrt, thrs and post blocks of the PSD file format specification and
merges each such adjustment layer with the visible layers below it in
its group, changing their colors. Clipped to a layer, it changes only
that layer and the layers clipped to it. In a pass-through group with
nothing below it in the group, it changes what is below the group when
the group is merged.
Each channel is taken as an 8-bit sRGB value: Invert turns v into
255 - v, Threshold compares the Rec. 709 luminance with its level, and
Posterize maps each channel to the nearest of its evenly spaced levels.
The adjusted color is composited in the layer's blend mode at its
opacity and fill opacity, through its layer mask.
A hidden one is left out. One that layers are clipped to, one clipped
to another adjustment layer, one whose data can't be read and one
whose merge needs more memory than allowed are not applied and are
counted in the existing adjustment-layer warning. Other adjustment
kinds are still not applied.
Docs: docs/mcp.md, docs/target-app-parity.md.
Block gives every character its size plus the frame's Line Gap, so on
Block text a character's leading is never an override. A character
style edited to a new leading now applies it there even when Block has
given its users other leadings than the old definition's, for example
after a Line Gap change or a refit, and the Line Gap moves.
The Eyedropper copies a whole character style, so the leading it copies
is no longer treated as a leading change: Line Gap stays, and Block
gives the characters their size plus the gap, as before this branch.
The tests now check that every character's leading is its size plus the
new gap for each path, and the docs say that Text Tweaker's ramp sets
the gap from its first character and does not vary the leading.
When the refit keeps an anchor at a closed path's old start, Simplify
and Smooth now start the path at that anchor, even where a segment of
the refit crosses the path at the same point. Before, a crossing
segment that came first could be split there instead, adding an anchor
and changing the segment the path starts along.
The commands a script runs could read the files that the documents open
at the run's start link to, and could read and write the files of every
open document. Both lists were taken from the documents as they were, so
a document a script opened, or a link or data set value a script added,
widened what the next run could read, and a document opened from a
linked file could be saved over that file in the next run.
- DocState::by_script records what scripts' commands did to a document
since the person last opened or saved it: opened it, or changed it or
gave it another file, keeping the document, its file and the file it
was read from as they were before. The script host notes it after
every command, and a save the person makes from the document's current
content clears it. Revert keeps it, and a recovery copy restores the
document as one a script opened.
- The gate's document files and the linked files are taken from each
document as the person left it (DocState::as_person_left). A document
a script opened gives neither, in that run or a later one.
- This replaces the per-run record of paths read through the linked
files and ScriptGate::keeping_linked_read_only.
- docs/mcp.md and docs/target-app-parity.md describe the rule.
A geometry effect on a dynamic symbol instance's fill or stroke moves or
reshapes the art the canvas draws, and a click there already selects the
instance. Direct Selection still picked a part of the art at its plain
shape and outlined that shape, so a click on the drawn result picked
nothing and a click where the part no longer paints picked it.
symbol_part_at and symbol_part_outline_in_view now test and outline the
instance's art with the effects of its active fill and stroke added, as
the canvas adds them. Live objects in the art keep their place, so the
child-index path still leads to the part. A nested instance is picked
and outlined where its reshaped art is drawn, type with a fill or stroke
of its own where its reshaped glyphs are drawn (Type Object Selection by
Path Only still takes the type path), and an image's outline includes
the shapes its own fills and strokes paint. A clipping path is still
picked and outlined by its own geometry. Outline view and layers with
Preview off keep the plain shapes; blends, envelopes and repeats in the
art are picked without the instance's effects.
A dashed tool overlay line was dashed over its whole screen length, so
a line that runs far past the canvas at a high zoom built a dash shape
for every 7 px of it, nearly all of them off screen. A line millions of
pixels long built hundreds of thousands of shapes every frame.
The line is now clipped to the canvas in f64 before it is dashed, with
the pattern started where the whole line would have it, so the visible
dashes stay where they were. A line off the canvas, or with an end at
infinity, draws nothing.
A dimension of a whole path whose line lay across the path, made vertical
or horizontal with dimension.update, now goes as far past the path as it
lay from its first point. Before, its line landed on the path's edge. A
line on the edge to within rounding still counts as outside the path.
When the new place would be more than 1,000,000 pt from the first point,
the update is an error unless it also gives offset, and the dimension is
left as it was. A dimension whose measured node is missing or is not a
path, as in a file that names a node it does not hold, is unlinked at the
next edit.
Tests: a dimension of a whole path saved in a native file and opened
again still follows the path, and one that names a missing node is
unlinked at the next edit; past a corner of the path the side the
pointer is farther out on decides; after the first point Alt picks a
point; a hovered segment's length stays by the pointer at a high zoom.
The line in docs/target-app-parity.md now attributes only the Alt hover
over a path to the linear dimensions help page. Docs: docs/dimensions.md
and dimension.update's params text.
Pointer messages carry no field for an airbrush pen's finger wheel, so a
brush set to Stylus Wheel drew the half-way value on Windows. The new
windows_wintab module reads the wheel from the tablet driver's Wintab
interface as the tangential pressure of a cursor the driver reports as an
airbrush, placed within its device's DVC_TPRESSURE range.
- Wintab32.dll is loaded at run time from the system directory only
(LoadLibraryExW with LOAD_LIBRARY_SEARCH_SYSTEM32). Without it, without
one of its exports, or when a call fails, Windows pens read no wheel and
draw as before.
- The context is opened from the driver's default context with packet
messages on and CXO_SYSTEM and CXO_PEN off, so it moves no cursor and
makes no press. It follows the top-level window the pen is over.
- WTInfoW answers are size-checked against a null-buffer call and read
into a larger buffer; packets are read into a buffer larger than any
packet and decoded from the fields the context asked for; a value
outside the axis range reads as no wheel.
- Pointer messages keep the pressure, end, tilt and rotation. A pen's
message takes the airbrush's last wheel since it came near, or, when
several cursors were read, the one whose latest packet came within
200 ms of the message, and none when more than one or none did. 0
counts as no wheel until the pen reports another value, as on macOS,
and the readings start afresh on proximity, a cursor change, the other
end, a canceled press and leaving the window.
Docs: docs/mcp.md, docs/target-app-parity.md.
A step that applies no effect, such as Object > Path > Clean Up, takes
its plain row in each language, else the menu item's row without the
ellipsis. The test checks that fallback in every catalog again.
With `reference`, `addon.pathtools.shape.set` measured the shape's box
before the edit with Use Preview Bounds and fell back to the geometric
box when the preview gave none, and it chose again after the edit. When
the preview gave a box before the edit and none after it, or the
reverse, the shape moved by the difference between two different boxes. The measure used before the
edit is now used after it.
The params text and docs/mcp.md now say that snapping to the pixel grid
and an attachment to a path apply after the reference point is kept,
as they do for the Transform panel's W and H. The docs line in
docs/target-app-parity.md changes only the lines it needs.
An even-odd compound paints the same whichever way each contour runs, so
an o's counter may run the same way as its outer contour. Such a part
matched neither as it is nor with all its contours reversed, and stayed
an outline at tolerance 0. A part of a split compound is now also read
with each contour turned the way its depth gives (outer contours one way,
their counters the other), both ways round. In a nonzero compound those
contours paint the counter, and the painted-area check still keeps the
part an outline.
The containment test that splits a compound into glyphs moves into its
own function, `containers`, which the new reading also calls.
Docs: docs/mcp.md, docs/type-parity.md.
When a direct-selected run holds a closed path's first anchor, Simplify
and Smooth now look for the new start on that run alone, so an
unselected segment that passes through the old start is not split.
When the first anchor stays, the path already starts there and is left
as it is.
The panel's Adjustment menu showed each adjustment by the plain row of
its English label, while Apply as Filter records a step that History
and Edit > Undo name from the effect's Effect menu row. In German the
menu said "Stufen" and the step "Tonwertkorrektur". The menu now takes
its names from i18n::effect_name.
The tool gets an `addPoints` option (Add Points to Existing Paths in its
options, off to start). When it is on, drawing a circle also adds an
anchor point where the circle touches the first segment and the second
segment, splitting them without changing their shape. The anchors and
the circle are one undo step. A touch at an existing anchor adds none.
Alt held at the release turns the option the other way for that
circle, and a dot beside the pointer shows while it is in effect. When
a touched path was not selected, the selection is put back before the
circle is drawn, so Draw Behind places the circle behind the selected
objects.
The option label has a row in every complete catalog.
Part of #7178.
Block sets each character's leading to its size plus the frame's Line
Gap and fits the text again after every edit, so a leading set from the
Character panel, the Properties panel, the Type tool's Alt+arrow steps,
a character style, the Eyedropper or Text Tweaker was accepted and then
overwritten. On area type with Block on, a leading change now sets the
Line Gap to the new leading less the size of the first character
changed, within -1,296 to 1,296 pt, in the same undo step, and every
line spreads or tightens by the change. text.setStyle and
text.setRangeStyle take keepLineGap, which
Reset Panel sends, so a reset to Auto leading keeps the frame's Line
Gap. Point type, type on a path and area type with Block off keep their
own leading.
The finger case of rearrange_is_not_placed_by_a_finger_once_a_pen_was_seen
now sends touch Start, Move and End events with the first finger pressing as
the pointer, adds a second finger and drags both, and checks that the view
pans while the waiting placement, the artboards and the history stay as they
were. The mouse placement check is unchanged.
rearrange_refuses_bad_indices_and_at also checks that an `at` that would put
an artboard past the canvas is refused and leaves the artboards and the
history as they were.
After ui.dialog.set left a null object inside a settings object (for
example compression.color), a later object set there took the options
it leaves out from the default settings, so the dialog showed a ppi of
300 while Save PDF used the preset's. They now come from the matching
object of Save PDF's preset, as the save takes them. The test covers it.
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.
The Undo/Redo menu test now applies Feather in French, where the
plain row of the English label and the Effect menu's Feather differ,
and expects the effect's name from i18n::effect_name. The check of a
plain step runs in Japanese.
Also spells "catalog" in the built_in_effect doc comment.
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.
A saved preferences file is restored onto the drawing tools without the
option check that tool.setOption applies. A Spiral segment count or a
grid divider count that was not a whole number (a string, a fraction, a
negative, null) reset the tool to 10 or 5 instead of keeping its
current count. The Arc tool's base axis took any string other than y as
x. Each now keeps its current value for such a value, and a whole
number keeps its existing range.
While a shape is dragged out, an ignored count or axis no longer
replaces the drag's starting value, so Escape puts back the values the
drag started with.
Once a pen has been seen, a finger press on the canvas navigates the view.
Rearrange's waiting placement took that press as its click and moved the
artboards. The placement now skips it, and the press pans as before.
Each step of a blend whose keys are blends is a copy of one of them,
which makes its own steps when drawn. The work check before a blend is
evaluated now counts those steps too, with the same count the blend
uses to fit its steps (`vectorcraft_doc::blend::blend_steps_made`), so
a nested blend with more steps than the work left is not evaluated.
Tests check that the blend is not evaluated when the work left is too
little, for a plain blend and for an outer blend of nested blends.
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.
The band a smoothing drag shows took the Smooth radius in points without
the 1,000 pt bound the release applies, so below 1.2% zoom it drew wider
than the region path.smoothRegion smooths. It now uses the same bound.
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.
Fully transparent and fully opaque pixels keep their state but now pass on
the opacity error they receive. Before, that error was dropped, so a row
alternating half-opaque and fully transparent pixels kept every
half-opaque pixel opaque at amount 100. About half of them stay opaque
now, in a single row and in a checkerboard.
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.
History and Edit > Undo/Redo looked a step's label up in the catalog's
plain row first, so in catalogs where that row translates the Feather
arrowhead (cs, es, fi, fr, hu, id, ka, nl, pl, pt-br) a Feather effect
step was named after the arrowhead. Many other effects had a plain row
that differed from their menu row too (de Levels), and the Appearance
panel showed Inner Glow, Outer Glow, Film Grain and others in English
when the catalog had only the menu row.
- The engine records which built-in effect a step applied or edited:
HistoryEntry::effect(), set through Session::edit_effect around
effect.apply, effect.setParams (when every target edits the same
effect) and addon.color.filter, and kept through dialog previews,
undo and redo. A step another command names like an effect (Object >
Transform's Transform) and a step an undo group names keep none.
- i18n::effect_menu_label and effect_name give an effect's name from its
@id row or the row of its English menu label. The Effect menu, Last
Effect, History, Edit > Undo/Redo, the Appearance panel and its effect
picker, the effect dialog heading and the Effect Gallery use them.
- The untranslated-text report lists missing effect names.
A translucent cell whose samples round to ink before its opacity is
applied, such as 0.4% cyan at 25% opacity, is written with no ink once
the opacity is applied, yet it was kept and painted paper over the ink
below. The cells are now classified from the samples the image writes
after opacity, and RGB cells in CMYK output from their converted inks.
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.
keyboard_focus_on_a_slices_row_shows_its_description stopped at Show Slice
Numbers, so nothing checked that keyboard focus on Line Color shows its
sentence, and the test passed even when the first Tab did not start from
the search field. It now uses tab_to_each, as the Hyphenation test does:
it asserts the search field has the keyboard first, then tabs to Show
Slice Numbers and Line Color in that order and checks that each focused
control carries its sentence.