docs/mcp.md's Width profiles section says which commands the footer's
Add to Profiles, Delete Profile and Reset Profiles run, and the
progress doc gets a line for the footer with its tests.
The ProfileSelect doc comment named another vendor's app; it now says
what the drop-down holds. The closed and open widths, the Page Up/Down
step and the saved-row thumbnail size are documented consts, and the
thumbnail's size and inset are no longer literals at their call sites.
The framework's Select, which the Profile control used before, reports
the picked row's place in the list as a numeric value and takes
AccessKit's SetValue, Increment and Decrement. The new drop-down set
only a text value and never read take_set_value, so a screen reader
could no longer step or set the profile. ProfileSelect::access now sets
access.numeric with the row's place and label, and update takes
SetValue and the step moves before its focus check, as Select does.
The clip-outline check behind `pathItems.removeAll()` measured each
subpath by its signed area. The loops of a figure eight turn opposite
ways and cancel, so the check treated the outline as enclosing nothing,
although both fill rules fill it. A subpath whose signed area is within
roundoff of zero is now measured by the area it fills under nonzero.
A subpath whose points all lie on one line still encloses nothing.
The footer's Add to Profiles saved the profile at once as "Width Profile
N". It now opens the same name dialog as the Stroke panel's menu item
Add to Profiles…, as on main, and saves nothing until OK.
stroke.widthProfile.move, Prefs::width_profile_order, the drag and Move
Up/Move Down reordering, stroke.widthProfile.rename and the row menu's
Rename item are taken out, along with their tests, so this change holds
the drop-down footer alone. Reordering and renaming go to their own pull
requests. Dragging a row onto the footer's trash button goes with the
row drag. The engine's width profile commands are now the same as on
main.
A saved row's right-click menu keeps Delete Profile; built-in rows have
no menu.
Delete Profile removes saved profiles only, as on main: the engine
refuses a built-in name again, Reset Profiles clears the saved ones, and
the hidden_width_profiles preference is gone. Hiding a built-in also
made stroke.set {profile: "lens"} fail with "unknown profile lens".
The command's enable check goes back to has_saved_profiles. The check
added here passed whenever a built-in other than Uniform was listed, so
a key press ran Delete Profile with nothing to delete and
shortcut_editor::tests::listed_commands_run_from_a_key_without_a_missing_param
failed.
In the drop-down, the footer's Delete Profile, the row menu's Delete
Profile and the trash drop target act on saved profiles only.
rasterize_as took eight arguments and carried an allow for Clippy's
too_many_arguments lint. The region and the pixel size it fills now go
in as one pair, so the function stays within the limit without the
allow.
With an add-on dialog previewing (Arrange in Grid, for example),
File > Place ran inside the preview's interaction, because every
`file.*` command other than `file.documentColorMode` was treated as one
that reads the drawing on show. The placed art went into the preview
document with no undo step of its own, and Cancel removed it.
`file.place` now runs on the document without the preview, as other
edits do: it records its own undo step and stays after Cancel and OK.
Save, Export, Copy and the other `file.*` commands still act on the
drawing as the preview shows it.
Docs: docs/mcp.md (undo/redo row).
The Layers panel footer showed Create New Layer as `file-plus` and
Create New Sublayer as a plain `+`. Clicking the `+` to add a layer
made a sublayer inside the current layer, which the panel shows as a
row with a disclosure triangle under it.
Create New Layer now shows `dc-new-item`, the icon New Swatch, New
Brush, New Symbol and the other panels' new-item buttons show, and
Create New Sublayer shows a new `dc-new-sublayer` icon: a layer row with
a new-item square nested under it. The commands the buttons run are
unchanged.
The icon change follows Milo-IZ's #10651.
Takes main's craft-libs rev 4f3e34d0dd. Character Style Options and Paragraph Style Options canvas support and their two tests move to #10953, which waits on storytold/craft-libs#5510.