Writer::raster formatted every sample byte with write!("{:02X}") into a
separate String and then copied that String into the file body. The new
Writer::push_hex looks each nibble up in a 16-digit table and appends the
comment lines straight to the body, so a large image no longer holds a
second copy of its hex text. The written bytes are unchanged: upper-case
digits, 60 per `%` line, a newline after the last line and no line for
an empty image.
On the 36 MB of samples of a 12 MP RGB image, the hex step took a median
of 735.5 ms before and 90.8 ms after (7 runs each, both versions in one
release process). The gain matters on documents with large images.
A run whose family and style were split from a PostScript name, such as
Honoka and Mincho, now counts under the family of the installed font of
that name, as the font lookup finds it with both values. The wheel's
order over the closed field stays as it was listed at the first notch
until the pointer leaves the field or the selection changes, the
Document filter's families included.
With Show Tool Cards on, every tool button built and translated its card's hint lines on every frame to estimate the card's height. A button the pointer is not over now returns before that work.
The line under the Preferences fields now shows a sentence for each of
the 32 General settings, Enable Contextual Task Bar included, when the
pointer is over the setting's row or its control has the keyboard
focus. Screen readers get the same sentence as the focused control's
description. Each sentence states what the app does with the setting,
and every catalog has a row for it.
A test checks that every General setting has exactly one sentence, and
two more check the line on hover and on keyboard focus in General. The
test of a row without a sentence now uses Type > Size/Leading.
The Fold Lines panel kept one check for the whole app. Checking a second
document replaced the first document's result, so switching back to the
first document, unchanged since its check, showed no issues. The panel now
keeps the last check of each document by its id, and each result is still
shown only while its document has not changed since. Results of documents
that changed or closed are dropped when the next check is stored.
category_fields now returns the rows that carry descriptions, so the Show Tool Cards test discards that value in a block, as the other tests that call it do.
The Print dialog's General section (and the print preset editor) gets a
link button after Scale W and H. While it is on, typing either percentage
sets the other, and turning it on sets H to W. It is on for new settings,
dimmed with the fields unless Scaling is Custom or a tiling choice,
toggled with a click, Space or Enter, and screen readers hear its name
and on or off state. W and H now take 1 to 1000 %.
The link is saved as scale.linked with the other print settings, in the
document and in print presets. A scale saved without it reads as unlinked,
so earlier settings print as they did. print.setup, print.preview,
file.print and print.presets.save apply the same rules: one percentage
sets the other while linked, a different width and height without a
linked key turn the link off, and with linked: true (or linked: null over
a linked scale) they are an error.
The Trim at Crossings Tool joins the Scissors group in both shipped
toolbars, after the Knife, and stays in Object › Plug-ins › Path
Precision Tools. The All Tools drawer lists it once, in the Scissors
group, and Edit › Keyboard Shortcuts › Tools lists it once. It has no
default shortcut. A toolbar the user already edited keeps its saved
layout; Reset Toolbar adds the tool.
The Knife's cursor is now drawn as a knife, its blade's point on the
hotspot, instead of borrowing the crosshair. The Knife tool and the Trim
at Crossings Tool both show it. Use Precise Cursors still shows the
crosshair.
Suggested by erolka and leanma.
When a PDF's attachment name tree has more nodes than the editing-file
search reads (65,536), a confined package still copied the PDF if the
search had found a readable editing file, so attachments past the limit
went unchecked. The search now walks on after finding the editing file,
reading only the Kids, and records whether nodes were left unsearched.
Under read roots, file.package refuses such a PDF with the error for
editing data that can't be read, even when an editing file was read.
Opening the PDF is unchanged: it reads the first editing file found.
category_fields now returns the rows that carry a description, so the
Hold Shortcut Delay test's UI closure discards the value, as the other
prefs_dialog tests do.
With #8144, an edge pixel between black and white is read as a blend of
black and white when paths of up to 5 steps reach past a gray between
them both ways. On edges blurred by 0.6 pixel, the outer pixels of a gray
band 3 or 4 pixels wide along black also met that rule: their first step
outward is white, and the path toward black crosses the band's gray. A
3 px band at that blur kept 16 of its 48 samples gray, against 46 before
#8144.
When the first step of one path already stands for its color (the edge
on that side is sharp), the other path now stops at a pixel of the gray
it comes to before getting past it. Bands 2 to 4 pixels wide blurred by
0.6 pixel keep 306 of their 432 samples gray (207 with #8144, 324 before
it). Edges blurred by 1 to 3 pixels trace as with #8144, except that a
light gray (230) blurred by 1.5 pixels leaves at most 4 slivers of up to
3 pixels beside the disc.
The band test now also runs at blurs of 0.6, 1 and 3 pixels, the spoke
test at 2 pixels, and the stroke test's ranges are the measured ones.
The docs state the distance rule as the code computes it and limit each
measured claim to the blur it was measured at.
Under Include Bleed, a PDF row that sets no bleed now keeps the bleed values a saved PDF preset writes out and turns on useDocument, instead of replacing the whole bleed object. Its file key then matches a row of the same preset that asks for the document's bleed, so the two rows write one PDF.
links.unembed now reads `ids` of one image as `id`, and `id` with
`folder` as `ids` of that image, as the other commands that name both
keys do. `id` with `ids`, and `path` with `folder`, are refused with the
shared "give `a` or `b`, not both" error, in a replayed step too, and the
catalog rows for the old combined message are removed.
The export walks for type and fonts and the artboard crop shared one
SymbolBoxes for every object. A SymbolBoxes also holds measuring budgets
(effect reaches, 9-slice placements), so in a large document objects late
in a walk could be measured by estimates where main measured them exactly.
SymbolBoxes::unmeasured makes new boxes that share the name index, and each
object is measured in boxes of its own again.
- The live-object walk (render/src/live.rs) finds symbols through the
frame's SymbolBoxes.
- SVG export's filter regions measure each object in unmeasured boxes, and
the region boxes share the writer's index.
- SVG import keeps each imported symbol's index, so a symbol whose art
holds instances no longer scans or indexes the list again.
- Object › Rasterize's clipping mask is left as it is on main, with
drawn_outline_with removed.
- The symbol-read-count feature of vectorcraft-doc gives other crates'
tests vectorcraft_doc::symbols_read. New tests check that a frame, an SVG
export, a PDF export, the type walk and the artboard crop read the symbol
list once among 2,000 symbols and 300 instances with drop shadows.
A symbol dragged from the Symbols panel carries the document it came from. Dropped on the canvas after another document became active, it no longer places a same-named symbol of the active document: symbol.placeFromDocument adds the dragged symbol, with the symbols and resources its art uses, and places it in one undo step. A symbol with the same name, art and Symbol Options is reused; one with the same name but other art or options is added under a free name. The pointer chip shows the dragged symbol, and a symbol whose document was closed places nothing.
The Actions panel menu has Replace Actions… after Load Actions…. It
opens an action set file and replaces every set in the panel, the
built-in Default Actions set included, with the file's set, which keeps
its name and becomes current and selected. It reads .vcactions and .aia
files as Load Actions… does, with the same limits and reports. The item
asks no question first and is off while an action records or plays.
- ui.actionSet.replace {path? | data?} runs it and returns
{changed, set, name, actions} with Load's reports. Omitted params
count as {}; another type or key, or a path or data that is not a
string, is an error.
- A canceled pick, or a file that can't be read or is refused (an empty
one too), changes nothing. Replace records no undo step.
- Replace clears what named the old sets as Reset Actions does, and the
two share that code.
Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
A flattener option field holding a value of the wrong type showed the default preset's value, and typing that same value committed nothing, so OK kept failing. Such a field now shows blank, and every control the user sets writes its option into the dialog's fields, also when the value equals the one shown. This applies to Flatten Transparency and to EPS Options' Custom Transparency Flattener Options.
While a font is previewed from the menu, the Document filter reads the
document as it was before the preview, so the family the previewed text
had stays listed and the rows do not move under the pointer. A pick or
an undo still lists the families again.
- The warning now says a line does not change the result's shape,
since Unite, Intersect, Exclude and Minus Back still give the result
the frontmost object's paint, a line's included. The rows in every
complete-message catalog follow.
- When a closed path without area leaves the result empty beside a
line, the error no longer names the line: the check that decides
whether the line emptied the result now keeps closed paths among the
other shapes and leaves out only open paths that enclose no area.
- node_path's doc comment is back on node_path.
- docs/mcp.md adds a line in front in Minus Back to the cases whose
error names the line.
- The test adds a line in a compound path, a group of a line and a
square selected alone, a line in front in Minus Back, and a flat
closed path beside a line in Intersect.
The Variables panel built its rows on every frame while it was open: the
list's order, each variable's bound objects and object name, and each data
set's drift check, which reads the text of every bound story and the data of
every bound graph. The rows are now kept and built again only when the
document version, the list's order, Identify Objects By, the interface
language or the document's new art on a locked artboard changes. The
selection and the highlighted row are still read on every frame, and the
rows are the same as before.
A sixth Image Trace View, Split View, draws the source image on the part
of the image left of a divider across it, and the tracing result
everywhere else, art past the image's edges included. The divider
follows the image's own width, so it turns with the image, and it works
at any zoom and view rotation. Each side is drawn once under a plain
clip; exports, printing and Expand still draw the tracing result.
- imageTrace.setView takes view "split" and split (0 to 1, default
0.5). A split outside 0 to 1, or one that is not a number, is an
error. The object keeps the divider when another view is set and when
it is traced again, and setting the same view and divider adds no
undo step.
- With one such object selected, the Selection tool drags the divider
as one undo step, and Escape cancels the drag. The divider is hidden
and cannot be dragged with the bounding box hidden or in Outline mode.
- The Image Trace and Properties panels show a Divider slider that the
arrow keys move a percent at a time, named for screen readers.
- The catalogs gain rows for Split View and Divider (all but gu, which
has no Image Trace rows).