When every shape is left out because it would have no size, for example
Add Bounding Rectangle on a straight horizontal line, the error is now
"the shape would have no size" instead of "nothing to enclose", which
stays for objects with no outline. A shape that would reach more than
4,000,000 pt from the origin, for example with a very large `offset`,
is refused with "the shape would reach past the edge of the canvas"
before anything is drawn. Both messages are in the 24 catalogs that
translate messages.
The params text of addon.pathtools.boundingCircle now names the
sublayer rules that docs/mcp.md states: sublayers that clip their
contents count by their clipping paths, other sublayers by their shown
objects. Both commands' params text lists the errors.
The menu items open no dialog and draw one shape around the whole
selection with no offset. docs/ui-parity.md, docs/target-app-parity.md,
docs/mcp.md and the ROADMAP line now say so, and name `each` and
`offset` as command parameters only.
New tests: the menu items in vectorcraft-ui-egui, the canvas-edge error
in vectorcraft-engine, and shapes::convex_hull in vectorcraft-geom.
A range, mixed or spinner field that committed text it could not read
(`abc`, `(10+5)*2`) returned nothing and did not mark the commit as
refused. Enter in such a field then confirmed an open dialog with the old
value, and in Save for Web's Optimize to File Size rows it ran the search
with the old size.
The field now refuses that text as unit fields do: it flashes, shows its
value again, and the Enter does not confirm the dialog.
The writer passed no language to craft-pdf, so exported and printed
PDFs had no /Lang and accessibility checkers failed primary-language.
Writer::new now passes the BCP 47 tag of the Document Setup language
(new vectorcraft_doc::setup::language_tag, en-US by default) through
write::Writer::new_with_language, which writes the catalog's /Lang and
the XMP dc:language. A language with no tag writes none. /MarkInfo is
left for tagged PDF (#3643).
A marquee across the shapes that the geometry effects of a symbol
instance's active fill or stroke paint outside its box now selects the
instance, as a click there does. An image is likewise touched where its
own fills and strokes paint outside its frame. Outline mode keeps the
box alone.
The engine test now names the head each style draws (Filled a filled
triangle, Open an open triangle, Tick a slash, None no head) instead of
comparing the dimension line with ArrowStyle::arrowhead, which the
engine itself calls. It moves to crates/engine/tests/it/dimensions.rs.
The Arrow Style previews take each style from a constant list in the
order of the dropdown entries instead of parsing the entry's value
every frame, and a test checks that each entry's value matches its
style.
Part of #8049.
With the preview panes at their narrowest (a 640 by 400 window), Preview
in Browser was drawn over the Download list. It now goes on a row of its
own below the Zoom and Download lists when the panes are too narrow for
it beside them. The Save for Web test checks that it clears the list.