Hit testing keeps main's pick_index, picking in the symbol open in place. Onion skin and
Edit Multiple Frames switch off while a symbol is open in place; the multi-frame listing
evaluates the open timeline. A double-click on a Library symbol opens it for editing, as in
Animate. Raw point edits keep a stroke's StrokeStyle (tested).
Stress scene (20 layers x 100 shapes, 2,000 items a frame), onion skin +-5 at
frame 30 (22,000 items), release, 32 threads:
scene composition 8.3 ms -> 3.0-3.3 ms
of which layering 3.9 ms -> 0.85 ms (k-way merge instead of append + reorder)
1080p tiled render 16.2-17.2 ms (off: 7.2-7.9 ms)
Output unchanged: the onion tests and the layering test pass as before.
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.
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.
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.
* 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>
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.
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.
ADR 0013 tier 1: a keyframe can keep a script verbatim (FrameScript::Source,
text and language) beside actions and plug-in frame scripts; symbols keep a
linkage class and the document a document class, as text. The XFL importer
reads <Actionscript> frame scripts in scenes and symbols, linkage attributes
and the publish profile's language and document class, and reports them as
kept, not run. script.set/clear/list/set_class commands; nothing runs them.
New corpus package 'scripts' with golden renders.
Frame sounds get Animate's Effect presets and Custom envelopes (up to 16
points per channel, seconds from the sound's start), shaped over the time
the sound is heard. Layers get a volume and Mute, multiplied down through
symbols. Graphic symbols play their sounds on their own frames mapped to
the parent's time (streams join mid-way), movie clips on a loop from when
the instance appeared; the interactive player reports entered sounds so
Test Movie plays them, following the audio clock. The mixer applies
per-channel envelopes and start offsets sample-exactly. HTML canvas
export carries envelopes, volumes and graphic sounds. Edit Envelope
window, timeline mute toggle, waveform shaped by the envelope.
Subselection selects several anchors (Shift), double-click on the path
adds a point, Delete removes points (the ends stay, the status says
why), right-click makes them smooth or corners or straightens the path.
The Pen's Alt-click adds a point to the motion path or a selected
shape. Ctrl/Cmd-drag on the path or its object moves the whole path in
one undo step, and Properties shows the path's start to move it by
number. New screenshot and audit state: --open motionedit.
motion.add_point splits the nearest segment (shape and timing
unchanged), motion.delete_points refits through the rest and keeps the
ends, motion.convert_point makes an anchor smooth or a corner, and
motion.move_path moves the path, its X/Y keys and the object together.
Point edits on a straight motion make its path the tween's own.
motion.info and the path commands list the anchors.
src/web.rs starts the editor on a page canvas with eframe's WebRunner (WebGL2 via glow) and
provides the browser's services; platform.rs decides when: picked files go to the engine's
in-memory store and the command runs, saves and exports leave as downloads, preferences and
recovery copies live in localStorage, Web Locks tell open tabs from crashed ones, and leaving
with unsaved work asks first. The GPU stage and sound output become build cfgs that are off
on wasm. Video export and plug-in installs are dimmed in the browser with the reason.
scripts/build-web.sh and .ps1 build web/ with the wasm-bindgen CLI pinned to Cargo.lock's
version, from packaging/web/index.html. The web profile (opt-level s, stripped, renderer and
geometry at opt-level 3) gives an 8973 KB module, 3278 KB gzipped, in 41 s.
crates/engine/tests/wasm.rs runs the engine inside WebAssembly in Node (3 tests, 0.6 s).
20 frames of the corpus rendered by the CPU oracle at 160x90 and compared
with committed PNGs (a pixel differs past 3 per channel; at most 0.2 %
may), plus hand-worked colour probes, and every package opened with
file.open and round-tripped through .anicraft. UPDATE_GOLDENS=1 rewrites
the goldens; a mismatch writes the render and a diff image and names
them. Rendering and comparing all 20 frames takes about 20 ms.
The eraser sweeps the brush tip (ADR 0033) and goes into the planar merge as a fill whose regions come out empty, placed by the mode: on top (Erase Normal), between fills and lines (Erase Fills), over the lines only (Erase Lines), right above the selected fills or the fill the stroke starts on. Only raw shapes are erased; a stroke that erases nothing leaves no step (exact area and length compare). The Eyedropper picks a fill's paint (solid, gradient or bitmap, in stage space) or a line's colour, width and profile into the tool style; the Paint Bucket and the shape tools use a picked gradient where it is on the stage.
Commands read and write files through engine::vfs: std::fs on the desktop, an in-memory
store in the browser that the web shell fills from the file picker and empties into
downloads (ADR 0036). file.open opens .fla bytes through it and gains unsaved?: true for
restored copies. Instant/SystemTime come from web-time; rayon's deferred drops run inline
on wasm; the GPU crate plans layers in turn where wgpu handles aren't Sync; video export
says why it can't run in a browser; system font discovery is native-only.