Commit Graph
358 Commits
Author SHA1 Message Date
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 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 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
Tanish Manku 577054a3be Merge origin/main (video import, data tables) into the outside batch (M8)
# Conflicts:
#	CHANGELOG.md
2026-11-19 19:13:22 -07:00
Tanish Manku 9ea84dad3a chore: merge main (video import) into data tables (M6)
Bindings apply after the reference video is placed, where main now unwraps the layer's shown
elements; command lists keep both sides' entries.
2026-11-19 15:32:59 -07:00
Tanish Manku 5a777bac61 fix(trace): bound the areas a trace grows, with numbers, credits and docs for the outside batch (M8)
Follow-up to outside PRs #489, #404 and #486. Trace Bitmap counts areas of colour while it grows them and stops at 2,000,000 with one sentence: a 4096 x 4096 image of noise at threshold 1 made 16.7 million regions, each with an adjacency map (gigabytes). Measured in release: photo-like 1024 px 50 ms, 2048 px 225 ms, 4096 px 0.85 s; noise 2048 px at the defaults 1.9 s. Adds --open tracebitmap for screenshots, the ATTRIBUTION row for the tracer, AUTHORS, CHANGELOG credits, the roadmap's honest status and the guide's limits.
2026-11-19 15:08:43 -07:00
Tanish Manku 263e7aa32c Merge outside PR #136: Write safe values for non-finite numbers when saving .anicraft files (M8)
# Conflicts:
#	crates/engine/src/format.rs
2026-11-19 15:03:42 -07:00
Tanish Manku 5f947b0008 test(engine): bend the middle of an eight-node oval's arc (M8)
#472 gives an oval a node every 45 degrees, so the point #465's test
dragged (the old south-east arc's middle) became an anchor. Drag the
middle of the first arc, at 22.5 degrees, instead.
2026-11-19 15:02:14 -07:00
Tanish Manku 66fb6040d7 Merge outside PR #14: fix(doc): enforce the frame limit on loaded documents (M8)
# Conflicts:
#	crates/doc/src/lib.rs
2026-11-19 14:43:36 -07:00
Tanish Manku adc234ba16 Merge outside PR #465: Keep smooth anchors smooth when bending a segment (M8) 2026-11-19 14:41:43 -07:00
Tanish Manku e73d63171f Merge outside PR #472: Draw default ovals with eight nodes instead of four (M8) 2026-11-19 14:41:42 -07:00
Tanish Manku f445e6c264 Merge outside PR #494: fix(engine): report oversized indices without overflow (M8) 2026-11-19 14:41:29 -07:00
Tanish Manku e0e92068e1 Merge outside PR #495: fix(engine): import UTF-8 BOM preset files (M8) 2026-11-19 14:41:28 -07:00
Tanish Manku 362a276d4c Merge outside PR #489: Trace Bitmap and Convert to Bitmap (M8) 2026-11-19 14:40:08 -07:00
Tanish Manku f80e11f75d Merge remote-tracking branch 'origin/main' into HEAD 2026-11-19 14:26:54 -07:00
Dylan M. Taylor b953748e3a render: share SVG and Lottie writing and native envelope (#492)
* render: share SVG and Lottie writing and native envelope

* engine: bump craft-anicraft-format for write_version and fix lottie call

* test(lottie): accept array o/i easing tangents from craft-lottie
2026-11-19 16:25:09 -05:00
Mex 0f14bcc0c4 fix(filters): accept UTF-8 BOM preset files (M8)
Follow the existing leading-BOM convention at the JSON boundary and extend the exported filter-preset round trip.
2026-11-19 22:20:56 +01:00
Mex 0cca5f5dbb fix(brush): accept UTF-8 BOM preset files (M8)
Apply the existing leading-BOM convention at the JSON boundary and extend the exported brush-set round trip.
2026-11-19 22:17:59 +01:00
Mex cb3ff111b5 fix(swatches): accept UTF-8 BOM JSON files (M8)
Follow the existing command-file BOM convention while preserving the raw-byte size limit and GPL parser path. Add an exported-file round-trip regression.
2026-11-19 22:15:16 +01:00
Mex f32a746366 fix(engine): report oversized SVG frame indices (M8)
Widen only diagnostic arithmetic, and cover rejection without overwriting an existing memory-backed file plus a normal export control.
2026-11-19 21:43:13 +01:00
Mex ee7f141a34 fix(engine): report oversized scene indices (M8)
Widen diagnostic-only ordinal arithmetic and add Session regressions for invalid scene targets and delete confirmation.
2026-11-19 21:40:44 +01:00
Silvertree2010 a2f7def6e5 feat(modify): Trace Bitmap and Convert to Bitmap (#463) 2026-11-19 17:05:48 +00:00
NetterSilverandClaude Haiku 5.5 d702901a5f Write safe values for non-finite numbers when saving .anicraft files
Found while testing crates/engine/src/format.rs:73 (to_json) and :83 (from_json)

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>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 03:37:38 +00:00
NetterSilverandClaude Haiku 5.5 55d70cbea3 Draw default ovals with eight nodes instead of four
Fixes #459

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 22:22:13 +00:00
FredAppsandDylan M. Taylor 4a75c49e3b refactor(svg): read SVG text and path data through craft-svg (#386)
* refactor(svg): read SVG text and path data through craft-svg

SVG import now decodes its bytes with craft-svg (SVGZ, UTF-16 and Latin-1,
within the shared size limit) and refuses entity bombs, very wide elements
and deep nesting with craft-svg's guards before anicraft_xml builds a tree.

Path data (SVG import, the path.d and motion path commands, the interface
icons) is read by craft_svg::path_data. anicraft-geom keeps only the
elliptical-arc-to-cubic geometry; its own tokenizer is removed.

craft-svg is pinned to craft-libs main 57288eda.

Refs storytold/craft-libs#778, storytold/craft-libs#789

* refactor(svg): pin craft-svg to #1848 and parse colours through it

craft-svg is now at craft-libs main b836a718 (#1848), with default features
off, so the lock no longer pulls vectorcraft or the image codecs. Colours
go through parse_color_alpha; transparent stays in the app because the
shared parser rejects it. Percentage rgb channels follow the shared
parser's 8-bit rounding (50% is 128/255).

* fix(svg): clip out-of-range rgb() and bound decoded text

parse_color_alpha rejects rgb(300,0,0); CSS clips that to red, and so
did the previous local parser. If the shared parser fails, clip rgb()
channels and try once more. Also refuse text that grows past the 64 MiB
limit after Latin-1 or UTF-16 decoding, which svgz::text does not count.

* refactor(svg): pin craft-svg to #1878

craft-svg is now at craft-libs main c7a872e2 (#1878), which bounds the
entity-declaration scan and resets smooth-control history after Z.
default-features stays false. The other craft-libs pins are unchanged.

* fix(svg): bound rgb() components and emit integer channels

clipped_rgb now stops at a fifth component instead of collecting an
unbounded comma list, and number-form channels are retried as integers
so a value such as 127.5 is accepted by the shared parser.

* fix(svg): finish parser routing and reject missing moveto

Route the newer Continue Path entry point through the shared adapter. Require an initial moveto and assert precise preflight refusal variants. Focused geom/SVG tests: 137 + 31 passed. Quadratic gradient parity remains a separate merge blocker.

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-18 15:14:56 -05:00
NetterSilverandClaude Opus 5.5 785cf0050c Keep smooth anchors smooth when bending a segment
Fixes #460

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:22:07 +01:00
Tanish Manku ffd8abe510 feat(data): data tables that drive animation: tables in the Library, bindings applied in evaluate, bake, data.* commands and the shell (M6)
Numeric tables kept in the document (CSV, TSV through craft-csv, JSON), bindings of a column to a symbol instance's x, y, scale, rotation, alpha or the frame a graphic shows, applied purely in evaluate; Bake to Keyframes; a table viewer and a Data section in Properties.

Measured (test profile, Windows 10): import of 100 000 rows x 10 columns from 3.2 MB of CSV in 63 ms; evaluate of 200 instances 15 us unbound, 82 us with 200 bindings on a 1 000-row keyed table; bake of those 200 instances in 4.9 ms.
2026-11-18 08:50:41 -07:00
Tanish Manku 76b2454c71 test(video): the stand-in ffmpeg scripts are owner-only (M5) 2026-11-18 08:50:35 -07:00
Tanish Manku a3c68fa71c test(video): a stand-in ffmpeg drives the whole import, hostile output and the import window (M5) 2026-11-18 08:05:36 -07:00
Tanish Manku 5cdc492e38 feat(video): the reference layer goes right under the active layer, so a backdrop doesn't hide it; the command reference regenerated (M5) 2026-11-18 08:05:36 -07:00
Tanish Manku c619130a37 fix(engine): as_chunks for the PPM pixels (clippy) (M5) 2026-11-18 08:05:36 -07:00
Tanish Manku fe3ff613f2 fix(video): undo sees a layer's video, the sound starts with the pictures, the cache keeps the run on screen; tests on a clear stage (M5) 2026-11-18 08:05:36 -07:00
Tanish Manku 9a45a3db29 test(engine): typed hostile PPM table and an in-range fuzz index; shell fixes before CI (M5) 2026-11-18 08:05:36 -07:00
Tanish Manku bb833c4b85 feat(engine): video through the user's ffmpeg: probe, plan, PPM pipe, frame cache, file.import_video, file.video_info, layer.set_video (M5) 2026-11-18 08:05:12 -07:00
Tanish Manku 2128f16c2c chore: merge main (pen and keep area, layer parenting) into audio to keyframes (M5) 2026-11-18 05:48:09 -07:00
Tanish Manku 8f1e455e43 docs: ADR 0114, the guide's Convert Audio to Keyframes and Auto lip-sync sections with their pictures, command reference, roadmap, changelog and credits (M5) 2026-11-18 04:30:58 -07:00
Tanish Manku 6fc56bfefe feat(engine): sound.to_keyframes, sound.lip_sync and sound.analyse: a sound's loudness or speech keys an object on another layer, one undo step (M5) 2026-11-18 04:30:42 -07:00