Commit Graph
652 Commits
Author SHA1 Message Date
Tanish Manku a18c0aded1 Merge origin/main into fix/backlog-model-hardening (M8) 2026-11-21 13:44:04 -07:00
Tanish Manku 80508758dd fix(doc): on a guided shape tween every raw outline rides with the fill it edges (M5) 2026-11-21 13:43:52 -07:00
Tanish Manku a812c1c9e7 Merge pull request #238 from jayzed80: shape-tween strokes at junctions, dashed and profiled runs, and along a motion guide (M5) 2026-11-21 13:32:18 -07:00
Tanish Manku d9b8bcadd1 feat(engine): exports, info and the MCP render say when a frame's artwork was left out (M8) 2026-11-21 13:28:27 -07:00
Tanish Manku 1a9b44da8f fix(doc): one work allowance for layers, outlines, lookups and the player's step, and frames that say when artwork is left out (M8) 2026-11-21 13:16:44 -07:00
Tanish Manku eae761cacb test(engine): keep #500's link test to the lines it adds (M8) 2026-11-21 13:10:59 -07:00
Tanish Manku b9abf659f4 Merge pull request #500 from FredApps: a test that linked SVG artwork survives export and re-import (M8) 2026-11-21 13:08:53 -07:00
Tanish Manku 0000ba2c4b fix(doc): Rgba::to_hex stays opaque; to_hex_alpha is the form that reads back (M8) 2026-11-21 13:08:39 -07:00
Tanish Manku 60ff0d83af Merge pull request #233 from Silvertree2010: keep alpha in a colour's hex form (M8)
# Conflicts:
#	crates/render/src/lottie.rs
2026-11-21 13:01:59 -07:00
Tanish Manku f21016222c perf(geom): Vec2::length takes hypot only where the squares leave f32 (M8) 2026-11-21 13:01:43 -07:00
Tanish Manku 817c5e3197 Merge pull request #130 from Silvertree2010: a test for SVG path numbers past f32 (M8) 2026-11-21 12:59:16 -07:00
Tanish Manku 4f5cc73f98 Merge pull request #142 from Silvertree2010: Vec2::length overflow for large vectors (M8) 2026-11-21 12:59:16 -07:00
Tanish Manku fd1e03ea2c Merge remote-tracking branch 'origin/main' into HEAD 2026-11-21 12:44:54 -07:00
Dylan M. Taylor dde812c923 svg: cut over length, viewBox, transform, style, and dash syntax to craft-svg (#547)
* svg: cut over length, viewBox, transform, style, and dash syntax to craft-svg (#789)

* build: repin craft-svg to merged craft-libs main (d20a8248)
2026-11-21 14:35:17 -05:00
Tanish Manku ed39b458c4 test(engine): the command sweep is one test per starting document (M8) 2026-11-20 21:09:21 -07:00
Tanish Manku 4d42fa535f fix(engine): pictures still being drawn are not kept once forgotten (M8) 2026-11-20 21:09:20 -07:00
Tanish Manku 182722d677 fix(engine): a saved document is on the disk before it replaces the old one (M8) 2026-11-20 21:09:20 -07:00
Tanish Manku e1a7c0bfac fix(doc): equality names every field, so a new one cannot be left out (M8) 2026-11-20 21:09:20 -07: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 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 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 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 6111e2d085 chore: merge main into fix/mcp-automation-roots 2026-11-20 14:58:23 -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 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 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 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 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
Tanish Manku 669080676e Merge remote-tracking branch 'origin/main' into HEAD 2026-11-20 02:43:49 -07:00
Tanish Manku f73d319f14 chore: merge main into fix/outside-batch-core-2 2026-11-20 02:12:49 -07:00
Tanish Manku 531699f46b fix(video): retry starting ffmpeg while its file is briefly busy (M5)
On Linux, starting a program that was written a moment ago fails with ETXTBSY while another
process that forked meanwhile still holds it open for writing. The stand-in ffmpeg test hit it
on the Linux gate. Starting ffmpeg now retries that error for up to half a second.
2026-11-20 02:04:28 -07:00
Tanish Manku cdce1f52f4 chore: merge main (data tables, video import) into the second outside features batch (M8) 2026-11-20 01:15:42 -07:00
FredApps 33cc7b3ba6 fix(render): preserve legacy Lottie keyframe timestamp rounding (#499)
Restore three-decimal keyframe timestamps before shared property serialization and cover scalar/vector easing, holds and fractional playback.

Normal Linux, macOS, Windows, Web and cargo-deny checks passed on exact head. Fork Sonar intentionally skipped coverage without its token; normal merged-main validation remains enabled.
2026-11-20 12:47:45 +07:00
NetterSilverandClaude Haiku 5.5 8a729b2bdb Reject SVG path coordinates that overflow f32
Found while testing crates/geom/src/svg.rs:~66 (Cursor::number) and P::v at ~88

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 05:21:22 +00:00