Skip to content

feat(studio): motion-path geometry + commit helpers#1559

Open
miguel-heygen wants to merge 1 commit into
feat/studio-gsap-drag-infrafrom
feat/studio-motion-path-helpers
Open

feat(studio): motion-path geometry + commit helpers#1559
miguel-heygen wants to merge 1 commit into
feat/studio-gsap-drag-infrafrom
feat/studio-motion-path-helpers

Conversation

@miguel-heygen

@miguel-heygen miguel-heygen commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Stack: GSAP keyframe + motion-path editing — overlay geometry helpers (#1553#1561).

What

Pure geometry + commit helpers for the motion-path overlay: build a polyline / arc path from a tween's keyframes, hit-test nodes, and map a node drag back to a source mutation. No React — keeps the overlay component thin and the math unit-testable.

Why

Coordinate math and commit mapping are the error-prone parts of the overlay; isolating them makes the overlay component small and lets the geometry be tested deterministically.

How

  • motionPathGeometry.ts: keyframes → points / segments (linear + motionPath arc).
  • motionPathSelection.ts: resolve the editable tween for a selection.
  • motionPathCommit.ts: map a node/waypoint drag to a keyframe / motion-path mutation.
  • domEditOverlayGeometry.ts: shared overlay rect/selection-key helpers.

Test plan

  • Unit tests added (geometry, commit)
  • bun run test (studio) green

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at c6c515d2 per Rames D Jusso stack review. Motion-path geometry + commit helpers — clean isolated addition.

Reminder: PR body is the unfilled template (stack-wide process flag); please fill in before merge.

@miguel-heygen miguel-heygen force-pushed the feat/studio-gsap-drag-infra branch from 4c38428 to a3a26a9 Compare June 18, 2026 15:47
@miguel-heygen miguel-heygen force-pushed the feat/studio-motion-path-helpers branch from c6c515d to 87a7fd0 Compare June 18, 2026 15:48
Pure path building, nearest-point projection, mutation-payload construction,
selection + preview-visibility helpers. Fully unit-tested, no JSX.
@miguel-heygen miguel-heygen force-pushed the feat/studio-motion-path-helpers branch from 87a7fd0 to 7bb643e Compare June 18, 2026 15:57

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approved at 7bb643ee post-restack. Motion-path geometry + commit helpers; clean isolated addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants