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.
file.open routes OLE2 compound binary bytes to anicraft_fla::import before the
zip importer sees them (ADR 0096), and surfaces the legacy import's report in
the same shape as the XFL one (skipped/kept/runs/missing_fonts/named). A legacy
file now opens with its scenes, layer names and library; everything the
record-level decode pass will handle is counted per kind in the report, never
silent.
anicraft-cli fla-dump <legacy.fla> [--stream <name>] prints a Flash 8–CS4
.fla's stream tree, prologues and record tags as JSON. It is the
reverse-engineering microscope for the legacy import (ADR 0096) and makes
triaging user files observable.
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.
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.
Inter, JetBrains Mono and egui's own fonts have no Japanese, Chinese, Korean,
Arabic, Thai or Indic letters, so text in them showed as empty boxes in the Movie
Explorer, the timeline, the Library and Properties, while the stage drew it.
Each frame the painted text is checked for characters no interface font has; a
background thread then finds an installed face that has them (the system's own
interface faces first, ordered by the system's language for Han characters) and
it is added after every other font. Nothing loads until such text is shown; at
most 6 faces of at most 48 MB, each character looked up once.
Also adds the docsettings screenshot state.
Fixes#482
0.2.1 asked zune-jpeg for RGBA from CMYK files and got scrambled pixels. Since
JPEG decoding moved to craft-image-codecs, CMYK and YCCK files are decoded as CMYK
and converted, so they import correctly; this pins it with a 16 x 16 picture in
quarters of cyan, magenta, yellow and grey.
Fixes#447
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
A guide drawn as a zigzag with the Line tool is one raw stroke per straight run
(merge drawing cuts lines at their corners), and only the first shape's first
line was the path: the guided object ran along one run and stopped at the first
sharp peak or valley. The guide is now its first line continued through every
line on the layer that meets it end to end (within 0.75 px; at most 512 lines),
in either direction, so speed is even along the whole path and orient to path
turns at each corner.
Fixes#490
F5 with no frame selection extends every layer at the playhead, but Shift+F5 took
the frame off the active layer only, and Shift+F6 cleared only its keyframe.
timeline.remove_frame and timeline.clear_keyframe take all_layers, which the
editor sends when no frames are selected; the playhead steps back when its frame
is removed, so the key can be held. The question before artwork is lost counts
every layer the key acts on.
Fixes#438
The menu item ran doc.set_stage with nothing to set, so nothing happened. It now
opens Document Settings (stage size, frame rate, stage colour; OK is one undo
step, Cancel changes nothing), with Animate's Ctrl+J. Headless, the command takes
the values as before.
Fixes#505
A layer named after a long file (an imported sound) drew its name under the eye,
lock and outline toggles. The name now ends in an ellipsis where they begin.
The other half of #440, the side panels growing with a long name until the window
could not be used, was fixed by the narrow-panel work (ADR 0087): with a 110
character sound name the docks keep their width.
Fixes#440
The menu bar rebuilds the registry each frame, and cmds_text::specs leaked four
formatted strings per call: about 1.5 kB a frame while the window repaints
(playback, a blinking caret, an animation), which is 2.6 GB over a night.
Measured (release, Windows): looping playback grew 220.7 -> 246.5 MB working set
in 5 minutes; a headless run of App::frame kept +1,522 B per frame. The docs are
now built once. A window that draws nothing was already flat (341 MB over 3 min).
Fixes#454
The always-shown bars (#483) took the text colour at full strength, striping the dark theme with
white. They now rest at 45 % (about 3:1 against the panel, a control's contrast), brighten under
the pointer and while dragged, and still take a lane as wide as the bar. egui applies handle
opacity only to floating bars, so the bar floats with a full-width allocated lane; the guideline
test now checks that lane and the bar's visibility at rest rather than the flag.
* 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>