Animate writes a DOMGroup's members in the group's parent space and the
group's matrix as its own frame. The importer read members in the group's
space and applied the matrix on top, so a 50% instance in a group drew at
25%. Members now come in through the inverse of the group's matrix; a
singular matrix keeps the old placement.
The primitives corpus had its groups in the old layout; it is rewritten as
Animate writes groups (same picture, goldens unchanged), with a probe on
the nested half-size square.
Fixes#411.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bones marked with the shape they are inside bend it through that shape's skin;
other bones move an instance or a whole shape. One pose, solver and tween.
A document with a mixed armature is written as format version 4; every other
document byte for byte as before.
Measured (optimised test profile): 25 bones, two shapes of 1,002 points and
8 instances bind in 1.6 ms and pose in 0.066 ms per frame; IK through all 25
bones 0.07 ms.
A Lottie player written for the test from the public format description
plays the exported animation through the oracle at every frame, for the
sample scenes, a movie of every tween and ease, and the XFL corpus.
- doc: Classic Ease and nine families (Quad, Cubic, Quart, Quint, Sine, Back,
Circ, Bounce, Elastic) In/Out/InOut as pure functions of t; CustomEase of
up to 64 Bezier points, always valid (x monotonic, ends pinned, values
bounded), with exact split, move, handle, smooth/corner and delete edits;
saved eases in the document; classic tweens ease position, rotation,
scale, colour and filters separately; instance filters now tween.
- engine: ease.* commands (info, set, add/move/delete/convert point, move
handle, separate, save, delete, rename, list, copy, paste); saved eases and
custom curves in timeline.set_easing and motion.set_ease; plug-in policy.
- xfl: multi-segment and per-property custom eases import exactly; corpus
gains a per-property layer, goldens and probes updated.
- shell: ease menu with curve thumbnails and saved eases in the timeline,
Properties and Motion Editor; Custom Ease window (graph, keyboard, typed
values, save, copy/paste, property groups).
- tests: preset values, fits, monotonic x after random edits, hostile
curves, fuzz, file round trip, HTML runtime parity, Lottie bake.
Since 0.1 the importer reads bitmaps, sounds and the publish settings from the
package with `?`, so one entry failing its checksum or the archive's limits
refused the whole document (#226). Optional parts are now left out and
reported; damage to DOMDocument.xml still refuses the file. Animate omits the
default white backgroundColor, which imported as black (#163). anicraft-cli
info/render/exports open .fla/.xfl through file.open.
Tests: damaged bitmap/symbol parts (fail before the fix), white stage,
every entry point (file.open, upper-case .FLA, Open Recent, drop routing,
browser vfs) over the corpus, CLI subcommands.
* 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>
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.
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.