Commit Graph
260 Commits
Author SHA1 Message Date
Tanish Manku 6c8d4e2c67 feat(ui): timeline marks layers with selected artwork, Properties shows mixed values (M1)
Every layer row that holds selected items shows a square in the layer's
colour after its name (and screen readers hear it). Properties lists the
selection from every layer, titles it with how many layers it spans, shows the
combined box's position for several elements and marks values that differ as
mixed.
2026-11-10 15:59:00 -07:00
Tanish Manku 2c6ff5e7ea feat(engine): a selection of (layer, element) pairs across layers (M1)
The session's selection becomes a set of (layer, element) references at the
playhead (ADR 0044, issue #42). Commands that edit the selection run their
single-layer body once per layer that has selected items (move, delete,
duplicate, arrange, transforms, colour effects, filters, break apart, raw
merges); align/distribute, the Free Transform box, copy and snapping read
across the layers; paste keeps each copied layer; Convert to Symbol keeps the
layers inside the symbol and lands the instance on the topmost. The marquee
and Select All gather from every visible, unlocked layer, cutting raw parts
per layer. Locked or hidden layers are never selected. A selection on the
active layer alone behaves exactly as before.
2026-11-10 15:58:48 -07:00
Tanish Manku b22e2c2cbc docs: reserve ADR 0044 for selection across layers (M1) 2026-11-10 15:45:33 -07:00
Tanish Manku 0e9558ce99 Merge pull request #109 from storytold/m7/bones
feat(bones): Bone tool and inverse kinematics, first slice (M7)
2026-11-10 15:39:57 -07:00
Tanish Manku 1c9a88ebc4 docs: ADR 0043 bones and inverse kinematics, roadmap, changelog, attribution (M7) 2026-11-10 15:15:19 -07:00
Tanish Manku 2a0ef9ae6f fix(doc): IK gets past CCD's straight-chain blind spot and converges on long chains (M7)
A straight chain whose target lies on its own line gave every joint a
zero turn; a stalled solve now bends its joints a little (at most four
times) and keeps the best pose seen. The sweep budget rises to 2,048 so a
64-bone chain reaches from rest.

Measured (dev profile, 200 targets each, from the rest pose): 2 bones
0.007 ms per solve, 10 bones 0.065 ms, 64 bones 4.7 ms; every target
within 0.01 px (before: 64 bones missed 99 of 200 by up to 28.7 px).
2026-11-10 15:14:17 -07:00
Tanish Manku d54c27b91c feat(ui): Bone tool, bones on the stage, IK posing and bone Properties (M7)
The Bone tool (M) drags from one symbol instance to another to add a
bone (starting on a bone's end continues the chain) and clicks to pick
a bone. Bones draw as wedges in the armature layer's colour, the picked
one in the selection colour. The Selection tool drags a bone or a posed
instance to pose by IK, and the root instance to move the armature; each
drag is one undo step. Properties shows the bone's angle, joint limits,
pin and Remove Bone; Delete removes the picked bone.
2026-11-10 15:11:11 -07:00
Tanish Manku 70f1305bb6 feat(doc): armature layers, joint-angle poses and CCD inverse kinematics (M7)
An armature layer holds symbol instances joined by bones (a joint on the
parent instance, the child turning about it). Keyframes store poses as
joint angles, tweened with the span's easing and applied by forward
kinematics in evaluate_layer_elements, so every export, the GPU stage and
the player see them. bone.add/remove/set_limits/pin/pose/solve/info
commands; IK by cyclic coordinate descent with joint limits and pins.
2026-11-10 15:10:36 -07:00
Tanish Manku 785011f73e Merge pull request #108 from storytold/m1/raw-subselection
feat(ui): Subselection on raw drawings, Snap to Objects, merging everywhere (M1)
2026-11-10 15:08:33 -07:00
Tanish MankuandClaude e89b2bb61d docs: ADR 0042 Subselection on raw drawings and merging everywhere; ADR 0031/0041 lists, roadmap, changelog (M1)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-10 14:32:14 -07:00
Tanish MankuandClaude 17d766536d feat(ui): Subselection shows and moves connected raw points and handles; Snap to Objects magnet (M1)
* Subselection on merged drawings: a click shows the anchors of every
  connected raw shape (hollow squares, selected ones solid) and the
  handles of the selected anchors and the clicked edge; Shift adds or
  removes; dragging an anchor moves it with the other selected ones and
  every shape on them (snapping); dragging a handle bends the edge in
  every shape that has it; dragging a line or fill moves everything
  connected; the marquee takes whole shapes on the active layer and
  selects the anchors inside; arrow keys nudge (1 / 10 screen px).
* Snap to Objects: View > Snapping, a magnet under the tools, and a
  checkbox in the Selection, Subselection and Free Transform options.
* rawsub screenshot setup, in the accessibility audit.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-10 14:30:31 -07:00
Tanish MankuandClaude ae16caf5d9 feat(engine): Subselection on raw shapes, Snap to Objects, merging bucket fills, pastes, XFL raw shapes and gradients (M1)
* raw.subselect / raw.subselect_rect / raw.points / raw.move_handle: the
  connected raw shapes' anchors (once per position) and curve handles; a
  handle drag changes the edge in every raw shape that has it.
* raw.move_point takes 'with': other selected anchors move along.
* draw.snap_to_objects (View > Snapping), on by default, gates every
  'snap' param.
* paint.bucket: raw fills merge (behind), filled exactly up to raw lines
  and fill edges (a local probe merge); recolouring a raw fill re-merges.
* Pasted raw shapes merge where they land (Paste in Place too).
* XFL: loose DOMShapes (not isDrawingObject, not in groups) import raw;
  file.open merges each keyframe's raw shapes (tweened keyframes kept).
* Gradient and bitmap fills take part in the merge; width profiles stay
  objects.

Measured (748 raw shapes, debug-opt build): click 0.9 ms, anchor list
0.1 ms, handle frame 0.1 ms, merge on release 0.2 ms, exact bucket fill
0.3 ms (20 ms before the probe was made local).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-10 14:22:21 -07:00
Tanish Manku 1864ad1b85 Merge pull request #107 from storytold/m1/raw-selection
feat(drawing): Selection tool on raw drawings: bend, shared points, snapping, parts marquee (M1)
2026-11-10 14:05:34 -07:00
Tanish Manku ce4af03c01 docs: ADR 0041 Selection tool on raw drawings; ADR 0031 remaining list, roadmap, changelog (M1) 2026-11-10 13:41:29 -07:00
Tanish Manku ce7f4070f4 feat(ui): Selection tool bends, moves shared points, snaps and cuts marquee parts (M1)
On raw shapes, a drag from an unselected corner or end moves it with every
shape that shares it, from an unselected segment or fill edge bends it, from
a fill or a selection moves the selection; points and selections snap within
10 screen px with a snap ring; corner and curve marks by the pointer show what
a drag will do; the marquee runs raw.select_rect. Each drag is one undo step
and merges again on release. --open rawparts / rawedit show the states.

perf: on 1,320 raw shapes (debug-opt build) a hover test takes 0.04 ms, a
bend frame 0.14 ms, a point frame with snapping 0.22 ms, a snapping
selection move 0.29 ms, the merge on release 0.22 ms, a marquee cut and heal
1.8 ms.
2026-11-10 13:40:27 -07:00
Tanish Manku 2d1f19af29 feat(engine): bend segments, move shared points, snapping and the parts marquee (M1)
path.bend_segment bends the segment under the pointer through the dragged
point and every raw copy of that edge with it; raw.move_point moves a corner
or end with every raw shape that shares it (splitting an edge another shape
ends on), snapped within a distance to points, lines and fill edges;
element.translate takes snap/from; raw.select_rect cuts raw shapes at the
marquee and selects the parts inside plus objects wholly inside, with the cut
provisional (no undo step, taken back when the selection lets go of it);
raw.merge and raw.hit. Plug-ins may call the raw namespace.
2026-11-10 13:34:14 -07:00
Tanish Manku ff4528df62 feat(geom): midpoint snapping, marquee cutter and shared-edge editing (M1)
planar: anchors within SNAP meet at their midpoint and a point landing on a
line goes onto it (the line stays), as issue #42 section 4 describes;
merge_cut cuts along a closed outline that never comes out and marks each
piece inside or outside it. raw: bend an edge and make every copy of it in
other paths follow, split a path where another shape ends on it, nearest
point on a cubic.
2026-11-10 13:34:14 -07:00
FredApps 978cc3aa9f Merge pull request #106 from storytold/sonar/coverage-exclusions
Exclude JS, PowerShell and Python from Sonar coverage
2026-11-10 18:45:31 +01:00
FredApps a69a058eae Merge branch 'main' into sonar/coverage-exclusions 2026-11-10 18:35:16 +01:00
FredApps cedbe82e8a Merge pull request #104 from storytold/test/motion-path-coverage
test(motion_path): cover the pointer and keyboard paths headlessly
2026-11-10 18:35:08 +01:00
FredApps bbc7f934bd Merge branch 'main' into sonar/coverage-exclusions 2026-11-10 18:24:53 +01:00
FredApps 3ec30b0caf Merge branch 'main' into test/motion-path-coverage 2026-11-10 18:24:48 +01:00
FredApps 4491b7bce1 Merge pull request #103 from storytold/sonar/html-start-rejection
Report a failed HTML movie start instead of leaving the promise unhandled
2026-11-10 18:23:50 +01:00
FredApps bec942c71f chore(sonar): exclude JS, PowerShell and Python from coverage
CI only publishes the Rust lcov report, so these files can never appear
covered and pull new_coverage below the 80% gate. Same approach as
filmcraft and lightcraft.
2026-11-10 16:44:37 +01:00
FredApps 72a445c753 test(motion_path): cover the pointer and keyboard paths headlessly
Raises new-code coverage of src/motion_path.rs (SonarCloud reported 187 of 340 new lines uncovered).
2026-11-10 12:42:43 +01:00
FredApps 65233523b4 Report a failed HTML movie start instead of leaving the promise unhandled 2026-11-10 11:15:41 +01:00
Tanish Manku cae2150408 Merge pull request #101 from storytold/docs/adr-reservations
docs: ADR numbers never move; issue #42 on the roadmap
2026-11-10 00:55:18 -07:00
Tanish Manku b5905dd09e docs: 0039 merged with #100, so its reservation goes 2026-11-10 00:44:25 -07:00
Tanish Manku f4bc40c743 Merge remote-tracking branch 'origin/main' into docs/adr-reservations 2026-11-10 00:44:24 -07:00
Tanish Manku 20f446cadb Merge pull request #100 from storytold/m5/sound-effects
feat(audio): sound effect envelopes, layer volume and mute, sounds inside symbols (M5)
2026-11-10 00:44:15 -07:00
Tanish Manku caccafaf57 docs: issue #42 on the roadmap (raw drawing selection and subselection); reserve ADRs 0041-0043; fix the GPU crate's ADR references 2026-11-10 00:36:22 -07:00
Tanish Manku d390b30062 Merge remote-tracking branch 'origin/main' into docs/adr-reservations 2026-11-10 00:36:06 -07:00
Tanish Manku d7c0434a25 chore: merge main (ActionScript tier 1) into sound effects; tests build with Symbol.linkage (M5) 2026-11-10 00:35:46 -07:00
Tanish Manku f4c6557f8b Merge pull request #99 from storytold/m6/actionscript-keep
feat(script): keep ActionScript frame scripts and classes, tier 1 (M6)
2026-11-10 00:33:17 -07:00
Tanish Manku 1c1ee7504a docs: ADR numbers never move: reservations for open pull requests in docs/adr/README.md 2026-11-10 00:32:51 -07:00
Tanish Manku 990ea2c116 fix(ui): name the class field's widget id plainly (M6) 2026-11-10 00:10:50 -07:00
Tanish Manku aebf8873b4 test(engine): kept-script params in the panic hunt (M6) 2026-11-10 00:10:50 -07:00
Tanish Manku 6c4fd5d6be docs: ActionScript tier 1 built (ADR 0013), roadmap, changelog (M6) 2026-11-10 00:10:50 -07:00
Tanish Manku 95a83ee2a0 feat(ui): Script view in the Actions panel, class rows in Properties (M6)
The Actions panel's Frame tab gets a Type row (Actions, Plug-in, Script);
Script shows and edits a keyframe's kept script in a monospace editor with
line numbers and its language, live and undoable. Graphic and button
timelines and guide layers show their kept scripts too. Properties shows the
symbol linkage class and the document class in documents that use scripts;
Test Movie says how many kept scripts don't run. The panel's pickers and
title bar are named for screen readers; --open script for screenshots.
2026-11-10 00:10:38 -07:00
Tanish Manku 4fb0b993fc feat(script): keep frame scripts, linkage and document classes from XFL (M6)
ADR 0013 tier 1: a keyframe can keep a script verbatim (FrameScript::Source,
text and language) beside actions and plug-in frame scripts; symbols keep a
linkage class and the document a document class, as text. The XFL importer
reads <Actionscript> frame scripts in scenes and symbols, linkage attributes
and the publish profile's language and document class, and reports them as
kept, not run. script.set/clear/list/set_class commands; nothing runs them.
New corpus package 'scripts' with golden renders.
2026-11-10 00:10:27 -07:00
Tanish Manku 208b175b25 docs: ADR 0039 sound effects, layer volume and symbol sounds; roadmap, changelog (M5) 2026-11-10 00:02:27 -07:00
Tanish Manku de38e47aa3 feat(audio): sound effect envelopes, layer volume and mute, sounds inside symbols (M5)
Frame sounds get Animate's Effect presets and Custom envelopes (up to 16
points per channel, seconds from the sound's start), shaped over the time
the sound is heard. Layers get a volume and Mute, multiplied down through
symbols. Graphic symbols play their sounds on their own frames mapped to
the parent's time (streams join mid-way), movie clips on a loop from when
the instance appeared; the interactive player reports entered sounds so
Test Movie plays them, following the audio clock. The mixer applies
per-channel envelopes and start offsets sample-exactly. HTML canvas
export carries envelopes, volumes and graphic sounds. Edit Envelope
window, timeline mute toggle, waveform shaped by the envelope.
2026-11-10 00:02:17 -07:00
Tanish Manku 4e64b2d932 Merge pull request #98 from storytold/m2/motion-path-points
feat(motion): add, delete and convert motion path points, move the whole path (M2)
2026-11-09 23:59:57 -07:00
Tanish Manku fd3164e312 docs: ADR 0038 motion path points and moving the whole path (M2) 2026-11-09 23:44:48 -07:00
Tanish Manku 5d3dc8dae0 feat(ui): edit motion path points and move the whole path on the stage (M2)
Subselection selects several anchors (Shift), double-click on the path
adds a point, Delete removes points (the ends stay, the status says
why), right-click makes them smooth or corners or straightens the path.
The Pen's Alt-click adds a point to the motion path or a selected
shape. Ctrl/Cmd-drag on the path or its object moves the whole path in
one undo step, and Properties shows the path's start to move it by
number. New screenshot and audit state: --open motionedit.
2026-11-09 23:43:06 -07:00
Tanish Manku 34fe4603e7 feat(engine): add, delete and convert motion path points, move the whole path (M2)
motion.add_point splits the nearest segment (shape and timing
unchanged), motion.delete_points refits through the rest and keeps the
ends, motion.convert_point makes an anchor smooth or a corner, and
motion.move_path moves the path, its X/Y keys and the object together.
Point edits on a straight motion make its path the tween's own.
motion.info and the path commands list the anchors.
2026-11-09 23:37:16 -07:00
Tanish Manku 6f9d1a2f0e feat(geom): shape-keeping anchor deletion and moving a whole motion (M2)
Path::merge_at replaces the two segments around an anchor with the one
cubic that fits them best (Schneider's least squares on handle lengths,
seeded by the de Casteljau ratio, so deleting a split point gives the
curve back). MotionTween::translate moves the path and every X/Y key.
2026-11-09 23:33:25 -07:00
Tanish Manku 1a7c6521e8 Merge pull request #97 from storytold/m8/web-build
feat(web): web build of the editor, first slice (M8)
2026-11-09 23:27:09 -07:00
Tanish Manku a87728ba50 chore: merge main (eraser, eyedropper, XFL corpus) into the web build (M8) 2026-11-09 23:15:49 -07:00
Tanish Manku 9a04394f3b Merge pull request #95 from storytold/m4/xfl-corpus
test(xfl): a self-authored XFL corpus with golden render tests (M4)
2026-11-09 23:13:57 -07:00