hyper-animator-codex 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +67 -7
  2. package/bin/hyper-animator-codex.mjs +31 -9
  3. package/bin/postinstall.mjs +19 -0
  4. package/lib/install-options.mjs +3 -0
  5. package/lib/install-skill.mjs +84 -2
  6. package/lib/minimax-config.mjs +3 -3
  7. package/package.json +3 -2
  8. package/skills/hyper-animator-codex/SKILL.md +58 -20
  9. package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
  10. package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +214 -0
  11. package/skills/hyper-animator-codex/contracts/workflow-policy.json +85 -0
  12. package/skills/hyper-animator-codex/references/HyperFrames-AI-Generation-Patterns-codex.md +788 -0
  13. package/skills/hyper-animator-codex/references/beat-sync-workflow.md +7 -0
  14. package/skills/hyper-animator-codex/references/examples/shot-plan-dual-catalog.json +69 -0
  15. package/skills/hyper-animator-codex/references/hyperframes-agent-pseudocode.ts +1 -1
  16. package/skills/hyper-animator-codex/references/hyperframes-catalog-map.json +97 -230
  17. package/skills/hyper-animator-codex/references/hyperframes-intent-workflow.md +23 -7
  18. package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
  19. package/skills/hyper-animator-codex/references/narration-audio-workflow.md +31 -1
  20. package/skills/hyper-animator-codex/references/shotcraft/LICENSE +202 -0
  21. package/skills/hyper-animator-codex/references/shotcraft/cards/ai-stream-response/README.md +46 -0
  22. package/skills/hyper-animator-codex/references/shotcraft/cards/autolayout-gap-dial/README.md +53 -0
  23. package/skills/hyper-animator-codex/references/shotcraft/cards/beat-cut-moves/README.md +54 -0
  24. package/skills/hyper-animator-codex/references/shotcraft/cards/beat-step-list-theme-cycle/README.md +59 -0
  25. package/skills/hyper-animator-codex/references/shotcraft/cards/before-after-slider-scrub/README.md +47 -0
  26. package/skills/hyper-animator-codex/references/shotcraft/cards/bottom-push-stack-wipe/README.md +58 -0
  27. package/skills/hyper-animator-codex/references/shotcraft/cards/brand-frame-snap/README.md +51 -0
  28. package/skills/hyper-animator-codex/references/shotcraft/cards/brand-ink-open/README.md +35 -0
  29. package/skills/hyper-animator-codex/references/shotcraft/cards/bubble-swarm-takeover/README.md +62 -0
  30. package/skills/hyper-animator-codex/references/shotcraft/cards/canvas-materialize-moves/README.md +55 -0
  31. package/skills/hyper-animator-codex/references/shotcraft/cards/card-flip-reveal/README.md +50 -0
  32. package/skills/hyper-animator-codex/references/shotcraft/cards/card-flock-tumble/README.md +54 -0
  33. package/skills/hyper-animator-codex/references/shotcraft/cards/cel-flash-stomp/README.md +54 -0
  34. package/skills/hyper-animator-codex/references/shotcraft/cards/chart-live-moves/README.md +51 -0
  35. package/skills/hyper-animator-codex/references/shotcraft/cards/circle-match-iris/README.md +53 -0
  36. package/skills/hyper-animator-codex/references/shotcraft/cards/cloner-depth-echo/README.md +38 -0
  37. package/skills/hyper-animator-codex/references/shotcraft/cards/collab-cursor-moves/README.md +48 -0
  38. package/skills/hyper-animator-codex/references/shotcraft/cards/color-block-step-wipe/README.md +54 -0
  39. package/skills/hyper-animator-codex/references/shotcraft/cards/command-palette-summon/README.md +45 -0
  40. package/skills/hyper-animator-codex/references/shotcraft/cards/crane-rise-reveal/README.md +47 -0
  41. package/skills/hyper-animator-codex/references/shotcraft/cards/crash-zoom-punch/README.md +38 -0
  42. package/skills/hyper-animator-codex/references/shotcraft/cards/dataviz-landscape-open/README.md +54 -0
  43. package/skills/hyper-animator-codex/references/shotcraft/cards/deck-deal-flyin/README.md +45 -0
  44. package/skills/hyper-animator-codex/references/shotcraft/cards/depth-layer-moves/README.md +40 -0
  45. package/skills/hyper-animator-codex/references/shotcraft/cards/document-typewriter-reveal/README.md +40 -0
  46. package/skills/hyper-animator-codex/references/shotcraft/cards/draw-svg-trace/README.md +50 -0
  47. package/skills/hyper-animator-codex/references/shotcraft/cards/edit-hook-moves/README.md +38 -0
  48. package/skills/hyper-animator-codex/references/shotcraft/cards/element-body-moves/README.md +49 -0
  49. package/skills/hyper-animator-codex/references/shotcraft/cards/fui-hud-moves/README.md +44 -0
  50. package/skills/hyper-animator-codex/references/shotcraft/cards/gauge-readout-moves/README.md +45 -0
  51. package/skills/hyper-animator-codex/references/shotcraft/cards/glow-flyline-moves/README.md +51 -0
  52. package/skills/hyper-animator-codex/references/shotcraft/cards/gradient-word-sweep/README.md +49 -0
  53. package/skills/hyper-animator-codex/references/shotcraft/cards/graze-face-tour/README.md +56 -0
  54. package/skills/hyper-animator-codex/references/shotcraft/cards/hashtag-to-pill-materialize/README.md +57 -0
  55. package/skills/hyper-animator-codex/references/shotcraft/cards/hires-rasterize-3d-text/README.md +34 -0
  56. package/skills/hyper-animator-codex/references/shotcraft/cards/icon-field-colorize/README.md +53 -0
  57. package/skills/hyper-animator-codex/references/shotcraft/cards/icon-performance-moves/README.md +46 -0
  58. package/skills/hyper-animator-codex/references/shotcraft/cards/impact-feedback/README.md +50 -0
  59. package/skills/hyper-animator-codex/references/shotcraft/cards/input-trigger-moves/README.md +49 -0
  60. package/skills/hyper-animator-codex/references/shotcraft/cards/integration-hub-map/README.md +54 -0
  61. package/skills/hyper-animator-codex/references/shotcraft/cards/letterspace-materialize/README.md +52 -0
  62. package/skills/hyper-animator-codex/references/shotcraft/cards/light-play-moves/README.md +49 -0
  63. package/skills/hyper-animator-codex/references/shotcraft/cards/line-boil/README.md +52 -0
  64. package/skills/hyper-animator-codex/references/shotcraft/cards/line-carry-transition/README.md +52 -0
  65. package/skills/hyper-animator-codex/references/shotcraft/cards/list-stack-press/README.md +43 -0
  66. package/skills/hyper-animator-codex/references/shotcraft/cards/magician-card-flourish/README.md +63 -0
  67. package/skills/hyper-animator-codex/references/shotcraft/cards/marker-underline-title/README.md +48 -0
  68. package/skills/hyper-animator-codex/references/shotcraft/cards/montage-rhythm-moves/README.md +55 -0
  69. package/skills/hyper-animator-codex/references/shotcraft/cards/morph-from-primitive/README.md +51 -0
  70. package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-forerun/README.md +50 -0
  71. package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-orbit-drop/README.md +50 -0
  72. package/skills/hyper-animator-codex/references/shotcraft/cards/neon-triple-marquee/README.md +55 -0
  73. package/skills/hyper-animator-codex/references/shotcraft/cards/odometer-digit-roll/README.md +54 -0
  74. package/skills/hyper-animator-codex/references/shotcraft/cards/outro-group-photo-launch/README.md +39 -0
  75. package/skills/hyper-animator-codex/references/shotcraft/cards/overhead-camera-moves/README.md +50 -0
  76. package/skills/hyper-animator-codex/references/shotcraft/cards/page-turn-transitions/README.md +48 -0
  77. package/skills/hyper-animator-codex/references/shotcraft/cards/page-waterfall-wall/README.md +52 -0
  78. package/skills/hyper-animator-codex/references/shotcraft/cards/panel-grid-moves/README.md +52 -0
  79. package/skills/hyper-animator-codex/references/shotcraft/cards/paper-craft-moves/README.md +46 -0
  80. package/skills/hyper-animator-codex/references/shotcraft/cards/paper-plane-messenger/README.md +62 -0
  81. package/skills/hyper-animator-codex/references/shotcraft/cards/paper-title-card/README.md +36 -0
  82. package/skills/hyper-animator-codex/references/shotcraft/cards/particle-celebrate-hits/README.md +42 -0
  83. package/skills/hyper-animator-codex/references/shotcraft/cards/particle-sand-fill/README.md +39 -0
  84. package/skills/hyper-animator-codex/references/shotcraft/cards/pill-slot-cycle/README.md +57 -0
  85. package/skills/hyper-animator-codex/references/shotcraft/cards/print-texture-transitions/README.md +40 -0
  86. package/skills/hyper-animator-codex/references/shotcraft/cards/rhythm-interrupt-moves/README.md +44 -0
  87. package/skills/hyper-animator-codex/references/shotcraft/cards/riso-print-hits/README.md +54 -0
  88. package/skills/hyper-animator-codex/references/shotcraft/cards/row-embed/README.md +36 -0
  89. package/skills/hyper-animator-codex/references/shotcraft/cards/runway-ground-skim/README.md +52 -0
  90. package/skills/hyper-animator-codex/references/shotcraft/cards/sakuga-timing-shift/README.md +50 -0
  91. package/skills/hyper-animator-codex/references/shotcraft/cards/scene-locked-title/README.md +43 -0
  92. package/skills/hyper-animator-codex/references/shotcraft/cards/scroll-brake-moves/README.md +45 -0
  93. package/skills/hyper-animator-codex/references/shotcraft/cards/segmented-thumb-hero/README.md +57 -0
  94. package/skills/hyper-animator-codex/references/shotcraft/cards/shot-transitions/README.md +60 -0
  95. package/skills/hyper-animator-codex/references/shotcraft/cards/skeleton-reveal/README.md +54 -0
  96. package/skills/hyper-animator-codex/references/shotcraft/cards/slam-entrance-moves/README.md +53 -0
  97. package/skills/hyper-animator-codex/references/shotcraft/cards/smear-multiples/README.md +49 -0
  98. package/skills/hyper-animator-codex/references/shotcraft/cards/space-camera-moves/README.md +53 -0
  99. package/skills/hyper-animator-codex/references/shotcraft/cards/spectrum-morph-ui/README.md +50 -0
  100. package/skills/hyper-animator-codex/references/shotcraft/cards/speed-ramp-freeze/README.md +42 -0
  101. package/skills/hyper-animator-codex/references/shotcraft/cards/split-flap-title/README.md +52 -0
  102. package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-hero-card/README.md +39 -0
  103. package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-sweep-moves/README.md +51 -0
  104. package/skills/hyper-animator-codex/references/shotcraft/cards/steep-tilt-glide/README.md +53 -0
  105. package/skills/hyper-animator-codex/references/shotcraft/cards/stroke-segment-build/README.md +43 -0
  106. package/skills/hyper-animator-codex/references/shotcraft/cards/tear-streak-transitions/README.md +43 -0
  107. package/skills/hyper-animator-codex/references/shotcraft/cards/tension-camera-moves/README.md +55 -0
  108. package/skills/hyper-animator-codex/references/shotcraft/cards/text-as-mask/README.md +50 -0
  109. package/skills/hyper-animator-codex/references/shotcraft/cards/text-column-converge/README.md +55 -0
  110. package/skills/hyper-animator-codex/references/shotcraft/cards/theme-switch-moves/README.md +44 -0
  111. package/skills/hyper-animator-codex/references/shotcraft/cards/timeline-travel/README.md +43 -0
  112. package/skills/hyper-animator-codex/references/shotcraft/cards/title-demote-to-label/README.md +58 -0
  113. package/skills/hyper-animator-codex/references/shotcraft/cards/trailer-grammar-moves/README.md +51 -0
  114. package/skills/hyper-animator-codex/references/shotcraft/cards/transition-hidden-cut/README.md +52 -0
  115. package/skills/hyper-animator-codex/references/shotcraft/cards/transition-travel/README.md +48 -0
  116. package/skills/hyper-animator-codex/references/shotcraft/cards/type-and-filter/README.md +37 -0
  117. package/skills/hyper-animator-codex/references/shotcraft/cards/type-assembly-moves/README.md +50 -0
  118. package/skills/hyper-animator-codex/references/shotcraft/cards/type-entrance-moves/README.md +46 -0
  119. package/skills/hyper-animator-codex/references/shotcraft/cards/type-rhythm-sync/README.md +47 -0
  120. package/skills/hyper-animator-codex/references/shotcraft/cards/typewriter-moves/README.md +50 -0
  121. package/skills/hyper-animator-codex/references/shotcraft/cards/ui-strip-away-outro/README.md +63 -0
  122. package/skills/hyper-animator-codex/references/shotcraft/cards/ui-to-brand-morph/README.md +52 -0
  123. package/skills/hyper-animator-codex/references/shotcraft/cards/voice-waveform-live/README.md +52 -0
  124. package/skills/hyper-animator-codex/references/shotcraft/cards/wall-reveal-moves/README.md +53 -0
  125. package/skills/hyper-animator-codex/references/shotcraft/cards/wipe-transitions/README.md +47 -0
  126. package/skills/hyper-animator-codex/references/shotcraft/cards/word-relay-filmstrip/README.md +50 -0
  127. package/skills/hyper-animator-codex/references/shotcraft/catalog.json +3946 -0
  128. package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
  129. package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
  130. package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
  131. package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
  132. package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
  133. package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
  134. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
  135. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
  136. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
  137. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
  138. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
  139. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
  140. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
  141. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
  142. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
  143. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
  144. package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
  145. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
  146. package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
  147. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
  148. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
  149. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
  150. package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
  151. package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
  152. package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
  153. package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
  154. package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
  155. package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
  156. package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
  157. package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
  158. package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
  159. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
  160. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
  161. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
  162. package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
  163. package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
  164. package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
  165. package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
  166. package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
  167. package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
  168. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
  169. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
  170. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
  171. package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
  172. package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
  173. package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
  174. package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
  175. package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
  176. package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
  177. package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
  178. package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
  179. package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
  180. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
  181. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
  182. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
  183. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
  184. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
  185. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
  186. package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
  187. package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
  188. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
  189. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
  190. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
  191. package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
  192. package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
  193. package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
  194. package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
  195. package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
  196. package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
  197. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
  198. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
  199. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
  200. package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
  201. package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
  202. package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
  203. package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
  204. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
  205. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
  206. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
  207. package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
  208. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
  209. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
  210. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
  211. package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
  212. package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
  213. package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
  214. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
  215. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
  216. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
  217. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
  218. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
  219. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
  220. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
  221. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
  222. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
  223. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
  224. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
  225. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
  226. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
  227. package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
  228. package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
  229. package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
  230. package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
  231. package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
  232. package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
  233. package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
  234. package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
  235. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
  236. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
  237. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
  238. package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
  239. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
  240. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
  241. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
  242. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
  243. package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
  244. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
  245. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
  246. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
  247. package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
  248. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
  249. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
  250. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
  251. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
  252. package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
  253. package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
  254. package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
  255. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
  256. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
  257. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
  258. package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
  259. package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
  260. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
  261. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
  262. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
  263. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
  264. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
  265. package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
  266. package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
  267. package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
  268. package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
  269. package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
  270. package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
  271. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
  272. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
  273. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
  274. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
  275. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
  276. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
  277. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
  278. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
  279. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
  280. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
  281. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
  282. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
  283. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
  284. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
  285. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
  286. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
  287. package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
  288. package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
  289. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
  290. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
  291. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
  292. package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
  293. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
  294. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
  295. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
  296. package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
  297. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
  298. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
  299. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
  300. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
  301. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
  302. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
  303. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
  304. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
  305. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
  306. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
  307. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
  308. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
  309. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
  310. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
  311. package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
  312. package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
  313. package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
  314. package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
  315. package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
  316. package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
  317. package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
  318. package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
  319. package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +193 -0
  320. package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
  321. package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
@@ -0,0 +1,139 @@
1
+ // reticle-lock-on —— 准星咬合(钢铁侠 HUD / 安德的游戏)
2
+ // FakeDashboard 静置。四个 L 形角标组成的取景框从画外飞入(大框),
3
+ // 超调回弹后收缩贴紧目标卡片四角"咔"地咬合定格;咬合帧卡片微亮 +
4
+ // 旁弹一行小标签。画面不冻结,是运动中的捕获。
5
+ // f0–14 面板静置;f14–24 飞入;f24–46 收缩(含过冲回弹);f46 咬合;
6
+ // 标签 f46–56 弹出;f56 后真静止 ≥84f(140f 总长)。
7
+ import React from 'react';
8
+ import { useCurrentFrame, interpolate, Easing } from 'remotion';
9
+ import { G, FakeDashboard } from '../_fixtures/Fixtures';
10
+
11
+ // 目标:variant A 网格第 2 张卡(第一行中间)。
12
+ // 布局推导:侧栏 220 + padding 36,网格 3 列 gap 28,
13
+ // 内容区宽 1700-72=1628 → 卡宽 (1628-56)/3 ≈ 524,卡高 (1080-72-72-28)/2 ≈ 454...
14
+ // 实测近似:目标框取第一行中间卡的外接矩形(含少量呼吸边距)。
15
+ const CARD_X = 220 + 36 + 524 + 28; // ≈ 808
16
+ const CARD_Y = 72 + 36; // 108
17
+ const CARD_W = 524;
18
+ const CARD_H = 425;
19
+ const PAD = 14; // 咬合后角标与卡的呼吸距
20
+
21
+ const TCX = CARD_X + CARD_W / 2;
22
+ const TCY = CARD_Y + CARD_H / 2;
23
+
24
+ const FLY_IN = 14; // 飞入开始
25
+ const FLY_END = 24; // 飞入结束(大框就位)
26
+ const LOCK_END = 46; // 咬合帧
27
+ const LABEL_END = 56;
28
+
29
+ const ARM = 56; // L 臂长
30
+ const THICK = 10; // L 粗
31
+
32
+ const clamp = { extrapolateLeft: 'clamp' as const, extrapolateRight: 'clamp' as const };
33
+
34
+ export const ReticleLockOn: React.FC = () => {
35
+ const frame = useCurrentFrame();
36
+
37
+ // 飞入:整框从右下画外冲进来,同时是个放大 2.2× 的大框
38
+ const flyT = interpolate(frame, [FLY_IN, FLY_END], [0, 1], {
39
+ easing: Easing.out(Easing.cubic),
40
+ ...clamp,
41
+ });
42
+ const flyDX = (1 - flyT) * 1100;
43
+ const flyDY = (1 - flyT) * 620;
44
+
45
+ // 收缩咬合:半宽/半高从 2.2× 收到贴紧,带超调(收过头 6% 再弹回)
46
+ const shrink = interpolate(
47
+ frame,
48
+ [FLY_END, LOCK_END - 8, LOCK_END - 3, LOCK_END],
49
+ [2.2, 1.06, 0.94, 1],
50
+ { easing: Easing.inOut(Easing.cubic), ...clamp },
51
+ );
52
+ const hw = (CARD_W / 2 + PAD) * shrink;
53
+ const hh = (CARD_H / 2 + PAD) * shrink;
54
+
55
+ // 咬合帧:卡片微亮(一层白色 overlay 快闪后停在 0.28)
56
+ const glow = interpolate(frame, [LOCK_END, LOCK_END + 3, LOCK_END + 10], [0, 0.55, 0.28], clamp);
57
+
58
+ // 标签:咬合后从角标右上弹出(scaleX 展开 + 淡入)
59
+ const labelT = interpolate(frame, [LOCK_END + 2, LABEL_END], [0, 1], {
60
+ easing: Easing.out(Easing.back(1.8)),
61
+ ...clamp,
62
+ });
63
+
64
+ const showReticle = frame >= FLY_IN;
65
+ const locked = frame >= LOCK_END;
66
+
67
+ // 四个 L 角:位置 = 中心 ± (hw, hh),各自镜像
68
+ const corners = [
69
+ { x: TCX - hw, y: TCY - hh, sx: 1, sy: 1 },
70
+ { x: TCX + hw, y: TCY - hh, sx: -1, sy: 1 },
71
+ { x: TCX - hw, y: TCY + hh, sx: 1, sy: -1 },
72
+ { x: TCX + hw, y: TCY + hh, sx: -1, sy: -1 },
73
+ ];
74
+
75
+ return (
76
+ <div style={{ width: 1920, height: 1080, background: G.bg, overflow: 'hidden', position: 'relative' }}>
77
+ <FakeDashboard variant="A" />
78
+ {/* 咬合微亮层:条件渲染,锁定前不存在 */}
79
+ {locked && (
80
+ <div
81
+ style={{
82
+ position: 'absolute',
83
+ left: CARD_X,
84
+ top: CARD_Y,
85
+ width: CARD_W,
86
+ height: CARD_H,
87
+ borderRadius: 14,
88
+ background: '#ffffff',
89
+ opacity: glow,
90
+ pointerEvents: 'none',
91
+ }}
92
+ />
93
+ )}
94
+ {showReticle && (
95
+ <div style={{ position: 'absolute', left: 0, top: 0, transform: `translate(${flyDX}px, ${flyDY}px)` }}>
96
+ {corners.map((c, i) => (
97
+ <div
98
+ key={i}
99
+ style={{
100
+ position: 'absolute',
101
+ left: c.x,
102
+ top: c.y,
103
+ transform: `scale(${c.sx}, ${c.sy})`,
104
+ transformOrigin: '0 0',
105
+ }}
106
+ >
107
+ {/* L 形角标:横臂 + 竖臂 */}
108
+ <div style={{ position: 'absolute', left: 0, top: 0, width: ARM, height: THICK, background: G.ink }} />
109
+ <div style={{ position: 'absolute', left: 0, top: 0, width: THICK, height: ARM, background: G.ink }} />
110
+ </div>
111
+ ))}
112
+ {/* 小标签:右上角标外侧弹出 */}
113
+ {frame >= LOCK_END + 2 && (
114
+ <div
115
+ style={{
116
+ position: 'absolute',
117
+ left: TCX + hw + 18,
118
+ top: TCY - hh - 6,
119
+ transform: `scale(${labelT})`,
120
+ transformOrigin: '0 50%',
121
+ background: G.ink,
122
+ color: '#fff',
123
+ fontFamily: 'Helvetica, Arial, sans-serif',
124
+ fontWeight: 700,
125
+ fontSize: 26,
126
+ padding: '10px 18px',
127
+ borderRadius: 8,
128
+ whiteSpace: 'nowrap',
129
+ opacity: Math.min(1, labelT * 1.5),
130
+ }}
131
+ >
132
+ TARGET · CARD_02
133
+ </div>
134
+ )}
135
+ </div>
136
+ )}
137
+ </div>
138
+ );
139
+ };
@@ -0,0 +1,146 @@
1
+ // needle-sweep-selftest —— 满弧扫针自检
2
+ // 卡片内三个并排 270° 表盘。f12 "点火"后指针错峰 4f 依次从 0 甩满全弧
3
+ // (去程 12f ease-out),再回落到各自真实值(回程 20f:先落过头 8° 再回摆),
4
+ // 落定同帧盘下数值文字弹出。三表错峰形成波浪。f60 后真静止 80f。
5
+ // 帧确定性:纯 interpolate 分段,全部 clamp,settle 后每帧输出常数。
6
+ import React from 'react';
7
+ import { useCurrentFrame, interpolate, Easing } from 'remotion';
8
+ import { G, TitleBlock } from '../_fixtures/Fixtures';
9
+
10
+ const AMBER = '#b45309';
11
+ const RED = '#7c2d12';
12
+
13
+ const CARD_W = 1500;
14
+ const CARD_H = 640;
15
+ const CARD_X = (1920 - CARD_W) / 2;
16
+ const CARD_Y = 300;
17
+
18
+ const GA_W = CARD_W / 3; // 每表盘占位宽
19
+ const R = 148;
20
+ const CX = GA_W / 2;
21
+ const CY = 240;
22
+
23
+ // 表盘角 d∈[0,270] → SVG 角 a = 135 + d(0=右,顺时针,y 向下)
24
+ const polar = (a: number, r: number): [number, number] => [
25
+ CX + r * Math.cos((a * Math.PI) / 180),
26
+ CY + r * Math.sin((a * Math.PI) / 180),
27
+ ];
28
+
29
+ const arcPath = (d0: number, d1: number, r: number): string => {
30
+ const [x0, y0] = polar(135 + d0, r);
31
+ const [x1, y1] = polar(135 + d1, r);
32
+ const large = d1 - d0 > 180 ? 1 : 0;
33
+ return `M ${x0.toFixed(2)} ${y0.toFixed(2)} A ${r} ${r} 0 ${large} 1 ${x1.toFixed(2)} ${y1.toFixed(2)}`;
34
+ };
35
+
36
+ // 三表:点火 f12,错峰 4f
37
+ const GAUGES = [
38
+ { start: 12, target: 190 },
39
+ { start: 16, target: 120 },
40
+ { start: 20, target: 235 },
41
+ ];
42
+
43
+ const needleAngle = (frame: number, s: number, target: number): number => {
44
+ if (frame <= s) return 0;
45
+ if (frame <= s + 12) {
46
+ // 去程:甩满全弧,ease-out(起步猛)
47
+ return interpolate(frame, [s, s + 12], [0, 270], {
48
+ easing: Easing.out(Easing.cubic),
49
+ });
50
+ }
51
+ if (frame <= s + 25) {
52
+ // 回程主段:落过真实值 8°
53
+ return interpolate(frame, [s + 12, s + 25], [270, target - 8], {
54
+ easing: Easing.inOut(Easing.cubic),
55
+ });
56
+ }
57
+ // 回摆:从过冲位弹回真实值,之后 clamp 为常数
58
+ return interpolate(frame, [s + 25, s + 32], [target - 8, target], {
59
+ easing: Easing.out(Easing.cubic),
60
+ extrapolateRight: 'clamp',
61
+ });
62
+ };
63
+
64
+ const Gauge: React.FC<{ start: number; target: number }> = ({ start, target }) => {
65
+ const frame = useCurrentFrame();
66
+ const d = needleAngle(frame, start, target);
67
+ const settle = start + 32;
68
+ const value = Math.round((target / 270) * 100);
69
+
70
+ const popScale = interpolate(frame, [settle, settle + 4, settle + 8], [0.3, 1.18, 1], {
71
+ extrapolateLeft: 'clamp',
72
+ extrapolateRight: 'clamp',
73
+ });
74
+ const popOp = interpolate(frame, [settle, settle + 3], [0, 1], {
75
+ extrapolateLeft: 'clamp',
76
+ extrapolateRight: 'clamp',
77
+ });
78
+
79
+ const [tipX, tipY] = polar(135, R - 26);
80
+ const [tailX, tailY] = polar(315, 36);
81
+
82
+ // 大刻度 11 根(每 27°),小刻度每 9°
83
+ const ticks: React.ReactNode[] = [];
84
+ for (let k = 0; k <= 30; k++) {
85
+ const dd = k * 9;
86
+ const major = k % 3 === 0;
87
+ const a = 135 + dd;
88
+ const [x0, y0] = polar(a, R - 8);
89
+ const [x1, y1] = polar(a, major ? R - 30 : R - 19);
90
+ ticks.push(
91
+ <line key={k} x1={x0} y1={y0} x2={x1} y2={y1}
92
+ stroke={dd >= 225 ? RED : G.mid} strokeWidth={major ? 4 : 2} />
93
+ );
94
+ }
95
+
96
+ return (
97
+ <div style={{ width: GA_W, height: 480, position: 'relative' }}>
98
+ <svg width={GA_W} height={430}>
99
+ {/* 弧形轨道 + 红区 */}
100
+ <path d={arcPath(0, 270, R)} fill="none" stroke={G.line} strokeWidth={10} strokeLinecap="round" />
101
+ <path d={arcPath(225, 270, R)} fill="none" stroke={RED} strokeWidth={10} strokeLinecap="round" opacity={0.85} />
102
+ {ticks}
103
+ {/* 指针:琥珀刚体,rotate 全量程往返 */}
104
+ <g transform={`rotate(${d.toFixed(3)} ${CX} ${CY})`}>
105
+ <line x1={tailX} y1={tailY} x2={tipX} y2={tipY} stroke={AMBER} strokeWidth={9} strokeLinecap="round" />
106
+ </g>
107
+ <circle cx={CX} cy={CY} r={15} fill={G.ink} />
108
+ <circle cx={CX} cy={CY} r={6} fill={AMBER} />
109
+ </svg>
110
+ {/* 落定同帧弹出的数值 */}
111
+ <div style={{
112
+ position: 'absolute', left: 0, right: 0, top: 396, textAlign: 'center',
113
+ opacity: popOp, transform: `scale(${popScale.toFixed(4)})`,
114
+ }}>
115
+ <span style={{ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800, fontSize: 62, color: G.ink }}>
116
+ {value}
117
+ </span>
118
+ <span style={{ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 700, fontSize: 30, color: G.mid, marginLeft: 8 }}>
119
+ %
120
+ </span>
121
+ </div>
122
+ </div>
123
+ );
124
+ };
125
+
126
+ export const NeedleSweepSelftest: React.FC = () => {
127
+ return (
128
+ <div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
129
+ <div style={{ position: 'absolute', top: 110, width: '100%', textAlign: 'center' }}>
130
+ <TitleBlock text="NEEDLE SWEEP SELF-TEST" size={72} />
131
+ </div>
132
+ <div style={{
133
+ position: 'absolute', left: CARD_X, top: CARD_Y, width: CARD_W, height: CARD_H,
134
+ background: G.card, border: `2px solid ${G.border}`, borderRadius: 14,
135
+ boxSizing: 'border-box', boxShadow: '0 2px 8px rgba(0,0,0,0.06)', padding: 32,
136
+ }}>
137
+ <div style={{ height: 16, width: 320, background: G.bar, borderRadius: 8 }} />
138
+ <div style={{ position: 'absolute', left: 0, top: 96, display: 'flex' }}>
139
+ {GAUGES.map((g, i) => (
140
+ <Gauge key={i} start={g.start} target={g.target} />
141
+ ))}
142
+ </div>
143
+ </div>
144
+ </div>
145
+ );
146
+ };
@@ -0,0 +1,120 @@
1
+ // tape-scroll-fixed-pointer —— 滚带定针
2
+ // 取景窗+琥珀三角指针钉死在画面正中,竖向长刻度带(0–500,每 50 一大格)
3
+ // 从窗后滚过:"世界动、针不动"。先慢速爬(f12–55 读数 60→140 缓涨),
4
+ // 然后一次大跳变:刻度带冲刺 ~23f(峰值 ~50px/f)冲过 420 到 442,
5
+ // spring 刹车回摆一次(442→415→420)落定。窗内读数同步。f96 后真静止 44f。
6
+ // 帧确定性:value(frame) 纯分段 interpolate 全 clamp,带偏移 = value 线性映射。
7
+ import React from 'react';
8
+ import { useCurrentFrame, interpolate, Easing } from 'remotion';
9
+ import { G, TitleBlock } from '../_fixtures/Fixtures';
10
+
11
+ const AMBER = '#b45309';
12
+
13
+ const PXU = 3; // px per unit:500 量程 → 1500px 长带
14
+ const CENTER_Y = 590; // 取景窗中线(屏幕坐标)
15
+ const TAPE_X = 830; // 刻度带左缘
16
+ const TAPE_W = 260;
17
+
18
+ // 读数时间线:静置→慢爬→冲刺(过冲到442)→回摆(415)→落定420→真静止
19
+ const valueAt = (frame: number): number => {
20
+ if (frame <= 12) return 60;
21
+ if (frame <= 55) {
22
+ return interpolate(frame, [12, 55], [60, 140]); // 慢爬 ~5.6px/f
23
+ }
24
+ if (frame <= 78) {
25
+ return interpolate(frame, [55, 78], [140, 442], {
26
+ easing: Easing.inOut(Easing.cubic), // 冲刺段,峰值 ~50px/f
27
+ });
28
+ }
29
+ if (frame <= 88) {
30
+ return interpolate(frame, [78, 88], [442, 415], {
31
+ easing: Easing.out(Easing.cubic), // 刹车回摆:甩过头再拉回
32
+ });
33
+ }
34
+ return interpolate(frame, [88, 96], [415, 420], {
35
+ easing: Easing.out(Easing.cubic),
36
+ extrapolateRight: 'clamp',
37
+ });
38
+ };
39
+
40
+ export const TapeScrollFixedPointer: React.FC = () => {
41
+ const frame = useCurrentFrame();
42
+ const v = valueAt(frame);
43
+
44
+ // 刻度带:数值大在上。单位 u 的屏幕 y = CENTER_Y + (v - u) * PXU
45
+ const yOf = (u: number): number => CENTER_Y + (v - u) * PXU;
46
+
47
+ const ticks: React.ReactNode[] = [];
48
+ for (let u = 0; u <= 500; u += 10) {
49
+ const y = yOf(u);
50
+ if (y < 180 || y > 1010) continue; // 视野外裁剪
51
+ const major = u % 50 === 0;
52
+ ticks.push(
53
+ <div key={u} style={{
54
+ position: 'absolute', top: y - 2, right: 0,
55
+ width: major ? 92 : 46, height: major ? 5 : 3,
56
+ background: major ? G.ink : G.mid, borderRadius: 2,
57
+ }} />
58
+ );
59
+ if (major) {
60
+ ticks.push(
61
+ <div key={`n${u}`} style={{
62
+ position: 'absolute', top: y - 22, right: 110,
63
+ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 700,
64
+ fontSize: 38, color: G.mid, textAlign: 'right', width: 90,
65
+ }}>
66
+ {u}
67
+ </div>
68
+ );
69
+ }
70
+ }
71
+
72
+ return (
73
+ <div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
74
+ <div style={{ position: 'absolute', top: 90, width: '100%', textAlign: 'center' }}>
75
+ <TitleBlock text="TAPE SCROLL · FIXED POINTER" size={68} />
76
+ </div>
77
+
78
+ {/* 刻度带容器(世界层:整体在动) */}
79
+ <div style={{
80
+ position: 'absolute', left: TAPE_X, top: 180, width: TAPE_W, height: 830,
81
+ background: G.panel, border: `2px solid ${G.border}`, borderRadius: 12,
82
+ overflow: 'hidden', boxSizing: 'border-box',
83
+ }}>
84
+ <div style={{ position: 'absolute', inset: 0 }}>{
85
+ // 内层坐标 = 屏幕 y - 180
86
+ <div style={{ position: 'absolute', left: 0, right: 14, top: -180, height: 1080 + 400 }}>
87
+ {ticks}
88
+ </div>
89
+ }</div>
90
+ </div>
91
+
92
+ {/* 固定层:取景窗 + 琥珀三角指针 + 读数(针不动) */}
93
+ <div style={{
94
+ position: 'absolute', left: TAPE_X - 10, top: CENTER_Y - 46,
95
+ width: TAPE_W + 20, height: 92,
96
+ border: `5px solid ${AMBER}`, borderRadius: 10,
97
+ boxShadow: '0 4px 14px rgba(0,0,0,0.14)', boxSizing: 'border-box',
98
+ background: 'rgba(255,255,255,0.14)',
99
+ }} />
100
+ <svg width={60} height={64} style={{ position: 'absolute', left: TAPE_X - 66, top: CENTER_Y - 32 }}>
101
+ <polygon points="4,4 56,32 4,60" fill={AMBER} />
102
+ </svg>
103
+
104
+ {/* 同步读数窗 */}
105
+ <div style={{
106
+ position: 'absolute', left: TAPE_X + TAPE_W + 70, top: CENTER_Y - 84,
107
+ width: 380, height: 168, background: G.card,
108
+ border: `2px solid ${G.border}`, borderRadius: 14,
109
+ boxShadow: '0 2px 8px rgba(0,0,0,0.06)',
110
+ display: 'flex', flexDirection: 'column', justifyContent: 'center',
111
+ padding: '0 36px', boxSizing: 'border-box',
112
+ }}>
113
+ <div style={{ height: 12, width: 150, background: G.line, borderRadius: 6, marginBottom: 12 }} />
114
+ <div style={{ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800, fontSize: 96, color: AMBER, letterSpacing: -2, lineHeight: 1 }}>
115
+ {Math.round(v)}
116
+ </div>
117
+ </div>
118
+ </div>
119
+ );
120
+ };
@@ -0,0 +1,158 @@
1
+ // flyline-arc —— 飞线连接
2
+ // FakeDashboard A 微暗化(brightness 0.92),左上卡→右下卡一条贝塞尔弧线
3
+ // "打"过去(22f, out-cubic 生长),亮点头部领跑、亮头暗尾拖尾;到达帧目标卡
4
+ // 3px+ ink 描边脉冲 + 加深脉冲(白底禁提亮)。随后第二条线接力打到上中卡。
5
+ // 收尾真静止:全部动画在 f86 前结束,之后所有元素冻结。
6
+ import React from 'react';
7
+ import { useCurrentFrame, interpolate, Easing } from 'remotion';
8
+ import { FakeDashboard } from '../_fixtures/Fixtures';
9
+
10
+ type Pt = { x: number; y: number };
11
+
12
+ // 手写 cubic bezier 采样
13
+ const bez = (p0: Pt, p1: Pt, p2: Pt, p3: Pt, t: number): Pt => {
14
+ const u = 1 - t;
15
+ return {
16
+ x: u * u * u * p0.x + 3 * u * u * t * p1.x + 3 * u * t * t * p2.x + t * t * t * p3.x,
17
+ y: u * u * u * p0.y + 3 * u * u * t * p1.y + 3 * u * t * t * p2.y + t * t * t * p3.y,
18
+ };
19
+ };
20
+
21
+ const N = 100; // 采样段数
22
+
23
+ // 卡片几何(FakeDashboard variant A 实测网格)
24
+ const CARD_LT = { x: 256, y: 108, w: 524, h: 454, cx: 518, cy: 335 }; // 左上
25
+ const CARD_RB = { x: 1360, y: 590, w: 524, h: 454, cx: 1622, cy: 817 }; // 右下
26
+ const CARD_TM = { x: 808, y: 108, w: 524, h: 454, cx: 1070, cy: 335 }; // 上中
27
+
28
+ // 一条飞线:深色衬底 + 亮头暗尾白线分段 + 光头领跑(条件挂载)
29
+ const Flyline: React.FC<{
30
+ frame: number;
31
+ start: number; // 生长起始帧
32
+ p0: Pt; p1: Pt; p2: Pt; p3: Pt;
33
+ }> = ({ frame, start, p0, p1, p2, p3 }) => {
34
+ const DUR = 22;
35
+ if (frame < start) return null;
36
+ const e = interpolate(frame, [start, start + DUR], [0, 1], {
37
+ easing: Easing.out(Easing.cubic),
38
+ extrapolateLeft: 'clamp',
39
+ extrapolateRight: 'clamp',
40
+ });
41
+ const growing = frame < start + DUR;
42
+ // 到达后 10f 内尾部亮度线性抹匀 → 之后完全静止
43
+ const settle = interpolate(frame, [start + DUR, start + DUR + 10], [0, 1], {
44
+ extrapolateLeft: 'clamp',
45
+ extrapolateRight: 'clamp',
46
+ });
47
+
48
+ const pts: Pt[] = [];
49
+ const nDrawn = Math.max(2, Math.ceil(e * N) + 1);
50
+ for (let i = 0; i < nDrawn; i++) {
51
+ const t = Math.min((i / N), e);
52
+ pts.push(bez(p0, p1, p2, p3, t));
53
+ }
54
+ const head = bez(p0, p1, p2, p3, e);
55
+ pts[pts.length - 1] = head;
56
+
57
+ const underlay = pts.map((p) => `${p.x.toFixed(1)},${p.y.toFixed(1)}`).join(' ');
58
+
59
+ // 亮头暗尾:每段按"离头距离"给 opacity;到达后 settle 抹匀到 1
60
+ const segs = [];
61
+ for (let i = 0; i < pts.length - 1; i++) {
62
+ const tSeg = Math.min(i / N, e) / Math.max(e, 0.001); // 0 尾 → 1 头
63
+ const grad = 0.4 + 0.6 * tSeg * tSeg;
64
+ const op = grad + (1 - grad) * settle;
65
+ segs.push(
66
+ <line
67
+ key={i}
68
+ x1={pts[i].x} y1={pts[i].y} x2={pts[i + 1].x} y2={pts[i + 1].y}
69
+ stroke="#fafafa" strokeWidth={4.5} strokeLinecap="round" strokeOpacity={op}
70
+ />
71
+ );
72
+ }
73
+
74
+ return (
75
+ <g>
76
+ {/* 深色衬底:保证浅底可见 */}
77
+ <polyline
78
+ points={underlay} fill="none" stroke="#2f2f2f"
79
+ strokeWidth={9} strokeLinecap="round" strokeLinejoin="round" strokeOpacity={0.92}
80
+ />
81
+ {segs}
82
+ {/* 光头:仅生长期挂载,摘罩即真静止 */}
83
+ {growing && (
84
+ <g>
85
+ <circle cx={head.x} cy={head.y} r={26} fill="url(#headHalo)" />
86
+ <circle cx={head.x} cy={head.y} r={9} fill="#ffffff" stroke="#2f2f2f" strokeWidth={3} />
87
+ </g>
88
+ )}
89
+ </g>
90
+ );
91
+ };
92
+
93
+ // 目标卡脉冲:3px+ ink 描边 + 加深罩(白底不许提亮) —— 条件挂载
94
+ const CardPulse: React.FC<{
95
+ frame: number;
96
+ at: number; // 触发帧
97
+ rect: { x: number; y: number; w: number; h: number };
98
+ }> = ({ frame, at, rect }) => {
99
+ if (frame < at || frame > at + 18) return null;
100
+ // 扩散(起升)用 out-cubic 6f,消散用线性 12f
101
+ const amp =
102
+ frame <= at + 6
103
+ ? interpolate(frame, [at, at + 6], [0, 1], {
104
+ easing: Easing.out(Easing.cubic),
105
+ extrapolateLeft: 'clamp',
106
+ extrapolateRight: 'clamp',
107
+ })
108
+ : interpolate(frame, [at + 6, at + 18], [1, 0], {
109
+ extrapolateLeft: 'clamp',
110
+ extrapolateRight: 'clamp',
111
+ });
112
+ return (
113
+ <g>
114
+ <rect
115
+ x={rect.x + 2} y={rect.y + 2} width={rect.w - 4} height={rect.h - 4}
116
+ rx={14} fill={`rgba(0,0,0,${(0.16 * amp).toFixed(3)})`}
117
+ />
118
+ <rect
119
+ x={rect.x + 2} y={rect.y + 2} width={rect.w - 4} height={rect.h - 4}
120
+ rx={14} fill="none" stroke="#2f2f2f" strokeWidth={4} strokeOpacity={amp}
121
+ />
122
+ </g>
123
+ );
124
+ };
125
+
126
+ export const FlylineArc: React.FC = () => {
127
+ const frame = useCurrentFrame();
128
+
129
+ // 时间轴:线1 生长 10–32f → 卡RB脉冲 32–50f;线2 生长 46–68f → 卡TM脉冲 68–86f
130
+ // f86 后全静止(140f 总长 → 静止 54f ≥ 35f)
131
+ const L1 = { p0: { x: CARD_LT.cx, y: CARD_LT.cy }, p1: { x: 818, y: 60 }, p2: { x: 1322, y: 380 }, p3: { x: CARD_RB.cx, y: CARD_RB.cy } };
132
+ const L2 = { p0: { x: CARD_RB.cx, y: CARD_RB.cy }, p1: { x: 1760, y: 560 }, p2: { x: 1360, y: 150 }, p3: { x: CARD_TM.cx, y: CARD_TM.cy } };
133
+
134
+ return (
135
+ <div style={{ width: 1920, height: 1080, position: 'relative', background: '#e0e0de' }}>
136
+ {/* 背景微暗化 0.92,常量、不动画 */}
137
+ <div style={{ filter: 'brightness(0.92)' }}>
138
+ <FakeDashboard variant="A" />
139
+ </div>
140
+ <svg
141
+ width={1920} height={1080} viewBox="0 0 1920 1080"
142
+ style={{ position: 'absolute', top: 0, left: 0, pointerEvents: 'none' }}
143
+ >
144
+ <defs>
145
+ <radialGradient id="headHalo">
146
+ <stop offset="0%" stopColor="rgba(0,0,0,0.38)" />
147
+ <stop offset="55%" stopColor="rgba(0,0,0,0.18)" />
148
+ <stop offset="100%" stopColor="rgba(0,0,0,0)" />
149
+ </radialGradient>
150
+ </defs>
151
+ <CardPulse frame={frame} at={32} rect={CARD_RB} />
152
+ <CardPulse frame={frame} at={68} rect={CARD_TM} />
153
+ <Flyline frame={frame} start={10} {...L1} />
154
+ <Flyline frame={frame} start={46} {...L2} />
155
+ </svg>
156
+ </div>
157
+ );
158
+ };