The baseline of widget_order_perf kept the selection's editable objects and
then asked each widget about the whole selection in the same document, so a
widget that checks editability itself (corners of any path on 128 rectangles
on a locked artboard) measured each object twice. The baseline now asks the
widget about the kept objects in a copy of the document with everything
editable, as the_widgets_are_the_same_as_when_editability_came_first does.
The outline of an Eraser drag takes, at each step, the tip the pen gives
halfway along it, as path.eraseRegion erases. Two cases still used the
tips at the step's ends:
- A round tip whose Size follows the pen drew each step as wide as the
mean of the tips at its ends. Where an end is held at the 0.1 pt least
size, that mean differs from the tip halfway along: with Size 10 pt on
Pressure by 20 pt, a step from no pressure to full pressure showed
15.05 pt wide where the release erases 10 pt.
- A pen turned or tilted in place at the last point updated the last
step only when the tip at that point changed. With Size 10 pt on Tilt
by 20 pt, tilting from 80 to 85 degrees after an upright point keeps
the end tip at 0.1 pt while the tip halfway along goes from 12.22 pt to
11.11 pt, and the outline kept the old one. The area outline now keeps
and compares the tip halfway along the last step.
The Type overlay layout-count tests in vectorcraft-tools held a read lock
that only tests which add fonts or change hyphenation exceptions take for
writing. Other tests still load system fonts on demand (a fallback for a
character no loaded font covers, a cataloged family on first use), which
changes FontDb::global()'s generation, the key of every kept frame layout.
type_overlays_keep_at_most_frame_layouts_max then laid out 2051 frames
instead of 2 in 18 of 21 full `cargo test -p vectorcraft-tools --lib`
runs on Linux.
vectorcraft_text::test_fonts::steady_fonts (test and test-fonts builds
only) now holds back font changes on other threads: adding faces, a
rescan and setting or removing a composite font wait before they publish
anything. A first scan does not wait, and steady_fonts catalogs the
database before it returns. steady_layout_inputs() takes it for the
global database. With it, 0 of 20 full runs failed.
composer_x_mixed_sizes_around_text_wrap and
composer_x_mixed_sizes_overflow_around_text_wrap compared only the
Single-line Composer's line texts with the Every-line Composer's. Both
tests now run their room, overflow and wrap-object checks on each
composer, so a Single-line layout that breaks the same lines but sets a
span past its room or into the object fails.
The Edit > Tracing Presets... Import and Export pickers and the save
panel showed the Tracing presets, Action sets and Composite fonts file
types in English in every language: no catalog had a row for them.
Each catalog now has a file-filter row for the three, made from its
own Tracing Presets, Action Set and Composite Fonts terms, and the
Gujarati catalog gains its missing Perspective grid presets row.
The Hindi file-filter block also names Export presets as a noun
instead of as an instruction, and All readable files in the plain
plural form.
save_panel_file_types_are_in_complete_catalogs checks that every
complete catalog translates each file type in the save panel's list.
A circle tangent to two segments near the canvas edge could show in the
preview and then fail on release, because `shape.circleThroughPoints`
refuses a circle that reaches more than 4,000,000 pt from the origin.
The tool's check of the three points now goes through
`circle::circle_of`, which applies the same bounds, so such a circle
counts as no circle: the note shows, a click draws nothing and the first
segment stays picked.
A plain Lasso click away from the art deselects everything but kept the
mesh points the tool held, so the Mesh tool chosen next showed the
deselected points as picked, nudged them with the arrow keys and
recolored them with a fill color. The click now unpicks them. Shift and
Alt clicks still change nothing.
docs/target-app-parity.md also lists the Eyedropper among the tools that
keep the picks, and docs/mcp.md describes the Lasso click.
Test: a_lasso_click_that_deselects_unpicks_the_mesh_points in
crates/engine/src/tests/mesh_picks.rs.
The 3D shadows section of docs/mcp.md said Expand Appearance keeps the
shadow as a path. Since #7761 a shadow blurred by the first light's
Softness expands to an image; only a hard shadow stays a path, as
docs/three-d.md already says.
With Use Preview Bounds on, every pointer move near a corner of a
compound path's preview bounds scanned all of its members to find the
one holding that corner. A compound with tens of thousands of members
cost one visit from the walk budget and then a full member scan on
each move.
- The holder of each of the four corners is found in one pass over the
members when the compound is measured, and cached with the bounds
for the document's revision. Later moves read it from the cache.
- Measuring an object not yet measured (its geometric bounds, its
preview bounds and its holders) counts its members against a
separate limit of 20,000 per move. An object with more members than
are left gives no corner on that move, and nothing is cached for it.
With more than one query word matched through a typo, a result whose
label holds every such word comes first, and then the other words'
grades and how many such words the menu path holds decide. Two results
that hold the two words in label and menu path the other way round tie
on these grades.
A clipping path counts as changed in the document when an anchor or handle moves by a thousandth of a point or more, and links.update leaves a distorted image's clipping as it is.
With Use Preview Bounds on, the member of a stroked compound path whose own
box reaches nearest a corner holds the Linear point placed there. A
visible, unlocked member made into a guide could hold it, so the dimension
was linked to the guide, although paths made into guides give no corners.
A guide member now gives no corner, as a hidden or locked member does.
symbol.place, symbol.placeFromDocument and symbol.addFromLibrary with
`place` now read the drawing mode: in Draw Behind the new instance goes
directly below the selected object, or at the bottom of the current
layer when nothing is selected, as the help page describes for placing
symbols
(https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/learn-drawing-basics/drawing-modes-overview.html).
Place Symbol Instance in the Symbols panel and a symbol dragged onto
the canvas from the Symbols panel or a symbol library all go through
these commands.
VectorCraft's own rules: with several objects selected the instance
goes below the bottommost one, a selected path in a compound path puts
it beside the compound path, and a clipping path stays at the bottom of
its clip group or clipping layer. Draw Normal and Draw Inside keep the
instance on top of the current layer, and a locked or hidden layer
still refuses it with no edit.
With Show East Asian Options on, the OpenType panel menu has a
Proportional Metrics item before H or V Style. The help page
(https://helpx.adobe.com/illustrator/using/formatting-asian-characters.html)
lists it among the OpenType panel options that this setting shows.
The item sets the proportionalMetrics character attribute that the
Character panel menu's item sets (palt in horizontal type, vpal in
vertical type), through text.setFormat for selected type and
text.setRangeStyle while the Type tool edits text. It is checked when
every character it changes has the attribute, read like H or V Style
and Roman Italics (at a caret, every character of the text), and a
click turns it on for all of them, or off when checked, in one undo
step. It is disabled with no type selected. Its place in the menu and
the check rule are VectorCraft's own.
Docs: docs/target-app-parity.md, docs/type-parity.md, docs/mcp.md.
The type, pie, side count and corner widgets, the Objects on Path, Mirror,
Grid and Radial Repeat controls, the Image Trace Split divider and the
center point now check that a selected object is of a kind that has the
widget before asking whether it is editable. With an artboard locked, the
editability check measures the art of the layer object holding the object,
so a large selected group of another kind was measured on every repaint and
pointer move. The widgets shown are the same.
A test-only counter (vectorcraft-doc feature locked-artboard-count) counts
those measurements; widget_order_tests checks that objects of other kinds
are not measured, compares every widget with the editability-first result
on a mixed document, and holds an ignored timing test, widget_order_perf.
Among results matched through a typo, the ranking key compares the typo
grade (a word met in the label grades better than one met in the menu
path) before the other words' grades and the label's length, so two
results can come in a different order than the word spelled right gives
them. The paragraph now states that order.
Each gradient fill looked for its definition by comparing its gradient
with every definition written so far, so a document with thousands of
distinct gradients spent most of the export in these comparisons.
The writer now keeps each definition's place under a key made from
every field of its gradient, the same key the editing data's writer
uses, which moves to a module both writers share. Each candidate under
a key is still compared in full, and the first equal definition in
definition order is used. Spot color names, written spot colors and
fonts are also found through maps and sets, while the lists the file is
written from keep their order. The written file is unchanged, byte for
byte.
On Linux, writing 10,006 gradient fills (5,000 distinct and 5,000 of 50
others) took 79 ms of thread CPU time through the index and 291 ms
comparing each definition in turn (median of 7 runs, release build).
The PSD clipping-path entry said that links.update and links.relink leave
a plain group whenever the new file names no clipping path. A clip group
whose clipping path was changed in the document, and a clipping mask made
in the document, are kept when Placement Options do not clip the image:
a new file with no clipping path leaves the mask clipping the image, and
a new file's clip group goes inside the mask.
An image that keeps CMYK inks is stored as TIFF, and Unembed writes it as a .tif file when the path has no extension. The comment above the format choice now lists TIFF with PNG, JPEG, GIF and WebP.
In freeform Lines mode, moving the pointer out of the object and back
now ends the line being drawn, so the next click on the object starts a
new line. The help page describes this way of starting another line in
the same object:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=262
The line ends on the first pointer move, with no button held, that
leaves the object. The object counts as its path's area inside any
clipping masks above it, plus its own painted art (stroke, glyphs);
other art lying over it does not end the line, and outline view, a
layer with Preview off and the path-only selection preferences do not
shrink the area. Escape and a click off the art still end the line.
Link Info's Location row gets a folder button, Show in Folder, that runs
links.reveal with the id of the image Link Info shows, so the system's
file manager opens that file's folder. The button is off while the file
is missing and when no file manager is available (the web build). An
embedded image has no Location row and no button.
The help page describes a folder icon on this row that opens the file's
folder: https://helpx.adobe.com/illustrator/using/links-info.html
The button's name and its off state are VectorCraft's own.
graphicStyle.redefine passed the redefined style to every path directly in a
graph series group linked to it, and to every line and label of a linked Axes
or Legend group, so a member linked to another style (the `from` style or a
third one) was restyled and relinked to the target. Such a member now keeps
its look and its link, in the `from` and the object forms; unlinked members
and members still linked to the target follow as before. The group is still
cleared and unlinked, and one undo takes it all back.
When the shown paragraph has no tab stops and no indent marker is
selected, a position typed in the Tabs panel's X field (Y in vertical
type) and committed with Enter now adds a stop there with the chosen
alignment and selects it, in one text.tabs.set and one undo step, as a
click on the ruler does. Before, the typed value was dropped. The
archived user guide gives typing a position as another way to set a new
stop:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=521
The typed value keeps its hundredths of a point and is read in the
General unit unless it names another unit. A negative position becomes
0 pt and a position past 100,000 pt adds nothing; these are VectorCraft's
own limits. With the Selection tool on several texts, the new stop is
set on every selected text, as a ruler click already does.
The ruler click and the typed position share one helper, so a click
whose text.tabs.set fails no longer moves the selection.
The selection square of a layer or sublayer is full-sized while all of its
visible, unlocked art is selected, and small while only some of it is. Hidden,
locked and template art does not keep the square small, a group counts as one
item (a selected member is not the group), and a layer with no such art shows
no square. Group rows are unchanged.
The panel finds these layers once per frame, in one pass over the layers and
their direct children, and the untargeted target circle of a layer reads the
same set.
Help page: https://helpx.adobe.com/illustrator/desktop/manage-layers/create-and-organize-layers/layers-overview.html
Gradient mesh points picked with the Mesh tool, Direct Selection, the
Lasso or the Polygonal Lasso now stay picked when another of these tools
is chosen, and when one of them lends Direct Selection for a Cmd/Ctrl
click, so a fill color chosen afterwards recolors just those points.
Before, only a switch to or from the Eyedropper kept them. Any other
tool, Group Selection included, drops them.
Session::switch_tool, lend_selection_tool and give_back_tool share one
test of which tools pick mesh points. Giving the tool back leaves the
lender's picks alone when they did not change, so the Mesh tool keeps
the point whose handles it shows.
Tests: crates/engine/src/tests/mesh_picks.rs.
Docs: docs/mcp.md, docs/target-app-parity.md.
A single-file PDF with Preserve Editing of an artboard range carries the
whole document, so a confined export of it checks the links on every
chosen artboard. The new test exports artboards 1-2 as one PDF, then
places an image linked outside the read roots on the second artboard
only and checks that the export is refused without writing its folder.
It also checks that assets.export refuses pdfs `single`, the source
that pdfs `single` does not accept.
Boundary points alone cannot show whether the width bends inside a segment:
two collinear vertices on the segment's ends let a single midpoint probe
accept a curve that leaves the chord nearer the ends. Require a flattened
point strictly inside the segment, and cover it with collinear vertices at
both boundaries of the rising span in the regression test.
Two follow-ups from the review of #8846. A profile segment with no flattened
point of its own is a straight run, and a single midpoint probe can match the
chord while the curve leaves it nearer the ends, so let the sampler measure
it. A window past the seam of a closed path (a dash crossing it) probed
profile positions past 1, where the widths wrap; shift the probes to the
window's own positions, as the sampler already does.
Both have a regression test that fails without its fix.
Whether a profile segment can reuse the flattened path's points was decided
from the whole subpath's point density, so a long straight run beside a
densely flattened curve counted points it did not have: the run drew its
width as one straight chord across the segment. Compare the width curve
with the points inside the segment instead, and keep reusing them where
they already follow it.
Reported in review of #8846. A 200 pt line whose second half is 128
collinear pieces now draws the same lens outline as the two-segment line
(1167.2 pt² against 1168.3 pt²), where the density shortcut left it at
1000.6 pt².
The end-slope removal leaves the profile's ends on their span's own slope;
say so in the interpolation and tangent docs, and keep the neighboring
comment wording.
Sample a profile until the straight line between samples stays within the
outline tolerance, in points, and fit the sampled edges at that same
tolerance. A profiled outline now covers the same area as the shape before
the smoothing (star with Wave: 15597.7 pt² against 15595.4 pt² on the same
fixture), while staying G1 cubics rather than one cubic per flatten step.
Profile interpolation again takes each run's own secant slope at its ends,
so a preset draws the shape it drew before the smoothing work.
* Text styles panel: add item right-click context menu (Options, Duplicate, Delete, Redefine)
* fix(text-styles): require text target for clear overrides and update parity docs
* Properties panel: add contextual Quick Actions for text (Create Outlines, Retype, Find and Replace)
* Properties panel: address review comments on Retype reveal idempotency, test assertions and parity docs