Commit Graph
172 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 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 e1a7c0bfac fix(doc): equality names every field, so a new one cannot be left out (M8) 2026-11-20 21:09:20 -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 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 b3c101276c fix(doc): the guide's joining loop as a while-let (M8) 2026-11-20 06:22:11 -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 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 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 280c7e11c6 fix(doc): one evaluation or bounds query visits at most a million elements (M8)
The depth cap (32) alone leaves a library where each symbol holds two
instances of the next to expand 2^32 times: opening such a file hung
the stage and ran out of memory, and selecting the instance did the
same in element bounds. Evaluation and bounds now share an allowance
of MAX_EVAL_ELEMENTS (1,000,000) element visits per call; past it the
rest is left out, so a hostile or damaged document draws in part.

A 31-level doubling chain (2^30 squares) now evaluates and measures in
under 0.1 s in the test profile; an 11-level one still gives all 1,024.

The problem and the idea of a shared work budget are Agapenor's
(outside PR #13), rebuilt here on the current evaluator.
2026-11-19 14:48:59 -07:00
jayzed80 257d7ef5e5 fix(doc): group guided shape-tween strokes by fill and keep flat member bounds 2026-11-19 21:48:09 +00: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 c4483df819 Merge outside PR #140: Reject sign characters in Rgba::parse_hex (M8) 2026-11-19 14:41:44 -07:00
jayzed80 dde8caeca6 perf(doc): index shape-tween stroke runs to their outline once a frame
Each start-key element searched the joined outlines for the one holding it, so
an outline of n runs cost n(n+1)/2 comparisons a frame. The runs of each
outline are indexed once per call and looked up in constant time.
2026-11-19 19:27:00 +00:00
jayzed80 f06a4b4f65 fix(doc): shape-tween strokes take their own fill's origin and the fill's correspondence
A solid stroke outline against a dashed or profiled one on the other key: only
one of the two is chained, so a whole outline morphed against the other key's
loose runs and the stroke followed a different correspondence than the fill.
Both keys' outlines are chained for the morph now; the keys keep their own runs.

On a guided tween, each joined outline took the first raw fill's origin, so in a
keyframe with several merged fill regions the second region's stroke followed
the first region's guide path. Each outline now takes the origin of the fill
nearest it.

Tests: a_solid_outline_morphs_against_a_dashed_one (fill edge 17.8 off the
stroke before the fix) and a_guided_shape_tween_keeps_each_stroke_with_its_own_fill
(the second region's stroke 273 off its fill before the fix).
2026-11-19 19:23:51 +00:00
jayzed80 9e2e788ce8 fix(doc): shape-tween stroke runs keep their identities, stay apart when dashed or profiled, and ride a motion guide with their fill 2026-11-18 21:22:04 +00: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 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 57368dd3bd feat(doc): a layer's reference video: the model, its placeholder in evaluation, bitmaps kept as PNG only (M5) 2026-11-18 08:05:12 -07:00
Tanish Manku fe540854a3 feat(doc): keep area on classic and motion tweens: scale moves geometrically, an unkeyed axis follows (M1) 2026-11-18 03:43:36 -07:00
Tanish Manku 7e9d8226c3 test: lint-clean parenting tests and a timing check (M7) 2026-11-18 02:31:14 -07:00
Tanish Manku 7fb26952f0 docs: ADR 0113 (layer parenting), the guide's timeline chapter, roadmap, changelog and attribution (M7) 2026-11-18 02:31:14 -07:00
Tanish Manku b228949f45 feat(doc): layer parenting in the model and evaluate: a layer follows the first object on its parent layer (M7) 2026-11-18 02:30:59 -07:00
Tanish Manku c23fa96ccd feat(render): layer opacity in the HTML canvas export, with CPU pixel and GPU parity tests (M1) 2026-11-17 23:32:53 -07:00
Tanish Manku 20ac637cc6 feat(doc): an instance's transformation point in tweens, and layer opacity as a fade group (M1) 2026-11-17 23:32:53 -07:00
NetterSilverandClaude Haiku 5.5 d2e31a683a Reject sign characters in Rgba::parse_hex
Found while testing crates/doc/src/lib.rs:84 (Rgba::parse_hex, `byte` closure)

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-18 03:51:08 +00:00
Tanish Manku 76942283c2 chore: merge main into fix/outside-batch-core 2026-11-17 16:26:38 -07:00
Tanish Manku c2472cd639 chore: merge main (styled text, mixed armatures) into filter tracks (M5)
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.
2026-11-17 14:55:39 -07:00
Tanish Manku b5f3e5f0a8 chore: merge main into m7/mixed-armatures 2026-11-17 14:13:32 -07:00
Tanish Manku fb37b8ce77 Merge outside PR #236: Morph a raw shape's stroke with its fill in shape tweens 2026-11-17 13:32:40 -07:00
Tanish Manku dd97c10c20 Merge outside PR #146: Reject hex colours with more than one leading '#' 2026-11-17 13:32:38 -07:00
Tanish Manku 873b9aa744 Merge outside PR #230: Sanitize dotted spacing in Dash::lerp for overshooting eases
# Conflicts:
#	crates/doc/src/stroke_style.rs
2026-11-17 13:32:36 -07:00
Tanish Manku a2806fb6ed Merge outside PR #231: Keep odd dash patterns whole when Dash::sanitized repeats them 2026-11-17 13:32:10 -07:00
Tanish Manku 471049a06c chore: merge main (saved commands, shared crates) into styled text (M5)
The Save As Command and Manage Saved Commands windows open through windows::new, so they stay
below the menu bar like every other floating window.
2026-11-17 13:27:01 -07:00
Tanish Manku 5fd3298517 style(filters): doc comment markers and clippy idioms in the filter slice (M5) 2026-11-16 19:29:44 -07:00
Tanish Manku 6501af0585 feat(filters): colour and stepped filter tracks, list pairing, built-in presets, filters on text (M5)
Model and commands (ADR 0099):
* FilterParam gains a colour's channels (color, shadow_color, highlight_color,
  stop_<n>; red, green, blue 0-255, alpha in percent, as the tint) and the
  stepped quality, inner, knockout and hide_object, whose keys hold.
* Classic tweens of lists that differ pair the kinds they share in order;
  a filter without a partner fades to or from itself doing nothing.
* TextBlock carries a filter list; evaluate draws text with filters in a
  filtered group, as a movie clip.
* filter.* commands and element.set_filters act on text; motion.set_key
  keys a whole colour; eight built-in presets that can only be hidden
  (filter.preset_hide).
2026-11-16 19:17:17 -07:00
Dylan M. Taylor 5543a69e74 refactor(swatch): delegate GPL grammar to shared palette reader 2026-11-16 21:03:23 -05:00
Tanish Manku 2972440207 feat(bones): mixed armatures, symbol instances and shapes in one armature (M7)
Bones marked with the shape they are inside bend it through that shape's skin;
other bones move an instance or a whole shape. One pose, solver and tween.
A document with a mixed armature is written as format version 4; every other
document byte for byte as before.

Measured (optimised test profile): 25 bones, two shapes of 1,002 points and
8 instances bind in 1.6 ms and pose in 0.066 ms per frame; IK through all 25
bones 0.07 ms.
2026-11-16 18:32:56 -07:00
Tanish Manku 5da16a0fab feat(doc): styled runs, paragraph styles and colour fills on text blocks (M5) 2026-11-16 18:26:38 -07:00
Dylan M. Taylor 163721d1a3 Use shared Base64 encoding for bitmap document payloads 2026-11-15 13:28:02 -05:00
Dylan M. Taylor 30aa4374d0 chore: cut over audio, xml, xfl, zip, and raster codecs to craft-libs (#339) 2026-11-14 08:00:38 -05:00
Tanish Manku 2ba2f3af2c chore: merge main into m7/brushes-2 2026-11-13 22:06:42 -07:00
Tanish Manku 810fd3f47f feat(engine): width profiles and gradients through the merge, and erasing inside symbols (M7) 2026-11-13 20:56:28 -07:00