tool.setOption checks every option with the tool's check_option before
it sets any (#7366). The Tangent Circle Tool now accepts `radius` from
0.01 to 1000000 pt and gives an error for a value outside that range,
one that is not a number, or any other option. Without the check the
tool's options dialog could not set the radius.
Part of #7178.
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 canceled press on the second segment (a canceled touch, a second
finger) draws nothing and leaves the first segment picked. A canceled
press that picked the first segment leaves no segment picked. Before
this change a canceled press worked as Escape and forgot the first
segment.
- Shift pressed or let go during a click on the second segment, before
the pointer moves far enough to start a drag, counts at the release:
the circle is looked for again with or without the tool's radius.
- A session test sends the tool's release with a command that fails and
checks that the first segment stays picked.
- The radius option's test checks that a value outside 0.01 to 1000000,
or one that is not a number, leaves the radius as it is.
Docs: docs/target-app-parity.md lists every kind of circle the tool
leaves out: circles whose nearest point on the second segments is not on
the circle, circles that cross the first segment, circles that touch
both segments at one point, circles without a finite radius above 0, and
circles too small or too large for three of their points to give them
back. A circle found twice is kept once. docs/mcp.md says that in a
drag the circle touching nearest the press is drawn, and that the
radius option is not checked yet.
Part of #7178.
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.