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,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fps": 30,
|
|
3
|
+
"bpm": 150,
|
|
4
|
+
"beat": 0.4,
|
|
5
|
+
"key": "D major",
|
|
6
|
+
"sections": {
|
|
7
|
+
"pour": 0.0,
|
|
8
|
+
"rain": 0.4,
|
|
9
|
+
"fuse": 2.0,
|
|
10
|
+
"leap": 3.2,
|
|
11
|
+
"flood": 4.0,
|
|
12
|
+
"immersed": 4.42,
|
|
13
|
+
"reveal": 4.85,
|
|
14
|
+
"gather": 5.75,
|
|
15
|
+
"gap": 6.2,
|
|
16
|
+
"drop": 6.4,
|
|
17
|
+
"glint": 7.1,
|
|
18
|
+
"drip": 7.6,
|
|
19
|
+
"ripple": 8.4,
|
|
20
|
+
"end": 10.0
|
|
21
|
+
},
|
|
22
|
+
"pour_snap": 0.167,
|
|
23
|
+
"landings": [
|
|
24
|
+
{
|
|
25
|
+
"id": "P1",
|
|
26
|
+
"t": 0.4,
|
|
27
|
+
"x": 640,
|
|
28
|
+
"size": 1.0,
|
|
29
|
+
"u": 0.05
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "P2",
|
|
33
|
+
"t": 0.8,
|
|
34
|
+
"x": 1250,
|
|
35
|
+
"size": 0.85,
|
|
36
|
+
"u": 0.62
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "P3",
|
|
40
|
+
"t": 1.2,
|
|
41
|
+
"x": 405,
|
|
42
|
+
"size": 0.8,
|
|
43
|
+
"u": 0.95
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "P4",
|
|
47
|
+
"t": 1.6,
|
|
48
|
+
"x": 960,
|
|
49
|
+
"size": 1.35,
|
|
50
|
+
"u": 0.36
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"merges": [
|
|
54
|
+
2.0,
|
|
55
|
+
2.4,
|
|
56
|
+
2.8
|
|
57
|
+
],
|
|
58
|
+
"leap": 3.2,
|
|
59
|
+
"thread_snap": 3.433,
|
|
60
|
+
"apex": 3.6,
|
|
61
|
+
"flood_in": 4.035,
|
|
62
|
+
"flood_full": 4.42,
|
|
63
|
+
"reveal_start": 4.55,
|
|
64
|
+
"reveal_end": 5.35,
|
|
65
|
+
"logo_snap": 6.4,
|
|
66
|
+
"letter_bridge_snap": 6.417,
|
|
67
|
+
"glint": 7.2,
|
|
68
|
+
"drip_snap": 8.567,
|
|
69
|
+
"drip_land": 8.4,
|
|
70
|
+
"tagline_start": 8.42,
|
|
71
|
+
"hop_takeoffs": [
|
|
72
|
+
1.66,
|
|
73
|
+
2.06,
|
|
74
|
+
2.46
|
|
75
|
+
],
|
|
76
|
+
"sheets_in": [
|
|
77
|
+
4.035,
|
|
78
|
+
4.105,
|
|
79
|
+
4.175
|
|
80
|
+
],
|
|
81
|
+
"sheets_out": [
|
|
82
|
+
4.55,
|
|
83
|
+
4.62,
|
|
84
|
+
4.69
|
|
85
|
+
],
|
|
86
|
+
"impact": 4.0,
|
|
87
|
+
"flood_hits_in": [
|
|
88
|
+
4.133,
|
|
89
|
+
4.267,
|
|
90
|
+
4.333
|
|
91
|
+
],
|
|
92
|
+
"flood_hits_out": [
|
|
93
|
+
4.867,
|
|
94
|
+
4.967,
|
|
95
|
+
5.033
|
|
96
|
+
],
|
|
97
|
+
"_note_flood_hits": "round 1: sheetCross (front/back edge crossing frame centre) from out/cues_derived.json, snapped to frames",
|
|
98
|
+
"outro": 8.8,
|
|
99
|
+
"_note_r2": "round 2: hero drip lands one beat earlier (8.40) so the flush-right tagline is complete by ~8.95; necks snap 6.417/6.45/6.483; music outro stays 8.8"
|
|
100
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>07 · 液态流动 Liquid Motion — drop</title>
|
|
6
|
+
<link rel="stylesheet" href="/assets/fonts/fonts.css">
|
|
7
|
+
<style>
|
|
8
|
+
@font-face { font-family: 'Fraunces Liquid'; src: url('/demos/07-liquid/assets/Fraunces-Liquid-72-900-Soft.ttf') format('truetype'); font-weight: 1 1000; font-display: block; }
|
|
9
|
+
html, body { margin: 0; background: #000; overflow: hidden; width: 1920px; height: 1080px; }
|
|
10
|
+
canvas#c { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
|
|
11
|
+
</style>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<canvas id="c" width="1920" height="1080"></canvas>
|
|
15
|
+
<script type="module">
|
|
16
|
+
import { createEngine } from './js/engine.js';
|
|
17
|
+
import { buildLetterSDF } from './js/textsdf.js';
|
|
18
|
+
import { lookdev } from './js/lookdev.js';
|
|
19
|
+
import { createFilm } from './js/scene.js';
|
|
20
|
+
import { createType } from './js/type.js';
|
|
21
|
+
import { linkElements } from './js/links.js';
|
|
22
|
+
|
|
23
|
+
const W = 1920, H = 1080, FPS = 30;
|
|
24
|
+
window.DEMO = { width: W, height: H, fps: FPS, duration: 10, motionBlur: { samples: 1, shutter: 0.5 } };
|
|
25
|
+
const qs = new URLSearchParams(location.search);
|
|
26
|
+
const LOOK = qs.has('look') ? +qs.get('look') : null;
|
|
27
|
+
// reel v5 (?v5=1): the hero word becomes the style name 「液态流动」 (same liquid SDF engine), window.linkAt(t), ?nolink=ids
|
|
28
|
+
const V5 = qs.get('v5') === '1';
|
|
29
|
+
const NOLINK = new Set(V5 ? (qs.get('nolink') || '').split(',').map((x) => x.trim()).filter(Boolean) : []);
|
|
30
|
+
const V5WORD = { word: '液态流动', family: '"Resource Han Rounded"', weight: 900, size: 300, tracking: 40, pad: 170, sigma: 6 };
|
|
31
|
+
|
|
32
|
+
async function init() {
|
|
33
|
+
await document.fonts.load('900 100px "Fraunces Liquid"');
|
|
34
|
+
await document.fonts.load('400 40px "Instrument Serif"');
|
|
35
|
+
await document.fonts.load('italic 400 40px "Instrument Serif"');
|
|
36
|
+
await document.fonts.load('500 40px "Noto Serif SC"', '万物始于一滴');
|
|
37
|
+
await document.fonts.load('600 20px "Inter"');
|
|
38
|
+
if (V5) await document.fonts.load('900 300px "Resource Han Rounded"', V5WORD.word);
|
|
39
|
+
await document.fonts.ready;
|
|
40
|
+
const cues = await (await fetch('/demos/07-liquid/cues.json')).json();
|
|
41
|
+
const eng = V5 ? createEngine(document.getElementById('c'), W, H, { v5: true }) : createEngine(document.getElementById('c'), W, H);
|
|
42
|
+
// wordmark SDF
|
|
43
|
+
const sdf = V5 ? buildLetterSDF(V5WORD) : buildLetterSDF({ word: 'drop', family: '"Fraunces Liquid"', weight: 900, size: 400, tracking: 10, pad: 170, sigma: 10 });
|
|
44
|
+
eng.setSDF(sdf);
|
|
45
|
+
// place wordmark: centre of ink bbox at (960, 468)
|
|
46
|
+
let x0 = 1e9, y0 = 1e9, x1 = -1e9, y1 = -1e9;
|
|
47
|
+
for (const l of sdf.letters) { x0 = Math.min(x0, l.bbox[0]); y0 = Math.min(y0, l.bbox[1]); x1 = Math.max(x1, l.bbox[2]); y1 = Math.max(y1, l.bbox[3]); }
|
|
48
|
+
// optical centre: x-height band dominates → centre between ascender top and baseline, shifted
|
|
49
|
+
const offX = 960 - (x0 + x1) / 2, offY = V5 ? 470 - (y0 + y1) / 2 : 452 - (y0 + sdf.baseY) / 2; // v5: CJK ink box centred
|
|
50
|
+
const word = {
|
|
51
|
+
offX, offY, baseY: sdf.baseY + offY, bbox: [x0 + offX, y0 + offY, x1 + offX, y1 + offY],
|
|
52
|
+
letters: sdf.letters.map((l) => ({ ch: l.ch, px: l.pivot[0], py: l.pivot[1], sx0: l.pivot[0] + offX, sy0: l.pivot[1] + offY,
|
|
53
|
+
bbox: [l.bbox[0] + offX, l.bbox[1] + offY, l.bbox[2] + offX, l.bbox[3] + offY] })),
|
|
54
|
+
};
|
|
55
|
+
// query helpers on the letter SDFs (screen coords, rest pose)
|
|
56
|
+
word.sd = (i, x, y) => {
|
|
57
|
+
const tx = Math.round(x - offX), ty = Math.round(y - offY);
|
|
58
|
+
if (tx < 0 || ty < 0 || tx >= sdf.W || ty >= sdf.H) return 200;
|
|
59
|
+
return sdf.data[(ty * sdf.W + tx) * 4 + i];
|
|
60
|
+
};
|
|
61
|
+
word.bottomAt = (i, x) => { // lowest ink y in column x
|
|
62
|
+
for (let y = Math.round(word.letters[i].bbox[3]) + 4; y > word.letters[i].bbox[1]; y--) if (word.sd(i, x, y) < 0) return y;
|
|
63
|
+
return null;
|
|
64
|
+
};
|
|
65
|
+
if (V5) word.massY = (word.bbox[1] + word.bbox[3]) / 2; // v5: the bar sits on the glyphs' vertical centre
|
|
66
|
+
window.__word = word;
|
|
67
|
+
const film = createFilm(cues, word, { v5: V5 });
|
|
68
|
+
window.__stateAt = (t) => film(t);
|
|
69
|
+
const type = createType(W, H, cues, word, { v5: V5 });
|
|
70
|
+
// v5 link elements: everything tagged with a hidden id (plus its '~' accessories) is dropped from the render state;
|
|
71
|
+
// the shadow and the floor reflection come from the same field, so they go with it
|
|
72
|
+
const hid = (e) => e.lk && e.lk.some((id) => NOLINK.has(id.replace('~', '')));
|
|
73
|
+
const strip = (S) => {
|
|
74
|
+
if (!NOLINK.size) return S;
|
|
75
|
+
S.balls = S.balls.filter((b) => !hid(b)); S.segs = S.segs.filter((b) => !hid(b));
|
|
76
|
+
if (NOLINK.has('dot') && S.ripDot) S.rip = { ...S.rip, amp: 0 }; // the drip's floor ripple rings go with it
|
|
77
|
+
return S;
|
|
78
|
+
};
|
|
79
|
+
if (V5) window.linkAt = (t) => linkElements(film(t), word);
|
|
80
|
+
// adaptive in-page motion blur: sub-shutter samples per frame (shutter 0.5 = 180 deg), more on the fast ranges
|
|
81
|
+
const SHUT = 0.5, FAST = [[0.12, 0.3, 20], [0.33, 1.05, 24], [1.2, 1.3, 16], [1.55, 2.95, 20], [3.1, 3.55, 20], [3.85, 4.75, 24],
|
|
82
|
+
[4.9, 5.7, 20], [6.18, 6.8, 24], [8.5, 9.0, 20]];
|
|
83
|
+
const MBQ = qs.has('mb') ? +qs.get('mb') : null;
|
|
84
|
+
window.__samplesAt = (t) => { if (MBQ !== null) return MBQ; for (const [a, b, n] of FAST) if (t >= a && t <= b) return n; return 10; };
|
|
85
|
+
window.renderAt = async (t) => {
|
|
86
|
+
const N = LOOK !== null ? 1 : Math.max(1, window.__samplesAt(t));
|
|
87
|
+
const Ss = [];
|
|
88
|
+
for (let s = 0; s < N; s++) {
|
|
89
|
+
// round 1: shorter shutter on the macro P1 contact frames so the fall and the squash don't double-expose
|
|
90
|
+
const sh = t > 0.345 && t < 0.445 ? 0.2 : (t > 6.385 && t < 6.585 ? 0.25 : SHUT); // r2: crisp split on frames 192-197
|
|
91
|
+
const off = t > 0.39 && t < 0.41 ? 0.0 : -0.5; // contact frame: shutter opens AT contact -> the squash, no ghost egg
|
|
92
|
+
const ts = N > 1 ? Math.max(0, t + sh / FPS * ((s + 0.5) / N + off)) : t;
|
|
93
|
+
const S = LOOK !== null ? lookdev(ts, LOOK, word) : (V5 ? strip(film(ts)) : film(ts));
|
|
94
|
+
if (qs.has('dbg')) S.dbg = +qs.get('dbg');
|
|
95
|
+
S.frame = Math.round(t * FPS); S.mbw = N > 1 ? sh / N : 0; // shutter fraction between samples (edge blur)
|
|
96
|
+
Ss.push(S);
|
|
97
|
+
}
|
|
98
|
+
const Sc = N > 1 ? film(t) : (V5 ? film(t) : Ss[0]);
|
|
99
|
+
type.draw(t, Sc, LOOK);
|
|
100
|
+
Ss[Math.floor(N / 2)] = Object.assign(Ss[Math.floor(N / 2)], { frame: Math.round(t * FPS), bloom: Sc.bloom, flash: Sc.flash });
|
|
101
|
+
eng.render(Ss, type.canvas);
|
|
102
|
+
};
|
|
103
|
+
window.__ready = true;
|
|
104
|
+
}
|
|
105
|
+
init().catch((e) => { console.error(e.stack || String(e)); document.title = 'ERR'; });
|
|
106
|
+
</script>
|
|
107
|
+
</body>
|
|
108
|
+
</html>
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { VS, FS_SCENE, FS_BRIGHT, FS_POST } from './shaders.js';
|
|
2
|
+
import { toHalf } from './textsdf.js';
|
|
3
|
+
|
|
4
|
+
export const NB = 72, NS = 20;
|
|
5
|
+
|
|
6
|
+
function sh(gl, type, src) {
|
|
7
|
+
const s = gl.createShader(type); gl.shaderSource(s, src); gl.compileShader(s);
|
|
8
|
+
if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) {
|
|
9
|
+
const log = gl.getShaderInfoLog(s);
|
|
10
|
+
const lines = src.split('\n');
|
|
11
|
+
const m = /ERROR: 0:(\d+)/.exec(log);
|
|
12
|
+
const ctx = m ? lines.slice(Math.max(0, +m[1] - 3), +m[1] + 2).join('\n') : '';
|
|
13
|
+
throw new Error('shader: ' + log + '\n' + ctx);
|
|
14
|
+
}
|
|
15
|
+
return s;
|
|
16
|
+
}
|
|
17
|
+
function prog(gl, fs) {
|
|
18
|
+
const p = gl.createProgram();
|
|
19
|
+
gl.attachShader(p, sh(gl, gl.VERTEX_SHADER, VS)); gl.attachShader(p, sh(gl, gl.FRAGMENT_SHADER, fs));
|
|
20
|
+
gl.bindAttribLocation(p, 0, 'aPos'); gl.linkProgram(p);
|
|
21
|
+
if (!gl.getProgramParameter(p, gl.LINK_STATUS)) throw new Error('link: ' + gl.getProgramInfoLog(p));
|
|
22
|
+
const n = gl.getProgramParameter(p, gl.ACTIVE_UNIFORMS), u = {};
|
|
23
|
+
for (let i = 0; i < n; i++) { const info = gl.getActiveUniform(p, i); const name = info.name.replace(/\[0\]$/, ''); u[name] = gl.getUniformLocation(p, info.name); }
|
|
24
|
+
return { p, u };
|
|
25
|
+
}
|
|
26
|
+
function tex(gl, w, h, ifmt, fmt, type, filter, data = null, mips = false) {
|
|
27
|
+
const t = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, t);
|
|
28
|
+
gl.texImage2D(gl.TEXTURE_2D, 0, ifmt, w, h, 0, fmt, type, data);
|
|
29
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, mips ? gl.LINEAR_MIPMAP_LINEAR : filter);
|
|
30
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, filter);
|
|
31
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
34
|
+
function fbo(gl, t) { const f = gl.createFramebuffer(); gl.bindFramebuffer(gl.FRAMEBUFFER, f); gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, t, 0); return f; }
|
|
35
|
+
|
|
36
|
+
export function createEngine(canvas, W, H, opts = {}) {
|
|
37
|
+
const gl = canvas.getContext('webgl2', { preserveDrawingBuffer: true, antialias: false, alpha: false, premultipliedAlpha: false });
|
|
38
|
+
if (!gl) throw new Error('no webgl2');
|
|
39
|
+
if (!gl.getExtension('EXT_color_buffer_float')) throw new Error('no EXT_color_buffer_float');
|
|
40
|
+
gl.getExtension('OES_texture_float_linear');
|
|
41
|
+
const vb = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, vb);
|
|
42
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 3, -1, -1, 3]), gl.STATIC_DRAW);
|
|
43
|
+
gl.enableVertexAttribArray(0); gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);
|
|
44
|
+
|
|
45
|
+
// reel v5.1: the v5 grade (dark plum set, lifted jelly title) is compiled in with #define V5; the default shader source is untouched
|
|
46
|
+
const FSS = opts.v5 ? FS_SCENE.replace('precision highp float;\n', 'precision highp float;\n#define V5 1\n') : FS_SCENE;
|
|
47
|
+
const P = { scene: prog(gl, FSS), bright: prog(gl, FS_BRIGHT), post: prog(gl, FS_POST) };
|
|
48
|
+
const hdrT = tex(gl, W, H, gl.RGBA16F, gl.RGBA, gl.HALF_FLOAT, gl.LINEAR), hdrF = fbo(gl, hdrT);
|
|
49
|
+
const bw = W / 2, bh = H / 2;
|
|
50
|
+
const brT = tex(gl, bw, bh, gl.RGBA16F, gl.RGBA, gl.HALF_FLOAT, gl.LINEAR, null, true), brF = fbo(gl, brT);
|
|
51
|
+
gl.bindTexture(gl.TEXTURE_2D, brT); gl.generateMipmap(gl.TEXTURE_2D);
|
|
52
|
+
const typeT = tex(gl, W, H, gl.RGBA8, gl.RGBA, gl.UNSIGNED_BYTE, gl.LINEAR);
|
|
53
|
+
const backT = tex(gl, 4, 4, gl.RGBA8, gl.RGBA, gl.UNSIGNED_BYTE, gl.LINEAR);
|
|
54
|
+
let sdfT = null, sdfSize = [1, 1];
|
|
55
|
+
|
|
56
|
+
const bufB = new Float32Array(NB * 4), bufBX = new Float32Array(NB * 4);
|
|
57
|
+
const bufS = new Float32Array(NS * 4), bufSX = new Float32Array(NS * 4);
|
|
58
|
+
|
|
59
|
+
function setSDF(sdf) {
|
|
60
|
+
const h = toHalf(); const n = sdf.W * sdf.H * 4; const hd = new Uint16Array(n);
|
|
61
|
+
for (let i = 0; i < n; i++) hd[i] = h(sdf.data[i]);
|
|
62
|
+
sdfT = tex(gl, sdf.W, sdf.H, gl.RGBA16F, gl.RGBA, gl.HALF_FLOAT, gl.LINEAR, hd);
|
|
63
|
+
sdfSize = [sdf.W, sdf.H];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// In-page temporal supersampling: every sub-shutter state is rendered into the HDR target and averaged with
|
|
67
|
+
// constant-colour blending (pre-bloom, pre-grain), so fast highlights streak continuously instead of ghosting.
|
|
68
|
+
function render(Ss, typeCanvas) {
|
|
69
|
+
if (!Array.isArray(Ss)) Ss = [Ss];
|
|
70
|
+
const S = Ss[Math.floor(Ss.length / 2)];
|
|
71
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, hdrF); gl.viewport(0, 0, W, H);
|
|
72
|
+
gl.clearColor(0, 0, 0, 0); gl.clear(gl.COLOR_BUFFER_BIT);
|
|
73
|
+
gl.enable(gl.BLEND); gl.blendEquation(gl.FUNC_ADD); gl.blendFunc(gl.CONSTANT_COLOR, gl.ONE);
|
|
74
|
+
const w = 1 / Ss.length; gl.blendColor(w, w, w, w);
|
|
75
|
+
for (const Si of Ss) drawScene(Si);
|
|
76
|
+
gl.disable(gl.BLEND);
|
|
77
|
+
post(S, typeCanvas);
|
|
78
|
+
}
|
|
79
|
+
function drawScene(S) {
|
|
80
|
+
// ---------- scene ----------
|
|
81
|
+
const { p, u } = P.scene; gl.useProgram(p);
|
|
82
|
+
gl.uniform2f(u.uRes, W, H); gl.uniform1f(u.uT, S.t);
|
|
83
|
+
gl.uniform4f(u.uCam, S.cam.zoom, S.cam.px, S.cam.py, 0); gl.uniform2f(u.uCam2, S.cam.ox, S.cam.oy);
|
|
84
|
+
gl.uniform1f(u.uK, S.k); gl.uniform1i(u.uDbg, S.dbg || 0); gl.uniform2f(u.uSpot, S.spot ?? 1, S.halo || 0);
|
|
85
|
+
if (u.uV5) { const v = S.v5 || [0, 0, 0, 0], w = S.v5b || [0, 1, 0, 0]; gl.uniform4f(u.uV5, v[0], v[1], v[2], v[3]); gl.uniform4f(u.uV5b, w[0], w[1], w[2], w[3]); } // v5.1 grade: set dark, title lift, violet lift
|
|
86
|
+
bufB.fill(0); bufBX.fill(0); bufS.fill(0); bufSX.fill(0);
|
|
87
|
+
const nb = Math.min(NB, S.balls.length);
|
|
88
|
+
for (let i = 0; i < nb; i++) {
|
|
89
|
+
const b = S.balls[i];
|
|
90
|
+
bufB.set([b.x, b.y, Math.max(0.01, b.r), b.u], i * 4); bufBX.set([b.s || 1, b.a || 0, b.ghost ? 1 : 0, b.amt ?? 1], i * 4);
|
|
91
|
+
}
|
|
92
|
+
const ns = Math.min(NS, S.segs.length);
|
|
93
|
+
for (let i = 0; i < ns; i++) {
|
|
94
|
+
const s = S.segs[i];
|
|
95
|
+
bufS.set([s.ax, s.ay, s.bx, s.by], i * 4); bufSX.set([s.ra, s.rb, s.u, 0], i * 4);
|
|
96
|
+
}
|
|
97
|
+
gl.uniform1i(u.uNB, nb); gl.uniform4fv(u.uB, bufB); gl.uniform4fv(u.uBX, bufBX);
|
|
98
|
+
gl.uniform1i(u.uNS, ns); gl.uniform4fv(u.uS, bufS); gl.uniform4fv(u.uSX, bufSX);
|
|
99
|
+
const L = new Float32Array(16), LX = new Float32Array(16), LP = new Float32Array(16), LM = new Float32Array(16);
|
|
100
|
+
for (let i = 0; i < 4; i++) {
|
|
101
|
+
const l = S.letters[i];
|
|
102
|
+
if (!l) continue;
|
|
103
|
+
L.set([l.x, l.y, l.grow, l.u], i * 4); LX.set([l.sx, l.sy, l.a || 0, l.on ? (l.m ?? 1) : 0], i * 4); LM.set(l.ell || [0, 0, 1, 1], i * 4); LP.set([l.px, l.py, l.wob || 0, l.wph || 0], i * 4);
|
|
104
|
+
}
|
|
105
|
+
gl.uniform4fv(u.uL, L); gl.uniform4fv(u.uLM, LM); gl.uniform4fv(u.uLX, LX); gl.uniform4fv(u.uLP, LP);
|
|
106
|
+
gl.uniform2f(u.uTexSize, sdfSize[0], sdfSize[1]);
|
|
107
|
+
const fl = S.flood;
|
|
108
|
+
gl.uniform4f(u.uFl, fl.front, fl.back, fl.phase, fl.on ? 1 : 0); gl.uniform4f(u.uFlA, fl.amp, fl.freq, fl.lean, fl.u); gl.uniform4f(u.uFlB, fl.dx ?? 1, fl.dy ?? 0, fl.bump || 0, fl.bumpC || 0);
|
|
109
|
+
const ov = new Float32Array(12), ova = new Float32Array(12), ovb = new Float32Array(12), ovv = [0, 0, 0];
|
|
110
|
+
S.overlays.forEach((o, i) => { ov.set([o.front, o.back, o.phase, o.on ? 1 : 0], i * 4); ova.set([o.amp, o.freq, o.lean, o.u], i * 4); ovb.set([o.dx ?? 1, o.dy ?? 0, o.bump || 0, o.bumpC || 0], i * 4); ovv[i] = o.vel || 0; });
|
|
111
|
+
gl.uniform4fv(u.uOv, ov); gl.uniform4fv(u.uOvA, ova); gl.uniform4fv(u.uOvB, ovb); gl.uniform3f(u.uOvV, ovv[0], ovv[1], ovv[2]);
|
|
112
|
+
const bb = new Float32Array(32 * 4); const nbb = Math.min(32, (S.bubbles || []).length);
|
|
113
|
+
for (let i = 0; i < nbb; i++) bb.set(S.bubbles[i], i * 4);
|
|
114
|
+
gl.uniform4fv(u.uBub, bb); gl.uniform1i(u.uNBub, nbb);
|
|
115
|
+
gl.uniform1f(u.uFloorY, S.floorY); gl.uniform1f(u.uHorizon, S.horizon);
|
|
116
|
+
gl.uniform4f(u.uRip, S.rip.x, S.rip.y, S.rip.age, S.rip.amp);
|
|
117
|
+
if (u.uMbw) gl.uniform1f(u.uMbw, S.mbw || 0);
|
|
118
|
+
const ln = S.lens || [0, 0, 1, 1, 0, 0, 1, 0];
|
|
119
|
+
if (u.uLens) { gl.uniform4f(u.uLens, ln[0], ln[1], ln[2], ln[3]); gl.uniform4f(u.uLens2, ln[4], ln[5], ln[6], ln[7]); }
|
|
120
|
+
const sw = S.sw || [0, 0, 1, 0]; if (u.uSw) gl.uniform4f(u.uSw, sw[0], sw[1], sw[2], sw[3]);
|
|
121
|
+
{ const r = S.ring || [0, 0, 0, 0]; if (u.uRing) gl.uniform4f(u.uRing, r[0], r[1], r[2], r[3]);
|
|
122
|
+
const c = S.crown || [0, 0, 0, 0]; if (u.uCrown) gl.uniform4f(u.uCrown, c[0], c[1], c[2], c[3]);
|
|
123
|
+
const q = S.par || [0, 0, 0, 0]; if (u.uPar) gl.uniform4f(u.uPar, q[0], q[1], q[2], q[3]);
|
|
124
|
+
if (u.uCaus) gl.uniform1f(u.uCaus, S.caus || 0); } // r2
|
|
125
|
+
gl.uniform4f(u.uKey, S.key.x, S.key.y, S.key.glint, S.key.glintAmp);
|
|
126
|
+
gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, sdfT); gl.uniform1i(u.uTex, 0);
|
|
127
|
+
gl.activeTexture(gl.TEXTURE1); gl.bindTexture(gl.TEXTURE_2D, backT); gl.uniform1i(u.uBack, 1);
|
|
128
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
129
|
+
}
|
|
130
|
+
function post(S, typeCanvas) {
|
|
131
|
+
// ---------- bright pass ----------
|
|
132
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, brF); gl.viewport(0, 0, bw, bh);
|
|
133
|
+
gl.useProgram(P.bright.p);
|
|
134
|
+
gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, hdrT); gl.uniform1i(P.bright.u.uSrc, 0);
|
|
135
|
+
gl.uniform2f(P.bright.u.uTexel, 1 / W, 1 / H);
|
|
136
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
137
|
+
gl.bindTexture(gl.TEXTURE_2D, brT); gl.generateMipmap(gl.TEXTURE_2D);
|
|
138
|
+
// ---------- post ----------
|
|
139
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, null); gl.viewport(0, 0, W, H);
|
|
140
|
+
const pp = P.post; gl.useProgram(pp.p);
|
|
141
|
+
gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, hdrT); gl.uniform1i(pp.u.uHdr, 0);
|
|
142
|
+
gl.activeTexture(gl.TEXTURE1); gl.bindTexture(gl.TEXTURE_2D, brT); gl.uniform1i(pp.u.uBloom, 1);
|
|
143
|
+
gl.activeTexture(gl.TEXTURE2); gl.bindTexture(gl.TEXTURE_2D, typeT);
|
|
144
|
+
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
|
|
145
|
+
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA8, gl.RGBA, gl.UNSIGNED_BYTE, typeCanvas);
|
|
146
|
+
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false);
|
|
147
|
+
gl.uniform1i(pp.u.uType, 2);
|
|
148
|
+
gl.uniform2f(pp.u.uRes, W, H); gl.uniform1f(pp.u.uFrame, S.frame); gl.uniform1f(pp.u.uBloomAmt, S.bloom); gl.uniform1f(pp.u.uFlash, S.flash || 0);
|
|
149
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
150
|
+
gl.finish();
|
|
151
|
+
}
|
|
152
|
+
return { gl, setSDF, render };
|
|
153
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// reel v5: link elements of the film state S (pure: S = film(t)), in 1920x1080 output-frame px.
|
|
2
|
+
// The film tags its primitives (scene.js tag()): lk = ids the primitive belongs to (hidden together by ?nolink=id),
|
|
3
|
+
// main = the principal body of that id (the one reported). Look: glossy liquid (tangerine -> hot pink -> violet palette).
|
|
4
|
+
const W = 1920, H = 1080;
|
|
5
|
+
// sRGB approximations of the shader palette at the body's u (palMid = mid-thickness body, palThin = thin rim / lit core)
|
|
6
|
+
const PM = [[1.00, 0.36, 0.06], [1.00, 0.10, 0.44], [0.56, 0.12, 1.00]], PT = [[1.00, 0.74, 0.30], [1.00, 0.50, 0.66], [0.84, 0.52, 1.00]];
|
|
7
|
+
const mixv = (a, b, k) => a.map((c, i) => c + (b[i] - c) * k);
|
|
8
|
+
const palv = (P, u) => { u = Math.min(1, Math.max(0, u)); const [a, b] = u < 0.5 ? [P[0], P[1]] : [P[1], P[2]], k = u < 0.5 ? u * 2 : u * 2 - 1; return mixv(a, b, k); };
|
|
9
|
+
const hex = (v) => '#' + v.map((c) => Math.round(255 * Math.min(1, Math.max(0, c))).toString(16).padStart(2, '0')).join('');
|
|
10
|
+
const pal = (P, u) => hex(palv(P, u));
|
|
11
|
+
// v5.1 grade (S.v5 = [set, lift, violet lift, refl]): the violet end lifts to pink-violet, the title liquid gets lighter
|
|
12
|
+
const PM5 = [0.88, 0.36, 1.00], PT5 = [0.98, 0.74, 1.00];
|
|
13
|
+
function cols(S, u) {
|
|
14
|
+
const g = S.v5 || [0, 0, 0, 0];
|
|
15
|
+
const pm = [PM[0], PM[1], mixv(PM[2], PM5, g[2])], pt = [PT[0], PT[1], mixv(PT[2], PT5, g[2])];
|
|
16
|
+
const fill = mixv(palv(pm, u), palv(pt, u), 0.3 * g[1]), rim = palv(pt, u);
|
|
17
|
+
return { fill: hex(fill), stroke: hex(rim), grad: [hex(rim), hex(fill)] };
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function linkElements(S, word) {
|
|
21
|
+
const c = S.cam, z = c.zoom;
|
|
22
|
+
const X = (x) => (x - c.px - c.ox) * z + W / 2, Y = (y) => (y - c.py - c.oy) * z + H / 2;
|
|
23
|
+
// fraction of a box that is inside the frame
|
|
24
|
+
const vis = (x0, y0, x1, y1) => Math.max(0, Math.min(1, (Math.min(x1, W) - Math.max(x0, 0)) / Math.max(1, x1 - x0))) *
|
|
25
|
+
Math.max(0, Math.min(1, (Math.min(y1, H) - Math.max(y0, 0)) / Math.max(1, y1 - y0)));
|
|
26
|
+
const out = [];
|
|
27
|
+
const info = S.lnk || {};
|
|
28
|
+
for (const id of ['dot', 'hop']) {
|
|
29
|
+
let b = null; // principal body; if two phases overlap in one state, the more visible one wins
|
|
30
|
+
for (const q of S.balls) if (q.main === id && (!b || q.la > b.la || (q.la === b.la && q.r > b.r))) b = q;
|
|
31
|
+
if (!b) continue;
|
|
32
|
+
// shader ellipse: semi-axis r*s along angle a, r/s across; equal-area circle radius = r
|
|
33
|
+
const ca = Math.cos(b.a), sa = Math.sin(b.a), A = b.r * b.s * z, B = b.r / b.s * z;
|
|
34
|
+
const rx = Math.hypot(A * ca, B * sa), ry = Math.hypot(A * sa, B * ca); // axis-aligned half extents
|
|
35
|
+
const x = X(b.x), y = Y(b.y), r = b.r * z;
|
|
36
|
+
const a = +(b.la * vis(x - rx, y - ry, x + rx, y + ry)).toFixed(3);
|
|
37
|
+
const cc = cols(S, b.u);
|
|
38
|
+
out.push({ id, type: 'circle', x: +x.toFixed(1), y: +y.toFixed(1), r: +r.toFixed(1), a, look: 'glossy',
|
|
39
|
+
fill: cc.fill, stroke: cc.stroke, sw: 0, grad: cc.grad, hi: '#fff7f0',
|
|
40
|
+
rx: +rx.toFixed(1), ry: +ry.toFixed(1), note: b.note });
|
|
41
|
+
}
|
|
42
|
+
if (info.bar) { // the fused bar (6.1-6.4): union of the four slot ellipses -> a thick liquid line
|
|
43
|
+
const bs = S.balls.filter((q) => q.lk && q.lk.includes('bar'));
|
|
44
|
+
if (bs.length) {
|
|
45
|
+
let x0 = 1e9, x1 = -1e9, ys = 0, hs = 0;
|
|
46
|
+
for (const b of bs) { const hx = b.r / b.s, vy = b.r * b.s; x0 = Math.min(x0, b.x - hx); x1 = Math.max(x1, b.x + hx); ys += b.y; hs += vy; }
|
|
47
|
+
const y = Y(ys / bs.length), w = 2 * hs / bs.length * z;
|
|
48
|
+
out.push({ id: 'bar', type: 'line', x0: +X(x0).toFixed(1), y0: +y.toFixed(1), x1: +X(x1).toFixed(1), y1: +y.toFixed(1), w: +w.toFixed(1),
|
|
49
|
+
a: +info.bar.a.toFixed(3), look: 'glossy', fill: '#ff1f73', note: info.bar.note });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (S.letters.length) { // the title 「液态流动」 as a text block (ink box of the four liquid glyphs)
|
|
53
|
+
let x0 = 1e9, y0 = 1e9, x1 = -1e9, y1 = -1e9, m = 1;
|
|
54
|
+
S.letters.forEach((l, i) => {
|
|
55
|
+
const L = word.letters[i], bb = L.bbox;
|
|
56
|
+
x0 = Math.min(x0, l.x + (bb[0] - L.sx0) * l.sx); x1 = Math.max(x1, l.x + (bb[2] - L.sx0) * l.sx);
|
|
57
|
+
y0 = Math.min(y0, l.y + (bb[1] - L.sy0) * l.sy); y1 = Math.max(y1, l.y + (bb[3] - L.sy0) * l.sy);
|
|
58
|
+
m = Math.min(m, l.m ?? 1);
|
|
59
|
+
});
|
|
60
|
+
out.push({ id: 'title', type: 'rect', x: +((X(x0) + X(x1)) / 2).toFixed(1), y: +((Y(y0) + Y(y1)) / 2).toFixed(1),
|
|
61
|
+
w: +((x1 - x0) * z).toFixed(1), h: +((y1 - y0) * z).toFixed(1), rot: 0, a: +m.toFixed(3), text: '液态流动', note: 'liquid title block' });
|
|
62
|
+
}
|
|
63
|
+
return out;
|
|
64
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Static look-development arrangements (used with ?look=N)
|
|
2
|
+
export function lookdev(t, look, W) {
|
|
3
|
+
const S = baseState(t);
|
|
4
|
+
const floorY = S.floorY;
|
|
5
|
+
if (look === 0) {
|
|
6
|
+
// end card
|
|
7
|
+
W.letters.forEach((l, i) => S.letters.push({ ...l, x: l.sx0, y: l.sy0, grow: 0, u: [0.05, 0.3, 0.55, 0.85][i], sx: 1, sy: 1, on: true }));
|
|
8
|
+
S.balls.push({ x: 1180, y: floorY - 9, r: 26, u: 0.8, s: 2.2, a: 0 });
|
|
9
|
+
S.segs.push({ ax: 830, ay: 560, bx: 830, by: 600, ra: 9, rb: 5, u: 0.3 });
|
|
10
|
+
S.balls.push({ x: 830, y: 604, r: 12, u: 0.3 });
|
|
11
|
+
S.rip = { x: 1180, y: floorY, age: 0.45, amp: 1 };
|
|
12
|
+
} else if (look === 1) {
|
|
13
|
+
S.balls.push({ x: 420, y: floorY - 22, r: 52, u: 0.95, s: 2.0, a: 0 });
|
|
14
|
+
S.balls.push({ x: 700, y: floorY - 28, r: 60, u: 0.05, s: 1.9, a: 0 });
|
|
15
|
+
S.balls.push({ x: 1000, y: 470, r: 140, u: 0.4, s: 1.0, a: 0 });
|
|
16
|
+
S.balls.push({ x: 1330, y: 300, r: 48, u: 0.55, s: 1.35, a: Math.PI / 2 });
|
|
17
|
+
S.balls.push({ x: 1330, y: 238, r: 22, u: 0.55, s: 1.0, a: 0 });
|
|
18
|
+
for (let i = 0; i < 7; i++) S.balls.push({ x: 560 + i * 34, y: floorY - 120 - 60 * Math.sin(i * 0.9), r: 7 + (i % 3) * 4, u: 0.1 + 0.1 * i, s: 1, a: 0 });
|
|
19
|
+
S.balls.push({ x: 1185, y: 560, r: 55, u: 0.5 }); // neck with sphere
|
|
20
|
+
S.segs.push({ ax: 700, ay: -40, bx: 700, by: 250, ra: 26, rb: 9, u: 0.1 });
|
|
21
|
+
S.balls.push({ x: 700, y: 300, r: 50, u: 0.1, s: 1.15, a: Math.PI / 2 });
|
|
22
|
+
} else if (look === 2) {
|
|
23
|
+
S.balls.push({ x: 1200, y: 470, r: 140, u: 0.4 });
|
|
24
|
+
S.flood = { on: true, front: 900, back: -400, phase: 1.3, amp: 110, freq: 0.0062, lean: 0.12, u: 0.9 };
|
|
25
|
+
S.overlays = [
|
|
26
|
+
{ on: true, front: 620, back: -600, phase: 2.2, amp: 120, freq: 0.0055, lean: 0.10, u: 0.05 },
|
|
27
|
+
{ on: true, front: 330, back: -700, phase: 0.4, amp: 130, freq: 0.0058, lean: 0.08, u: 0.45 },
|
|
28
|
+
];
|
|
29
|
+
} else if (look === 3) {
|
|
30
|
+
S.flood = { on: true, front: 3000, back: -3000, phase: 1.3, amp: 110, freq: 0.0062, lean: 0.0, u: 0.5 };
|
|
31
|
+
}
|
|
32
|
+
return S;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function baseState(t) {
|
|
36
|
+
return {
|
|
37
|
+
t, frame: Math.round(t * 30), k: 0.1, floorY: 872, horizon: 786,
|
|
38
|
+
cam: { zoom: 1, px: 960, py: 540, ox: 0, oy: 0 },
|
|
39
|
+
balls: [], segs: [], letters: [],
|
|
40
|
+
flood: { on: false, front: 0, back: 0, phase: 0, amp: 0, freq: 0, lean: 0, u: 0 },
|
|
41
|
+
overlays: [{ on: false, front: 0, back: 0, phase: 0, amp: 0, freq: 0, lean: 0, u: 0 }, { on: false, front: 0, back: 0, phase: 0, amp: 0, freq: 0, lean: 0, u: 0 }, { on: false, front: 0, back: 0, phase: 0, amp: 0, freq: 0, lean: 0, u: 0 }],
|
|
42
|
+
rip: { x: 0, y: 0, age: 0, amp: 0 },
|
|
43
|
+
key: { x: -0.78, y: -0.95, glint: -9999, glintAmp: 0 },
|
|
44
|
+
bloom: 0.55, flash: 0,
|
|
45
|
+
};
|
|
46
|
+
}
|