Files
AniCraft/crates/engine/tests
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
..