Commit Graph
1292 Commits
Author SHA1 Message Date
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 247cd9dac4 feat(engine): open Flash 8–CS4 .fla documents with their scenes, layers and library
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.
2026-11-21 15:31:18 +01:00
Rob Coenen 57bc336c0a feat(cli): fla-dump, the legacy Flash container's stream microscope
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.
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
Dylan M. Taylor 1762633919 test(render,engine): verify SVG and Lottie export parity (native + wasm) (#521)
* test(render,engine): audit SVG and Lottie export parity (native + wasm)

* fix(tests): fix Bitmap::from_rgba and std::path::Path shadowing

* fix(tests): generate linked SVG via to_svg instead of string replace

* fix(render): match craft_xml double-quoted attribute escaping for apostrophe

* fix(tests): satisfy clippy::field_reassign_with_default

* fix(tests): remove unused mut in svg_parity

* test(lottie): narrow tangent parity test name and cite #499 for rounding
2026-11-20 19:56:24 -05:00
Tanish Manku 4cdf681164 Merge pull request #520 from storytold/m5/text-path-fields
feat(text): edit text paths in place, lines on a path, htmlText, change events and embedded glyphs (M5)
2026-11-20 16:52:16 -07: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 e0324ae4ce Merge pull request #511 from storytold/fix/mcp-automation-roots
fix(cli): mcp needs automation roots and keeps an assistant's file access inside them (M8)
2026-11-20 15:26:38 -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 de8688ba20 feat(export): embedded glyph outlines for dynamic text fields in the HTML page, with the fsType licence check (M5) 2026-11-20 15:07:31 -07:00
Tanish Manku 882434838e feat(export): htmlText, change events, maxChars and restrict in the HTML page's player, at parity with Test Movie (M5) 2026-11-20 15:07:31 -07:00
Tanish Manku 472e3972ae feat(fields): the change event in actions.set and the Actions panel; end-to-end Test Movie test (M5) 2026-11-20 15:07:31 -07:00
Tanish Manku 564e4ba387 feat(fields): htmlText, Event.CHANGE, change actions, maxChars and restrict in the script IR and the player (M5) 2026-11-20 15:07:30 -07:00
Tanish Manku 72fd12b4c2 feat(text): edit a text's path in place with the Subselection tool; lines on a path tested end to end (M5) 2026-11-20 15:07:30 -07:00
Tanish Manku bcbabf0938 feat(text): several lines on a path and editing a text's path with the point commands (M5) 2026-11-20 15:07:30 -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 5d03a47b7e Merge pull request #509 from storytold/fix/issues-bugs-2
fix(app): open-issue batch 2: memory growth, floating moves, Document Settings, guides with corners (M8)
2026-11-20 14:49:04 -07:00
Tanish Manku 118f18722b Merge remote-tracking branch 'origin/main' into HEAD 2026-11-20 14:11:18 -07:00
Dylan M. Taylor 3e4750f866 fix(xfl): enforce full folder path boundaries and 256 MP bitmap budget (#518)
* fix(xfl): enforce full folder path boundaries and 256 MP bitmap budget

* test(xfl): verify valid long bitmap sequence imports under 256 MP budget
2026-11-20 15:03:25 -05: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 b3c101276c fix(doc): the guide's joining loop as a while-let (M8) 2026-11-20 06:22:11 -07:00
Tanish Manku 8993a6011f feat(cli): mcp refuses to start without --automation-read-root and --automation-write-root; the bridge carries them to the window (M8) 2026-11-20 06:18:05 -07:00
Tanish Manku d170ed6838 feat(engine): automation roots: commands under a policy touch files inside its read and write roots only (M8) 2026-11-20 06:14:44 -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 464fb4a485 fix(ui): names in scripts the interface's fonts lack get a face of this computer (M8)
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
2026-11-20 06:03:18 -07:00
Tanish Manku 268cce166d test(doc): a CMYK JPEG imports in its own colours (M8)
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
2026-11-20 06:03:18 -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 21dcd99736 fix(doc): a motion guide made of several strokes is followed to its end (M8)
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
2026-11-20 06:03:18 -07:00
Tanish Manku 624745de41 fix(timeline): Shift+F5 and Shift+F6 with no frame selection act on every layer (M8)
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
2026-11-20 06:03:18 -07:00
Tanish Manku 541d2b170b fix(app): Modify > Document Settings opens a dialog (M8)
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
2026-11-20 06:03:18 -07:00
Tanish Manku 51e27953e2 fix(timeline): a long layer name is cut before the row's toggles (M8)
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
2026-11-20 06:03:18 -07:00
Tanish Manku 449df1dde2 fix(engine): the command registry no longer leaks its text params docs on every call (M8)
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
2026-11-20 06:03:18 -07:00
Tanish Manku 3ccb59e02b Merge pull request #508 from storytold/fix/issues-requests-2
fix(shell): artists' requests, second batch: SVG sequence, timeline fields, panel keys, menus, scroll bars, colour picker (M8)
2026-11-20 05:24:12 -07:00
Tanish Manku d7754ef9f4 fix(theme): scroll handles toned down at rest, still in their own lane (M8)
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.
2026-11-20 04:57:57 -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
Tanish Manku ac1eb2d6a8 feat(colour): the picker's top row shows the swatch under the pointer, one button swaps palette and mixer, and the palette is in the order artists know (#432, #434, #435, #437) (M8) 2026-11-20 04:12:15 -07:00
Tanish Manku 8ed4122a6a fix(ui): scroll bars are always shown, in their own lane and wide enough to grab (#483) (M8) 2026-11-20 04:12:14 -07:00
Tanish Manku 40937fac69 fix(menus): with one menu open, pointing at another title opens it (#455) (M8) 2026-11-20 04:12:14 -07:00
Tanish Manku ab583b3da7 feat(shell): every panel opens and closes from the keyboard, and F4 hides them all (#456) (M8) 2026-11-20 04:12:14 -07:00
Tanish Manku 587d9c7839 feat(timeline): the current frame and the frame rate are fields in the timeline header (#462, #461) (M8) 2026-11-20 04:12:14 -07:00
Tanish Manku 51a6cbdf8b feat(export): Export SVG Sequence, one SVG file per frame (#504) (M8) 2026-11-20 04:12:14 -07:00
Tanish Manku 13cab907eb test(engine): an imported bitmap turns about the centre of its box (#466) (M8) 2026-11-20 04:12:14 -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 062cf066ed Merge pull request #507 from storytold/fix/video-spawn-etxtbsy
fix(video): retry starting ffmpeg while its file is briefly busy (M5)
2026-11-20 03:24:24 -07:00