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.
The test for a script's file dialog with two picked files checked only that a
group named Picked files exists. It now walks that group's accessibility
children and checks that /picked/a.txt and /picked/b.txt are among them, so a
group drawn without the paths fails the test.
The Art Brush Options test now reads labels only from the radio button
nodes that Segmented gives its segments, so a tooltip label on another
node no longer passes it.
After Find Objects with `select` runs during a drag, the drag's own
selection is journaled before its release, so the expected journal is
document.find, select.set, shape.rectangle.
The Color Picker's OK for a color table cell now shifts the color in the
table at once, so Done or Save before the dialog draws again keeps the
shift. The table marks list a color written twice in one list once.
- 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.
Document.selection treated undefined like null and cleared the selection.
It now throws a TypeError for undefined, as for any value that is not a
page item, a list of them, null or [], and leaves the selection as it was.
A link in the grants file's place whose target is missing is there but
cannot be read, so script.grants fails on it and script.grants.revoke
leaves it as it is, instead of treating it as a missing grants file.
The Paragraph Style Options Tabs buttons, the Script File Access list, Split Into Grid's
fields and the 3D Bevel heading are framework components, as the rest of their dialogs are.
- Paragraph Style Options › Tabs: Add, Delete Tab and Clear All Tabs are framework buttons
in a row.
- Script File Access: the list of picked files is a scrolled stack named "Picked files",
up to 120 pt high before it scrolls. New test
`tests::script_run::a_scripts_file_dialog_lists_several_picked_files_in_a_named_group`.
- Split Into Grid: the fields are a framework grid of two columns, rows on the left and
columns on the right; before, the egui grid inside the form drew the Columns fields over
the Rows fields. New test
`dialogs::tests_accessibility::split_into_grid_lays_out_its_fields_above_add_guides`.
- 3D Bevel: the heading is a section named Bevel with Reset as its control. New test
`dialogs::revolve::tests::the_bevel_heading_is_a_section_between_cap_and_bevel_shape`.
Zig Zag's Ridges per segment, the bevel's Repeat and Revolve's Segments are counts and show
no unit after the number, as production's did; before, Ridges showed a percent sign and
Repeat and Segments showed px. Roughen's Detail no longer shows a percent sign either.
Production showed "/in" after it, and craft-libs has no per-inch count unit for that yet,
so it shows no unit. New tests
`dialogs::effect::tests::zig_zag_ridges_and_roughen_detail_show_no_percent_sign` and
`dialogs::revolve::tests::the_bevel_repeat_and_the_revolve_segments_show_no_unit`.
RetypeRun::prepare no longer reads font files: the loaded faces to compare
first are picked when the search runs, off the UI thread. The Retype Fonts
list leaves room for installed fonts by the loaded matches it lists, so a
face that matches only as combining marks takes no place.
A menu.after value with a control character at either end, or longer than 64 characters before its
spaces are trimmed, is refused with the same error as other wrongly shaped values.
The Print dialog never set the framework dialog's driver controls, so
the printer row had no Setup… button and print.printerSetup could not
be reached from the dialog.
- The row shows Setup… when the print service can open printer
settings and the destination is a printer. For PDF File, and when
the service cannot open printer settings, the row has no Setup….
Before the port the dialog showed the button disabled in those
cases, with a tooltip; the framework's printer row can only show or
hide it, so it is now hidden and has no tooltip.
- The pump sets the controls after the frame has drawn the row, so
a change of printer shows on the next frame. The pump asks for that
frame when the controls change, and the row updates without waiting
for input.
- A Setup… press while no printer settings are available is ignored.
Labels drawn with raw `ui.label` and `ui.weak` in the Export As, DXF,
EPS, HP-GL, PNG, Simplify, Map Art, Print and Save Options dialogs and
in the Graphic Styles and Layers panels now use the framework's Text,
so each one is in the accessibility tree. The hints under the export
dialogs and the Layers footer count use the caption role in the muted
shade. The Print Summary rows are selectable text named Pages, Options
and Warnings.
The Stroke panel and the Swatches library menu draw their separators
with Divider. The HP-GL pen error and the kinsoku set problem show as
an inline Notice in the bad tone and are announced as alerts, and the
legacy .ai artboard note shows as an info Notice.
The Art Brush Options Direction segments are arrow icons with the
tooltips Left to Right, Right to Left, Top to Bottom and Bottom to Top,
and a screen reader reads those names instead of the arrow glyphs. The
app's icon set gains left and right arrows drawn like the existing up
and down arrows.
- remove() on the last path of a compound path keeps the compound path,
empty, as move() does, so a script that holds it can still read it.
edit.clear takes keepEmpty: true for this, and passes it on to
path.deleteAnchors when it deletes direct-selected anchors; without
it, Clear still deletes a compound path it empties.
- note, like name, takes a number or a Boolean as the text String()
gives it.
- Assigning a graph mark or label the opacity it already has throws
Cannot edit in a hidden or locked layer when the graph keeps another
opacity for its series or kind, since the assignment would still
change the graph.
- Only the exact opacity the getter reports counts as the opacity an
object already has; a value that differs from it by less than 0.0001
is now applied instead of being dropped.
- Reading a document's selection orders only the selected objects, by
their place in the tree, so its cost no longer grows with the size of
the document.
- docs/mcp.md: the opacity exception, note, keepEmpty, and that
strict-mode code throws a TypeError when it assigns a member an object
lacks.
Docs: docs/mcp.md.
- zOrder() on an object in a hidden or locked layer throws Cannot edit
and changes nothing, as the other setters do.
- Assigning an object the opacity it already has no longer throws when
its layer is hidden or locked. hidden and locked are still refused
there, whatever the value.
- The docs say that a top-level var selection = ... assigns the
selection, that the selection order and the tab order of documents
differ from the objectReferences page, and that assigning a member a
collection lacks throws Not found.
Docs: docs/mcp.md.
The rows of controls that sat in raw horizontal layouts inside framework
containers are the framework's Row, Stack and Grid.
- Stroke: the Arrowheads row fills the field. The two heads share the
width Swap leaves, and Swap moves to a new line when all three do not
fit. Before, the row ran past the panel's right edge. The Profile row
is a Row.
- Color Themes: the Create tab's hex row is a Row, so its two buttons
stay inside a panel at its least width.
- Color Wheel: the rows are a Stack, and the top row is a Grid with the
proxy at its content width and the wheel or the box beside it. When the
box and its strip do not fit beside the proxy, they go under it. Before,
the strip ran past the panel and was as tall as the room.
- Align panel, Properties panel's Align row, Control bar's Align strip and
paragraph row, Paragraph panel's lists row, and the gradient stop
editor's two rows are a Row. They lay out as before.
With no importer plug-in installed, File › Open With held only the heading
"No importer plug-ins installed". The menu layout drops a heading with no
item after it and then drops the submenu it leaves empty, so Open With
disappeared from the File menu. Object › Plug-ins lost its "No filter
plug-ins installed" heading the same way, since a separator follows it,
and so did File › Scripts' notes ("Some scripts were not listed", "The
Scripts folder cannot be read" and the loading notes).
These rows are now a disabled placeholder item, the form the menu layout
keeps for an empty list. The item runs no command and shows its text in
the UI language. The menu listing, the macOS menu bar and the
translation tests treat it as they treat a Coming Soon row: disabled,
with no command.
The Character and Paragraph groups were drawn without a rank, and a member
without a rank never leaves the bar. When type's controls did not fit, every
ranked member ahead of them left instead: Snapping, the width profile, Recolor
Artwork and then Opacity.
- A new `rank::TYPE`, below the other ranks, ranks the Character group, the
Paragraph group and area type's vertical alignment buttons, so they leave
before the members ahead of them.
- With type groups shown, the Align buttons after them take the same rank and,
coming last, leave first.
- `text_style` is looked up only when the Character or Paragraph group is on.
The new test narrows the bar step by step with a text object selected and
checks that Opacity, Recolor Artwork and the Style picker show at every width
that shows the Character group.
Each Window menu row ran `window.panel {panel, toggle: true}`, while the
panel's shortcut entry (`panel:<id>`) binds `window.panel {panel}`. The
menu row was a separate command with no binding, so no Window row showed
a chord, as production's did.
The rows now name the command the shortcut runs, and the catalog holds
one command per panel. `ui.menu.list` still lists each Window row with
`toggle: true`, and a click on the row runs those listed params, so a
click puts a showing panel away as before. A plug-in row that shows a
panel the Window menu does not list (Fold Lines) keeps its params.
- Paintbrush, Blob Brush and Eraser options: the tip dabs draw in a
framework picture at the small sample size, in the muted and normal
text colors.
- Calligraphic Brush options: the nib preview's paper, nib and guide
grays draw as data colors, its guides at the thin stroke width.
- Graphic Styles: the large tip's texture, and the white tile a
thumbnail shows before it loads, draw through the framework painter.
- 3D Classic: Map Art's preview takes the plot size and item gap; the
track cube and Map Art share one set of documented surface grays.
- Transparency: the object thumbnail's fill draws as a data color, and
a disabled mask's cross at the thick stroke width.
- Swatches: None's slash and a disabled mask's cross share one red,
drawn as a data color at the medium and thick stroke widths.
- Revolve gizmo: the axis letters, light labels and readouts are text
runs in the label type role, and an axis letter's plate grows with
the letter.
The recolor and exclude toggle on each Recolor Artwork row asked for the
icons dc-recolor-arrow and dc-recolor-arrow-off, which no icon set had, so
the button drew nothing. The two icons are added: a right arrow for a row
that is recolored and a dashed line without a head for a row that is
excluded, each with its ASSETS.md row and icon_data.rs entry.
A new test, icons::tests::every_icon_id_literal_and_panel_icon_resolves,
reads the crate's source and checks that every icon id written as a
literal or a const, and every icon panel's and dock tab's icon, resolves
in the icon catalog or the app's own set. It fails without the two
icons.
A dialog's custom row drawn as a raw egui layout measured as wide as the room it was offered, so DXF Options, New
Swatch, PNG and JPEG Options and Radial Blur opened at the window's full width. The rows in the export options, Save
Options, Document Setup, Swatch Options, the effect rows, the Clean Up and color add-ons, the edit toolbar, Edit
Original and the preferences file buttons now use Row and Stack.
A framework container may run its body more than once in a pass. Presses and picks inside a body are kept in locals and
applied after it: the HP-GL pen rows apply Add, Remove and the Pen Table switch once, and the legacy board picker
toggles a board once.
document.find with `select: true` is journaled, so during a tool drag it
now runs outside the drag like other journaled commands. It finds and
selects only objects outside the drag's preview, as its replay before
the drag does.
Main moved Save for Web's color table edits to dialogs/save_for_web/color_table.rs. The 256-shift limit and the matching of colors written another way now live there, with their tests in tests_table.rs.