Commit Graph
239 Commits
Author SHA1 Message Date
Tanish Manku 23ad007760 feat(ui): translate the sound envelope editor, layer volume and mute, and show the real Undo key in messages (M8)
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.
2026-11-10 13:34:27 -07:00
Tanish Manku 562dd48e3f chore: merge main (sound effects, ActionScript tier 1, motion path points) into localisation; new strings still to route through tr! (M8) 2026-11-10 00:58:12 -07:00
Tanish Manku cae2150408 Merge pull request #101 from storytold/docs/adr-reservations
docs: ADR numbers never move; issue #42 on the roadmap
2026-11-10 00:55:18 -07:00
Tanish Manku b5905dd09e docs: 0039 merged with #100, so its reservation goes 2026-11-10 00:44:25 -07:00
Tanish Manku f4bc40c743 Merge remote-tracking branch 'origin/main' into docs/adr-reservations 2026-11-10 00:44:24 -07:00
Tanish Manku 20f446cadb Merge pull request #100 from storytold/m5/sound-effects
feat(audio): sound effect envelopes, layer volume and mute, sounds inside symbols (M5)
2026-11-10 00:44:15 -07:00
Tanish Manku 819c97b690 docs: licence inventory with sys-locale (M8) 2026-11-10 00:43:29 -07:00
Tanish Manku 4f10fa7939 docs: ADR 0040 interface languages, localisation guide, roadmap, changelog (M8) 2026-11-10 00:42:06 -07:00
Tanish Manku cddd1ea2e0 feat(ui): interface languages: tr! everywhere in the shell, craft-i18n catalogs, pseudo-locale (M8)
A translation layer in the shell (src/i18n): English source text is the
key (tr!, trn! with CLDR plurals, trc!, tr_noop!), catalogs in the
craft-i18n TSV format read by our own parser and embedded from
CRAFT_I18N_DIR by build.rs, fallback app > shared > base > English.
Preferences > Appearance > Language (system language by default) and
--lang for one run. Every shell string and screen-reader name goes through
it; menus translate the registry's labels when drawn, ids stay English.

Guardrails: a source guideline test fails on prose literals outside the
macros, a pseudo-locale accessibility audit fails on untranslated names,
and scripts/i18n-extract.sh writes the translators' template (1173
strings) and per-locale coverage. Lookups: 13 ns from a catalog, 16 ns
pseudo, none in English.
2026-11-10 00:41:54 -07:00
Tanish Manku caccafaf57 docs: issue #42 on the roadmap (raw drawing selection and subselection); reserve ADRs 0041-0043; fix the GPU crate's ADR references 2026-11-10 00:36:22 -07:00
Tanish Manku d390b30062 Merge remote-tracking branch 'origin/main' into docs/adr-reservations 2026-11-10 00:36:06 -07:00
Tanish Manku d7c0434a25 chore: merge main (ActionScript tier 1) into sound effects; tests build with Symbol.linkage (M5) 2026-11-10 00:35:46 -07:00
Tanish Manku f4c6557f8b Merge pull request #99 from storytold/m6/actionscript-keep
feat(script): keep ActionScript frame scripts and classes, tier 1 (M6)
2026-11-10 00:33:17 -07:00
Tanish Manku 1c1ee7504a docs: ADR numbers never move: reservations for open pull requests in docs/adr/README.md 2026-11-10 00:32:51 -07:00
Tanish Manku 990ea2c116 fix(ui): name the class field's widget id plainly (M6) 2026-11-10 00:10:50 -07:00
Tanish Manku aebf8873b4 test(engine): kept-script params in the panic hunt (M6) 2026-11-10 00:10:50 -07:00
Tanish Manku 6c4fd5d6be docs: ActionScript tier 1 built (ADR 0013), roadmap, changelog (M6) 2026-11-10 00:10:50 -07:00
Tanish Manku 95a83ee2a0 feat(ui): Script view in the Actions panel, class rows in Properties (M6)
The Actions panel's Frame tab gets a Type row (Actions, Plug-in, Script);
Script shows and edits a keyframe's kept script in a monospace editor with
line numbers and its language, live and undoable. Graphic and button
timelines and guide layers show their kept scripts too. Properties shows the
symbol linkage class and the document class in documents that use scripts;
Test Movie says how many kept scripts don't run. The panel's pickers and
title bar are named for screen readers; --open script for screenshots.
2026-11-10 00:10:38 -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 208b175b25 docs: ADR 0039 sound effects, layer volume and symbol sounds; roadmap, changelog (M5) 2026-11-10 00:02:27 -07:00
Tanish Manku de38e47aa3 feat(audio): sound effect envelopes, layer volume and mute, sounds inside symbols (M5)
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.
2026-11-10 00:02:17 -07:00
Tanish Manku 4e64b2d932 Merge pull request #98 from storytold/m2/motion-path-points
feat(motion): add, delete and convert motion path points, move the whole path (M2)
2026-11-09 23:59:57 -07:00
Tanish Manku fd3164e312 docs: ADR 0038 motion path points and moving the whole path (M2) 2026-11-09 23:44:48 -07:00
Tanish Manku 5d3dc8dae0 feat(ui): edit motion path points and move the whole path on the stage (M2)
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.
2026-11-09 23:43:06 -07:00
Tanish Manku 34fe4603e7 feat(engine): add, delete and convert motion path points, move the whole path (M2)
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.
2026-11-09 23:37:16 -07:00
Tanish Manku 6f9d1a2f0e feat(geom): shape-keeping anchor deletion and moving a whole motion (M2)
Path::merge_at replaces the two segments around an anchor with the one
cubic that fits them best (Schneider's least squares on handle lengths,
seeded by the de Casteljau ratio, so deleting a split point gives the
curve back). MotionTween::translate moves the path and every X/Y key.
2026-11-09 23:33:25 -07:00
Tanish Manku 1a7c6521e8 Merge pull request #97 from storytold/m8/web-build
feat(web): web build of the editor, first slice (M8)
2026-11-09 23:27:09 -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 9a04394f3b Merge pull request #95 from storytold/m4/xfl-corpus
test(xfl): a self-authored XFL corpus with golden render tests (M4)
2026-11-09 23:13:57 -07:00
Tanish Manku 2cf35d83d8 chore: merge main (eraser, eyedropper) into the XFL corpus (M4) 2026-11-09 23:02:33 -07:00
Tanish Manku 680243e664 Merge pull request #96 from storytold/m7/eraser-eyedropper
feat(draw): Eraser and Eyedropper tools (M7)
2026-11-09 23:01:34 -07:00
Tanish Manku 431266a897 docs: web build ADR 0036, docs/web.md, roadmap, changelog, architecture and compliance (M8) 2026-11-09 22:38:01 -07:00
Tanish Manku b6d935c543 ci: build every crate for wasm32, run the engine's WebAssembly tests in Node, build the web bundle (M8) 2026-11-09 22:38:01 -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 690e0311f4 docs: Eraser and Eyedropper ADR 0034, roadmap, changelog and attribution (M7) 2026-11-09 22:21:07 -07:00
Tanish Manku 3862732928 feat(shell): Eraser (E) with erase modes, Faucet and Erase Everything, and Eyedropper (I) (M7)
The Eraser sweeps the brush tip with a live preview in the stage colour, [ and ] size it, and a double-click on its tool button (or Erase Everything in its options) clears the stage at this frame after asking. The Eyedropper picks a fill (solid, gradient, bitmap) or a line into the tool style, applies it to selected shapes, then becomes the Paint Bucket or the Ink Bottle; Shift-click picks into the other swatch. New original icons; --open eraser|erasing|eyedropper for screenshots.
2026-11-09 22:18:41 -07:00
Tanish Manku a629801d08 docs: ADR 0035 for the XFL corpus and golden renders, ADR 0009 testing, roadmap, changelog and attribution (M4) 2026-11-09 22:17:53 -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
Tanish Manku cc85a76be1 test(xfl): a self-authored corpus of eleven XFL packages with report, structure and hostile-variant tests (M4)
Every feature the importer claims, in hand-written XFL folders (with
original PNG and JPEG images). Each package has an exact report
expectation and targeted structure checks; 2,963 hostile variants (cut
short, garbled, files missing) import without panicking and evaluate,
in 0.15 s. The golden renders are committed with the packages.
2026-11-09 22:17:52 -07:00
Tanish Manku b28f1dffe1 fix(xfl): movie clips by default, brightness, instance names, comments, custom eases, and reports for what draws differently (M4)
A symbol without symbolType is a movie clip (the format leaves defaults
out). Brightness becomes a tint towards white or black; advanced colour
effects keep alpha and are reported. Movie clip and button instance names
that are identifiers are kept for actions (ADR 0024). Frame comments are
no longer labels. A one-segment custom ease is its cubic Bezier. Reverse
loop modes, non-round caps and joins, gradient strokes, repeating,
reflecting, focal-point, elliptical and linear-RGB gradients and extra
tween spins are reported instead of silently changed.
2026-11-09 22:17:52 -07:00
Tanish Manku 86f76dbc82 feat(engine): draw.erase with Animate's erase modes, the faucet and Erase Everything; paint.pick and paint.apply_style (M7)
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.
2026-11-09 22:13:26 -07:00
Tanish Manku 06c004b294 feat(engine): engine crates build and run on wasm32: vfs file layer, web clocks, single-threaded fallbacks (M8)
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.
2026-11-09 22:12:56 -07:00
Tanish Manku 96ff3368d8 Merge pull request #94 from storytold/m7/brush-tool
feat(drawing): Brush tool paints filled sweeps with pressure and paint modes (M7)
2026-11-09 21:58:20 -07:00
Tanish Manku fc281d4aa8 docs: Brush tool ADR 0033, roadmap, changelog and attribution (M7) 2026-11-09 21:22:33 -07:00
Tanish Manku 478c70feb8 feat(shell): Brush tool (B) with tool options, pen pressure, live preview and [ ] sizes (M7) 2026-11-09 21:20:59 -07:00
Tanish Manku d7a53d99d3 fix(geom): a closed curve fit starts on its first corner, not across from the first point (M7) 2026-11-09 21:20:59 -07:00
Tanish Manku 4a5522c4c1 feat(engine): draw.brush paints filled strokes with Paint Normal, Fills and Behind (M7) 2026-11-09 21:12:12 -07:00
Tanish Manku a535435a0f feat(geom): brush stroke outlines from the swept tip's distance field (M7) 2026-11-09 21:06:18 -07:00
Tanish Manku 4d9c1cef9c Merge pull request #93 from storytold/m3/gpu-bitmaps-filters
feat(gpu): bitmaps and filters on the GPU, the GPU as the default stage (M3)
2026-11-09 20:54:42 -07:00