dsh-drawai 0.3.3 → 0.4.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/LICENSE +4142 -0
- package/README.md +43 -10
- package/lib/audio-media.js +147 -0
- package/lib/audio-service.js +66 -0
- package/lib/canvas-format.js +134 -0
- package/lib/client.js +5283 -223
- package/lib/comfyui-default-workflow.mjs +1825 -0
- package/lib/comfyui-workflow.mjs +426 -0
- package/lib/document-commands.js +12 -0
- package/lib/document-core.js +29 -0
- package/lib/drawing-tasks.js +26 -0
- package/lib/imagegen.mjs +596 -0
- package/lib/index.js +1758 -129
- package/lib/media.js +26 -13
- package/lib/mgstyle-core.js +75 -0
- package/lib/motion/apply.js +180 -0
- package/lib/motion/asset-pack-lock.js +10 -0
- package/lib/motion/asset-pack.js +335 -0
- package/lib/motion/assets.js +290 -0
- package/lib/motion/audio.js +103 -0
- package/lib/motion/audiolevel.js +63 -0
- package/lib/motion/audiomix.js +144 -0
- package/lib/motion/beats.js +337 -0
- package/lib/motion/builtin-assets.js +62 -0
- package/lib/motion/canvas-spec.js +442 -0
- package/lib/motion/capture.js +95 -0
- package/lib/motion/cards.js +80 -0
- package/lib/motion/collect.js +447 -0
- package/lib/motion/delivery.js +112 -0
- package/lib/motion/edge-speech.py +90 -0
- package/lib/motion/entry.jsx +73 -0
- package/lib/motion/export.js +200 -0
- package/lib/motion/ffmpeg.js +42 -0
- package/lib/motion/fonts.js +71 -0
- package/lib/motion/jobs.js +113 -0
- package/lib/motion/json.js +4 -0
- package/lib/motion/media-catalog.js +59 -0
- package/lib/motion/mgstyles/BRIEF-TEMPLATE.md +63 -0
- package/lib/motion/mgstyles/briefs/01-flat-vector.md +104 -0
- package/lib/motion/mgstyles/briefs/02-line-art.md +97 -0
- package/lib/motion/mgstyles/briefs/03-isometric.md +108 -0
- package/lib/motion/mgstyles/briefs/05-cel-boil.md +145 -0
- package/lib/motion/mgstyles/briefs/06-collage.md +149 -0
- package/lib/motion/mgstyles/briefs/07-liquid.md +106 -0
- package/lib/motion/mgstyles/briefs/08-morph.md +111 -0
- package/lib/motion/mgstyles/briefs/09-bauhaus.md +150 -0
- package/lib/motion/mgstyles/briefs/10-synthwave.md +151 -0
- package/lib/motion/mgstyles/briefs/12-aurora-glass.md +147 -0
- package/lib/motion/mgstyles/briefs/18-hanazi.md +140 -0
- package/lib/motion/mgstyles/briefs/19-paperclip.md +156 -0
- package/lib/motion/mgstyles/briefs/20-pixel.md +118 -0
- package/lib/motion/mgstyles/briefs/22-hud.md +118 -0
- package/lib/motion/mgstyles/catalog.d/01-flat-vector.json +34 -0
- package/lib/motion/mgstyles/catalog.d/02-line-art.json +34 -0
- package/lib/motion/mgstyles/catalog.d/03-isometric.json +35 -0
- package/lib/motion/mgstyles/catalog.d/05-cel-boil.json +28 -0
- package/lib/motion/mgstyles/catalog.d/06-collage.json +28 -0
- package/lib/motion/mgstyles/catalog.d/07-liquid.json +28 -0
- package/lib/motion/mgstyles/catalog.d/08-morph.json +28 -0
- package/lib/motion/mgstyles/catalog.d/09-bauhaus.json +28 -0
- package/lib/motion/mgstyles/catalog.d/10-synthwave.json +28 -0
- package/lib/motion/mgstyles/catalog.d/12-aurora-glass.json +28 -0
- package/lib/motion/mgstyles/catalog.d/18-hanazi.json +28 -0
- package/lib/motion/mgstyles/catalog.d/19-paperclip.json +28 -0
- package/lib/motion/mgstyles/catalog.d/20-pixel.json +28 -0
- package/lib/motion/mgstyles/catalog.d/22-hud.json +28 -0
- package/lib/motion/mgstyles/catalog.json +1356 -0
- package/lib/motion/mgstyles/upstream/README.md +147 -0
- package/lib/motion/mgstyles/upstream/README.zh-CN.md +147 -0
- package/lib/motion/mgstyles/upstream/demos/01-flat-vector/cues.json +1 -0
- package/lib/motion/mgstyles/upstream/demos/01-flat-vector/index.html +712 -0
- package/lib/motion/mgstyles/upstream/demos/02-line-art/cues.json +331 -0
- package/lib/motion/mgstyles/upstream/demos/02-line-art/film.js +676 -0
- package/lib/motion/mgstyles/upstream/demos/02-line-art/index.html +18 -0
- package/lib/motion/mgstyles/upstream/demos/02-line-art/tools/dump_timing.mjs +26 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/cues.json +109 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/index.html +25 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/anim.js +82 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/main.js +219 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/night5.js +180 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/render.js +202 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/title.js +167 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/title5.js +294 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/ui.js +141 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/world.js +1399 -0
- package/lib/motion/mgstyles/upstream/demos/05-cel-boil/cues.json +157 -0
- package/lib/motion/mgstyles/upstream/demos/05-cel-boil/index.html +34 -0
- package/lib/motion/mgstyles/upstream/demos/05-cel-boil/js/engine.js +326 -0
- package/lib/motion/mgstyles/upstream/demos/05-cel-boil/js/scene.js +2036 -0
- package/lib/motion/mgstyles/upstream/demos/06-collage/assets/gen/layout.json +157 -0
- package/lib/motion/mgstyles/upstream/demos/06-collage/cues.json +80 -0
- package/lib/motion/mgstyles/upstream/demos/06-collage/index.html +889 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/cues.json +100 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/index.html +108 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/engine.js +153 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/links.js +64 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/lookdev.js +46 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/scene.js +963 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/shaders.js +647 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/textsdf.js +114 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/type.js +50 -0
- package/lib/motion/mgstyles/upstream/demos/08-morph/cues.json +131 -0
- package/lib/motion/mgstyles/upstream/demos/08-morph/glyphs.json +1 -0
- package/lib/motion/mgstyles/upstream/demos/08-morph/index.html +901 -0
- package/lib/motion/mgstyles/upstream/demos/09-bauhaus/cues.json +270 -0
- package/lib/motion/mgstyles/upstream/demos/09-bauhaus/film.js +697 -0
- package/lib/motion/mgstyles/upstream/demos/09-bauhaus/index.html +12 -0
- package/lib/motion/mgstyles/upstream/demos/10-synthwave/cues.json +44 -0
- package/lib/motion/mgstyles/upstream/demos/10-synthwave/index.html +1028 -0
- package/lib/motion/mgstyles/upstream/demos/12-aurora-glass/cues.json +67 -0
- package/lib/motion/mgstyles/upstream/demos/12-aurora-glass/index.html +16 -0
- package/lib/motion/mgstyles/upstream/demos/12-aurora-glass/main.js +967 -0
- package/lib/motion/mgstyles/upstream/demos/12-aurora-glass/shaders.js +468 -0
- package/lib/motion/mgstyles/upstream/demos/18-hanazi/cues.json +117 -0
- package/lib/motion/mgstyles/upstream/demos/18-hanazi/index.html +541 -0
- package/lib/motion/mgstyles/upstream/demos/19-paperclip/assets/countries-110m.json +1 -0
- package/lib/motion/mgstyles/upstream/demos/19-paperclip/assets/stickers/meta.json +34 -0
- package/lib/motion/mgstyles/upstream/demos/19-paperclip/cues.json +285 -0
- package/lib/motion/mgstyles/upstream/demos/19-paperclip/index.html +599 -0
- package/lib/motion/mgstyles/upstream/demos/20-pixel/cues.json +42 -0
- package/lib/motion/mgstyles/upstream/demos/20-pixel/film.js +914 -0
- package/lib/motion/mgstyles/upstream/demos/20-pixel/index.html +18 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/cues.json +108 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/index.html +125 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/holo.js +275 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/hud.js +855 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/post.js +150 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/util.js +65 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/v5.js +142 -0
- package/lib/motion/mgstyles/upstream/harness/render.mjs +319 -0
- package/lib/motion/mgstyles/upstream/manifest.json +269 -0
- package/lib/motion/mgstyles/upstream/prompts/01-flat-vector.md +98 -0
- package/lib/motion/mgstyles/upstream/prompts/02-line-art.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/03-isometric.md +97 -0
- package/lib/motion/mgstyles/upstream/prompts/05-cel-boil.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/06-collage.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/07-liquid.md +98 -0
- package/lib/motion/mgstyles/upstream/prompts/08-morph.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/09-bauhaus.md +96 -0
- package/lib/motion/mgstyles/upstream/prompts/10-synthwave.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/12-aurora-glass.md +96 -0
- package/lib/motion/mgstyles/upstream/prompts/18-hanazi.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/19-paperclip.md +96 -0
- package/lib/motion/mgstyles/upstream/prompts/20-pixel.md +96 -0
- package/lib/motion/mgstyles/upstream/prompts/22-hud.md +95 -0
- package/lib/motion/mgstyles/upstream/rubric.md +51 -0
- package/lib/motion/mgstyles/upstream/template.md +36 -0
- package/lib/motion/pixelqa.js +198 -0
- package/lib/motion/preview.js +95 -0
- package/lib/motion/project.js +395 -0
- package/lib/motion/qa.js +290 -0
- package/lib/motion/reference-media.jsx +10 -0
- package/lib/motion/render-settings.js +112 -0
- package/lib/motion/render.js +159 -0
- package/lib/motion/scene-kit.js +183 -0
- package/lib/motion/sfx.js +232 -0
- package/lib/motion/shotcraft/ClipCard.tsx +204 -0
- package/lib/motion/shotcraft/catalog.json +2461 -0
- package/lib/motion/shotcraft/upstream/SKILL.md +286 -0
- package/lib/motion/shotcraft/upstream/assets/lib/Caption.tsx +54 -0
- package/lib/motion/shotcraft/upstream/assets/lib/ClipCard.tsx +200 -0
- package/lib/motion/shotcraft/upstream/assets/lib/DigitRoll.tsx +45 -0
- package/lib/motion/shotcraft/upstream/assets/lib/FlashCut.tsx +20 -0
- package/lib/motion/shotcraft/upstream/assets/lib/FlatPanel.tsx +65 -0
- package/lib/motion/shotcraft/upstream/assets/lib/PageCam.tsx +151 -0
- package/lib/motion/shotcraft/upstream/assets/lib/VerticalTicker.tsx +129 -0
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/camera.tsx +75 -0
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/motion.ts +40 -0
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/rand.ts +11 -0
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/shake.ts +10 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/__pycache__/sfx-source.cpython-313.pyc +0 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/build-readme-cover.mjs +49 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/capture-template.mjs +210 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/sfx-source.py +423 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/smoke-render-demos.py +170 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/test_sfx_source.py +157 -0
- package/lib/motion/shotcraft/upstream/demos/README.md +120 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Brand.tsx +112 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Fixtures.tsx +647 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Look.tsx +316 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Motion.tsx +82 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/PageCam2D.tsx +115 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Polish.tsx +243 -0
- package/lib/motion/shotcraft/upstream/demos/_textures/live-layout.json +389 -0
- package/lib/motion/shotcraft/upstream/demos/camera/basic-3d-scene/Basic3DScene.tsx +250 -0
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashImpactReal.tsx +305 -0
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashZoomReal.tsx +246 -0
- package/lib/motion/shotcraft/upstream/demos/camera/cursor-flyover/CursorFlyover.tsx +390 -0
- package/lib/motion/shotcraft/upstream/demos/camera/depth-layer-moves/MultiplaneReal.tsx +138 -0
- package/lib/motion/shotcraft/upstream/demos/camera/graze-face-tour/GrazeFaceTour.tsx +542 -0
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/OverheadTabletopDrop.tsx +315 -0
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/TiltReveal.tsx +299 -0
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/DroneDiveLanding.tsx +173 -0
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/ExplodedView.tsx +348 -0
- package/lib/motion/shotcraft/upstream/demos/camera/steep-tilt-glide/SteepTiltGlide.tsx +366 -0
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/BulletTimeFreezeOrbit.tsx +279 -0
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/PullBackIsolation.tsx +184 -0
- package/lib/motion/shotcraft/upstream/demos/camera/terminal-3d/Terminal3D.tsx +390 -0
- package/lib/motion/shotcraft/upstream/demos/data/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +155 -0
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/AxisRescaleShockV2.tsx +303 -0
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/OscilloscopeStreamV2.tsx +290 -0
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/UnitDotSwarmRegroupV2.tsx +278 -0
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/NeedleSweepSelftest.tsx +307 -0
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/TapeScrollFixedPointer.tsx +215 -0
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/BrakeReticleLock.tsx +299 -0
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/ChangelogScrollBrake.tsx +232 -0
- package/lib/motion/shotcraft/upstream/demos/data/timeline-travel/TimelineTravel.tsx +290 -0
- package/lib/motion/shotcraft/upstream/demos/effects/assemble-then-type-flyin/AssembleThenTypeFlyin.tsx +273 -0
- package/lib/motion/shotcraft/upstream/demos/effects/aurora-bloom-bg-flip/AuroraBloomBgFlip.tsx +167 -0
- package/lib/motion/shotcraft/upstream/demos/effects/brand-frame-snap/BrandFrameSnap.tsx +536 -0
- package/lib/motion/shotcraft/upstream/demos/effects/fui-hud-moves/ReticleLockOn.tsx +164 -0
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/FlylineArc.tsx +175 -0
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/GlowOrbAmbient.tsx +197 -0
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/OrbFlylineRelay.tsx +241 -0
- package/lib/motion/shotcraft/upstream/demos/effects/icon-performance-moves/AttentionBounce.tsx +279 -0
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/AnimeImpact.tsx +230 -0
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/HitCounter.tsx +345 -0
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SheenSweepRetry.tsx +275 -0
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SpotlightSweepReveal.tsx +229 -0
- package/lib/motion/shotcraft/upstream/demos/effects/radial-ripple-phone-chips/RadialRipplePhoneChips.tsx +312 -0
- package/lib/motion/shotcraft/upstream/demos/effects/riso-print-hits/RisoMisregistrationHit.tsx +222 -0
- package/lib/motion/shotcraft/upstream/demos/effects/scan-bracket-sweep/ScanBracketSweep.tsx +295 -0
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-annotate-focus/ScanlineAnnotateFocus.tsx +329 -0
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-assemble-flyin/ScanlineAssembleFlyin.tsx +315 -0
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ImpactBurstKit.tsx +264 -0
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/KanadaPerspectiveSnap.tsx +260 -0
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ScoreSlam.tsx +263 -0
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/CornerSpotlightReveal.tsx +123 -0
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +187 -0
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/SlideSpotlightPan.tsx +175 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/autolayout-gap-dial/AutolayoutGapDial.tsx +305 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/DiagramCascadeBuild.tsx +350 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +352 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/chip-grid-single-select-blackout/ChipGridSingleSelectBlackout.tsx +218 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/collab-cursor-moves/CursorCastEnsemble.tsx +297 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/glass-pill-dictation-typing/GlassPillDictationTyping.tsx +157 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +218 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/picker-carousel-feature-cycle/PickerCarouselFeatureCycle.tsx +202 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/segmented-thumb-hero/SegmentedThumbHero.tsx +265 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/PaletteThemeRipple.tsx +457 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/ThemeSweepToggle.tsx +446 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/type-and-filter/TypeAndFilter.tsx +249 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/voice-waveform-live/VoiceWaveformLive.tsx +278 -0
- package/lib/motion/shotcraft/upstream/demos/opening/crane-rise-reveal/CraneRiseReveal.tsx +332 -0
- package/lib/motion/shotcraft/upstream/demos/opening/dataviz-landscape-open/DatavizLandscapeOpen.tsx +358 -0
- package/lib/motion/shotcraft/upstream/demos/opening/fracture/Fracture.tsx +201 -0
- package/lib/motion/shotcraft/upstream/demos/opening/icon-field-colorize/IconFieldColorize.tsx +200 -0
- package/lib/motion/shotcraft/upstream/demos/opening/letterspace-materialize/LetterspaceMaterialize.tsx +208 -0
- package/lib/motion/shotcraft/upstream/demos/opening/magician-card-flourish/MagicianCardFlourish.tsx +341 -0
- package/lib/motion/shotcraft/upstream/demos/opening/orbit-ring-title-open/OrbitRingTitleOpen.tsx +389 -0
- package/lib/motion/shotcraft/upstream/demos/opening/spotlight-hero-card/SpotlightHeroCard.tsx +293 -0
- package/lib/motion/shotcraft/upstream/demos/opening/stroke-segment-build/StrokeSegmentBuild.tsx +183 -0
- package/lib/motion/shotcraft/upstream/demos/opening/text-as-mask/TextAsMask.tsx +245 -0
- package/lib/motion/shotcraft/upstream/demos/outro/grain-dissolve/GrainDissolve.tsx +222 -0
- package/lib/motion/shotcraft/upstream/demos/outro/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx +223 -0
- package/lib/motion/shotcraft/upstream/demos/outro/neon-triple-marquee/NeonTripleMarquee.tsx +217 -0
- package/lib/motion/shotcraft/upstream/demos/outro/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx +343 -0
- package/lib/motion/shotcraft/upstream/demos/outro/ui-strip-away-outro/UiStripAwayOutro.tsx +357 -0
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/IconFlipBloomLogo.tsx +187 -0
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/InputMorphsIntoLogo.tsx +333 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-cut-moves/PaparazziFlash.tsx +274 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +270 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/panel-grid-moves/ComicPanelSplit.tsx +430 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx +252 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/rhythm-interrupt-moves/JumpCutPunchIn.tsx +106 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/sakuga-timing-shift/SakugaTimingShift.tsx +288 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/speed-ramp-freeze/FreezeAnnotateReal.tsx +362 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/trailer-grammar-moves/TrailerBumper.tsx +168 -0
- package/lib/motion/shotcraft/upstream/demos/transition/bottom-push-stack-wipe/BottomPushStackWipe.tsx +310 -0
- package/lib/motion/shotcraft/upstream/demos/transition/card-flip-reveal/CardFlipReveal.tsx +261 -0
- package/lib/motion/shotcraft/upstream/demos/transition/card-flock-tumble/CardFlockTumble.tsx +459 -0
- package/lib/motion/shotcraft/upstream/demos/transition/circle-match-iris/CircleMatchIris.tsx +294 -0
- package/lib/motion/shotcraft/upstream/demos/transition/gradient-transition/GradientTransition.tsx +161 -0
- package/lib/motion/shotcraft/upstream/demos/transition/line-carry-transition/LineCarryTransition.tsx +248 -0
- package/lib/motion/shotcraft/upstream/demos/transition/mosaic-reframe/MosaicReframe.tsx +359 -0
- package/lib/motion/shotcraft/upstream/demos/transition/page-turn-transitions/BarnDoorSplit.tsx +227 -0
- package/lib/motion/shotcraft/upstream/demos/transition/print-texture-transitions/InkBleedReveal.tsx +162 -0
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/PortalWipeV2.tsx +248 -0
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/WhipBrakeReal.tsx +186 -0
- package/lib/motion/shotcraft/upstream/demos/transition/tear-streak-transitions/GlitchDisplace.tsx +355 -0
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/InvisibleCut.tsx +272 -0
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/LightLeakBurn.tsx +262 -0
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/VersusSlam.tsx +217 -0
- package/lib/motion/shotcraft/upstream/demos/transition/transition-travel/LetterformZoom.tsx +285 -0
- package/lib/motion/shotcraft/upstream/demos/transition/white-flash-logo-simplify-cut/WhiteFlashLogoSimplifyCut.tsx +205 -0
- package/lib/motion/shotcraft/upstream/demos/transition/wipe-transitions/BlindsSlice.tsx +178 -0
- package/lib/motion/shotcraft/upstream/demos/typography/blur-slide/BlurSlide.tsx +147 -0
- package/lib/motion/shotcraft/upstream/demos/typography/brace-expand/BraceExpand.tsx +143 -0
- package/lib/motion/shotcraft/upstream/demos/typography/brand-ink-open/BrandInkOpen.tsx +134 -0
- package/lib/motion/shotcraft/upstream/demos/typography/countdown-arc-scatter/CountdownArcScatter.tsx +217 -0
- package/lib/motion/shotcraft/upstream/demos/typography/flying-words/FlyingWords.tsx +198 -0
- package/lib/motion/shotcraft/upstream/demos/typography/glitch-cycle/GlitchCycle.tsx +221 -0
- package/lib/motion/shotcraft/upstream/demos/typography/gradient-word-sweep/GradientWordSweep.tsx +312 -0
- package/lib/motion/shotcraft/upstream/demos/typography/lead-word-zoom-assemble/LeadWordZoomAssemble.tsx +261 -0
- package/lib/motion/shotcraft/upstream/demos/typography/marker-underline-title/MarkerUnderlineTitle.tsx +121 -0
- package/lib/motion/shotcraft/upstream/demos/typography/outline-word-fill/OutlineWordFill.tsx +153 -0
- package/lib/motion/shotcraft/upstream/demos/typography/paper-title-card/PaperTitleCard.tsx +179 -0
- package/lib/motion/shotcraft/upstream/demos/typography/pill-chip-slot-cycle-handled/PillChipSlotCycleHandled.tsx +140 -0
- package/lib/motion/shotcraft/upstream/demos/typography/pill-slot-cycle/PillSlotCycle.tsx +309 -0
- package/lib/motion/shotcraft/upstream/demos/typography/text-column-converge/TextColumnConverge.tsx +191 -0
- package/lib/motion/shotcraft/upstream/demos/typography/title-demote-to-label/TitleDemoteToLabel.tsx +292 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/LetterformDriftAssembly.tsx +135 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/SplitTextStagger.tsx +124 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/TextOnPath.tsx +255 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-entrance-moves/LetterDropPhysics.tsx +173 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/FontWeightPump.tsx +225 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/KaraokeFillSync.tsx +141 -0
- package/lib/motion/shotcraft/upstream/demos/typography/typewriter-moves/TypewriterErrorRetype.tsx +137 -0
- package/lib/motion/shotcraft/upstream/demos/typography/vertical-word-roll-blur-cycle/VerticalWordRollBlurCycle.tsx +147 -0
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-filmstrip/WordRelayFilmstrip.tsx +409 -0
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-geometry/WordRelayGeometry.tsx +280 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/avatar-bracket-carousel/AvatarBracketCarousel.tsx +271 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/bezier-source-converge-merge/BezierSourceConvergeMerge.tsx +385 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/card-stack/CardStack.tsx +312 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/carousel-3d/Carousel3D.tsx +303 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/clipcard-looping/ClipCardLooping.tsx +77 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/cloner-depth-echo/ClonerDepthEcho.tsx +311 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/deck-deal-flyin/DeckDealFlyin.tsx +307 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/doc-park-left-pill-deal/DocParkLeftPillDeal.tsx +349 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/document-typewriter-reveal/DocumentTypewriterReveal.tsx +255 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/draw-svg-trace/DrawSvgTrace.tsx +244 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/element-body-moves/ContactShadowLift.tsx +217 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/integration-hub-map/IntegrationHubMap.tsx +652 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-reveal/ListReveal.tsx +153 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-stack-press/ListStackPress.tsx +238 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-forerun/NeonFrameForerun.tsx +324 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +354 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/PageWaterfallWall.tsx +101 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/VerticalTicker.tsx +129 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/product-card-progressive-assemble/ProductCardProgressiveAssemble.tsx +297 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/radial-wave/RadialWave.tsx +57 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/research-card-stack-scroll/ResearchCardStackScroll.tsx +155 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/row-embed/RowEmbed.tsx +175 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/value-stagger-gradient/ValueStaggerGradient.tsx +153 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/BentoLightUp.tsx +146 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/WireframeDrawOn.tsx +226 -0
- package/lib/motion/shotcraft/upstream/gallery/api/library.json +1 -0
- package/lib/motion/shotcraft/upstream/manifest.json +2715 -0
- package/lib/motion/shotcraft/upstream/references/aesthetic-rules.md +193 -0
- package/lib/motion/shotcraft/upstream/references/final-review.md +121 -0
- package/lib/motion/shotcraft/upstream/references/guided-free-creation.md +199 -0
- package/lib/motion/shotcraft/upstream/references/jianying-export.md +183 -0
- package/lib/motion/shotcraft/upstream/references/music-beat-sync.md +257 -0
- package/lib/motion/shotcraft/upstream/references/pipeline.md +382 -0
- package/lib/motion/shotcraft/upstream/references/publish-upload-post.md +111 -0
- package/lib/motion/shotcraft/upstream/references/sequences/promo-energy-arc.md +50 -0
- package/lib/motion/shotcraft/upstream/references/sfx-sourcing.md +95 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/basic-3d-scene.md +41 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/crash-zoom-punch.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/cursor-flyover.md +39 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/depth-layer-moves.md +39 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/graze-face-tour.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/overhead-camera-moves.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/space-camera-moves.md +46 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/steep-tilt-glide.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/tension-camera-moves.md +43 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/terminal-3d.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/before-after-slider-scrub.md +48 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/chart-live-moves.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/gauge-readout-moves.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/scroll-brake-moves.md +46 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/timeline-travel.md +44 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/assemble-then-type-flyin.md +63 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/aurora-bloom-bg-flip.md +54 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/brand-frame-snap.md +58 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/fui-hud-moves.md +35 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/glow-flyline-moves.md +53 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/icon-performance-moves.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/impact-feedback.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/light-play-moves.md +46 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/radial-ripple-phone-chips.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/riso-print-hits.md +49 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/scan-bracket-sweep.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-annotate-focus.md +53 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-assemble-flyin.md +53 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/slam-entrance-moves.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/spotlight-sweep-moves.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/autolayout-gap-dial.md +60 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/canvas-materialize-moves.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/chip-grid-single-select-blackout.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/collab-cursor-moves.md +41 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/glass-pill-dictation-typing.md +53 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/hashtag-to-pill-materialize.md +60 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/picker-carousel-feature-cycle.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/segmented-thumb-hero.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/theme-switch-moves.md +47 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/type-and-filter.md +37 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/voice-waveform-live.md +54 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/brand-ink-open.md +36 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/crane-rise-reveal.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/dataviz-landscape-open.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/fracture.md +40 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/icon-field-colorize.md +60 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/letterspace-materialize.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/magician-card-flourish.md +73 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/orbit-ring-title-open.md +87 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/spotlight-hero-card.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/stroke-segment-build.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/text-as-mask.md +59 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/grain-dissolve.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/logo-shrink-wordmark-lockup.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/neon-triple-marquee.md +59 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/outro-group-photo-launch.md +39 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-strip-away-outro.md +61 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-to-brand-morph.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-cut-moves.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-step-list-theme-cycle.md +66 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/panel-grid-moves.md +43 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/quad-split-parallel-scenes.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/rhythm-interrupt-moves.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/sakuga-timing-shift.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/speed-ramp-freeze.md +44 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/trailer-grammar-moves.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/bottom-push-stack-wipe.md +63 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flip-reveal.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flock-tumble.md +63 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/circle-match-iris.md +58 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/gradient-transition.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/line-carry-transition.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/mosaic-reframe.md +49 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/page-turn-transitions.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/print-texture-transitions.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/shot-transitions.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/tear-streak-transitions.md +48 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-hidden-cut.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-travel.md +43 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/white-flash-logo-simplify-cut.md +41 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/wipe-transitions.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/blur-slide.md +59 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/brace-expand.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/countdown-arc-scatter.md +65 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/document-typewriter-reveal.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/flying-words.md +64 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/glitch-cycle.md +64 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/gradient-word-sweep.md +54 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/lead-word-zoom-assemble.md +91 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/marker-underline-title.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/outline-word-fill.md +66 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/paper-title-card.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-chip-slot-cycle-handled.md +66 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-slot-cycle.md +58 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/text-column-converge.md +61 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/title-demote-to-label.md +64 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-assembly-moves.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-entrance-moves.md +41 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-rhythm-sync.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/typewriter-moves.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/vertical-word-roll-blur-cycle.md +63 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-filmstrip.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-geometry.md +75 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/avatar-bracket-carousel.md +59 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/bezier-source-converge-merge.md +67 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/card-stack.md +60 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/carousel-3d.md +66 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/cloner-depth-echo.md +40 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/deck-deal-flyin.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/doc-park-left-pill-deal.md +62 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/draw-svg-trace.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/element-body-moves.md +37 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/integration-hub-map.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-reveal.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-stack-press.md +43 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-forerun.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-orbit-drop.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/page-waterfall-wall.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/product-card-progressive-assemble.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/radial-wave.md +49 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/research-card-stack-scroll.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/row-embed.md +36 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/value-stagger-gradient.md +64 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/wall-reveal-moves.md +47 -0
- package/lib/motion/shotcraft/upstream/references/sound-design.md +170 -0
- package/lib/motion/shotcraft/upstream/references/workbench.md +157 -0
- package/lib/motion/shotcraft/upstream/template/TEMPLATE.md +103 -0
- package/lib/motion/shotcraft/upstream/template/THEMES.md +44 -0
- package/lib/motion/shotcraft/upstream/template/package.json +20 -0
- package/lib/motion/shotcraft/upstream/template/remotion.config.ts +6 -0
- package/lib/motion/shotcraft/upstream/template/src/Root.tsx +17 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/Caption.tsx +65 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/DigitRoll.tsx +48 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/FlashCut.tsx +24 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/Main.tsx +192 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/PaperTitleCard.tsx +111 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/PageCam.tsx +150 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneDetail.tsx +158 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneFlyIn.tsx +468 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOpen.tsx +552 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOutroLive.tsx +411 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/ScenePapers.tsx +200 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneWbr.tsx +324 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live-layout.json +389 -0
- package/lib/motion/shotcraft/upstream/template/src/index.ts +4 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/ThemedFilm.tsx +7 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/manifest.tsx +68 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.json +1 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.ts +24 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/palettes.json +74 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/visual-theme.tsx +91 -0
- package/lib/motion/shotcraft/upstream/template/src/workbench.ts +213 -0
- package/lib/motion/shotcraft/upstream/template/tsconfig.json +15 -0
- package/lib/motion/spec.js +113 -0
- package/lib/motion/style-engine.js +153 -0
- package/lib/motion/style-frames.js +268 -0
- package/lib/motion/sync.js +214 -0
- package/lib/motion/theme.js +121 -0
- package/lib/motion/voice.js +417 -0
- package/lib/motion-agent-files.js +82 -0
- package/lib/motion-agent-protocol.js +66 -0
- package/lib/motion-agent-tools.js +196 -0
- package/lib/motion-agent.js +171 -0
- package/lib/motion-capture.js +92 -0
- package/lib/motion-core.js +238 -0
- package/lib/motion-film-review.js +71 -0
- package/lib/motion-library.js +210 -0
- package/lib/motion-planner.js +254 -0
- package/lib/motion-project.js +80 -0
- package/lib/motion-render-worker.js +145 -0
- package/lib/motion-session.js +32 -0
- package/lib/motion-source.js +49 -0
- package/lib/motion-tasks.js +452 -0
- package/lib/motion-vision.js +43 -0
- package/lib/mxfile.js +27 -7
- package/lib/routing/node-runtime.js +14 -0
- package/lib/routing/router.js +211 -0
- package/lib/routing/vendor/README.md +96 -0
- package/lib/routing/vendor/libavoid-routing.js +753 -0
- package/lib/routing/vendor/libavoid.min.js +59 -0
- package/lib/shotcard-core.js +39 -0
- package/lib/shotcard-reference.js +56 -0
- package/lib/style-kernel.js +37 -3
- package/lib/task-patches.js +26 -2
- package/lib/video-export.js +17 -2
- package/package.json +29 -4
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
// needle-sweep-selftest —— 满弧扫针自检
|
|
2
|
+
// 卡片内三个并排 270° 表盘。f12 "点火"后指针错峰 4f 依次从 0 甩满全弧
|
|
3
|
+
// (去程 12f ease-out),再回落到各自真实值(回程约 20f:落过头 5–8° 再回摆),
|
|
4
|
+
// 落定同帧盘下数值文字弹出。三表错峰形成波浪。f60 后真静止 80f。
|
|
5
|
+
// 帧确定性:纯函数分段,全部 clamp,settle 后每帧输出常数。
|
|
6
|
+
//
|
|
7
|
+
// 质感升级:仪表语境改暗场(深色柔光背景 + 颗粒、深色卡面发丝线 + 内高光);调试标题换成卡头
|
|
8
|
+
// "System health" + 自检状态胶囊(Running self-test… → All systems nominal);表盘加淡表面与外环、
|
|
9
|
+
// 0–100 刻度数字;去程扫过的刻度依次点亮再回落("先亮量程"),盘面有一条跟随指针的琥珀亮弧;
|
|
10
|
+
// 指针换成锥形发光针 + 金属轴帽,高速甩针时带角向拖影;回程改为按各表行程反算阻尼的弹簧,
|
|
11
|
+
// 落过头 8° 一次回摆、速度连续无折点;数值 overshoot 弹出、下方标注指标名。
|
|
12
|
+
// 品牌轮:卡头换成 video-shotcraft 渲染节点自检(标志 + "Render node health",落定后 "Ready to render")。
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { AbsoluteFill, spring, useCurrentFrame } from 'remotion';
|
|
15
|
+
import { Backdrop, EASE, FONT, Grain, mix, ramp, softShadow, tracking } from '../../_fixtures/Polish';
|
|
16
|
+
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
17
|
+
|
|
18
|
+
export const NEEDLE_SWEEP_SELFTEST_DURATION = 140; // f60 后真静止 80f
|
|
19
|
+
|
|
20
|
+
const AMBER = '#f59e0b';
|
|
21
|
+
const AMBER_HI = '#fcd34d';
|
|
22
|
+
const RED = '#ef4444';
|
|
23
|
+
const INK1 = '#f3f4f7';
|
|
24
|
+
const INK3 = '#737885';
|
|
25
|
+
|
|
26
|
+
const CARD_W = 1500;
|
|
27
|
+
const CARD_H = 640;
|
|
28
|
+
const CARD_X = (1920 - CARD_W) / 2;
|
|
29
|
+
const CARD_Y = (1080 - CARD_H) / 2 + 10;
|
|
30
|
+
|
|
31
|
+
const GA_W = CARD_W / 3; // 每表盘占位宽
|
|
32
|
+
const R = 148;
|
|
33
|
+
const CX = GA_W / 2;
|
|
34
|
+
const CY = 220;
|
|
35
|
+
|
|
36
|
+
// 表盘角 d∈[0,270] → SVG 角 a = 135 + d(0=右,顺时针,y 向下)
|
|
37
|
+
const polar = (a: number, r: number): [number, number] => [
|
|
38
|
+
CX + r * Math.cos((a * Math.PI) / 180),
|
|
39
|
+
CY + r * Math.sin((a * Math.PI) / 180),
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
const arcPath = (d0: number, d1: number, r: number): string => {
|
|
43
|
+
const [x0, y0] = polar(135 + d0, r);
|
|
44
|
+
const [x1, y1] = polar(135 + Math.max(d0 + 0.01, d1), r);
|
|
45
|
+
const large = d1 - d0 > 180 ? 1 : 0;
|
|
46
|
+
return `M ${x0.toFixed(2)} ${y0.toFixed(2)} A ${r} ${r} 0 ${large} 1 ${x1.toFixed(2)} ${y1.toFixed(2)}`;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// 三表:点火 f12,错峰 4f
|
|
50
|
+
const GAUGES = [
|
|
51
|
+
{ start: 12, target: 190, name: 'CPU' },
|
|
52
|
+
{ start: 16, target: 120, name: 'GPU' },
|
|
53
|
+
{ start: 20, target: 235, name: 'Network' },
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
// 回程弹簧:按"落过头 8°"反算阻尼比 ζ(超调比 p = 8/行程,ζ = -ln p / √(π² + ln² p))
|
|
57
|
+
const STIFF = 120;
|
|
58
|
+
const dampingFor = (target: number) => {
|
|
59
|
+
const p = Math.min(0.5, 8 / (270 - target));
|
|
60
|
+
const lp = Math.log(p);
|
|
61
|
+
const zeta = -lp / Math.sqrt(Math.PI * Math.PI + lp * lp);
|
|
62
|
+
return 2 * zeta * Math.sqrt(STIFF);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const needleAngle = (frame: number, s: number, target: number): number => {
|
|
66
|
+
if (frame <= s) return 0;
|
|
67
|
+
if (frame <= s + 12) return 270 * ramp(frame, s, 12, (x) => 1 - Math.pow(1 - x, 3)); // 去程:甩满全弧,起步猛
|
|
68
|
+
if (frame >= s + 46) return target; // 真静止:直接锁死常数
|
|
69
|
+
const k = spring({ frame: frame - (s + 12), fps: 30, config: { stiffness: STIFF, damping: dampingFor(target), mass: 1 } });
|
|
70
|
+
return mix(270, target, k);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const Gauge: React.FC<{ start: number; target: number; name: string }> = ({ start, target, name }) => {
|
|
74
|
+
const frame = useCurrentFrame();
|
|
75
|
+
const d = needleAngle(frame, start, target);
|
|
76
|
+
const dPrev = needleAngle(frame - 1, start, target);
|
|
77
|
+
const settle = start + 32;
|
|
78
|
+
const value = Math.round((target / 270) * 100);
|
|
79
|
+
|
|
80
|
+
const pop = ramp(frame, settle, 9, EASE.overshoot);
|
|
81
|
+
const popOp = ramp(frame, settle, 4, EASE.out);
|
|
82
|
+
const nameOp = ramp(frame, settle + 3, 10, EASE.out);
|
|
83
|
+
|
|
84
|
+
// 表盘点亮:点火时表面与外环亮起
|
|
85
|
+
const on = ramp(frame, start - 4, 10, EASE.out);
|
|
86
|
+
// 去程扫过的刻度依次点亮,满弧后 24f 内回落到常态亮度
|
|
87
|
+
const swept = frame <= start + 12 ? d : 270;
|
|
88
|
+
const calm = ramp(frame, start + 12, 24, EASE.smooth);
|
|
89
|
+
|
|
90
|
+
const ticks: React.ReactNode[] = [];
|
|
91
|
+
for (let k = 0; k <= 30; k++) {
|
|
92
|
+
const dd = k * 9;
|
|
93
|
+
const major = k % 3 === 0;
|
|
94
|
+
const a = 135 + dd;
|
|
95
|
+
const [x0, y0] = polar(a, R - 10);
|
|
96
|
+
const [x1, y1] = polar(a, major ? R - 30 : R - 20);
|
|
97
|
+
const lit = swept >= dd - 0.5 ? 1 - calm : 0;
|
|
98
|
+
const red = dd >= 225;
|
|
99
|
+
const base = red ? 0.55 : 0.22;
|
|
100
|
+
ticks.push(
|
|
101
|
+
<line
|
|
102
|
+
key={k}
|
|
103
|
+
x1={x0}
|
|
104
|
+
y1={y0}
|
|
105
|
+
x2={x1}
|
|
106
|
+
y2={y1}
|
|
107
|
+
stroke={red ? RED : '#ffffff'}
|
|
108
|
+
strokeOpacity={(base + (red ? 0.4 : 0.6) * lit) * on}
|
|
109
|
+
strokeWidth={major ? 3 : 1.6}
|
|
110
|
+
strokeLinecap="round"
|
|
111
|
+
/>,
|
|
112
|
+
);
|
|
113
|
+
if (major) {
|
|
114
|
+
const [lx, ly] = polar(a, R - 52);
|
|
115
|
+
ticks.push(
|
|
116
|
+
<text
|
|
117
|
+
key={`l${k}`}
|
|
118
|
+
x={lx}
|
|
119
|
+
y={ly}
|
|
120
|
+
textAnchor="middle"
|
|
121
|
+
dominantBaseline="central"
|
|
122
|
+
fontFamily={FONT.sans}
|
|
123
|
+
fontSize={16}
|
|
124
|
+
fontWeight={500}
|
|
125
|
+
fill={red ? '#f87171' : '#ffffff'}
|
|
126
|
+
fillOpacity={(red ? 0.7 : 0.38 + 0.4 * lit) * on}
|
|
127
|
+
style={{ fontVariantNumeric: 'tabular-nums' }}
|
|
128
|
+
>
|
|
129
|
+
{(k / 3) * 10}
|
|
130
|
+
</text>,
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// 锥形指针(局部坐标:沿 +x 指向 0° 方向,再整体 rotate)
|
|
136
|
+
const needle = (deg: number, opacity: number, key?: string) => {
|
|
137
|
+
const [tx, ty] = polar(135, R - 13);
|
|
138
|
+
const len = Math.hypot(tx - CX, ty - CY);
|
|
139
|
+
return (
|
|
140
|
+
<g key={key} transform={`rotate(${(135 + deg).toFixed(3)} ${CX} ${CY})`} opacity={opacity}>
|
|
141
|
+
<path
|
|
142
|
+
d={`M ${CX - 34} ${CY - 5} L ${CX + len} ${CY - 1.6} Q ${CX + len + 3.5} ${CY} ${CX + len} ${CY + 1.6} L ${CX - 34} ${CY + 5} Z`}
|
|
143
|
+
fill="url(#nssNeedle)"
|
|
144
|
+
/>
|
|
145
|
+
</g>
|
|
146
|
+
);
|
|
147
|
+
};
|
|
148
|
+
const dv = d - dPrev;
|
|
149
|
+
const ghosts = Math.abs(dv) > 4 ? [1, 2, 3, 4].map((g) => needle(d - (dv * g) / 4, 0.16 * (1 - g / 5), `gh${g}`)) : null;
|
|
150
|
+
|
|
151
|
+
return (
|
|
152
|
+
<div style={{ width: GA_W, height: 500, position: 'relative' }}>
|
|
153
|
+
<svg width={GA_W} height={420} style={{ overflow: 'visible' }}>
|
|
154
|
+
<defs>
|
|
155
|
+
<linearGradient id="nssNeedle" x1="0" y1="0" x2="1" y2="0">
|
|
156
|
+
<stop offset="0" stopColor="#b45309" />
|
|
157
|
+
<stop offset="0.55" stopColor={AMBER} />
|
|
158
|
+
<stop offset="1" stopColor={AMBER_HI} />
|
|
159
|
+
</linearGradient>
|
|
160
|
+
<radialGradient id="nssHub" cx="0.38" cy="0.32" r="0.7">
|
|
161
|
+
<stop offset="0" stopColor="#6b7080" />
|
|
162
|
+
<stop offset="1" stopColor="#1c1d23" />
|
|
163
|
+
</radialGradient>
|
|
164
|
+
<radialGradient id="nssFace" cx="0.5" cy="0.42" r="0.6">
|
|
165
|
+
<stop offset="0" stopColor="#ffffff" stopOpacity={0.05} />
|
|
166
|
+
<stop offset="1" stopColor="#ffffff" stopOpacity={0.01} />
|
|
167
|
+
</radialGradient>
|
|
168
|
+
<filter id="nssGlow" x="-50%" y="-50%" width="200%" height="200%">
|
|
169
|
+
<feGaussianBlur stdDeviation="6" />
|
|
170
|
+
</filter>
|
|
171
|
+
</defs>
|
|
172
|
+
{/* 表面:淡径向 + 发丝外环 */}
|
|
173
|
+
<circle cx={CX} cy={CY} r={R + 20} fill="url(#nssFace)" stroke="#ffffff" strokeOpacity={0.07 * on} strokeWidth={1} opacity={on} />
|
|
174
|
+
{/* 弧形轨道 + 红区 */}
|
|
175
|
+
<path d={arcPath(0, 270, R)} fill="none" stroke="#ffffff" strokeOpacity={0.07} strokeWidth={8} strokeLinecap="round" />
|
|
176
|
+
<path d={arcPath(225, 270, R)} fill="none" stroke={RED} strokeOpacity={0.45 * on} strokeWidth={8} strokeLinecap="round" />
|
|
177
|
+
{/* 跟随指针的琥珀亮弧(柔光层 + 实线层) */}
|
|
178
|
+
{d > 0.5 && (
|
|
179
|
+
<>
|
|
180
|
+
<path d={arcPath(0, d, R)} fill="none" stroke={AMBER} strokeOpacity={0.45} strokeWidth={10} strokeLinecap="round" filter="url(#nssGlow)" />
|
|
181
|
+
<path d={arcPath(0, d, R)} fill="none" stroke={AMBER} strokeWidth={8} strokeLinecap="round" />
|
|
182
|
+
</>
|
|
183
|
+
)}
|
|
184
|
+
{ticks}
|
|
185
|
+
{/* 指针:角向拖影 + 发光 + 本体 */}
|
|
186
|
+
{ghosts}
|
|
187
|
+
<g filter="url(#nssGlow)" opacity={0.55}>
|
|
188
|
+
{needle(d, 1)}
|
|
189
|
+
</g>
|
|
190
|
+
{needle(d, 1)}
|
|
191
|
+
<circle cx={CX} cy={CY} r={19} fill="url(#nssHub)" stroke="#ffffff" strokeOpacity={0.12} strokeWidth={1} />
|
|
192
|
+
<circle cx={CX} cy={CY} r={6} fill={AMBER} />
|
|
193
|
+
</svg>
|
|
194
|
+
{/* 落定同帧弹出的数值 + 指标名 */}
|
|
195
|
+
<div
|
|
196
|
+
style={{
|
|
197
|
+
position: 'absolute',
|
|
198
|
+
left: 0,
|
|
199
|
+
right: 0,
|
|
200
|
+
top: 340,
|
|
201
|
+
textAlign: 'center',
|
|
202
|
+
opacity: popOp,
|
|
203
|
+
transform: `scale(${mix(0.4, 1, pop).toFixed(4)})`,
|
|
204
|
+
fontFamily: FONT.sans,
|
|
205
|
+
whiteSpace: 'nowrap',
|
|
206
|
+
}}
|
|
207
|
+
>
|
|
208
|
+
<span style={{ fontWeight: 700, fontSize: 64, color: INK1, letterSpacing: tracking(64), fontVariantNumeric: 'tabular-nums' }}>{value}</span>
|
|
209
|
+
<span style={{ fontWeight: 600, fontSize: 30, color: INK3, marginLeft: 6 }}>%</span>
|
|
210
|
+
</div>
|
|
211
|
+
<div
|
|
212
|
+
style={{
|
|
213
|
+
position: 'absolute',
|
|
214
|
+
left: 0,
|
|
215
|
+
right: 0,
|
|
216
|
+
top: 424,
|
|
217
|
+
textAlign: 'center',
|
|
218
|
+
opacity: nameOp,
|
|
219
|
+
transform: `translateY(${mix(6, 0, nameOp)}px)`,
|
|
220
|
+
fontFamily: FONT.sans,
|
|
221
|
+
fontSize: 22,
|
|
222
|
+
fontWeight: 600,
|
|
223
|
+
letterSpacing: tracking(22, true),
|
|
224
|
+
textTransform: 'uppercase',
|
|
225
|
+
color: INK3,
|
|
226
|
+
}}
|
|
227
|
+
>
|
|
228
|
+
{name}
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
);
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export const NeedleSweepSelftest: React.FC = () => {
|
|
235
|
+
const frame = useCurrentFrame();
|
|
236
|
+
const inP = ramp(frame, 0, 12, EASE.snappy);
|
|
237
|
+
const done = ramp(frame, 60, 8, EASE.out); // 全部落定后状态切换
|
|
238
|
+
const pulse = 0.5 + 0.5 * Math.cos((frame / 14) * Math.PI);
|
|
239
|
+
return (
|
|
240
|
+
<AbsoluteFill style={{ background: '#0c0d11', overflow: 'hidden', fontFamily: FONT.sans }}>
|
|
241
|
+
<Backdrop tone="dark" light={{ x: 0.5, y: 0.25 }} grain={0} />
|
|
242
|
+
<div
|
|
243
|
+
style={{
|
|
244
|
+
position: 'absolute',
|
|
245
|
+
left: CARD_X,
|
|
246
|
+
top: CARD_Y,
|
|
247
|
+
width: CARD_W,
|
|
248
|
+
height: CARD_H,
|
|
249
|
+
background: 'linear-gradient(180deg, #1a1c22 0%, #141519 100%)',
|
|
250
|
+
border: '1px solid rgba(255,255,255,0.07)',
|
|
251
|
+
borderRadius: 26,
|
|
252
|
+
boxSizing: 'border-box',
|
|
253
|
+
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.06), ${softShadow(40, { color: '#000000', strength: 2.2 })}`,
|
|
254
|
+
opacity: inP,
|
|
255
|
+
transform: `translateY(${mix(18, 0, inP).toFixed(2)}px)`,
|
|
256
|
+
}}
|
|
257
|
+
>
|
|
258
|
+
{/* 卡头:标题 + 自检状态胶囊 */}
|
|
259
|
+
<ShotcraftMark size={62} tone="dark" style={{ position: 'absolute', left: 40, top: 30 }} />
|
|
260
|
+
<div style={{ position: 'absolute', left: 122, top: 36 }}>
|
|
261
|
+
<div style={{ fontSize: 32, fontWeight: 650, color: INK1, letterSpacing: tracking(32) }}>Render node health</div>
|
|
262
|
+
<div style={{ marginTop: 7, fontSize: 19, fontWeight: 500, color: INK3 }}>
|
|
263
|
+
<span style={{ fontFamily: BRAND.font, fontWeight: 600, color: '#a3a8b4' }}>{BRAND.name}</span> · render-node-02 · 3 sensors
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
<div
|
|
267
|
+
style={{
|
|
268
|
+
position: 'absolute',
|
|
269
|
+
right: 44,
|
|
270
|
+
top: 42,
|
|
271
|
+
height: 40,
|
|
272
|
+
padding: '0 16px 0 13px',
|
|
273
|
+
display: 'flex',
|
|
274
|
+
alignItems: 'center',
|
|
275
|
+
gap: 10,
|
|
276
|
+
borderRadius: 20,
|
|
277
|
+
background: done > 0.5 ? 'rgba(52,211,153,0.10)' : 'rgba(245,158,11,0.10)',
|
|
278
|
+
border: `1px solid ${done > 0.5 ? 'rgba(52,211,153,0.25)' : 'rgba(245,158,11,0.25)'}`,
|
|
279
|
+
fontSize: 18,
|
|
280
|
+
fontWeight: 600,
|
|
281
|
+
color: done > 0.5 ? '#6ee7b7' : '#fbbf24',
|
|
282
|
+
whiteSpace: 'nowrap',
|
|
283
|
+
}}
|
|
284
|
+
>
|
|
285
|
+
<span
|
|
286
|
+
style={{
|
|
287
|
+
width: 9,
|
|
288
|
+
height: 9,
|
|
289
|
+
borderRadius: 5,
|
|
290
|
+
background: done > 0.5 ? '#34d399' : AMBER,
|
|
291
|
+
opacity: done > 0.5 ? 1 : 0.45 + 0.55 * pulse,
|
|
292
|
+
}}
|
|
293
|
+
/>
|
|
294
|
+
{done > 0.5 ? 'Ready to render' : 'Running self-test…'}
|
|
295
|
+
</div>
|
|
296
|
+
{/* 分隔发丝线 */}
|
|
297
|
+
<div style={{ position: 'absolute', left: 44, right: 44, top: 122, height: 1, background: 'rgba(255,255,255,0.06)' }} />
|
|
298
|
+
<div style={{ position: 'absolute', left: 0, top: 136, display: 'flex' }}>
|
|
299
|
+
{GAUGES.map((g, i) => (
|
|
300
|
+
<Gauge key={i} start={g.start} target={g.target} name={g.name} />
|
|
301
|
+
))}
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
<Grain opacity={0.07} blend="soft-light" />
|
|
305
|
+
</AbsoluteFill>
|
|
306
|
+
);
|
|
307
|
+
};
|
package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/TapeScrollFixedPointer.tsx
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
// tape-scroll-fixed-pointer —— 滚带定针(世界动、针不动:数值大小 = 看得见的位移距离)
|
|
2
|
+
//
|
|
3
|
+
// 第二轮重设计(瓷白精密仪器 · 航电速度带语法):
|
|
4
|
+
// - look = porcelain(冷白 + 钴蓝)。主角是一条贯穿全画高、上下渐隐出画的竖向刻度带(每 10 一刻、每 50 一大刻 +
|
|
5
|
+
// 64px 数字),钴蓝读数窗 + 指针缺口钉死在画面中线:窗里是 128px 白色读数,刻度带从窗后滚过。
|
|
6
|
+
// 不再是小盒子里的刻度尺——带子本身就是画面的"世界"。
|
|
7
|
+
// - 叙事:慢爬顶到旧上限(虚线 "Old limit"(140k) 横在窗口正上方,读数被压在 122 停住)→ 升级生效,
|
|
8
|
+
// 旧上限线断开淡出 → 预备回拉一下 → 刻度带冲刺(峰值 ~100px/f,按速度纵向运动模糊)→ 冲过 444 →
|
|
9
|
+
// 弹簧刹车回摆到 416 → 落定 420,新上限标记(钴蓝三角 bug)恰好停进指针。
|
|
10
|
+
// - 左侧排版:品牌眉题(video-shotcraft · frames / hour)+ 124px 标题 "Throughput",落定后第二行 "tripled." 钴蓝升起
|
|
11
|
+
// (结论晚于数据到),再弹出 "▲ 200%" 胶囊 + "140k → 420k" 等宽小结。
|
|
12
|
+
//
|
|
13
|
+
// 时间表(30fps,共 150f):
|
|
14
|
+
// 0–14 预备:舞台、刻度带停在 60、标题第一行升起
|
|
15
|
+
// 10–48 慢爬 60→122(swift:起步加速、贴近上限时减速——"顶住了",上限线正好压在读数窗上沿)
|
|
16
|
+
// 48–56 停在上限下;52f 旧上限线断开淡出(升级生效)
|
|
17
|
+
// 56–61 预备:回拉 122→117(anticip)
|
|
18
|
+
// 61–83 冲刺 117→444(22f,bezier .55,0,.25,1),刻度带按速度纵向模糊
|
|
19
|
+
// 83–110 弹簧刹车:444→416→420(~16% 一次可见回摆),110f 后锁死常数
|
|
20
|
+
// 96–124 余波:"tripled." 升起(98f)、胶囊弹出(108f)、小结淡入(114f)
|
|
21
|
+
// 110–150 hold:整体极缓推近 1.0→1.025,尾帧是完整的结论海报
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { AbsoluteFill, spring, useCurrentFrame } from 'remotion';
|
|
24
|
+
import { EASE, FONT, SpeedBlur, bezier, mix, ramp, velocity } from '../../_fixtures/Polish';
|
|
25
|
+
import { LOOKS, Stage, TextReveal, alpha, type } from '../../_fixtures/Look';
|
|
26
|
+
import { BRAND } from '../../_fixtures/Brand';
|
|
27
|
+
|
|
28
|
+
export const TAPE_SCROLL_FIXED_POINTER_DURATION = 150;
|
|
29
|
+
|
|
30
|
+
const L = LOOKS.porcelain;
|
|
31
|
+
const PXU = 5; // px / 单位:每 10 单位一刻 = 50px
|
|
32
|
+
const CY = 540; // 指针中线(屏幕 y)
|
|
33
|
+
const TAPE_X = 1000; // 刻度带左缘
|
|
34
|
+
const TAPE_W = 520;
|
|
35
|
+
const TICK_R = TAPE_X + TAPE_W - 40; // 刻度右端(向左伸)
|
|
36
|
+
const NUM_R = TAPE_X + 310; // 数字右对齐线
|
|
37
|
+
const WIN_X = TAPE_X - 30; // 读数窗
|
|
38
|
+
const WIN_W = 400;
|
|
39
|
+
const WIN_H = 150;
|
|
40
|
+
const OLD_LIMIT = 140; // 旧上限 140k ×3 = 新上限 420k(▲200%)
|
|
41
|
+
const NEW_LIMIT = 420;
|
|
42
|
+
|
|
43
|
+
const SPRINT = bezier(0.55, 0, 0.25, 1); // 冲刺:猛加速、长刹车
|
|
44
|
+
// 回摆弹簧:444 → 420,回摆到 416(超调 4/24 ≈ 17%)→ 反算阻尼
|
|
45
|
+
const SET_STIFF = 140;
|
|
46
|
+
const SET_DAMP = (() => {
|
|
47
|
+
const lp = Math.log(4 / 24);
|
|
48
|
+
return 2 * (-lp / Math.sqrt(Math.PI * Math.PI + lp * lp)) * Math.sqrt(SET_STIFF);
|
|
49
|
+
})();
|
|
50
|
+
|
|
51
|
+
// 读数时间线(纯帧函数,全部钳位)
|
|
52
|
+
const valueAt = (f: number): number => {
|
|
53
|
+
if (f <= 10) return 60;
|
|
54
|
+
if (f <= 48) return mix(60, 122, ramp(f, 10, 38, EASE.swift));
|
|
55
|
+
if (f <= 56) return 122;
|
|
56
|
+
if (f <= 61) return mix(122, 117, ramp(f, 56, 5, EASE.smooth));
|
|
57
|
+
if (f <= 83) return mix(117, 444, SPRINT((f - 61) / 22));
|
|
58
|
+
if (f >= 110) return NEW_LIMIT;
|
|
59
|
+
return mix(444, NEW_LIMIT, spring({ frame: f - 83, fps: 30, config: { stiffness: SET_STIFF, damping: SET_DAMP, mass: 1 } }));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const TapeScrollFixedPointer: React.FC = () => {
|
|
63
|
+
const frame = useCurrentFrame();
|
|
64
|
+
const v = valueAt(frame);
|
|
65
|
+
const vy = velocity((f) => valueAt(f) * PXU, frame); // 刻度带速度(px/帧)
|
|
66
|
+
const speed = Math.abs(vy);
|
|
67
|
+
const yOf = (u: number) => CY + (v - u) * PXU; // 单位 u 的屏幕 y(大数在上)
|
|
68
|
+
|
|
69
|
+
// 刻度(只画视野内的)
|
|
70
|
+
const ticks: React.ReactNode[] = [];
|
|
71
|
+
const uMin = Math.floor((v - 130) / 10) * 10;
|
|
72
|
+
for (let u = Math.max(0, uMin); u <= v + 130; u += 10) {
|
|
73
|
+
const y = yOf(u);
|
|
74
|
+
const major = u % 50 === 0;
|
|
75
|
+
ticks.push(
|
|
76
|
+
<div key={`t${u}`} style={{
|
|
77
|
+
position: 'absolute', left: TICK_R - (major ? 150 : 70), top: y - (major ? 2 : 1), width: major ? 150 : 70, height: major ? 4 : 2,
|
|
78
|
+
borderRadius: 2, background: major ? L.ink : alpha(L.ink, 0.32),
|
|
79
|
+
}} />,
|
|
80
|
+
);
|
|
81
|
+
if (major) {
|
|
82
|
+
// 数字滑到读数窗背后前淡出(不从窗沿露出半截)
|
|
83
|
+
const near = Math.min(1, Math.max(0, (Math.abs(y - CY) - WIN_H / 2 - 36) / 30));
|
|
84
|
+
ticks.push(
|
|
85
|
+
<div key={`n${u}`} style={{ opacity: near,
|
|
86
|
+
position: 'absolute', left: NUM_R - 260, width: 260, top: y - 40, height: 80, lineHeight: '80px', textAlign: 'right',
|
|
87
|
+
...type(64, 600), letterSpacing: '-0.03em', color: alpha(L.ink, 0.82),
|
|
88
|
+
}}>{u}</div>,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// 旧上限线:52f 断开淡出(两半各自向外滑开)
|
|
94
|
+
const brk = ramp(frame, 52, 14, EASE.out);
|
|
95
|
+
const oldY = yOf(OLD_LIMIT);
|
|
96
|
+
// 新上限 bug:随带滚动,落定后 bug 与指针重合时亮起
|
|
97
|
+
const newY = yOf(NEW_LIMIT);
|
|
98
|
+
const locked = ramp(frame, 104, 10, EASE.out);
|
|
99
|
+
|
|
100
|
+
const head = ramp(frame, 0, 20, EASE.snappy);
|
|
101
|
+
const push = 1 + 0.025 * ramp(frame, 90, 60, EASE.smooth);
|
|
102
|
+
const readBlur = Math.min(6, speed * 0.06);
|
|
103
|
+
const chip = ramp(frame, 108, 14, EASE.overshoot);
|
|
104
|
+
const recap = ramp(frame, 114, 16, EASE.out);
|
|
105
|
+
const glowK = Math.min(1, speed / 60); // 冲刺时读数窗的钴蓝外发光
|
|
106
|
+
|
|
107
|
+
return (
|
|
108
|
+
<AbsoluteFill style={{ fontFamily: FONT.sans, overflow: 'hidden' }}>
|
|
109
|
+
<Stage look={L} keyLight={{ x: 0.68, y: 0.3 }} fill={null} />
|
|
110
|
+
<div style={{ position: 'absolute', inset: 0, transform: `scale(${push.toFixed(4)})`, transformOrigin: '62% 50%' }}>
|
|
111
|
+
{/* ── 世界层:刻度带(整体在动)── */}
|
|
112
|
+
<div style={{
|
|
113
|
+
position: 'absolute', left: TAPE_X, top: 0, width: TAPE_W, height: 1080,
|
|
114
|
+
WebkitMaskImage: 'linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%)',
|
|
115
|
+
maskImage: 'linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%)',
|
|
116
|
+
}}>
|
|
117
|
+
{/* 带面:微渐变白 + 左右发丝线 */}
|
|
118
|
+
<div style={{
|
|
119
|
+
position: 'absolute', inset: 0, background: `linear-gradient(90deg, ${alpha('#ffffff', 0.35)} 0%, ${alpha('#ffffff', 0.85)} 60%, ${alpha('#ffffff', 0.6)} 100%)`,
|
|
120
|
+
borderLeft: `1px solid ${L.line}`, borderRight: `1px solid ${L.line}`,
|
|
121
|
+
}} />
|
|
122
|
+
</div>
|
|
123
|
+
<div style={{
|
|
124
|
+
position: 'absolute', inset: 0,
|
|
125
|
+
WebkitMaskImage: 'linear-gradient(180deg, transparent 2%, #000 24%, #000 76%, transparent 98%)',
|
|
126
|
+
maskImage: 'linear-gradient(180deg, transparent 2%, #000 24%, #000 76%, transparent 98%)',
|
|
127
|
+
}}>
|
|
128
|
+
<SpeedBlur vx={0} vy={vy} amount={0.12} max={12}>
|
|
129
|
+
{ticks}
|
|
130
|
+
{/* 旧上限:虚线 + 标签,升级后断开 */}
|
|
131
|
+
{brk < 1 && oldY > -40 && oldY < 1120 && (
|
|
132
|
+
<>
|
|
133
|
+
<div style={{
|
|
134
|
+
position: 'absolute', left: TAPE_X - 10 - brk * 80, top: oldY - 1.5, width: TAPE_W / 2 + 10, height: 3, opacity: 1 - brk,
|
|
135
|
+
backgroundImage: `repeating-linear-gradient(90deg, ${L.ink2} 0 14px, transparent 14px 24px)`,
|
|
136
|
+
}} />
|
|
137
|
+
<div style={{
|
|
138
|
+
position: 'absolute', left: TAPE_X + TAPE_W / 2 + brk * 80, top: oldY - 1.5, width: TAPE_W / 2 - 16, height: 3, opacity: 1 - brk,
|
|
139
|
+
backgroundImage: `repeating-linear-gradient(90deg, ${L.ink2} 0 14px, transparent 14px 24px)`,
|
|
140
|
+
}} />
|
|
141
|
+
<div style={{
|
|
142
|
+
position: 'absolute', left: TAPE_X + TAPE_W + 28, top: oldY - 22, opacity: 1 - brk, whiteSpace: 'nowrap',
|
|
143
|
+
...type(32, 600, { caps: true }), letterSpacing: '0.1em', color: L.ink2,
|
|
144
|
+
}}>Old limit</div>
|
|
145
|
+
</>
|
|
146
|
+
)}
|
|
147
|
+
{/* 新上限 bug:钴蓝三角,贴在刻度右缘 */}
|
|
148
|
+
{newY > -60 && newY < 1140 && (
|
|
149
|
+
<>
|
|
150
|
+
<svg width={44} height={56} style={{ position: 'absolute', left: TICK_R + 6, top: newY - 28, overflow: 'visible' }}>
|
|
151
|
+
<path d="M 4 28 L 40 6 L 40 50 Z" fill={L.accent} stroke={L.accent} strokeWidth={6} strokeLinejoin="round" />
|
|
152
|
+
</svg>
|
|
153
|
+
<div style={{
|
|
154
|
+
position: 'absolute', left: TAPE_X + TAPE_W + 28, top: newY - 22, whiteSpace: 'nowrap',
|
|
155
|
+
...type(32, 700, { caps: true }), letterSpacing: '0.1em', color: L.accent,
|
|
156
|
+
opacity: 0.55 + 0.45 * locked,
|
|
157
|
+
}}>New limit</div>
|
|
158
|
+
</>
|
|
159
|
+
)}
|
|
160
|
+
</SpeedBlur>
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
{/* ── 固定层:读数窗 + 指针缺口(针不动)── */}
|
|
164
|
+
<div style={{
|
|
165
|
+
position: 'absolute', left: WIN_X, top: CY - WIN_H / 2, width: WIN_W, height: WIN_H, borderRadius: 26,
|
|
166
|
+
background: `linear-gradient(180deg, ${L.accent} 0%, #2448d8 100%)`,
|
|
167
|
+
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.35), 0 24px 50px -16px ${alpha(L.shadow, 0.45)}, 0 4px 10px ${alpha(L.shadow, 0.16)}, 0 0 ${(30 + 50 * glowK).toFixed(1)}px ${alpha(L.accent, 0.18 + 0.32 * glowK)}`,
|
|
168
|
+
overflow: 'hidden', opacity: head,
|
|
169
|
+
}}>
|
|
170
|
+
{/* 窗内读数(冲刺时按速度纵向模糊) */}
|
|
171
|
+
<div style={{
|
|
172
|
+
position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, display: 'flex', alignItems: 'baseline', justifyContent: 'flex-end',
|
|
173
|
+
paddingRight: 48, paddingTop: 10, boxSizing: 'border-box', color: L.onAccent, whiteSpace: 'nowrap',
|
|
174
|
+
}}>
|
|
175
|
+
<span style={{ ...type(128, 700), letterSpacing: '-0.04em', lineHeight: '140px', filter: readBlur > 0.4 ? `blur(${readBlur.toFixed(2)}px)` : undefined }}>
|
|
176
|
+
{Math.round(v)}
|
|
177
|
+
</span>
|
|
178
|
+
<span style={{ ...type(48, 600), marginLeft: 10, opacity: 0.75 }}>k</span>
|
|
179
|
+
</div>
|
|
180
|
+
{/* 窗面上沿高光 */}
|
|
181
|
+
<div style={{ position: 'absolute', left: 0, right: 0, top: 0, height: '45%', background: 'linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0))' }} />
|
|
182
|
+
</div>
|
|
183
|
+
{/* 指针:读数窗右侧伸向刻度的钴蓝细针 + 三角 */}
|
|
184
|
+
<div style={{ position: 'absolute', left: WIN_X + WIN_W - 2, top: CY - 2, width: TICK_R - (WIN_X + WIN_W) + 2, height: 4, background: L.accent, opacity: head, borderRadius: 2 }} />
|
|
185
|
+
<svg width={40} height={44} style={{ position: 'absolute', left: WIN_X + WIN_W - 6, top: CY - 22, overflow: 'visible', opacity: head }}>
|
|
186
|
+
<path d="M 2 4 L 30 22 L 2 40 Z" fill={L.accent} stroke={L.accent} strokeWidth={4} strokeLinejoin="round" />
|
|
187
|
+
</svg>
|
|
188
|
+
</div>
|
|
189
|
+
|
|
190
|
+
{/* ── 左侧排版 ── */}
|
|
191
|
+
<div style={{ position: 'absolute', left: 150, top: 300, width: 760 }}>
|
|
192
|
+
<div style={{ ...type(26, 650, { caps: true }), letterSpacing: '0.24em', color: L.accent, opacity: head, display: 'flex', alignItems: 'center', gap: 16 }}>
|
|
193
|
+
<span style={{ width: 36, height: 3, background: L.accent, borderRadius: 2 }} />
|
|
194
|
+
<span><span style={{ fontFamily: BRAND.font, fontWeight: 700, textTransform: 'none', letterSpacing: '0.03em' }}>{BRAND.name}</span> · frames / hour</span>
|
|
195
|
+
</div>
|
|
196
|
+
<div style={{ marginTop: 34, ...type(124, 750), color: L.ink }}>
|
|
197
|
+
<TextReveal text="Throughput" by="word" variant="rise" start={2} each={18} gap={5} />
|
|
198
|
+
</div>
|
|
199
|
+
<div style={{ ...type(124, 750), color: L.accent, height: 130 }}>
|
|
200
|
+
<TextReveal text="tripled." by="char" variant="rise" start={98} each={14} gap={1.6} />
|
|
201
|
+
</div>
|
|
202
|
+
<div style={{ marginTop: 40, height: 60, display: 'flex', alignItems: 'center', gap: 24 }}>
|
|
203
|
+
<div style={{
|
|
204
|
+
height: 60, padding: '0 24px', borderRadius: 30, display: 'flex', alignItems: 'center', background: alpha(L.accent2, 0.12),
|
|
205
|
+
border: `1px solid ${alpha(L.accent2, 0.35)}`, color: '#00866f', ...type(34, 700), whiteSpace: 'nowrap',
|
|
206
|
+
opacity: Math.min(1, chip * 1.5), transform: `scale(${mix(0.6, 1, chip).toFixed(4)})`, transformOrigin: '0% 50%',
|
|
207
|
+
}}>▲ 200%</div>
|
|
208
|
+
<div style={{ ...type(36, 500, { mono: true }), color: L.ink2, opacity: recap, transform: `translateX(${mix(-16, 0, recap).toFixed(2)}px)`, whiteSpace: 'nowrap' }}>
|
|
209
|
+
140k → 420k
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
</AbsoluteFill>
|
|
214
|
+
);
|
|
215
|
+
};
|