dsh-drawai 0.3.4 → 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 +5075 -181
- 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,18 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>ATELIER LINEA — one line</title>
|
|
6
|
+
<link rel="stylesheet" href="/assets/fonts/fonts.css">
|
|
7
|
+
<style>
|
|
8
|
+
html, body { margin: 0; background: #0B1320; overflow: hidden; }
|
|
9
|
+
canvas { display: block; }
|
|
10
|
+
#svg { position: absolute; left: -10px; top: -10px; width: 1px; height: 1px; overflow: hidden; }
|
|
11
|
+
</style>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<canvas id="c" width="1920" height="1080"></canvas>
|
|
15
|
+
<svg id="svg" xmlns="http://www.w3.org/2000/svg"></svg>
|
|
16
|
+
<script type="module" src="/demos/02-line-art/film.js"></script>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Dumps path-derived timing (tip speed, corner times, piece times) → out/timing.json for audio.py.
|
|
2
|
+
// Run from $ROOT: node demos/02-line-art/tools/dump_timing.mjs
|
|
3
|
+
import http from 'node:http'; import fs from 'node:fs'; import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import puppeteer from 'puppeteer-core';
|
|
6
|
+
const DEMO = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
7
|
+
const ROOT = path.resolve(DEMO, '../..');
|
|
8
|
+
const MIME = { '.html': 'text/html', '.js': 'text/javascript', '.mjs': 'text/javascript', '.json': 'application/json', '.css': 'text/css', '.png': 'image/png', '.ttf': 'font/ttf', '.otf': 'font/otf', '.woff2': 'font/woff2', '.jpg': 'image/jpeg' };
|
|
9
|
+
const srv = http.createServer((req, res) => {
|
|
10
|
+
const p = path.join(ROOT, decodeURIComponent(new URL(req.url, 'http://x').pathname));
|
|
11
|
+
if (!fs.existsSync(p) || fs.statSync(p).isDirectory()) { res.writeHead(404); return res.end(); }
|
|
12
|
+
res.writeHead(200, { 'Content-Type': MIME[path.extname(p).toLowerCase()] || 'application/octet-stream' }); fs.createReadStream(p).pipe(res);
|
|
13
|
+
});
|
|
14
|
+
await new Promise((r) => srv.listen(0, '127.0.0.1', r));
|
|
15
|
+
const browser = await puppeteer.launch({ executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', headless: true, args: ['--use-angle=metal'] });
|
|
16
|
+
const page = await browser.newPage(); await page.setViewport({ width: 1920, height: 1080 });
|
|
17
|
+
page.on('pageerror', (e) => console.log('[page error]', e.message));
|
|
18
|
+
await page.goto(`http://127.0.0.1:${srv.address().port}/demos/02-line-art/index.html`, { waitUntil: 'load' });
|
|
19
|
+
await page.waitForFunction('window.__ready === true', { timeout: 120000 });
|
|
20
|
+
const data = await page.evaluate(() => window.__timing());
|
|
21
|
+
fs.mkdirSync(path.join(DEMO, 'out'), { recursive: true });
|
|
22
|
+
fs.writeFileSync(path.join(DEMO, 'out/timing.json'), JSON.stringify(data));
|
|
23
|
+
console.log('pieces', JSON.stringify(data.pieces));
|
|
24
|
+
console.log('corners', data.corners.length, data.corners.map((c) => c.t.toFixed(2) + ':' + c.piece).join(' '));
|
|
25
|
+
const sp = data.speed; console.log('speed px/s max', Math.max(...sp).toFixed(0), 'at', (sp.indexOf(Math.max(...sp)) / 120).toFixed(2));
|
|
26
|
+
await browser.close(); srv.close();
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fps": 30,
|
|
3
|
+
"duration": 10.0,
|
|
4
|
+
"bpm": 120,
|
|
5
|
+
"key": "D",
|
|
6
|
+
"rings": [
|
|
7
|
+
0.25,
|
|
8
|
+
0.5,
|
|
9
|
+
0.75,
|
|
10
|
+
1.0,
|
|
11
|
+
1.25,
|
|
12
|
+
1.5
|
|
13
|
+
],
|
|
14
|
+
"soil": 1.62,
|
|
15
|
+
"roads": 1.75,
|
|
16
|
+
"houses": {
|
|
17
|
+
"0,10": 2.25,
|
|
18
|
+
"1,11": 2.25,
|
|
19
|
+
"2,10": 2.4375,
|
|
20
|
+
"3,11": 2.4375,
|
|
21
|
+
"4,10": 2.6875,
|
|
22
|
+
"5,11": 2.6875,
|
|
23
|
+
"6,10": 2.875,
|
|
24
|
+
"7,11": 2.875,
|
|
25
|
+
"8,10": 3.25,
|
|
26
|
+
"9,11": 3.25,
|
|
27
|
+
"10,9": 3.75,
|
|
28
|
+
"10,7": 4.1875,
|
|
29
|
+
"11,8": 4.1875,
|
|
30
|
+
"11,6": 4.4375
|
|
31
|
+
},
|
|
32
|
+
"turbines": [
|
|
33
|
+
2.25,
|
|
34
|
+
2.5,
|
|
35
|
+
2.75,
|
|
36
|
+
3.0
|
|
37
|
+
],
|
|
38
|
+
"rail": 2.35,
|
|
39
|
+
"downtown": {
|
|
40
|
+
"I": 2.875,
|
|
41
|
+
"F": 3.125,
|
|
42
|
+
"J": 3.125,
|
|
43
|
+
"E": 3.375,
|
|
44
|
+
"K": 3.375,
|
|
45
|
+
"A": 3.625,
|
|
46
|
+
"L": 3.625,
|
|
47
|
+
"B": 3.875,
|
|
48
|
+
"H": 3.875,
|
|
49
|
+
"C": 4.125,
|
|
50
|
+
"G": 4.125,
|
|
51
|
+
"D": 4.375
|
|
52
|
+
},
|
|
53
|
+
"roof_lag": 0.375,
|
|
54
|
+
"tower": {
|
|
55
|
+
"base": 4.625,
|
|
56
|
+
"seg1": 4.75,
|
|
57
|
+
"seg2": 5.0,
|
|
58
|
+
"seg3": 5.25,
|
|
59
|
+
"antenna": 5.5,
|
|
60
|
+
"ring": 5.75
|
|
61
|
+
},
|
|
62
|
+
"cars": 4.625,
|
|
63
|
+
"train": 4.875,
|
|
64
|
+
"drop": 6.0,
|
|
65
|
+
"pulse_speed": 15.0,
|
|
66
|
+
"drones": [
|
|
67
|
+
6.25,
|
|
68
|
+
6.5,
|
|
69
|
+
6.75,
|
|
70
|
+
7.0
|
|
71
|
+
],
|
|
72
|
+
"callouts": [
|
|
73
|
+
6.5,
|
|
74
|
+
6.75,
|
|
75
|
+
7.0
|
|
76
|
+
],
|
|
77
|
+
"pullback": [
|
|
78
|
+
7.75,
|
|
79
|
+
8.75
|
|
80
|
+
],
|
|
81
|
+
"whoosh": 8.2,
|
|
82
|
+
"plate": 8.5,
|
|
83
|
+
"letters_start": 8.5625,
|
|
84
|
+
"letters_step": 0.0625,
|
|
85
|
+
"final": 9.0,
|
|
86
|
+
"end": 10.0,
|
|
87
|
+
"sweep": [
|
|
88
|
+
[
|
|
89
|
+
-8.5,
|
|
90
|
+
2.0
|
|
91
|
+
],
|
|
92
|
+
[
|
|
93
|
+
-2.83,
|
|
94
|
+
2.875
|
|
95
|
+
],
|
|
96
|
+
[
|
|
97
|
+
2.83,
|
|
98
|
+
4.375
|
|
99
|
+
],
|
|
100
|
+
[
|
|
101
|
+
8.5,
|
|
102
|
+
4.8
|
|
103
|
+
]
|
|
104
|
+
],
|
|
105
|
+
"blueprint": [
|
|
106
|
+
0.0,
|
|
107
|
+
0.9
|
|
108
|
+
]
|
|
109
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>ISOPOLIS — 03-isometric</title>
|
|
6
|
+
<link rel="stylesheet" href="/assets/fonts/fonts.css">
|
|
7
|
+
<style>
|
|
8
|
+
html, body { margin: 0; padding: 0; background: #DAD3F7; overflow: hidden; }
|
|
9
|
+
#stage { position: relative; width: 1920px; height: 1080px; overflow: hidden; }
|
|
10
|
+
#c { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: block; }
|
|
11
|
+
#ui { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
|
|
12
|
+
.tag { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
|
|
13
|
+
</style>
|
|
14
|
+
<script type="importmap">{"imports":{
|
|
15
|
+
"three":"/node_modules/three/build/three.module.js","three/addons/":"/node_modules/three/examples/jsm/",
|
|
16
|
+
"opentype":"/node_modules/opentype.js/dist/opentype.mjs"}}</script>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="stage">
|
|
20
|
+
<canvas id="c" width="1920" height="1080"></canvas>
|
|
21
|
+
<div id="ui"></div>
|
|
22
|
+
</div>
|
|
23
|
+
<script type="module" src="/demos/03-isometric/js/main.js"></script>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Pure, closed-form animation helpers (every value is a function of t only).
|
|
2
|
+
export const clamp = (x, a = 0, b = 1) => Math.min(b, Math.max(a, x));
|
|
3
|
+
export const lerp = (a, b, t) => a + (b - a) * t;
|
|
4
|
+
export const inv = (a, b, x) => clamp((x - a) / (b - a));
|
|
5
|
+
export const smooth = (t) => { t = clamp(t); return t * t * (3 - 2 * t); };
|
|
6
|
+
export const smoother = (t) => { t = clamp(t); return t * t * t * (t * (t * 6 - 15) + 10); };
|
|
7
|
+
export const easeInCubic = (t) => { t = clamp(t); return t * t * t; };
|
|
8
|
+
export const easeOutCubic = (t) => { t = clamp(t); return 1 - Math.pow(1 - t, 3); };
|
|
9
|
+
export const easeInOutCubic = (t) => { t = clamp(t); return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2; };
|
|
10
|
+
export const easeOutQuart = (t) => { t = clamp(t); return 1 - Math.pow(1 - t, 4); };
|
|
11
|
+
export const easeInOutQuart = (t) => { t = clamp(t); return t < 0.5 ? 8 * t ** 4 : 1 - Math.pow(-2 * t + 2, 4) / 2; };
|
|
12
|
+
export const easeOutExpo = (t) => { t = clamp(t); return t >= 1 ? 1 : 1 - Math.pow(2, -10 * t); };
|
|
13
|
+
export const easeInOutExpo = (t) => {
|
|
14
|
+
t = clamp(t);
|
|
15
|
+
if (t <= 0) return 0; if (t >= 1) return 1;
|
|
16
|
+
return t < 0.5 ? Math.pow(2, 20 * t - 10) / 2 : (2 - Math.pow(2, -20 * t + 10)) / 2;
|
|
17
|
+
};
|
|
18
|
+
export const easeInOutSine = (t) => { t = clamp(t); return -(Math.cos(Math.PI * t) - 1) / 2; };
|
|
19
|
+
export const easeOutBack = (t, s = 1.70158) => { t = clamp(t); const c3 = s + 1; return 1 + c3 * Math.pow(t - 1, 3) + s * Math.pow(t - 1, 2); };
|
|
20
|
+
|
|
21
|
+
// Damped spring 0 -> 1, starting at tau = 0 with initial velocity v0 (units / s).
|
|
22
|
+
export function spring(tau, w = 20, z = 0.55, v0 = 0) {
|
|
23
|
+
if (tau <= 0) return 0;
|
|
24
|
+
const wd = w * Math.sqrt(1 - z * z);
|
|
25
|
+
const B = (v0 - z * w) / wd;
|
|
26
|
+
return 1 + Math.exp(-z * w * tau) * (-Math.cos(wd * tau) + B * Math.sin(wd * tau));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Tile style drop: returns {y, rot, sy, sxz} for time tau relative to the landing moment.
|
|
30
|
+
// fall: duration of the fall, h0: start height, rot0: start rotation (rad).
|
|
31
|
+
export function drop(tau, fall = 0.3, h0 = 1.6, rot0 = 1.7, bounce = 0.07) {
|
|
32
|
+
if (tau < -fall) return { y: h0, rot: rot0, sy: 1, sxz: 1, vis: 0 };
|
|
33
|
+
if (tau < 0) {
|
|
34
|
+
const u = (tau + fall) / fall; // 0..1
|
|
35
|
+
const y = h0 * (1 - u * u); // gravity-like acceleration
|
|
36
|
+
const rot = rot0 * Math.pow(1 - u, 2.2); // rotation settles into flat right at contact
|
|
37
|
+
const st = 1 + 0.06 * u * u; // slight stretch while falling fast
|
|
38
|
+
return { y, rot, sy: st, sxz: 1 / Math.sqrt(st), vis: 1 };
|
|
39
|
+
}
|
|
40
|
+
// after contact: squash then two micro bounces
|
|
41
|
+
const b1 = 0.16, b2 = 0.1;
|
|
42
|
+
let y = 0;
|
|
43
|
+
if (tau < b1) y = bounce * Math.sin(Math.PI * tau / b1);
|
|
44
|
+
else if (tau < b1 + b2) y = bounce * 0.3 * Math.sin(Math.PI * (tau - b1) / b2);
|
|
45
|
+
const sq = Math.exp(-tau / 0.05);
|
|
46
|
+
const sy = 1 - 0.3 * sq * Math.cos(tau * 40);
|
|
47
|
+
return { y, rot: 0, sy, sxz: 1 + 0.12 * sq * Math.cos(tau * 40), vis: 1 };
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Scale pop: 0 -> overshoot -> 1
|
|
51
|
+
export function pop(tau, dur = 0.35, over = 1.9) {
|
|
52
|
+
if (tau <= 0) return 0;
|
|
53
|
+
return spring(tau, 22, 0.42, over * 10);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// seeded PRNG (mulberry32)
|
|
57
|
+
export function rng(seed) {
|
|
58
|
+
let a = seed >>> 0;
|
|
59
|
+
return () => {
|
|
60
|
+
a |= 0; a = (a + 0x6D2B79F5) | 0;
|
|
61
|
+
let t = Math.imul(a ^ (a >>> 15), 1 | a);
|
|
62
|
+
t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
|
|
63
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export const hash = (n) => { const s = Math.sin(n * 127.1 + 311.7) * 43758.5453; return s - Math.floor(s); };
|
|
67
|
+
|
|
68
|
+
// Piecewise keyframe track: keys = [[t, v, ease?], ...]; ease applies to segment ending at that key.
|
|
69
|
+
export function track(keys, t) {
|
|
70
|
+
if (t <= keys[0][0]) return keys[0][1];
|
|
71
|
+
for (let i = 1; i < keys.length; i++) {
|
|
72
|
+
const [t1, v1, e] = keys[i];
|
|
73
|
+
const [t0, v0] = keys[i - 1];
|
|
74
|
+
if (t <= t1) {
|
|
75
|
+
const u = (t - t0) / (t1 - t0);
|
|
76
|
+
const f = e || smoother;
|
|
77
|
+
if (Array.isArray(v0)) return v0.map((a, k) => a + (v1[k] - a) * f(u));
|
|
78
|
+
return v0 + (v1 - v0) * f(u);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return keys[keys.length - 1][1];
|
|
82
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { Accumulator } from './render.js';
|
|
3
|
+
import { buildWorld } from './world.js';
|
|
4
|
+
import { buildTitle } from './title.js';
|
|
5
|
+
import { buildTitle5 } from './title5.js';
|
|
6
|
+
import { buildTags } from './ui.js';
|
|
7
|
+
import { applyNight } from './night5.js';
|
|
8
|
+
import * as A from './anim.js';
|
|
9
|
+
|
|
10
|
+
const q = new URLSearchParams(location.search);
|
|
11
|
+
const SPP = +(q.get('spp') || 16);
|
|
12
|
+
// reel v5 (?v5=1): style-name title 「等轴 2.5D」 + link dot (js/title5.js). Without the flag nothing below changes.
|
|
13
|
+
const V5 = q.get('v5') === '1';
|
|
14
|
+
const NOLINK = new Set((q.get('nolink') || '').split(',').filter(Boolean));
|
|
15
|
+
// reel v5.1: night palette (js/night5.js) under v5; day5=1 brings back the v5.0 day look for comparison
|
|
16
|
+
const NIGHT = V5 && q.get('day5') !== '1';
|
|
17
|
+
window.DEMO = { width: 1920, height: 1080, fps: 30, duration: 10, motionBlur: { samples: 1, shutter: 0.5 } };
|
|
18
|
+
const SHUTTER = 0.5, FPS = 30;
|
|
19
|
+
|
|
20
|
+
const cues = await (await fetch('/demos/03-isometric/cues.json')).json();
|
|
21
|
+
|
|
22
|
+
// fonts (canvas decal + DOM tags need them resolved first)
|
|
23
|
+
await Promise.all([
|
|
24
|
+
document.fonts.load("700 100px 'HarmonyOS Sans SC'", '让城市自己生长清洁能源平均通勤数据吞吐'),
|
|
25
|
+
document.fonts.load("500 100px 'HarmonyOS Sans SC'", '让城市自己生长清洁能源平均通勤数据吞吐'),
|
|
26
|
+
document.fonts.load("500 100px 'JetBrains Mono'", 'CITY OS 0123456789%'),
|
|
27
|
+
document.fonts.load("800 100px 'Unbounded'", 'ISOPOLIS 0123456789.'),
|
|
28
|
+
]);
|
|
29
|
+
await document.fonts.ready;
|
|
30
|
+
|
|
31
|
+
// ------------------------------------------------------------------ camera choreography
|
|
32
|
+
// Hermite (auto-bezier) keys per channel: [t, value, 'e' = ease (zero slope)]
|
|
33
|
+
function hermite(keys, t) {
|
|
34
|
+
if (t <= keys[0][0]) return keys[0][1];
|
|
35
|
+
const n = keys.length;
|
|
36
|
+
if (t >= keys[n - 1][0]) return keys[n - 1][1];
|
|
37
|
+
let i = 0; while (t > keys[i + 1][0]) i++;
|
|
38
|
+
const slope = (k) => {
|
|
39
|
+
if (keys[k][2] === 'e' || k === 0 || k === n - 1) return 0;
|
|
40
|
+
return (keys[k + 1][1] - keys[k - 1][1]) / (keys[k + 1][0] - keys[k - 1][0]);
|
|
41
|
+
};
|
|
42
|
+
const [t0, v0] = keys[i], [t1, v1] = keys[i + 1];
|
|
43
|
+
const h = t1 - t0, u = (t - t0) / h;
|
|
44
|
+
const m0 = slope(i) * h, m1 = slope(i + 1) * h;
|
|
45
|
+
const u2 = u * u, u3 = u2 * u;
|
|
46
|
+
return (2 * u3 - 3 * u2 + 1) * v0 + (u3 - 2 * u2 + u) * m0 + (-2 * u3 + 3 * u2) * v1 + (u3 - u2) * m1;
|
|
47
|
+
}
|
|
48
|
+
const CAM = {
|
|
49
|
+
x: [[0, 0.0], [1.5, 0.1], [2.3, -3.2], [4.4, 3.0], [5.2, 0.45], [5.9, 0.3], [7.7, 2.2, 'e'], [8.8, -5.75, 'e'], [10, -5.6]],
|
|
50
|
+
y: [[0, 0.12], [1.5, 0.25], [2.3, 0.75], [4.4, 1.05], [5.2, 1.75], [5.9, 2.1], [7.7, 1.85, 'e'], [8.8, -0.6, 'e'], [10, -0.56]],
|
|
51
|
+
z: [[0, 3.1], [1.5, 2.1], [2.3, 1.86], [4.4, 1.9], [5.2, 1.76], [5.9, 1.72], [7.7, 1.8, 'e'], [8.8, 1.0, 'e'], [10, 1.016]],
|
|
52
|
+
};
|
|
53
|
+
if (V5) { // v5: the pull-back lands 0.25 s earlier and frames the island top-right so the standing title fits lower-left
|
|
54
|
+
const E = (q.get('cam5') || '-6.4,-1.0,0.95').split(',').map(Number);
|
|
55
|
+
CAM.x.splice(-2, 2, [8.55, E[0] + 0.12, 'e'], [10, E[0] - 0.05]);
|
|
56
|
+
CAM.y.splice(-2, 2, [8.55, E[1] - 0.02, 'e'], [10, E[1] + 0.02]);
|
|
57
|
+
CAM.z.splice(-2, 2, [8.55, E[2] - 0.01, 'e'], [10, E[2] + 0.005]);
|
|
58
|
+
}
|
|
59
|
+
function camKeys(t) {
|
|
60
|
+
if (q.get('cam')) { const [x, y, z] = q.get('cam').split(',').map(Number); return { x, y, zoom: z }; }
|
|
61
|
+
let zoom = hermite(CAM.z, t);
|
|
62
|
+
// hero punch at the drop
|
|
63
|
+
const u = t - cues.drop;
|
|
64
|
+
if (u > -0.2) {
|
|
65
|
+
// anticipation: ease 2 % out 5.90-5.967, hold, then punch 1.00 -> 1.06 in 2 frames and settle over 12 (easeOutExpo)
|
|
66
|
+
const ig = cues.drop - 0.015;
|
|
67
|
+
const pre = t < ig ? -0.02 * A.smooth(A.inv(cues.drop - 0.1, cues.drop - 0.033, t)) : 0;
|
|
68
|
+
const v = t - ig;
|
|
69
|
+
const kick = v >= 0 ? (v < 0.067 ? 0.06 * (1 - (1 - v / 0.067) ** 2) : 0.06 * (1 - A.easeOutExpo((v - 0.067) / 0.4))) : 0;
|
|
70
|
+
zoom *= 1 + pre + kick;
|
|
71
|
+
}
|
|
72
|
+
return { x: hermite(CAM.x, t), y: hermite(CAM.y, t), zoom };
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ------------------------------------------------------------------ renderer
|
|
76
|
+
const canvas = document.getElementById('c');
|
|
77
|
+
const renderer = new THREE.WebGLRenderer({ canvas, antialias: false, preserveDrawingBuffer: true, alpha: false, powerPreference: 'high-performance' });
|
|
78
|
+
const dpr = window.devicePixelRatio || 1;
|
|
79
|
+
renderer.setPixelRatio(dpr);
|
|
80
|
+
renderer.setSize(1920, 1080, false);
|
|
81
|
+
renderer.shadowMap.enabled = true;
|
|
82
|
+
renderer.shadowMap.type = THREE.PCFShadowMap;
|
|
83
|
+
renderer.shadowMap.autoUpdate = false;
|
|
84
|
+
const glx = renderer.getContext();
|
|
85
|
+
if (!glx.getExtension('EXT_float_blend')) console.warn('EXT_float_blend missing');
|
|
86
|
+
const W = Math.round(1920 * dpr), H = Math.round(1080 * dpr);
|
|
87
|
+
|
|
88
|
+
// screen-plane helpers (world units along the iso camera's right / up vectors)
|
|
89
|
+
const R_ = new THREE.Vector3(1, 0, -1).normalize(), U_ = new THREE.Vector3(-1, 2, -1).normalize(), D_ = new THREE.Vector3(1, 1, 1).normalize();
|
|
90
|
+
const FLOOR = -7.5;
|
|
91
|
+
function floorAt(sx, sy) { // world point on the floor plane that projects to screen-plane coords (sx, sy)
|
|
92
|
+
const lam = (FLOOR - sy * U_.y) / D_.y;
|
|
93
|
+
return new THREE.Vector3().addScaledVector(R_, sx).addScaledVector(U_, sy).addScaledVector(D_, lam);
|
|
94
|
+
}
|
|
95
|
+
// clouds authored by their position in the END frame (px), drifting in screen-x; fg parallax = 1.25 x city
|
|
96
|
+
const camEnd = camKeys(9.5);
|
|
97
|
+
const pxToUnits = (px, py, z) => [(px - 960) / (60 * z), -(py - 540) / (60 * z)];
|
|
98
|
+
const cloudEnd = [
|
|
99
|
+
{ px: 250, py: 175, s: 1.25, v: 0.16 }, { px: 1690, py: 95, s: 0.8, v: 0.13 }, { px: 2500, py: 620, s: 1.3, v: 0.14 },
|
|
100
|
+
];
|
|
101
|
+
const clouds = cloudEnd.map((c) => {
|
|
102
|
+
const [ux, uy] = pxToUnits(c.px, c.py, camEnd.zoom);
|
|
103
|
+
// screen pos rel. centre = s - 1.25 * target -> s = pos + 1.25 * target - drift
|
|
104
|
+
return { sx: ux + 1.25 * camEnd.x - 9.5 * c.v, sy: uy + 1.25 * camEnd.y, s: c.s, v: c.v };
|
|
105
|
+
});
|
|
106
|
+
// bg floating cubes authored by END-frame px + world height (bg parallax 0.6 -> screen = s - 0.75 * target)
|
|
107
|
+
const cubeEnd = [
|
|
108
|
+
[620, 312, -1.0, 0.62, '#B7ECD6'], [483, 468, 1.5, 0.38, '#A8D2FF'], [1045, 262, 1.0, 0.72, '#D9D1FA'], [1775, 712, 0.5, 0.72, '#FFC4AC'],
|
|
109
|
+
[1862, 492, -2.0, 0.4, '#B7ECD6'], [880, 118, 2.0, 0.45, '#FFFFFF'], [1560, 1000, -2.5, 0.5, '#D9D1FA'], [95, 400, -1.5, 0.5, '#FFFFFF'],
|
|
110
|
+
[-300, 300, 0, 0.6, '#FFC4AC'], [2300, 200, 0, 0.6, '#A8D2FF'],
|
|
111
|
+
];
|
|
112
|
+
const bgCubes = [].map(([px, py, y, sz, col]) => {
|
|
113
|
+
const [ux, uy] = pxToUnits(px, py, camEnd.zoom);
|
|
114
|
+
const sx = ux + 0.75 * camEnd.x, sy = uy + 0.75 * camEnd.y;
|
|
115
|
+
const lam = (y - sy * U_.y) / D_.y;
|
|
116
|
+
const p = new THREE.Vector3().addScaledVector(R_, sx).addScaledVector(U_, sy).addScaledVector(D_, lam);
|
|
117
|
+
return [p.x, p.y, p.z, sz, col];
|
|
118
|
+
});
|
|
119
|
+
const world = buildWorld(renderer, cues, { camKeys, clouds, bgCubes });
|
|
120
|
+
let title5 = null, t5o = null;
|
|
121
|
+
if (!V5) {
|
|
122
|
+
// title: centre of the wordmark block at end-frame px (bg layer parallax 0.6 -> screen = anchor - 0.75 * target)
|
|
123
|
+
const tpx = q.get('ta') ? q.get('ta').split(',').map(Number) : [402, 705];
|
|
124
|
+
const [tux, tuy] = pxToUnits(tpx[0], tpx[1], camEnd.zoom);
|
|
125
|
+
const tAnchor = floorAt(tux + 0.75 * camEnd.x, tuy + 0.75 * camEnd.y);
|
|
126
|
+
const tA = [tAnchor.x, tAnchor.z];
|
|
127
|
+
const title = await buildTitle(world, cues, {
|
|
128
|
+
floorY: FLOOR, size: 2.2, depth: 0.36, bevel: 0.035, text: 'ISOPOLIS', tracking: 0.035,
|
|
129
|
+
anchor: new THREE.Vector3(tA[0], FLOOR, tA[1]), catcher: [17, 8],
|
|
130
|
+
tagline: '让城市自己生长', tagPx: 250, mono: 'CITY OS · 144 TILES · ONLINE', monoPx: +(q.get('mono') || 165), monoGap: 1.75,
|
|
131
|
+
decalCW: 4096, decalCH: 720, decalW: 12.8, decalX: 0.1, decalGap: 0.55,
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
world.bgU.uRipC.value.set(Math.round(tA[0]), Math.round(tA[1])); world.bgU.uRipT.value = cues.final - 0.08;
|
|
135
|
+
{ // round 2: the ping reaches the island's floor shadow (centre (0.9, -0.9) in floor coords, half-size ~5.6) at 9.6 s
|
|
136
|
+
const D = Math.max(Math.abs(Math.round(tA[0]) - 0.9), Math.abs(Math.round(tA[1]) + 0.9)) - 5.6;
|
|
137
|
+
world.bgU.uRipD.value = D; world.bgU.uRipV.value = D / (9.6 - (cues.final - 0.08));
|
|
138
|
+
}
|
|
139
|
+
} else {
|
|
140
|
+
// v5 title: floor point under the middle of the baseline, authored at end-frame px (bg parallax: s = px - 0.75 * target)
|
|
141
|
+
const tp = (q.get('ta5') || '520,770').split(',').map(Number);
|
|
142
|
+
const [ux, uy] = pxToUnits(tp[0], tp[1], camEnd.zoom);
|
|
143
|
+
const an = floorAt(ux + 0.75 * camEnd.x, uy + 0.75 * camEnd.y);
|
|
144
|
+
title5 = await buildTitle5(world, cues, t5o = {
|
|
145
|
+
floorY: FLOOR, anchor: new THREE.Vector3(an.x, FLOOR, an.z),
|
|
146
|
+
sizeC: +(q.get('sc5') || 4.45), sizeL: +(q.get('sl5') || 4.3), gap: 0.55, tracking: 0.02, depth: +(q.get('td5') || 0.55), bevel: 0.05, side: '#' + (q.get('ts5') || '3A3590'), face: '#' + (q.get('tf5') || 'FBFAFF'),
|
|
147
|
+
t0: 8.06, step: 0.0625,
|
|
148
|
+
plinthH: 1.0, plinthD: 0.9, plinthM: 0.5, plinthCol: '#FBFAFF', plinthT: 7.98,
|
|
149
|
+
en: 'ISOMETRIC', enPx: 200, enT: 8.5,
|
|
150
|
+
dotR0: 0.24, dotScale: 1.15, dotCol: '#FF8E74', dotFill: '#F48A75', dotGrad: ['#FB9E8F', '#D27B6D'], nolink: NOLINK, // fill/grad = measured rendered pixels
|
|
151
|
+
dot: { in0: 4.32, land: 4.66, h0: 10.0, hop0: 8.02, hop1: 8.4375, arc: 3.0 },
|
|
152
|
+
...(NIGHT ? { // v5.1 night: an illuminated sign (warm lit faces, navy returns), navy plinth, cyan print, glowing ball
|
|
153
|
+
face: '#' + (q.get('tf5') || 'FFF2D6'), faceEmit: '#' + (q.get('te5') || 'FFE6BC'), faceEI: +(q.get('tei5') || 0.78),
|
|
154
|
+
side: '#' + (q.get('ts5') || '3A40A0'), plinthCol: '#' + (q.get('tp5') || '3A3F8A'), enCol: '#7DF6F7', catcherCol: '#05061C', catcherOp: 0.5,
|
|
155
|
+
dotEmit: '#FF5A3C', dotHalo: '#FF6A4A', dotHaloA: 0.3, dotGlow0: +(q.get('dg5') || 0.7), dotGlowK: 0.45, dotLooks: [[6.0, '#D85B62', ['#EF6562', '#AE4758']], [8.02, '#F2868A', ['#F9B0B2', '#EE7672']], [99, '#F4998F', ['#F69A92', '#F39384']]],
|
|
156
|
+
} : {}),
|
|
157
|
+
});
|
|
158
|
+
// the cyan floor ping now starts where the dot lands as the period, and reaches the island's floor shadow at ~9.4
|
|
159
|
+
title5.post(9.5); world.bgGroup.updateWorldMatrix(true, true);
|
|
160
|
+
const sl = title5.root.localToWorld(new THREE.Vector3(title5.dotSlot.x, 0, 0)).sub(world.bgGroup.position);
|
|
161
|
+
world.bgU.uRipC.value.set(Math.round(sl.x), Math.round(sl.z)); world.bgU.uRipT.value = 8.4375;
|
|
162
|
+
const D = Math.max(Math.abs(Math.round(sl.x) - 0.9), Math.abs(Math.round(sl.z) + 0.9)) - 5.6;
|
|
163
|
+
world.bgU.uRipD.value = D; world.bgU.uRipV.value = D / (9.4 - 8.4375);
|
|
164
|
+
}
|
|
165
|
+
const island = world.byId;
|
|
166
|
+
// Round 1 (P5): leaders are world polylines [stub, run] on true iso axes so every card flies into the lavender void:
|
|
167
|
+
// COMMUTE -> right-face card above the back-left edge, ENERGY + DATA -> left-face cards stacked above the back-right edge.
|
|
168
|
+
// Nothing covers the CORE or a downtown block (lengths solved for the 7.2 s camera, margins checked 6.5-7.7).
|
|
169
|
+
const V3 = (x, y, z) => new THREE.Vector3(x, y, z);
|
|
170
|
+
const tags = buildTags(world, cues, [
|
|
171
|
+
{ t: cues.callouts[0], tOut: 7.62, label: '清洁能源', en: 'ENERGY', value: 98.6, unit: '%', fmt: (v) => v.toFixed(1), color: '#4CC795',
|
|
172
|
+
anchor: V3(2.5, 2.3, -5.4), path: [V3(0, 0.5, 0), V3(0, 0, -1.8)], face: 'left',
|
|
173
|
+
spark: [0.12, 0.22, 0.18, 0.36, 0.33, 0.52, 0.5, 0.7, 0.78, 0.96] },
|
|
174
|
+
{ t: cues.callouts[1], tOut: 7.66, label: '平均通勤', en: 'COMMUTE', value: 12, unit: 'min', fmt: (v) => Math.round(v).toString(), color: '#FF8E74',
|
|
175
|
+
anchor: V3(-3.5, 0.1, 3.5), path: [V3(0, 1.9, 0), V3(-1.64, 0, 0)], face: 'right', // round 2: +0.84 Y (clears the back-left tiles; the jury's -1.5 X pushed it off-frame)
|
|
176
|
+
spark: [0.92, 0.84, 0.88, 0.66, 0.7, 0.5, 0.46, 0.3, 0.26, 0.14] },
|
|
177
|
+
{ t: cues.callouts[2], tOut: 7.7, label: '数据吞吐', en: 'DATA', value: 1.28, unit: 'PB/s', fmt: (v) => v.toFixed(2), color: '#2FC9D6',
|
|
178
|
+
anchor: V3(2.0, 3.75, -2.0), path: [V3(0, 0.46, 0), V3(6.51, 0, 0)], face: 'left', gap: V3(2.5, 0, -5.5), // round 2: hidden-line break behind the T80 mast
|
|
179
|
+
spark: [0.1, 0.3, 0.2, 0.44, 0.38, 0.62, 0.55, 0.8, 0.72, 0.98] },
|
|
180
|
+
]);
|
|
181
|
+
|
|
182
|
+
const acc = new Accumulator(renderer, W, H);
|
|
183
|
+
const night = NIGHT ? applyNight(world, acc, cues, q, { skip: (() => { const s = new Set(); title5.root.traverse((o) => s.add(o)); s.add(title5.ball); return s; })() }) : null;
|
|
184
|
+
if (night) t5o.colA = night.columnA;
|
|
185
|
+
const NEXP = +(q.get('nexp') || 1);
|
|
186
|
+
|
|
187
|
+
world.hopPatch(acc.normalMat);
|
|
188
|
+
window.renderAt = async (t) => {
|
|
189
|
+
// grade: -0.15 EV dip in the anticipation, +0.3 EV lift on the hit frame (decays in ~2 frames)
|
|
190
|
+
const ig = cues.drop - 0.015;
|
|
191
|
+
let ev = t < ig ? -0.15 * A.smooth(A.inv(cues.drop - 0.1, cues.drop - 0.033, t)) : 0.3 * Math.exp(-Math.max(0, t - cues.drop) * 30);
|
|
192
|
+
acc.finalMat.uniforms.uExposure.value = Math.pow(2, ev) * (night ? NEXP : 1);
|
|
193
|
+
// round 2: AO +40 % in the clay phase, back to the hero value as the wave passes
|
|
194
|
+
acc.aoMat.uniforms.uStrength.value = 1.05 * (1 + 0.4 * (1 - A.smooth(A.inv(ig, ig + 0.4, t))));
|
|
195
|
+
acc.frame(world.scene, world.camera, SPP, (i, n, sub) => {
|
|
196
|
+
const ts = Math.max(0, t + (sub.frac - 0.5) * SHUTTER / FPS);
|
|
197
|
+
const tc = Math.max(0, t + (sub.frac - 0.5) * 0.2 / FPS); // camera: ~72 deg shutter -> crisp slides, objects keep 180 deg
|
|
198
|
+
const tg = Math.max(0, t + (sub.frac - 0.5) * 0.25 / FPS); // growth (scale) channels: 90 deg shutter
|
|
199
|
+
world.update(ts, sub, tc, tg);
|
|
200
|
+
if (title5) title5.post(ts);
|
|
201
|
+
if (night) night.post(ts);
|
|
202
|
+
}, t);
|
|
203
|
+
// DOM layer at the exact frame time
|
|
204
|
+
world.update(t);
|
|
205
|
+
if (title5) title5.post(t);
|
|
206
|
+
if (night) night.post(t);
|
|
207
|
+
tags(t, world.camera, world.camera.zoom);
|
|
208
|
+
glx.finish();
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
// warm-up: compile everything once
|
|
212
|
+
world.update(9.5);
|
|
213
|
+
renderer.compile(world.scene, world.camera);
|
|
214
|
+
await window.renderAt(6.8);
|
|
215
|
+
await window.renderAt(9.5);
|
|
216
|
+
if (title5) { // reel v5 link elements, a pure function of t (re-poses the scene for t; the next renderAt re-poses anyway)
|
|
217
|
+
window.linkAt = (t) => { world.update(t); title5.post(t); if (night) night.post(t); return title5.links(t); };
|
|
218
|
+
}
|
|
219
|
+
window.__ready = true;
|