hyper-animator-codex 0.7.1 → 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.
- package/README.md +51 -3
- package/bin/hyper-animator-codex.mjs +1 -1
- package/lib/minimax-config.mjs +3 -3
- package/package.json +1 -1
- package/skills/hyper-animator-codex/SKILL.md +58 -20
- package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
- package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +214 -0
- package/skills/hyper-animator-codex/contracts/workflow-policy.json +85 -0
- package/skills/hyper-animator-codex/references/HyperFrames-AI-Generation-Patterns-codex.md +788 -0
- package/skills/hyper-animator-codex/references/beat-sync-workflow.md +7 -0
- package/skills/hyper-animator-codex/references/examples/shot-plan-dual-catalog.json +69 -0
- package/skills/hyper-animator-codex/references/hyperframes-agent-pseudocode.ts +1 -1
- package/skills/hyper-animator-codex/references/hyperframes-catalog-map.json +97 -230
- package/skills/hyper-animator-codex/references/hyperframes-intent-workflow.md +23 -7
- package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
- package/skills/hyper-animator-codex/references/narration-audio-workflow.md +31 -1
- package/skills/hyper-animator-codex/references/shotcraft/LICENSE +202 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ai-stream-response/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/autolayout-gap-dial/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-cut-moves/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-step-list-theme-cycle/README.md +59 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/before-after-slider-scrub/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bottom-push-stack-wipe/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-frame-snap/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-ink-open/README.md +35 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bubble-swarm-takeover/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/canvas-materialize-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flip-reveal/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flock-tumble/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cel-flash-stomp/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/chart-live-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/circle-match-iris/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cloner-depth-echo/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/collab-cursor-moves/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/color-block-step-wipe/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/command-palette-summon/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crane-rise-reveal/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crash-zoom-punch/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/dataviz-landscape-open/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/deck-deal-flyin/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/depth-layer-moves/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/document-typewriter-reveal/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/draw-svg-trace/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/edit-hook-moves/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/element-body-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/fui-hud-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gauge-readout-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/glow-flyline-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gradient-word-sweep/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/graze-face-tour/README.md +56 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hashtag-to-pill-materialize/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hires-rasterize-3d-text/README.md +34 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-field-colorize/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-performance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/impact-feedback/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/input-trigger-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/integration-hub-map/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/letterspace-materialize/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/light-play-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-boil/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-carry-transition/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/list-stack-press/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/magician-card-flourish/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/marker-underline-title/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/montage-rhythm-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/morph-from-primitive/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-forerun/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-orbit-drop/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-triple-marquee/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/odometer-digit-roll/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/outro-group-photo-launch/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/overhead-camera-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-turn-transitions/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-waterfall-wall/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/panel-grid-moves/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-craft-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-plane-messenger/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-title-card/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-celebrate-hits/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-sand-fill/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/pill-slot-cycle/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/print-texture-transitions/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/rhythm-interrupt-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/riso-print-hits/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/row-embed/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/runway-ground-skim/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/sakuga-timing-shift/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scene-locked-title/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scroll-brake-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/segmented-thumb-hero/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/shot-transitions/README.md +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/skeleton-reveal/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/slam-entrance-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/smear-multiples/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/space-camera-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spectrum-morph-ui/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/speed-ramp-freeze/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/split-flap-title/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-hero-card/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-sweep-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/steep-tilt-glide/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/stroke-segment-build/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tear-streak-transitions/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tension-camera-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-as-mask/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-column-converge/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/theme-switch-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/timeline-travel/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/title-demote-to-label/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/trailer-grammar-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-hidden-cut/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-travel/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-and-filter/README.md +37 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-assembly-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-entrance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-rhythm-sync/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/typewriter-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-strip-away-outro/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-to-brand-morph/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/voice-waveform-live/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wall-reveal-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wipe-transitions/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/word-relay-filmstrip/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/catalog.json +3946 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
- package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
- package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
- package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
- package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
- package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
- package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
- package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
- package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
- package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +193 -0
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
// axis-rescale-shock-v2 —— 轴爆表重标 v2(批次 6 "改改再看" 重做)
|
|
2
|
+
// 相对 v1 的加码:爆表点冲出卡片顶 80→220px(真的冲进标题字区域)、冲出段折线
|
|
3
|
+
// 加粗 10px 且变琥珀;重标瞬间"哗"——旧刻度数字向下飞出淡出、新刻度从上滑入,
|
|
4
|
+
// 网格 4→8 根同帧加密;真图表语境:真标题 "Monthly revenue"、真轴刻度
|
|
5
|
+
// $25k/$50k/$75k/$100k → $100k/$200k/$300k/$400k、真月份 x 轴、端点弹真值
|
|
6
|
+
// 标签 "$340k";卡片震动 3→8px。收尾 f120 后真静止 40f。
|
|
7
|
+
// 帧确定性:数据硬编码,全部 frame 派生,无 Math.random / Date.now。
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
10
|
+
import { G, TitleBlock } from '../_fixtures/Fixtures';
|
|
11
|
+
|
|
12
|
+
const AMBER = '#b45309';
|
|
13
|
+
|
|
14
|
+
const CARD_W = 1060;
|
|
15
|
+
const CARD_H = 600;
|
|
16
|
+
const CX = (1920 - CARD_W) / 2;
|
|
17
|
+
const CY = (1080 - CARD_H) / 2 + 40;
|
|
18
|
+
const PAD = 52;
|
|
19
|
+
const AXIS_W = 96; // 左侧 $ 刻度位
|
|
20
|
+
const PLOT_W = CARD_W - PAD * 2 - AXIS_W;
|
|
21
|
+
const PLOT_H = 360;
|
|
22
|
+
const PLOT_X = PAD + AXIS_W;
|
|
23
|
+
const PLOT_Y = 130;
|
|
24
|
+
|
|
25
|
+
// 历史数据($k,0–100 量程内温和爬升),最后一点爆表 340
|
|
26
|
+
const DATA = [22, 30, 26, 38, 35, 47, 44, 58, 55, 66, 72, 340];
|
|
27
|
+
const N = DATA.length;
|
|
28
|
+
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
29
|
+
|
|
30
|
+
const HOLD = 12;
|
|
31
|
+
const DRAW_END = HOLD + 34; // f46:历史段画完
|
|
32
|
+
const SHOCK_END = DRAW_END + 16; // f62:爆表点冲顶
|
|
33
|
+
const BEAT = SHOCK_END + 16; // f78:停半拍(悬在标题区)
|
|
34
|
+
const RESCALE_END = BEAT + 12; // f90:重标完成
|
|
35
|
+
const MARK_END = RESCALE_END + 8; // f98:端点标记弹出
|
|
36
|
+
const VAL_END = MARK_END + 10; // f108:真值标签弹出
|
|
37
|
+
|
|
38
|
+
const easeDraw = Easing.inOut(Easing.cubic);
|
|
39
|
+
|
|
40
|
+
export const AxisRescaleShockV2: React.FC = () => {
|
|
41
|
+
const frame = useCurrentFrame();
|
|
42
|
+
|
|
43
|
+
// 量程:0–100 → 0–400,重标 12f out-cubic
|
|
44
|
+
const range = interpolate(frame, [BEAT, RESCALE_END], [100, 400], {
|
|
45
|
+
easing: Easing.out(Easing.cubic),
|
|
46
|
+
extrapolateLeft: 'clamp',
|
|
47
|
+
extrapolateRight: 'clamp',
|
|
48
|
+
});
|
|
49
|
+
const yOf = (v: number): number => PLOT_H - (v / range) * PLOT_H;
|
|
50
|
+
|
|
51
|
+
const drawT = interpolate(frame, [HOLD, DRAW_END], [0, N - 2], {
|
|
52
|
+
easing: easeDraw,
|
|
53
|
+
extrapolateLeft: 'clamp',
|
|
54
|
+
extrapolateRight: 'clamp',
|
|
55
|
+
});
|
|
56
|
+
const shockT = interpolate(frame, [DRAW_END + 2, SHOCK_END], [0, 1], {
|
|
57
|
+
easing: Easing.in(Easing.cubic),
|
|
58
|
+
extrapolateLeft: 'clamp',
|
|
59
|
+
extrapolateRight: 'clamp',
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// 冲顶停位:卡片上沿之上 220px(PLOT_Y=130 → 相对绘图区顶 -350),真冲进标题字区
|
|
63
|
+
const SHOCK_Y = -(PLOT_Y + 220);
|
|
64
|
+
const rescaleP = interpolate(frame, [BEAT, RESCALE_END], [0, 1], {
|
|
65
|
+
easing: Easing.out(Easing.cubic),
|
|
66
|
+
extrapolateLeft: 'clamp',
|
|
67
|
+
extrapolateRight: 'clamp',
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const xOf = (i: number): number => (i / (N - 1)) * PLOT_W;
|
|
71
|
+
|
|
72
|
+
// 历史段点集
|
|
73
|
+
const basePts: string[] = [];
|
|
74
|
+
const upto = Math.min(drawT, N - 2);
|
|
75
|
+
for (let i = 0; i <= Math.floor(upto); i++) basePts.push(`${xOf(i).toFixed(2)},${yOf(DATA[i]).toFixed(2)}`);
|
|
76
|
+
if (upto < N - 2 && upto > Math.floor(upto)) {
|
|
77
|
+
const i = Math.floor(upto);
|
|
78
|
+
const f = upto - i;
|
|
79
|
+
const x = xOf(i) + (xOf(i + 1) - xOf(i)) * f;
|
|
80
|
+
const y = yOf(DATA[i]) + (yOf(DATA[i + 1]) - yOf(DATA[i])) * f;
|
|
81
|
+
basePts.push(`${x.toFixed(2)},${y.toFixed(2)}`);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 爆表段单独一根(琥珀 + 10px 加粗),起点 = 历史最后一点
|
|
85
|
+
let headX = basePts.length ? Number(basePts[basePts.length - 1].split(',')[0]) : 0;
|
|
86
|
+
let headY = basePts.length ? Number(basePts[basePts.length - 1].split(',')[1]) : 0;
|
|
87
|
+
let shockSeg: string[] = [];
|
|
88
|
+
if (shockT > 0) {
|
|
89
|
+
const x0 = xOf(N - 2);
|
|
90
|
+
const y0 = yOf(DATA[N - 2]);
|
|
91
|
+
const x = x0 + (xOf(N - 1) - x0) * shockT;
|
|
92
|
+
const yEnd = SHOCK_Y + (yOf(DATA[N - 1]) - SHOCK_Y) * rescaleP;
|
|
93
|
+
const y = y0 + (yEnd - y0) * shockT;
|
|
94
|
+
shockSeg = [`${x0.toFixed(2)},${y0.toFixed(2)}`, `${x.toFixed(2)},${y.toFixed(2)}`];
|
|
95
|
+
headX = x;
|
|
96
|
+
headY = y;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// 重标"哗":旧刻度向下飞出淡出、新刻度从上滑入
|
|
100
|
+
const swap = interpolate(frame, [BEAT, BEAT + 10], [0, 1], {
|
|
101
|
+
easing: Easing.out(Easing.cubic),
|
|
102
|
+
extrapolateLeft: 'clamp',
|
|
103
|
+
extrapolateRight: 'clamp',
|
|
104
|
+
});
|
|
105
|
+
const OLD_TICKS = ['$25k', '$50k', '$75k', '$100k'];
|
|
106
|
+
const NEW_TICKS = ['$100k', '$200k', '$300k', '$400k'];
|
|
107
|
+
|
|
108
|
+
// 网格密度 4→8:新增的 4 根细网格随 swap 浮现
|
|
109
|
+
const denseOp = swap;
|
|
110
|
+
|
|
111
|
+
const markS = interpolate(frame, [RESCALE_END, MARK_END], [0, 1], {
|
|
112
|
+
easing: Easing.out(Easing.back(2.2)),
|
|
113
|
+
extrapolateLeft: 'clamp',
|
|
114
|
+
extrapolateRight: 'clamp',
|
|
115
|
+
});
|
|
116
|
+
const valS = interpolate(frame, [MARK_END, VAL_END], [0, 1], {
|
|
117
|
+
easing: Easing.out(Easing.back(1.8)),
|
|
118
|
+
extrapolateLeft: 'clamp',
|
|
119
|
+
extrapolateRight: 'clamp',
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
// 爆表瞬间卡片震(±8px,8f 内衰减归零)
|
|
123
|
+
const kick =
|
|
124
|
+
frame >= SHOCK_END && frame < SHOCK_END + 8
|
|
125
|
+
? 8 * (1 - (frame - SHOCK_END) / 8) * Math.sin((frame - SHOCK_END) * 2.6)
|
|
126
|
+
: 0;
|
|
127
|
+
|
|
128
|
+
const shockOn = frame >= DRAW_END; // 爆表段样式生效期
|
|
129
|
+
|
|
130
|
+
return (
|
|
131
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
132
|
+
<div style={{ position: 'absolute', top: 100, width: '100%', textAlign: 'center' }}>
|
|
133
|
+
<TitleBlock text="AXIS RESCALE SHOCK V2" size={72} />
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
<div
|
|
137
|
+
style={{
|
|
138
|
+
position: 'absolute',
|
|
139
|
+
left: CX,
|
|
140
|
+
top: CY,
|
|
141
|
+
width: CARD_W,
|
|
142
|
+
height: CARD_H,
|
|
143
|
+
background: G.card,
|
|
144
|
+
border: `2px solid ${G.border}`,
|
|
145
|
+
borderRadius: 14,
|
|
146
|
+
boxSizing: 'border-box',
|
|
147
|
+
boxShadow: '0 2px 8px rgba(0,0,0,0.06)',
|
|
148
|
+
transform: `translateY(${kick.toFixed(2)}px)`,
|
|
149
|
+
overflow: 'visible', // 让爆表段真的越出卡片
|
|
150
|
+
}}
|
|
151
|
+
>
|
|
152
|
+
{/* 真卡头 */}
|
|
153
|
+
<div style={{ position: 'absolute', left: PAD, top: 34, fontFamily: 'Helvetica, Arial, sans-serif' }}>
|
|
154
|
+
<div style={{ fontSize: 30, fontWeight: 700, color: G.ink }}>Monthly revenue</div>
|
|
155
|
+
<div style={{ fontSize: 19, fontWeight: 500, color: G.mid, marginTop: 6 }}>FY2026 · all products · USD</div>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<div style={{ position: 'absolute', left: PLOT_X, top: PLOT_Y, width: PLOT_W, height: PLOT_H }}>
|
|
159
|
+
{/* 基础网格 4 根 + 重标同帧加密出的 4 根 */}
|
|
160
|
+
{[0, 1, 2, 3, 4].map((i) => (
|
|
161
|
+
<div key={`g${i}`} style={{ position: 'absolute', left: 0, right: 0, top: (PLOT_H / 4) * i, height: 2, background: G.line }} />
|
|
162
|
+
))}
|
|
163
|
+
{[1, 3, 5, 7].map((i) => (
|
|
164
|
+
<div key={`gd${i}`} style={{ position: 'absolute', left: 0, right: 0, top: (PLOT_H / 8) * i, height: 1.5, background: G.line, opacity: 0.8 * denseOp }} />
|
|
165
|
+
))}
|
|
166
|
+
|
|
167
|
+
{/* 刻度:同一格位,旧值下飞淡出 / 新值上方滑入 */}
|
|
168
|
+
{OLD_TICKS.map((v, i) => {
|
|
169
|
+
const y = (PLOT_H / 4) * (3 - i);
|
|
170
|
+
return (
|
|
171
|
+
<div key={`t${i}`} style={{ position: 'absolute', left: -AXIS_W, top: y - 13, width: AXIS_W - 14, height: 26, textAlign: 'right' }}>
|
|
172
|
+
<div
|
|
173
|
+
style={{
|
|
174
|
+
position: 'absolute',
|
|
175
|
+
inset: 0,
|
|
176
|
+
fontFamily: 'Helvetica',
|
|
177
|
+
fontWeight: 700,
|
|
178
|
+
fontSize: 21,
|
|
179
|
+
color: G.mid,
|
|
180
|
+
textAlign: 'right',
|
|
181
|
+
opacity: 1 - swap,
|
|
182
|
+
transform: `translateY(${(swap * 30).toFixed(2)}px)`,
|
|
183
|
+
}}
|
|
184
|
+
>
|
|
185
|
+
{v}
|
|
186
|
+
</div>
|
|
187
|
+
<div
|
|
188
|
+
style={{
|
|
189
|
+
position: 'absolute',
|
|
190
|
+
inset: 0,
|
|
191
|
+
fontFamily: 'Helvetica',
|
|
192
|
+
fontWeight: 700,
|
|
193
|
+
fontSize: 21,
|
|
194
|
+
color: G.ink,
|
|
195
|
+
textAlign: 'right',
|
|
196
|
+
opacity: swap,
|
|
197
|
+
transform: `translateY(${((swap - 1) * 30).toFixed(2)}px)`,
|
|
198
|
+
}}
|
|
199
|
+
>
|
|
200
|
+
{NEW_TICKS[i]}
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
);
|
|
204
|
+
})}
|
|
205
|
+
<div style={{ position: 'absolute', left: -AXIS_W, top: PLOT_H - 13, width: AXIS_W - 14, fontFamily: 'Helvetica', fontWeight: 700, fontSize: 21, color: G.mid, textAlign: 'right' }}>$0</div>
|
|
206
|
+
|
|
207
|
+
{/* 图表上沿强调线 */}
|
|
208
|
+
<div style={{ position: 'absolute', left: 0, right: 0, top: 0, height: 3, background: G.bar }} />
|
|
209
|
+
|
|
210
|
+
<svg width={PLOT_W} height={PLOT_H} style={{ position: 'absolute', inset: 0, overflow: 'visible' }}>
|
|
211
|
+
{/* 历史段 */}
|
|
212
|
+
<polyline points={basePts.join(' ')} fill="none" stroke={G.ink} strokeWidth={5} strokeLinejoin="round" strokeLinecap="round" />
|
|
213
|
+
{/* 爆表段:琥珀 + 10px,重标落回后收敛回常规 */}
|
|
214
|
+
{shockSeg.length > 0 && (
|
|
215
|
+
<polyline
|
|
216
|
+
points={shockSeg.join(' ')}
|
|
217
|
+
fill="none"
|
|
218
|
+
stroke={AMBER}
|
|
219
|
+
strokeWidth={shockOn && frame < RESCALE_END ? 10 : 6}
|
|
220
|
+
strokeLinejoin="round"
|
|
221
|
+
strokeLinecap="round"
|
|
222
|
+
/>
|
|
223
|
+
)}
|
|
224
|
+
{/* 端点标记 */}
|
|
225
|
+
{markS > 0 && (
|
|
226
|
+
<>
|
|
227
|
+
<circle cx={headX} cy={headY} r={13 * markS} fill={AMBER} />
|
|
228
|
+
<circle cx={headX} cy={headY} r={22 * markS} fill="none" stroke={AMBER} strokeWidth={3} opacity={0.55} />
|
|
229
|
+
</>
|
|
230
|
+
)}
|
|
231
|
+
</svg>
|
|
232
|
+
|
|
233
|
+
{/* 真值标签 "$340k"(端点旁弹出) */}
|
|
234
|
+
{valS > 0 && (
|
|
235
|
+
<div
|
|
236
|
+
style={{
|
|
237
|
+
position: 'absolute',
|
|
238
|
+
left: headX - 178,
|
|
239
|
+
top: headY - 27,
|
|
240
|
+
width: 150,
|
|
241
|
+
height: 54,
|
|
242
|
+
background: AMBER,
|
|
243
|
+
borderRadius: 10,
|
|
244
|
+
color: '#fff',
|
|
245
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
246
|
+
fontWeight: 800,
|
|
247
|
+
fontSize: 30,
|
|
248
|
+
display: 'flex',
|
|
249
|
+
alignItems: 'center',
|
|
250
|
+
justifyContent: 'center',
|
|
251
|
+
transform: `scale(${valS.toFixed(4)})`,
|
|
252
|
+
transformOrigin: 'right center',
|
|
253
|
+
}}
|
|
254
|
+
>
|
|
255
|
+
$340k
|
|
256
|
+
</div>
|
|
257
|
+
)}
|
|
258
|
+
|
|
259
|
+
{/* x 轴真月份 */}
|
|
260
|
+
{MONTHS.map((m, i) => (
|
|
261
|
+
<div
|
|
262
|
+
key={`m${i}`}
|
|
263
|
+
style={{
|
|
264
|
+
position: 'absolute',
|
|
265
|
+
left: xOf(i) - 30,
|
|
266
|
+
top: PLOT_H + 16,
|
|
267
|
+
width: 60,
|
|
268
|
+
textAlign: 'center',
|
|
269
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
270
|
+
fontSize: 18,
|
|
271
|
+
fontWeight: 600,
|
|
272
|
+
color: i === N - 1 ? AMBER : G.mid,
|
|
273
|
+
}}
|
|
274
|
+
>
|
|
275
|
+
{m}
|
|
276
|
+
</div>
|
|
277
|
+
))}
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
);
|
|
282
|
+
};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// oscilloscope-stream-v2 —— 示波流线 v2(批次 6 "改改再看" 重做)
|
|
2
|
+
// 相对 v1 的加码:流速 5.5→8px/f;写入点亮点 1.5×(7→10.5)、余辉 90→160px;
|
|
3
|
+
// 流动中途插入一次突发尖峰(振幅 2.2×、持续 ~20 帧写入后随流带走),尖峰经过写入点时
|
|
4
|
+
// 卡头实时读数跳大并变琥珀;真图表语境:真标题/真 y 轴刻度/真时间轴/实时读数。
|
|
5
|
+
// 刹停逻辑保留:f100–112 out-cubic 刹停,f112 后真静止 48f。
|
|
6
|
+
// 帧确定性:波形与尖峰包络都是纯 worldX 函数,无 Math.random / Date.now。
|
|
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 CARD_W = 1080;
|
|
14
|
+
const CARD_H = 560;
|
|
15
|
+
const CX = (1920 - CARD_W) / 2;
|
|
16
|
+
const CY = (1080 - CARD_H) / 2 + 40;
|
|
17
|
+
const PAD = 46;
|
|
18
|
+
const AXIS_W = 64; // 左侧 y 轴刻度位
|
|
19
|
+
const PLOT_X = PAD + AXIS_W;
|
|
20
|
+
const PLOT_W = CARD_W - PAD * 2 - AXIS_W; // 924
|
|
21
|
+
const PLOT_H = 300;
|
|
22
|
+
const PLOT_Y = 158;
|
|
23
|
+
|
|
24
|
+
const HOLD = 12;
|
|
25
|
+
const FREEZE_START = 100;
|
|
26
|
+
const FREEZE_END = 112;
|
|
27
|
+
const SPEED = 8; // px/frame(v1 5.5 → 8,~240px/s)
|
|
28
|
+
const AMP = 0.72; // 基础振幅占半高比例(给尖峰留出头部空间)
|
|
29
|
+
|
|
30
|
+
// 突发尖峰:worldX ∈ [288, 448](写入发生在 f48–68,之后随流向左带走)
|
|
31
|
+
const SPIKE_X0 = 288;
|
|
32
|
+
const SPIKE_W = 160;
|
|
33
|
+
const SPIKE_GAIN = 1.2; // 峰值 = 1 + 1.2 = 2.2×
|
|
34
|
+
|
|
35
|
+
const env = (x: number): number => {
|
|
36
|
+
if (x <= SPIKE_X0 || x >= SPIKE_X0 + SPIKE_W) return 1;
|
|
37
|
+
const p = (x - SPIKE_X0) / SPIKE_W;
|
|
38
|
+
return 1 + SPIKE_GAIN * (0.5 - 0.5 * Math.cos(p * Math.PI * 2));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// 有效时间:HOLD 前为 0,之后线性流动,FREEZE 区间 easeOut 刹停为常数
|
|
42
|
+
const effTime = (frame: number): number => {
|
|
43
|
+
const t = (f: number) => Math.max(f - HOLD, 0) * SPEED;
|
|
44
|
+
if (frame <= FREEZE_START) return t(frame);
|
|
45
|
+
const brakeDist = (t(FREEZE_END) - t(FREEZE_START)) * 0.45;
|
|
46
|
+
return (
|
|
47
|
+
t(FREEZE_START) +
|
|
48
|
+
interpolate(frame, [FREEZE_START, FREEZE_END], [0, brakeDist], {
|
|
49
|
+
easing: Easing.out(Easing.cubic),
|
|
50
|
+
extrapolateRight: 'clamp',
|
|
51
|
+
})
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// 波形:四个正弦叠加,x 单位 = 世界像素
|
|
56
|
+
const wave = (x: number): number =>
|
|
57
|
+
0.34 * Math.sin(x * 0.021) +
|
|
58
|
+
0.27 * Math.sin(x * 0.052 + 1.7) +
|
|
59
|
+
0.18 * Math.sin(x * 0.013 + 4.2) +
|
|
60
|
+
0.12 * Math.sin(x * 0.087 + 2.3);
|
|
61
|
+
|
|
62
|
+
const signal = (x: number): number => wave(x) * env(x) * AMP; // ∈ ~[-1.6, 1.6],常态 [-0.65, 0.65]
|
|
63
|
+
const yOf = (x: number): number => PLOT_H / 2 - signal(x) * (PLOT_H / 2);
|
|
64
|
+
// 读数映射:绘图区中线 = 1,000 req/s,上下沿 = 2,000 / 0
|
|
65
|
+
const valueOf = (x: number): number => Math.round(1000 + signal(x) * 1000);
|
|
66
|
+
|
|
67
|
+
const fmt = (n: number): string => n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
68
|
+
|
|
69
|
+
const Y_TICKS = ['2.0k', '1.5k', '1.0k', '0.5k', '0'];
|
|
70
|
+
const X_TICKS = ['-60s', '-50s', '-40s', '-30s', '-20s', '-10s', 'now'];
|
|
71
|
+
|
|
72
|
+
export const OscilloscopeStreamV2: React.FC = () => {
|
|
73
|
+
const frame = useCurrentFrame();
|
|
74
|
+
const T = effTime(frame);
|
|
75
|
+
|
|
76
|
+
const N = 270;
|
|
77
|
+
const pts: string[] = [];
|
|
78
|
+
for (let i = 0; i <= N; i++) {
|
|
79
|
+
const px = (i / N) * PLOT_W;
|
|
80
|
+
const worldX = T - (PLOT_W - px);
|
|
81
|
+
pts.push(`${px.toFixed(2)},${yOf(worldX).toFixed(2)}`);
|
|
82
|
+
}
|
|
83
|
+
const headY = yOf(T);
|
|
84
|
+
|
|
85
|
+
const frozen = frame >= FREEZE_END;
|
|
86
|
+
const glowOp = interpolate(frame, [FREEZE_START, FREEZE_END], [1, 0], {
|
|
87
|
+
extrapolateLeft: 'clamp',
|
|
88
|
+
extrapolateRight: 'clamp',
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// 余辉段:头部往回 160px(v1 90 → 160)
|
|
92
|
+
const TAIL = 160;
|
|
93
|
+
const tailPts: string[] = [];
|
|
94
|
+
if (!frozen) {
|
|
95
|
+
for (let i = 0; i <= 40; i++) {
|
|
96
|
+
const px = PLOT_W - TAIL + (i / 40) * TAIL;
|
|
97
|
+
const worldX = T - (PLOT_W - px);
|
|
98
|
+
tailPts.push(`${px.toFixed(2)},${yOf(worldX).toFixed(2)}`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// 实时读数:尖峰经过写入点时跳大 + 变琥珀
|
|
103
|
+
const spikeK = Math.min(Math.max((env(T) - 1) / SPIKE_GAIN, 0), 1);
|
|
104
|
+
const hot = spikeK > 0.22;
|
|
105
|
+
const readout = fmt(valueOf(T));
|
|
106
|
+
const readScale = 1 + 0.32 * spikeK;
|
|
107
|
+
const dotColor = spikeK > 0.15 ? AMBER : G.ink;
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
111
|
+
<div style={{ position: 'absolute', top: 110, width: '100%', textAlign: 'center' }}>
|
|
112
|
+
<TitleBlock text="OSCILLOSCOPE STREAM V2" size={72} />
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<div
|
|
116
|
+
style={{
|
|
117
|
+
position: 'absolute',
|
|
118
|
+
left: CX,
|
|
119
|
+
top: CY,
|
|
120
|
+
width: CARD_W,
|
|
121
|
+
height: CARD_H,
|
|
122
|
+
background: G.card,
|
|
123
|
+
border: `2px solid ${G.border}`,
|
|
124
|
+
borderRadius: 14,
|
|
125
|
+
boxSizing: 'border-box',
|
|
126
|
+
boxShadow: '0 2px 8px rgba(0,0,0,0.06)',
|
|
127
|
+
}}
|
|
128
|
+
>
|
|
129
|
+
{/* 真卡头:标题 + 副题 + 实时读数 */}
|
|
130
|
+
<div style={{ position: 'absolute', left: PAD, top: 38, fontFamily: 'Helvetica, Arial, sans-serif' }}>
|
|
131
|
+
<div style={{ fontSize: 30, fontWeight: 700, color: G.ink }}>Requests per second</div>
|
|
132
|
+
<div style={{ fontSize: 20, fontWeight: 500, color: G.mid, marginTop: 8 }}>api-gateway · production · last 60 s</div>
|
|
133
|
+
</div>
|
|
134
|
+
<div
|
|
135
|
+
style={{
|
|
136
|
+
position: 'absolute',
|
|
137
|
+
right: PAD,
|
|
138
|
+
top: 36,
|
|
139
|
+
textAlign: 'right',
|
|
140
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
141
|
+
transform: `scale(${readScale.toFixed(4)})`,
|
|
142
|
+
transformOrigin: 'right top',
|
|
143
|
+
}}
|
|
144
|
+
>
|
|
145
|
+
<div style={{ fontSize: 46, fontWeight: 800, color: hot ? AMBER : G.ink, fontVariantNumeric: 'tabular-nums', letterSpacing: -1 }}>
|
|
146
|
+
{readout}
|
|
147
|
+
</div>
|
|
148
|
+
<div style={{ fontSize: 18, fontWeight: 600, color: hot ? AMBER : G.mid, marginTop: 2 }}>req/s · live</div>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
{/* y 轴真刻度 */}
|
|
152
|
+
{Y_TICKS.map((t, i) => (
|
|
153
|
+
<div
|
|
154
|
+
key={`yt${i}`}
|
|
155
|
+
style={{
|
|
156
|
+
position: 'absolute',
|
|
157
|
+
left: PAD - 6,
|
|
158
|
+
top: PLOT_Y + (PLOT_H / 4) * i - 11,
|
|
159
|
+
width: AXIS_W - 8,
|
|
160
|
+
textAlign: 'right',
|
|
161
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
162
|
+
fontSize: 20,
|
|
163
|
+
fontWeight: 600,
|
|
164
|
+
color: G.mid,
|
|
165
|
+
}}
|
|
166
|
+
>
|
|
167
|
+
{t}
|
|
168
|
+
</div>
|
|
169
|
+
))}
|
|
170
|
+
|
|
171
|
+
<div style={{ position: 'absolute', left: PLOT_X, top: PLOT_Y, width: PLOT_W, height: PLOT_H }}>
|
|
172
|
+
{/* 网格 */}
|
|
173
|
+
{[0, 1, 2, 3, 4].map((i) => (
|
|
174
|
+
<div key={`h${i}`} style={{ position: 'absolute', left: 0, right: 0, top: (PLOT_H / 4) * i, height: 2, background: G.line, opacity: 0.7 }} />
|
|
175
|
+
))}
|
|
176
|
+
{[0, 1, 2, 3, 4, 5, 6].map((i) => (
|
|
177
|
+
<div key={`v${i}`} style={{ position: 'absolute', top: 0, bottom: 0, left: (PLOT_W / 6) * i, width: 2, background: G.line, opacity: 0.45 }} />
|
|
178
|
+
))}
|
|
179
|
+
|
|
180
|
+
<svg width={PLOT_W} height={PLOT_H} style={{ position: 'absolute', inset: 0, overflow: 'visible' }}>
|
|
181
|
+
<polyline points={pts.join(' ')} fill="none" stroke={G.ink} strokeWidth={5} strokeLinejoin="round" strokeLinecap="round" />
|
|
182
|
+
{!frozen && glowOp > 0 && (
|
|
183
|
+
<polyline
|
|
184
|
+
points={tailPts.join(' ')}
|
|
185
|
+
fill="none"
|
|
186
|
+
stroke="#6a6a68"
|
|
187
|
+
strokeWidth={9}
|
|
188
|
+
strokeLinecap="round"
|
|
189
|
+
strokeLinejoin="round"
|
|
190
|
+
opacity={0.55 * glowOp}
|
|
191
|
+
style={{ filter: 'blur(2px)' }}
|
|
192
|
+
/>
|
|
193
|
+
)}
|
|
194
|
+
{/* 写入点亮点(1.5×) */}
|
|
195
|
+
{!frozen && glowOp > 0 && (
|
|
196
|
+
<>
|
|
197
|
+
<circle cx={PLOT_W} cy={headY} r={24} fill={spikeK > 0.15 ? AMBER : '#8f8f8d'} opacity={0.35 * glowOp} style={{ filter: 'blur(5px)' }} />
|
|
198
|
+
<circle cx={PLOT_W} cy={headY} r={10.5} fill={dotColor} opacity={glowOp} />
|
|
199
|
+
</>
|
|
200
|
+
)}
|
|
201
|
+
</svg>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
{/* x 轴真时间刻度 */}
|
|
205
|
+
<div style={{ position: 'absolute', left: PLOT_X, top: PLOT_Y + PLOT_H + 14, width: PLOT_W }}>
|
|
206
|
+
{X_TICKS.map((t, i) => (
|
|
207
|
+
<div
|
|
208
|
+
key={`xt${i}`}
|
|
209
|
+
style={{
|
|
210
|
+
position: 'absolute',
|
|
211
|
+
left: (PLOT_W / 6) * i - 40,
|
|
212
|
+
width: 80,
|
|
213
|
+
textAlign: 'center',
|
|
214
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
215
|
+
fontSize: 19,
|
|
216
|
+
fontWeight: 600,
|
|
217
|
+
color: G.mid,
|
|
218
|
+
}}
|
|
219
|
+
>
|
|
220
|
+
{t}
|
|
221
|
+
</div>
|
|
222
|
+
))}
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
);
|
|
227
|
+
};
|