mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-22 02:21:46 +01:00
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>