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.
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.
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
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>
Floating paste, pictures from the system clipboard, refused merges and the
Fill/Stroke memory are recorded in ADR 0108. The command reference is
regenerated; clippy findings in the new tests are fixed.
Text keeps its filters next to its styled runs. In HTML export, static text in several colours
with filters is one item of pieces (pp), so the pieces share one filtered group as evaluate
draws them; the page's player draws such items piece by piece.