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,244 +1,244 @@
|
|
|
1
|
-
// draw-svg-trace —— 描边生长圈注(第二轮重设计 · 纸墨编辑风)
|
|
2
|
-
// 手法不变:一条带笔头的墨线沿元素轮廓跑一圈把它"画"出来 → 闭合瞬间加深加粗(白底上不用发光)→
|
|
3
|
-
// 描边交棒给元素自身边框、内容上墨 → 同一套路短版给重点词画一笔下划线。
|
|
4
|
-
//
|
|
5
|
-
// 设计决定
|
|
6
|
-
// - look = paper(暖白纸 · 墨 · 朱红)。主体放大到 1120×660(画宽 58%),内容是一张出版级 video-shotcraft 渲染报告卡:
|
|
7
|
-
// 眉题 mono、两段式大标题「Cuts on the beat / 100%」(100% 用 188px 黑体,是全镜头的重点词)、32px 说明、
|
|
8
|
-
// 右侧 12 根逐镜头能量柱(末三根朱红)、署名行(video-shotcraft 标志 + 字标)。
|
|
9
|
-
// - 开场就有东西:绘图纸点阵底 + 四角先长出裁切标记(印刷对位线)——观众先知道"这里要画一个东西",笔再沿轮廓跑一圈。
|
|
10
|
-
// - 笔头:主线 6px 墨 + 三段渐细短 dash + 实心笔尖(按圆角矩形弧长精确定位,带落影);
|
|
11
|
-
// 描边速度 in-out(起笔、收笔有呼吸),笔尖在四个圆角处自然减速(弧长参数化本身不减速,靠 in-out 整体曲线)。
|
|
12
|
-
// - 闭合:2f 冲纯黑 + 6→11px 加粗,6f 回落;裁切标记同时向外"弹"一下后退场。
|
|
13
|
-
// - 上墨:内容自上而下 3f 错峰由虚到实 + 上浮;柱子从基线长出(错峰 1.5f,末三根最后、朱红);卡片从贴地升起(阴影长出来)。
|
|
14
|
-
// - 第二用法:100% 下一笔手绘朱红马克笔下划线(略带弧度的路径,18f out-cubic,笔头跟随),画完常驻。
|
|
15
|
-
//
|
|
16
|
-
// 时间表(30fps,共 132f)
|
|
17
|
-
// 0–12 裁切标记从四角长出(snappy,错峰 2f)
|
|
18
|
-
// 10–50 轮廓描边 40f(in-out cubic),笔头可见
|
|
19
|
-
// 50–58 闭合闪:50–52 冲黑加粗、52–58 回落;裁切标记外弹淡出
|
|
20
|
-
// 50–74 上墨:卡底 + 内容逐块(3f 错峰)、柱图长出、卡片升起
|
|
21
|
-
// 56–66 描边淡出 → 卡片自身发丝边淡入
|
|
22
|
-
// 74–92 100% 下划线 18f
|
|
23
|
-
// 92–132 hold 40f:0.9% 极缓推近
|
|
24
|
-
import React from 'react';
|
|
25
|
-
import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
26
|
-
import { EASE, FONT, ramp, softShadow } from '../../_fixtures/Polish';
|
|
27
|
-
import { LOOKS, Stage, alpha, type } from '../../_fixtures/Look';
|
|
28
|
-
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
29
|
-
|
|
30
|
-
export const DRAW_SVG_TRACE_DURATION = 132;
|
|
31
|
-
|
|
32
|
-
const L = LOOKS.paper;
|
|
33
|
-
const CW = 1120;
|
|
34
|
-
const CH = 660;
|
|
35
|
-
const CX = (1920 - CW) / 2; // 400
|
|
36
|
-
const CY = (1080 - CH) / 2; // 210
|
|
37
|
-
const RX = 28; // 与卡片圆角一致(交棒不错型)
|
|
38
|
-
const PEN = 0.04; // 笔头 dash 长度(占整圈比例)
|
|
39
|
-
const INK = L.ink;
|
|
40
|
-
const TRACE0 = 10, TRACE1 = 50;
|
|
41
|
-
|
|
42
|
-
// 圆角矩形轮廓上弧长比例 u∈[0,1] 的点(与 SVG <rect> 的路径起点/方向一致:从上边 (x+rx, y) 顺时针)
|
|
43
|
-
const rrPoint = (u: number, x: number, y: number, w: number, h: number, r: number): [number, number] => {
|
|
44
|
-
const sx = w - 2 * r, sy = h - 2 * r, arc = (Math.PI * r) / 2;
|
|
45
|
-
const Ltot = 2 * sx + 2 * sy + 4 * arc;
|
|
46
|
-
let s = (((u % 1) + 1) % 1) * Ltot;
|
|
47
|
-
const segs: Array<[number, (k: number) => [number, number]]> = [
|
|
48
|
-
[sx, (k) => [x + r + k * sx, y]],
|
|
49
|
-
[arc, (k) => [x + w - r + r * Math.sin((k * Math.PI) / 2), y + r - r * Math.cos((k * Math.PI) / 2)]],
|
|
50
|
-
[sy, (k) => [x + w, y + r + k * sy]],
|
|
51
|
-
[arc, (k) => [x + w - r + r * Math.cos((k * Math.PI) / 2), y + h - r + r * Math.sin((k * Math.PI) / 2)]],
|
|
52
|
-
[sx, (k) => [x + w - r - k * sx, y + h]],
|
|
53
|
-
[arc, (k) => [x + r - r * Math.sin((k * Math.PI) / 2), y + h - r + r * Math.cos((k * Math.PI) / 2)]],
|
|
54
|
-
[sy, (k) => [x, y + h - r - k * sy]],
|
|
55
|
-
[arc, (k) => [x + r - r * Math.cos((k * Math.PI) / 2), y + r - r * Math.sin((k * Math.PI) / 2)]],
|
|
56
|
-
];
|
|
57
|
-
for (const [len, f] of segs) {
|
|
58
|
-
if (s <= len) return f(len > 0 ? s / len : 0);
|
|
59
|
-
s -= len;
|
|
60
|
-
}
|
|
61
|
-
return [x + r, y];
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const BARS = [34, 40, 37, 48, 45, 54, 58, 56, 66, 74, 81, 96];
|
|
65
|
-
const MONTHS = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L']; // 镜头 A–L(沿用原变量名)
|
|
66
|
-
|
|
67
|
-
// 下划线:略带弧度的手绘笔画(本地坐标,宽 300)
|
|
68
|
-
const UL_PATH = 'M4,14 C70,6 150,18 230,9 S290,10 300,8';
|
|
69
|
-
|
|
70
|
-
export const DrawSvgTrace: React.FC = () => {
|
|
71
|
-
const frame = useCurrentFrame();
|
|
72
|
-
|
|
73
|
-
const p = interpolate(frame, [TRACE0, TRACE1], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.inOut(Easing.cubic) });
|
|
74
|
-
|
|
75
|
-
// 闭合闪:50–52 冲峰,52–58 回落(纯黑 + 加粗,不发光)
|
|
76
|
-
const flash = frame < 52 ? ramp(frame, 50, 2, EASE.linear) : 1 - ramp(frame, 52, 6, EASE.out);
|
|
77
|
-
const strokeW = 6 + flash * 5;
|
|
78
|
-
const strokeColor = flash > 0.5 ? '#000000' : INK;
|
|
79
|
-
|
|
80
|
-
const traceOp = 1 - ramp(frame, 56, 10, EASE.linear);
|
|
81
|
-
const borderOp = 1 - traceOp;
|
|
82
|
-
const lift = ramp(frame, 50, 22, EASE.out);
|
|
83
|
-
const inkIn = (k: number) => ramp(frame, 52 + k * 3, 12, EASE.out);
|
|
84
|
-
const rise = (k: number): React.CSSProperties => {
|
|
85
|
-
const t = inkIn(k);
|
|
86
|
-
return { opacity: t, transform: `translateY(${((1 - t) * 14).toFixed(2)}px)`, filter: t < 1 ? `blur(${((1 - t) * 6).toFixed(2)}px)` : undefined };
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
const penOp = interpolate(p, [0, 0.02, 0.97, 0.995], [0, 1, 1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
90
|
-
const [nx, ny] = rrPoint(p, 0, 0, CW, CH, RX);
|
|
91
|
-
|
|
92
|
-
// 裁切标记:0–12 长出,闭合时外弹 + 淡出
|
|
93
|
-
const marksIn = (k: number) => ramp(frame, k * 2, 12, EASE.snappy);
|
|
94
|
-
const marksPop = ramp(frame, 50, 10, EASE.out);
|
|
95
|
-
const marksOp = 1 - ramp(frame, 52, 12, EASE.out);
|
|
96
|
-
|
|
97
|
-
// 下划线
|
|
98
|
-
const up = interpolate(frame, [74, 92], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic) });
|
|
99
|
-
const upenOp = interpolate(up, [0, 0.04, 0.92, 0.99], [0, 1, 1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
100
|
-
|
|
101
|
-
const push = 1 + 0.009 * ramp(frame, 60, 72, EASE.smooth);
|
|
102
|
-
|
|
103
|
-
return (
|
|
104
|
-
<AbsoluteFill style={{ fontFamily: FONT.sans, overflow: 'hidden' }}>
|
|
105
|
-
<Stage look={L} keyLight={{ x: 0.42, y: 0.12 }} fill={{ x: 0.9, y: 0.9 }}>
|
|
106
|
-
{/* 绘图纸点阵:48px 网格的墨点,中心清晰、四周隐去——描边阶段的"画板",也给第 1 帧一个底 */}
|
|
107
|
-
<div
|
|
108
|
-
style={{
|
|
109
|
-
position: 'absolute', inset: 0,
|
|
110
|
-
backgroundImage: `radial-gradient(circle, ${alpha(L.ink, 0.24)} 2px, transparent 2.4px)`,
|
|
111
|
-
backgroundSize: '48px 48px', backgroundPosition: '24px 18px',
|
|
112
|
-
WebkitMaskImage: 'radial-gradient(ellipse 62% 66% at 50% 50%, #000 30%, transparent 100%)',
|
|
113
|
-
maskImage: 'radial-gradient(ellipse 62% 66% at 50% 50%, #000 30%, transparent 100%)',
|
|
114
|
-
}}
|
|
115
|
-
/>
|
|
116
|
-
</Stage>
|
|
117
|
-
|
|
118
|
-
<AbsoluteFill style={{ transform: `scale(${push.toFixed(5)})`, transformOrigin: '960px 540px' }}>
|
|
119
|
-
{/* 卡片底面:闭合后上墨、从贴地升起 */}
|
|
120
|
-
<div
|
|
121
|
-
style={{
|
|
122
|
-
position: 'absolute', left: CX, top: CY, width: CW, height: CH, borderRadius: RX,
|
|
123
|
-
background: `linear-gradient(180deg, #fffefb 0%, ${L.surface} 100%)`,
|
|
124
|
-
boxShadow: `inset 0 1px 0 #ffffff, ${softShadow(4 + lift * 26, { color: L.shadow, strength: 0.9 })}`,
|
|
125
|
-
opacity: ramp(frame, 50, 10, EASE.out),
|
|
126
|
-
}}
|
|
127
|
-
/>
|
|
128
|
-
|
|
129
|
-
{/* 卡片内容 */}
|
|
130
|
-
<div style={{ position: 'absolute', left: CX, top: CY, width: CW, height: CH, padding: '52px 64px 46px', boxSizing: 'border-box' }}>
|
|
131
|
-
{/* 眉题行 */}
|
|
132
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 14, ...rise(0) }}>
|
|
133
|
-
<div style={{ width: 12, height: 12, borderRadius: 6, background: L.accent }} />
|
|
134
|
-
<div style={{ ...type(26, 600, { mono: true }), letterSpacing: '0.14em', color: L.ink2 }}>LAUNCH FILM · RENDER</div>
|
|
135
|
-
<div style={{ flex: 1 }} />
|
|
136
|
-
<div style={{ ...type(26, 500, { mono: true }), color: L.ink3 }}>v3 · 1080p30</div>
|
|
137
|
-
</div>
|
|
138
|
-
|
|
139
|
-
{/* 左栏:两段式大标题 + 说明 */}
|
|
140
|
-
<div style={{ position: 'absolute', left: 64, top: 128, width: 560 }}>
|
|
141
|
-
<div style={{ ...type(72, 650), color: L.ink2, ...rise(1) }}>Cuts on the beat</div>
|
|
142
|
-
<div style={{ position: 'relative', display: 'inline-block', marginTop: 2, ...rise(2) }}>
|
|
143
|
-
{/* 四位数比原「38%」宽:字号 212→188 给右栏柱图留出呼吸 */}
|
|
144
|
-
<div style={{ ...type(188, 820), letterSpacing: '-0.055em', color: L.ink, lineHeight: 0.92 }}>100%</div>
|
|
145
|
-
{/* 第二用法:重点词下方一笔朱红马克笔下划线 */}
|
|
146
|
-
{up > 0.001 && (
|
|
147
|
-
<svg width={300} height={24} viewBox="0 0 300 24" style={{ position: 'absolute', left: 6, bottom: -26, width: 'calc(100% - 12px)', overflow: 'visible' }} preserveAspectRatio="none">
|
|
148
|
-
<path d={UL_PATH} fill="none" stroke={L.accent} strokeWidth={12} strokeLinecap="round" pathLength={1} strokeDasharray="1" strokeDashoffset={1 - up} opacity={0.92} />
|
|
149
|
-
{upenOp > 0 && (
|
|
150
|
-
<path d={UL_PATH} fill="none" stroke={L.accent} strokeWidth={16} strokeLinecap="round" pathLength={1}
|
|
151
|
-
strokeDasharray={`${0.06} ${0.94}`} strokeDashoffset={0.06 - up} opacity={upenOp} />
|
|
152
|
-
)}
|
|
153
|
-
</svg>
|
|
154
|
-
)}
|
|
155
|
-
</div>
|
|
156
|
-
<div style={{ marginTop: 44, ...type(32, 450), lineHeight: 1.35, color: L.ink2, ...rise(3) }}>
|
|
157
|
-
Every cut snaps to the downbeat. Rendered by video-shotcraft.
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
|
|
161
|
-
{/* 右栏:逐镜头能量柱(从基线长出,末三根朱红) */}
|
|
162
|
-
<div style={{ position: 'absolute', left: 680, top: 150, width: 376, height: 300, display: 'flex', alignItems: 'flex-end', gap: 10, opacity: inkIn(3) > 0 ? 1 : 0 }}>
|
|
163
|
-
{BARS.map((v, i) => {
|
|
164
|
-
const g = ramp(frame, 56 + i * 1.5, 14, EASE.snappy);
|
|
165
|
-
const hot = i >= 9;
|
|
166
|
-
return (
|
|
167
|
-
<div key={i} style={{ flex: 1, height: '100%', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', alignItems: 'center' }}>
|
|
168
|
-
<div
|
|
169
|
-
style={{
|
|
170
|
-
width: '100%', height: `${(v * g).toFixed(2)}%`, borderRadius: 8,
|
|
171
|
-
background: hot ? `linear-gradient(180deg, #f2674f 0%, ${L.accent} 100%)` : alpha(L.ink, 0.1),
|
|
172
|
-
opacity: hot ? 0.6 + (i - 9) * 0.2 : 1,
|
|
173
|
-
}}
|
|
174
|
-
/>
|
|
175
|
-
</div>
|
|
176
|
-
);
|
|
177
|
-
})}
|
|
178
|
-
</div>
|
|
179
|
-
<div style={{ position: 'absolute', left: 680, top: 462, width: 376, display: 'flex', gap: 10, ...rise(4) }}>
|
|
180
|
-
{MONTHS.map((m, i) => (
|
|
181
|
-
<div key={i} style={{ flex: 1, textAlign: 'center', ...type(20, 600, { mono: true }), color: i >= 9 ? L.accent : L.ink3 }}>{m}</div>
|
|
182
|
-
))}
|
|
183
|
-
</div>
|
|
184
|
-
<div style={{ position: 'absolute', left: 680, top: 128, ...type(22, 600, { mono: true }), letterSpacing: '0.1em', color: L.ink3, ...rise(4) }}>ENERGY · PER SHOT</div>
|
|
185
|
-
|
|
186
|
-
{/* 署名行:video-shotcraft 标志 + 字标(亮底用 light 版) */}
|
|
187
|
-
<div style={{ position: 'absolute', left: 64, right: 64, bottom: 44, display: 'flex', alignItems: 'center', gap: 16, ...rise(5) }}>
|
|
188
|
-
<div style={{ position: 'absolute', left: 0, right: 0, top: -26, height: 1, background: L.line }} />
|
|
189
|
-
<ShotcraftMark size={52} tone="light" />
|
|
190
|
-
<div style={{ ...type(28, 700), fontFamily: BRAND.font, letterSpacing: '0.03em', color: L.ink }}>{BRAND.name}</div>
|
|
191
|
-
<div style={{ ...type(28, 450), color: L.ink3 }}>agent · rendered 2m ago</div>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
|
|
195
|
-
{/* 卡片自身发丝边:描边淡出时接棒 */}
|
|
196
|
-
<div style={{ position: 'absolute', left: CX, top: CY, width: CW, height: CH, borderRadius: RX, border: `1.5px solid ${alpha(L.ink, 0.14)}`, boxSizing: 'border-box', opacity: borderOp }} />
|
|
197
|
-
|
|
198
|
-
{/* 裁切标记(印刷对位线):四角外侧 */}
|
|
199
|
-
{marksOp > 0.001 && (
|
|
200
|
-
<svg width={1920} height={1080} style={{ position: 'absolute', left: 0, top: 0, overflow: 'visible', opacity: marksOp }}>
|
|
201
|
-
{[[CX, CY, -1, -1], [CX + CW, CY, 1, -1], [CX + CW, CY + CH, 1, 1], [CX, CY + CH, -1, 1]].map(([x, y, sx, sy], k) => {
|
|
202
|
-
const t = marksIn(k);
|
|
203
|
-
const off = 26 + 22 * marksPop;
|
|
204
|
-
const len = 54 * t;
|
|
205
|
-
const ox = x + sx * off, oy = y + sy * off;
|
|
206
|
-
return (
|
|
207
|
-
<g key={k} stroke={L.ink2} strokeWidth={2.5} strokeLinecap="round">
|
|
208
|
-
<line x1={ox} y1={oy} x2={ox - sx * len} y2={oy} opacity={t} />
|
|
209
|
-
<line x1={ox} y1={oy} x2={ox} y2={oy - sy * len} opacity={t} />
|
|
210
|
-
<circle cx={ox} cy={oy} r={3.5} fill={L.accent} stroke="none" opacity={t} />
|
|
211
|
-
</g>
|
|
212
|
-
);
|
|
213
|
-
})}
|
|
214
|
-
</svg>
|
|
215
|
-
)}
|
|
216
|
-
|
|
217
|
-
{/* 描边生长层:主线 + 渐细笔头 + 圆形笔尖 */}
|
|
218
|
-
{traceOp > 0.001 && (
|
|
219
|
-
<svg width={CW} height={CH} style={{ position: 'absolute', left: CX, top: CY, overflow: 'visible', opacity: traceOp }}>
|
|
220
|
-
<rect x={0} y={0} width={CW} height={CH} rx={RX} fill="none" stroke={strokeColor} strokeWidth={strokeW}
|
|
221
|
-
pathLength={1} strokeDasharray="1" strokeDashoffset={1 - p} strokeLinecap="round" />
|
|
222
|
-
{penOp > 0 &&
|
|
223
|
-
[
|
|
224
|
-
{ len: PEN, w: 6.4 },
|
|
225
|
-
{ len: PEN * 0.6, w: 8 },
|
|
226
|
-
{ len: PEN * 0.28, w: 9.6 },
|
|
227
|
-
].map(({ len, w }, k) => (
|
|
228
|
-
<rect key={k} x={0} y={0} width={CW} height={CH} rx={RX} fill="none" stroke={INK} strokeWidth={w} opacity={penOp}
|
|
229
|
-
pathLength={1} strokeDasharray={`${len} ${1 - len}`} strokeDashoffset={len - p} strokeLinecap="round" />
|
|
230
|
-
))}
|
|
231
|
-
{penOp > 0 && (
|
|
232
|
-
<g opacity={penOp}>
|
|
233
|
-
<circle cx={nx + 1.5} cy={ny + 4} r={10} fill={alpha(L.shadow, 0.16)} />
|
|
234
|
-
<circle cx={nx} cy={ny} r={7.5} fill={INK} />
|
|
235
|
-
<circle cx={nx - 2.2} cy={ny - 2.4} r={2} fill="rgba(255,255,255,0.4)" />
|
|
236
|
-
</g>
|
|
237
|
-
)}
|
|
238
|
-
</svg>
|
|
239
|
-
)}
|
|
240
|
-
</AbsoluteFill>
|
|
241
|
-
</AbsoluteFill>
|
|
242
|
-
);
|
|
243
|
-
};
|
|
244
|
-
|
|
1
|
+
// draw-svg-trace —— 描边生长圈注(第二轮重设计 · 纸墨编辑风)
|
|
2
|
+
// 手法不变:一条带笔头的墨线沿元素轮廓跑一圈把它"画"出来 → 闭合瞬间加深加粗(白底上不用发光)→
|
|
3
|
+
// 描边交棒给元素自身边框、内容上墨 → 同一套路短版给重点词画一笔下划线。
|
|
4
|
+
//
|
|
5
|
+
// 设计决定
|
|
6
|
+
// - look = paper(暖白纸 · 墨 · 朱红)。主体放大到 1120×660(画宽 58%),内容是一张出版级 video-shotcraft 渲染报告卡:
|
|
7
|
+
// 眉题 mono、两段式大标题「Cuts on the beat / 100%」(100% 用 188px 黑体,是全镜头的重点词)、32px 说明、
|
|
8
|
+
// 右侧 12 根逐镜头能量柱(末三根朱红)、署名行(video-shotcraft 标志 + 字标)。
|
|
9
|
+
// - 开场就有东西:绘图纸点阵底 + 四角先长出裁切标记(印刷对位线)——观众先知道"这里要画一个东西",笔再沿轮廓跑一圈。
|
|
10
|
+
// - 笔头:主线 6px 墨 + 三段渐细短 dash + 实心笔尖(按圆角矩形弧长精确定位,带落影);
|
|
11
|
+
// 描边速度 in-out(起笔、收笔有呼吸),笔尖在四个圆角处自然减速(弧长参数化本身不减速,靠 in-out 整体曲线)。
|
|
12
|
+
// - 闭合:2f 冲纯黑 + 6→11px 加粗,6f 回落;裁切标记同时向外"弹"一下后退场。
|
|
13
|
+
// - 上墨:内容自上而下 3f 错峰由虚到实 + 上浮;柱子从基线长出(错峰 1.5f,末三根最后、朱红);卡片从贴地升起(阴影长出来)。
|
|
14
|
+
// - 第二用法:100% 下一笔手绘朱红马克笔下划线(略带弧度的路径,18f out-cubic,笔头跟随),画完常驻。
|
|
15
|
+
//
|
|
16
|
+
// 时间表(30fps,共 132f)
|
|
17
|
+
// 0–12 裁切标记从四角长出(snappy,错峰 2f)
|
|
18
|
+
// 10–50 轮廓描边 40f(in-out cubic),笔头可见
|
|
19
|
+
// 50–58 闭合闪:50–52 冲黑加粗、52–58 回落;裁切标记外弹淡出
|
|
20
|
+
// 50–74 上墨:卡底 + 内容逐块(3f 错峰)、柱图长出、卡片升起
|
|
21
|
+
// 56–66 描边淡出 → 卡片自身发丝边淡入
|
|
22
|
+
// 74–92 100% 下划线 18f
|
|
23
|
+
// 92–132 hold 40f:0.9% 极缓推近
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
26
|
+
import { EASE, FONT, ramp, softShadow } from '../../_fixtures/Polish';
|
|
27
|
+
import { LOOKS, Stage, alpha, type } from '../../_fixtures/Look';
|
|
28
|
+
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
29
|
+
|
|
30
|
+
export const DRAW_SVG_TRACE_DURATION = 132;
|
|
31
|
+
|
|
32
|
+
const L = LOOKS.paper;
|
|
33
|
+
const CW = 1120;
|
|
34
|
+
const CH = 660;
|
|
35
|
+
const CX = (1920 - CW) / 2; // 400
|
|
36
|
+
const CY = (1080 - CH) / 2; // 210
|
|
37
|
+
const RX = 28; // 与卡片圆角一致(交棒不错型)
|
|
38
|
+
const PEN = 0.04; // 笔头 dash 长度(占整圈比例)
|
|
39
|
+
const INK = L.ink;
|
|
40
|
+
const TRACE0 = 10, TRACE1 = 50;
|
|
41
|
+
|
|
42
|
+
// 圆角矩形轮廓上弧长比例 u∈[0,1] 的点(与 SVG <rect> 的路径起点/方向一致:从上边 (x+rx, y) 顺时针)
|
|
43
|
+
const rrPoint = (u: number, x: number, y: number, w: number, h: number, r: number): [number, number] => {
|
|
44
|
+
const sx = w - 2 * r, sy = h - 2 * r, arc = (Math.PI * r) / 2;
|
|
45
|
+
const Ltot = 2 * sx + 2 * sy + 4 * arc;
|
|
46
|
+
let s = (((u % 1) + 1) % 1) * Ltot;
|
|
47
|
+
const segs: Array<[number, (k: number) => [number, number]]> = [
|
|
48
|
+
[sx, (k) => [x + r + k * sx, y]],
|
|
49
|
+
[arc, (k) => [x + w - r + r * Math.sin((k * Math.PI) / 2), y + r - r * Math.cos((k * Math.PI) / 2)]],
|
|
50
|
+
[sy, (k) => [x + w, y + r + k * sy]],
|
|
51
|
+
[arc, (k) => [x + w - r + r * Math.cos((k * Math.PI) / 2), y + h - r + r * Math.sin((k * Math.PI) / 2)]],
|
|
52
|
+
[sx, (k) => [x + w - r - k * sx, y + h]],
|
|
53
|
+
[arc, (k) => [x + r - r * Math.sin((k * Math.PI) / 2), y + h - r + r * Math.cos((k * Math.PI) / 2)]],
|
|
54
|
+
[sy, (k) => [x, y + h - r - k * sy]],
|
|
55
|
+
[arc, (k) => [x + r - r * Math.cos((k * Math.PI) / 2), y + r - r * Math.sin((k * Math.PI) / 2)]],
|
|
56
|
+
];
|
|
57
|
+
for (const [len, f] of segs) {
|
|
58
|
+
if (s <= len) return f(len > 0 ? s / len : 0);
|
|
59
|
+
s -= len;
|
|
60
|
+
}
|
|
61
|
+
return [x + r, y];
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const BARS = [34, 40, 37, 48, 45, 54, 58, 56, 66, 74, 81, 96];
|
|
65
|
+
const MONTHS = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L']; // 镜头 A–L(沿用原变量名)
|
|
66
|
+
|
|
67
|
+
// 下划线:略带弧度的手绘笔画(本地坐标,宽 300)
|
|
68
|
+
const UL_PATH = 'M4,14 C70,6 150,18 230,9 S290,10 300,8';
|
|
69
|
+
|
|
70
|
+
export const DrawSvgTrace: React.FC = () => {
|
|
71
|
+
const frame = useCurrentFrame();
|
|
72
|
+
|
|
73
|
+
const p = interpolate(frame, [TRACE0, TRACE1], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.inOut(Easing.cubic) });
|
|
74
|
+
|
|
75
|
+
// 闭合闪:50–52 冲峰,52–58 回落(纯黑 + 加粗,不发光)
|
|
76
|
+
const flash = frame < 52 ? ramp(frame, 50, 2, EASE.linear) : 1 - ramp(frame, 52, 6, EASE.out);
|
|
77
|
+
const strokeW = 6 + flash * 5;
|
|
78
|
+
const strokeColor = flash > 0.5 ? '#000000' : INK;
|
|
79
|
+
|
|
80
|
+
const traceOp = 1 - ramp(frame, 56, 10, EASE.linear);
|
|
81
|
+
const borderOp = 1 - traceOp;
|
|
82
|
+
const lift = ramp(frame, 50, 22, EASE.out);
|
|
83
|
+
const inkIn = (k: number) => ramp(frame, 52 + k * 3, 12, EASE.out);
|
|
84
|
+
const rise = (k: number): React.CSSProperties => {
|
|
85
|
+
const t = inkIn(k);
|
|
86
|
+
return { opacity: t, transform: `translateY(${((1 - t) * 14).toFixed(2)}px)`, filter: t < 1 ? `blur(${((1 - t) * 6).toFixed(2)}px)` : undefined };
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const penOp = interpolate(p, [0, 0.02, 0.97, 0.995], [0, 1, 1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
90
|
+
const [nx, ny] = rrPoint(p, 0, 0, CW, CH, RX);
|
|
91
|
+
|
|
92
|
+
// 裁切标记:0–12 长出,闭合时外弹 + 淡出
|
|
93
|
+
const marksIn = (k: number) => ramp(frame, k * 2, 12, EASE.snappy);
|
|
94
|
+
const marksPop = ramp(frame, 50, 10, EASE.out);
|
|
95
|
+
const marksOp = 1 - ramp(frame, 52, 12, EASE.out);
|
|
96
|
+
|
|
97
|
+
// 下划线
|
|
98
|
+
const up = interpolate(frame, [74, 92], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic) });
|
|
99
|
+
const upenOp = interpolate(up, [0, 0.04, 0.92, 0.99], [0, 1, 1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
100
|
+
|
|
101
|
+
const push = 1 + 0.009 * ramp(frame, 60, 72, EASE.smooth);
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<AbsoluteFill style={{ fontFamily: FONT.sans, overflow: 'hidden' }}>
|
|
105
|
+
<Stage look={L} keyLight={{ x: 0.42, y: 0.12 }} fill={{ x: 0.9, y: 0.9 }}>
|
|
106
|
+
{/* 绘图纸点阵:48px 网格的墨点,中心清晰、四周隐去——描边阶段的"画板",也给第 1 帧一个底 */}
|
|
107
|
+
<div
|
|
108
|
+
style={{
|
|
109
|
+
position: 'absolute', inset: 0,
|
|
110
|
+
backgroundImage: `radial-gradient(circle, ${alpha(L.ink, 0.24)} 2px, transparent 2.4px)`,
|
|
111
|
+
backgroundSize: '48px 48px', backgroundPosition: '24px 18px',
|
|
112
|
+
WebkitMaskImage: 'radial-gradient(ellipse 62% 66% at 50% 50%, #000 30%, transparent 100%)',
|
|
113
|
+
maskImage: 'radial-gradient(ellipse 62% 66% at 50% 50%, #000 30%, transparent 100%)',
|
|
114
|
+
}}
|
|
115
|
+
/>
|
|
116
|
+
</Stage>
|
|
117
|
+
|
|
118
|
+
<AbsoluteFill style={{ transform: `scale(${push.toFixed(5)})`, transformOrigin: '960px 540px' }}>
|
|
119
|
+
{/* 卡片底面:闭合后上墨、从贴地升起 */}
|
|
120
|
+
<div
|
|
121
|
+
style={{
|
|
122
|
+
position: 'absolute', left: CX, top: CY, width: CW, height: CH, borderRadius: RX,
|
|
123
|
+
background: `linear-gradient(180deg, #fffefb 0%, ${L.surface} 100%)`,
|
|
124
|
+
boxShadow: `inset 0 1px 0 #ffffff, ${softShadow(4 + lift * 26, { color: L.shadow, strength: 0.9 })}`,
|
|
125
|
+
opacity: ramp(frame, 50, 10, EASE.out),
|
|
126
|
+
}}
|
|
127
|
+
/>
|
|
128
|
+
|
|
129
|
+
{/* 卡片内容 */}
|
|
130
|
+
<div style={{ position: 'absolute', left: CX, top: CY, width: CW, height: CH, padding: '52px 64px 46px', boxSizing: 'border-box' }}>
|
|
131
|
+
{/* 眉题行 */}
|
|
132
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 14, ...rise(0) }}>
|
|
133
|
+
<div style={{ width: 12, height: 12, borderRadius: 6, background: L.accent }} />
|
|
134
|
+
<div style={{ ...type(26, 600, { mono: true }), letterSpacing: '0.14em', color: L.ink2 }}>LAUNCH FILM · RENDER</div>
|
|
135
|
+
<div style={{ flex: 1 }} />
|
|
136
|
+
<div style={{ ...type(26, 500, { mono: true }), color: L.ink3 }}>v3 · 1080p30</div>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
{/* 左栏:两段式大标题 + 说明 */}
|
|
140
|
+
<div style={{ position: 'absolute', left: 64, top: 128, width: 560 }}>
|
|
141
|
+
<div style={{ ...type(72, 650), color: L.ink2, ...rise(1) }}>Cuts on the beat</div>
|
|
142
|
+
<div style={{ position: 'relative', display: 'inline-block', marginTop: 2, ...rise(2) }}>
|
|
143
|
+
{/* 四位数比原「38%」宽:字号 212→188 给右栏柱图留出呼吸 */}
|
|
144
|
+
<div style={{ ...type(188, 820), letterSpacing: '-0.055em', color: L.ink, lineHeight: 0.92 }}>100%</div>
|
|
145
|
+
{/* 第二用法:重点词下方一笔朱红马克笔下划线 */}
|
|
146
|
+
{up > 0.001 && (
|
|
147
|
+
<svg width={300} height={24} viewBox="0 0 300 24" style={{ position: 'absolute', left: 6, bottom: -26, width: 'calc(100% - 12px)', overflow: 'visible' }} preserveAspectRatio="none">
|
|
148
|
+
<path d={UL_PATH} fill="none" stroke={L.accent} strokeWidth={12} strokeLinecap="round" pathLength={1} strokeDasharray="1" strokeDashoffset={1 - up} opacity={0.92} />
|
|
149
|
+
{upenOp > 0 && (
|
|
150
|
+
<path d={UL_PATH} fill="none" stroke={L.accent} strokeWidth={16} strokeLinecap="round" pathLength={1}
|
|
151
|
+
strokeDasharray={`${0.06} ${0.94}`} strokeDashoffset={0.06 - up} opacity={upenOp} />
|
|
152
|
+
)}
|
|
153
|
+
</svg>
|
|
154
|
+
)}
|
|
155
|
+
</div>
|
|
156
|
+
<div style={{ marginTop: 44, ...type(32, 450), lineHeight: 1.35, color: L.ink2, ...rise(3) }}>
|
|
157
|
+
Every cut snaps to the downbeat. Rendered by video-shotcraft.
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
{/* 右栏:逐镜头能量柱(从基线长出,末三根朱红) */}
|
|
162
|
+
<div style={{ position: 'absolute', left: 680, top: 150, width: 376, height: 300, display: 'flex', alignItems: 'flex-end', gap: 10, opacity: inkIn(3) > 0 ? 1 : 0 }}>
|
|
163
|
+
{BARS.map((v, i) => {
|
|
164
|
+
const g = ramp(frame, 56 + i * 1.5, 14, EASE.snappy);
|
|
165
|
+
const hot = i >= 9;
|
|
166
|
+
return (
|
|
167
|
+
<div key={i} style={{ flex: 1, height: '100%', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', alignItems: 'center' }}>
|
|
168
|
+
<div
|
|
169
|
+
style={{
|
|
170
|
+
width: '100%', height: `${(v * g).toFixed(2)}%`, borderRadius: 8,
|
|
171
|
+
background: hot ? `linear-gradient(180deg, #f2674f 0%, ${L.accent} 100%)` : alpha(L.ink, 0.1),
|
|
172
|
+
opacity: hot ? 0.6 + (i - 9) * 0.2 : 1,
|
|
173
|
+
}}
|
|
174
|
+
/>
|
|
175
|
+
</div>
|
|
176
|
+
);
|
|
177
|
+
})}
|
|
178
|
+
</div>
|
|
179
|
+
<div style={{ position: 'absolute', left: 680, top: 462, width: 376, display: 'flex', gap: 10, ...rise(4) }}>
|
|
180
|
+
{MONTHS.map((m, i) => (
|
|
181
|
+
<div key={i} style={{ flex: 1, textAlign: 'center', ...type(20, 600, { mono: true }), color: i >= 9 ? L.accent : L.ink3 }}>{m}</div>
|
|
182
|
+
))}
|
|
183
|
+
</div>
|
|
184
|
+
<div style={{ position: 'absolute', left: 680, top: 128, ...type(22, 600, { mono: true }), letterSpacing: '0.1em', color: L.ink3, ...rise(4) }}>ENERGY · PER SHOT</div>
|
|
185
|
+
|
|
186
|
+
{/* 署名行:video-shotcraft 标志 + 字标(亮底用 light 版) */}
|
|
187
|
+
<div style={{ position: 'absolute', left: 64, right: 64, bottom: 44, display: 'flex', alignItems: 'center', gap: 16, ...rise(5) }}>
|
|
188
|
+
<div style={{ position: 'absolute', left: 0, right: 0, top: -26, height: 1, background: L.line }} />
|
|
189
|
+
<ShotcraftMark size={52} tone="light" />
|
|
190
|
+
<div style={{ ...type(28, 700), fontFamily: BRAND.font, letterSpacing: '0.03em', color: L.ink }}>{BRAND.name}</div>
|
|
191
|
+
<div style={{ ...type(28, 450), color: L.ink3 }}>agent · rendered 2m ago</div>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
{/* 卡片自身发丝边:描边淡出时接棒 */}
|
|
196
|
+
<div style={{ position: 'absolute', left: CX, top: CY, width: CW, height: CH, borderRadius: RX, border: `1.5px solid ${alpha(L.ink, 0.14)}`, boxSizing: 'border-box', opacity: borderOp }} />
|
|
197
|
+
|
|
198
|
+
{/* 裁切标记(印刷对位线):四角外侧 */}
|
|
199
|
+
{marksOp > 0.001 && (
|
|
200
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', left: 0, top: 0, overflow: 'visible', opacity: marksOp }}>
|
|
201
|
+
{[[CX, CY, -1, -1], [CX + CW, CY, 1, -1], [CX + CW, CY + CH, 1, 1], [CX, CY + CH, -1, 1]].map(([x, y, sx, sy], k) => {
|
|
202
|
+
const t = marksIn(k);
|
|
203
|
+
const off = 26 + 22 * marksPop;
|
|
204
|
+
const len = 54 * t;
|
|
205
|
+
const ox = x + sx * off, oy = y + sy * off;
|
|
206
|
+
return (
|
|
207
|
+
<g key={k} stroke={L.ink2} strokeWidth={2.5} strokeLinecap="round">
|
|
208
|
+
<line x1={ox} y1={oy} x2={ox - sx * len} y2={oy} opacity={t} />
|
|
209
|
+
<line x1={ox} y1={oy} x2={ox} y2={oy - sy * len} opacity={t} />
|
|
210
|
+
<circle cx={ox} cy={oy} r={3.5} fill={L.accent} stroke="none" opacity={t} />
|
|
211
|
+
</g>
|
|
212
|
+
);
|
|
213
|
+
})}
|
|
214
|
+
</svg>
|
|
215
|
+
)}
|
|
216
|
+
|
|
217
|
+
{/* 描边生长层:主线 + 渐细笔头 + 圆形笔尖 */}
|
|
218
|
+
{traceOp > 0.001 && (
|
|
219
|
+
<svg width={CW} height={CH} style={{ position: 'absolute', left: CX, top: CY, overflow: 'visible', opacity: traceOp }}>
|
|
220
|
+
<rect x={0} y={0} width={CW} height={CH} rx={RX} fill="none" stroke={strokeColor} strokeWidth={strokeW}
|
|
221
|
+
pathLength={1} strokeDasharray="1" strokeDashoffset={1 - p} strokeLinecap="round" />
|
|
222
|
+
{penOp > 0 &&
|
|
223
|
+
[
|
|
224
|
+
{ len: PEN, w: 6.4 },
|
|
225
|
+
{ len: PEN * 0.6, w: 8 },
|
|
226
|
+
{ len: PEN * 0.28, w: 9.6 },
|
|
227
|
+
].map(({ len, w }, k) => (
|
|
228
|
+
<rect key={k} x={0} y={0} width={CW} height={CH} rx={RX} fill="none" stroke={INK} strokeWidth={w} opacity={penOp}
|
|
229
|
+
pathLength={1} strokeDasharray={`${len} ${1 - len}`} strokeDashoffset={len - p} strokeLinecap="round" />
|
|
230
|
+
))}
|
|
231
|
+
{penOp > 0 && (
|
|
232
|
+
<g opacity={penOp}>
|
|
233
|
+
<circle cx={nx + 1.5} cy={ny + 4} r={10} fill={alpha(L.shadow, 0.16)} />
|
|
234
|
+
<circle cx={nx} cy={ny} r={7.5} fill={INK} />
|
|
235
|
+
<circle cx={nx - 2.2} cy={ny - 2.4} r={2} fill="rgba(255,255,255,0.4)" />
|
|
236
|
+
</g>
|
|
237
|
+
)}
|
|
238
|
+
</svg>
|
|
239
|
+
)}
|
|
240
|
+
</AbsoluteFill>
|
|
241
|
+
</AbsoluteFill>
|
|
242
|
+
);
|
|
243
|
+
};
|
|
244
|
+
|