dsh-drawai 0.4.2 → 0.4.3

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.
Files changed (366) hide show
  1. package/README.md +4 -3
  2. package/lib/index.js +7777 -7719
  3. package/lib/motion/asset-pack.js +394 -394
  4. package/lib/motion/assets.js +291 -291
  5. package/lib/motion/demo-assets-lock.js +10 -10
  6. package/lib/motion/mgstyles/vendor/README.md +28 -28
  7. package/lib/motion/mgstyles/vendor/modules/d3/LICENSE +13 -13
  8. package/lib/motion/mgstyles/vendor/modules/d3/dist/d3.min.js +2 -2
  9. package/lib/motion/mgstyles/vendor/modules/opentype.js/LICENSE +20 -20
  10. package/lib/motion/mgstyles/vendor/modules/opentype.js/dist/opentype.mjs +14460 -14460
  11. package/lib/motion/mgstyles/vendor/modules/simplex-noise/LICENSE +21 -21
  12. package/lib/motion/mgstyles/vendor/modules/simplex-noise/dist/esm/simplex-noise.js +465 -465
  13. package/lib/motion/mgstyles/vendor/modules/topojson-client/LICENSE +13 -13
  14. package/lib/motion/mgstyles/vendor/modules/topojson-client/dist/topojson-client.min.js +2 -2
  15. package/lib/motion/render.js +179 -179
  16. package/lib/motion/shotcraft/upstream/SKILL.md +286 -286
  17. package/lib/motion/shotcraft/upstream/assets/lib/Caption.tsx +54 -54
  18. package/lib/motion/shotcraft/upstream/assets/lib/ClipCard.tsx +200 -200
  19. package/lib/motion/shotcraft/upstream/assets/lib/DigitRoll.tsx +45 -45
  20. package/lib/motion/shotcraft/upstream/assets/lib/FlashCut.tsx +20 -20
  21. package/lib/motion/shotcraft/upstream/assets/lib/FlatPanel.tsx +65 -65
  22. package/lib/motion/shotcraft/upstream/assets/lib/PageCam.tsx +151 -151
  23. package/lib/motion/shotcraft/upstream/assets/lib/VerticalTicker.tsx +129 -129
  24. package/lib/motion/shotcraft/upstream/assets/lib/helpers/camera.tsx +75 -75
  25. package/lib/motion/shotcraft/upstream/assets/lib/helpers/motion.ts +40 -40
  26. package/lib/motion/shotcraft/upstream/assets/lib/helpers/rand.ts +11 -11
  27. package/lib/motion/shotcraft/upstream/assets/lib/helpers/shake.ts +10 -10
  28. package/lib/motion/shotcraft/upstream/assets/scripts/build-readme-cover.mjs +49 -49
  29. package/lib/motion/shotcraft/upstream/assets/scripts/capture-template.mjs +210 -210
  30. package/lib/motion/shotcraft/upstream/assets/scripts/sfx-source.py +423 -423
  31. package/lib/motion/shotcraft/upstream/assets/scripts/smoke-render-demos.py +170 -170
  32. package/lib/motion/shotcraft/upstream/assets/scripts/test_sfx_source.py +157 -157
  33. package/lib/motion/shotcraft/upstream/demos/README.md +120 -120
  34. package/lib/motion/shotcraft/upstream/demos/_fixtures/Brand.tsx +112 -112
  35. package/lib/motion/shotcraft/upstream/demos/_fixtures/Fixtures.tsx +647 -647
  36. package/lib/motion/shotcraft/upstream/demos/_fixtures/Look.tsx +316 -316
  37. package/lib/motion/shotcraft/upstream/demos/_fixtures/Motion.tsx +82 -82
  38. package/lib/motion/shotcraft/upstream/demos/_fixtures/PageCam2D.tsx +115 -115
  39. package/lib/motion/shotcraft/upstream/demos/_fixtures/Polish.tsx +243 -243
  40. package/lib/motion/shotcraft/upstream/demos/_textures/live-layout.json +388 -388
  41. package/lib/motion/shotcraft/upstream/demos/camera/basic-3d-scene/Basic3DScene.tsx +250 -250
  42. package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashImpactReal.tsx +305 -305
  43. package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashZoomReal.tsx +246 -246
  44. package/lib/motion/shotcraft/upstream/demos/camera/cursor-flyover/CursorFlyover.tsx +390 -390
  45. package/lib/motion/shotcraft/upstream/demos/camera/depth-layer-moves/MultiplaneReal.tsx +138 -138
  46. package/lib/motion/shotcraft/upstream/demos/camera/graze-face-tour/GrazeFaceTour.tsx +542 -542
  47. package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/OverheadTabletopDrop.tsx +315 -315
  48. package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/TiltReveal.tsx +299 -299
  49. package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/DroneDiveLanding.tsx +173 -173
  50. package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/ExplodedView.tsx +348 -348
  51. package/lib/motion/shotcraft/upstream/demos/camera/steep-tilt-glide/SteepTiltGlide.tsx +366 -366
  52. package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/BulletTimeFreezeOrbit.tsx +279 -279
  53. package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/PullBackIsolation.tsx +184 -184
  54. package/lib/motion/shotcraft/upstream/demos/camera/terminal-3d/Terminal3D.tsx +390 -390
  55. package/lib/motion/shotcraft/upstream/demos/data/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +155 -155
  56. package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/AxisRescaleShockV2.tsx +303 -303
  57. package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/OscilloscopeStreamV2.tsx +290 -290
  58. package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/UnitDotSwarmRegroupV2.tsx +278 -278
  59. package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/NeedleSweepSelftest.tsx +307 -307
  60. package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/TapeScrollFixedPointer.tsx +215 -215
  61. package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/BrakeReticleLock.tsx +299 -299
  62. package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/ChangelogScrollBrake.tsx +232 -232
  63. package/lib/motion/shotcraft/upstream/demos/data/timeline-travel/TimelineTravel.tsx +290 -290
  64. package/lib/motion/shotcraft/upstream/demos/effects/assemble-then-type-flyin/AssembleThenTypeFlyin.tsx +273 -273
  65. package/lib/motion/shotcraft/upstream/demos/effects/aurora-bloom-bg-flip/AuroraBloomBgFlip.tsx +167 -167
  66. package/lib/motion/shotcraft/upstream/demos/effects/brand-frame-snap/BrandFrameSnap.tsx +536 -536
  67. package/lib/motion/shotcraft/upstream/demos/effects/fui-hud-moves/ReticleLockOn.tsx +164 -164
  68. package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/FlylineArc.tsx +175 -175
  69. package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/GlowOrbAmbient.tsx +197 -197
  70. package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/OrbFlylineRelay.tsx +241 -241
  71. package/lib/motion/shotcraft/upstream/demos/effects/icon-performance-moves/AttentionBounce.tsx +279 -279
  72. package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/AnimeImpact.tsx +230 -230
  73. package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/HitCounter.tsx +345 -345
  74. package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SheenSweepRetry.tsx +275 -275
  75. package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SpotlightSweepReveal.tsx +229 -229
  76. package/lib/motion/shotcraft/upstream/demos/effects/radial-ripple-phone-chips/RadialRipplePhoneChips.tsx +312 -312
  77. package/lib/motion/shotcraft/upstream/demos/effects/riso-print-hits/RisoMisregistrationHit.tsx +222 -222
  78. package/lib/motion/shotcraft/upstream/demos/effects/scan-bracket-sweep/ScanBracketSweep.tsx +295 -295
  79. package/lib/motion/shotcraft/upstream/demos/effects/scanline-annotate-focus/ScanlineAnnotateFocus.tsx +329 -329
  80. package/lib/motion/shotcraft/upstream/demos/effects/scanline-assemble-flyin/ScanlineAssembleFlyin.tsx +315 -315
  81. package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ImpactBurstKit.tsx +264 -264
  82. package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/KanadaPerspectiveSnap.tsx +260 -260
  83. package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ScoreSlam.tsx +263 -263
  84. package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/CornerSpotlightReveal.tsx +123 -123
  85. package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +187 -187
  86. package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/SlideSpotlightPan.tsx +175 -175
  87. package/lib/motion/shotcraft/upstream/demos/interaction/autolayout-gap-dial/AutolayoutGapDial.tsx +305 -305
  88. package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/DiagramCascadeBuild.tsx +350 -350
  89. package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +352 -352
  90. package/lib/motion/shotcraft/upstream/demos/interaction/chip-grid-single-select-blackout/ChipGridSingleSelectBlackout.tsx +218 -218
  91. package/lib/motion/shotcraft/upstream/demos/interaction/collab-cursor-moves/CursorCastEnsemble.tsx +297 -297
  92. package/lib/motion/shotcraft/upstream/demos/interaction/glass-pill-dictation-typing/GlassPillDictationTyping.tsx +157 -157
  93. package/lib/motion/shotcraft/upstream/demos/interaction/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +218 -218
  94. package/lib/motion/shotcraft/upstream/demos/interaction/picker-carousel-feature-cycle/PickerCarouselFeatureCycle.tsx +202 -202
  95. package/lib/motion/shotcraft/upstream/demos/interaction/segmented-thumb-hero/SegmentedThumbHero.tsx +265 -265
  96. package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/PaletteThemeRipple.tsx +457 -457
  97. package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/ThemeSweepToggle.tsx +446 -446
  98. package/lib/motion/shotcraft/upstream/demos/interaction/type-and-filter/TypeAndFilter.tsx +249 -249
  99. package/lib/motion/shotcraft/upstream/demos/interaction/voice-waveform-live/VoiceWaveformLive.tsx +278 -278
  100. package/lib/motion/shotcraft/upstream/demos/opening/crane-rise-reveal/CraneRiseReveal.tsx +332 -332
  101. package/lib/motion/shotcraft/upstream/demos/opening/dataviz-landscape-open/DatavizLandscapeOpen.tsx +358 -358
  102. package/lib/motion/shotcraft/upstream/demos/opening/fracture/Fracture.tsx +201 -201
  103. package/lib/motion/shotcraft/upstream/demos/opening/icon-field-colorize/IconFieldColorize.tsx +200 -200
  104. package/lib/motion/shotcraft/upstream/demos/opening/letterspace-materialize/LetterspaceMaterialize.tsx +208 -208
  105. package/lib/motion/shotcraft/upstream/demos/opening/magician-card-flourish/MagicianCardFlourish.tsx +341 -341
  106. package/lib/motion/shotcraft/upstream/demos/opening/orbit-ring-title-open/OrbitRingTitleOpen.tsx +389 -389
  107. package/lib/motion/shotcraft/upstream/demos/opening/spotlight-hero-card/SpotlightHeroCard.tsx +293 -293
  108. package/lib/motion/shotcraft/upstream/demos/opening/stroke-segment-build/StrokeSegmentBuild.tsx +183 -183
  109. package/lib/motion/shotcraft/upstream/demos/opening/text-as-mask/TextAsMask.tsx +245 -245
  110. package/lib/motion/shotcraft/upstream/demos/outro/grain-dissolve/GrainDissolve.tsx +222 -222
  111. package/lib/motion/shotcraft/upstream/demos/outro/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx +223 -223
  112. package/lib/motion/shotcraft/upstream/demos/outro/neon-triple-marquee/NeonTripleMarquee.tsx +217 -217
  113. package/lib/motion/shotcraft/upstream/demos/outro/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx +343 -343
  114. package/lib/motion/shotcraft/upstream/demos/outro/ui-strip-away-outro/UiStripAwayOutro.tsx +357 -357
  115. package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/IconFlipBloomLogo.tsx +187 -187
  116. package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/InputMorphsIntoLogo.tsx +333 -333
  117. package/lib/motion/shotcraft/upstream/demos/rhythm/beat-cut-moves/PaparazziFlash.tsx +274 -274
  118. package/lib/motion/shotcraft/upstream/demos/rhythm/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +270 -270
  119. package/lib/motion/shotcraft/upstream/demos/rhythm/panel-grid-moves/ComicPanelSplit.tsx +430 -430
  120. package/lib/motion/shotcraft/upstream/demos/rhythm/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx +252 -252
  121. package/lib/motion/shotcraft/upstream/demos/rhythm/rhythm-interrupt-moves/JumpCutPunchIn.tsx +106 -106
  122. package/lib/motion/shotcraft/upstream/demos/rhythm/sakuga-timing-shift/SakugaTimingShift.tsx +288 -288
  123. package/lib/motion/shotcraft/upstream/demos/rhythm/speed-ramp-freeze/FreezeAnnotateReal.tsx +362 -362
  124. package/lib/motion/shotcraft/upstream/demos/rhythm/trailer-grammar-moves/TrailerBumper.tsx +168 -168
  125. package/lib/motion/shotcraft/upstream/demos/transition/bottom-push-stack-wipe/BottomPushStackWipe.tsx +310 -310
  126. package/lib/motion/shotcraft/upstream/demos/transition/card-flip-reveal/CardFlipReveal.tsx +261 -261
  127. package/lib/motion/shotcraft/upstream/demos/transition/card-flock-tumble/CardFlockTumble.tsx +459 -459
  128. package/lib/motion/shotcraft/upstream/demos/transition/circle-match-iris/CircleMatchIris.tsx +294 -294
  129. package/lib/motion/shotcraft/upstream/demos/transition/gradient-transition/GradientTransition.tsx +161 -161
  130. package/lib/motion/shotcraft/upstream/demos/transition/line-carry-transition/LineCarryTransition.tsx +248 -248
  131. package/lib/motion/shotcraft/upstream/demos/transition/mosaic-reframe/MosaicReframe.tsx +359 -359
  132. package/lib/motion/shotcraft/upstream/demos/transition/page-turn-transitions/BarnDoorSplit.tsx +227 -227
  133. package/lib/motion/shotcraft/upstream/demos/transition/print-texture-transitions/InkBleedReveal.tsx +162 -162
  134. package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/PortalWipeV2.tsx +248 -248
  135. package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/WhipBrakeReal.tsx +186 -186
  136. package/lib/motion/shotcraft/upstream/demos/transition/tear-streak-transitions/GlitchDisplace.tsx +355 -355
  137. package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/InvisibleCut.tsx +272 -272
  138. package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/LightLeakBurn.tsx +262 -262
  139. package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/VersusSlam.tsx +217 -217
  140. package/lib/motion/shotcraft/upstream/demos/transition/transition-travel/LetterformZoom.tsx +285 -285
  141. package/lib/motion/shotcraft/upstream/demos/transition/white-flash-logo-simplify-cut/WhiteFlashLogoSimplifyCut.tsx +205 -205
  142. package/lib/motion/shotcraft/upstream/demos/transition/wipe-transitions/BlindsSlice.tsx +178 -178
  143. package/lib/motion/shotcraft/upstream/demos/typography/blur-slide/BlurSlide.tsx +147 -147
  144. package/lib/motion/shotcraft/upstream/demos/typography/brace-expand/BraceExpand.tsx +143 -143
  145. package/lib/motion/shotcraft/upstream/demos/typography/brand-ink-open/BrandInkOpen.tsx +134 -134
  146. package/lib/motion/shotcraft/upstream/demos/typography/countdown-arc-scatter/CountdownArcScatter.tsx +217 -217
  147. package/lib/motion/shotcraft/upstream/demos/typography/flying-words/FlyingWords.tsx +198 -198
  148. package/lib/motion/shotcraft/upstream/demos/typography/glitch-cycle/GlitchCycle.tsx +221 -221
  149. package/lib/motion/shotcraft/upstream/demos/typography/gradient-word-sweep/GradientWordSweep.tsx +312 -312
  150. package/lib/motion/shotcraft/upstream/demos/typography/lead-word-zoom-assemble/LeadWordZoomAssemble.tsx +261 -261
  151. package/lib/motion/shotcraft/upstream/demos/typography/marker-underline-title/MarkerUnderlineTitle.tsx +121 -121
  152. package/lib/motion/shotcraft/upstream/demos/typography/outline-word-fill/OutlineWordFill.tsx +153 -153
  153. package/lib/motion/shotcraft/upstream/demos/typography/paper-title-card/PaperTitleCard.tsx +179 -179
  154. package/lib/motion/shotcraft/upstream/demos/typography/pill-chip-slot-cycle-handled/PillChipSlotCycleHandled.tsx +140 -140
  155. package/lib/motion/shotcraft/upstream/demos/typography/pill-slot-cycle/PillSlotCycle.tsx +309 -309
  156. package/lib/motion/shotcraft/upstream/demos/typography/text-column-converge/TextColumnConverge.tsx +191 -191
  157. package/lib/motion/shotcraft/upstream/demos/typography/title-demote-to-label/TitleDemoteToLabel.tsx +292 -292
  158. package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/LetterformDriftAssembly.tsx +135 -135
  159. package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/SplitTextStagger.tsx +124 -124
  160. package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/TextOnPath.tsx +255 -255
  161. package/lib/motion/shotcraft/upstream/demos/typography/type-entrance-moves/LetterDropPhysics.tsx +173 -173
  162. package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/FontWeightPump.tsx +225 -225
  163. package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/KaraokeFillSync.tsx +141 -141
  164. package/lib/motion/shotcraft/upstream/demos/typography/typewriter-moves/TypewriterErrorRetype.tsx +137 -137
  165. package/lib/motion/shotcraft/upstream/demos/typography/vertical-word-roll-blur-cycle/VerticalWordRollBlurCycle.tsx +147 -147
  166. package/lib/motion/shotcraft/upstream/demos/typography/word-relay-filmstrip/WordRelayFilmstrip.tsx +409 -409
  167. package/lib/motion/shotcraft/upstream/demos/typography/word-relay-geometry/WordRelayGeometry.tsx +280 -280
  168. package/lib/motion/shotcraft/upstream/demos/ui-entrance/avatar-bracket-carousel/AvatarBracketCarousel.tsx +271 -271
  169. package/lib/motion/shotcraft/upstream/demos/ui-entrance/bezier-source-converge-merge/BezierSourceConvergeMerge.tsx +385 -385
  170. package/lib/motion/shotcraft/upstream/demos/ui-entrance/card-stack/CardStack.tsx +312 -312
  171. package/lib/motion/shotcraft/upstream/demos/ui-entrance/carousel-3d/Carousel3D.tsx +303 -303
  172. package/lib/motion/shotcraft/upstream/demos/ui-entrance/clipcard-looping/ClipCardLooping.tsx +77 -77
  173. package/lib/motion/shotcraft/upstream/demos/ui-entrance/cloner-depth-echo/ClonerDepthEcho.tsx +311 -311
  174. package/lib/motion/shotcraft/upstream/demos/ui-entrance/deck-deal-flyin/DeckDealFlyin.tsx +307 -307
  175. package/lib/motion/shotcraft/upstream/demos/ui-entrance/doc-park-left-pill-deal/DocParkLeftPillDeal.tsx +349 -349
  176. package/lib/motion/shotcraft/upstream/demos/ui-entrance/document-typewriter-reveal/DocumentTypewriterReveal.tsx +255 -255
  177. package/lib/motion/shotcraft/upstream/demos/ui-entrance/draw-svg-trace/DrawSvgTrace.tsx +244 -244
  178. package/lib/motion/shotcraft/upstream/demos/ui-entrance/element-body-moves/ContactShadowLift.tsx +217 -217
  179. package/lib/motion/shotcraft/upstream/demos/ui-entrance/integration-hub-map/IntegrationHubMap.tsx +652 -652
  180. package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-reveal/ListReveal.tsx +153 -153
  181. package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-stack-press/ListStackPress.tsx +238 -238
  182. package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-forerun/NeonFrameForerun.tsx +324 -324
  183. package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +354 -354
  184. package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/PageWaterfallWall.tsx +101 -101
  185. package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/VerticalTicker.tsx +129 -129
  186. package/lib/motion/shotcraft/upstream/demos/ui-entrance/product-card-progressive-assemble/ProductCardProgressiveAssemble.tsx +297 -297
  187. package/lib/motion/shotcraft/upstream/demos/ui-entrance/radial-wave/RadialWave.tsx +57 -57
  188. package/lib/motion/shotcraft/upstream/demos/ui-entrance/research-card-stack-scroll/ResearchCardStackScroll.tsx +155 -155
  189. package/lib/motion/shotcraft/upstream/demos/ui-entrance/row-embed/RowEmbed.tsx +175 -175
  190. package/lib/motion/shotcraft/upstream/demos/ui-entrance/value-stagger-gradient/ValueStaggerGradient.tsx +153 -153
  191. package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/BentoLightUp.tsx +146 -146
  192. package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/WireframeDrawOn.tsx +226 -226
  193. package/lib/motion/shotcraft/upstream/gallery/api/library.json +1 -1
  194. package/lib/motion/shotcraft/upstream/references/aesthetic-rules.md +193 -193
  195. package/lib/motion/shotcraft/upstream/references/final-review.md +121 -121
  196. package/lib/motion/shotcraft/upstream/references/guided-free-creation.md +199 -199
  197. package/lib/motion/shotcraft/upstream/references/jianying-export.md +183 -183
  198. package/lib/motion/shotcraft/upstream/references/music-beat-sync.md +257 -257
  199. package/lib/motion/shotcraft/upstream/references/pipeline.md +382 -382
  200. package/lib/motion/shotcraft/upstream/references/publish-upload-post.md +111 -111
  201. package/lib/motion/shotcraft/upstream/references/sequences/promo-energy-arc.md +50 -50
  202. package/lib/motion/shotcraft/upstream/references/sfx-sourcing.md +95 -95
  203. package/lib/motion/shotcraft/upstream/references/shots/camera/basic-3d-scene.md +41 -41
  204. package/lib/motion/shotcraft/upstream/references/shots/camera/crash-zoom-punch.md +52 -52
  205. package/lib/motion/shotcraft/upstream/references/shots/camera/cursor-flyover.md +39 -39
  206. package/lib/motion/shotcraft/upstream/references/shots/camera/depth-layer-moves.md +39 -39
  207. package/lib/motion/shotcraft/upstream/references/shots/camera/graze-face-tour.md +57 -57
  208. package/lib/motion/shotcraft/upstream/references/shots/camera/overhead-camera-moves.md +51 -51
  209. package/lib/motion/shotcraft/upstream/references/shots/camera/space-camera-moves.md +46 -46
  210. package/lib/motion/shotcraft/upstream/references/shots/camera/steep-tilt-glide.md +52 -52
  211. package/lib/motion/shotcraft/upstream/references/shots/camera/tension-camera-moves.md +43 -43
  212. package/lib/motion/shotcraft/upstream/references/shots/camera/terminal-3d.md +42 -42
  213. package/lib/motion/shotcraft/upstream/references/shots/data/before-after-slider-scrub.md +48 -48
  214. package/lib/motion/shotcraft/upstream/references/shots/data/chart-live-moves.md +52 -52
  215. package/lib/motion/shotcraft/upstream/references/shots/data/gauge-readout-moves.md +45 -45
  216. package/lib/motion/shotcraft/upstream/references/shots/data/scroll-brake-moves.md +46 -46
  217. package/lib/motion/shotcraft/upstream/references/shots/data/timeline-travel.md +44 -44
  218. package/lib/motion/shotcraft/upstream/references/shots/effects/assemble-then-type-flyin.md +63 -63
  219. package/lib/motion/shotcraft/upstream/references/shots/effects/aurora-bloom-bg-flip.md +54 -54
  220. package/lib/motion/shotcraft/upstream/references/shots/effects/brand-frame-snap.md +58 -58
  221. package/lib/motion/shotcraft/upstream/references/shots/effects/fui-hud-moves.md +35 -35
  222. package/lib/motion/shotcraft/upstream/references/shots/effects/glow-flyline-moves.md +53 -53
  223. package/lib/motion/shotcraft/upstream/references/shots/effects/icon-performance-moves.md +42 -42
  224. package/lib/motion/shotcraft/upstream/references/shots/effects/impact-feedback.md +50 -50
  225. package/lib/motion/shotcraft/upstream/references/shots/effects/light-play-moves.md +46 -46
  226. package/lib/motion/shotcraft/upstream/references/shots/effects/radial-ripple-phone-chips.md +56 -56
  227. package/lib/motion/shotcraft/upstream/references/shots/effects/riso-print-hits.md +49 -49
  228. package/lib/motion/shotcraft/upstream/references/shots/effects/scan-bracket-sweep.md +50 -50
  229. package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-annotate-focus.md +53 -53
  230. package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-assemble-flyin.md +53 -53
  231. package/lib/motion/shotcraft/upstream/references/shots/effects/slam-entrance-moves.md +55 -55
  232. package/lib/motion/shotcraft/upstream/references/shots/effects/spotlight-sweep-moves.md +52 -52
  233. package/lib/motion/shotcraft/upstream/references/shots/interaction/autolayout-gap-dial.md +60 -60
  234. package/lib/motion/shotcraft/upstream/references/shots/interaction/canvas-materialize-moves.md +57 -57
  235. package/lib/motion/shotcraft/upstream/references/shots/interaction/chip-grid-single-select-blackout.md +51 -51
  236. package/lib/motion/shotcraft/upstream/references/shots/interaction/collab-cursor-moves.md +41 -41
  237. package/lib/motion/shotcraft/upstream/references/shots/interaction/glass-pill-dictation-typing.md +53 -53
  238. package/lib/motion/shotcraft/upstream/references/shots/interaction/hashtag-to-pill-materialize.md +60 -60
  239. package/lib/motion/shotcraft/upstream/references/shots/interaction/picker-carousel-feature-cycle.md +55 -55
  240. package/lib/motion/shotcraft/upstream/references/shots/interaction/segmented-thumb-hero.md +57 -57
  241. package/lib/motion/shotcraft/upstream/references/shots/interaction/theme-switch-moves.md +47 -47
  242. package/lib/motion/shotcraft/upstream/references/shots/interaction/type-and-filter.md +37 -37
  243. package/lib/motion/shotcraft/upstream/references/shots/interaction/voice-waveform-live.md +54 -54
  244. package/lib/motion/shotcraft/upstream/references/shots/opening/brand-ink-open.md +36 -36
  245. package/lib/motion/shotcraft/upstream/references/shots/opening/crane-rise-reveal.md +56 -56
  246. package/lib/motion/shotcraft/upstream/references/shots/opening/dataviz-landscape-open.md +56 -56
  247. package/lib/motion/shotcraft/upstream/references/shots/opening/fracture.md +40 -40
  248. package/lib/motion/shotcraft/upstream/references/shots/opening/icon-field-colorize.md +60 -60
  249. package/lib/motion/shotcraft/upstream/references/shots/opening/letterspace-materialize.md +57 -57
  250. package/lib/motion/shotcraft/upstream/references/shots/opening/magician-card-flourish.md +73 -73
  251. package/lib/motion/shotcraft/upstream/references/shots/opening/orbit-ring-title-open.md +87 -87
  252. package/lib/motion/shotcraft/upstream/references/shots/opening/spotlight-hero-card.md +55 -55
  253. package/lib/motion/shotcraft/upstream/references/shots/opening/stroke-segment-build.md +50 -50
  254. package/lib/motion/shotcraft/upstream/references/shots/opening/text-as-mask.md +59 -59
  255. package/lib/motion/shotcraft/upstream/references/shots/outro/grain-dissolve.md +38 -38
  256. package/lib/motion/shotcraft/upstream/references/shots/outro/logo-shrink-wordmark-lockup.md +38 -38
  257. package/lib/motion/shotcraft/upstream/references/shots/outro/neon-triple-marquee.md +59 -59
  258. package/lib/motion/shotcraft/upstream/references/shots/outro/outro-group-photo-launch.md +39 -39
  259. package/lib/motion/shotcraft/upstream/references/shots/outro/ui-strip-away-outro.md +61 -61
  260. package/lib/motion/shotcraft/upstream/references/shots/outro/ui-to-brand-morph.md +52 -52
  261. package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-cut-moves.md +50 -50
  262. package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-step-list-theme-cycle.md +66 -66
  263. package/lib/motion/shotcraft/upstream/references/shots/rhythm/panel-grid-moves.md +43 -43
  264. package/lib/motion/shotcraft/upstream/references/shots/rhythm/quad-split-parallel-scenes.md +38 -38
  265. package/lib/motion/shotcraft/upstream/references/shots/rhythm/rhythm-interrupt-moves.md +38 -38
  266. package/lib/motion/shotcraft/upstream/references/shots/rhythm/sakuga-timing-shift.md +56 -56
  267. package/lib/motion/shotcraft/upstream/references/shots/rhythm/speed-ramp-freeze.md +44 -44
  268. package/lib/motion/shotcraft/upstream/references/shots/rhythm/trailer-grammar-moves.md +38 -38
  269. package/lib/motion/shotcraft/upstream/references/shots/transition/bottom-push-stack-wipe.md +63 -63
  270. package/lib/motion/shotcraft/upstream/references/shots/transition/card-flip-reveal.md +57 -57
  271. package/lib/motion/shotcraft/upstream/references/shots/transition/card-flock-tumble.md +63 -63
  272. package/lib/motion/shotcraft/upstream/references/shots/transition/circle-match-iris.md +58 -58
  273. package/lib/motion/shotcraft/upstream/references/shots/transition/gradient-transition.md +45 -45
  274. package/lib/motion/shotcraft/upstream/references/shots/transition/line-carry-transition.md +55 -55
  275. package/lib/motion/shotcraft/upstream/references/shots/transition/mosaic-reframe.md +49 -49
  276. package/lib/motion/shotcraft/upstream/references/shots/transition/page-turn-transitions.md +42 -42
  277. package/lib/motion/shotcraft/upstream/references/shots/transition/print-texture-transitions.md +42 -42
  278. package/lib/motion/shotcraft/upstream/references/shots/transition/shot-transitions.md +45 -45
  279. package/lib/motion/shotcraft/upstream/references/shots/transition/tear-streak-transitions.md +48 -48
  280. package/lib/motion/shotcraft/upstream/references/shots/transition/transition-hidden-cut.md +55 -55
  281. package/lib/motion/shotcraft/upstream/references/shots/transition/transition-travel.md +43 -43
  282. package/lib/motion/shotcraft/upstream/references/shots/transition/white-flash-logo-simplify-cut.md +41 -41
  283. package/lib/motion/shotcraft/upstream/references/shots/transition/wipe-transitions.md +42 -42
  284. package/lib/motion/shotcraft/upstream/references/shots/typography/blur-slide.md +59 -59
  285. package/lib/motion/shotcraft/upstream/references/shots/typography/brace-expand.md +55 -55
  286. package/lib/motion/shotcraft/upstream/references/shots/typography/countdown-arc-scatter.md +65 -65
  287. package/lib/motion/shotcraft/upstream/references/shots/typography/document-typewriter-reveal.md +42 -42
  288. package/lib/motion/shotcraft/upstream/references/shots/typography/flying-words.md +64 -64
  289. package/lib/motion/shotcraft/upstream/references/shots/typography/glitch-cycle.md +64 -64
  290. package/lib/motion/shotcraft/upstream/references/shots/typography/gradient-word-sweep.md +54 -54
  291. package/lib/motion/shotcraft/upstream/references/shots/typography/lead-word-zoom-assemble.md +91 -91
  292. package/lib/motion/shotcraft/upstream/references/shots/typography/marker-underline-title.md +51 -51
  293. package/lib/motion/shotcraft/upstream/references/shots/typography/outline-word-fill.md +66 -66
  294. package/lib/motion/shotcraft/upstream/references/shots/typography/paper-title-card.md +38 -38
  295. package/lib/motion/shotcraft/upstream/references/shots/typography/pill-chip-slot-cycle-handled.md +66 -66
  296. package/lib/motion/shotcraft/upstream/references/shots/typography/pill-slot-cycle.md +58 -58
  297. package/lib/motion/shotcraft/upstream/references/shots/typography/text-column-converge.md +61 -61
  298. package/lib/motion/shotcraft/upstream/references/shots/typography/title-demote-to-label.md +64 -64
  299. package/lib/motion/shotcraft/upstream/references/shots/typography/type-assembly-moves.md +45 -45
  300. package/lib/motion/shotcraft/upstream/references/shots/typography/type-entrance-moves.md +41 -41
  301. package/lib/motion/shotcraft/upstream/references/shots/typography/type-rhythm-sync.md +51 -51
  302. package/lib/motion/shotcraft/upstream/references/shots/typography/typewriter-moves.md +42 -42
  303. package/lib/motion/shotcraft/upstream/references/shots/typography/vertical-word-roll-blur-cycle.md +63 -63
  304. package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-filmstrip.md +57 -57
  305. package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-geometry.md +75 -75
  306. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/avatar-bracket-carousel.md +59 -59
  307. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/bezier-source-converge-merge.md +67 -67
  308. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/card-stack.md +60 -60
  309. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/carousel-3d.md +66 -66
  310. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/cloner-depth-echo.md +40 -40
  311. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/deck-deal-flyin.md +45 -45
  312. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/doc-park-left-pill-deal.md +62 -62
  313. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/draw-svg-trace.md +55 -55
  314. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/element-body-moves.md +37 -37
  315. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/integration-hub-map.md +55 -55
  316. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-reveal.md +50 -50
  317. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-stack-press.md +43 -43
  318. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-forerun.md +55 -55
  319. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-orbit-drop.md +51 -51
  320. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/page-waterfall-wall.md +51 -51
  321. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/product-card-progressive-assemble.md +56 -56
  322. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/radial-wave.md +49 -49
  323. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/research-card-stack-scroll.md +57 -57
  324. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/row-embed.md +36 -36
  325. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/value-stagger-gradient.md +64 -64
  326. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/wall-reveal-moves.md +47 -47
  327. package/lib/motion/shotcraft/upstream/references/sound-design.md +170 -170
  328. package/lib/motion/shotcraft/upstream/references/workbench.md +157 -157
  329. package/lib/motion/shotcraft/upstream/template/TEMPLATE.md +103 -103
  330. package/lib/motion/shotcraft/upstream/template/THEMES.md +44 -44
  331. package/lib/motion/shotcraft/upstream/template/package.json +20 -20
  332. package/lib/motion/shotcraft/upstream/template/remotion.config.ts +6 -6
  333. package/lib/motion/shotcraft/upstream/template/src/Root.tsx +17 -17
  334. package/lib/motion/shotcraft/upstream/template/src/aifl/Caption.tsx +65 -65
  335. package/lib/motion/shotcraft/upstream/template/src/aifl/DigitRoll.tsx +48 -48
  336. package/lib/motion/shotcraft/upstream/template/src/aifl/FlashCut.tsx +24 -24
  337. package/lib/motion/shotcraft/upstream/template/src/aifl/Main.tsx +192 -192
  338. package/lib/motion/shotcraft/upstream/template/src/aifl/PaperTitleCard.tsx +111 -111
  339. package/lib/motion/shotcraft/upstream/template/src/aifl/live/PageCam.tsx +150 -150
  340. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneDetail.tsx +158 -158
  341. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneFlyIn.tsx +468 -468
  342. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOpen.tsx +552 -552
  343. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOutroLive.tsx +411 -411
  344. package/lib/motion/shotcraft/upstream/template/src/aifl/live/ScenePapers.tsx +200 -200
  345. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneWbr.tsx +324 -324
  346. package/lib/motion/shotcraft/upstream/template/src/aifl/live-layout.json +388 -388
  347. package/lib/motion/shotcraft/upstream/template/src/index.ts +4 -4
  348. package/lib/motion/shotcraft/upstream/template/src/themes/ThemedFilm.tsx +7 -7
  349. package/lib/motion/shotcraft/upstream/template/src/themes/manifest.tsx +68 -68
  350. package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.json +1 -1
  351. package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.ts +24 -24
  352. package/lib/motion/shotcraft/upstream/template/src/themes/palettes.json +74 -74
  353. package/lib/motion/shotcraft/upstream/template/src/themes/visual-theme.tsx +91 -91
  354. package/lib/motion/shotcraft/upstream/template/src/workbench.ts +213 -213
  355. package/lib/motion/shotcraft/upstream/template/tsconfig.json +15 -15
  356. package/lib/motion/style-frames.js +306 -306
  357. package/lib/motion/sync.js +214 -214
  358. package/lib/motion-project.js +105 -105
  359. package/lib/motion-render-worker.js +174 -174
  360. package/lib/routing/router.js +222 -222
  361. package/lib/routing/vendor/README.md +96 -96
  362. package/lib/routing/vendor/libavoid-routing.js +753 -753
  363. package/lib/routing/vendor/libavoid.min.js +59 -59
  364. package/lib/video-trace-pool.js +128 -128
  365. package/package.json +1 -1
  366. package/LICENSE +0 -4175
@@ -1,307 +1,307 @@
1
- // needle-sweep-selftest —— 满弧扫针自检
2
- // 卡片内三个并排 270° 表盘。f12 "点火"后指针错峰 4f 依次从 0 甩满全弧
3
- // (去程 12f ease-out),再回落到各自真实值(回程约 20f:落过头 5–8° 再回摆),
4
- // 落定同帧盘下数值文字弹出。三表错峰形成波浪。f60 后真静止 80f。
5
- // 帧确定性:纯函数分段,全部 clamp,settle 后每帧输出常数。
6
- //
7
- // 质感升级:仪表语境改暗场(深色柔光背景 + 颗粒、深色卡面发丝线 + 内高光);调试标题换成卡头
8
- // "System health" + 自检状态胶囊(Running self-test… → All systems nominal);表盘加淡表面与外环、
9
- // 0–100 刻度数字;去程扫过的刻度依次点亮再回落("先亮量程"),盘面有一条跟随指针的琥珀亮弧;
10
- // 指针换成锥形发光针 + 金属轴帽,高速甩针时带角向拖影;回程改为按各表行程反算阻尼的弹簧,
11
- // 落过头 8° 一次回摆、速度连续无折点;数值 overshoot 弹出、下方标注指标名。
12
- // 品牌轮:卡头换成 video-shotcraft 渲染节点自检(标志 + "Render node health",落定后 "Ready to render")。
13
- import React from 'react';
14
- import { AbsoluteFill, spring, useCurrentFrame } from 'remotion';
15
- import { Backdrop, EASE, FONT, Grain, mix, ramp, softShadow, tracking } from '../../_fixtures/Polish';
16
- import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
17
-
18
- export const NEEDLE_SWEEP_SELFTEST_DURATION = 140; // f60 后真静止 80f
19
-
20
- const AMBER = '#f59e0b';
21
- const AMBER_HI = '#fcd34d';
22
- const RED = '#ef4444';
23
- const INK1 = '#f3f4f7';
24
- const INK3 = '#737885';
25
-
26
- const CARD_W = 1500;
27
- const CARD_H = 640;
28
- const CARD_X = (1920 - CARD_W) / 2;
29
- const CARD_Y = (1080 - CARD_H) / 2 + 10;
30
-
31
- const GA_W = CARD_W / 3; // 每表盘占位宽
32
- const R = 148;
33
- const CX = GA_W / 2;
34
- const CY = 220;
35
-
36
- // 表盘角 d∈[0,270] → SVG 角 a = 135 + d(0=右,顺时针,y 向下)
37
- const polar = (a: number, r: number): [number, number] => [
38
- CX + r * Math.cos((a * Math.PI) / 180),
39
- CY + r * Math.sin((a * Math.PI) / 180),
40
- ];
41
-
42
- const arcPath = (d0: number, d1: number, r: number): string => {
43
- const [x0, y0] = polar(135 + d0, r);
44
- const [x1, y1] = polar(135 + Math.max(d0 + 0.01, d1), r);
45
- const large = d1 - d0 > 180 ? 1 : 0;
46
- return `M ${x0.toFixed(2)} ${y0.toFixed(2)} A ${r} ${r} 0 ${large} 1 ${x1.toFixed(2)} ${y1.toFixed(2)}`;
47
- };
48
-
49
- // 三表:点火 f12,错峰 4f
50
- const GAUGES = [
51
- { start: 12, target: 190, name: 'CPU' },
52
- { start: 16, target: 120, name: 'GPU' },
53
- { start: 20, target: 235, name: 'Network' },
54
- ];
55
-
56
- // 回程弹簧:按"落过头 8°"反算阻尼比 ζ(超调比 p = 8/行程,ζ = -ln p / √(π² + ln² p))
57
- const STIFF = 120;
58
- const dampingFor = (target: number) => {
59
- const p = Math.min(0.5, 8 / (270 - target));
60
- const lp = Math.log(p);
61
- const zeta = -lp / Math.sqrt(Math.PI * Math.PI + lp * lp);
62
- return 2 * zeta * Math.sqrt(STIFF);
63
- };
64
-
65
- const needleAngle = (frame: number, s: number, target: number): number => {
66
- if (frame <= s) return 0;
67
- if (frame <= s + 12) return 270 * ramp(frame, s, 12, (x) => 1 - Math.pow(1 - x, 3)); // 去程:甩满全弧,起步猛
68
- if (frame >= s + 46) return target; // 真静止:直接锁死常数
69
- const k = spring({ frame: frame - (s + 12), fps: 30, config: { stiffness: STIFF, damping: dampingFor(target), mass: 1 } });
70
- return mix(270, target, k);
71
- };
72
-
73
- const Gauge: React.FC<{ start: number; target: number; name: string }> = ({ start, target, name }) => {
74
- const frame = useCurrentFrame();
75
- const d = needleAngle(frame, start, target);
76
- const dPrev = needleAngle(frame - 1, start, target);
77
- const settle = start + 32;
78
- const value = Math.round((target / 270) * 100);
79
-
80
- const pop = ramp(frame, settle, 9, EASE.overshoot);
81
- const popOp = ramp(frame, settle, 4, EASE.out);
82
- const nameOp = ramp(frame, settle + 3, 10, EASE.out);
83
-
84
- // 表盘点亮:点火时表面与外环亮起
85
- const on = ramp(frame, start - 4, 10, EASE.out);
86
- // 去程扫过的刻度依次点亮,满弧后 24f 内回落到常态亮度
87
- const swept = frame <= start + 12 ? d : 270;
88
- const calm = ramp(frame, start + 12, 24, EASE.smooth);
89
-
90
- const ticks: React.ReactNode[] = [];
91
- for (let k = 0; k <= 30; k++) {
92
- const dd = k * 9;
93
- const major = k % 3 === 0;
94
- const a = 135 + dd;
95
- const [x0, y0] = polar(a, R - 10);
96
- const [x1, y1] = polar(a, major ? R - 30 : R - 20);
97
- const lit = swept >= dd - 0.5 ? 1 - calm : 0;
98
- const red = dd >= 225;
99
- const base = red ? 0.55 : 0.22;
100
- ticks.push(
101
- <line
102
- key={k}
103
- x1={x0}
104
- y1={y0}
105
- x2={x1}
106
- y2={y1}
107
- stroke={red ? RED : '#ffffff'}
108
- strokeOpacity={(base + (red ? 0.4 : 0.6) * lit) * on}
109
- strokeWidth={major ? 3 : 1.6}
110
- strokeLinecap="round"
111
- />,
112
- );
113
- if (major) {
114
- const [lx, ly] = polar(a, R - 52);
115
- ticks.push(
116
- <text
117
- key={`l${k}`}
118
- x={lx}
119
- y={ly}
120
- textAnchor="middle"
121
- dominantBaseline="central"
122
- fontFamily={FONT.sans}
123
- fontSize={16}
124
- fontWeight={500}
125
- fill={red ? '#f87171' : '#ffffff'}
126
- fillOpacity={(red ? 0.7 : 0.38 + 0.4 * lit) * on}
127
- style={{ fontVariantNumeric: 'tabular-nums' }}
128
- >
129
- {(k / 3) * 10}
130
- </text>,
131
- );
132
- }
133
- }
134
-
135
- // 锥形指针(局部坐标:沿 +x 指向 0° 方向,再整体 rotate)
136
- const needle = (deg: number, opacity: number, key?: string) => {
137
- const [tx, ty] = polar(135, R - 13);
138
- const len = Math.hypot(tx - CX, ty - CY);
139
- return (
140
- <g key={key} transform={`rotate(${(135 + deg).toFixed(3)} ${CX} ${CY})`} opacity={opacity}>
141
- <path
142
- d={`M ${CX - 34} ${CY - 5} L ${CX + len} ${CY - 1.6} Q ${CX + len + 3.5} ${CY} ${CX + len} ${CY + 1.6} L ${CX - 34} ${CY + 5} Z`}
143
- fill="url(#nssNeedle)"
144
- />
145
- </g>
146
- );
147
- };
148
- const dv = d - dPrev;
149
- const ghosts = Math.abs(dv) > 4 ? [1, 2, 3, 4].map((g) => needle(d - (dv * g) / 4, 0.16 * (1 - g / 5), `gh${g}`)) : null;
150
-
151
- return (
152
- <div style={{ width: GA_W, height: 500, position: 'relative' }}>
153
- <svg width={GA_W} height={420} style={{ overflow: 'visible' }}>
154
- <defs>
155
- <linearGradient id="nssNeedle" x1="0" y1="0" x2="1" y2="0">
156
- <stop offset="0" stopColor="#b45309" />
157
- <stop offset="0.55" stopColor={AMBER} />
158
- <stop offset="1" stopColor={AMBER_HI} />
159
- </linearGradient>
160
- <radialGradient id="nssHub" cx="0.38" cy="0.32" r="0.7">
161
- <stop offset="0" stopColor="#6b7080" />
162
- <stop offset="1" stopColor="#1c1d23" />
163
- </radialGradient>
164
- <radialGradient id="nssFace" cx="0.5" cy="0.42" r="0.6">
165
- <stop offset="0" stopColor="#ffffff" stopOpacity={0.05} />
166
- <stop offset="1" stopColor="#ffffff" stopOpacity={0.01} />
167
- </radialGradient>
168
- <filter id="nssGlow" x="-50%" y="-50%" width="200%" height="200%">
169
- <feGaussianBlur stdDeviation="6" />
170
- </filter>
171
- </defs>
172
- {/* 表面:淡径向 + 发丝外环 */}
173
- <circle cx={CX} cy={CY} r={R + 20} fill="url(#nssFace)" stroke="#ffffff" strokeOpacity={0.07 * on} strokeWidth={1} opacity={on} />
174
- {/* 弧形轨道 + 红区 */}
175
- <path d={arcPath(0, 270, R)} fill="none" stroke="#ffffff" strokeOpacity={0.07} strokeWidth={8} strokeLinecap="round" />
176
- <path d={arcPath(225, 270, R)} fill="none" stroke={RED} strokeOpacity={0.45 * on} strokeWidth={8} strokeLinecap="round" />
177
- {/* 跟随指针的琥珀亮弧(柔光层 + 实线层) */}
178
- {d > 0.5 && (
179
- <>
180
- <path d={arcPath(0, d, R)} fill="none" stroke={AMBER} strokeOpacity={0.45} strokeWidth={10} strokeLinecap="round" filter="url(#nssGlow)" />
181
- <path d={arcPath(0, d, R)} fill="none" stroke={AMBER} strokeWidth={8} strokeLinecap="round" />
182
- </>
183
- )}
184
- {ticks}
185
- {/* 指针:角向拖影 + 发光 + 本体 */}
186
- {ghosts}
187
- <g filter="url(#nssGlow)" opacity={0.55}>
188
- {needle(d, 1)}
189
- </g>
190
- {needle(d, 1)}
191
- <circle cx={CX} cy={CY} r={19} fill="url(#nssHub)" stroke="#ffffff" strokeOpacity={0.12} strokeWidth={1} />
192
- <circle cx={CX} cy={CY} r={6} fill={AMBER} />
193
- </svg>
194
- {/* 落定同帧弹出的数值 + 指标名 */}
195
- <div
196
- style={{
197
- position: 'absolute',
198
- left: 0,
199
- right: 0,
200
- top: 340,
201
- textAlign: 'center',
202
- opacity: popOp,
203
- transform: `scale(${mix(0.4, 1, pop).toFixed(4)})`,
204
- fontFamily: FONT.sans,
205
- whiteSpace: 'nowrap',
206
- }}
207
- >
208
- <span style={{ fontWeight: 700, fontSize: 64, color: INK1, letterSpacing: tracking(64), fontVariantNumeric: 'tabular-nums' }}>{value}</span>
209
- <span style={{ fontWeight: 600, fontSize: 30, color: INK3, marginLeft: 6 }}>%</span>
210
- </div>
211
- <div
212
- style={{
213
- position: 'absolute',
214
- left: 0,
215
- right: 0,
216
- top: 424,
217
- textAlign: 'center',
218
- opacity: nameOp,
219
- transform: `translateY(${mix(6, 0, nameOp)}px)`,
220
- fontFamily: FONT.sans,
221
- fontSize: 22,
222
- fontWeight: 600,
223
- letterSpacing: tracking(22, true),
224
- textTransform: 'uppercase',
225
- color: INK3,
226
- }}
227
- >
228
- {name}
229
- </div>
230
- </div>
231
- );
232
- };
233
-
234
- export const NeedleSweepSelftest: React.FC = () => {
235
- const frame = useCurrentFrame();
236
- const inP = ramp(frame, 0, 12, EASE.snappy);
237
- const done = ramp(frame, 60, 8, EASE.out); // 全部落定后状态切换
238
- const pulse = 0.5 + 0.5 * Math.cos((frame / 14) * Math.PI);
239
- return (
240
- <AbsoluteFill style={{ background: '#0c0d11', overflow: 'hidden', fontFamily: FONT.sans }}>
241
- <Backdrop tone="dark" light={{ x: 0.5, y: 0.25 }} grain={0} />
242
- <div
243
- style={{
244
- position: 'absolute',
245
- left: CARD_X,
246
- top: CARD_Y,
247
- width: CARD_W,
248
- height: CARD_H,
249
- background: 'linear-gradient(180deg, #1a1c22 0%, #141519 100%)',
250
- border: '1px solid rgba(255,255,255,0.07)',
251
- borderRadius: 26,
252
- boxSizing: 'border-box',
253
- boxShadow: `inset 0 1px 0 rgba(255,255,255,0.06), ${softShadow(40, { color: '#000000', strength: 2.2 })}`,
254
- opacity: inP,
255
- transform: `translateY(${mix(18, 0, inP).toFixed(2)}px)`,
256
- }}
257
- >
258
- {/* 卡头:标题 + 自检状态胶囊 */}
259
- <ShotcraftMark size={62} tone="dark" style={{ position: 'absolute', left: 40, top: 30 }} />
260
- <div style={{ position: 'absolute', left: 122, top: 36 }}>
261
- <div style={{ fontSize: 32, fontWeight: 650, color: INK1, letterSpacing: tracking(32) }}>Render node health</div>
262
- <div style={{ marginTop: 7, fontSize: 19, fontWeight: 500, color: INK3 }}>
263
- <span style={{ fontFamily: BRAND.font, fontWeight: 600, color: '#a3a8b4' }}>{BRAND.name}</span> · render-node-02 · 3 sensors
264
- </div>
265
- </div>
266
- <div
267
- style={{
268
- position: 'absolute',
269
- right: 44,
270
- top: 42,
271
- height: 40,
272
- padding: '0 16px 0 13px',
273
- display: 'flex',
274
- alignItems: 'center',
275
- gap: 10,
276
- borderRadius: 20,
277
- background: done > 0.5 ? 'rgba(52,211,153,0.10)' : 'rgba(245,158,11,0.10)',
278
- border: `1px solid ${done > 0.5 ? 'rgba(52,211,153,0.25)' : 'rgba(245,158,11,0.25)'}`,
279
- fontSize: 18,
280
- fontWeight: 600,
281
- color: done > 0.5 ? '#6ee7b7' : '#fbbf24',
282
- whiteSpace: 'nowrap',
283
- }}
284
- >
285
- <span
286
- style={{
287
- width: 9,
288
- height: 9,
289
- borderRadius: 5,
290
- background: done > 0.5 ? '#34d399' : AMBER,
291
- opacity: done > 0.5 ? 1 : 0.45 + 0.55 * pulse,
292
- }}
293
- />
294
- {done > 0.5 ? 'Ready to render' : 'Running self-test…'}
295
- </div>
296
- {/* 分隔发丝线 */}
297
- <div style={{ position: 'absolute', left: 44, right: 44, top: 122, height: 1, background: 'rgba(255,255,255,0.06)' }} />
298
- <div style={{ position: 'absolute', left: 0, top: 136, display: 'flex' }}>
299
- {GAUGES.map((g, i) => (
300
- <Gauge key={i} start={g.start} target={g.target} name={g.name} />
301
- ))}
302
- </div>
303
- </div>
304
- <Grain opacity={0.07} blend="soft-light" />
305
- </AbsoluteFill>
306
- );
307
- };
1
+ // needle-sweep-selftest —— 满弧扫针自检
2
+ // 卡片内三个并排 270° 表盘。f12 "点火"后指针错峰 4f 依次从 0 甩满全弧
3
+ // (去程 12f ease-out),再回落到各自真实值(回程约 20f:落过头 5–8° 再回摆),
4
+ // 落定同帧盘下数值文字弹出。三表错峰形成波浪。f60 后真静止 80f。
5
+ // 帧确定性:纯函数分段,全部 clamp,settle 后每帧输出常数。
6
+ //
7
+ // 质感升级:仪表语境改暗场(深色柔光背景 + 颗粒、深色卡面发丝线 + 内高光);调试标题换成卡头
8
+ // "System health" + 自检状态胶囊(Running self-test… → All systems nominal);表盘加淡表面与外环、
9
+ // 0–100 刻度数字;去程扫过的刻度依次点亮再回落("先亮量程"),盘面有一条跟随指针的琥珀亮弧;
10
+ // 指针换成锥形发光针 + 金属轴帽,高速甩针时带角向拖影;回程改为按各表行程反算阻尼的弹簧,
11
+ // 落过头 8° 一次回摆、速度连续无折点;数值 overshoot 弹出、下方标注指标名。
12
+ // 品牌轮:卡头换成 video-shotcraft 渲染节点自检(标志 + "Render node health",落定后 "Ready to render")。
13
+ import React from 'react';
14
+ import { AbsoluteFill, spring, useCurrentFrame } from 'remotion';
15
+ import { Backdrop, EASE, FONT, Grain, mix, ramp, softShadow, tracking } from '../../_fixtures/Polish';
16
+ import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
17
+
18
+ export const NEEDLE_SWEEP_SELFTEST_DURATION = 140; // f60 后真静止 80f
19
+
20
+ const AMBER = '#f59e0b';
21
+ const AMBER_HI = '#fcd34d';
22
+ const RED = '#ef4444';
23
+ const INK1 = '#f3f4f7';
24
+ const INK3 = '#737885';
25
+
26
+ const CARD_W = 1500;
27
+ const CARD_H = 640;
28
+ const CARD_X = (1920 - CARD_W) / 2;
29
+ const CARD_Y = (1080 - CARD_H) / 2 + 10;
30
+
31
+ const GA_W = CARD_W / 3; // 每表盘占位宽
32
+ const R = 148;
33
+ const CX = GA_W / 2;
34
+ const CY = 220;
35
+
36
+ // 表盘角 d∈[0,270] → SVG 角 a = 135 + d(0=右,顺时针,y 向下)
37
+ const polar = (a: number, r: number): [number, number] => [
38
+ CX + r * Math.cos((a * Math.PI) / 180),
39
+ CY + r * Math.sin((a * Math.PI) / 180),
40
+ ];
41
+
42
+ const arcPath = (d0: number, d1: number, r: number): string => {
43
+ const [x0, y0] = polar(135 + d0, r);
44
+ const [x1, y1] = polar(135 + Math.max(d0 + 0.01, d1), r);
45
+ const large = d1 - d0 > 180 ? 1 : 0;
46
+ return `M ${x0.toFixed(2)} ${y0.toFixed(2)} A ${r} ${r} 0 ${large} 1 ${x1.toFixed(2)} ${y1.toFixed(2)}`;
47
+ };
48
+
49
+ // 三表:点火 f12,错峰 4f
50
+ const GAUGES = [
51
+ { start: 12, target: 190, name: 'CPU' },
52
+ { start: 16, target: 120, name: 'GPU' },
53
+ { start: 20, target: 235, name: 'Network' },
54
+ ];
55
+
56
+ // 回程弹簧:按"落过头 8°"反算阻尼比 ζ(超调比 p = 8/行程,ζ = -ln p / √(π² + ln² p))
57
+ const STIFF = 120;
58
+ const dampingFor = (target: number) => {
59
+ const p = Math.min(0.5, 8 / (270 - target));
60
+ const lp = Math.log(p);
61
+ const zeta = -lp / Math.sqrt(Math.PI * Math.PI + lp * lp);
62
+ return 2 * zeta * Math.sqrt(STIFF);
63
+ };
64
+
65
+ const needleAngle = (frame: number, s: number, target: number): number => {
66
+ if (frame <= s) return 0;
67
+ if (frame <= s + 12) return 270 * ramp(frame, s, 12, (x) => 1 - Math.pow(1 - x, 3)); // 去程:甩满全弧,起步猛
68
+ if (frame >= s + 46) return target; // 真静止:直接锁死常数
69
+ const k = spring({ frame: frame - (s + 12), fps: 30, config: { stiffness: STIFF, damping: dampingFor(target), mass: 1 } });
70
+ return mix(270, target, k);
71
+ };
72
+
73
+ const Gauge: React.FC<{ start: number; target: number; name: string }> = ({ start, target, name }) => {
74
+ const frame = useCurrentFrame();
75
+ const d = needleAngle(frame, start, target);
76
+ const dPrev = needleAngle(frame - 1, start, target);
77
+ const settle = start + 32;
78
+ const value = Math.round((target / 270) * 100);
79
+
80
+ const pop = ramp(frame, settle, 9, EASE.overshoot);
81
+ const popOp = ramp(frame, settle, 4, EASE.out);
82
+ const nameOp = ramp(frame, settle + 3, 10, EASE.out);
83
+
84
+ // 表盘点亮:点火时表面与外环亮起
85
+ const on = ramp(frame, start - 4, 10, EASE.out);
86
+ // 去程扫过的刻度依次点亮,满弧后 24f 内回落到常态亮度
87
+ const swept = frame <= start + 12 ? d : 270;
88
+ const calm = ramp(frame, start + 12, 24, EASE.smooth);
89
+
90
+ const ticks: React.ReactNode[] = [];
91
+ for (let k = 0; k <= 30; k++) {
92
+ const dd = k * 9;
93
+ const major = k % 3 === 0;
94
+ const a = 135 + dd;
95
+ const [x0, y0] = polar(a, R - 10);
96
+ const [x1, y1] = polar(a, major ? R - 30 : R - 20);
97
+ const lit = swept >= dd - 0.5 ? 1 - calm : 0;
98
+ const red = dd >= 225;
99
+ const base = red ? 0.55 : 0.22;
100
+ ticks.push(
101
+ <line
102
+ key={k}
103
+ x1={x0}
104
+ y1={y0}
105
+ x2={x1}
106
+ y2={y1}
107
+ stroke={red ? RED : '#ffffff'}
108
+ strokeOpacity={(base + (red ? 0.4 : 0.6) * lit) * on}
109
+ strokeWidth={major ? 3 : 1.6}
110
+ strokeLinecap="round"
111
+ />,
112
+ );
113
+ if (major) {
114
+ const [lx, ly] = polar(a, R - 52);
115
+ ticks.push(
116
+ <text
117
+ key={`l${k}`}
118
+ x={lx}
119
+ y={ly}
120
+ textAnchor="middle"
121
+ dominantBaseline="central"
122
+ fontFamily={FONT.sans}
123
+ fontSize={16}
124
+ fontWeight={500}
125
+ fill={red ? '#f87171' : '#ffffff'}
126
+ fillOpacity={(red ? 0.7 : 0.38 + 0.4 * lit) * on}
127
+ style={{ fontVariantNumeric: 'tabular-nums' }}
128
+ >
129
+ {(k / 3) * 10}
130
+ </text>,
131
+ );
132
+ }
133
+ }
134
+
135
+ // 锥形指针(局部坐标:沿 +x 指向 0° 方向,再整体 rotate)
136
+ const needle = (deg: number, opacity: number, key?: string) => {
137
+ const [tx, ty] = polar(135, R - 13);
138
+ const len = Math.hypot(tx - CX, ty - CY);
139
+ return (
140
+ <g key={key} transform={`rotate(${(135 + deg).toFixed(3)} ${CX} ${CY})`} opacity={opacity}>
141
+ <path
142
+ d={`M ${CX - 34} ${CY - 5} L ${CX + len} ${CY - 1.6} Q ${CX + len + 3.5} ${CY} ${CX + len} ${CY + 1.6} L ${CX - 34} ${CY + 5} Z`}
143
+ fill="url(#nssNeedle)"
144
+ />
145
+ </g>
146
+ );
147
+ };
148
+ const dv = d - dPrev;
149
+ const ghosts = Math.abs(dv) > 4 ? [1, 2, 3, 4].map((g) => needle(d - (dv * g) / 4, 0.16 * (1 - g / 5), `gh${g}`)) : null;
150
+
151
+ return (
152
+ <div style={{ width: GA_W, height: 500, position: 'relative' }}>
153
+ <svg width={GA_W} height={420} style={{ overflow: 'visible' }}>
154
+ <defs>
155
+ <linearGradient id="nssNeedle" x1="0" y1="0" x2="1" y2="0">
156
+ <stop offset="0" stopColor="#b45309" />
157
+ <stop offset="0.55" stopColor={AMBER} />
158
+ <stop offset="1" stopColor={AMBER_HI} />
159
+ </linearGradient>
160
+ <radialGradient id="nssHub" cx="0.38" cy="0.32" r="0.7">
161
+ <stop offset="0" stopColor="#6b7080" />
162
+ <stop offset="1" stopColor="#1c1d23" />
163
+ </radialGradient>
164
+ <radialGradient id="nssFace" cx="0.5" cy="0.42" r="0.6">
165
+ <stop offset="0" stopColor="#ffffff" stopOpacity={0.05} />
166
+ <stop offset="1" stopColor="#ffffff" stopOpacity={0.01} />
167
+ </radialGradient>
168
+ <filter id="nssGlow" x="-50%" y="-50%" width="200%" height="200%">
169
+ <feGaussianBlur stdDeviation="6" />
170
+ </filter>
171
+ </defs>
172
+ {/* 表面:淡径向 + 发丝外环 */}
173
+ <circle cx={CX} cy={CY} r={R + 20} fill="url(#nssFace)" stroke="#ffffff" strokeOpacity={0.07 * on} strokeWidth={1} opacity={on} />
174
+ {/* 弧形轨道 + 红区 */}
175
+ <path d={arcPath(0, 270, R)} fill="none" stroke="#ffffff" strokeOpacity={0.07} strokeWidth={8} strokeLinecap="round" />
176
+ <path d={arcPath(225, 270, R)} fill="none" stroke={RED} strokeOpacity={0.45 * on} strokeWidth={8} strokeLinecap="round" />
177
+ {/* 跟随指针的琥珀亮弧(柔光层 + 实线层) */}
178
+ {d > 0.5 && (
179
+ <>
180
+ <path d={arcPath(0, d, R)} fill="none" stroke={AMBER} strokeOpacity={0.45} strokeWidth={10} strokeLinecap="round" filter="url(#nssGlow)" />
181
+ <path d={arcPath(0, d, R)} fill="none" stroke={AMBER} strokeWidth={8} strokeLinecap="round" />
182
+ </>
183
+ )}
184
+ {ticks}
185
+ {/* 指针:角向拖影 + 发光 + 本体 */}
186
+ {ghosts}
187
+ <g filter="url(#nssGlow)" opacity={0.55}>
188
+ {needle(d, 1)}
189
+ </g>
190
+ {needle(d, 1)}
191
+ <circle cx={CX} cy={CY} r={19} fill="url(#nssHub)" stroke="#ffffff" strokeOpacity={0.12} strokeWidth={1} />
192
+ <circle cx={CX} cy={CY} r={6} fill={AMBER} />
193
+ </svg>
194
+ {/* 落定同帧弹出的数值 + 指标名 */}
195
+ <div
196
+ style={{
197
+ position: 'absolute',
198
+ left: 0,
199
+ right: 0,
200
+ top: 340,
201
+ textAlign: 'center',
202
+ opacity: popOp,
203
+ transform: `scale(${mix(0.4, 1, pop).toFixed(4)})`,
204
+ fontFamily: FONT.sans,
205
+ whiteSpace: 'nowrap',
206
+ }}
207
+ >
208
+ <span style={{ fontWeight: 700, fontSize: 64, color: INK1, letterSpacing: tracking(64), fontVariantNumeric: 'tabular-nums' }}>{value}</span>
209
+ <span style={{ fontWeight: 600, fontSize: 30, color: INK3, marginLeft: 6 }}>%</span>
210
+ </div>
211
+ <div
212
+ style={{
213
+ position: 'absolute',
214
+ left: 0,
215
+ right: 0,
216
+ top: 424,
217
+ textAlign: 'center',
218
+ opacity: nameOp,
219
+ transform: `translateY(${mix(6, 0, nameOp)}px)`,
220
+ fontFamily: FONT.sans,
221
+ fontSize: 22,
222
+ fontWeight: 600,
223
+ letterSpacing: tracking(22, true),
224
+ textTransform: 'uppercase',
225
+ color: INK3,
226
+ }}
227
+ >
228
+ {name}
229
+ </div>
230
+ </div>
231
+ );
232
+ };
233
+
234
+ export const NeedleSweepSelftest: React.FC = () => {
235
+ const frame = useCurrentFrame();
236
+ const inP = ramp(frame, 0, 12, EASE.snappy);
237
+ const done = ramp(frame, 60, 8, EASE.out); // 全部落定后状态切换
238
+ const pulse = 0.5 + 0.5 * Math.cos((frame / 14) * Math.PI);
239
+ return (
240
+ <AbsoluteFill style={{ background: '#0c0d11', overflow: 'hidden', fontFamily: FONT.sans }}>
241
+ <Backdrop tone="dark" light={{ x: 0.5, y: 0.25 }} grain={0} />
242
+ <div
243
+ style={{
244
+ position: 'absolute',
245
+ left: CARD_X,
246
+ top: CARD_Y,
247
+ width: CARD_W,
248
+ height: CARD_H,
249
+ background: 'linear-gradient(180deg, #1a1c22 0%, #141519 100%)',
250
+ border: '1px solid rgba(255,255,255,0.07)',
251
+ borderRadius: 26,
252
+ boxSizing: 'border-box',
253
+ boxShadow: `inset 0 1px 0 rgba(255,255,255,0.06), ${softShadow(40, { color: '#000000', strength: 2.2 })}`,
254
+ opacity: inP,
255
+ transform: `translateY(${mix(18, 0, inP).toFixed(2)}px)`,
256
+ }}
257
+ >
258
+ {/* 卡头:标题 + 自检状态胶囊 */}
259
+ <ShotcraftMark size={62} tone="dark" style={{ position: 'absolute', left: 40, top: 30 }} />
260
+ <div style={{ position: 'absolute', left: 122, top: 36 }}>
261
+ <div style={{ fontSize: 32, fontWeight: 650, color: INK1, letterSpacing: tracking(32) }}>Render node health</div>
262
+ <div style={{ marginTop: 7, fontSize: 19, fontWeight: 500, color: INK3 }}>
263
+ <span style={{ fontFamily: BRAND.font, fontWeight: 600, color: '#a3a8b4' }}>{BRAND.name}</span> · render-node-02 · 3 sensors
264
+ </div>
265
+ </div>
266
+ <div
267
+ style={{
268
+ position: 'absolute',
269
+ right: 44,
270
+ top: 42,
271
+ height: 40,
272
+ padding: '0 16px 0 13px',
273
+ display: 'flex',
274
+ alignItems: 'center',
275
+ gap: 10,
276
+ borderRadius: 20,
277
+ background: done > 0.5 ? 'rgba(52,211,153,0.10)' : 'rgba(245,158,11,0.10)',
278
+ border: `1px solid ${done > 0.5 ? 'rgba(52,211,153,0.25)' : 'rgba(245,158,11,0.25)'}`,
279
+ fontSize: 18,
280
+ fontWeight: 600,
281
+ color: done > 0.5 ? '#6ee7b7' : '#fbbf24',
282
+ whiteSpace: 'nowrap',
283
+ }}
284
+ >
285
+ <span
286
+ style={{
287
+ width: 9,
288
+ height: 9,
289
+ borderRadius: 5,
290
+ background: done > 0.5 ? '#34d399' : AMBER,
291
+ opacity: done > 0.5 ? 1 : 0.45 + 0.55 * pulse,
292
+ }}
293
+ />
294
+ {done > 0.5 ? 'Ready to render' : 'Running self-test…'}
295
+ </div>
296
+ {/* 分隔发丝线 */}
297
+ <div style={{ position: 'absolute', left: 44, right: 44, top: 122, height: 1, background: 'rgba(255,255,255,0.06)' }} />
298
+ <div style={{ position: 'absolute', left: 0, top: 136, display: 'flex' }}>
299
+ {GAUGES.map((g, i) => (
300
+ <Gauge key={i} start={g.start} target={g.target} name={g.name} />
301
+ ))}
302
+ </div>
303
+ </div>
304
+ <Grain opacity={0.07} blend="soft-light" />
305
+ </AbsoluteFill>
306
+ );
307
+ };