Commit Graph
32 Commits
Author SHA1 Message Date
Tanish Manku da82dc71ea Merge origin/main into the outside pull request batch (M8)
# Conflicts:
#	CHANGELOG.md
2026-11-17 15:18:08 -07:00
Tanish Manku b5f3e5f0a8 chore: merge main into m7/mixed-armatures 2026-11-17 14:13:32 -07:00
Tanish Manku 84778544e0 Merge outside PR #415: fix(xfl): place group members where Animate writes them (M8)
# Conflicts:
#	CHANGELOG.md
2026-11-17 13:35:45 -07:00
Dylan M. Taylor cd5bdf95f7 fix(engine): size-check library image import; exclusive unguessable temp files (#125) 2026-11-17 08:13:42 -05:00
Vincent AgerbechandClaude Opus 5.5 7595a5b684 fix(xfl): place group members where Animate writes them (M4)
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>
2026-11-17 09:33:35 +01:00
Tanish Manku 2972440207 feat(bones): mixed armatures, symbol instances and shapes in one armature (M7)
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.
2026-11-16 18:32:56 -07:00
FredApps 6784cf72ce Merge pull request #46 from FredApps/fix/artcraft-feature-names-20261108
fix(naming): remove comparative own-feature wording
2026-11-14 16:22:24 +01:00
Dylan M. Taylor 30aa4374d0 chore: cut over audio, xml, xfl, zip, and raster codecs to craft-libs (#339) 2026-11-14 08:00:38 -05:00
FredApps 0b62d69166 test(naming): handle escaped characters in display guard 2026-11-14 13:26:18 +01:00
FredApps 79360af9b1 Merge branch 'main' into fix/artcraft-feature-names-20261108
# Conflicts:
#	crates/engine/src/cmds_draw.rs
#	crates/engine/src/cmds_timeline.rs
#	docs/roadmap.md
2026-11-14 11:29:26 +01:00
Tanish Manku 8597b93d90 chore: merge main into m4/lottie-eased-keys 2026-11-13 18:59:14 -07:00
Tanish Manku 7f34d80838 fix(engine): as_chunks in the Lottie parity test for newer clippy (M4) 2026-11-13 18:18:13 -07:00
Tanish Manku 2575050a70 test(engine): Lottie playback parity against the CPU oracle (M4)
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.
2026-11-13 17:50:26 -07:00
Tanish Manku e92cdf98b6 feat(engine): exporter plug-ins (file.export_plugin, file.export_formats) and plug-in eases; anicraft-cli export and formats (M6) 2026-11-13 17:35:49 -07:00
FredApps bf0ac268f9 Merge branch 'main' into fix/artcraft-feature-names-20261108
# Conflicts:
#	CHANGELOG.md
#	docs/adr/0006-platforms-and-edit-latency.md
#	docs/roadmap.md
#	src/panels.rs
2026-11-13 20:52:00 +01:00
Tanish Manku 1f3e603b7f feat(xfl): sound effects and envelopes, named reports, Screen Video stills, top-folder and self-extracting .fla archives (M4) 2026-11-13 02:36:14 -07:00
Tanish Manku 90d4d9107e feat(tweens): ease presets, custom multi-segment eases and saved eases (M7)
- 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.
2026-11-12 21:06:55 -07:00
Tanish Manku c1b5941f12 fix(xfl): one damaged part no longer refuses a .fla, white default stage, the CLI opens Animate files (M8)
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.
2026-11-12 12:59:10 -07:00
Tanish Manku 538142057d feat(text): dynamic and input text fields in the model, player, scripts and XFL import (M5) 2026-11-11 19:40:41 -07:00
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
FredApps 6639b30e24 fix(naming): remove comparative own-feature wording 2026-11-08 22:37:07 +01:00