Commit Graph
12 Commits
Author SHA1 Message Date
Tanish Manku cadfe62913 chore: merge main (9-slice, ActionScript logic, v0.2.0) into colour effects (M2) 2026-11-11 13:55:28 -07:00
Tanish Manku f78ae40e89 feat(doc): colour effect styles as one exact colour transform, rendered, exported and edited everywhere (M2) 2026-11-11 04:50:41 -07:00
Tanish Manku 9644061d09 test(xfl): a 9-slice corpus package with goldens and probes (M2) 2026-11-11 04:34:52 -07:00
Tanish Manku f29a637549 test(engine): the corpus opens from .fla files with the same golden frames (M4) 2026-11-11 00:48:22 -07:00
Tanish Manku c62d327ce1 feat(timeline): onion skin markers, tint, fade, outlines, keyframes only, and Edit Multiple Frames (M1) 2026-11-10 18:54:35 -07:00
Tanish Manku e6e3678462 feat(xfl): report which imported frame scripts run; interactive corpus package with ActionScript that runs (M6) 2026-11-10 16:37:29 -07:00
Tanish MankuandClaude ae16caf5d9 feat(engine): Subselection on raw shapes, Snap to Objects, merging bucket fills, pastes, XFL raw shapes and gradients (M1)
* 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>
2026-11-10 14:22:21 -07:00
Tanish Manku 4fb0b993fc feat(script): keep frame scripts, linkage and document classes from XFL (M6)
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.
2026-11-10 00:10:27 -07:00
Tanish Manku a87728ba50 chore: merge main (eraser, eyedropper, XFL corpus) into the web build (M8) 2026-11-09 23:15:49 -07:00
Tanish Manku 7dcd01041e feat(shell): web build of the editor: browser entry, file picker and downloads, autosave to browser storage (M8)
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).
2026-11-09 22:36:09 -07:00
Tanish Manku 256ab42370 fix(engine): golden helper walks pixels with as_chunks for the newer clippy (M4) 2026-11-09 22:31:29 -07:00
Tanish Manku e4de73b5ce test(engine): golden renders of the XFL corpus with a reusable golden-image helper (M4)
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.
2026-11-09 22:17:53 -07:00