Commit Graph
444 Commits
Author SHA1 Message Date
Rob CoenenandClaude Opus 5.5 4e0b0222ae docs(adr): 0120 cites the EDAP corpus by its source and manifest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:55:43 +01:00
Rob CoenenandClaude Opus 5.5 9e5fe149a6 test(fla): pin the EDAP corpus in a manifest and fetch it by script
The legacy format was learned from EDAP Tools' published sample rigs and
templates (CC BY-NC-SA 3.0); no Flash 8–CS4 files of our own exist. As the
clean-room standard's fixture rule 2 allows for published files whose
licence can't be committed, crates/fla/tests/corpus.tsv now pins each of
the 16 downloads by URL, sha256 and licence.

scripts/fetch-fla-corpus.sh downloads them, refuses any whose sha256
differs, and unpacks the zips into the layout the env-gated tests read. A
fresh fetch matches the corpus the format was learned from byte for byte,
and the corpus tests pass on it. ATTRIBUTION.md and ADR 0120 record the
provenance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:52:07 +01:00
Rob CoenenandClaude Opus 5.5 10117b1c54 refactor(fla): read the container through craft-cfb; ADR 0096 becomes 0120
At review, the compound binary container moves to the shared craft-cfb reader
from craft-libs (rev b67b9f9, the one craft-xfl and craft-xml already use).
crates/fla's own MS-CFB reader is removed. The `cfb` module keeps only the
importer's policy: the ADR 0054 caps (1 GiB per file, 256 MiB per stream),
stream lookup by full path, and one-sentence errors. Chain walks, cycle
guards and directory bounds are craft-cfb's.

Container errors that named one structural fault each (bad header,
truncated, looping chain or tree) are now `Damaged`, carrying craft-cfb's
reason. craft-cfb is more tolerant in two places, and the tests now pin it:
- a FAT count the file could hold but its DIFAT doesn't list opens;
- a root that overstates its mini stream opens, read to the file's end at
  most.
In both cases nothing past the file is reserved. The test of the removed
reader's internal chain budget (`the_directory_reads_no_further_than_the_most_entries`)
is dropped with the code it tested.

Checked against the nine EDAP legacy files: the same streams, sizes and
record tags in `fla-dump`, the same `info`, and byte-identical frame
renders with the old and the new reader.

The ADR is renumbered to 0120, reserved for this PR (0096 is the guide
search ADR on main). Its references move with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:39:24 +01:00
Rob CoenenandClaude Opus 5.5 8f01ef8da0 docs(guide): an instance with filters also loses its blend mode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:49:41 +01:00
Rob CoenenandClaude Opus 5.5 e8f897f0fa docs(adr): 0096 records how skips number objects and bound shared groups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:35:13 +01:00
Rob CoenenandClaude Opus 5.5 86b53764e5 docs(guide): Flash 8 to CS4 files open; only older ones need Animate
The guide still said a .fla saved by Flash CS4 or earlier can't be read.
Opening Animate files gets a "Flash 8 to CS4 files" section with what
comes across, that frame scripts are kept but not run, and what is not
read yet (filters, component settings, bitmap fills; dashed and dotted
strokes drawn solid), from the changelog and Honest status. The "save it
again in Animate" advice is kept for Flash MX 2004 and earlier, and the
FAQ's old-.fla entry says the same and links to the new section.

Also names the new 1 GB limit on image data in Animate's own format.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:35:13 +01:00
Rob CoenenandClaude Opus 5.5 1af2631044 docs: changelog and honest status for Flash 8–CS4 .fla import
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:32:43 +01:00
Rob CoenenandClaude Opus 5.5 83707ef757 feat(fla): legacy texts, bitmaps, sounds, buttons, scripts and library folders
Wires the CPicText decoder and the anicraft-flamedia payload decoder into
the legacy importer. Contents' CMediaBits/CMediaSound items become library
bitmaps and sounds; CPicBitmap instances are placed as the XFL importer
places them; frame sound blocks carry sound, sync, loops and envelope.
CPicButton settings give instance names; handler scripts are reported and
frame scripts kept verbatim as ActionScript source, never run. Label kinds,
shape hints (CMorphHintItem) and library folders come across too. Filters,
component settings, bitmap fills and dashed strokes stay skipped and
counted.

Verified against the Animate twins on every corpus pair: 335/335 texts on
keyframes, 9/9 bitmap instances and items, 5/5 frame sounds, 4/4 sound
items, 4457/4457 instance symbols and names, 328/328 symbol types and
library paths, 39/39 folders. kinefox frame 1 and movietemplate frames 1,
120 and 500 render byte-identical to the twin's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:32:26 +01:00
Rob CoenenandClaude Opus 5.5 ffa8650721 feat(xfl): decode Animate's own bitmap and sound .dat payloads
Animate often keeps a library image or sound only as its own data file
(bin/*.dat in zip/XFL packages; the same bytes are the Media <n> /
M <n> <stamp> streams of legacy Flash 8-CS4 .fla files). These were
reported as "stored in Animate's own format" and left out.

New L0 crate anicraft-flamedia (miniz_oxide and craft-audio, both
already in the tree) decodes them, with bounded memory and no panics:

* bitmaps: 26-byte header (kind 03, format 05 = A,R,G,B, row bytes,
  width, height, frame in twips, has-alpha, compressed), then u16-length
  chunks ending in u16 0 that join into one zlib stream inflating to
  exactly row bytes x height; premultiplied ARGB becomes straight RGBA8.
  Other pixel formats, uncompressed and JPEG-backed variants are
  refused with a clear reason, not guessed at. Edges capped at 8192,
  inflate capped at the size the header promises.
* sounds: raw s16le PCM, interleaved; rate and channels from the XFL
  item's format ("44kHz 16bit Stereo") or the legacy CMediaSound format
  byte; checked against sampleCount and wrapped losslessly as WAV.

The XFL importer now brings these bitmaps and sounds in (raw PCM only
when the data is exactly sampleCount frames long, so an MP3 kept as it
came, or a payload without a sampleCount, is not misread as PCM).
Unobserved variants are named in the report with why.

Tests: synthetic payloads built from the grammar (every truncation,
every damaged byte, oversize and zlib-bomb refusal, premultiplied
conversion, chunking, padded rows, format parsing, WAV wrapping), an
import test, and an env-gated differential test against the corpus
twins (ANICRAFT_FLA_CORPUS): every twin's 88x31 badge decodes to the
same pixels, and the movie template's four sounds come across with
their 12376/7072/901680/21216 frames.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:32:11 +01:00
Rob CoenenandClaude Opus 5.5 4ea949dc42 feat(fla): legacy timelines, keyframes and symbol placements on the stage
Item streams are an MFC CArchive object graph (class declarations,
0x8000|n class references, back references, 00 00 for none). A bounded
reader (archive.rs) walks it: pages, layers (type, colour, folders,
parents), keyframes with their raw artwork, duration, tween type and
flags, ease, labels and six custom ease curves, and symbol instances
(matrix, transformation point, first frame, loop mode, colour effect,
blend, library item id from Contents). Library symbols get their full
timelines; Contents also yields each item's type and the stage size.
Undecoded objects (texts, bitmaps, filters, button settings) are skipped
to where their parent continues and counted; a stream that does not
decode falls back to the structure-only reading.

Verified differentially against the Animate twins on every corpus pair:
337/337 timelines, 1628/1628 layers, 6993/6993 keyframes and 4457/4457
instances match (matrix within 0.01 / 0.05 px); rendered movietemplate
frames 1, 70, 120 and 184 are byte-identical to the twin's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:31:19 +01:00
Rob CoenenandClaude Opus 5.5 8d2c3008c2 feat(fla): decode curved shapes, gradients and strokes into library symbols
A CPicShape body holds the full matrix (a-d 16.16, tx/ty i32 twips), the
edge count, fill styles (solid; linear and radial gradients with matrix,
focal point and stops), stroke styles (width, cap, join, miter) and edge
records. Each record's flag byte packs four 2-bit fields - move, control,
anchor, style - whose codes pick the point storage (i16 or i32 in 1/256
twip, i16 in 1/2 twip), all relative to the pen; a control point makes a
quadratic curve. Fill regions are rebuilt per style as the XFL importer
does.

Fixes the straight-edge unit: edges are half-twips, not half-pixels, so
shapes were drawn 20x too large ('UFO mask' is 10.9 x 11.2 px).

Verified differentially against the Animate twins: all 3197 shape bodies
found in the 9 legacy corpus files (2201 curved) match their XFL edges,
styles and matrices; 244 library symbols now carry artwork. Unsupported
records (bitmap fills, unknown kinds) are skipped whole and counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:31:19 +01:00
Rob Coenen 00c39aedbc feat(fla): decode straight-edged shapes into library symbols
CPicShape records carry an i32-twips matrix translation, an inline RGBA
solid fill and an edge list of i16 half-pixel deltas with a 30 marker per
straight line (differentially verified against the corpus twins: the
'UFO mask' rectangle decodes byte-exactly — 218x224 px, white alpha
80/255, matrix 26.9/-1.55). Shapes with curves use markers not yet
mapped; they are counted in the report rather than drawn partially.
Real files decode 12 library shapes across the corpus; placements on the
main timeline remain pending, so the stage stays empty for now.
2026-11-21 15:31:18 +01:00
Rob Coenen ff1b36c4a2 feat(fla): the Flash 8–CS4 era compound binary .fla container
New L2 crate anicraft-fla, from the public Microsoft [MS-CFB] specification only
(ADR 0096), like the workspace's own zip and XML readers:

- a hardened container reader: header validation, DIFAT/FAT/mini-FAT chains,
  the directory tree with full paths, cycle guards and ADR 0054's caps profile
  (1 GiB file, 256 MiB stream), one-sentence errors, no panic on hostile input;
- the record-tag scanner behind the corpus reverse engineering: streams hold
  ff fe ff- and 01 80 17-marked UTF-16 strings (one-byte lengths) around raw
  numerics; the CPic*/C* record vocabulary is observed, not guessed;
- the structure decode into the document model: the Contents index (one
  CDocumentPage per scene, the library's stream-name/label pairs) and page
  streams' layer records (bottom-first, behind the constant layer anchor);
  frame records, artwork, tweens, text and media stay for the record-level
  decode pass and are counted per kind in an XFL-shaped import report;
- an independent spec-written compound-file writer for the tests (as ADR 0054
  does for zip), plus env-gated tests against the local EDAP corpus (CC
  BY-NC-SA, kept out of the repo): scenes and layer names match the corpus's
  modern twins on every legacy rig.
2026-11-21 15:31:18 +01:00
Tanish Manku 093efdd169 fix(access): path.move_points edits a drawn path, not a file (M5)
Main's automation roots (ADR 0124) list every command whose parameters name a path; text on a
path made path.move_points mention one. It edits vector points, so it goes in NOT_FILES.
2026-11-20 16:18:07 -07:00
Tanish Manku 1a7394def6 test(text): hostile parameters on text paths, embeds and change events; regenerate the command reference (M5) 2026-11-20 15:07:51 -07:00
Tanish Manku 019a1b1e5a docs: ADR 0107, the guide's text chapter, roadmap and changelog; screenshot states for path editing, htmlText and embedding (M5) 2026-11-20 15:07:51 -07:00
Tanish Manku 46293a6fac docs(adr): reserve ADR 0107 for text paths and the text-field API (M5) 2026-11-20 15:07:30 -07:00
Tanish Manku 6111e2d085 chore: merge main into fix/mcp-automation-roots 2026-11-20 14:58:23 -07:00
Tanish Manku 00679e8d36 fix(engine): links after a missing folder are followed, ffmpeg gets the checked path, plug-in folder links and the soundtrack's staging file are covered (M8) 2026-11-20 07:12:59 -07:00
Tanish Manku ba4ba1c2fd fix(engine): paths on another computer and device paths are refused by their spelling under automation roots; the CLI takes --flag=value (M8) 2026-11-20 06:35:49 -07:00
Tanish Manku d6f3933700 docs: automation roots in the MCP notes, the guide, the control protocol, the changelog and ADR 0124 (M8) 2026-11-20 06:28:52 -07:00
Tanish Manku 7492fcc45c docs(guide): command reference current after the rebase (M8) 2026-11-20 06:14:22 -07:00
Tanish Manku 8fb6f92203 docs: changelog and roadmap for the second issue batch; font names marked exempt (M8) 2026-11-20 06:03:26 -07:00
Tanish Manku cdef1932d4 fix(stage): a moved raw selection merges when it is deselected, not when the drag ends (M8)
A fill or stroke dragged onto another cut it the moment the mouse was let go,
while still selected. In Animate it cuts nothing until the selection lets go of
it, so it can be moved on, or back. The editor now floats a moved selection
(draw.float: whole, on top, as a paste already was) and the drawing takes it in
when it is deselected; undo takes back the move and the cut together. draw.drop
stays for scripts. ADR 0122 amends ADR 0031.

Also regenerates the guide's command and shortcut reference (draw.float,
Ctrl+J for Document Settings, all_layers on Remove Frame and Clear Keyframe).

Fixes #487
2026-11-20 06:03:18 -07:00
Tanish Manku 129145f1ed docs: the second batch of artists' requests in the changelog, the guide and the roadmap (M8) 2026-11-20 04:12:15 -07:00
Tanish Manku 8835f27ca2 fix(timeline): the header's new fields fit, its toolbar keeps a thin scroll bar, and the reference pages list the new commands and keys (M8) 2026-11-20 04:12:15 -07:00
50d7abba24 Adopt the shared AGENTS.md (RFC-0072) (#501)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* State what the cargo deny check covers in compliance.md

* AGENTS.md: correct the repository facts

Name the plug-in SDK example, which uses unsafe outside the workspace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:07:35 +07:00
Tanish Manku f73d319f14 chore: merge main into fix/outside-batch-core-2 2026-11-20 02:12:49 -07:00
Tanish Manku cdce1f52f4 chore: merge main (data tables, video import) into the second outside features batch (M8) 2026-11-20 01:15:42 -07:00
Tanish Manku 1807f424eb fix(cli): no command takes an ffmpeg path over serve or mcp (M8)
main gained Import Video, video info and relinking a layer's video,
each with the ffmpeg parameter Export Video has. The rule from outside
PR #122 named one command; it now refuses the parameter by name, and a
test walks the registry so the next command that runs ffmpeg is covered.
2026-11-19 19:15:10 -07:00
Tanish Manku 577054a3be Merge origin/main (video import, data tables) into the outside batch (M8)
# Conflicts:
#	CHANGELOG.md
2026-11-19 19:13:22 -07:00
Tanish Manku 9ea84dad3a chore: merge main (video import) into data tables (M6)
Bindings apply after the reference video is placed, where main now unwraps the layer's shown
elements; command lists keep both sides' entries.
2026-11-19 15:32:59 -07:00
Tanish Manku 5a777bac61 fix(trace): bound the areas a trace grows, with numbers, credits and docs for the outside batch (M8)
Follow-up to outside PRs #489, #404 and #486. Trace Bitmap counts areas of colour while it grows them and stops at 2,000,000 with one sentence: a 4096 x 4096 image of noise at threshold 1 made 16.7 million regions, each with an adjacency map (gigabytes). Measured in release: photo-like 1024 px 50 ms, 2048 px 225 ms, 4096 px 0.85 s; noise 2048 px at the defaults 1.9 s. Adds --open tracebitmap for screenshots, the ATTRIBUTION row for the tracer, AUTHORS, CHANGELOG credits, the roadmap's honest status and the guide's limits.
2026-11-19 15:08:43 -07:00
Tanish Manku 43e0697e60 docs: non-finite numbers on save in the changelog and roadmap (M8) 2026-11-19 15:03:42 -07:00
Tanish Manku f42104c6c9 docs: changelog, authors and roadmap for the outside batch (M8) 2026-11-19 14:49:40 -07:00
Tanish Manku 217cb3453b fix(i18n): keep the i18n files' formatting, credit Noto Sans Hebrew, and say what the face is for (M8)
Follow-up to outside PR #486: restores the untouched lines rustfmt rewrapped (READY and the test lists other tracks edit), renames the Hebrew test for what it checks (never offered yet), checks Georgian still draws with the Hebrew face behind it, adds the ATTRIBUTION row, and words the docs for what the face does today: Hebrew letters in names, not an interface language.
2026-11-19 14:44:15 -07:00
Tanish Manku 2ac002c364 Merge outside PR #476: fix(xfl): read shape hints written as morphHintsList (M8)
# Conflicts:
#	CHANGELOG.md
2026-11-19 14:42:00 -07:00
Tanish Manku 362a276d4c Merge outside PR #489: Trace Bitmap and Convert to Bitmap (M8) 2026-11-19 14:40:08 -07:00
Tanish Manku 48ea68a58e Merge outside PR #486: Hebrew font, iw normalization and RTL direction prep (M8, ADR 0040) 2026-11-19 14:40:07 -07:00
Tanish Manku 14345b5bfc Merge outside PR #404: Improve raw artwork selection visibility (M1)
# Conflicts:
#	src/stage.rs
2026-11-19 14:40:05 -07:00
HagaiBA cddc15092b fix(i18n): keep Hebrew out of ready_codes until bidi exists and respect script subtags 2026-11-19 20:58:29 +02:00
Silvertree2010 a2f7def6e5 feat(modify): Trace Bitmap and Convert to Bitmap (#463) 2026-11-19 17:05:48 +00:00
HagaiBA 8f13fb08fa feat(i18n): embed Noto Sans Hebrew, offer Hebrew locale, and expose RTL direction helper 2026-11-19 18:11:32 +02:00
Rob CoenenandClaude Opus 5.5 01ca8b7702 fix(xfl): read shape hints written as morphHintsList
Animate saves a shape tween's hints as `<morphHintsList>` on the tween's
start keyframe, one `<MorphHint startPoint="x, y" endPoint="x, y" key="0"/>`
per hint in letter order. The importer read only `<shapeHints>` (through
craft-xfl), so hints in real files were silently dropped.

Coordinates are decimal or `#` hex fixed point (signed 24.8) in units of
256 twips. Learned by observation: in the Animate-saved twins checked, the
decoded start points land exactly on edge vertices of the start shape.

A small app-local reader (`morph_hints.rs`) handles that layout and feeds
the existing ordering, limits, pairing and snapping, so both spellings map
to the same `ShapeHint`s. `shapeHints` is still read first. Malformed
values become "without a position" reports, never panics. ADR 0023 §9 gets
a dated note. The reader belongs in craft-xfl `shape_hints` eventually.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:18:48 +01:00
Call4han 9b277ef84e fix(ui): fit stage on Hand tool double-click (M8) 2026-11-18 16:40:22 -05:00
Tanish Manku 17e0d6924f docs: ADR 0118 (data tables that drive animation), the guide chapter, roadmap, changelog, attribution and compliance (M6) 2026-11-18 08:50:42 -07:00
Untoldent 15e4905258 merge: integrate upstream main for #295 (M1) 2026-11-18 10:28:10 -05:00
Tanish Manku bcc1821661 docs(guide): the command reference regenerated after the rebase (M5) 2026-11-18 08:05:36 -07:00
Tanish Manku 5cdc492e38 feat(video): the reference layer goes right under the active layer, so a backdrop doesn't hide it; the command reference regenerated (M5) 2026-11-18 08:05:36 -07:00
Tanish Manku c441f489ef docs: ADR 0116 (importing video), the guide, compliance, roadmap, changelog and attribution; ffmpeg on the Linux CI runner (M5) 2026-11-18 08:05:35 -07:00