dsh-drawai 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/lib/client.js +142 -16
- package/lib/index.js +7945 -7719
- package/lib/motion/asset-pack.js +394 -394
- package/lib/motion/assets.js +291 -291
- package/lib/motion/demo-assets-lock.js +10 -10
- package/lib/motion/mgstyles/briefs/23-ink-wash.md +147 -0
- package/lib/motion/mgstyles/catalog.d/23-ink-wash.json +28 -0
- package/lib/motion/mgstyles/catalog.json +127 -14
- package/lib/motion/mgstyles/upstream/demos/23-ink-wash/brush.js +149 -0
- package/lib/motion/mgstyles/upstream/demos/23-ink-wash/film.js +202 -0
- package/lib/motion/mgstyles/upstream/manifest.json +28 -3
- package/lib/motion/mgstyles/upstream/prompts/23-ink-wash.md +59 -0
- package/lib/motion/mgstyles/vendor/README.md +28 -28
- package/lib/motion/mgstyles/vendor/modules/d3/LICENSE +13 -13
- package/lib/motion/mgstyles/vendor/modules/d3/dist/d3.min.js +2 -2
- package/lib/motion/mgstyles/vendor/modules/opentype.js/LICENSE +20 -20
- package/lib/motion/mgstyles/vendor/modules/opentype.js/dist/opentype.mjs +14460 -14460
- package/lib/motion/mgstyles/vendor/modules/simplex-noise/LICENSE +21 -21
- package/lib/motion/mgstyles/vendor/modules/simplex-noise/dist/esm/simplex-noise.js +465 -465
- package/lib/motion/mgstyles/vendor/modules/topojson-client/LICENSE +13 -13
- package/lib/motion/mgstyles/vendor/modules/topojson-client/dist/topojson-client.min.js +2 -2
- package/lib/motion/project.js +5 -1
- package/lib/motion/qa.js +116 -6
- package/lib/motion/render.js +179 -179
- package/lib/motion/scene-kit.js +1 -1
- package/lib/motion/shotcraft/upstream/SKILL.md +286 -286
- package/lib/motion/shotcraft/upstream/assets/lib/Caption.tsx +54 -54
- package/lib/motion/shotcraft/upstream/assets/lib/ClipCard.tsx +200 -200
- package/lib/motion/shotcraft/upstream/assets/lib/DigitRoll.tsx +45 -45
- package/lib/motion/shotcraft/upstream/assets/lib/FlashCut.tsx +20 -20
- package/lib/motion/shotcraft/upstream/assets/lib/FlatPanel.tsx +65 -65
- package/lib/motion/shotcraft/upstream/assets/lib/PageCam.tsx +151 -151
- package/lib/motion/shotcraft/upstream/assets/lib/VerticalTicker.tsx +129 -129
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/camera.tsx +75 -75
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/motion.ts +40 -40
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/rand.ts +11 -11
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/shake.ts +10 -10
- package/lib/motion/shotcraft/upstream/assets/scripts/build-readme-cover.mjs +49 -49
- package/lib/motion/shotcraft/upstream/assets/scripts/capture-template.mjs +210 -210
- package/lib/motion/shotcraft/upstream/assets/scripts/sfx-source.py +423 -423
- package/lib/motion/shotcraft/upstream/assets/scripts/smoke-render-demos.py +170 -170
- package/lib/motion/shotcraft/upstream/assets/scripts/test_sfx_source.py +157 -157
- package/lib/motion/shotcraft/upstream/demos/README.md +120 -120
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Brand.tsx +112 -112
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Fixtures.tsx +647 -647
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Look.tsx +316 -316
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Motion.tsx +82 -82
- package/lib/motion/shotcraft/upstream/demos/_fixtures/PageCam2D.tsx +115 -115
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Polish.tsx +243 -243
- package/lib/motion/shotcraft/upstream/demos/_textures/live-layout.json +388 -388
- package/lib/motion/shotcraft/upstream/demos/camera/basic-3d-scene/Basic3DScene.tsx +250 -250
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashImpactReal.tsx +305 -305
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashZoomReal.tsx +246 -246
- package/lib/motion/shotcraft/upstream/demos/camera/cursor-flyover/CursorFlyover.tsx +390 -390
- package/lib/motion/shotcraft/upstream/demos/camera/depth-layer-moves/MultiplaneReal.tsx +138 -138
- package/lib/motion/shotcraft/upstream/demos/camera/graze-face-tour/GrazeFaceTour.tsx +542 -542
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/OverheadTabletopDrop.tsx +315 -315
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/TiltReveal.tsx +299 -299
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/DroneDiveLanding.tsx +173 -173
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/ExplodedView.tsx +348 -348
- package/lib/motion/shotcraft/upstream/demos/camera/steep-tilt-glide/SteepTiltGlide.tsx +366 -366
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/BulletTimeFreezeOrbit.tsx +279 -279
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/PullBackIsolation.tsx +184 -184
- package/lib/motion/shotcraft/upstream/demos/camera/terminal-3d/Terminal3D.tsx +390 -390
- package/lib/motion/shotcraft/upstream/demos/data/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +155 -155
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/AxisRescaleShockV2.tsx +303 -303
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/OscilloscopeStreamV2.tsx +290 -290
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/UnitDotSwarmRegroupV2.tsx +278 -278
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/NeedleSweepSelftest.tsx +307 -307
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/TapeScrollFixedPointer.tsx +215 -215
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/BrakeReticleLock.tsx +299 -299
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/ChangelogScrollBrake.tsx +232 -232
- package/lib/motion/shotcraft/upstream/demos/data/timeline-travel/TimelineTravel.tsx +290 -290
- package/lib/motion/shotcraft/upstream/demos/effects/assemble-then-type-flyin/AssembleThenTypeFlyin.tsx +273 -273
- package/lib/motion/shotcraft/upstream/demos/effects/aurora-bloom-bg-flip/AuroraBloomBgFlip.tsx +167 -167
- package/lib/motion/shotcraft/upstream/demos/effects/brand-frame-snap/BrandFrameSnap.tsx +536 -536
- package/lib/motion/shotcraft/upstream/demos/effects/fui-hud-moves/ReticleLockOn.tsx +164 -164
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/FlylineArc.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/GlowOrbAmbient.tsx +197 -197
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/OrbFlylineRelay.tsx +241 -241
- package/lib/motion/shotcraft/upstream/demos/effects/icon-performance-moves/AttentionBounce.tsx +279 -279
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/AnimeImpact.tsx +230 -230
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/HitCounter.tsx +345 -345
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SheenSweepRetry.tsx +275 -275
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SpotlightSweepReveal.tsx +229 -229
- package/lib/motion/shotcraft/upstream/demos/effects/radial-ripple-phone-chips/RadialRipplePhoneChips.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/effects/riso-print-hits/RisoMisregistrationHit.tsx +222 -222
- package/lib/motion/shotcraft/upstream/demos/effects/scan-bracket-sweep/ScanBracketSweep.tsx +295 -295
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-annotate-focus/ScanlineAnnotateFocus.tsx +329 -329
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-assemble-flyin/ScanlineAssembleFlyin.tsx +315 -315
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ImpactBurstKit.tsx +264 -264
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/KanadaPerspectiveSnap.tsx +260 -260
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ScoreSlam.tsx +263 -263
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/CornerSpotlightReveal.tsx +123 -123
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +187 -187
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/SlideSpotlightPan.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/interaction/autolayout-gap-dial/AutolayoutGapDial.tsx +305 -305
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/DiagramCascadeBuild.tsx +350 -350
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +352 -352
- package/lib/motion/shotcraft/upstream/demos/interaction/chip-grid-single-select-blackout/ChipGridSingleSelectBlackout.tsx +218 -218
- package/lib/motion/shotcraft/upstream/demos/interaction/collab-cursor-moves/CursorCastEnsemble.tsx +297 -297
- package/lib/motion/shotcraft/upstream/demos/interaction/glass-pill-dictation-typing/GlassPillDictationTyping.tsx +157 -157
- package/lib/motion/shotcraft/upstream/demos/interaction/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +218 -218
- package/lib/motion/shotcraft/upstream/demos/interaction/picker-carousel-feature-cycle/PickerCarouselFeatureCycle.tsx +202 -202
- package/lib/motion/shotcraft/upstream/demos/interaction/segmented-thumb-hero/SegmentedThumbHero.tsx +265 -265
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/PaletteThemeRipple.tsx +457 -457
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/ThemeSweepToggle.tsx +446 -446
- package/lib/motion/shotcraft/upstream/demos/interaction/type-and-filter/TypeAndFilter.tsx +249 -249
- package/lib/motion/shotcraft/upstream/demos/interaction/voice-waveform-live/VoiceWaveformLive.tsx +278 -278
- package/lib/motion/shotcraft/upstream/demos/opening/crane-rise-reveal/CraneRiseReveal.tsx +332 -332
- package/lib/motion/shotcraft/upstream/demos/opening/dataviz-landscape-open/DatavizLandscapeOpen.tsx +358 -358
- package/lib/motion/shotcraft/upstream/demos/opening/fracture/Fracture.tsx +201 -201
- package/lib/motion/shotcraft/upstream/demos/opening/icon-field-colorize/IconFieldColorize.tsx +200 -200
- package/lib/motion/shotcraft/upstream/demos/opening/letterspace-materialize/LetterspaceMaterialize.tsx +208 -208
- package/lib/motion/shotcraft/upstream/demos/opening/magician-card-flourish/MagicianCardFlourish.tsx +341 -341
- package/lib/motion/shotcraft/upstream/demos/opening/orbit-ring-title-open/OrbitRingTitleOpen.tsx +389 -389
- package/lib/motion/shotcraft/upstream/demos/opening/spotlight-hero-card/SpotlightHeroCard.tsx +293 -293
- package/lib/motion/shotcraft/upstream/demos/opening/stroke-segment-build/StrokeSegmentBuild.tsx +183 -183
- package/lib/motion/shotcraft/upstream/demos/opening/text-as-mask/TextAsMask.tsx +245 -245
- package/lib/motion/shotcraft/upstream/demos/outro/grain-dissolve/GrainDissolve.tsx +222 -222
- package/lib/motion/shotcraft/upstream/demos/outro/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx +223 -223
- package/lib/motion/shotcraft/upstream/demos/outro/neon-triple-marquee/NeonTripleMarquee.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/outro/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx +343 -343
- package/lib/motion/shotcraft/upstream/demos/outro/ui-strip-away-outro/UiStripAwayOutro.tsx +357 -357
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/IconFlipBloomLogo.tsx +187 -187
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/InputMorphsIntoLogo.tsx +333 -333
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-cut-moves/PaparazziFlash.tsx +274 -274
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +270 -270
- package/lib/motion/shotcraft/upstream/demos/rhythm/panel-grid-moves/ComicPanelSplit.tsx +430 -430
- package/lib/motion/shotcraft/upstream/demos/rhythm/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx +252 -252
- package/lib/motion/shotcraft/upstream/demos/rhythm/rhythm-interrupt-moves/JumpCutPunchIn.tsx +106 -106
- package/lib/motion/shotcraft/upstream/demos/rhythm/sakuga-timing-shift/SakugaTimingShift.tsx +288 -288
- package/lib/motion/shotcraft/upstream/demos/rhythm/speed-ramp-freeze/FreezeAnnotateReal.tsx +362 -362
- package/lib/motion/shotcraft/upstream/demos/rhythm/trailer-grammar-moves/TrailerBumper.tsx +168 -168
- package/lib/motion/shotcraft/upstream/demos/transition/bottom-push-stack-wipe/BottomPushStackWipe.tsx +310 -310
- package/lib/motion/shotcraft/upstream/demos/transition/card-flip-reveal/CardFlipReveal.tsx +261 -261
- package/lib/motion/shotcraft/upstream/demos/transition/card-flock-tumble/CardFlockTumble.tsx +459 -459
- package/lib/motion/shotcraft/upstream/demos/transition/circle-match-iris/CircleMatchIris.tsx +294 -294
- package/lib/motion/shotcraft/upstream/demos/transition/gradient-transition/GradientTransition.tsx +161 -161
- package/lib/motion/shotcraft/upstream/demos/transition/line-carry-transition/LineCarryTransition.tsx +248 -248
- package/lib/motion/shotcraft/upstream/demos/transition/mosaic-reframe/MosaicReframe.tsx +359 -359
- package/lib/motion/shotcraft/upstream/demos/transition/page-turn-transitions/BarnDoorSplit.tsx +227 -227
- package/lib/motion/shotcraft/upstream/demos/transition/print-texture-transitions/InkBleedReveal.tsx +162 -162
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/PortalWipeV2.tsx +248 -248
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/WhipBrakeReal.tsx +186 -186
- package/lib/motion/shotcraft/upstream/demos/transition/tear-streak-transitions/GlitchDisplace.tsx +355 -355
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/InvisibleCut.tsx +272 -272
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/LightLeakBurn.tsx +262 -262
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/VersusSlam.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/transition/transition-travel/LetterformZoom.tsx +285 -285
- package/lib/motion/shotcraft/upstream/demos/transition/white-flash-logo-simplify-cut/WhiteFlashLogoSimplifyCut.tsx +205 -205
- package/lib/motion/shotcraft/upstream/demos/transition/wipe-transitions/BlindsSlice.tsx +178 -178
- package/lib/motion/shotcraft/upstream/demos/typography/blur-slide/BlurSlide.tsx +147 -147
- package/lib/motion/shotcraft/upstream/demos/typography/brace-expand/BraceExpand.tsx +143 -143
- package/lib/motion/shotcraft/upstream/demos/typography/brand-ink-open/BrandInkOpen.tsx +134 -134
- package/lib/motion/shotcraft/upstream/demos/typography/countdown-arc-scatter/CountdownArcScatter.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/typography/flying-words/FlyingWords.tsx +198 -198
- package/lib/motion/shotcraft/upstream/demos/typography/glitch-cycle/GlitchCycle.tsx +221 -221
- package/lib/motion/shotcraft/upstream/demos/typography/gradient-word-sweep/GradientWordSweep.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/typography/lead-word-zoom-assemble/LeadWordZoomAssemble.tsx +261 -261
- package/lib/motion/shotcraft/upstream/demos/typography/marker-underline-title/MarkerUnderlineTitle.tsx +121 -121
- package/lib/motion/shotcraft/upstream/demos/typography/outline-word-fill/OutlineWordFill.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/typography/paper-title-card/PaperTitleCard.tsx +179 -179
- package/lib/motion/shotcraft/upstream/demos/typography/pill-chip-slot-cycle-handled/PillChipSlotCycleHandled.tsx +140 -140
- package/lib/motion/shotcraft/upstream/demos/typography/pill-slot-cycle/PillSlotCycle.tsx +309 -309
- package/lib/motion/shotcraft/upstream/demos/typography/text-column-converge/TextColumnConverge.tsx +191 -191
- package/lib/motion/shotcraft/upstream/demos/typography/title-demote-to-label/TitleDemoteToLabel.tsx +292 -292
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/LetterformDriftAssembly.tsx +135 -135
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/SplitTextStagger.tsx +124 -124
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/TextOnPath.tsx +255 -255
- package/lib/motion/shotcraft/upstream/demos/typography/type-entrance-moves/LetterDropPhysics.tsx +173 -173
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/FontWeightPump.tsx +225 -225
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/KaraokeFillSync.tsx +141 -141
- package/lib/motion/shotcraft/upstream/demos/typography/typewriter-moves/TypewriterErrorRetype.tsx +137 -137
- package/lib/motion/shotcraft/upstream/demos/typography/vertical-word-roll-blur-cycle/VerticalWordRollBlurCycle.tsx +147 -147
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-filmstrip/WordRelayFilmstrip.tsx +409 -409
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-geometry/WordRelayGeometry.tsx +280 -280
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/avatar-bracket-carousel/AvatarBracketCarousel.tsx +271 -271
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/bezier-source-converge-merge/BezierSourceConvergeMerge.tsx +385 -385
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/card-stack/CardStack.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/carousel-3d/Carousel3D.tsx +303 -303
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/clipcard-looping/ClipCardLooping.tsx +77 -77
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/cloner-depth-echo/ClonerDepthEcho.tsx +311 -311
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/deck-deal-flyin/DeckDealFlyin.tsx +307 -307
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/doc-park-left-pill-deal/DocParkLeftPillDeal.tsx +349 -349
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/document-typewriter-reveal/DocumentTypewriterReveal.tsx +255 -255
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/draw-svg-trace/DrawSvgTrace.tsx +244 -244
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/element-body-moves/ContactShadowLift.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/integration-hub-map/IntegrationHubMap.tsx +652 -652
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-reveal/ListReveal.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-stack-press/ListStackPress.tsx +238 -238
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-forerun/NeonFrameForerun.tsx +324 -324
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +354 -354
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/PageWaterfallWall.tsx +101 -101
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/VerticalTicker.tsx +129 -129
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/product-card-progressive-assemble/ProductCardProgressiveAssemble.tsx +297 -297
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/radial-wave/RadialWave.tsx +57 -57
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/research-card-stack-scroll/ResearchCardStackScroll.tsx +155 -155
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/row-embed/RowEmbed.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/value-stagger-gradient/ValueStaggerGradient.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/BentoLightUp.tsx +146 -146
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/WireframeDrawOn.tsx +226 -226
- package/lib/motion/shotcraft/upstream/gallery/api/library.json +1 -1
- package/lib/motion/shotcraft/upstream/references/aesthetic-rules.md +193 -193
- package/lib/motion/shotcraft/upstream/references/final-review.md +121 -121
- package/lib/motion/shotcraft/upstream/references/guided-free-creation.md +199 -199
- package/lib/motion/shotcraft/upstream/references/jianying-export.md +183 -183
- package/lib/motion/shotcraft/upstream/references/music-beat-sync.md +257 -257
- package/lib/motion/shotcraft/upstream/references/pipeline.md +382 -382
- package/lib/motion/shotcraft/upstream/references/publish-upload-post.md +111 -111
- package/lib/motion/shotcraft/upstream/references/sequences/promo-energy-arc.md +50 -50
- package/lib/motion/shotcraft/upstream/references/sfx-sourcing.md +95 -95
- package/lib/motion/shotcraft/upstream/references/shots/camera/basic-3d-scene.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/camera/crash-zoom-punch.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/camera/cursor-flyover.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/camera/depth-layer-moves.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/camera/graze-face-tour.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/camera/overhead-camera-moves.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/camera/space-camera-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/camera/steep-tilt-glide.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/camera/tension-camera-moves.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/camera/terminal-3d.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/data/before-after-slider-scrub.md +48 -48
- package/lib/motion/shotcraft/upstream/references/shots/data/chart-live-moves.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/data/gauge-readout-moves.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/data/scroll-brake-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/data/timeline-travel.md +44 -44
- package/lib/motion/shotcraft/upstream/references/shots/effects/assemble-then-type-flyin.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/effects/aurora-bloom-bg-flip.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/effects/brand-frame-snap.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/effects/fui-hud-moves.md +35 -35
- package/lib/motion/shotcraft/upstream/references/shots/effects/glow-flyline-moves.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/icon-performance-moves.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/effects/impact-feedback.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/effects/light-play-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/effects/radial-ripple-phone-chips.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/effects/riso-print-hits.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/effects/scan-bracket-sweep.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-annotate-focus.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-assemble-flyin.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/slam-entrance-moves.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/effects/spotlight-sweep-moves.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/interaction/autolayout-gap-dial.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/interaction/canvas-materialize-moves.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/interaction/chip-grid-single-select-blackout.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/interaction/collab-cursor-moves.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/interaction/glass-pill-dictation-typing.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/interaction/hashtag-to-pill-materialize.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/interaction/picker-carousel-feature-cycle.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/interaction/segmented-thumb-hero.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/interaction/theme-switch-moves.md +47 -47
- package/lib/motion/shotcraft/upstream/references/shots/interaction/type-and-filter.md +37 -37
- package/lib/motion/shotcraft/upstream/references/shots/interaction/voice-waveform-live.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/opening/brand-ink-open.md +36 -36
- package/lib/motion/shotcraft/upstream/references/shots/opening/crane-rise-reveal.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/opening/dataviz-landscape-open.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/opening/fracture.md +40 -40
- package/lib/motion/shotcraft/upstream/references/shots/opening/icon-field-colorize.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/opening/letterspace-materialize.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/opening/magician-card-flourish.md +73 -73
- package/lib/motion/shotcraft/upstream/references/shots/opening/orbit-ring-title-open.md +87 -87
- package/lib/motion/shotcraft/upstream/references/shots/opening/spotlight-hero-card.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/opening/stroke-segment-build.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/opening/text-as-mask.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/outro/grain-dissolve.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/outro/logo-shrink-wordmark-lockup.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/outro/neon-triple-marquee.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/outro/outro-group-photo-launch.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-strip-away-outro.md +61 -61
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-to-brand-morph.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-cut-moves.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-step-list-theme-cycle.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/panel-grid-moves.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/quad-split-parallel-scenes.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/rhythm-interrupt-moves.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/sakuga-timing-shift.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/speed-ramp-freeze.md +44 -44
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/trailer-grammar-moves.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/transition/bottom-push-stack-wipe.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flip-reveal.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flock-tumble.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/transition/circle-match-iris.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/transition/gradient-transition.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/transition/line-carry-transition.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/transition/mosaic-reframe.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/transition/page-turn-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/transition/print-texture-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/transition/shot-transitions.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/transition/tear-streak-transitions.md +48 -48
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-hidden-cut.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-travel.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/transition/white-flash-logo-simplify-cut.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/transition/wipe-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/blur-slide.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/typography/brace-expand.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/typography/countdown-arc-scatter.md +65 -65
- package/lib/motion/shotcraft/upstream/references/shots/typography/document-typewriter-reveal.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/flying-words.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/glitch-cycle.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/gradient-word-sweep.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/typography/lead-word-zoom-assemble.md +91 -91
- package/lib/motion/shotcraft/upstream/references/shots/typography/marker-underline-title.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/typography/outline-word-fill.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/typography/paper-title-card.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-chip-slot-cycle-handled.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-slot-cycle.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/typography/text-column-converge.md +61 -61
- package/lib/motion/shotcraft/upstream/references/shots/typography/title-demote-to-label.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-assembly-moves.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-entrance-moves.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-rhythm-sync.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/typography/typewriter-moves.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/vertical-word-roll-blur-cycle.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-filmstrip.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-geometry.md +75 -75
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/avatar-bracket-carousel.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/bezier-source-converge-merge.md +67 -67
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/card-stack.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/carousel-3d.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/cloner-depth-echo.md +40 -40
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/deck-deal-flyin.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/doc-park-left-pill-deal.md +62 -62
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/draw-svg-trace.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/element-body-moves.md +37 -37
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/integration-hub-map.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-reveal.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-stack-press.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-forerun.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-orbit-drop.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/page-waterfall-wall.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/product-card-progressive-assemble.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/radial-wave.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/research-card-stack-scroll.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/row-embed.md +36 -36
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/value-stagger-gradient.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/wall-reveal-moves.md +47 -47
- package/lib/motion/shotcraft/upstream/references/sound-design.md +170 -170
- package/lib/motion/shotcraft/upstream/references/workbench.md +157 -157
- package/lib/motion/shotcraft/upstream/template/TEMPLATE.md +103 -103
- package/lib/motion/shotcraft/upstream/template/THEMES.md +44 -44
- package/lib/motion/shotcraft/upstream/template/package.json +20 -20
- package/lib/motion/shotcraft/upstream/template/remotion.config.ts +6 -6
- package/lib/motion/shotcraft/upstream/template/src/Root.tsx +17 -17
- package/lib/motion/shotcraft/upstream/template/src/aifl/Caption.tsx +65 -65
- package/lib/motion/shotcraft/upstream/template/src/aifl/DigitRoll.tsx +48 -48
- package/lib/motion/shotcraft/upstream/template/src/aifl/FlashCut.tsx +24 -24
- package/lib/motion/shotcraft/upstream/template/src/aifl/Main.tsx +192 -192
- package/lib/motion/shotcraft/upstream/template/src/aifl/PaperTitleCard.tsx +111 -111
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/PageCam.tsx +150 -150
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneDetail.tsx +158 -158
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneFlyIn.tsx +468 -468
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOpen.tsx +552 -552
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOutroLive.tsx +411 -411
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/ScenePapers.tsx +200 -200
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneWbr.tsx +324 -324
- package/lib/motion/shotcraft/upstream/template/src/aifl/live-layout.json +388 -388
- package/lib/motion/shotcraft/upstream/template/src/index.ts +4 -4
- package/lib/motion/shotcraft/upstream/template/src/themes/ThemedFilm.tsx +7 -7
- package/lib/motion/shotcraft/upstream/template/src/themes/manifest.tsx +68 -68
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.json +1 -1
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.ts +24 -24
- package/lib/motion/shotcraft/upstream/template/src/themes/palettes.json +74 -74
- package/lib/motion/shotcraft/upstream/template/src/themes/visual-theme.tsx +91 -91
- package/lib/motion/shotcraft/upstream/template/src/workbench.ts +213 -213
- package/lib/motion/shotcraft/upstream/template/tsconfig.json +15 -15
- package/lib/motion/style-frames.js +306 -306
- package/lib/motion/sync.js +214 -214
- package/lib/motion-library.js +1 -1
- package/lib/motion-project.js +105 -105
- package/lib/motion-render-worker.js +174 -174
- package/lib/routing/router.js +222 -222
- package/lib/routing/vendor/README.md +96 -96
- package/lib/routing/vendor/libavoid-routing.js +753 -753
- package/lib/routing/vendor/libavoid.min.js +59 -59
- package/lib/svg-export.js +1344 -0
- package/lib/video-trace-pool.js +128 -128
- package/package.json +3 -2
- package/LICENSE +0 -4175
|
@@ -1,352 +1,352 @@
|
|
|
1
|
-
// panel-to-canvas-materialize —— miro-promo 84–92s
|
|
2
|
-
// 侧面板列表行逐个打勾 → 按钮按下 → 三行沿上抛弧线错峰飞出面板、跨容器变形成画布上的三张卡(行→卡形态迁移)。
|
|
3
|
-
//
|
|
4
|
-
// 第二轮重设计(沙色暖场 · 研究洞察上墙):
|
|
5
|
-
// - look = sand(米色纸面 · 赤陶强调 · 藏青点缀)。产品即 video-shotcraft:右侧「Shot recipes」面板列着 5 张镜头配方卡
|
|
6
|
-
// (32px 行标题、分类标签与挑卡人),左侧是一块开放的分镜板(标志 + 衬线大标题「Launch film」+ 淡点阵画布)。
|
|
7
|
-
// - 动作链有因果:光标逐个点三个复选框(赤陶色勾 spring 弹出、勾线描出)→ 移到「Add 3 to board」按下 →
|
|
8
|
-
// 三行先"拔起"(预备:放大 2% + 阴影加深 4f)再沿二次贝塞尔上抛弧线飞向画布,错峰 6f。
|
|
9
|
-
// - 形态迁移(本式命门):位置走弧线先到,宽高 / 圆角晚 3f 收敛(父先子后);行内容在 u<0.4 淡出、卡内容 u>0.5 淡入,
|
|
10
|
-
// 中段两态绝不同显;飞行中按速度做方向性运动模糊,阴影随弧线抬高变大变虚,落地 4f 压扁回弹 + 接触影收紧。
|
|
11
|
-
// - 行槽不复原:飞走的行塌成赤陶虚线留白「On board」,"迁移"不是"复制"。
|
|
12
|
-
// - 相机:起飞后整体极缓推近(总 2.5%);落定后板头计数「3 shots pinned」升起,hold 成海报。
|
|
13
|
-
//
|
|
14
|
-
// 时间表(30fps,共 150f):
|
|
15
|
-
// 0–18 面板从右滑入(snappy)、5 行错峰;板头衬线标题逐词升起
|
|
16
|
-
// 14/24/34 光标依次点中三个复选框(勾 spring damping 11,勾线 7f 描出),按钮计数 1→2→3
|
|
17
|
-
// 48 光标到按钮,52f 按下(scale 0.94 → 回弹)
|
|
18
|
-
// 56/62/68 三行拔起 4f → 起飞 40f(spring damping 17,弧线中点上抬 220px)
|
|
19
|
-
// ~104–112 三卡依次落地(压扁回弹、倾角 −2.5/1.8/−1.2°),行槽塌成虚线
|
|
20
|
-
// 112–150 hold:板头「3 shots pinned」计数升起,相机极缓推进
|
|
21
|
-
import React from 'react';
|
|
22
|
-
import { AbsoluteFill, useCurrentFrame } from 'remotion';
|
|
23
|
-
import { EASE, FONT, SpeedBlur, mix, ramp, softShadow } from '../../_fixtures/Polish';
|
|
24
|
-
import { LOOKS, SERIF, Stage, TextReveal, alpha, springAt, type } from '../../_fixtures/Look';
|
|
25
|
-
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
26
|
-
|
|
27
|
-
export const PANEL_TO_CANVAS_MATERIALIZE_DURATION = 150;
|
|
28
|
-
|
|
29
|
-
const L = LOOKS.sand;
|
|
30
|
-
const ACC = L.accent; // 赤陶
|
|
31
|
-
const NAVY = L.accent2; // 藏青(点缀:标签)
|
|
32
|
-
|
|
33
|
-
// ── 面板几何 ──
|
|
34
|
-
const PANEL_X = 1164;
|
|
35
|
-
const PANEL_Y = 96;
|
|
36
|
-
const PANEL_W = 656;
|
|
37
|
-
const PANEL_H = 888;
|
|
38
|
-
const ROW_X = PANEL_X + 24;
|
|
39
|
-
const ROW_W = PANEL_W - 48;
|
|
40
|
-
const ROW_H = 104;
|
|
41
|
-
const ROW_STEP = 116;
|
|
42
|
-
const ROWS_TOP = 262; // 第一行的画面 y(面板内布局与飞行起点共用,起飞零跳变)
|
|
43
|
-
|
|
44
|
-
// ── 卡片落位(画布左区)──
|
|
45
|
-
const CARD_W = 486;
|
|
46
|
-
const CARD_H = 300;
|
|
47
|
-
const TARGETS = [
|
|
48
|
-
{ x: 116, y: 268, rot: -2.5 },
|
|
49
|
-
{ x: 636, y: 306, rot: 1.8 },
|
|
50
|
-
{ x: 330, y: 640, rot: -1.2 },
|
|
51
|
-
];
|
|
52
|
-
|
|
53
|
-
const CHECK_AT = [14, 24, 34];
|
|
54
|
-
const PRESS = 52;
|
|
55
|
-
const LIFT_AT = [56, 62, 68];
|
|
56
|
-
const LIFT = 4; // 拔起预备帧
|
|
57
|
-
const FLY_DUR = 40;
|
|
58
|
-
|
|
59
|
-
type Item = { title: string; tag: string; who: string; name: string; quote: string; meta: string };
|
|
60
|
-
const ITEMS: Item[] = [
|
|
61
|
-
// 镜头配方卡(库里真有的卡名);quote = 挑卡人的备注,meta = 示意时长
|
|
62
|
-
{ title: 'Crash zoom punch-in', tag: 'Camera', who: 'AO', name: 'Ama Owusu', quote: '“Lands right on the beat drop.”', meta: '24 frames' },
|
|
63
|
-
{ title: 'Text as mask opener', tag: 'Opening', who: 'LB', name: 'Lars Berg', quote: '', meta: '' },
|
|
64
|
-
{ title: 'Cursor flyover tour', tag: 'Interaction', who: 'PS', name: 'Priya Sethi', quote: '“Reads like a real screen take.”', meta: '96 frames' },
|
|
65
|
-
{ title: 'Chart axis rescale shock', tag: 'Data', who: 'TM', name: 'Tomás Mena', quote: 'Rescales on the cut, holds two beats.', meta: '72 frames' },
|
|
66
|
-
{ title: 'Grain dissolve outro', tag: 'Outro', who: 'AO', name: 'Ama Owusu', quote: '', meta: '' },
|
|
67
|
-
];
|
|
68
|
-
const SLOTS = [0, 2, 3]; // 被勾选的行(不连续:读作"挑选"而非"全选")
|
|
69
|
-
const AV = ['#c4552d', '#3d5a80', '#7c6a4f', '#9a5b3f'];
|
|
70
|
-
|
|
71
|
-
const rowY = (slot: number) => ROWS_TOP + slot * ROW_STEP;
|
|
72
|
-
|
|
73
|
-
// 飞行进度(spring,可能短暂 >1)
|
|
74
|
-
const flyU = (f: number, k: number) => springAt(f, LIFT_AT[k] + LIFT, { damping: 17, stiffness: 95, mass: 0.9 });
|
|
75
|
-
|
|
76
|
-
// 飞行几何:位置走二次贝塞尔(中点上抬),尺寸晚 3f 收敛
|
|
77
|
-
const flyGeom = (f: number, k: number) => {
|
|
78
|
-
const slot = SLOTS[k];
|
|
79
|
-
const u = flyU(f, k);
|
|
80
|
-
const us = flyU(f - 3, k); // 尺寸晚 3f
|
|
81
|
-
const t = TARGETS[k];
|
|
82
|
-
const sx = ROW_X + ROW_W / 2, sy = rowY(slot) + ROW_H / 2;
|
|
83
|
-
const ex = t.x + CARD_W / 2, ey = t.y + CARD_H / 2;
|
|
84
|
-
const cx = (sx + ex) / 2, cy = Math.min(sy, ey) - 220;
|
|
85
|
-
const q = Math.min(1, Math.max(0, u));
|
|
86
|
-
const bx = (1 - q) * (1 - q) * sx + 2 * (1 - q) * q * cx + q * q * ex + (u - q) * (ex - cx) * 0.6;
|
|
87
|
-
const by = (1 - q) * (1 - q) * sy + 2 * (1 - q) * q * cy + q * q * ey + (u - q) * (ey - cy) * 0.6;
|
|
88
|
-
const w = mix(ROW_W, CARD_W, us);
|
|
89
|
-
const h = mix(ROW_H, CARD_H, us);
|
|
90
|
-
return { u, us, cx: bx, cy: by, w, h, rot: t.rot * u, arc: Math.sin(Math.PI * q) };
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
const Avatar: React.FC<{ s: string; c: string; size?: number }> = ({ s, c, size = 44 }) => (
|
|
94
|
-
<div style={{
|
|
95
|
-
width: size, height: size, borderRadius: 99, flex: 'none', display: 'grid', placeItems: 'center',
|
|
96
|
-
background: `linear-gradient(180deg, ${alpha(c, 0.85)}, ${c})`, color: '#fff8f0',
|
|
97
|
-
...type(size * 0.38, 650), letterSpacing: '0.02em', boxShadow: 'inset 0 1px 0 rgba(255,255,255,0.3)',
|
|
98
|
-
}}>{s}</div>
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
const Tag: React.FC<{ s: string }> = ({ s }) => (
|
|
102
|
-
<span style={{
|
|
103
|
-
...type(20, 650, { caps: true }), color: NAVY, padding: '6px 12px', borderRadius: 99,
|
|
104
|
-
background: alpha(NAVY, 0.09), border: `1px solid ${alpha(NAVY, 0.16)}`, whiteSpace: 'nowrap',
|
|
105
|
-
}}>{s}</span>
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
const CheckBox: React.FC<{ frame: number; at: number | null }> = ({ frame, at }) => {
|
|
109
|
-
const checked = at !== null && frame >= at;
|
|
110
|
-
const pop = at === null ? 0 : springAt(frame, at, { damping: 11, stiffness: 300 });
|
|
111
|
-
const draw = at === null ? 0 : ramp(frame, at + 1, 7, EASE.out);
|
|
112
|
-
return (
|
|
113
|
-
<div style={{
|
|
114
|
-
width: 36, height: 36, borderRadius: 10, flex: 'none', boxSizing: 'border-box',
|
|
115
|
-
border: checked ? 'none' : `2px solid ${alpha(L.ink, 0.22)}`,
|
|
116
|
-
background: checked ? `linear-gradient(180deg, #d4673e, ${ACC})` : L.surface,
|
|
117
|
-
boxShadow: checked ? `inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 8px -3px ${alpha(ACC, 0.7)}` : `inset 0 1px 2px ${alpha(L.shadow, 0.08)}`,
|
|
118
|
-
transform: checked ? `scale(${(0.75 + 0.25 * pop).toFixed(3)})` : undefined,
|
|
119
|
-
display: 'grid', placeItems: 'center',
|
|
120
|
-
}}>
|
|
121
|
-
{checked && (
|
|
122
|
-
<svg width="22" height="22" viewBox="0 0 18 18">
|
|
123
|
-
<path d="M3.5 9.5 L7.3 13 L14.5 5" stroke="#fff8f0" strokeWidth="2.6" fill="none" strokeLinecap="round" strokeLinejoin="round"
|
|
124
|
-
pathLength={1} strokeDasharray={1} strokeDashoffset={1 - draw} />
|
|
125
|
-
</svg>
|
|
126
|
-
)}
|
|
127
|
-
</div>
|
|
128
|
-
);
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// 行形态内容(面板内的行与飞行中的行共用,保证起飞同形)
|
|
132
|
-
const RowContent: React.FC<{ item: Item; hue: string; check: React.ReactNode }> = ({ item, hue, check }) => (
|
|
133
|
-
<div style={{ position: 'absolute', left: 0, top: 0, width: ROW_W, height: ROW_H, display: 'flex', alignItems: 'center', gap: 22, padding: '0 24px', boxSizing: 'border-box' }}>
|
|
134
|
-
{check}
|
|
135
|
-
<span style={{ ...type(32, 600), color: L.ink, whiteSpace: 'nowrap', flex: 1, overflow: 'hidden', textOverflow: 'ellipsis' }}>{item.title}</span>
|
|
136
|
-
<Avatar s={item.who} c={hue} size={40} />
|
|
137
|
-
</div>
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
// 卡形态内容(按卡终态尺寸布局,飞行中由外框裁切)
|
|
141
|
-
const CardContent: React.FC<{ item: Item; hue: string }> = ({ item, hue }) => (
|
|
142
|
-
<div style={{ position: 'absolute', left: 0, top: 0, width: CARD_W, height: CARD_H, padding: '26px 30px', boxSizing: 'border-box', display: 'flex', flexDirection: 'column' }}>
|
|
143
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
144
|
-
<Tag s={item.tag} />
|
|
145
|
-
<span style={{ marginLeft: 'auto', ...type(20, 500), color: L.ink3 }}>{item.meta}</span>
|
|
146
|
-
</div>
|
|
147
|
-
<div style={{ marginTop: 18, fontFamily: SERIF, fontSize: 38, fontWeight: 600, lineHeight: 1.04, letterSpacing: '-0.02em', color: L.ink }}>{item.title}</div>
|
|
148
|
-
<div style={{ marginTop: 12, ...type(24, 450), lineHeight: 1.3, color: L.ink2 }}>{item.quote}</div>
|
|
149
|
-
<div style={{ marginTop: 'auto', display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
150
|
-
<Avatar s={item.who} c={hue} size={36} />
|
|
151
|
-
<span style={{ ...type(22, 560), color: L.ink2 }}>{item.name}</span>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
const Cursor: React.FC<{ frame: number }> = ({ frame }) => {
|
|
157
|
-
// 光标路径:入画 → 三个复选框 → 按钮;段间 swift 缓动 + 轻弧线,点击时缩一下
|
|
158
|
-
const cb = (slot: number) => ({ x: ROW_X + 24 + 18 + 6, y: rowY(slot) + ROW_H / 2 + 6 });
|
|
159
|
-
const btn = { x: PANEL_X + PANEL_W / 2 + 190, y: PANEL_Y + PANEL_H - 70 };
|
|
160
|
-
const keys = [
|
|
161
|
-
{ f: 4, ...{ x: 860, y: 760 } },
|
|
162
|
-
{ f: CHECK_AT[0] - 1, ...cb(SLOTS[0]) },
|
|
163
|
-
{ f: CHECK_AT[1] - 1, ...cb(SLOTS[1]) },
|
|
164
|
-
{ f: CHECK_AT[2] - 1, ...cb(SLOTS[2]) },
|
|
165
|
-
{ f: PRESS - 2, ...btn },
|
|
166
|
-
];
|
|
167
|
-
let x = keys[0].x, y = keys[0].y;
|
|
168
|
-
for (let i = 1; i < keys.length; i++) {
|
|
169
|
-
const a = keys[i - 1], b = keys[i];
|
|
170
|
-
const p = ramp(frame, a.f + 1, b.f - a.f - 1, EASE.swift);
|
|
171
|
-
if (frame >= a.f) {
|
|
172
|
-
x = mix(a.x, b.x, p);
|
|
173
|
-
y = mix(a.y, b.y, p) - Math.sin(Math.PI * p) * 26;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
const clicks = [...CHECK_AT, PRESS];
|
|
177
|
-
let press = 1;
|
|
178
|
-
for (const c of clicks) if (frame >= c - 1 && frame < c + 6) press = Math.min(press, 1 - 0.16 * Math.sin((Math.PI * (frame - c + 1)) / 7));
|
|
179
|
-
const show = ramp(frame, 3, 8, EASE.out) * (1 - ramp(frame, PRESS + 26, 10, EASE.out));
|
|
180
|
-
return (
|
|
181
|
-
<svg width={44} height={48} viewBox="0 0 20 22" style={{
|
|
182
|
-
position: 'absolute', left: x, top: y, transform: `scale(${press.toFixed(3)})`, transformOrigin: '4px 2px', opacity: show,
|
|
183
|
-
filter: `drop-shadow(0 3px 4px ${alpha(L.shadow, 0.3)})`,
|
|
184
|
-
}}>
|
|
185
|
-
<path d="M2 1 L2 17 L6.5 13.2 L9.4 20 L12.4 18.7 L9.5 12 L15 11.6 Z" fill={L.ink} stroke="#fff8f0" strokeWidth="1.4" strokeLinejoin="round" />
|
|
186
|
-
</svg>
|
|
187
|
-
);
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
export const PanelToCanvasMaterialize: React.FC = () => {
|
|
191
|
-
const frame = useCurrentFrame();
|
|
192
|
-
|
|
193
|
-
const panelIn = ramp(frame, 0, 18, EASE.snappy);
|
|
194
|
-
const checkedCount = CHECK_AT.filter((c) => frame >= c).length;
|
|
195
|
-
const btnPress = frame < PRESS ? 0 : ramp(frame, PRESS, 3, EASE.out) * (1 - ramp(frame, PRESS + 3, 9, EASE.out));
|
|
196
|
-
const btnReady = ramp(frame, CHECK_AT[0], 8, EASE.out);
|
|
197
|
-
const landed = (k: number) => flyU(frame, k) > 0.96;
|
|
198
|
-
const doneCount = [0, 1, 2].filter((k) => frame >= LIFT_AT[k] + LIFT + 30).length;
|
|
199
|
-
|
|
200
|
-
// 相机:起飞后极缓左移 + 推近,跟着内容看向画布
|
|
201
|
-
const camP = ramp(frame, LIFT_AT[0], 94, EASE.smooth);
|
|
202
|
-
const camS = 1 + 0.025 * camP;
|
|
203
|
-
|
|
204
|
-
return (
|
|
205
|
-
<AbsoluteFill style={{ background: L.bg[1], overflow: 'hidden', fontFamily: FONT.sans }}>
|
|
206
|
-
<Stage look={L} keyLight={{ x: 0.3, y: 0.1 }} fill={{ x: 0.9, y: 0.9 }}>
|
|
207
|
-
{/* 画布点阵(板区) */}
|
|
208
|
-
<AbsoluteFill style={{
|
|
209
|
-
backgroundImage: `radial-gradient(${alpha(L.ink, 0.13)} 1.5px, transparent 1.8px)`,
|
|
210
|
-
backgroundSize: '38px 38px', backgroundPosition: '10px 14px',
|
|
211
|
-
WebkitMaskImage: 'radial-gradient(ellipse 46% 60% at 30% 56%, #000 30%, transparent 100%)',
|
|
212
|
-
maskImage: 'radial-gradient(ellipse 46% 60% at 30% 56%, #000 30%, transparent 100%)',
|
|
213
|
-
}} />
|
|
214
|
-
</Stage>
|
|
215
|
-
|
|
216
|
-
<AbsoluteFill style={{ transform: `scale(${camS.toFixed(4)})`, transformOrigin: '52% 50%' }}>
|
|
217
|
-
{/* ── 板头 ── */}
|
|
218
|
-
<div style={{ position: 'absolute', left: 120, top: 92 }}>
|
|
219
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 14, opacity: ramp(frame, 2, 12, EASE.out) }}>
|
|
220
|
-
<ShotcraftMark size={34} tone="light" />
|
|
221
|
-
<span style={{ ...type(26, 680), letterSpacing: '0.01em', color: L.ink }}>{BRAND.name}</span>
|
|
222
|
-
<span style={{ ...type(22, 650, { caps: true }), letterSpacing: '0.2em', color: ACC }}>· Storyboard</span>
|
|
223
|
-
</div>
|
|
224
|
-
<div style={{ marginTop: 10, display: 'flex', alignItems: 'baseline', gap: 26 }}>
|
|
225
|
-
<TextReveal text="Launch film" by="word" variant="rise" start={4} each={18} gap={5}
|
|
226
|
-
style={{ fontFamily: SERIF, fontSize: 84, fontWeight: 600, letterSpacing: '-0.03em', color: L.ink, lineHeight: 1 }} />
|
|
227
|
-
<div style={{ height: 44, overflow: 'hidden' }}>
|
|
228
|
-
<div style={{
|
|
229
|
-
...type(32, 500), color: L.ink2, whiteSpace: 'nowrap',
|
|
230
|
-
transform: `translateY(${((1 - ramp(frame, LIFT_AT[0] + LIFT + 30, 14, EASE.snappy)) * 110).toFixed(1)}%)`,
|
|
231
|
-
}}>
|
|
232
|
-
<span style={{ color: ACC, fontWeight: 700, fontVariantNumeric: 'tabular-nums' }}>{Math.max(1, doneCount)}</span> shot{doneCount === 1 ? '' : 's'} pinned
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
</div>
|
|
236
|
-
</div>
|
|
237
|
-
|
|
238
|
-
{/* ── 右侧面板 ── */}
|
|
239
|
-
<div style={{
|
|
240
|
-
position: 'absolute', left: PANEL_X, top: PANEL_Y, width: PANEL_W, height: PANEL_H, boxSizing: 'border-box',
|
|
241
|
-
borderRadius: 30, background: `linear-gradient(180deg, ${L.surface}, #f7f0e6)`,
|
|
242
|
-
border: `1px solid ${L.line}`, boxShadow: `inset 0 1px 0 rgba(255,255,255,0.9), ${softShadow(30, { color: L.shadow, strength: 1.3 })}`,
|
|
243
|
-
transform: `translateX(${((1 - panelIn) * 160).toFixed(2)}px)`, opacity: panelIn,
|
|
244
|
-
}}>
|
|
245
|
-
<div style={{ position: 'absolute', left: 32, top: 34, right: 32 }}>
|
|
246
|
-
<div style={{ display: 'flex', alignItems: 'baseline' }}>
|
|
247
|
-
<span style={{ ...type(44, 700), color: L.ink }}>Shot recipes</span>
|
|
248
|
-
<span style={{ marginLeft: 'auto', ...type(24, 500), color: L.ink3 }}>5 suggested</span>
|
|
249
|
-
</div>
|
|
250
|
-
<div style={{ marginTop: 14, ...type(26, 450), color: L.ink2 }}>Pick the shots for this cut.</div>
|
|
251
|
-
</div>
|
|
252
|
-
{/* 按钮 */}
|
|
253
|
-
<div style={{
|
|
254
|
-
position: 'absolute', left: 24, right: 24, bottom: 24, height: 92, borderRadius: 20,
|
|
255
|
-
background: `linear-gradient(180deg, #2c241b, ${L.ink})`, boxShadow: `inset 0 1px 0 rgba(255,255,255,0.12), ${softShadow(10 - 6 * btnPress, { color: L.shadow, strength: 1.6 })}`,
|
|
256
|
-
display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 16,
|
|
257
|
-
opacity: 0.35 + 0.65 * btnReady, transform: `scale(${(1 - 0.04 * btnPress).toFixed(4)})`,
|
|
258
|
-
}}>
|
|
259
|
-
<span style={{ ...type(32, 620), color: '#fff8f0' }}>Add to board</span>
|
|
260
|
-
<span style={{
|
|
261
|
-
minWidth: 44, height: 44, borderRadius: 22, display: 'grid', placeItems: 'center', background: ACC,
|
|
262
|
-
...type(26, 700), color: '#fff8f0', transform: `scale(${(1 + 0.12 * Math.max(0, 1 - Math.min(...CHECK_AT.map((c) => Math.abs(frame - c - 2))) / 4)).toFixed(3)})`,
|
|
263
|
-
}}>{checkedCount}</span>
|
|
264
|
-
</div>
|
|
265
|
-
</div>
|
|
266
|
-
|
|
267
|
-
{/* ── 面板行(未飞走的 / 塌陷成虚线留白的) ── */}
|
|
268
|
-
{ITEMS.map((item, slot) => {
|
|
269
|
-
const k = SLOTS.indexOf(slot);
|
|
270
|
-
const inP = ramp(frame, 6 + slot * 2.5, 16, EASE.snappy);
|
|
271
|
-
const y = rowY(slot);
|
|
272
|
-
const gone = k >= 0 && frame >= LIFT_AT[k] + LIFT;
|
|
273
|
-
const ghost = k >= 0 ? ramp(frame, LIFT_AT[k] + LIFT + 4, 10, EASE.out) : 0;
|
|
274
|
-
return (
|
|
275
|
-
<div key={slot} style={{
|
|
276
|
-
position: 'absolute', left: ROW_X, top: y, width: ROW_W, height: ROW_H,
|
|
277
|
-
opacity: inP, transform: `translateX(${((1 - panelIn) * 160 + (1 - inP) * 40).toFixed(2)}px)`,
|
|
278
|
-
}}>
|
|
279
|
-
{k >= 0 && (
|
|
280
|
-
<div style={{
|
|
281
|
-
position: 'absolute', inset: 0, borderRadius: 18, border: `2px dashed ${alpha(ACC, 0.45)}`, boxSizing: 'border-box',
|
|
282
|
-
background: alpha(ACC, 0.04), opacity: ghost, display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 12,
|
|
283
|
-
...type(24, 600), color: alpha(ACC, 0.85),
|
|
284
|
-
}}>
|
|
285
|
-
<svg width={22} height={22} viewBox="0 0 18 18"><path d="M3.5 9.5 L7.3 13 L14.5 5" stroke={ACC} strokeWidth="2.4" fill="none" strokeLinecap="round" strokeLinejoin="round" /></svg>
|
|
286
|
-
On board
|
|
287
|
-
</div>
|
|
288
|
-
)}
|
|
289
|
-
{!gone && (
|
|
290
|
-
<div style={{
|
|
291
|
-
position: 'absolute', inset: 0, borderRadius: 18, overflow: 'hidden',
|
|
292
|
-
background: k >= 0 && frame >= CHECK_AT[k] ? `linear-gradient(180deg, #fffaf3, ${L.surface})` : L.surface2,
|
|
293
|
-
border: `1px solid ${k >= 0 && frame >= CHECK_AT[k] ? alpha(ACC, 0.35) : L.line}`,
|
|
294
|
-
boxShadow: k >= 0 && frame >= CHECK_AT[k] ? `0 0 0 3px ${alpha(ACC, 0.08)}` : undefined,
|
|
295
|
-
}}>
|
|
296
|
-
<RowContent item={item} hue={AV[slot % 4]} check={<CheckBox frame={frame} at={k >= 0 ? CHECK_AT[k] : null} />} />
|
|
297
|
-
</div>
|
|
298
|
-
)}
|
|
299
|
-
</div>
|
|
300
|
-
);
|
|
301
|
-
})}
|
|
302
|
-
|
|
303
|
-
{/* ── 飞行 / 落定的卡 ── */}
|
|
304
|
-
{SLOTS.map((slot, k) => {
|
|
305
|
-
const liftStart = LIFT_AT[k];
|
|
306
|
-
if (frame < liftStart) return null;
|
|
307
|
-
const item = ITEMS[slot];
|
|
308
|
-
const pre = ramp(frame, liftStart, LIFT, EASE.out); // 拔起预备
|
|
309
|
-
const g = flyGeom(frame, k);
|
|
310
|
-
const flying = frame >= liftStart + LIFT;
|
|
311
|
-
// 速度(px/帧)→ 方向性模糊
|
|
312
|
-
const g0 = flyGeom(frame - 0.5, k), g1 = flyGeom(frame + 0.5, k);
|
|
313
|
-
const vx = flying ? g1.cx - g0.cx : 0, vy = flying ? g1.cy - g0.cy : 0;
|
|
314
|
-
// 落地压扁:u 首次越过 1 附近给一个 4f 的 scaleY 0.97 回弹
|
|
315
|
-
const landF = liftStart + LIFT + 22;
|
|
316
|
-
const squash = 1 - 0.03 * Math.sin(Math.PI * Math.min(1, Math.max(0, (frame - landF) / 6)));
|
|
317
|
-
const rowOp = 1 - ramp(g.us, 0.08, 0.32, EASE.linear);
|
|
318
|
-
const cardOp = ramp(g.us, 0.5, 0.3, EASE.linear);
|
|
319
|
-
const elev = flying ? 8 + 46 * g.arc + (landed(k) ? 0 : 6) : 4 + 10 * pre;
|
|
320
|
-
const radius = mix(18, 24, Math.min(1, g.us));
|
|
321
|
-
const w = flying ? g.w : ROW_W * (1 + 0.02 * pre);
|
|
322
|
-
const h = flying ? g.h : ROW_H * (1 + 0.02 * pre);
|
|
323
|
-
const cx = flying ? g.cx : ROW_X + ROW_W / 2;
|
|
324
|
-
const cy = flying ? g.cy : rowY(slot) + ROW_H / 2;
|
|
325
|
-
return (
|
|
326
|
-
<SpeedBlur key={slot} vx={vx} vy={vy} amount={0.32} max={14}>
|
|
327
|
-
<div style={{
|
|
328
|
-
position: 'absolute', left: cx - w / 2, top: cy - h / 2, width: w, height: h,
|
|
329
|
-
transform: `rotate(${(flying ? g.rot : 0).toFixed(3)}deg) scaleY(${squash.toFixed(4)})`, transformOrigin: '50% 100%',
|
|
330
|
-
borderRadius: radius, overflow: 'hidden', boxSizing: 'border-box',
|
|
331
|
-
background: `linear-gradient(180deg, #fffaf3, ${L.surface})`,
|
|
332
|
-
border: `1px solid ${alpha(ACC, 0.35 * (1 - cardOp))}`,
|
|
333
|
-
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.95), ${softShadow(elev, { color: L.shadow, strength: 1.5 })}`,
|
|
334
|
-
}}>
|
|
335
|
-
{/* 赤陶顶线:卡形态的身份标记 */}
|
|
336
|
-
<div style={{ position: 'absolute', left: 0, right: 0, top: 0, height: 6, background: ACC, opacity: cardOp }} />
|
|
337
|
-
<div style={{ position: 'absolute', inset: 0, opacity: rowOp }}>
|
|
338
|
-
<RowContent item={item} hue={AV[slot % 4]} check={<CheckBox frame={frame} at={CHECK_AT[k]} />} />
|
|
339
|
-
</div>
|
|
340
|
-
<div style={{ position: 'absolute', inset: 0, opacity: cardOp }}>
|
|
341
|
-
<CardContent item={item} hue={AV[slot % 4]} />
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
344
|
-
</SpeedBlur>
|
|
345
|
-
);
|
|
346
|
-
})}
|
|
347
|
-
|
|
348
|
-
<Cursor frame={frame} />
|
|
349
|
-
</AbsoluteFill>
|
|
350
|
-
</AbsoluteFill>
|
|
351
|
-
);
|
|
352
|
-
};
|
|
1
|
+
// panel-to-canvas-materialize —— miro-promo 84–92s
|
|
2
|
+
// 侧面板列表行逐个打勾 → 按钮按下 → 三行沿上抛弧线错峰飞出面板、跨容器变形成画布上的三张卡(行→卡形态迁移)。
|
|
3
|
+
//
|
|
4
|
+
// 第二轮重设计(沙色暖场 · 研究洞察上墙):
|
|
5
|
+
// - look = sand(米色纸面 · 赤陶强调 · 藏青点缀)。产品即 video-shotcraft:右侧「Shot recipes」面板列着 5 张镜头配方卡
|
|
6
|
+
// (32px 行标题、分类标签与挑卡人),左侧是一块开放的分镜板(标志 + 衬线大标题「Launch film」+ 淡点阵画布)。
|
|
7
|
+
// - 动作链有因果:光标逐个点三个复选框(赤陶色勾 spring 弹出、勾线描出)→ 移到「Add 3 to board」按下 →
|
|
8
|
+
// 三行先"拔起"(预备:放大 2% + 阴影加深 4f)再沿二次贝塞尔上抛弧线飞向画布,错峰 6f。
|
|
9
|
+
// - 形态迁移(本式命门):位置走弧线先到,宽高 / 圆角晚 3f 收敛(父先子后);行内容在 u<0.4 淡出、卡内容 u>0.5 淡入,
|
|
10
|
+
// 中段两态绝不同显;飞行中按速度做方向性运动模糊,阴影随弧线抬高变大变虚,落地 4f 压扁回弹 + 接触影收紧。
|
|
11
|
+
// - 行槽不复原:飞走的行塌成赤陶虚线留白「On board」,"迁移"不是"复制"。
|
|
12
|
+
// - 相机:起飞后整体极缓推近(总 2.5%);落定后板头计数「3 shots pinned」升起,hold 成海报。
|
|
13
|
+
//
|
|
14
|
+
// 时间表(30fps,共 150f):
|
|
15
|
+
// 0–18 面板从右滑入(snappy)、5 行错峰;板头衬线标题逐词升起
|
|
16
|
+
// 14/24/34 光标依次点中三个复选框(勾 spring damping 11,勾线 7f 描出),按钮计数 1→2→3
|
|
17
|
+
// 48 光标到按钮,52f 按下(scale 0.94 → 回弹)
|
|
18
|
+
// 56/62/68 三行拔起 4f → 起飞 40f(spring damping 17,弧线中点上抬 220px)
|
|
19
|
+
// ~104–112 三卡依次落地(压扁回弹、倾角 −2.5/1.8/−1.2°),行槽塌成虚线
|
|
20
|
+
// 112–150 hold:板头「3 shots pinned」计数升起,相机极缓推进
|
|
21
|
+
import React from 'react';
|
|
22
|
+
import { AbsoluteFill, useCurrentFrame } from 'remotion';
|
|
23
|
+
import { EASE, FONT, SpeedBlur, mix, ramp, softShadow } from '../../_fixtures/Polish';
|
|
24
|
+
import { LOOKS, SERIF, Stage, TextReveal, alpha, springAt, type } from '../../_fixtures/Look';
|
|
25
|
+
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
26
|
+
|
|
27
|
+
export const PANEL_TO_CANVAS_MATERIALIZE_DURATION = 150;
|
|
28
|
+
|
|
29
|
+
const L = LOOKS.sand;
|
|
30
|
+
const ACC = L.accent; // 赤陶
|
|
31
|
+
const NAVY = L.accent2; // 藏青(点缀:标签)
|
|
32
|
+
|
|
33
|
+
// ── 面板几何 ──
|
|
34
|
+
const PANEL_X = 1164;
|
|
35
|
+
const PANEL_Y = 96;
|
|
36
|
+
const PANEL_W = 656;
|
|
37
|
+
const PANEL_H = 888;
|
|
38
|
+
const ROW_X = PANEL_X + 24;
|
|
39
|
+
const ROW_W = PANEL_W - 48;
|
|
40
|
+
const ROW_H = 104;
|
|
41
|
+
const ROW_STEP = 116;
|
|
42
|
+
const ROWS_TOP = 262; // 第一行的画面 y(面板内布局与飞行起点共用,起飞零跳变)
|
|
43
|
+
|
|
44
|
+
// ── 卡片落位(画布左区)──
|
|
45
|
+
const CARD_W = 486;
|
|
46
|
+
const CARD_H = 300;
|
|
47
|
+
const TARGETS = [
|
|
48
|
+
{ x: 116, y: 268, rot: -2.5 },
|
|
49
|
+
{ x: 636, y: 306, rot: 1.8 },
|
|
50
|
+
{ x: 330, y: 640, rot: -1.2 },
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
const CHECK_AT = [14, 24, 34];
|
|
54
|
+
const PRESS = 52;
|
|
55
|
+
const LIFT_AT = [56, 62, 68];
|
|
56
|
+
const LIFT = 4; // 拔起预备帧
|
|
57
|
+
const FLY_DUR = 40;
|
|
58
|
+
|
|
59
|
+
type Item = { title: string; tag: string; who: string; name: string; quote: string; meta: string };
|
|
60
|
+
const ITEMS: Item[] = [
|
|
61
|
+
// 镜头配方卡(库里真有的卡名);quote = 挑卡人的备注,meta = 示意时长
|
|
62
|
+
{ title: 'Crash zoom punch-in', tag: 'Camera', who: 'AO', name: 'Ama Owusu', quote: '“Lands right on the beat drop.”', meta: '24 frames' },
|
|
63
|
+
{ title: 'Text as mask opener', tag: 'Opening', who: 'LB', name: 'Lars Berg', quote: '', meta: '' },
|
|
64
|
+
{ title: 'Cursor flyover tour', tag: 'Interaction', who: 'PS', name: 'Priya Sethi', quote: '“Reads like a real screen take.”', meta: '96 frames' },
|
|
65
|
+
{ title: 'Chart axis rescale shock', tag: 'Data', who: 'TM', name: 'Tomás Mena', quote: 'Rescales on the cut, holds two beats.', meta: '72 frames' },
|
|
66
|
+
{ title: 'Grain dissolve outro', tag: 'Outro', who: 'AO', name: 'Ama Owusu', quote: '', meta: '' },
|
|
67
|
+
];
|
|
68
|
+
const SLOTS = [0, 2, 3]; // 被勾选的行(不连续:读作"挑选"而非"全选")
|
|
69
|
+
const AV = ['#c4552d', '#3d5a80', '#7c6a4f', '#9a5b3f'];
|
|
70
|
+
|
|
71
|
+
const rowY = (slot: number) => ROWS_TOP + slot * ROW_STEP;
|
|
72
|
+
|
|
73
|
+
// 飞行进度(spring,可能短暂 >1)
|
|
74
|
+
const flyU = (f: number, k: number) => springAt(f, LIFT_AT[k] + LIFT, { damping: 17, stiffness: 95, mass: 0.9 });
|
|
75
|
+
|
|
76
|
+
// 飞行几何:位置走二次贝塞尔(中点上抬),尺寸晚 3f 收敛
|
|
77
|
+
const flyGeom = (f: number, k: number) => {
|
|
78
|
+
const slot = SLOTS[k];
|
|
79
|
+
const u = flyU(f, k);
|
|
80
|
+
const us = flyU(f - 3, k); // 尺寸晚 3f
|
|
81
|
+
const t = TARGETS[k];
|
|
82
|
+
const sx = ROW_X + ROW_W / 2, sy = rowY(slot) + ROW_H / 2;
|
|
83
|
+
const ex = t.x + CARD_W / 2, ey = t.y + CARD_H / 2;
|
|
84
|
+
const cx = (sx + ex) / 2, cy = Math.min(sy, ey) - 220;
|
|
85
|
+
const q = Math.min(1, Math.max(0, u));
|
|
86
|
+
const bx = (1 - q) * (1 - q) * sx + 2 * (1 - q) * q * cx + q * q * ex + (u - q) * (ex - cx) * 0.6;
|
|
87
|
+
const by = (1 - q) * (1 - q) * sy + 2 * (1 - q) * q * cy + q * q * ey + (u - q) * (ey - cy) * 0.6;
|
|
88
|
+
const w = mix(ROW_W, CARD_W, us);
|
|
89
|
+
const h = mix(ROW_H, CARD_H, us);
|
|
90
|
+
return { u, us, cx: bx, cy: by, w, h, rot: t.rot * u, arc: Math.sin(Math.PI * q) };
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const Avatar: React.FC<{ s: string; c: string; size?: number }> = ({ s, c, size = 44 }) => (
|
|
94
|
+
<div style={{
|
|
95
|
+
width: size, height: size, borderRadius: 99, flex: 'none', display: 'grid', placeItems: 'center',
|
|
96
|
+
background: `linear-gradient(180deg, ${alpha(c, 0.85)}, ${c})`, color: '#fff8f0',
|
|
97
|
+
...type(size * 0.38, 650), letterSpacing: '0.02em', boxShadow: 'inset 0 1px 0 rgba(255,255,255,0.3)',
|
|
98
|
+
}}>{s}</div>
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
const Tag: React.FC<{ s: string }> = ({ s }) => (
|
|
102
|
+
<span style={{
|
|
103
|
+
...type(20, 650, { caps: true }), color: NAVY, padding: '6px 12px', borderRadius: 99,
|
|
104
|
+
background: alpha(NAVY, 0.09), border: `1px solid ${alpha(NAVY, 0.16)}`, whiteSpace: 'nowrap',
|
|
105
|
+
}}>{s}</span>
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
const CheckBox: React.FC<{ frame: number; at: number | null }> = ({ frame, at }) => {
|
|
109
|
+
const checked = at !== null && frame >= at;
|
|
110
|
+
const pop = at === null ? 0 : springAt(frame, at, { damping: 11, stiffness: 300 });
|
|
111
|
+
const draw = at === null ? 0 : ramp(frame, at + 1, 7, EASE.out);
|
|
112
|
+
return (
|
|
113
|
+
<div style={{
|
|
114
|
+
width: 36, height: 36, borderRadius: 10, flex: 'none', boxSizing: 'border-box',
|
|
115
|
+
border: checked ? 'none' : `2px solid ${alpha(L.ink, 0.22)}`,
|
|
116
|
+
background: checked ? `linear-gradient(180deg, #d4673e, ${ACC})` : L.surface,
|
|
117
|
+
boxShadow: checked ? `inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 8px -3px ${alpha(ACC, 0.7)}` : `inset 0 1px 2px ${alpha(L.shadow, 0.08)}`,
|
|
118
|
+
transform: checked ? `scale(${(0.75 + 0.25 * pop).toFixed(3)})` : undefined,
|
|
119
|
+
display: 'grid', placeItems: 'center',
|
|
120
|
+
}}>
|
|
121
|
+
{checked && (
|
|
122
|
+
<svg width="22" height="22" viewBox="0 0 18 18">
|
|
123
|
+
<path d="M3.5 9.5 L7.3 13 L14.5 5" stroke="#fff8f0" strokeWidth="2.6" fill="none" strokeLinecap="round" strokeLinejoin="round"
|
|
124
|
+
pathLength={1} strokeDasharray={1} strokeDashoffset={1 - draw} />
|
|
125
|
+
</svg>
|
|
126
|
+
)}
|
|
127
|
+
</div>
|
|
128
|
+
);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// 行形态内容(面板内的行与飞行中的行共用,保证起飞同形)
|
|
132
|
+
const RowContent: React.FC<{ item: Item; hue: string; check: React.ReactNode }> = ({ item, hue, check }) => (
|
|
133
|
+
<div style={{ position: 'absolute', left: 0, top: 0, width: ROW_W, height: ROW_H, display: 'flex', alignItems: 'center', gap: 22, padding: '0 24px', boxSizing: 'border-box' }}>
|
|
134
|
+
{check}
|
|
135
|
+
<span style={{ ...type(32, 600), color: L.ink, whiteSpace: 'nowrap', flex: 1, overflow: 'hidden', textOverflow: 'ellipsis' }}>{item.title}</span>
|
|
136
|
+
<Avatar s={item.who} c={hue} size={40} />
|
|
137
|
+
</div>
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
// 卡形态内容(按卡终态尺寸布局,飞行中由外框裁切)
|
|
141
|
+
const CardContent: React.FC<{ item: Item; hue: string }> = ({ item, hue }) => (
|
|
142
|
+
<div style={{ position: 'absolute', left: 0, top: 0, width: CARD_W, height: CARD_H, padding: '26px 30px', boxSizing: 'border-box', display: 'flex', flexDirection: 'column' }}>
|
|
143
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
144
|
+
<Tag s={item.tag} />
|
|
145
|
+
<span style={{ marginLeft: 'auto', ...type(20, 500), color: L.ink3 }}>{item.meta}</span>
|
|
146
|
+
</div>
|
|
147
|
+
<div style={{ marginTop: 18, fontFamily: SERIF, fontSize: 38, fontWeight: 600, lineHeight: 1.04, letterSpacing: '-0.02em', color: L.ink }}>{item.title}</div>
|
|
148
|
+
<div style={{ marginTop: 12, ...type(24, 450), lineHeight: 1.3, color: L.ink2 }}>{item.quote}</div>
|
|
149
|
+
<div style={{ marginTop: 'auto', display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
150
|
+
<Avatar s={item.who} c={hue} size={36} />
|
|
151
|
+
<span style={{ ...type(22, 560), color: L.ink2 }}>{item.name}</span>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
const Cursor: React.FC<{ frame: number }> = ({ frame }) => {
|
|
157
|
+
// 光标路径:入画 → 三个复选框 → 按钮;段间 swift 缓动 + 轻弧线,点击时缩一下
|
|
158
|
+
const cb = (slot: number) => ({ x: ROW_X + 24 + 18 + 6, y: rowY(slot) + ROW_H / 2 + 6 });
|
|
159
|
+
const btn = { x: PANEL_X + PANEL_W / 2 + 190, y: PANEL_Y + PANEL_H - 70 };
|
|
160
|
+
const keys = [
|
|
161
|
+
{ f: 4, ...{ x: 860, y: 760 } },
|
|
162
|
+
{ f: CHECK_AT[0] - 1, ...cb(SLOTS[0]) },
|
|
163
|
+
{ f: CHECK_AT[1] - 1, ...cb(SLOTS[1]) },
|
|
164
|
+
{ f: CHECK_AT[2] - 1, ...cb(SLOTS[2]) },
|
|
165
|
+
{ f: PRESS - 2, ...btn },
|
|
166
|
+
];
|
|
167
|
+
let x = keys[0].x, y = keys[0].y;
|
|
168
|
+
for (let i = 1; i < keys.length; i++) {
|
|
169
|
+
const a = keys[i - 1], b = keys[i];
|
|
170
|
+
const p = ramp(frame, a.f + 1, b.f - a.f - 1, EASE.swift);
|
|
171
|
+
if (frame >= a.f) {
|
|
172
|
+
x = mix(a.x, b.x, p);
|
|
173
|
+
y = mix(a.y, b.y, p) - Math.sin(Math.PI * p) * 26;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const clicks = [...CHECK_AT, PRESS];
|
|
177
|
+
let press = 1;
|
|
178
|
+
for (const c of clicks) if (frame >= c - 1 && frame < c + 6) press = Math.min(press, 1 - 0.16 * Math.sin((Math.PI * (frame - c + 1)) / 7));
|
|
179
|
+
const show = ramp(frame, 3, 8, EASE.out) * (1 - ramp(frame, PRESS + 26, 10, EASE.out));
|
|
180
|
+
return (
|
|
181
|
+
<svg width={44} height={48} viewBox="0 0 20 22" style={{
|
|
182
|
+
position: 'absolute', left: x, top: y, transform: `scale(${press.toFixed(3)})`, transformOrigin: '4px 2px', opacity: show,
|
|
183
|
+
filter: `drop-shadow(0 3px 4px ${alpha(L.shadow, 0.3)})`,
|
|
184
|
+
}}>
|
|
185
|
+
<path d="M2 1 L2 17 L6.5 13.2 L9.4 20 L12.4 18.7 L9.5 12 L15 11.6 Z" fill={L.ink} stroke="#fff8f0" strokeWidth="1.4" strokeLinejoin="round" />
|
|
186
|
+
</svg>
|
|
187
|
+
);
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export const PanelToCanvasMaterialize: React.FC = () => {
|
|
191
|
+
const frame = useCurrentFrame();
|
|
192
|
+
|
|
193
|
+
const panelIn = ramp(frame, 0, 18, EASE.snappy);
|
|
194
|
+
const checkedCount = CHECK_AT.filter((c) => frame >= c).length;
|
|
195
|
+
const btnPress = frame < PRESS ? 0 : ramp(frame, PRESS, 3, EASE.out) * (1 - ramp(frame, PRESS + 3, 9, EASE.out));
|
|
196
|
+
const btnReady = ramp(frame, CHECK_AT[0], 8, EASE.out);
|
|
197
|
+
const landed = (k: number) => flyU(frame, k) > 0.96;
|
|
198
|
+
const doneCount = [0, 1, 2].filter((k) => frame >= LIFT_AT[k] + LIFT + 30).length;
|
|
199
|
+
|
|
200
|
+
// 相机:起飞后极缓左移 + 推近,跟着内容看向画布
|
|
201
|
+
const camP = ramp(frame, LIFT_AT[0], 94, EASE.smooth);
|
|
202
|
+
const camS = 1 + 0.025 * camP;
|
|
203
|
+
|
|
204
|
+
return (
|
|
205
|
+
<AbsoluteFill style={{ background: L.bg[1], overflow: 'hidden', fontFamily: FONT.sans }}>
|
|
206
|
+
<Stage look={L} keyLight={{ x: 0.3, y: 0.1 }} fill={{ x: 0.9, y: 0.9 }}>
|
|
207
|
+
{/* 画布点阵(板区) */}
|
|
208
|
+
<AbsoluteFill style={{
|
|
209
|
+
backgroundImage: `radial-gradient(${alpha(L.ink, 0.13)} 1.5px, transparent 1.8px)`,
|
|
210
|
+
backgroundSize: '38px 38px', backgroundPosition: '10px 14px',
|
|
211
|
+
WebkitMaskImage: 'radial-gradient(ellipse 46% 60% at 30% 56%, #000 30%, transparent 100%)',
|
|
212
|
+
maskImage: 'radial-gradient(ellipse 46% 60% at 30% 56%, #000 30%, transparent 100%)',
|
|
213
|
+
}} />
|
|
214
|
+
</Stage>
|
|
215
|
+
|
|
216
|
+
<AbsoluteFill style={{ transform: `scale(${camS.toFixed(4)})`, transformOrigin: '52% 50%' }}>
|
|
217
|
+
{/* ── 板头 ── */}
|
|
218
|
+
<div style={{ position: 'absolute', left: 120, top: 92 }}>
|
|
219
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 14, opacity: ramp(frame, 2, 12, EASE.out) }}>
|
|
220
|
+
<ShotcraftMark size={34} tone="light" />
|
|
221
|
+
<span style={{ ...type(26, 680), letterSpacing: '0.01em', color: L.ink }}>{BRAND.name}</span>
|
|
222
|
+
<span style={{ ...type(22, 650, { caps: true }), letterSpacing: '0.2em', color: ACC }}>· Storyboard</span>
|
|
223
|
+
</div>
|
|
224
|
+
<div style={{ marginTop: 10, display: 'flex', alignItems: 'baseline', gap: 26 }}>
|
|
225
|
+
<TextReveal text="Launch film" by="word" variant="rise" start={4} each={18} gap={5}
|
|
226
|
+
style={{ fontFamily: SERIF, fontSize: 84, fontWeight: 600, letterSpacing: '-0.03em', color: L.ink, lineHeight: 1 }} />
|
|
227
|
+
<div style={{ height: 44, overflow: 'hidden' }}>
|
|
228
|
+
<div style={{
|
|
229
|
+
...type(32, 500), color: L.ink2, whiteSpace: 'nowrap',
|
|
230
|
+
transform: `translateY(${((1 - ramp(frame, LIFT_AT[0] + LIFT + 30, 14, EASE.snappy)) * 110).toFixed(1)}%)`,
|
|
231
|
+
}}>
|
|
232
|
+
<span style={{ color: ACC, fontWeight: 700, fontVariantNumeric: 'tabular-nums' }}>{Math.max(1, doneCount)}</span> shot{doneCount === 1 ? '' : 's'} pinned
|
|
233
|
+
</div>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
{/* ── 右侧面板 ── */}
|
|
239
|
+
<div style={{
|
|
240
|
+
position: 'absolute', left: PANEL_X, top: PANEL_Y, width: PANEL_W, height: PANEL_H, boxSizing: 'border-box',
|
|
241
|
+
borderRadius: 30, background: `linear-gradient(180deg, ${L.surface}, #f7f0e6)`,
|
|
242
|
+
border: `1px solid ${L.line}`, boxShadow: `inset 0 1px 0 rgba(255,255,255,0.9), ${softShadow(30, { color: L.shadow, strength: 1.3 })}`,
|
|
243
|
+
transform: `translateX(${((1 - panelIn) * 160).toFixed(2)}px)`, opacity: panelIn,
|
|
244
|
+
}}>
|
|
245
|
+
<div style={{ position: 'absolute', left: 32, top: 34, right: 32 }}>
|
|
246
|
+
<div style={{ display: 'flex', alignItems: 'baseline' }}>
|
|
247
|
+
<span style={{ ...type(44, 700), color: L.ink }}>Shot recipes</span>
|
|
248
|
+
<span style={{ marginLeft: 'auto', ...type(24, 500), color: L.ink3 }}>5 suggested</span>
|
|
249
|
+
</div>
|
|
250
|
+
<div style={{ marginTop: 14, ...type(26, 450), color: L.ink2 }}>Pick the shots for this cut.</div>
|
|
251
|
+
</div>
|
|
252
|
+
{/* 按钮 */}
|
|
253
|
+
<div style={{
|
|
254
|
+
position: 'absolute', left: 24, right: 24, bottom: 24, height: 92, borderRadius: 20,
|
|
255
|
+
background: `linear-gradient(180deg, #2c241b, ${L.ink})`, boxShadow: `inset 0 1px 0 rgba(255,255,255,0.12), ${softShadow(10 - 6 * btnPress, { color: L.shadow, strength: 1.6 })}`,
|
|
256
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 16,
|
|
257
|
+
opacity: 0.35 + 0.65 * btnReady, transform: `scale(${(1 - 0.04 * btnPress).toFixed(4)})`,
|
|
258
|
+
}}>
|
|
259
|
+
<span style={{ ...type(32, 620), color: '#fff8f0' }}>Add to board</span>
|
|
260
|
+
<span style={{
|
|
261
|
+
minWidth: 44, height: 44, borderRadius: 22, display: 'grid', placeItems: 'center', background: ACC,
|
|
262
|
+
...type(26, 700), color: '#fff8f0', transform: `scale(${(1 + 0.12 * Math.max(0, 1 - Math.min(...CHECK_AT.map((c) => Math.abs(frame - c - 2))) / 4)).toFixed(3)})`,
|
|
263
|
+
}}>{checkedCount}</span>
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
{/* ── 面板行(未飞走的 / 塌陷成虚线留白的) ── */}
|
|
268
|
+
{ITEMS.map((item, slot) => {
|
|
269
|
+
const k = SLOTS.indexOf(slot);
|
|
270
|
+
const inP = ramp(frame, 6 + slot * 2.5, 16, EASE.snappy);
|
|
271
|
+
const y = rowY(slot);
|
|
272
|
+
const gone = k >= 0 && frame >= LIFT_AT[k] + LIFT;
|
|
273
|
+
const ghost = k >= 0 ? ramp(frame, LIFT_AT[k] + LIFT + 4, 10, EASE.out) : 0;
|
|
274
|
+
return (
|
|
275
|
+
<div key={slot} style={{
|
|
276
|
+
position: 'absolute', left: ROW_X, top: y, width: ROW_W, height: ROW_H,
|
|
277
|
+
opacity: inP, transform: `translateX(${((1 - panelIn) * 160 + (1 - inP) * 40).toFixed(2)}px)`,
|
|
278
|
+
}}>
|
|
279
|
+
{k >= 0 && (
|
|
280
|
+
<div style={{
|
|
281
|
+
position: 'absolute', inset: 0, borderRadius: 18, border: `2px dashed ${alpha(ACC, 0.45)}`, boxSizing: 'border-box',
|
|
282
|
+
background: alpha(ACC, 0.04), opacity: ghost, display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 12,
|
|
283
|
+
...type(24, 600), color: alpha(ACC, 0.85),
|
|
284
|
+
}}>
|
|
285
|
+
<svg width={22} height={22} viewBox="0 0 18 18"><path d="M3.5 9.5 L7.3 13 L14.5 5" stroke={ACC} strokeWidth="2.4" fill="none" strokeLinecap="round" strokeLinejoin="round" /></svg>
|
|
286
|
+
On board
|
|
287
|
+
</div>
|
|
288
|
+
)}
|
|
289
|
+
{!gone && (
|
|
290
|
+
<div style={{
|
|
291
|
+
position: 'absolute', inset: 0, borderRadius: 18, overflow: 'hidden',
|
|
292
|
+
background: k >= 0 && frame >= CHECK_AT[k] ? `linear-gradient(180deg, #fffaf3, ${L.surface})` : L.surface2,
|
|
293
|
+
border: `1px solid ${k >= 0 && frame >= CHECK_AT[k] ? alpha(ACC, 0.35) : L.line}`,
|
|
294
|
+
boxShadow: k >= 0 && frame >= CHECK_AT[k] ? `0 0 0 3px ${alpha(ACC, 0.08)}` : undefined,
|
|
295
|
+
}}>
|
|
296
|
+
<RowContent item={item} hue={AV[slot % 4]} check={<CheckBox frame={frame} at={k >= 0 ? CHECK_AT[k] : null} />} />
|
|
297
|
+
</div>
|
|
298
|
+
)}
|
|
299
|
+
</div>
|
|
300
|
+
);
|
|
301
|
+
})}
|
|
302
|
+
|
|
303
|
+
{/* ── 飞行 / 落定的卡 ── */}
|
|
304
|
+
{SLOTS.map((slot, k) => {
|
|
305
|
+
const liftStart = LIFT_AT[k];
|
|
306
|
+
if (frame < liftStart) return null;
|
|
307
|
+
const item = ITEMS[slot];
|
|
308
|
+
const pre = ramp(frame, liftStart, LIFT, EASE.out); // 拔起预备
|
|
309
|
+
const g = flyGeom(frame, k);
|
|
310
|
+
const flying = frame >= liftStart + LIFT;
|
|
311
|
+
// 速度(px/帧)→ 方向性模糊
|
|
312
|
+
const g0 = flyGeom(frame - 0.5, k), g1 = flyGeom(frame + 0.5, k);
|
|
313
|
+
const vx = flying ? g1.cx - g0.cx : 0, vy = flying ? g1.cy - g0.cy : 0;
|
|
314
|
+
// 落地压扁:u 首次越过 1 附近给一个 4f 的 scaleY 0.97 回弹
|
|
315
|
+
const landF = liftStart + LIFT + 22;
|
|
316
|
+
const squash = 1 - 0.03 * Math.sin(Math.PI * Math.min(1, Math.max(0, (frame - landF) / 6)));
|
|
317
|
+
const rowOp = 1 - ramp(g.us, 0.08, 0.32, EASE.linear);
|
|
318
|
+
const cardOp = ramp(g.us, 0.5, 0.3, EASE.linear);
|
|
319
|
+
const elev = flying ? 8 + 46 * g.arc + (landed(k) ? 0 : 6) : 4 + 10 * pre;
|
|
320
|
+
const radius = mix(18, 24, Math.min(1, g.us));
|
|
321
|
+
const w = flying ? g.w : ROW_W * (1 + 0.02 * pre);
|
|
322
|
+
const h = flying ? g.h : ROW_H * (1 + 0.02 * pre);
|
|
323
|
+
const cx = flying ? g.cx : ROW_X + ROW_W / 2;
|
|
324
|
+
const cy = flying ? g.cy : rowY(slot) + ROW_H / 2;
|
|
325
|
+
return (
|
|
326
|
+
<SpeedBlur key={slot} vx={vx} vy={vy} amount={0.32} max={14}>
|
|
327
|
+
<div style={{
|
|
328
|
+
position: 'absolute', left: cx - w / 2, top: cy - h / 2, width: w, height: h,
|
|
329
|
+
transform: `rotate(${(flying ? g.rot : 0).toFixed(3)}deg) scaleY(${squash.toFixed(4)})`, transformOrigin: '50% 100%',
|
|
330
|
+
borderRadius: radius, overflow: 'hidden', boxSizing: 'border-box',
|
|
331
|
+
background: `linear-gradient(180deg, #fffaf3, ${L.surface})`,
|
|
332
|
+
border: `1px solid ${alpha(ACC, 0.35 * (1 - cardOp))}`,
|
|
333
|
+
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.95), ${softShadow(elev, { color: L.shadow, strength: 1.5 })}`,
|
|
334
|
+
}}>
|
|
335
|
+
{/* 赤陶顶线:卡形态的身份标记 */}
|
|
336
|
+
<div style={{ position: 'absolute', left: 0, right: 0, top: 0, height: 6, background: ACC, opacity: cardOp }} />
|
|
337
|
+
<div style={{ position: 'absolute', inset: 0, opacity: rowOp }}>
|
|
338
|
+
<RowContent item={item} hue={AV[slot % 4]} check={<CheckBox frame={frame} at={CHECK_AT[k]} />} />
|
|
339
|
+
</div>
|
|
340
|
+
<div style={{ position: 'absolute', inset: 0, opacity: cardOp }}>
|
|
341
|
+
<CardContent item={item} hue={AV[slot % 4]} />
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
</SpeedBlur>
|
|
345
|
+
);
|
|
346
|
+
})}
|
|
347
|
+
|
|
348
|
+
<Cursor frame={frame} />
|
|
349
|
+
</AbsoluteFill>
|
|
350
|
+
</AbsoluteFill>
|
|
351
|
+
);
|
|
352
|
+
};
|