While Alt (Option on macOS) is held, the dialog's Cancel button reads
Reset. Reset puts the remembered settings back, or the defaults when none
are remembered, on the current document's active artboard. It drops a
pending preset, a pending Done left by a Done that failed, the preset name
being typed and the selected color table entry, and keeps the view, zoom,
connection speed and path. It does not remember or write anything, and the
dialog stays open. `ui.dialogReset` does the same.
With the Flare tool, an Alt-click (Option-click on macOS) now draws a flare
centered at the click at once, with the tool's current options, instead of
opening the Flare Tool Options. Alt counts when it is held as the button goes
down; a drag with Alt draws the flare in two stages as before. While the
perspective grid shows with an active plane, the flare is drawn on that plane
from the click, as the dialog's OK draws it, and a click the plane cannot take
reports the error. A plain click still opens the dialog.
The line under the Preferences fields now shows a sentence for each of
the 14 Selection & Anchor Display settings when the pointer is over the
setting's row or its control has the keyboard focus, and screen readers
get the same sentence as the focused control's description. Each
sentence states what the app does with the setting: the Snap to Point
sentence says that the Smart Guides Snapping Tolerance applies while
Smart Guides is on. Every catalog has a row for each sentence.
The test that every General setting has one sentence now covers
Selection & Anchor Display too, and two more check the line on hover
and on keyboard focus in that category.
While the Type tool edits text, the Properties panel's Character section
showed the font family and style of the text object's first run. It now
reads character::text_style, as the Character panel, the Control bar and
the Contextual Task Bar do: the first selected character's style, or the
style of the character before the caret. With the Selection tool it still
shows the first run's.
Fixes#8189.
A trim checked and changed the selection once for every trimmed path
and every piece, and each check or removal went through all selected
objects, so a trim of thousands of selected paths spent time
quadratic in their number on the selection alone. The command now
reads the selection through a set and removes and adds objects once
at the end. The resulting selection is the same as before, including
object order, the key object and key anchor, the direct-selected
anchors and segments, and the fields that a change to the object
selection clears.
Package copied a placed EPS file as it is, but did not read the native
document a VectorCraft EPS file carries, so the images that document
links stayed out of the package. Placing the EPS reads that document
and looks for its linked files, so once the original folder was gone
the packaged copy showed only the previews.
Package now reads the carried document of a placed EPS or PostScript
file the way it reads a .ai file's editing data, and copies the files
it links beside the EPS file's copy, which finds them there by name.
Cut Path at Selected Anchor Points cleared the selection and then added
each cut path in turn, and each add searched the paths already added, so
selecting the cut ends took time that grows with the square of the number
of cut paths. The command now selects them with one Selection::set call,
which skips repeats through a hash set and keeps the order in which each
path first appears, and then adds each cut end's anchor. The selection is
the same in every field; a new test compares it with the one-by-one build
on open, closed and multi-subpath cuts, long lists and an empty list.
The gain shows on large documents. With the 8 middle anchors of each of
5,000 open paths of 10 anchors selected, building the selection of 40,000
cut ends takes 9.7 ms instead of 232 ms of CPU time, and with 2,000 paths
3.2 ms instead of 39 ms (medians of 7 runs of the new
cut_path_select_bench example, both ways in one process).
The font menu's Recently Added chip, on its own row under Font Technology,
lists only the installed families with a font file created in the last 30
days, the newest at the top. It combines with the search, script, kind,
Variable, star and Document filters, lists the recently used families in
the same order without the Recent Fonts section, leaves Show Similar Fonts
to order only these families, steers the closed field's wheel, and is
shared by every font menu for the session.
The font scan keeps each file's creation time, and
FontDb::recently_added(now) dates a family by its newest file at or
before `now`, the 30th day included. Files without a creation time or
dated in the future do not count, and families added at the same instant
are in name order. The open menu lists a family no longer once its 30
days end.