layer.select gains select?: the layer becomes active with all of its artwork
at the playhead selected (nothing on a locked or hidden layer). The timeline's
name click passes it. ADR 0044 and the roadmap updated.
Conflicts in CHANGELOG.md, src/erasertool.rs, src/panels.rs, src/stage.rs and
src/timeline.rs resolved keeping both sides: the selection across layers, with
every new interface string through tr!/trn! ("{n} elements {on_layers}" with
the layers' phrase as its own plural, "mixed", "has selected artwork").
Every layer row that holds selected items shows a square in the layer's
colour after its name (and screen readers hear it). Properties lists the
selection from every layer, titles it with how many layers it spans, shows the
combined box's position for several elements and marks values that differ as
mixed.
The session's selection becomes a set of (layer, element) references at the
playhead (ADR 0044, issue #42). Commands that edit the selection run their
single-layer body once per layer that has selected items (move, delete,
duplicate, arrange, transforms, colour effects, filters, break apart, raw
merges); align/distribute, the Free Transform box, copy and snapping read
across the layers; paste keeps each copied layer; Convert to Symbol keeps the
layers inside the symbol and lands the instance on the topmost. The marquee
and Select All gather from every visible, unlocked layer, cutting raw parts
per layer. Locked or hidden layers are never selected. A selection on the
active layer alone behaves exactly as before.
A straight chain whose target lies on its own line gave every joint a
zero turn; a stalled solve now bends its joints a little (at most four
times) and keeps the best pose seen. The sweep budget rises to 2,048 so a
64-bone chain reaches from rest.
Measured (dev profile, 200 targets each, from the rest pose): 2 bones
0.007 ms per solve, 10 bones 0.065 ms, 64 bones 4.7 ms; every target
within 0.01 px (before: 64 bones missed 99 of 200 by up to 28.7 px).
The Bone tool (M) drags from one symbol instance to another to add a
bone (starting on a bone's end continues the chain) and clicks to pick
a bone. Bones draw as wedges in the armature layer's colour, the picked
one in the selection colour. The Selection tool drags a bone or a posed
instance to pose by IK, and the root instance to move the armature; each
drag is one undo step. Properties shows the bone's angle, joint limits,
pin and Remove Bone; Delete removes the picked bone.
An armature layer holds symbol instances joined by bones (a joint on the
parent instance, the child turning about it). Keyframes store poses as
joint angles, tweened with the span's easing and applied by forward
kinematics in evaluate_layer_elements, so every export, the GPU stage and
the player see them. bone.add/remove/set_limits/pin/pose/solve/info
commands; IK by cyclic coordinate descent with joint limits and pins.
* Subselection on merged drawings: a click shows the anchors of every
connected raw shape (hollow squares, selected ones solid) and the
handles of the selected anchors and the clicked edge; Shift adds or
removes; dragging an anchor moves it with the other selected ones and
every shape on them (snapping); dragging a handle bends the edge in
every shape that has it; dragging a line or fill moves everything
connected; the marquee takes whole shapes on the active layer and
selects the anchors inside; arrow keys nudge (1 / 10 screen px).
* Snap to Objects: View > Snapping, a magnet under the tools, and a
checkbox in the Selection, Subselection and Free Transform options.
* rawsub screenshot setup, in the accessibility audit.
Co-Authored-By: Claude <noreply@anthropic.com>
* raw.subselect / raw.subselect_rect / raw.points / raw.move_handle: the
connected raw shapes' anchors (once per position) and curve handles; a
handle drag changes the edge in every raw shape that has it.
* raw.move_point takes 'with': other selected anchors move along.
* draw.snap_to_objects (View > Snapping), on by default, gates every
'snap' param.
* paint.bucket: raw fills merge (behind), filled exactly up to raw lines
and fill edges (a local probe merge); recolouring a raw fill re-merges.
* Pasted raw shapes merge where they land (Paste in Place too).
* XFL: loose DOMShapes (not isDrawingObject, not in groups) import raw;
file.open merges each keyframe's raw shapes (tweened keyframes kept).
* Gradient and bitmap fills take part in the merge; width profiles stay
objects.
Measured (748 raw shapes, debug-opt build): click 0.9 ms, anchor list
0.1 ms, handle frame 0.1 ms, merge on release 0.2 ms, exact bucket fill
0.3 ms (20 ms before the probe was made local).
Co-Authored-By: Claude <noreply@anthropic.com>
Clicks each control through AccessKit (as a screen reader does) and steps
number fields, in the default window, three selections, seven panels and
five tools: nothing panics and every popup, dialog and status line it
leads to is translated. 3.3 s for the shell's 84 tests.
On raw shapes, a drag from an unselected corner or end moves it with every
shape that shares it, from an unselected segment or fill edge bends it, from
a fill or a selection moves the selection; points and selections snap within
10 screen px with a snap ring; corner and curve marks by the pointer show what
a drag will do; the marquee runs raw.select_rect. Each drag is one undo step
and merges again on release. --open rawparts / rawedit show the states.
perf: on 1,320 raw shapes (debug-opt build) a hover test takes 0.04 ms, a
bend frame 0.14 ms, a point frame with snapping 0.22 ms, a snapping
selection move 0.29 ms, the merge on release 0.22 ms, a marquee cut and heal
1.8 ms.
The strings from sound effects (#100) and the ActionScript Script view
(#99) go through tr!/trn!; the envelope editor joins the pseudo-locale
accessibility audit. Messages that said "Ctrl+Z" now fill {undo} from
App::undo_key (the rebindable Undo key, through platform::shortcut_label,
so macOS reads ⌘Z). ADR 0040 leaves the reservations table.
path.bend_segment bends the segment under the pointer through the dragged
point and every raw copy of that edge with it; raw.move_point moves a corner
or end with every raw shape that shares it (splitting an edge another shape
ends on), snapped within a distance to points, lines and fill edges;
element.translate takes snap/from; raw.select_rect cuts raw shapes at the
marquee and selects the parts inside plus objects wholly inside, with the cut
provisional (no undo step, taken back when the selection lets go of it);
raw.merge and raw.hit. Plug-ins may call the raw namespace.
planar: anchors within SNAP meet at their midpoint and a point landing on a
line goes onto it (the line stays), as issue #42 section 4 describes;
merge_cut cuts along a closed outline that never comes out and marks each
piece inside or outside it. raw: bend an edge and make every copy of it in
other paths follow, split a path where another shape ends on it, nearest
point on a cubic.
CI only publishes the Rust lcov report, so these files can never appear
covered and pull new_coverage below the 80% gate. Same approach as
filmcraft and lightcraft.