Resolves the Cargo.toml conflict by keeping both new workspace
dependencies: craft-cfb (this branch) and craft-text (main).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stage tells the render service which picture set is on screen, drops the
textures of other sets when the view is whole, asks for nothing while the zoom
is changing, and in the browser draws for at most 8 ms of a frame while moving
around. ADR 0132, changelog, roadmap. #314, #477, P-004.
In a field while a movie plays, Left and Right move the caret by where text is displayed,
crossing lines by the paragraph's direction, and a selection across a change of direction is
highlighted in its separate stretches. text.create and text.edit return a note naming the
families letters were borrowed from and how many characters no installed font has; the stage
shows it in the status bar. craft-text is pinned to the craft-libs commit the app already
uses. ADR 0130, the guide, the roadmap and the parity matrix say what is done and what is
left; outside PRs #39 and #40 are credited.
modify.distribute_to_layers puts each selected object (symbol instance,
group, drawing object, text, bitmap) at the playhead on a new layer of its
own, just above its layer and in the same folder or mask, named after its
symbol, stacked as the objects were and holding it for the frames its
keyframe covered. With Break Apart first, a symbol's contents spread over
layers. Raw shapes stay; a tweened keyframe is refused with a message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Five Align commands: align.match_width, align.match_height and
align.match_size make each selected object (a raw drawing as one) the
largest one's width and/or height, or the stage's with to_stage, scaled
about its own top-left corner; align.space_h and align.space_v make the
gaps between three or more objects equal, the outer two unmoved. The
Align panel has buttons for them (five original icons on Lucide's grid),
the stage's Align menu lists them, and Edit Multiple Frames leaves them
off as it does Distribute.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
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.
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.