A script that read or assigned a document's defaultFillColor,
defaultStrokeWidth or another default paint member, or read scaleFactor,
got undefined. The twelve default members now read and set the fill,
stroke and stroke options of the next object drawn, and scaleFactor
reads 1.
- appearance.setNewArt sets new art's fill, stroke and stroke options
whatever is selected, leaving the selection, its art, the active proxy
and Recent Colors as they were. Every value is checked before anything
changes.
- The default members run it only when the value changes. A bad value
throws an error with nothing changed.
- paths.rs shares its dash length checks with defaultStrokeDashes.
The New Document dialog that main moved to the framework showed a
preset's stored column count for a grid by column made with file.new's
rows, and kept the rows when the layout or Columns changed. Columns now
shows the columns those rows give the current number of artboards, a
new layout keeps that count, and a new column count replaces the rows,
as the dialog did before the move.
When a group or compound path is selected together with one of its
paths, and that path also has its own anchor or segment pick,
selectedPathPoints and PathPoint.selected now report the path as
selected as a whole, as docs/mcp.md says for a path in a selected
group. Before, the path's own pick was reported instead.
The two Direct Selection preference tests in
crates/ui-egui/src/tests/removeanchors.rs now use
crate::testing::ui_context() and app.canvas_view() to place the click,
as the other canvas tests on main do.
The Import PDF dialog now lives in the craft dialog host, so
an_empty_password_still_asks_for_the_password closes each dialog with
cancel_by_id and checks it with the file's dialog_id helper instead of
app.ui.dialog.
Since the port the manager drew the list, its buttons, the preset's name
and its settings in one column, with the name in body type. The list and
its buttons are now one column and the name and settings a second, as in
production and as Perspective Grid Presets lays out the same sheet. The
name is set in BodyStrong, and "Presets:" and the built-in note are muted
captions.
New test: the settings start right of the list's buttons and level with
the list, and the name's font differs from its list row's.
A framework container may run its body more than once in a pass. The HP-GL pen rows now draw
from the dialog's values on every run and report a typed color, Remove, Add and a swatch press,
which apply once after the rows; the picker opens after them. A picked pen color is no longer
left unread when the table is longer than a plot takes. The classic 3D surface navigator and
Map Art buttons, Bevel Shape, the light's Add and Delete buttons and its color row, Stylistic
Sets, the Adjust Colors channels and the Color Guide Options sliders use Row and Stack the same
way. A Stack's measuring run no longer writes the values the Adjust Colors and Color Guide
Options rows edit.
- New test: with area type selected, the vertical alignment buttons leave
the bar before Opacity, Recolor Artwork and the Style picker, and the
Align buttons after them leave first. It runs with the Character and
Paragraph groups shown and with both turned off, so it covers the
vertical alignment group's rank and the Align strip's rank when only
vertical alignment shows.
- The `rank::TYPE` doc comment now says where the rank sits: type groups
leave after Select Similar, Snapping and the X/Y/W/H fields, and before
every other member.