The one-column Tools rail stacked Search above Edit Toolbar in its
footer. The extra row made the default rail taller than a 1000 pt
window holds, so the rail scrolled and Edit Toolbar was out of view.
A one-column rail now shows Edit Toolbar alone. Search Commands stays
in the title bar, Help > Search Commands... and its shortcut. The
two-column rail keeps Search beside Edit Toolbar.
Tests: one_column_rail_shows_edit_toolbar_in_a_1000_point_window; the
#8758 layout test checks the one-column footer, and the search query
test runs on the two-column rail.
* Tools: add search beside Edit Toolbar
Open the existing tool-aware command palette from the Tools footer, preserving the customization button and fitting both column layouts.
Closes#8758.
* Format the toolbar Search interaction regressions
* Format the native Search tooltip expectation
* Use the current stroke paint API in Properties
* Scope app-bar test lookups to the title bar
---------
Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
- hasSelectedArtwork = true on a layer with nothing to add runs no
command even when the selection already holds more than 10,000
objects; a layer whose art would take the selection past the limit
still throws a RangeError.
- artboards.insert() returns undefined.
- Reflection gives Artboards.index an Artboard result and any key, and
PageItems.parent any type, since layers, groups and compound paths
have their own collections.
- The node.move test now requires the move of a clipping path to its
own place to succeed, and the opacity test changes the item whose
opacity it set.
- docs/mcp.md and the M13 roadmap line describe the changes and list
Document.pathItems as available.
blend_render_consistency, direct_handle_mirror, ellipse_drag_anchors,
eraser_open_fill, group3_reference, path_fill_hits, pen_space_handle,
preflight and scissors_snap were each a test binary of their own. They
now are modules of crates/engine/tests/it, with their tests unchanged,
so the engine's tests link nine fewer binaries.
The files that stay separate change process-wide state (installed
plug-ins, Safe Mode, the font database, color settings, the working
directory), are run by name from CI or xtask (the Affinity corpus
tests, script_corpus, import_fuzz), or compile for about a minute on
their own (command_sweep), which would make every edit to tests/it
rebuild it.
Docs that named the old paths name the new ones, and the preflight
command in docs/production-preflight.md runs `--test it preflight::`.
Main took its own host class engine, member descriptions for reflect, a
topmost-first pageItems order, revert-aware handles and the New Document
More Settings rework. The merge keeps main's versions of crates/js and
crates/ui-egui/src/dialogs/new_document.rs and moves the branch onto them:
- The layers, groups, compound paths and artboards members carry their
reflect types, and Layer gains toString. The Layer class from layers.rs
replaces main's name-only Layer class.
- Layer, Layers, Artboard and container collection handles carry the
document's revert count, so they go stale after File > Revert as page
items do (a layer then throws "Stale page item", as main's tests expect).
- A layer's or group's pageItems and the GroupItems and CompoundPathItems
collections read names, index and toString as the document's pageItems
does on main.
- controlBounds keeps the branch's rule (anchors and handles of shown
paths, a clip group's clipping path only) and main's zeros for an empty
object.
- areaText and pathText into a layer or group keep main's threading.
- group.clipped is refused on a locked artboard, a compound path keeps
itself when its pathItems are cleared, a path in a locked layer is not
converted into a layer's textFrames, layers.removeAll refuses more rows
than layer.delete takes, and a path moved into a pixel-aligned compound
path is snapped.
- A compound path's pathItems read the typename PageItems, the class they
are, and the TextFrames reflect types name a TextFrame from index and any
type from parent.
Tests whose rule main changed now assert main's rule: pageItems and
textFrames list topmost first, an empty selection is an empty list, a
segment-only path is restored with no anchors (the objects stay selected,
order not asserted), and the members not available yet are swatches, not
views or layers. The branch's tests of its own host class engine in
crates/js were dropped with that engine, since main's implementation
replaces it.
- A path saved with only segments selected is restored with its segments
and the anchors at their ends, in its place in the selection, not with
every anchor.
- layer.opacity compares the new value with the rounded value the getter
reports, so 50.00009 at 50% is set.
- characters.add with a range of a removed frame throws "Stale text
range" instead of a wrong-type error.
- `i in object` of a host class reads the indexer's raw answer and makes
no object of it.
- define_host_classes checks the whole batch and reserves heap for the
prototypes, constructors and member functions first, each property key
once; a batch that fails later takes its classes and globals out again,
so a corrected batch installs.
- The receiver and the arguments that are objects of host classes count
toward the crossing limits, with class names counted in UTF-16 units.
- A hosted answer is checked for its limits and references, in the order
it is written, before any object is made, so a refused answer leaves
existing objects of host classes as they were.
- A waiting member's answer that cannot be made (an unknown class) is
thrown at the waiting call, where the script can catch it.
- The array methods visit an object with a host indexer index by index,
so slice and map see every index it answers.
- docs/mcp.md and docs/roadmap.md: an omitted or null presetSettings uses
the startup preset; PLACEATEND in a clip group or a clipped layer goes
directly above the clipping path; layer opacity reads rounded to 4
decimals, and assigning the same opacity runs no command.
- Tests: the selection test checks the refused assignment inside the
script, and the Missing Glyph Protection test fails when a bundled
face is missing or falls back to another face instead of returning.
The Set type row names Justification… (#2771) instead of calling the
justification options missing. The Alongside step names the one menu stub
left, Effect › 3D and Materials › Materials…, instead of 28. Both M7 rows
mark tab leaders done (#1880) and vertical type in progress with Type ›
Type Orientation (#5027).
main's Document member list held saveAs and close as members that are not
available yet; this branch's save_open members implement them, so the
merge drops them from that list and keeps main's other entries. The
script host test lists take main's members together with this branch's
open, userInteractionLevel, fullName, path, saved and option classes,
and the heap accounting keeps main's ModuleNamespace arm beside the
FsEntry string arm.
Ports the PathItem, color and text members to main's reflected member form (name, HostMember, MemberInfo), and builds the text paint members on main's TextFrame members.
Retain document-scoped targeting and drag guards, keep both test sets, and add the appearance notes without replacing main's progress history.
Assisted-by: Codex
Main now reads the editing copy decoded as its streams are read
(#9922: ai_alone_decoded, ai_layers_alone_decoded, AiLayers::decoded)
and renamed the text document's patterns to paints (#9782:
text_patterns, Texts::with_paints). The decoded entry points take the
PDF part's widths as the ones they wrap did, AiLayers::decode goes
through AiLayers::decoded, and the text document still takes the widths
when it is first read, before its paints. The docs keep both sides'
entries.
Co-Authored-By: Claude Opus 5.5 <[email protected]>