Commit Graph
35 Commits
Author SHA1 Message Date
Tanish Manku 880bf0ea3c feat(a11y): follow the system's contrast setting; Preferences › Theme › Follow system (M8) 2026-11-11 19:06:12 -07:00
Tanish Manku 0d94ec6b2d chore: merge main (APNG/WebP export, Check for Updates) into Test Movie window (M8) 2026-11-11 18:26:39 -07:00
Tanish Manku a760667d55 feat(shell): Test Movie in its own window, and documents macOS hands over (M8) 2026-11-11 18:03:33 -07:00
Tanish Manku a20a488fb6 feat(export): animated PNG and animated WebP export (M4) 2026-11-11 18:03:14 -07:00
Dylan M. Taylor 1bddc73503 Add Help > Check for Updates and bump to 0.2.1 (M8) (#165)
* feat(updates): add manual release checks and verified native updates (M8)

* chore: bump version to 0.2.1 (M8)

* fix(flatpak): honor the launcher version choices (M8)

* fix(updates): preserve pending edits and report restart outcomes (M8)

* test(updates): verify startup consumes helper failures once (M8)
2026-11-11 19:32:21 -05:00
Tanish Manku 075eb47f23 feat(engine): find.search, find.replace, find.goto and explorer.tree (M8)
Find and Replace over text (text fields, labels, layer and instance names,
frame scripts), fonts, colours, symbols, sounds and bitmaps, scoped to the
scene (with the symbols it uses) or the document; a bounded linear-time
regex engine; Replace and Replace All as one undo step, asking above 100
places; going to a hit opens symbols in place through the instances that
lead to them. The Movie Explorer tree is made only for open rows, paged,
with show filters and a text filter.

24,000 elements: text search 8.8 ms, colour 3.5 ms, Replace All of
12,500 colours 25.5 ms; explorer fully open 144,112 rows in 45 ms.
2026-11-11 14:09:05 -07:00
FredApps 6dbf120661 Release: AniCraft v0.2.0 (#157) 2026-11-11 16:35:45 +01:00
FredApps bf1df47bda fix(gpu): sort naga into anicraft-gpu's Cargo.lock dependencies (M3) 2026-11-11 14:55:48 +01:00
FredApps 1897f901d2 fix(gpu): wrap repeating bitmaps without a signed remainder, undefined on GL (M3)
The fine shader wrapped a repeating bitmap's taps with ((q % size) + size) % size.
naga (30.0.1) writes WGSL's integer % as GLSL's, which is undefined for
negative operands, and the bilinear tap left of or above the edge is -1. On
the GL backend (llvmpipe in the FreeBSD VM, which has no Vulkan driver) the
edge texels came out wrong: bitmap repeated max 79, filtered bitmap max 16, so
FreeBSD x86_64 has failed since bitmap fills landed (0dae205). Vulkan, DX12
and Metal define the remainder, so Linux CI passed.

wrap() takes the unsigned remainder of |i| instead, defined on every backend.
shaders_take_no_signed_remainder parses every shader with naga and fails on a
% whose left operand is a signed integer; it fails on fine.wgsl before this.
2026-11-11 14:40:07 +01: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 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 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 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 0fc73dc9ce feat(render): HTML canvas export with a JS port of the player, tested against it in Boa (M6) 2026-11-09 13:22:19 -07:00
Tanish Manku 9c7f65d305 feat(doc): timeline action IR and a pure interactive player (M6)
anicraft-actions (L0): typed actions (stop, play, go to a frame or label in
a scene, next/previous frame and scene, trace, set property), instance-name
target paths, button events, plug-in frame-script references.

anicraft-doc: keyframes carry a FrameScript, symbol instances carry event
handlers (serde defaults, sanitized on load). player::{start, step} steps a
PlayerState (scene, playheads, script-set properties, pointer) with budgets;
evaluate_player draws it; evaluate stays pure and unchanged.
2026-11-09 05:18:14 -07:00
Tanish Manku 3c79f97701 chore: merge main (SVG clips and text) into the GPU stage (M3) 2026-11-09 04:07:01 -07:00
Tanish Manku 244e21527b chore: merge main (audio, plug-ins, motion tweens) into the GPU stage (M3) 2026-11-09 03:58:26 -07:00
Tanish Manku 7e7d3a29d0 chore: merge main (audio, plug-ins, motion tweens) into SVG clips and text; fix an ADR reference (M4) 2026-11-09 03:57:17 -07:00
Tanish Manku 640186669e feat(shell): gpu-stage feature with a Preferences renderer switch and status (M3)
Preferences > Stage > Renderer (and View > Stage Rendering) choose CPU
(reference) or GPU (preview) in builds with --features gpu-stage. The
renderer starts off the UI thread; the status bar says who drew the
visible tiles and why the CPU stepped in. ANICRAFT_STAGE_RENDERER
overrides the preference (also for --screenshot).
2026-11-09 03:44:28 -07:00
Tanish Manku 2f3ab271d9 feat(gpu): wgpu stage renderer over the oracle's fills, with parity tests (M3)
New crate anicraft-gpu (L3): the CPU oracle prepares the fills
(render::plain_fills: flattening, strokes, shaders and gradient tables,
culling), binning sorts edge pieces into 16x16 tiles with per-row
backdrops, and one compute pass computes each pixel's exact area coverage
and composites in display-list order. Masks, groups and bitmaps are
handed back (NeedsFull) for the CPU to draw.

Parity on an RTX 5090 (Vulkan): max 1/255, mean < 0.0001/255 on the
sample and stress scenes; tests skip with a message without an adapter.
2026-11-09 03:44:28 -07:00
Tanish Manku 75eabe8527 feat(audio): play sounds in sync, waveforms on the timeline, Sound properties and library sounds (M5)
Stage playback plays the movie's sounds through cpal (optional default
feature sound-output) and the playhead follows the audio clock; a moved
playhead plays a one-frame snippet of stream sounds (scrubbing). The device
opens on first need, never in screenshot runs or tests, and a failure falls
back to silent wall-clock playback.

Timeline rows draw each keyframe's waveform over its span, repeats
included. Frame Properties gain Sound, Sync and Repeat/Loop. The Library
lists sounds with Preview, Place on timeline and Delete. Import to Stage
and Import to Library take WAV, OGG and MP3; Export Audio writes the
soundtrack.
2026-11-09 03:43:09 -07:00
Tanish Manku 30c121d269 feat(audio): sounds in the library and on keyframes, mixed to WAV and into video export (M5)
New L0 crate anicraft-audio: WAV reader/writer, Ogg Vorbis (lewton) and MP3
(nanomp3) decoding with hard size caps and a panic guard, a pure stereo
mixer (sample-exact at equal rates, Catmull-Rom resampling otherwise),
waveform peaks and a device-independent Player.

Document: Sound library items (the imported bytes, decoded once), a
FrameSound on keyframes (Event/Start/Stop/Stream, repeat, loop), and
sound::voices(), the pure layout of the movie's sounds in time.

Commands: file.import_to_library, Import to Stage for sounds, sound.place/
set/remove/delete/rename, file.export_audio, and the soundtrack in
file.export_video (Opus in WebM, AAC in MP4, by the user's ffmpeg).
2026-11-09 03:42:55 -07:00
Tanish Manku d868758ee2 feat(engine): Import to Stage makes a folder with mask layers for clipped drawings (M4) 2026-11-09 03:34:13 -07:00
Tanish Manku b765aa12ec feat(engine): plugin.install/list/run/remove/reload over the command registry, one undo step per run (M6) 2026-11-09 03:31:44 -07:00
Tanish Manku 0aedae7da3 feat(plugins): sandboxed WebAssembly plug-in host (wasmi, ABI v1, limits, registry) (M6) 2026-11-09 03:31:33 -07:00
BFlat 3d968294fa App icon (engraved rabbit) and README with screenshots (#70)
- assets/app-icon: the rabbit vectorised onto the shared Crafting Apps
  tile (512 viewBox, rx 112) with a neutral white paper tone; renders for
  Windows (.ico), Linux (hicolor) and Apple's icon grid (padded tile);
  trace.py and scripts/icons.sh regenerate them.
- The app shows it on the window, the macOS Dock, the Windows taskbar
  and anicraft.exe (winresource), and in Help > About (--open about).
- README: icon header, screenshots, the sample animation as a GIF,
  quick start, status, downloads and the Crafting Apps table.
- ATTRIBUTION and CHANGELOG rows for the new files.
2026-11-09 17:15:01 +08:00
Tanish Manku 95131360bd feat(xfl): import text fields as text blocks, report missing fonts (M4) 2026-11-09 01:51:06 -07:00
Tanish Manku c00164b5d2 feat(text): Text tool and text blocks laid out into stored outlines (ADR 0012) 2026-11-06 22:53:46 -07:00
Tanish Manku 63b39355ea feat(export): Lottie animation export, frame-accurate (file.export_lottie) 2026-11-06 22:34:03 -07:00
Tanish Manku 5e15ddd1fb feat(xfl): import bitmaps from Animate documents (PNG/JPEG data), with bitmap fill matrices 2026-11-06 21:45:53 -07:00
Tanish Manku 4a5f9ed549 feat(media): bitmap images: PNG/JPEG import to stage, bitmap fills, stored as PNG 2026-11-06 21:21:31 -07:00
Tanish Manku 30674ea2e3 feat(export): sprite sheet export: frames on a PNG grid with a JSON-hash frame map 2026-11-06 20:23:18 -07:00
Tanish Manku 04928e9ac6 feat(import): Import to Stage (Ctrl+R) for SVG drawings: new anicraft-svg crate, shapes, groups, use, styles, transforms, viewBox and gradients 2026-11-06 13:39:19 -07:00
Tanish Manku f9d2e05770 refactor: move the XML reader into its own crate (anicraft-xml) for the XFL and SVG importers 2026-11-06 13:30:17 -07:00
Tanish Manku e3913afa36 Initial commit v0.1.0 early alpha
AniCraft 0.1.0 (early alpha): milestones M0 and M1. Contributors are credited in AUTHORS.md.
2026-11-05 23:58:25 -07:00