Skip to content

feat(motion-blur): per-element opt-in/opt-out and shutter override - #8770

Open
edmer664 wants to merge 2 commits into
heygen-com:mainfrom
edmer664:feat/per-element-motion-blur
Open

edmer664 wants to merge 2 commits into
heygen-com:mainfrom
edmer664:feat/per-element-motion-blur

Conversation

@edmer664

Copy link
Copy Markdown

Closes #8230

Summary

  • Per-element attributes & parsing (packages/core/src/motionBlurSettings.ts): Added readElementMotionBlurSettings, resolveMoverSettings, and elementMotionBlurAttributeEdits reusing MOTION_BLUR_LIMITS.
  • Discovery (packages/core/src/runtime/captureMotionBlur/discover.ts): Supports rootEnabled: false, keeps moving data-motion-blur="on" elements even below MIN_SPEED, skips data-motion-blur="off" subtrees, and preserves outermost-wins.
  • Per-element shutter & samples overrides (frames.ts, tier.ts, index.ts, filterTier.ts): Activates capture/filter blur when any descendant opts in, groups movers by shutter window when overrides differ, and keeps the single-pass fast path when no overrides exist.
  • Compiler hints (packages/producer/src/services/htmlCompiler.ts): Routes compositions with per-element data-motion-blur="on" inside the runtime root through screenshot capture mode while preserving sub-composition isolation.
  • Studio (MotionBlurPanel.tsx, motionBlurPanelModel.ts): Adds a This element section (On / Off / Inherit + 0–720° shutter override) using the existing persist path and live-preview attribute polling.
  • Docs & skill: Updated docs/guides/motion-blur.mdx, packages/cli/src/docs/motion-blur.md, and skills/hyperframes/references/motion.md.

Verification

  • @hyperframes/core: 178/178 passed (motionBlurSettings.test.ts, discover.test.ts, index.test.ts) + 4/4 formal invariant & exhaustive state-space checks (motionBlur.formal.test.ts)
  • @hyperframes/producer: 204/204 passed (htmlCompiler.test.ts)
  • @hyperframes/cli: 16/16 passed (checkMotionBlur.test.ts)
  • @hyperframes/studio: 25/25 passed (motionBlurPanelModel.test.ts, MotionBlurPanel.test.tsx)
  • oxlint: 0 warnings, 0 errors; tsc --noEmit: passed for @hyperframes/core and @hyperframes/studio

@mintlify

mintlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 62569cc.

Approve preview

This branch has not been deployed

No deployments
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.

Motion blur: per-element opt-in/opt-out and shutter override, in attributes and Studio

1 participant