The Annex B runners checked their folders with Path::exists, which returns
false when the metadata cannot be read, so a folder that could not be
searched skipped the tests as if it were absent. They now use try_exists:
only an absent folder skips, and a metadata error fails the test.
The parity doc now says that an interpreter panic fails annex_b_runs and
makes cargo xtask test262 exit non-zero, while conformance failures do not.
A recovery copy whose details entry is missing or can't be parsed now
restores as a document a script opened, and the details written for the
moved copy say so, so a later restore does the same. A valid details
entry without the script's mark still restores as the person left it.
The script docs now say that a link does not let a command write the
file it names: a linked file is written only where the script's write
places or an open document's own file allow it.
A library tint or gradient whose global or spot color comes in under a
numbered name now links to that copy whichever order the swatches are
picked in, when the color was added by an earlier call, and when a
pattern's art brought the color or took the document's copy of it.
Adding the same tints again finds the ones added before.
- Each tint's or gradient's color is looked up for itself before
anything is added, past a process swatch of the same paint and past a
color group of that name. A numbered copy that the library's own
swatch of that name is stays that swatch's, and a new copy skips the
library's other names.
- A tint links to a global or spot color of the same kind only, and to
a color this call picks rather than to a copy a pattern took.
- Links are set as soon as the color's name is known. A tint waiting
for a color that a pattern's art brings learns its name from an
import into a copy, so the pattern does not add a second tint.
- A swatch a pattern brought takes a picked swatch's place only when
its colors link where the picked one's do.
- A stop linked to the Registration swatch counts as linked.
- library.use, Add to Swatches and the reuse check share one import
probe (patternlib::probe_import), and the probed copy is kept instead
of importing a second time.
Docs: docs/mcp.md, docs/target-app-parity.md.
- An open that leaves no context (a failed `WTInfoW` or `WTOpenW`, or a
window procedure that could not be put in front) is tried again for the
same window by a pen message 2 s or more later (`RETRY_MS`), instead of
only after the pen moves to another window. An open context is kept as
before.
- Windows sends `WM_POINTERLEAVE` to the window procedure, so winit's
message hook does not see it. A `WH_CALLWNDPROC` hook on the UI thread
now hands a sent `WM_POINTERENTER` or `WM_POINTERLEAVE` to the stylus
code, and the wheel pen's leaving starts the readings afresh. A leave
that comes while the readings are in use takes effect at the next
Wintab or pen message. Until the hook is installed no context opens.
- The context closes when another app becomes the active one
(`WM_ACTIVATEAPP`, seen through the same hook), and no pen message
opens one while the foreground window belongs to another thread, so the
context does not stay in front of another app's context in the driver's
overlap order.
The outline of a dynamic instance's part walked the art of an instance
nested in the part, drawn with that instance's fill and stroke effects,
and outlined its hidden objects as well. It now skips a hidden object and
what it holds, as the part pick does.
The test262 runner read only test/language and a few built-ins folders,
so the Annex B tests were never counted, among them the for-in variable
with an initializer that must parse in sloppy code and give a
SyntaxError in strict code.
- annex_b_parse_subset parses every test under test/annexB/language
without a feature tag, of any edition, in the modes its flags give,
and writes annexb-parse-failures.txt.
- annex_b_runs runs those tests and the test/annexB/built-ins tests for
String, Date, RegExp and Function through the interpreter and writes
annexb-language-failures.txt and annexb-builtins-failures.txt. The
escape and unescape folders still run once, with the ES5 built-ins.
- A suite without test/annexB skips both; a folder there with nothing
to parse or run fails them. Conformance failures stay in the reports.
- The runner reads only regular files inside the suite: it does not
follow symbolic links, refuses an includes: name that leaves harness/,
refuses a file over 8 MiB before reading it, and fails on a folder it
cannot read instead of skipping it.
Docs: docs/target-app-parity.md, the xtask test262 module comment.
The isolation bar drew its back arrow, the crumbs of the levels above and
the pattern editing buttons as bare Tab stops with no name or role.
Each is now a button. The back arrow is named for what it does: Back One
Level, Exit Isolation Mode, Exit Symbol Editing Mode, or Done while a
pattern is edited. A crumb is named with the name it shows, and Save a
Copy, Done and Cancel with their labels, all in the UI's language. The
strings already have rows in every catalog.
- A close notice and an information change in one batch now both
count: the handle the driver closed is dropped without WTClose, and
each cursor's wheel range is read again.
- The window procedure that notes the driver's notices is put in front
of the window's own before a context is opened. When it cannot be,
no context is opened for that window.
- A packet that reports the context's queue overflowed (TPS_QUEUE_ERR)
starts every reading afresh, not only its own cursor's.
- The first pen whose pointer message comes within 200 ms of an
airbrush packet takes the readings. Another pen's messages read no
wheel until they start afresh, and the taking pen's leaving starts
them afresh.
A symbol instance nested in a dynamic symbol's art was picked and outlined
where its art is drawn only when the shapes its fill and stroke paint were
non-empty. Those shapes leave out clip groups and type, so a nested
instance whose art is a clip group was picked at its plain place although
the canvas draws its members moved by the outer instance's fill or stroke
effects.
The test is now whether the nested instance's active fill or stroke has a
visible geometry effect, which the engine registers with
set_instance_reshapes. Picks and outlines no longer evaluate those shapes
for each nested instance they visit.
A recovery copy's details now say that a script's command changed the
document before the new document entry is written, and a restore writes
a copy's details before its document entry in the new area. A crash
between the two writes no longer restores a script-changed document
without that record, so a later run cannot read the files its links name.
The docs say that a linked file in one of the script's own places inside
the settings folder is still read.
path.smoothRegion kept every changed result. A drag along the top of a
clean ellipse split it from 4 to 5 anchors without smoothing it, took
away its Live Shape and added an undo step, and a third drag left it
with 7 anchors and about 20% more turning.
Each subpath's result is now measured against the subpath at one
spacing: how much it turns along its length, with each turn at an
anchor counted twice, and how much it bends. The result is kept only
when it turns no more than a thousandth more and has fewer anchors,
turns less or bends less. Otherwise the subpath stays as it was; a path
with no kept subpath keeps its Live Shape, is left out of ids and the
counts, and a call that keeps nothing adds no undo step. The measure and
the thresholds are VectorCraft's own.
Three tests that dragged over a convex curve with nothing to smooth now
drag over a sharp peak or crest, so they still test the reach search
and a closed path of two anchors.
Outlining a part of a dynamic symbol's instance expanded every nested
instance whose fill or stroke effects reshape its art, at every level, with
no limit, so art that nests many such instances a few levels deep took work
that grew with each level. A part pick charged each object it tested but
copied each nested instance's art before charging anything for it.
The part outline now shares the object limit a click has, and each object
it outlines takes one object of it. The art of a nested instance takes its
size from the limit before it is copied, and the art an object's own
effects draw takes its size once evaluated; nothing more is copied or
evaluated once the limit is used up. The art of the instance itself is
charged by its walk, as before.
text.setStyle, text.setRangeStyle and charStyle.apply style a range
with both ends moved back to character boundaries, so a range inside
one multibyte character styles nothing. The Line Gap now follows the
same range and stays as it is when no character was styled.
The tablet driver sends WT_CTXCLOSE and WT_INFOCHANGE to the window
procedure, and a sent message does not pass winit's message hook, so a
context the driver closed kept its handle and the wheel stopped reading.
The context's window now gets a window procedure in front of its own that
notes both notices. The next Wintab or pen message drops a closed context
or closes and reopens it after an information change, forgetting the
cached cursor ranges. A notice the reader causes by closing its own
context does not drop a later context with the same handle value.
A packet that WTPacket cannot read now starts the readings afresh, so a
pen message no longer takes a wheel value that may be stale.
Only the pen whose message last read the wheel clears the readings when
it leaves the window or detection range or its press is canceled; a
touch or another pen leaving keeps them.
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.