The three buttons act on the last color clicked (__color). After a change of reduction or color count, or through ui.dialog.set, that color can be one the table no longer shows, and a click added it to locked, transparent or webShift. The buttons are now enabled only when the table shows that color, the same check Delete Color uses.
A fill or stroke such as {"swatch": 123} gave no paint, so shapeBuilder.copyRegion and shapeBuilder.merge used the current paint. Both commands now report it as a bad fill or stroke.
Double-clicking one of several Shift-selected width points with the
Width tool now keeps the selection and opens Width Point Edit for all of
them; a double-click on an unselected point still edits that point
alone. ui.widthPointEdit takes {id, indices} for the same dialog, and
refuses an empty, malformed or out-of-range list, or indices given with
index or t. Either half of a discontinuous point brings the other.
Side 1, Side 2 and Total Width show a value only where every selected
point has it, and are blank otherwise. A side width typed in sets that
side of every point and keeps each point's other side (both sides with
the link on); Total Width scales each point's own two sides. With a
discontinuous point among them, Incoming and Outgoing edit its two
halves and both edit the continuous points. OK sets them all with one
stroke.widthProfile.set, one undo step, and nothing when no width
changed; Delete removes them all. With Adjust Adjoining Width Points,
each changed point changes the nearest unselected point before and
after it in proportion to its change since the dialog opened. OK and
Delete are refused when the points moved or changed since the dialog
opened.
Help page: https://helpx.adobe.com/illustrator/using/stroke-object.html
describes Shift-clicking to select several width points and setting
Side 1 and Side 2 for all of them in Width Point Edit. The blank fields,
keeping each point's other side, per-point Total Width and the adjoining
rule for several points are VectorCraft's own.
docs/mcp.md said every solid exports as one mesh. A solid with mapped
graphics is split into a textured mesh for each face that carries them
and a plain mesh for the rest.
List type.retype among the commands plugins may call. Only closed shapes
match glyphs. Live type, images and other art between glyphs, and
unselected art between selected objects, end the line. Each selected
object's own parent decides its group. Retyped type turns ligatures off,
as the outlines drew each glyph on its own.
In a window narrower than 352 points, messages narrow to the window's
width less the stack's margins, with 32 points as the least, and the
text wraps to that width. A message the app queues with Session::toast
shows for 0.5 to 60 seconds, as app.toast allows; a time that is not
a number shows for 4 seconds.
DocState::proxy_mixed, which decides whether the Fill and Stroke proxies
show "?", walked every node of the document to find the selected
objects, even with one object selected. The Tools panel proxies, the
paint chips and the task bar ask for it on every frame whose revision
changed, which includes each frame of a drag preview, and new art asks
for it after a selection change.
Document::nodes_in_order finds every node with one of the given ids in
tree order. When the id cache holds each id once at a path that still
checks out, it reads the nodes along those paths; otherwise, and for a
selection of an eighth of the document or more, it walks the tree once,
as before. Unlike Document::index_paths it returns every node with a
repeated id, so a damaged file that repeats an id keeps the question
marks it had. proxy_mixed now gathers the selected objects through it.
Tests compare the result with a copy of the old walk for one object,
different fills and strokes, a group, a group with one of its objects,
two layers, a hidden object, Appearance items, picked gradient mesh
points beside another object, ids not in the document and a repeated id
with different paints, with the cache built and dropped, and for 200
random selections. A cost test shows that with one object selected only
that object is read and the tree is not walked. Document tests compare
nodes_in_order with a walk.
The gain shows on large documents. On 50,000 rectangles in 500 groups
on 5 layers (release build on Linux, thread CPU time, median of seven
alternating runs of both versions in one process; an ignored test,
proxy_mixed_timing, times them):
Selection old new
1 object 995 us under 5 us
2 objects, different fills 810 us under 5 us
a group of 100 875 us 5 us
all 500 groups 3,615 us 2,575 us
all 50,000 objects 4,075 us 3,470 us
Web shift and web snap now run before lossy compression again, so a pixel
is compared with the color its neighbor's entry is written as. Colors
shifted by hand are written after lossy, which still moves no pixel into
or out of them.
A path with too many segments for a window's map is left out of it. The finder treated such a path as cutting the area whenever its bounding box met the area, so a path made of subpaths far apart on either side of an area made the finder map every path, which fails past the segment limit, and the area could not be filled. The finder now checks the path's segments.
With one image selected, the Control bar's object label, Linked File or
Embedded, is an underlined link. A click on it shows the Links panel
wherever it is docked or floats, scrolls the list to the image's row and
shows the image's details in Link Info. The help page
(https://helpx.adobe.com/illustrator/using/links-info.html) describes
clicking this label for a selected linked object as a way to open the
Links panel.
VectorCraft's own rules: the Embedded label opens the panel too; the
click opens Link Info when it was closed; and a Show filter that leaves
out the image's row goes back to Show All. The panel's sort, thumbnail
size and DCS option keep their settings, and a panel that is already
shown stays where it is. The label of any other object stays plain text.
While Type > Find Font... is open, the dialog ran text.fonts on every
frame, and the missing-font walk on every frame where a folder picker is
available. Each walks all of the document's type and resolves its fonts.
The dialog now keeps both answers for the active document's uid, the
version of its content and the font database's generation, and works
them out again only when one of those changes. A new selection keeps
them. The list, its counts and statuses, and Find in Folder... are the
same as before.
With 2,000 point-type objects of 50 characters each, this took a median
1.53 ms of thread CPU time per frame in a release build on Linux; later
frames of one version now take about 10 ns. With 20 such objects it took
58 us per frame.
With the Anchor Point tool chosen, dragging a direction handle with Alt
held now links it with the opposite handle and makes the anchor smooth,
on paths and on a selected blend's spine. A drag without Alt still moves
one handle on its own, an Alt-click still retracts the handle, and the
Pen with Alt keeps moving a handle on its own.
- path.setHandle and object.blend.spine.moveAnchor take link: the other
handle turns in line at its own length; a retracted one is pulled out
to the dragged handle's length where a segment leaves the anchor on
its side, and stays retracted at an open end. A request that changes
nothing records no undo step; link with independent, a non-boolean
link and, for the spine, link without handle are refused.
- Anchor::set_handle measures long handles without overflowing, so
turning a very long handle no longer writes NaN or infinite points.
- The two new error messages have rows in the message catalogs.
Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
`token` on a string copied everything left in the string before scanning
one object, and `search` and `anchorsearch` copied both strings before
comparing them. A program that walks a string by what each call leaves
copied the rest of it on every call. All three now read the strings in
place and release the borrow before the scanned object is checked
against the budget and before the results are pushed. Results, errors
and the operations charged against the budget are the same as before.
Walking a 512 KiB string takes 16 ms instead of 518 ms with `token` and
1.0 ms instead of 27 ms with `search` (release build on Linux under load
from other builds, median of 7 alternating runs); on a 4 KiB string the
difference is under 0.1 ms.
Tests in tests_strings.rs compare each operator with the copying code on
the same operands (stack, error and operations left after every call),
check that the results see later writes to the string, and check that
no string is copied.
Art dragged off the canvas and released with Alt (Option on macOS)
held over a pattern swatch now becomes that pattern's tile art,
through the new object.pattern.replaceArt command, as one undo step.
Every object painted with the pattern draws the new tile. Before, the
drop made a new pattern swatch whatever the modifiers. The help page
describes replacing a pattern this way, with the pattern updated in
the file:
https://web.archive.org/web/20220911143322/https://helpx.adobe.com/pdf/cs6/illustrator_reference.pdf#page=226
The pattern keeps its name, swatch, tile and options (Size Tile to Art
refits the tile), and the dragged art stays on the canvas, selected.
Art that matches the tile art records no undo step. The command is off
while a pattern is edited, and refuses art painted with the pattern
itself, directly or through symbols, other patterns, graph designs,
brushes or a graph's stored paints. Alt over any other swatch, or a
drop without Alt, still makes a new pattern swatch.
Docs: docs/mcp.md, docs/target-app-parity.md.