kasaframe 0.1.1 → 0.1.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/NOTICE +10 -8
- package/README.md +16 -1
- package/app/server/engine.ts +133 -15
- package/app/server/main.ts +7 -3
- package/app/web/main.ts +218 -36
- package/app/web/style.css +37 -4
- package/bin/hooks.mjs +14 -1
- package/bin/kf.mjs +20 -2
- package/docs/AGENTS.md +64 -16
- package/music/README.md +31 -7
- package/package.json +2 -2
- package/packages/adapters/src/project.ts +5 -1
- package/packages/adapters/src/texture.ts +94 -0
- package/packages/check/src/check.ts +10 -3
- package/packages/check/src/rules/assets.ts +4 -1
- package/packages/check/src/rules/frames.ts +2 -1
- package/packages/check/src/rules/layout.ts +30 -6
- package/packages/cli/package.json +2 -1
- package/packages/cli/src/blur.ts +15 -3
- package/packages/cli/src/cells.ts +227 -0
- package/packages/cli/src/commands/bench.ts +123 -0
- package/packages/cli/src/commands/blender.ts +72 -49
- package/packages/cli/src/commands/direct.ts +210 -0
- package/packages/cli/src/commands/doctor.ts +9 -1
- package/packages/cli/src/commands/look.ts +9 -2
- package/packages/cli/src/commands/lyrics.ts +47 -1
- package/packages/cli/src/commands/make.ts +797 -150
- package/packages/cli/src/commands/music.ts +78 -0
- package/packages/cli/src/commands/narrate.ts +238 -0
- package/packages/cli/src/commands/new.ts +15 -6
- package/packages/cli/src/commands/render.ts +94 -60
- package/packages/cli/src/commands/series.ts +110 -0
- package/packages/cli/src/commands/setup.ts +42 -3
- package/packages/cli/src/commands/theme.ts +222 -4
- package/packages/cli/src/deps.ts +6 -6
- package/packages/cli/src/kf.ts +14 -3
- package/packages/cli/src/lock.ts +8 -6
- package/packages/cli/src/mix.ts +131 -0
- package/packages/cli/src/pick.ts +110 -0
- package/packages/cli/src/pool.ts +34 -0
- package/packages/cli/src/segments.ts +402 -0
- package/packages/cli/src/vary.ts +124 -0
- package/packages/core/src/index.ts +1 -1
- package/packages/core/src/project.ts +26 -0
- package/packages/director/package.json +23 -0
- package/packages/director/src/assemble.ts +364 -0
- package/packages/director/src/brief.ts +122 -0
- package/packages/director/src/catalog.ts +49 -0
- package/packages/director/src/content.ts +343 -0
- package/packages/director/src/fallback.ts +58 -0
- package/packages/director/src/index.ts +13 -0
- package/packages/director/src/pattern.ts +90 -0
- package/packages/director/src/patterns/fill/cells.ts +115 -0
- package/packages/director/src/patterns/formula/stack.ts +93 -0
- package/packages/director/src/patterns/util.ts +58 -0
- package/packages/director/src/scene.ts +62 -0
- package/packages/director/src/select.ts +163 -0
- package/packages/director/src/transitions.ts +115 -0
- package/packages/gen/PROVIDERS.md +39 -4
- package/packages/gen/src/ask.ts +132 -0
- package/packages/gen/src/audio.ts +91 -0
- package/packages/gen/src/blender.ts +54 -0
- package/packages/gen/src/capabilities.ts +151 -0
- package/packages/gen/src/generate.ts +4 -2
- package/packages/gen/src/image/codex.ts +117 -0
- package/packages/gen/src/index.ts +10 -2
- package/packages/gen/src/keys.ts +26 -0
- package/packages/gen/src/music/elevenlabs.ts +41 -0
- package/packages/gen/src/music/index.ts +120 -0
- package/packages/gen/src/music/library.ts +73 -0
- package/packages/gen/src/music/lyria.ts +52 -0
- package/packages/gen/src/music/types.ts +28 -0
- package/packages/gen/src/registry.ts +6 -3
- package/packages/gen/src/tts/dashscope.ts +64 -0
- package/packages/gen/src/tts/elevenlabs.ts +84 -0
- package/packages/gen/src/tts/gemini.ts +73 -0
- package/packages/gen/src/tts/index.ts +241 -0
- package/packages/gen/src/tts/local.ts +42 -0
- package/packages/gen/src/tts/types.ts +44 -0
- package/packages/gen/src/types.ts +4 -0
- package/packages/gen/src/video/h3.ts +5 -0
- package/packages/gen/src/video/http.ts +1 -1
- package/packages/jizura/src/index.ts +2 -2
- package/packages/jizura/src/install.ts +198 -155
- package/packages/jizura/src/layer.ts +75 -32
- package/packages/jizura/src/pin.ts +4 -1
- package/packages/jizura/src/vendor.ts +140 -0
- package/packages/jizura/src/vite.ts +34 -7
- package/packages/jizura/vendor/JIZURA_LICENSE.txt +21 -0
- package/packages/jizura/vendor/NOTICE +43 -0
- package/packages/jizura/vendor/engine.json +47 -0
- package/packages/jizura/vendor/fonts/BlackHanSans-Regular.woff2 +0 -0
- package/packages/jizura/vendor/fonts/DotGothic16-Regular.woff2 +0 -0
- package/packages/jizura/vendor/fonts/GowunBatang-Bold.woff2 +0 -0
- package/packages/jizura/vendor/fonts/IBMPlexMono-Medium.ttf +0 -0
- package/packages/jizura/vendor/fonts/IBMPlexMono-SemiBold.ttf +0 -0
- package/packages/jizura/vendor/fonts/NotoSansKR-VF.woff2 +0 -0
- package/packages/jizura/vendor/fonts/NotoSerifKR-VF.woff2 +0 -0
- package/packages/jizura/vendor/fonts/OFL-blackhansans.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-dotgothic16.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-gowunbatang.txt +94 -0
- package/packages/jizura/vendor/fonts/OFL-ibmplexmono.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-notosanskr.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-notoserifkr.txt +94 -0
- package/packages/jizura/vendor/fonts/fonts.json +52 -0
- package/packages/jizura/vendor/jizura_engine.js +35024 -0
- package/packages/motion/README.md +11 -0
- package/packages/motion/package.json +1 -0
- package/packages/motion/src/captions.ts +32 -24
- package/packages/motion/src/moves/brushWipe.ts +14 -1
- package/packages/motion/src/moves/dress.ts +191 -0
- package/packages/motion/src/moves/echoStack.ts +3 -3
- package/packages/motion/src/moves/fit.ts +36 -0
- package/packages/motion/src/moves/ghostStack.ts +14 -5
- package/packages/motion/src/moves/imageSwarm.ts +8 -4
- package/packages/motion/src/moves/index.ts +23 -4
- package/packages/motion/src/moves/karaokeLine.ts +17 -3
- package/packages/motion/src/moves/menu.ts +139 -0
- package/packages/motion/src/moves/neonSign.ts +2 -1
- package/packages/motion/src/moves/slamWords.ts +14 -7
- package/packages/motion/src/moves/sparkTrail.ts +16 -0
- package/packages/motion/src/moves/splitFlap.ts +4 -2
- package/packages/motion/src/moves/stepWords.ts +19 -8
- package/packages/motion/src/moves/tickerRows.ts +13 -9
- package/packages/motion/src/moves/tokenPicker.ts +4 -3
- package/packages/motion/src/moves/wordWall.ts +23 -21
- package/packages/motion/src/moves/worldRoll.ts +2 -1
- package/packages/motion/src/transition3d/index.ts +10 -3
- package/packages/motion/src/transition3d/rig.ts +107 -9
- package/packages/motion/src/transition3d/shatter.ts +5 -2
- package/packages/motion/src/transition3d/space.ts +173 -0
- package/packages/motion/src/transition3d/whip.ts +19 -6
- package/packages/motion/src/transition3d/world.ts +54 -0
- package/packages/motion/src/transitions2d/catalog.ts +1 -1
- package/packages/patterns/package.json +15 -0
- package/packages/patterns/src/bars/rank.ts +119 -0
- package/packages/patterns/src/before-after/shrink.ts +127 -0
- package/packages/patterns/src/before-after/strike.ts +125 -0
- package/packages/patterns/src/code/terminal.ts +133 -0
- package/packages/patterns/src/compare/bars.ts +142 -0
- package/packages/patterns/src/compare/duel.ts +103 -0
- package/packages/patterns/src/end/lockup.ts +85 -0
- package/packages/patterns/src/end/slam.ts +91 -0
- package/packages/patterns/src/flow/graph.ts +250 -0
- package/packages/patterns/src/hook-number/counter.ts +101 -0
- package/packages/patterns/src/hook-number/roll.ts +179 -0
- package/packages/patterns/src/hook-number/slam.ts +91 -0
- package/packages/patterns/src/index.ts +38 -0
- package/packages/patterns/src/kit.ts +450 -0
- package/packages/patterns/src/limit/gauge.ts +117 -0
- package/packages/patterns/src/list/cards.ts +131 -0
- package/packages/patterns/src/list/cycle.ts +22 -0
- package/packages/patterns/src/media/panels.ts +100 -0
- package/packages/patterns/src/objects.ts +234 -0
- package/packages/patterns/src/quote/karaoke.ts +126 -0
- package/packages/patterns/src/quote/slam.ts +22 -0
- package/packages/patterns/src/screen/focus.ts +85 -0
- package/packages/patterns/src/steps/path.ts +137 -0
- package/packages/patterns/src/steps/stack.ts +111 -0
- package/packages/patterns/src/term-reveal/chips.ts +92 -0
- package/packages/patterns/src/term-reveal/expand.ts +127 -0
- package/packages/patterns/src/timeline/axis.ts +144 -0
- package/packages/patterns/src/title/mask.ts +85 -0
- package/packages/patterns/src/title/slam.ts +23 -0
- package/packages/patterns/src/toggle-sim/switch.ts +92 -0
- package/packages/patterns/src/trend/columns.ts +108 -0
- package/packages/patterns/src/trend/draw.ts +140 -0
- package/packages/patterns/src/types.ts +67 -0
- package/packages/patterns/src/words/moves.ts +42 -0
- package/packages/patterns/src/words/slam.ts +4 -0
- package/packages/plan/src/asks.ts +265 -0
- package/packages/plan/src/brief.ts +136 -7
- package/packages/plan/src/captions.ts +5 -2
- package/packages/plan/src/index.ts +7 -3
- package/packages/plan/src/llm.ts +64 -2
- package/packages/plan/src/look.ts +3 -1
- package/packages/plan/src/plan.ts +70 -14
- package/packages/plan/src/series.ts +76 -0
- package/packages/plan/src/themes.ts +65 -9
- package/packages/plan/src/types.ts +56 -2
- package/packages/themes/kit/THEME-MAKE.md +1 -0
- package/packages/themes/kit/fonts.json +743 -0
- package/packages/themes/package.json +10 -2
- package/packages/themes/src/color.ts +152 -0
- package/packages/themes/src/fx.ts +4 -2
- package/packages/themes/src/index.ts +74 -1
- package/packages/themes/src/look.ts +223 -0
- package/packages/themes/src/name.ts +9 -0
- package/packages/themes/src/palette.ts +194 -0
- package/packages/themes/src/slotkit.ts +92 -0
- package/packages/themes/src/slots.ts +61 -0
- package/packages/themes/src/stage3d.ts +20 -0
- package/packages/themes/src/types.ts +84 -0
- package/packages/themes/src/vary.ts +290 -0
- package/series/og-shorts.json +14 -0
- package/skills/kasaframe/SKILL.md +4 -3
- package/templates/_shared/project/lib/stage.ts +70 -50
- package/templates/_shared/scenes/default.ts +10 -7
- package/templates/_shared/scenes/drop.ts +11 -8
- package/templates/_shared/scenes/end.ts +9 -6
- package/templates/_shared/scenes/hook.ts +8 -6
- package/templates/_shared/scenes/step.ts +13 -4
- package/templates/ad/template.json +20 -1
- package/templates/demo/template.json +11 -0
- package/templates/explainer/template.json +54 -3
- package/templates/launch/template.json +34 -1
- package/templates/mv/scenes/default.ts +11 -8
- package/templates/mv/template.json +4 -2
- package/templates/promo/template.json +42 -1
- package/templates/shorts/scenes/hook.ts +8 -5
- package/templates/shorts/template.json +72 -3
- package/templates/square/template.json +21 -1
- package/themes/blueprint/THEME.md +64 -0
- package/themes/blueprint/effects.ts +570 -0
- package/themes/blueprint/sample/assets/og/logo.svg +12 -0
- package/themes/blueprint/sample/beats.json +1005 -0
- package/themes/blueprint/sample/index.html +11 -0
- package/themes/blueprint/sample/kf.json +59 -0
- package/themes/blueprint/sample/lib/facts.ts +29 -0
- package/themes/blueprint/sample/lib/sheet.ts +55 -0
- package/themes/blueprint/sample/main.ts +9 -0
- package/themes/blueprint/sample/scenes/end.ts +91 -0
- package/themes/blueprint/sample/scenes/gather.ts +75 -0
- package/themes/blueprint/sample/scenes/models.ts +117 -0
- package/themes/blueprint/sample/scenes/price.ts +94 -0
- package/themes/blueprint/sample/style.json +114 -0
- package/themes/blueprint/slots.ts +88 -0
- package/themes/blueprint/still.png +0 -0
- package/themes/blueprint/style.json +114 -0
- package/themes/blueprint/theme.json +137 -0
- package/themes/blueprint/variants/deep-rose-2.json +90 -0
- package/themes/blueprint/variants/deep-rose-suit.json +117 -0
- package/themes/blueprint/variants/deep-rose.json +117 -0
- package/themes/blueprint/variants/navy-coral-2.json +118 -0
- package/themes/blueprint/variants/navy-coral-suit.json +118 -0
- package/themes/blueprint/variants/navy-coral.json +128 -0
- package/themes/blueprint/variants/navy-orange-2.json +118 -0
- package/themes/blueprint/variants/navy-orange-3.json +91 -0
- package/themes/blueprint/variants/navy-orange-4.json +128 -0
- package/themes/blueprint/variants/navy-orange-mono.json +128 -0
- package/themes/blueprint/variants/navy-orange-plex.json +128 -0
- package/themes/blueprint/variants/navy-orange-suit.json +118 -0
- package/themes/blueprint/variants/navy-orange.json +118 -0
- package/themes/blueprint/variants/navy-rose-plex.json +127 -0
- package/themes/blueprint/variants/navy-rose.json +127 -0
- package/themes/cartography/THEME.md +61 -0
- package/themes/cartography/effects.ts +845 -0
- package/themes/cartography/sample/assets/og/logo.svg +12 -0
- package/themes/cartography/sample/beats.json +1005 -0
- package/themes/cartography/sample/index.html +11 -0
- package/themes/cartography/sample/kf.json +59 -0
- package/themes/cartography/sample/lib/facts.ts +29 -0
- package/themes/cartography/sample/lib/map.ts +39 -0
- package/themes/cartography/sample/main.ts +9 -0
- package/themes/cartography/sample/scenes/end.ts +56 -0
- package/themes/cartography/sample/scenes/gather.ts +46 -0
- package/themes/cartography/sample/scenes/models.ts +43 -0
- package/themes/cartography/sample/scenes/price.ts +73 -0
- package/themes/cartography/sample/style.json +103 -0
- package/themes/cartography/slots.ts +87 -0
- package/themes/cartography/still.png +0 -0
- package/themes/cartography/style.json +103 -0
- package/themes/cartography/theme.json +160 -0
- package/themes/cartography/variants/blush-amber.json +128 -0
- package/themes/cartography/variants/blush-indigo.json +128 -0
- package/themes/cartography/variants/blush-pink.json +136 -0
- package/themes/cartography/variants/chalk-plum.json +137 -0
- package/themes/cartography/variants/chalk-sky.json +100 -0
- package/themes/cartography/variants/cocoa-amber.json +128 -0
- package/themes/cartography/variants/deep-plum.json +125 -0
- package/themes/cartography/variants/dusk-coral.json +128 -0
- package/themes/cartography/variants/forest-lime.json +131 -0
- package/themes/cartography/variants/frost-teal.json +128 -0
- package/themes/cartography/variants/navy-green.json +131 -0
- package/themes/cartography/variants/navy-indigo.json +138 -0
- package/themes/cartography/variants/navy-sky.json +100 -0
- package/themes/cartography/variants/sage-green.json +127 -0
- package/themes/cartography/variants/wine-teal.json +128 -0
- package/themes/circuit-board/THEME.md +61 -0
- package/themes/circuit-board/effects.ts +576 -0
- package/themes/circuit-board/pcb.ts +103 -0
- package/themes/circuit-board/sample/assets/og/logo.svg +12 -0
- package/themes/circuit-board/sample/beats.json +1005 -0
- package/themes/circuit-board/sample/index.html +11 -0
- package/themes/circuit-board/sample/kf.json +59 -0
- package/themes/circuit-board/sample/lib/facts.ts +29 -0
- package/themes/circuit-board/sample/lib/kit.ts +45 -0
- package/themes/circuit-board/sample/main.ts +9 -0
- package/themes/circuit-board/sample/scenes/end.ts +102 -0
- package/themes/circuit-board/sample/scenes/gather.ts +76 -0
- package/themes/circuit-board/sample/scenes/models.ts +101 -0
- package/themes/circuit-board/sample/scenes/price.ts +109 -0
- package/themes/circuit-board/sample/style.json +104 -0
- package/themes/circuit-board/slots.ts +108 -0
- package/themes/circuit-board/still.png +0 -0
- package/themes/circuit-board/style.json +104 -0
- package/themes/circuit-board/theme.json +149 -0
- package/themes/circuit-board/variants/deep-gold-plex.json +133 -0
- package/themes/circuit-board/variants/deep-gold.json +123 -0
- package/themes/circuit-board/variants/dusk-gold-grain.json +138 -0
- package/themes/circuit-board/variants/dusk-gold-pretendard.json +118 -0
- package/themes/circuit-board/variants/dusk-gold.json +97 -0
- package/themes/circuit-board/variants/forest-gold-2.json +96 -0
- package/themes/circuit-board/variants/forest-gold-grain.json +129 -0
- package/themes/circuit-board/variants/forest-gold-mono.json +124 -0
- package/themes/circuit-board/variants/forest-gold.json +128 -0
- package/themes/circuit-board/variants/navy-gold-grain.json +124 -0
- package/themes/circuit-board/variants/navy-gold.json +101 -0
- package/themes/circuit-board/variants/wine-gold-grain.json +128 -0
- package/themes/circuit-board/variants/wine-gold-plex.json +133 -0
- package/themes/circuit-board/variants/wine-gold-pretendard.json +118 -0
- package/themes/circuit-board/variants/wine-gold.json +128 -0
- package/themes/clay-toy/THEME.md +73 -0
- package/themes/clay-toy/effects.ts +643 -0
- package/themes/clay-toy/glyphs.ts +32 -0
- package/themes/clay-toy/sample/assets/og/logo.svg +12 -0
- package/themes/clay-toy/sample/beats.json +1005 -0
- package/themes/clay-toy/sample/index.html +11 -0
- package/themes/clay-toy/sample/kf.json +59 -0
- package/themes/clay-toy/sample/lib/clay.ts +20 -0
- package/themes/clay-toy/sample/lib/facts.ts +29 -0
- package/themes/clay-toy/sample/main.ts +9 -0
- package/themes/clay-toy/sample/scenes/end.ts +81 -0
- package/themes/clay-toy/sample/scenes/gather.ts +53 -0
- package/themes/clay-toy/sample/scenes/models.ts +77 -0
- package/themes/clay-toy/sample/scenes/price.ts +91 -0
- package/themes/clay-toy/sample/style.json +101 -0
- package/themes/clay-toy/slots.ts +132 -0
- package/themes/clay-toy/still.png +0 -0
- package/themes/clay-toy/style.json +101 -0
- package/themes/clay-toy/theme.json +146 -0
- package/themes/clay-toy/variants/blush-coral-grain.json +126 -0
- package/themes/clay-toy/variants/blush-coral.json +123 -0
- package/themes/clay-toy/variants/chalk-indigo.json +97 -0
- package/themes/clay-toy/variants/chalk-jade.json +125 -0
- package/themes/clay-toy/variants/chalk-teal.json +120 -0
- package/themes/clay-toy/variants/frost-orange.json +125 -0
- package/themes/clay-toy/variants/frost-sky-grain.json +126 -0
- package/themes/clay-toy/variants/frost-sky.json +121 -0
- package/themes/clay-toy/variants/frost-teal.json +120 -0
- package/themes/clay-toy/variants/lilac-green.json +120 -0
- package/themes/clay-toy/variants/lilac-plum-round.json +120 -0
- package/themes/clay-toy/variants/lilac-plum.json +124 -0
- package/themes/clay-toy/variants/sage-indigo.json +125 -0
- package/themes/clay-toy/variants/sage-magenta.json +119 -0
- package/themes/clay-toy/variants/sand-amber.json +125 -0
- package/themes/conveyor-factory/THEME.md +71 -0
- package/themes/conveyor-factory/effects.ts +744 -0
- package/themes/conveyor-factory/sample/assets/og/logo.svg +12 -0
- package/themes/conveyor-factory/sample/beats.json +1005 -0
- package/themes/conveyor-factory/sample/index.html +11 -0
- package/themes/conveyor-factory/sample/kf.json +59 -0
- package/themes/conveyor-factory/sample/lib/factory.ts +48 -0
- package/themes/conveyor-factory/sample/lib/facts.ts +29 -0
- package/themes/conveyor-factory/sample/main.ts +9 -0
- package/themes/conveyor-factory/sample/scenes/end.ts +44 -0
- package/themes/conveyor-factory/sample/scenes/gather.ts +47 -0
- package/themes/conveyor-factory/sample/scenes/models.ts +91 -0
- package/themes/conveyor-factory/sample/scenes/price.ts +77 -0
- package/themes/conveyor-factory/sample/style.json +107 -0
- package/themes/conveyor-factory/slots.ts +121 -0
- package/themes/conveyor-factory/still.png +0 -0
- package/themes/conveyor-factory/style.json +107 -0
- package/themes/conveyor-factory/theme.json +142 -0
- package/themes/conveyor-factory/variants/cocoa-gold.json +125 -0
- package/themes/conveyor-factory/variants/dusk-gold.json +135 -0
- package/themes/conveyor-factory/variants/forest-gold.json +135 -0
- package/themes/conveyor-factory/variants/navy-amber.json +93 -0
- package/themes/conveyor-factory/variants/navy-gold.json +120 -0
- package/themes/conveyor-factory/variants/slate-amber-2.json +120 -0
- package/themes/conveyor-factory/variants/slate-amber-grain.json +125 -0
- package/themes/conveyor-factory/variants/slate-amber-suit.json +120 -0
- package/themes/conveyor-factory/variants/slate-amber.json +125 -0
- package/themes/conveyor-factory/variants/slate-gold-bold.json +120 -0
- package/themes/conveyor-factory/variants/slate-gold.json +120 -0
- package/themes/data-journal/THEME.md +74 -0
- package/themes/data-journal/effects.ts +570 -0
- package/themes/data-journal/sample/assets/og/logo.svg +12 -0
- package/themes/data-journal/sample/beats.json +1005 -0
- package/themes/data-journal/sample/index.html +11 -0
- package/themes/data-journal/sample/kf.json +59 -0
- package/themes/data-journal/sample/lib/facts.ts +29 -0
- package/themes/data-journal/sample/lib/page.ts +25 -0
- package/themes/data-journal/sample/main.ts +9 -0
- package/themes/data-journal/sample/scenes/end.ts +69 -0
- package/themes/data-journal/sample/scenes/gather.ts +58 -0
- package/themes/data-journal/sample/scenes/models.ts +51 -0
- package/themes/data-journal/sample/scenes/price.ts +73 -0
- package/themes/data-journal/sample/style.json +114 -0
- package/themes/data-journal/slots.ts +119 -0
- package/themes/data-journal/still.png +0 -0
- package/themes/data-journal/style.json +114 -0
- package/themes/data-journal/theme.json +140 -0
- package/themes/data-journal/variants/blush-green.json +129 -0
- package/themes/data-journal/variants/chalk-magenta.json +138 -0
- package/themes/data-journal/variants/cocoa-amber.json +140 -0
- package/themes/data-journal/variants/cocoa-sky.json +130 -0
- package/themes/data-journal/variants/deep-coral.json +135 -0
- package/themes/data-journal/variants/dusk-plum.json +132 -0
- package/themes/data-journal/variants/forest-green.json +138 -0
- package/themes/data-journal/variants/frost-indigo.json +141 -0
- package/themes/data-journal/variants/lilac-amber.json +141 -0
- package/themes/data-journal/variants/navy-indigo.json +131 -0
- package/themes/data-journal/variants/navy-lime.json +128 -0
- package/themes/data-journal/variants/snow-sky.json +125 -0
- package/themes/data-journal/variants/wine-indigo.json +129 -0
- package/themes/data-journal/variants/wine-magenta.json +138 -0
- package/themes/data-journal/variants/wine-teal.json +97 -0
- package/themes/debug-hud/slots.ts +99 -0
- package/themes/debug-hud/theme.json +56 -0
- package/themes/debug-hud/variants/cocoa-gold.json +113 -0
- package/themes/debug-hud/variants/cocoa-teal.json +119 -0
- package/themes/debug-hud/variants/deep-cyan.json +85 -0
- package/themes/debug-hud/variants/deep-teal-scan.json +118 -0
- package/themes/debug-hud/variants/deep-teal.json +112 -0
- package/themes/debug-hud/variants/dusk-plum.json +116 -0
- package/themes/debug-hud/variants/dusk-violet.json +112 -0
- package/themes/debug-hud/variants/forest-amber.json +86 -0
- package/themes/debug-hud/variants/forest-lime.json +117 -0
- package/themes/debug-hud/variants/forest-magenta.json +111 -0
- package/themes/debug-hud/variants/navy-jade.json +79 -0
- package/themes/debug-hud/variants/slate-green.json +112 -0
- package/themes/debug-hud/variants/wine-gold.json +119 -0
- package/themes/debug-hud/variants/wine-jade.json +83 -0
- package/themes/debug-hud/variants/wine-sky.json +112 -0
- package/themes/depth-flight/THEME.md +54 -0
- package/themes/depth-flight/effects.ts +396 -0
- package/themes/depth-flight/sample/assets/og/logo.svg +12 -0
- package/themes/depth-flight/sample/beats.json +1005 -0
- package/themes/depth-flight/sample/index.html +11 -0
- package/themes/depth-flight/sample/kf.json +59 -0
- package/themes/depth-flight/sample/lib/facts.ts +29 -0
- package/themes/depth-flight/sample/lib/fly.ts +15 -0
- package/themes/depth-flight/sample/main.ts +9 -0
- package/themes/depth-flight/sample/scenes/end.ts +51 -0
- package/themes/depth-flight/sample/scenes/gather.ts +40 -0
- package/themes/depth-flight/sample/scenes/models.ts +75 -0
- package/themes/depth-flight/sample/scenes/price.ts +50 -0
- package/themes/depth-flight/sample/style.json +94 -0
- package/themes/depth-flight/slots.ts +196 -0
- package/themes/depth-flight/still.png +0 -0
- package/themes/depth-flight/style.json +94 -0
- package/themes/depth-flight/theme.json +119 -0
- package/themes/depth-flight/variants/cocoa-cyan.json +121 -0
- package/themes/depth-flight/variants/cocoa-indigo.json +121 -0
- package/themes/depth-flight/variants/cocoa-violet.json +122 -0
- package/themes/depth-flight/variants/deep-sky.json +126 -0
- package/themes/depth-flight/variants/dusk-violet-bold.json +117 -0
- package/themes/depth-flight/variants/dusk-violet.json +132 -0
- package/themes/depth-flight/variants/forest-blue.json +116 -0
- package/themes/depth-flight/variants/forest-cyan.json +122 -0
- package/themes/depth-flight/variants/navy-sky-grain.json +122 -0
- package/themes/depth-flight/variants/navy-sky.json +116 -0
- package/themes/depth-flight/variants/night-teal.json +116 -0
- package/themes/depth-flight/variants/slate-cyan.json +127 -0
- package/themes/depth-flight/variants/slate-indigo.json +116 -0
- package/themes/depth-flight/variants/slate-sky.json +94 -0
- package/themes/depth-flight/variants/slate-violet.json +121 -0
- package/themes/film-reel/THEME.md +60 -0
- package/themes/film-reel/effects.ts +477 -0
- package/themes/film-reel/sample/assets/og/logo.svg +12 -0
- package/themes/film-reel/sample/beats.json +1005 -0
- package/themes/film-reel/sample/index.html +11 -0
- package/themes/film-reel/sample/kf.json +59 -0
- package/themes/film-reel/sample/lib/facts.ts +29 -0
- package/themes/film-reel/sample/lib/reel.ts +9 -0
- package/themes/film-reel/sample/main.ts +9 -0
- package/themes/film-reel/sample/scenes/end.ts +31 -0
- package/themes/film-reel/sample/scenes/gather.ts +40 -0
- package/themes/film-reel/sample/scenes/models.ts +37 -0
- package/themes/film-reel/sample/scenes/price.ts +63 -0
- package/themes/film-reel/sample/style.json +103 -0
- package/themes/film-reel/slots.ts +75 -0
- package/themes/film-reel/still.png +0 -0
- package/themes/film-reel/style.json +103 -0
- package/themes/film-reel/theme.json +142 -0
- package/themes/film-reel/variants/chalk-amber.json +124 -0
- package/themes/film-reel/variants/chalk-pink.json +123 -0
- package/themes/film-reel/variants/cream-violet.json +121 -0
- package/themes/film-reel/variants/frost-blue.json +126 -0
- package/themes/film-reel/variants/frost-green.json +123 -0
- package/themes/film-reel/variants/frost-indigo.json +121 -0
- package/themes/film-reel/variants/frost-jade.json +120 -0
- package/themes/film-reel/variants/frost-plum.json +120 -0
- package/themes/film-reel/variants/frost-teal.json +93 -0
- package/themes/film-reel/variants/lilac-gold.json +120 -0
- package/themes/film-reel/variants/lilac-jade.json +123 -0
- package/themes/film-reel/variants/lilac-magenta.json +125 -0
- package/themes/film-reel/variants/lilac-violet.json +122 -0
- package/themes/film-reel/variants/sand-cyan.json +124 -0
- package/themes/film-reel/variants/sand-lime.json +96 -0
- package/themes/glass-light/THEME.md +55 -0
- package/themes/glass-light/effects.ts +433 -0
- package/themes/glass-light/sample/assets/og/logo.svg +12 -0
- package/themes/glass-light/sample/beats.json +1005 -0
- package/themes/glass-light/sample/index.html +11 -0
- package/themes/glass-light/sample/kf.json +59 -0
- package/themes/glass-light/sample/lib/facts.ts +29 -0
- package/themes/glass-light/sample/lib/glass.ts +81 -0
- package/themes/glass-light/sample/main.ts +9 -0
- package/themes/glass-light/sample/scenes/end.ts +43 -0
- package/themes/glass-light/sample/scenes/gather.ts +38 -0
- package/themes/glass-light/sample/scenes/models.ts +46 -0
- package/themes/glass-light/sample/scenes/price.ts +46 -0
- package/themes/glass-light/sample/style.json +94 -0
- package/themes/glass-light/slots.ts +198 -0
- package/themes/glass-light/still.png +0 -0
- package/themes/glass-light/style.json +94 -0
- package/themes/glass-light/theme.json +119 -0
- package/themes/glass-light/variants/blush-coral.json +116 -0
- package/themes/glass-light/variants/blush-orange.json +115 -0
- package/themes/glass-light/variants/blush-pink.json +119 -0
- package/themes/glass-light/variants/blush-plum.json +115 -0
- package/themes/glass-light/variants/blush-teal.json +115 -0
- package/themes/glass-light/variants/cream-blue.json +125 -0
- package/themes/glass-light/variants/cream-pink.json +87 -0
- package/themes/glass-light/variants/cream-violet.json +119 -0
- package/themes/glass-light/variants/frost-green.json +115 -0
- package/themes/glass-light/variants/frost-sky-suit.json +115 -0
- package/themes/glass-light/variants/frost-sky.json +121 -0
- package/themes/glass-light/variants/lilac-gold.json +126 -0
- package/themes/glass-light/variants/lilac-plum.json +114 -0
- package/themes/glass-light/variants/sage-green.json +119 -0
- package/themes/glass-light/variants/sage-rose.json +114 -0
- package/themes/ink-wash/THEME.md +59 -0
- package/themes/ink-wash/effects.ts +574 -0
- package/themes/ink-wash/sample/assets/og/logo.svg +12 -0
- package/themes/ink-wash/sample/beats.json +1005 -0
- package/themes/ink-wash/sample/index.html +11 -0
- package/themes/ink-wash/sample/kf.json +59 -0
- package/themes/ink-wash/sample/lib/facts.ts +29 -0
- package/themes/ink-wash/sample/lib/ink.ts +35 -0
- package/themes/ink-wash/sample/main.ts +9 -0
- package/themes/ink-wash/sample/scenes/end.ts +72 -0
- package/themes/ink-wash/sample/scenes/gather.ts +53 -0
- package/themes/ink-wash/sample/scenes/models.ts +58 -0
- package/themes/ink-wash/sample/scenes/price.ts +85 -0
- package/themes/ink-wash/sample/style.json +108 -0
- package/themes/ink-wash/slots.ts +150 -0
- package/themes/ink-wash/still.png +0 -0
- package/themes/ink-wash/style.json +108 -0
- package/themes/ink-wash/theme.json +131 -0
- package/themes/ink-wash/variants/blush-orange.json +125 -0
- package/themes/ink-wash/variants/blush-rose.json +124 -0
- package/themes/ink-wash/variants/chalk-coral-grain.json +125 -0
- package/themes/ink-wash/variants/chalk-coral-serif.json +118 -0
- package/themes/ink-wash/variants/chalk-coral.json +120 -0
- package/themes/ink-wash/variants/chalk-orange-grain.json +97 -0
- package/themes/ink-wash/variants/chalk-orange-serif.json +120 -0
- package/themes/ink-wash/variants/chalk-orange.json +120 -0
- package/themes/ink-wash/variants/frost-coral.json +119 -0
- package/themes/ink-wash/variants/frost-rose.json +91 -0
- package/themes/ink-wash/variants/lilac-coral.json +96 -0
- package/themes/ink-wash/variants/sage-coral.json +119 -0
- package/themes/ink-wash/variants/sage-rose.json +119 -0
- package/themes/ink-wash/variants/sand-coral.json +125 -0
- package/themes/ink-wash/variants/sand-orange.json +120 -0
- package/themes/iso-diorama/THEME.md +54 -0
- package/themes/iso-diorama/effects.ts +374 -0
- package/themes/iso-diorama/sample/assets/og/logo.svg +12 -0
- package/themes/iso-diorama/sample/beats.json +1005 -0
- package/themes/iso-diorama/sample/index.html +11 -0
- package/themes/iso-diorama/sample/kf.json +59 -0
- package/themes/iso-diorama/sample/lib/facts.ts +29 -0
- package/themes/iso-diorama/sample/lib/iso.ts +22 -0
- package/themes/iso-diorama/sample/main.ts +9 -0
- package/themes/iso-diorama/sample/scenes/end.ts +41 -0
- package/themes/iso-diorama/sample/scenes/gather.ts +39 -0
- package/themes/iso-diorama/sample/scenes/models.ts +55 -0
- package/themes/iso-diorama/sample/scenes/price.ts +49 -0
- package/themes/iso-diorama/sample/style.json +98 -0
- package/themes/iso-diorama/slots.ts +222 -0
- package/themes/iso-diorama/still.png +0 -0
- package/themes/iso-diorama/style.json +98 -0
- package/themes/iso-diorama/theme.json +131 -0
- package/themes/iso-diorama/variants/chalk-plum.json +121 -0
- package/themes/iso-diorama/variants/cocoa-gold.json +93 -0
- package/themes/iso-diorama/variants/cocoa-indigo.json +122 -0
- package/themes/iso-diorama/variants/cocoa-rose.json +125 -0
- package/themes/iso-diorama/variants/deep-green.json +125 -0
- package/themes/iso-diorama/variants/deep-plum.json +120 -0
- package/themes/iso-diorama/variants/dusk-blue.json +126 -0
- package/themes/iso-diorama/variants/dusk-coral.json +122 -0
- package/themes/iso-diorama/variants/dusk-jade.json +121 -0
- package/themes/iso-diorama/variants/forest-cyan.json +127 -0
- package/themes/iso-diorama/variants/frost-blue.json +126 -0
- package/themes/iso-diorama/variants/frost-green.json +126 -0
- package/themes/iso-diorama/variants/frost-orange.json +125 -0
- package/themes/iso-diorama/variants/frost-teal.json +123 -0
- package/themes/iso-diorama/variants/navy-amber.json +125 -0
- package/themes/isotype/THEME.md +58 -0
- package/themes/isotype/effects.ts +297 -0
- package/themes/isotype/kit.ts +102 -0
- package/themes/isotype/sample/assets/og/logo.svg +12 -0
- package/themes/isotype/sample/beats.json +1005 -0
- package/themes/isotype/sample/index.html +11 -0
- package/themes/isotype/sample/kf.json +59 -0
- package/themes/isotype/sample/lib/chart.ts +47 -0
- package/themes/isotype/sample/lib/facts.ts +29 -0
- package/themes/isotype/sample/main.ts +9 -0
- package/themes/isotype/sample/scenes/end.ts +80 -0
- package/themes/isotype/sample/scenes/gather.ts +65 -0
- package/themes/isotype/sample/scenes/models.ts +75 -0
- package/themes/isotype/sample/scenes/price.ts +90 -0
- package/themes/isotype/sample/style.json +101 -0
- package/themes/isotype/slots.ts +74 -0
- package/themes/isotype/still.png +0 -0
- package/themes/isotype/style.json +101 -0
- package/themes/isotype/theme.json +140 -0
- package/themes/isotype/variants/blush-rose.json +127 -0
- package/themes/isotype/variants/chalk-amber.json +123 -0
- package/themes/isotype/variants/chalk-coral-bold.json +118 -0
- package/themes/isotype/variants/chalk-coral.json +117 -0
- package/themes/isotype/variants/chalk-orange.json +128 -0
- package/themes/isotype/variants/frost-amber-plex.json +128 -0
- package/themes/isotype/variants/frost-amber.json +123 -0
- package/themes/isotype/variants/frost-coral-grain.json +95 -0
- package/themes/isotype/variants/frost-coral.json +123 -0
- package/themes/isotype/variants/frost-orange.json +123 -0
- package/themes/isotype/variants/lilac-rose.json +127 -0
- package/themes/isotype/variants/sage-coral.json +90 -0
- package/themes/isotype/variants/sand-amber.json +118 -0
- package/themes/isotype/variants/sand-orange.json +128 -0
- package/themes/kawaii-sticker/THEME.md +44 -0
- package/themes/kawaii-sticker/effects.ts +412 -0
- package/themes/kawaii-sticker/sample/assets/stickers/bolt.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/bubble.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/clock.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/coin.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/moon.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/og-logo.svg +12 -0
- package/themes/kawaii-sticker/sample/assets/stickers/server.png +0 -0
- package/themes/kawaii-sticker/sample/beats.json +1 -0
- package/themes/kawaii-sticker/sample/index.html +11 -0
- package/themes/kawaii-sticker/sample/kf.json +66 -0
- package/themes/kawaii-sticker/sample/lib/og.ts +54 -0
- package/themes/kawaii-sticker/sample/main.ts +9 -0
- package/themes/kawaii-sticker/sample/scenes/end.ts +37 -0
- package/themes/kawaii-sticker/sample/scenes/gather.ts +50 -0
- package/themes/kawaii-sticker/sample/scenes/models.ts +43 -0
- package/themes/kawaii-sticker/sample/scenes/one.ts +45 -0
- package/themes/kawaii-sticker/sample/scenes/price.ts +47 -0
- package/themes/kawaii-sticker/sample/style.json +99 -0
- package/themes/kawaii-sticker/slots.ts +95 -0
- package/themes/kawaii-sticker/still.png +0 -0
- package/themes/kawaii-sticker/style.json +99 -0
- package/themes/kawaii-sticker/theme.json +145 -0
- package/themes/kawaii-sticker/variants/blush-coral.json +134 -0
- package/themes/kawaii-sticker/variants/blush-teal.json +129 -0
- package/themes/kawaii-sticker/variants/blush-violet.json +134 -0
- package/themes/kawaii-sticker/variants/cream-gold.json +135 -0
- package/themes/kawaii-sticker/variants/deep-jade.json +134 -0
- package/themes/kawaii-sticker/variants/dusk-green.json +134 -0
- package/themes/kawaii-sticker/variants/dusk-indigo.json +130 -0
- package/themes/kawaii-sticker/variants/dusk-sky.json +135 -0
- package/themes/kawaii-sticker/variants/dusk-teal.json +134 -0
- package/themes/kawaii-sticker/variants/frost-blue.json +135 -0
- package/themes/kawaii-sticker/variants/frost-plum.json +133 -0
- package/themes/kawaii-sticker/variants/lilac-violet.json +133 -0
- package/themes/kawaii-sticker/variants/navy-gold.json +134 -0
- package/themes/kawaii-sticker/variants/navy-plum.json +134 -0
- package/themes/kawaii-sticker/variants/sage-sky.json +107 -0
- package/themes/lab-notebook/THEME.md +56 -0
- package/themes/lab-notebook/effects.ts +423 -0
- package/themes/lab-notebook/kit.ts +84 -0
- package/themes/lab-notebook/sample/assets/og/logo.svg +12 -0
- package/themes/lab-notebook/sample/beats.json +1005 -0
- package/themes/lab-notebook/sample/index.html +11 -0
- package/themes/lab-notebook/sample/kf.json +59 -0
- package/themes/lab-notebook/sample/lib/facts.ts +29 -0
- package/themes/lab-notebook/sample/lib/note.ts +53 -0
- package/themes/lab-notebook/sample/main.ts +9 -0
- package/themes/lab-notebook/sample/scenes/end.ts +127 -0
- package/themes/lab-notebook/sample/scenes/gather.ts +83 -0
- package/themes/lab-notebook/sample/scenes/models.ts +73 -0
- package/themes/lab-notebook/sample/scenes/price.ts +89 -0
- package/themes/lab-notebook/sample/style.json +109 -0
- package/themes/lab-notebook/slots.ts +75 -0
- package/themes/lab-notebook/still.png +0 -0
- package/themes/lab-notebook/style.json +109 -0
- package/themes/lab-notebook/theme.json +141 -0
- package/themes/lab-notebook/variants/blush-orange.json +125 -0
- package/themes/lab-notebook/variants/chalk-coral.json +126 -0
- package/themes/lab-notebook/variants/chalk-orange.json +129 -0
- package/themes/lab-notebook/variants/chalk-rose-2.json +96 -0
- package/themes/lab-notebook/variants/chalk-rose.json +125 -0
- package/themes/lab-notebook/variants/frost-orange.json +101 -0
- package/themes/lab-notebook/variants/frost-rose-grain.json +101 -0
- package/themes/lab-notebook/variants/frost-rose.json +96 -0
- package/themes/lab-notebook/variants/lilac-rose-2.json +96 -0
- package/themes/lab-notebook/variants/lilac-rose.json +128 -0
- package/themes/lab-notebook/variants/sage-rose.json +124 -0
- package/themes/lab-notebook/variants/sand-orange-grain.json +101 -0
- package/themes/lab-notebook/variants/sand-orange.json +129 -0
- package/themes/lab-notebook/variants/snow-orange.json +129 -0
- package/themes/lab-notebook/variants/snow-rose.json +124 -0
- package/themes/manga-panel/THEME.md +60 -0
- package/themes/manga-panel/effects.ts +791 -0
- package/themes/manga-panel/sample/assets/og/logo.svg +12 -0
- package/themes/manga-panel/sample/beats.json +1005 -0
- package/themes/manga-panel/sample/index.html +11 -0
- package/themes/manga-panel/sample/kf.json +59 -0
- package/themes/manga-panel/sample/lib/facts.ts +29 -0
- package/themes/manga-panel/sample/lib/manga.ts +58 -0
- package/themes/manga-panel/sample/main.ts +9 -0
- package/themes/manga-panel/sample/scenes/end.ts +96 -0
- package/themes/manga-panel/sample/scenes/gather.ts +100 -0
- package/themes/manga-panel/sample/scenes/models.ts +96 -0
- package/themes/manga-panel/sample/scenes/price.ts +154 -0
- package/themes/manga-panel/sample/style.json +105 -0
- package/themes/manga-panel/slots.ts +127 -0
- package/themes/manga-panel/still.png +0 -0
- package/themes/manga-panel/style.json +105 -0
- package/themes/manga-panel/theme.json +148 -0
- package/themes/manga-panel/variants/chalk-cyan-dots.json +122 -0
- package/themes/manga-panel/variants/chalk-cyan.json +122 -0
- package/themes/manga-panel/variants/chalk-magenta.json +121 -0
- package/themes/manga-panel/variants/chalk-orange-bold.json +117 -0
- package/themes/manga-panel/variants/chalk-orange.json +122 -0
- package/themes/manga-panel/variants/chalk-rose-dots.json +121 -0
- package/themes/manga-panel/variants/chalk-rose.json +116 -0
- package/themes/manga-panel/variants/chalk-sky-bold.json +117 -0
- package/themes/manga-panel/variants/chalk-sky.json +117 -0
- package/themes/manga-panel/variants/snow-cyan.json +117 -0
- package/themes/manga-panel/variants/snow-magenta-dots.json +121 -0
- package/themes/manga-panel/variants/snow-magenta.json +116 -0
- package/themes/manga-panel/variants/snow-rose-dots.json +121 -0
- package/themes/manga-panel/variants/snow-rose.json +116 -0
- package/themes/manga-panel/variants/snow-sky.json +95 -0
- package/themes/marble-run/THEME.md +73 -0
- package/themes/marble-run/effects.ts +678 -0
- package/themes/marble-run/sample/assets/og/logo.svg +12 -0
- package/themes/marble-run/sample/beats.json +1005 -0
- package/themes/marble-run/sample/index.html +11 -0
- package/themes/marble-run/sample/kf.json +59 -0
- package/themes/marble-run/sample/lib/facts.ts +29 -0
- package/themes/marble-run/sample/lib/run.ts +30 -0
- package/themes/marble-run/sample/main.ts +9 -0
- package/themes/marble-run/sample/scenes/end.ts +58 -0
- package/themes/marble-run/sample/scenes/gather.ts +51 -0
- package/themes/marble-run/sample/scenes/models.ts +73 -0
- package/themes/marble-run/sample/scenes/price.ts +51 -0
- package/themes/marble-run/sample/style.json +109 -0
- package/themes/marble-run/slots.ts +116 -0
- package/themes/marble-run/still.png +0 -0
- package/themes/marble-run/style.json +109 -0
- package/themes/marble-run/theme.json +145 -0
- package/themes/marble-run/variants/cocoa-amber.json +128 -0
- package/themes/marble-run/variants/cocoa-orange.json +142 -0
- package/themes/marble-run/variants/dusk-orange.json +133 -0
- package/themes/marble-run/variants/forest-gold.json +128 -0
- package/themes/marble-run/variants/navy-gold.json +137 -0
- package/themes/marble-run/variants/night-gold-grain.json +105 -0
- package/themes/marble-run/variants/night-gold.json +137 -0
- package/themes/marble-run/variants/slate-gold-grain.json +133 -0
- package/themes/marble-run/variants/slate-gold.json +133 -0
- package/themes/marble-run/variants/slate-orange-grain.json +105 -0
- package/themes/marble-run/variants/slate-orange-mono.json +128 -0
- package/themes/marble-run/variants/slate-orange-serif.json +128 -0
- package/themes/marble-run/variants/slate-orange.json +131 -0
- package/themes/neon-sign/THEME.md +59 -0
- package/themes/neon-sign/effects.ts +424 -0
- package/themes/neon-sign/sample/assets/og/logo.svg +12 -0
- package/themes/neon-sign/sample/beats.json +1005 -0
- package/themes/neon-sign/sample/index.html +11 -0
- package/themes/neon-sign/sample/kf.json +59 -0
- package/themes/neon-sign/sample/lib/facts.ts +29 -0
- package/themes/neon-sign/sample/lib/neon.ts +50 -0
- package/themes/neon-sign/sample/main.ts +9 -0
- package/themes/neon-sign/sample/scenes/end.ts +62 -0
- package/themes/neon-sign/sample/scenes/gather.ts +59 -0
- package/themes/neon-sign/sample/scenes/models.ts +63 -0
- package/themes/neon-sign/sample/scenes/price.ts +74 -0
- package/themes/neon-sign/sample/style.json +104 -0
- package/themes/neon-sign/slots.ts +110 -0
- package/themes/neon-sign/still.png +0 -0
- package/themes/neon-sign/style.json +104 -0
- package/themes/neon-sign/theme.json +136 -0
- package/themes/neon-sign/variants/deep-plum.json +121 -0
- package/themes/neon-sign/variants/deep-violet.json +121 -0
- package/themes/neon-sign/variants/dusk-plum.json +121 -0
- package/themes/neon-sign/variants/forest-magenta.json +126 -0
- package/themes/neon-sign/variants/forest-plum.json +98 -0
- package/themes/neon-sign/variants/night-coral.json +122 -0
- package/themes/neon-sign/variants/night-magenta-round.json +121 -0
- package/themes/neon-sign/variants/night-magenta.json +126 -0
- package/themes/neon-sign/variants/night-pink.json +125 -0
- package/themes/neon-sign/variants/night-violet.json +126 -0
- package/themes/neon-sign/variants/slate-plum.json +120 -0
- package/themes/neon-sign/variants/slate-violet.json +127 -0
- package/themes/neon-sign/variants/wine-coral.json +127 -0
- package/themes/neon-sign/variants/wine-pink.json +125 -0
- package/themes/neon-sign/variants/wine-plum.json +126 -0
- package/themes/newspaper/THEME.md +67 -0
- package/themes/newspaper/effects.ts +347 -0
- package/themes/newspaper/sample/assets/og/logo.svg +12 -0
- package/themes/newspaper/sample/beats.json +1005 -0
- package/themes/newspaper/sample/index.html +11 -0
- package/themes/newspaper/sample/kf.json +59 -0
- package/themes/newspaper/sample/lib/facts.ts +29 -0
- package/themes/newspaper/sample/lib/page.ts +27 -0
- package/themes/newspaper/sample/main.ts +9 -0
- package/themes/newspaper/sample/scenes/end.ts +62 -0
- package/themes/newspaper/sample/scenes/gather.ts +66 -0
- package/themes/newspaper/sample/scenes/models.ts +61 -0
- package/themes/newspaper/sample/scenes/price.ts +103 -0
- package/themes/newspaper/sample/style.json +100 -0
- package/themes/newspaper/slots.ts +73 -0
- package/themes/newspaper/still.png +0 -0
- package/themes/newspaper/style.json +100 -0
- package/themes/newspaper/theme.json +140 -0
- package/themes/newspaper/variants/blush-amber.json +123 -0
- package/themes/newspaper/variants/blush-orange.json +125 -0
- package/themes/newspaper/variants/chalk-cyan.json +119 -0
- package/themes/newspaper/variants/chalk-indigo.json +124 -0
- package/themes/newspaper/variants/chalk-jade.json +95 -0
- package/themes/newspaper/variants/chalk-magenta.json +127 -0
- package/themes/newspaper/variants/frost-plum.json +123 -0
- package/themes/newspaper/variants/frost-sky.json +129 -0
- package/themes/newspaper/variants/frost-violet.json +96 -0
- package/themes/newspaper/variants/lilac-coral.json +124 -0
- package/themes/newspaper/variants/lilac-green.json +127 -0
- package/themes/newspaper/variants/sage-blue.json +124 -0
- package/themes/newspaper/variants/sage-lime.json +117 -0
- package/themes/newspaper/variants/sand-gold.json +124 -0
- package/themes/newspaper/variants/sand-jade.json +123 -0
- package/themes/og-measure/slots.ts +88 -0
- package/themes/og-measure/theme.json +62 -0
- package/themes/og-measure/variants/chalk-orange.json +102 -0
- package/themes/og-measure/variants/cocoa-amber.json +138 -0
- package/themes/og-measure/variants/cocoa-cyan.json +138 -0
- package/themes/og-measure/variants/cocoa-gold.json +129 -0
- package/themes/og-measure/variants/cream-lime.json +137 -0
- package/themes/og-measure/variants/deep-jade.json +100 -0
- package/themes/og-measure/variants/dusk-violet.json +133 -0
- package/themes/og-measure/variants/forest-cyan.json +123 -0
- package/themes/og-measure/variants/frost-amber.json +129 -0
- package/themes/og-measure/variants/frost-cyan.json +133 -0
- package/themes/og-measure/variants/lilac-plum.json +127 -0
- package/themes/og-measure/variants/lilac-violet.json +139 -0
- package/themes/og-measure/variants/sage-green.json +137 -0
- package/themes/og-measure/variants/wine-jade.json +127 -0
- package/themes/og-measure/variants/wine-plum.json +127 -0
- package/themes/orbit-system/THEME.md +77 -0
- package/themes/orbit-system/effects.ts +665 -0
- package/themes/orbit-system/sample/assets/og/logo.svg +12 -0
- package/themes/orbit-system/sample/beats.json +1005 -0
- package/themes/orbit-system/sample/index.html +11 -0
- package/themes/orbit-system/sample/kf.json +59 -0
- package/themes/orbit-system/sample/lib/facts.ts +29 -0
- package/themes/orbit-system/sample/lib/orbit.ts +84 -0
- package/themes/orbit-system/sample/main.ts +9 -0
- package/themes/orbit-system/sample/scenes/end.ts +50 -0
- package/themes/orbit-system/sample/scenes/gather.ts +35 -0
- package/themes/orbit-system/sample/scenes/models.ts +49 -0
- package/themes/orbit-system/sample/scenes/price.ts +57 -0
- package/themes/orbit-system/sample/style.json +108 -0
- package/themes/orbit-system/slots.ts +174 -0
- package/themes/orbit-system/still.png +0 -0
- package/themes/orbit-system/style.json +108 -0
- package/themes/orbit-system/theme.json +142 -0
- package/themes/orbit-system/variants/cocoa-amber.json +122 -0
- package/themes/orbit-system/variants/cocoa-coral.json +127 -0
- package/themes/orbit-system/variants/cocoa-cyan.json +127 -0
- package/themes/orbit-system/variants/deep-cyan.json +132 -0
- package/themes/orbit-system/variants/deep-sky.json +122 -0
- package/themes/orbit-system/variants/dusk-magenta.json +121 -0
- package/themes/orbit-system/variants/dusk-plum-pretendard.json +121 -0
- package/themes/orbit-system/variants/dusk-plum.json +127 -0
- package/themes/orbit-system/variants/dusk-violet.json +122 -0
- package/themes/orbit-system/variants/forest-coral.json +126 -0
- package/themes/orbit-system/variants/forest-plum.json +94 -0
- package/themes/orbit-system/variants/navy-amber.json +127 -0
- package/themes/orbit-system/variants/wine-amber.json +127 -0
- package/themes/orbit-system/variants/wine-coral.json +123 -0
- package/themes/orbit-system/variants/wine-magenta.json +126 -0
- package/themes/origami-fold/THEME.md +74 -0
- package/themes/origami-fold/effects.ts +535 -0
- package/themes/origami-fold/sample/assets/og/logo.svg +12 -0
- package/themes/origami-fold/sample/beats.json +1005 -0
- package/themes/origami-fold/sample/index.html +11 -0
- package/themes/origami-fold/sample/kf.json +59 -0
- package/themes/origami-fold/sample/lib/facts.ts +29 -0
- package/themes/origami-fold/sample/lib/fold.ts +53 -0
- package/themes/origami-fold/sample/main.ts +9 -0
- package/themes/origami-fold/sample/scenes/end.ts +51 -0
- package/themes/origami-fold/sample/scenes/gather.ts +37 -0
- package/themes/origami-fold/sample/scenes/models.ts +46 -0
- package/themes/origami-fold/sample/scenes/price.ts +54 -0
- package/themes/origami-fold/sample/style.json +108 -0
- package/themes/origami-fold/slots.ts +176 -0
- package/themes/origami-fold/still.png +0 -0
- package/themes/origami-fold/style.json +108 -0
- package/themes/origami-fold/theme.json +123 -0
- package/themes/origami-fold/variants/deep-amber-sunflower.json +122 -0
- package/themes/origami-fold/variants/deep-amber.json +122 -0
- package/themes/origami-fold/variants/deep-orange.json +128 -0
- package/themes/origami-fold/variants/forest-coral.json +127 -0
- package/themes/origami-fold/variants/forest-pink.json +123 -0
- package/themes/origami-fold/variants/forest-rose.json +100 -0
- package/themes/origami-fold/variants/frost-amber-grain.json +127 -0
- package/themes/origami-fold/variants/frost-amber-paper.json +128 -0
- package/themes/origami-fold/variants/frost-amber.json +95 -0
- package/themes/origami-fold/variants/sage-coral-grain.json +100 -0
- package/themes/origami-fold/variants/sage-coral-sunflower.json +122 -0
- package/themes/origami-fold/variants/sage-coral.json +128 -0
- package/themes/origami-fold/variants/sage-pink-grain.json +127 -0
- package/themes/origami-fold/variants/sage-pink-round.json +124 -0
- package/themes/origami-fold/variants/sage-pink.json +127 -0
- package/themes/paper-cutout/THEME.md +63 -0
- package/themes/paper-cutout/effects.ts +609 -0
- package/themes/paper-cutout/sample/assets/og/logo.svg +12 -0
- package/themes/paper-cutout/sample/beats.json +1005 -0
- package/themes/paper-cutout/sample/index.html +11 -0
- package/themes/paper-cutout/sample/kf.json +59 -0
- package/themes/paper-cutout/sample/lib/facts.ts +29 -0
- package/themes/paper-cutout/sample/lib/paper.ts +91 -0
- package/themes/paper-cutout/sample/main.ts +9 -0
- package/themes/paper-cutout/sample/scenes/end.ts +54 -0
- package/themes/paper-cutout/sample/scenes/gather.ts +63 -0
- package/themes/paper-cutout/sample/scenes/models.ts +93 -0
- package/themes/paper-cutout/sample/scenes/price.ts +100 -0
- package/themes/paper-cutout/sample/style.json +104 -0
- package/themes/paper-cutout/slots.ts +87 -0
- package/themes/paper-cutout/still.png +0 -0
- package/themes/paper-cutout/style.json +104 -0
- package/themes/paper-cutout/theme.json +144 -0
- package/themes/paper-cutout/variants/blush-coral.json +122 -0
- package/themes/paper-cutout/variants/blush-violet.json +122 -0
- package/themes/paper-cutout/variants/chalk-teal.json +122 -0
- package/themes/paper-cutout/variants/cream-gold.json +122 -0
- package/themes/paper-cutout/variants/frost-blue.json +123 -0
- package/themes/paper-cutout/variants/frost-lime.json +121 -0
- package/themes/paper-cutout/variants/frost-plum.json +122 -0
- package/themes/paper-cutout/variants/lilac-blue.json +123 -0
- package/themes/paper-cutout/variants/lilac-gold.json +122 -0
- package/themes/paper-cutout/variants/sage-cyan.json +122 -0
- package/themes/paper-cutout/variants/sage-green.json +122 -0
- package/themes/paper-cutout/variants/sage-pink.json +122 -0
- package/themes/paper-cutout/variants/sand-blue.json +123 -0
- package/themes/paper-cutout/variants/sand-green.json +121 -0
- package/themes/paper-cutout/variants/sand-plum.json +120 -0
- package/themes/pixel-quest/THEME.md +57 -0
- package/themes/pixel-quest/effects.ts +491 -0
- package/themes/pixel-quest/kit.ts +232 -0
- package/themes/pixel-quest/sample/assets/og/logo.svg +12 -0
- package/themes/pixel-quest/sample/beats.json +1005 -0
- package/themes/pixel-quest/sample/index.html +11 -0
- package/themes/pixel-quest/sample/kf.json +59 -0
- package/themes/pixel-quest/sample/lib/facts.ts +29 -0
- package/themes/pixel-quest/sample/lib/game.ts +71 -0
- package/themes/pixel-quest/sample/lib/logo.ts +51 -0
- package/themes/pixel-quest/sample/main.ts +9 -0
- package/themes/pixel-quest/sample/scenes/end.ts +75 -0
- package/themes/pixel-quest/sample/scenes/gather.ts +65 -0
- package/themes/pixel-quest/sample/scenes/models.ts +104 -0
- package/themes/pixel-quest/sample/scenes/price.ts +118 -0
- package/themes/pixel-quest/sample/style.json +115 -0
- package/themes/pixel-quest/slots.ts +94 -0
- package/themes/pixel-quest/still.png +0 -0
- package/themes/pixel-quest/style.json +115 -0
- package/themes/pixel-quest/theme.json +143 -0
- package/themes/pixel-quest/variants/navy-gold-2.json +98 -0
- package/themes/pixel-quest/variants/navy-gold-3.json +127 -0
- package/themes/pixel-quest/variants/navy-gold-4.json +95 -0
- package/themes/pixel-quest/variants/navy-gold-pixel.json +132 -0
- package/themes/pixel-quest/variants/navy-gold-scan.json +99 -0
- package/themes/pixel-quest/variants/navy-gold.json +131 -0
- package/themes/pixel-quest/variants/navy-lime-2.json +93 -0
- package/themes/pixel-quest/variants/navy-lime-3.json +124 -0
- package/themes/pixel-quest/variants/navy-lime-pixel.json +126 -0
- package/themes/pixel-quest/variants/navy-lime-scan.json +97 -0
- package/themes/pixel-quest/variants/navy-lime.json +130 -0
- package/themes/receipt/THEME.md +72 -0
- package/themes/receipt/effects.ts +257 -0
- package/themes/receipt/sample/assets/og/logo.svg +12 -0
- package/themes/receipt/sample/beats.json +1005 -0
- package/themes/receipt/sample/index.html +11 -0
- package/themes/receipt/sample/kf.json +59 -0
- package/themes/receipt/sample/lib/facts.ts +29 -0
- package/themes/receipt/sample/lib/sheet.ts +52 -0
- package/themes/receipt/sample/main.ts +9 -0
- package/themes/receipt/sample/scenes/end.ts +44 -0
- package/themes/receipt/sample/scenes/gather.ts +57 -0
- package/themes/receipt/sample/scenes/models.ts +48 -0
- package/themes/receipt/sample/scenes/price.ts +64 -0
- package/themes/receipt/sample/style.json +104 -0
- package/themes/receipt/slots.ts +89 -0
- package/themes/receipt/still.png +0 -0
- package/themes/receipt/style.json +104 -0
- package/themes/receipt/theme.json +133 -0
- package/themes/receipt/variants/blush-coral.json +89 -0
- package/themes/receipt/variants/sand-coral-2.json +89 -0
- package/themes/receipt/variants/sand-coral-3.json +89 -0
- package/themes/receipt/variants/sand-coral-4.json +90 -0
- package/themes/receipt/variants/sand-coral-5.json +89 -0
- package/themes/receipt/variants/sand-coral-6.json +88 -0
- package/themes/receipt/variants/sand-coral-7.json +88 -0
- package/themes/receipt/variants/sand-coral-8.json +89 -0
- package/themes/receipt/variants/sand-coral-9.json +89 -0
- package/themes/receipt/variants/sand-coral.json +88 -0
- package/themes/receipt/variants/sand-orange-2.json +89 -0
- package/themes/receipt/variants/sand-orange-3.json +90 -0
- package/themes/receipt/variants/sand-orange-4.json +89 -0
- package/themes/receipt/variants/sand-orange-5.json +89 -0
- package/themes/receipt/variants/sand-orange.json +89 -0
- package/themes/riso-zine/slots.ts +81 -0
- package/themes/riso-zine/theme.json +66 -0
- package/themes/riso-zine/variants/blush-coral.json +120 -0
- package/themes/riso-zine/variants/blush-gold.json +120 -0
- package/themes/riso-zine/variants/blush-pink.json +115 -0
- package/themes/riso-zine/variants/chalk-cyan.json +120 -0
- package/themes/riso-zine/variants/chalk-lime.json +119 -0
- package/themes/riso-zine/variants/cream-amber.json +89 -0
- package/themes/riso-zine/variants/frost-blue.json +119 -0
- package/themes/riso-zine/variants/frost-coral.json +118 -0
- package/themes/riso-zine/variants/frost-cyan.json +120 -0
- package/themes/riso-zine/variants/frost-green.json +120 -0
- package/themes/riso-zine/variants/lilac-plum.json +118 -0
- package/themes/riso-zine/variants/lilac-violet.json +123 -0
- package/themes/riso-zine/variants/sage-green.json +119 -0
- package/themes/riso-zine/variants/sand-jade.json +120 -0
- package/themes/riso-zine/variants/sand-plum.json +113 -0
- package/themes/server-hall/THEME.md +58 -0
- package/themes/server-hall/effects.ts +455 -0
- package/themes/server-hall/kit.ts +138 -0
- package/themes/server-hall/sample/assets/og/logo.svg +12 -0
- package/themes/server-hall/sample/beats.json +1005 -0
- package/themes/server-hall/sample/index.html +11 -0
- package/themes/server-hall/sample/kf.json +59 -0
- package/themes/server-hall/sample/lib/facts.ts +29 -0
- package/themes/server-hall/sample/lib/hall.ts +81 -0
- package/themes/server-hall/sample/main.ts +9 -0
- package/themes/server-hall/sample/scenes/end.ts +57 -0
- package/themes/server-hall/sample/scenes/gather.ts +38 -0
- package/themes/server-hall/sample/scenes/models.ts +49 -0
- package/themes/server-hall/sample/scenes/price.ts +65 -0
- package/themes/server-hall/sample/style.json +107 -0
- package/themes/server-hall/slots.ts +106 -0
- package/themes/server-hall/still.png +0 -0
- package/themes/server-hall/style.json +107 -0
- package/themes/server-hall/theme.json +143 -0
- package/themes/server-hall/variants/navy-indigo.json +140 -0
- package/themes/server-hall/variants/night-indigo.json +120 -0
- package/themes/server-hall/variants/wine-plum.json +130 -0
- package/themes/server-hall/variants/wine-violet.json +103 -0
- package/themes/subway-map/THEME.md +64 -0
- package/themes/subway-map/effects.ts +662 -0
- package/themes/subway-map/sample/assets/og/logo.svg +12 -0
- package/themes/subway-map/sample/beats.json +1005 -0
- package/themes/subway-map/sample/index.html +11 -0
- package/themes/subway-map/sample/kf.json +59 -0
- package/themes/subway-map/sample/lib/facts.ts +29 -0
- package/themes/subway-map/sample/lib/map.ts +58 -0
- package/themes/subway-map/sample/main.ts +9 -0
- package/themes/subway-map/sample/scenes/end.ts +94 -0
- package/themes/subway-map/sample/scenes/gather.ts +64 -0
- package/themes/subway-map/sample/scenes/models.ts +117 -0
- package/themes/subway-map/sample/scenes/price.ts +119 -0
- package/themes/subway-map/sample/style.json +108 -0
- package/themes/subway-map/slots.ts +66 -0
- package/themes/subway-map/still.png +0 -0
- package/themes/subway-map/style.json +108 -0
- package/themes/subway-map/theme.json +161 -0
- package/themes/subway-map/variants/blush-jade.json +131 -0
- package/themes/subway-map/variants/chalk-jade.json +141 -0
- package/themes/subway-map/variants/deep-green.json +131 -0
- package/themes/subway-map/variants/deep-teal.json +132 -0
- package/themes/subway-map/variants/dusk-teal-bold.json +132 -0
- package/themes/subway-map/variants/dusk-teal.json +105 -0
- package/themes/subway-map/variants/forest-green.json +141 -0
- package/themes/subway-map/variants/forest-jade.json +131 -0
- package/themes/subway-map/variants/frost-jade.json +131 -0
- package/themes/subway-map/variants/frost-teal.json +137 -0
- package/themes/subway-map/variants/sage-teal.json +132 -0
- package/themes/subway-map/variants/slate-green.json +136 -0
- package/themes/subway-map/variants/slate-jade.json +131 -0
- package/themes/subway-map/variants/snow-jade.json +136 -0
- package/themes/subway-map/variants/wine-green.json +104 -0
- package/themes/swiss-poster/THEME.md +59 -0
- package/themes/swiss-poster/effects.ts +339 -0
- package/themes/swiss-poster/grid.ts +35 -0
- package/themes/swiss-poster/sample/assets/og/logo.svg +12 -0
- package/themes/swiss-poster/sample/beats.json +1005 -0
- package/themes/swiss-poster/sample/index.html +11 -0
- package/themes/swiss-poster/sample/kf.json +59 -0
- package/themes/swiss-poster/sample/lib/facts.ts +29 -0
- package/themes/swiss-poster/sample/lib/poster.ts +36 -0
- package/themes/swiss-poster/sample/main.ts +9 -0
- package/themes/swiss-poster/sample/scenes/end.ts +70 -0
- package/themes/swiss-poster/sample/scenes/gather.ts +68 -0
- package/themes/swiss-poster/sample/scenes/models.ts +63 -0
- package/themes/swiss-poster/sample/scenes/price.ts +74 -0
- package/themes/swiss-poster/sample/style.json +100 -0
- package/themes/swiss-poster/slots.ts +69 -0
- package/themes/swiss-poster/still.png +0 -0
- package/themes/swiss-poster/style.json +100 -0
- package/themes/swiss-poster/theme.json +131 -0
- package/themes/swiss-poster/variants/blush-green.json +116 -0
- package/themes/swiss-poster/variants/chalk-plum.json +121 -0
- package/themes/swiss-poster/variants/chalk-sky.json +90 -0
- package/themes/swiss-poster/variants/cocoa-cyan.json +117 -0
- package/themes/swiss-poster/variants/dusk-coral.json +89 -0
- package/themes/swiss-poster/variants/dusk-magenta.json +117 -0
- package/themes/swiss-poster/variants/forest-amber.json +127 -0
- package/themes/swiss-poster/variants/forest-blue.json +118 -0
- package/themes/swiss-poster/variants/forest-jade.json +89 -0
- package/themes/swiss-poster/variants/frost-gold.json +128 -0
- package/themes/swiss-poster/variants/frost-indigo.json +117 -0
- package/themes/swiss-poster/variants/sand-magenta.json +126 -0
- package/themes/swiss-poster/variants/slate-orange.json +122 -0
- package/themes/swiss-poster/variants/slate-pink.json +126 -0
- package/themes/swiss-poster/variants/slate-violet.json +89 -0
- package/themes/water-works/THEME.md +61 -0
- package/themes/water-works/effects.ts +609 -0
- package/themes/water-works/sample/assets/og/logo.svg +12 -0
- package/themes/water-works/sample/beats.json +1005 -0
- package/themes/water-works/sample/index.html +11 -0
- package/themes/water-works/sample/kf.json +59 -0
- package/themes/water-works/sample/lib/facts.ts +29 -0
- package/themes/water-works/sample/lib/hall.ts +22 -0
- package/themes/water-works/sample/main.ts +9 -0
- package/themes/water-works/sample/scenes/end.ts +55 -0
- package/themes/water-works/sample/scenes/gather.ts +42 -0
- package/themes/water-works/sample/scenes/models.ts +51 -0
- package/themes/water-works/sample/scenes/price.ts +66 -0
- package/themes/water-works/sample/style.json +105 -0
- package/themes/water-works/slots.ts +140 -0
- package/themes/water-works/still.png +0 -0
- package/themes/water-works/style.json +105 -0
- package/themes/water-works/theme.json +138 -0
- package/themes/water-works/variants/blush-rose.json +123 -0
- package/themes/water-works/variants/chalk-blue.json +124 -0
- package/themes/water-works/variants/chalk-cyan-2.json +96 -0
- package/themes/water-works/variants/chalk-cyan.json +123 -0
- package/themes/water-works/variants/chalk-gold-mono.json +122 -0
- package/themes/water-works/variants/chalk-gold.json +123 -0
- package/themes/water-works/variants/chalk-green.json +123 -0
- package/themes/water-works/variants/frost-indigo.json +123 -0
- package/themes/water-works/variants/frost-rose.json +132 -0
- package/themes/water-works/variants/lilac-violet-mono.json +124 -0
- package/themes/water-works/variants/lilac-violet.json +133 -0
- package/themes/water-works/variants/sage-amber.json +133 -0
- package/themes/water-works/variants/sage-green.json +133 -0
- package/themes/water-works/variants/sand-amber.json +123 -0
- package/themes/water-works/variants/sand-plum.json +121 -0
- package/themes/whiteboard/THEME.md +78 -0
- package/themes/whiteboard/effects.ts +561 -0
- package/themes/whiteboard/sample/assets/og/logo.svg +12 -0
- package/themes/whiteboard/sample/beats.json +1005 -0
- package/themes/whiteboard/sample/index.html +11 -0
- package/themes/whiteboard/sample/kf.json +59 -0
- package/themes/whiteboard/sample/lib/board.ts +93 -0
- package/themes/whiteboard/sample/lib/facts.ts +29 -0
- package/themes/whiteboard/sample/main.ts +9 -0
- package/themes/whiteboard/sample/scenes/end.ts +59 -0
- package/themes/whiteboard/sample/scenes/gather.ts +50 -0
- package/themes/whiteboard/sample/scenes/models.ts +56 -0
- package/themes/whiteboard/sample/scenes/price.ts +79 -0
- package/themes/whiteboard/sample/style.json +106 -0
- package/themes/whiteboard/slots.ts +152 -0
- package/themes/whiteboard/still.png +0 -0
- package/themes/whiteboard/style.json +106 -0
- package/themes/whiteboard/theme.json +143 -0
- package/themes/whiteboard/variants/chalk-coral-do.json +126 -0
- package/themes/whiteboard/variants/chalk-coral.json +132 -0
- package/themes/whiteboard/variants/cream-lime.json +131 -0
- package/themes/whiteboard/variants/cream-plum.json +103 -0
- package/themes/whiteboard/variants/frost-teal-do.json +127 -0
- package/themes/whiteboard/variants/frost-teal.json +127 -0
- package/themes/whiteboard/variants/lilac-indigo.json +132 -0
- package/themes/whiteboard/variants/lilac-jade.json +103 -0
- package/themes/whiteboard/variants/sage-green.json +130 -0
- package/themes/whiteboard/variants/sage-plum.json +126 -0
- package/themes/whiteboard/variants/snow-amber.json +99 -0
- package/themes/whiteboard/variants/snow-cyan.json +132 -0
- package/themes/whiteboard/variants/snow-green.json +126 -0
- package/themes/whiteboard/variants/snow-magenta.json +126 -0
- package/themes/whiteboard/variants/snow-plum.json +130 -0
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { clamp, ease, rand, toEase, type EaseName, type SceneCtx } from "@kasaframe/core";
|
|
2
|
+
import { dropBurst } from "@kasaframe/motion";
|
|
3
|
+
import { stage3d, THREE, type Stage3D } from "@kasaframe/themes/stage3d";
|
|
4
|
+
|
|
5
|
+
type V3 = [number, number, number];
|
|
6
|
+
type Font = "display" | "sans" | "mono";
|
|
7
|
+
type Draw = (g: CanvasRenderingContext2D, W: number, H: number) => void;
|
|
8
|
+
|
|
9
|
+
const hex = (ctx: SceneCtx, k: string): string => ctx.style.colors[k] ?? k;
|
|
10
|
+
const color = (ctx: SceneCtx, k: string) => new THREE.Color(hex(ctx, k));
|
|
11
|
+
const settle = (t: number, at: number, dur: number) => (t < at ? 0 : ease.outCubic(clamp((t - at) / dur)));
|
|
12
|
+
|
|
13
|
+
export interface CamKey {
|
|
14
|
+
t: number;
|
|
15
|
+
pos: V3;
|
|
16
|
+
look: V3;
|
|
17
|
+
/** 앞 키에서 이 키로 오는 이징 — 박에 떠나 박에 내려앉는다. 기본 inOutCubic */
|
|
18
|
+
ease?: EaseName;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface Shot {
|
|
22
|
+
from: number;
|
|
23
|
+
to: number;
|
|
24
|
+
/** 키 사이는 움직이고 키에서 선다. 쉬지 않는 몫은 접히고 날고 쌓이는 종이가 진다 */
|
|
25
|
+
keys: CamKey[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const mix3 = (a: V3, b: V3, u: number): V3 => [a[0] + (b[0] - a[0]) * u, a[1] + (b[1] - a[1]) * u, a[2] + (b[2] - a[2]) * u];
|
|
29
|
+
function camAt(t: number, keys: CamKey[]): { pos: V3; look: V3 } {
|
|
30
|
+
const ks = [...keys].sort((a, b) => a.t - b.t);
|
|
31
|
+
if (t <= ks[0].t) return ks[0];
|
|
32
|
+
for (let i = 1; i < ks.length; i++) {
|
|
33
|
+
if (t >= ks[i].t) continue;
|
|
34
|
+
const [a, b] = [ks[i - 1], ks[i]];
|
|
35
|
+
const u = toEase(b.ease ?? "inOutCubic")((t - a.t) / Math.max(1e-6, b.t - a.t));
|
|
36
|
+
return { pos: mix3(a.pos, b.pos, u), look: mix3(a.look, b.look, u) };
|
|
37
|
+
}
|
|
38
|
+
return ks[ks.length - 1];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function matTexture(ctx: SceneCtx): THREE.CanvasTexture {
|
|
42
|
+
// 1 칸 = 128px = 세계 1 단위. 반 칸마다 가는 선, 두 칸마다 굵은 선 — 커팅 매트의 눈금
|
|
43
|
+
const c = document.createElement("canvas");
|
|
44
|
+
c.width = c.height = 512;
|
|
45
|
+
const g = c.getContext("2d")!;
|
|
46
|
+
g.fillStyle = hex(ctx, "bg");
|
|
47
|
+
g.fillRect(0, 0, 512, 512);
|
|
48
|
+
for (let i = 0; i <= 8; i++) {
|
|
49
|
+
const major = i % 4 === 0;
|
|
50
|
+
g.fillStyle = hex(ctx, major ? "line" : "matline");
|
|
51
|
+
const w = major ? 4 : 2;
|
|
52
|
+
g.fillRect(i * 64 - w / 2, 0, w, 512);
|
|
53
|
+
g.fillRect(0, i * 64 - w / 2, 512, w);
|
|
54
|
+
}
|
|
55
|
+
const tex = new THREE.CanvasTexture(c);
|
|
56
|
+
tex.colorSpace = THREE.SRGBColorSpace;
|
|
57
|
+
tex.wrapS = tex.wrapT = THREE.RepeatWrapping;
|
|
58
|
+
tex.repeat.set(100, 100);
|
|
59
|
+
tex.anisotropy = 8;
|
|
60
|
+
return tex;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 공작 탁자 — 초록 커팅 매트(눈금은 서 있다), 왼쪽 위 빛 하나와 또렷한 그림자. 카메라는 탁자를 비스듬히 내려다보고 박에 맞춘 키로만 움직인다 */
|
|
64
|
+
export function paperStage(el: HTMLElement, o: { ctx: SceneCtx; shots: Shot[]; fov?: number }): ((t: number) => void) & Stage3D {
|
|
65
|
+
const { ctx } = o;
|
|
66
|
+
const shots = [...o.shots].sort((a, b) => a.from - b.from);
|
|
67
|
+
const shotAt = (t: number) => shots.find((x) => t >= x.from && t < x.to) ?? shots[shots.length - 1];
|
|
68
|
+
const stage = stage3d(el, {
|
|
69
|
+
ctx,
|
|
70
|
+
fov: o.fov ?? 38,
|
|
71
|
+
exposure: 1.05,
|
|
72
|
+
shot(t, cam) {
|
|
73
|
+
const p = camAt(t, shotAt(t).keys);
|
|
74
|
+
cam.position.set(...p.pos);
|
|
75
|
+
cam.lookAt(...p.look);
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
stage.scene.add(stage.camera);
|
|
79
|
+
const mat = new THREE.Mesh(new THREE.PlaneGeometry(400, 400), new THREE.MeshStandardMaterial({ map: matTexture(ctx), roughness: 0.95, metalness: 0 }));
|
|
80
|
+
mat.rotation.x = -Math.PI / 2;
|
|
81
|
+
mat.receiveShadow = true;
|
|
82
|
+
stage.scene.add(mat);
|
|
83
|
+
stage.scene.add(new THREE.HemisphereLight(0xffffff, color(ctx, "bg"), 1.15));
|
|
84
|
+
const key = new THREE.DirectionalLight(0xfff3e2, 2.5);
|
|
85
|
+
key.castShadow = true;
|
|
86
|
+
key.shadow.mapSize.set(1024, 1024);
|
|
87
|
+
Object.assign(key.shadow.camera, { left: -12, right: 12, top: 12, bottom: -12, near: 1, far: 60 });
|
|
88
|
+
key.shadow.bias = -0.0005;
|
|
89
|
+
key.shadow.normalBias = 0.02;
|
|
90
|
+
stage.scene.add(key);
|
|
91
|
+
return Object.assign((t: number) => {
|
|
92
|
+
// 빛과 매트가 지금 컷의 세트를 따라간다 — 매트는 눈금 네 칸 단위로만 옮겨 눈금이 서 있다
|
|
93
|
+
const [lx, , lz] = shotAt(t).keys[0].look;
|
|
94
|
+
mat.position.set(Math.round(lx / 4) * 4, 0, Math.round(lz / 4) * 4);
|
|
95
|
+
key.position.set(lx - 7, 13, lz + 8);
|
|
96
|
+
key.target.position.set(lx, 0, lz);
|
|
97
|
+
key.target.updateMatrixWorld();
|
|
98
|
+
stage.paint(t);
|
|
99
|
+
}, stage);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const paperMat = (ctx: SceneCtx, k: string | THREE.Texture, side: THREE.Side = THREE.FrontSide) =>
|
|
103
|
+
new THREE.MeshStandardMaterial(typeof k === "string" ? { color: color(ctx, k), roughness: 0.92, metalness: 0, side } : { map: k, roughness: 0.92, metalness: 0, side });
|
|
104
|
+
|
|
105
|
+
function remapUV(geo: THREE.BufferGeometry, [u0, u1, v0, v1]: [number, number, number, number]): void {
|
|
106
|
+
const uv = geo.attributes.uv as THREE.BufferAttribute;
|
|
107
|
+
for (let i = 0; i < uv.count; i++) uv.setXY(i, u0 + uv.getX(i) * (u1 - u0), v0 + uv.getY(i) * (v1 - v0));
|
|
108
|
+
uv.needsUpdate = true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** 종이 한 장 — 앞면(무늬·글)과 뒷면(종이 색)이 따로. XY 평면에서 +Z 를 본다 */
|
|
112
|
+
function sheet(w: number, h: number, front: THREE.Material, back: THREE.Material, uv?: [number, number, number, number]): THREE.Group {
|
|
113
|
+
const g = new THREE.Group();
|
|
114
|
+
const geo = new THREE.PlaneGeometry(w, h);
|
|
115
|
+
if (uv) remapUV(geo, uv);
|
|
116
|
+
const f = new THREE.Mesh(geo, front);
|
|
117
|
+
const b = new THREE.Mesh(geo.clone(), back);
|
|
118
|
+
b.rotation.y = Math.PI;
|
|
119
|
+
b.position.z = -0.004;
|
|
120
|
+
for (const m of [f, b]) {
|
|
121
|
+
m.castShadow = true;
|
|
122
|
+
m.receiveShadow = true;
|
|
123
|
+
}
|
|
124
|
+
g.add(f, b);
|
|
125
|
+
return g;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** 종이에 찍은 글·그림 — 세계 크기 w×h 에 맞춘 캔버스. draw 를 다시 부르면 다시 찍는다 */
|
|
129
|
+
function printed(ctx: SceneCtx, w: number, h: number, paper: string) {
|
|
130
|
+
const k = Math.min(2048 / Math.max(w, h), 240);
|
|
131
|
+
const c = document.createElement("canvas");
|
|
132
|
+
c.width = Math.round(w * k);
|
|
133
|
+
c.height = Math.round(h * k);
|
|
134
|
+
const g = c.getContext("2d")!;
|
|
135
|
+
const tex = new THREE.CanvasTexture(c);
|
|
136
|
+
tex.colorSpace = THREE.SRGBColorSpace;
|
|
137
|
+
tex.anisotropy = 8;
|
|
138
|
+
const draw = (fn: Draw) => {
|
|
139
|
+
g.fillStyle = hex(ctx, paper);
|
|
140
|
+
g.fillRect(0, 0, c.width, c.height);
|
|
141
|
+
fn(g, c.width, c.height);
|
|
142
|
+
tex.needsUpdate = true;
|
|
143
|
+
};
|
|
144
|
+
return { tex, draw };
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** 가운데 맞춘 글 한 줄 — 넘치면 줄여서 폭 안에 */
|
|
148
|
+
function fitText(ctx: SceneCtx, g: CanvasRenderingContext2D, text: string, x: number, y: number, maxW: number, size: number, f: Font, ink: string): void {
|
|
149
|
+
const weight = f === "sans" ? 400 : 700;
|
|
150
|
+
g.font = `${weight} ${size}px ${ctx.style.fonts[f]}`;
|
|
151
|
+
const w = g.measureText(text).width;
|
|
152
|
+
const s = w > maxW ? (size * maxW) / w : size;
|
|
153
|
+
g.font = `${weight} ${s}px ${ctx.style.fonts[f]}`;
|
|
154
|
+
g.fillStyle = hex(ctx, ink);
|
|
155
|
+
g.textAlign = "center";
|
|
156
|
+
g.textBaseline = "middle";
|
|
157
|
+
g.fillText(text, x, y);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const cardPrint = (ctx: SceneCtx, text: string, sub: string | undefined, f: Font, ink: string): Draw => (g, W, H) => {
|
|
161
|
+
g.strokeStyle = hex(ctx, ink);
|
|
162
|
+
g.globalAlpha = 0.18;
|
|
163
|
+
g.lineWidth = Math.max(2, H * 0.012);
|
|
164
|
+
g.strokeRect(H * 0.06, H * 0.06, W - H * 0.12, H - H * 0.12);
|
|
165
|
+
g.globalAlpha = 1;
|
|
166
|
+
fitText(ctx, g, text, W / 2, sub ? H * 0.42 : H * 0.52, W * 0.86, H * (sub ? 0.34 : 0.46), f, ink);
|
|
167
|
+
if (sub) fitText(ctx, g, sub, W / 2, H * 0.76, W * 0.86, H * 0.17, "sans", ink);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* 접힌 카드 = 펼치면 드러나는 정보 — 반으로 접힌 카드가 내려앉고(at 보다 조금 앞), at 에 오른쪽 장이 넘어가며 펼쳐져 안쪽에 찍힌 글이 드러난다.
|
|
172
|
+
* steps 면 그 박마다 다시 접혔다가(닫힌 동안 글이 바뀐다) 다시 펼쳐진다 — 같은 카드에 값만 바뀐다
|
|
173
|
+
*/
|
|
174
|
+
export function foldCard(
|
|
175
|
+
stage: Stage3D,
|
|
176
|
+
o: { ctx: SceneCtx; pos: V3; size: [number, number]; text: string; sub?: string; steps?: { at: number; text: string; sub?: string }[]; at: number; tone?: string; yaw?: number; font?: Font; ink?: string; draw?: Draw },
|
|
177
|
+
): (t: number) => void {
|
|
178
|
+
const { ctx } = o;
|
|
179
|
+
const [w, h] = o.size;
|
|
180
|
+
const half = w / 2;
|
|
181
|
+
const ink = o.ink ?? "print";
|
|
182
|
+
const f = o.font ?? "display";
|
|
183
|
+
const page = printed(ctx, w, h, "paper");
|
|
184
|
+
const versions = [{ at: o.at, text: o.text, sub: o.sub }, ...(o.steps ?? [])].sort((a, b) => a.at - b.at);
|
|
185
|
+
const paint = (v: (typeof versions)[number]) => page.draw(o.draw ?? cardPrint(ctx, v.text, v.sub, f, ink));
|
|
186
|
+
// 값이 안 바뀌는 카드는 지을 때 한 번 찍는다. 바뀌는 카드는 매 프레임 찍는다 — 같은 t 를 두 번 그릴 때 둘째에 글 찍기가 빠지면 검사가 다른 화면으로 본다
|
|
187
|
+
paint(versions[0]);
|
|
188
|
+
const live = versions.length > 1;
|
|
189
|
+
const group = new THREE.Group();
|
|
190
|
+
group.position.set(...o.pos);
|
|
191
|
+
group.rotation.y = o.yaw ?? 0;
|
|
192
|
+
// 한 장에 찍은 안쪽 펼침면을 두 장이 반씩 나눠 받는다(UV)
|
|
193
|
+
const left = sheet(half, h, paperMat(ctx, page.tex), paperMat(ctx, o.tone ?? "indigo"), [0, 0.5, 0, 1]);
|
|
194
|
+
left.rotation.x = -Math.PI / 2;
|
|
195
|
+
left.position.set(-half / 2, 0.006, 0);
|
|
196
|
+
const pivot = new THREE.Group();
|
|
197
|
+
const right = sheet(half, h, paperMat(ctx, page.tex), paperMat(ctx, o.tone ?? "indigo"), [0.5, 1, 0, 1]);
|
|
198
|
+
right.rotation.x = -Math.PI / 2;
|
|
199
|
+
right.position.set(half / 2, 0, 0);
|
|
200
|
+
pivot.add(right);
|
|
201
|
+
group.add(left, pivot);
|
|
202
|
+
stage.scene.add(group);
|
|
203
|
+
const later = versions.slice(1);
|
|
204
|
+
return (t) => {
|
|
205
|
+
const appear = o.at - 0.3;
|
|
206
|
+
group.visible = t >= appear;
|
|
207
|
+
if (!group.visible) return;
|
|
208
|
+
const drop = settle(t, appear, 0.24);
|
|
209
|
+
group.position.y = o.pos[1] + (1 - drop) * 1.4;
|
|
210
|
+
let closed = 1 - settle(t, o.at, 0.38);
|
|
211
|
+
// 박 하나 안에 접었다 편다 — 0.12초 접고 닫힌 채 0.05초 머물며 글을 바꾸고(바뀌는 순간은 안 보인다), 0.22초 편다.
|
|
212
|
+
// 머묾이 없으면 닫힌 모습이 한 프레임만 나와 깜빡임으로 읽힌다
|
|
213
|
+
for (const s of later) {
|
|
214
|
+
if (t >= s.at - 0.25 && t < s.at - 0.13) closed = ease.inOutCubic(clamp((t - s.at + 0.25) / 0.12));
|
|
215
|
+
else if (t >= s.at - 0.13 && t < s.at - 0.08) closed = 1;
|
|
216
|
+
else if (t >= s.at - 0.08) closed = 1 - ease.outCubic(clamp((t - s.at + 0.08) / 0.22));
|
|
217
|
+
}
|
|
218
|
+
if (live) paint([...versions].reverse().find((v) => t >= v.at - 0.1) ?? versions[0]);
|
|
219
|
+
pivot.rotation.z = Math.PI * closed;
|
|
220
|
+
pivot.position.y = 0.006 + 0.012 * closed;
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** 세우는 카드 = 이름표·값 — 바닥에 엎드려 있던 카드가 아래 접선을 축으로 일어선다(살짝 넘쳤다 선다). until 이면 다시 눕는다. text 가 함수면 매 프레임 다시 찍는다 */
|
|
225
|
+
export function popUp(
|
|
226
|
+
stage: Stage3D,
|
|
227
|
+
o: { ctx: SceneCtx; pos: V3; size: [number, number]; text: string | ((t: number) => string); sub?: string; at: number; until?: number; tone?: string; ink?: string; font?: Font; yaw?: number },
|
|
228
|
+
): (t: number) => void {
|
|
229
|
+
const { ctx } = o;
|
|
230
|
+
const [w, h] = o.size;
|
|
231
|
+
const tone = o.tone ?? "paper";
|
|
232
|
+
const card = printed(ctx, w, h, tone);
|
|
233
|
+
const ink = o.ink ?? "print";
|
|
234
|
+
const f = o.font ?? "display";
|
|
235
|
+
const draw = (text: string) => card.draw(cardPrint(ctx, text, o.sub, f, ink));
|
|
236
|
+
if (typeof o.text === "string") draw(o.text);
|
|
237
|
+
const group = new THREE.Group();
|
|
238
|
+
group.position.set(...o.pos);
|
|
239
|
+
group.rotation.y = o.yaw ?? 0;
|
|
240
|
+
const hinge = new THREE.Group();
|
|
241
|
+
const face = sheet(w, h, paperMat(ctx, card.tex), paperMat(ctx, tone));
|
|
242
|
+
face.position.y = h / 2;
|
|
243
|
+
hinge.add(face);
|
|
244
|
+
group.add(hinge);
|
|
245
|
+
stage.scene.add(group);
|
|
246
|
+
return (t) => {
|
|
247
|
+
const off = o.until === undefined ? 0 : settle(t, o.until, 0.25);
|
|
248
|
+
group.visible = t >= o.at && off < 1;
|
|
249
|
+
if (!group.visible) return;
|
|
250
|
+
if (typeof o.text === "function") draw(o.text(t));
|
|
251
|
+
const up = t < o.at ? 0 : ease.outBack(clamp((t - o.at) / 0.34));
|
|
252
|
+
hinge.rotation.x = -(Math.PI / 2) * (1 - up * (1 - off));
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface Pleat {
|
|
257
|
+
(t: number): void;
|
|
258
|
+
/** 그 시각 끝(세운 막대면 꼭대기) 자리 — 값 카드가 따라간다 */
|
|
259
|
+
tip(t: number): THREE.Vector3;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* 아코디언 접기 = 압축·할인 — 긴 종이 띠가 panels 칸으로 산·골을 번갈아 접힌다. keys 의 ratio 는 원래 길이의 몇 분의 1 인가(1 이면 평평, 10 이면 1/10).
|
|
264
|
+
* axis x 는 매트에 누운 띠(가로로 줄어든다), y 는 세운 막대(아래로 줄어든다). print 면 띠에 글을 찍는다
|
|
265
|
+
*/
|
|
266
|
+
export function pleatFold(
|
|
267
|
+
stage: Stage3D,
|
|
268
|
+
o: { ctx: SceneCtx; pos: V3; length: number; width: number; panels?: number; axis?: "x" | "y"; keys: { t: number; ratio: number; ease?: EaseName }[]; at?: number; until?: number; tone?: string; print?: { text: string; font?: Font; ink?: string }; yaw?: number },
|
|
269
|
+
): Pleat {
|
|
270
|
+
const { ctx } = o;
|
|
271
|
+
const N = o.panels ?? 8;
|
|
272
|
+
const s = o.length / N;
|
|
273
|
+
const axis = o.axis ?? "x";
|
|
274
|
+
let material: THREE.Material;
|
|
275
|
+
if (o.print) {
|
|
276
|
+
const pr = o.print;
|
|
277
|
+
const p = axis === "x" ? printed(ctx, o.length, o.width, o.tone ?? "paper") : printed(ctx, o.width, o.length, o.tone ?? "paper");
|
|
278
|
+
p.draw((g, W, H) => fitText(ctx, g, pr.text, W / 2, H / 2, W * 0.9, Math.min(H, W) * 0.62, pr.font ?? "display", pr.ink ?? "print"));
|
|
279
|
+
material = paperMat(ctx, p.tex, THREE.DoubleSide);
|
|
280
|
+
} else material = paperMat(ctx, o.tone ?? "paper", THREE.DoubleSide);
|
|
281
|
+
const group = new THREE.Group();
|
|
282
|
+
group.position.set(...o.pos);
|
|
283
|
+
group.rotation.y = o.yaw ?? 0;
|
|
284
|
+
const panels = Array.from({ length: N }, (_, i) => {
|
|
285
|
+
const geo = axis === "x" ? new THREE.PlaneGeometry(s, o.width) : new THREE.PlaneGeometry(o.width, s);
|
|
286
|
+
remapUV(geo, axis === "x" ? [i / N, (i + 1) / N, 0, 1] : [0, 1, i / N, (i + 1) / N]);
|
|
287
|
+
if (axis === "x") geo.rotateX(-Math.PI / 2);
|
|
288
|
+
const m = new THREE.Mesh(geo, material);
|
|
289
|
+
m.castShadow = true;
|
|
290
|
+
m.receiveShadow = true;
|
|
291
|
+
group.add(m);
|
|
292
|
+
return m;
|
|
293
|
+
});
|
|
294
|
+
stage.scene.add(group);
|
|
295
|
+
const ks = [...o.keys].sort((a, b) => a.t - b.t);
|
|
296
|
+
const ratioAt = (t: number) => {
|
|
297
|
+
if (t <= ks[0].t) return ks[0].ratio;
|
|
298
|
+
for (let i = 1; i < ks.length; i++) {
|
|
299
|
+
if (t >= ks[i].t) continue;
|
|
300
|
+
const u = toEase(ks[i].ease ?? "inOutCubic")((t - ks[i - 1].t) / Math.max(1e-6, ks[i].t - ks[i - 1].t));
|
|
301
|
+
return ks[i - 1].ratio + (ks[i].ratio - ks[i - 1].ratio) * u;
|
|
302
|
+
}
|
|
303
|
+
return ks[ks.length - 1].ratio;
|
|
304
|
+
};
|
|
305
|
+
const geom = (t: number) => {
|
|
306
|
+
const phi = Math.acos(clamp(1 / Math.max(1, ratioAt(t)), 0, 1));
|
|
307
|
+
return { c: Math.cos(phi), sn: Math.sin(phi) };
|
|
308
|
+
};
|
|
309
|
+
return Object.assign(
|
|
310
|
+
(t: number) => {
|
|
311
|
+
group.visible = t >= (o.at ?? -1) && (o.until === undefined || t < o.until);
|
|
312
|
+
if (!group.visible) return;
|
|
313
|
+
const { c, sn } = geom(t);
|
|
314
|
+
panels.forEach((m, i) => {
|
|
315
|
+
const a0 = i * s * c;
|
|
316
|
+
const a1 = (i + 1) * s * c;
|
|
317
|
+
const b0 = i % 2 ? s * sn : 0;
|
|
318
|
+
const b1 = (i + 1) % 2 ? s * sn : 0;
|
|
319
|
+
if (axis === "x") {
|
|
320
|
+
m.position.set((a0 + a1) / 2, 0.006 + (b0 + b1) / 2, 0);
|
|
321
|
+
m.rotation.set(0, 0, Math.atan2(b1 - b0, a1 - a0));
|
|
322
|
+
} else {
|
|
323
|
+
m.position.set(0, (a0 + a1) / 2, (b0 + b1) / 2);
|
|
324
|
+
m.rotation.set(Math.atan2(b1 - b0, a1 - a0), 0, 0);
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
tip: (t: number) => {
|
|
330
|
+
const { c, sn } = geom(t);
|
|
331
|
+
const along = N * s * c;
|
|
332
|
+
const off = N % 2 ? s * sn : 0;
|
|
333
|
+
const v = axis === "x" ? new THREE.Vector3(along, off, 0) : new THREE.Vector3(0, along, off);
|
|
334
|
+
return v.applyAxisAngle(new THREE.Vector3(0, 1, 0), o.yaw ?? 0).add(new THREE.Vector3(...o.pos));
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function planeGeometry(): THREE.BufferGeometry {
|
|
341
|
+
// 다트 비행기 — 앞이 +Z(lookAt 이 그쪽을 본다). 날개 둘과 용골 하나
|
|
342
|
+
const P = {
|
|
343
|
+
nose: [0, 0, 0.5],
|
|
344
|
+
tail: [0, 0, -0.5],
|
|
345
|
+
wl: [0.42, 0.07, -0.5],
|
|
346
|
+
wr: [-0.42, 0.07, -0.5],
|
|
347
|
+
keel: [0, -0.16, -0.45],
|
|
348
|
+
};
|
|
349
|
+
const tris = [P.nose, P.wl, P.tail, P.nose, P.tail, P.wr, P.nose, P.keel, P.tail].flat();
|
|
350
|
+
const g = new THREE.BufferGeometry();
|
|
351
|
+
g.setAttribute("position", new THREE.Float32BufferAttribute(tris, 3));
|
|
352
|
+
g.computeVertexNormals();
|
|
353
|
+
return g;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* 종이비행기 = 요청 — from 에서 to 로 휜 길을 날아가 앉는다(stay) 또는 날아가 버린다. 앞을 보고 날고 휘는 쪽으로 기운다.
|
|
358
|
+
* rest 면 날기 전에 from 에 앉아 있다
|
|
359
|
+
*/
|
|
360
|
+
export function paperPlane(stage: Stage3D, o: { ctx: SceneCtx; from: V3; to: V3; at: number; dur?: number; arc?: number; tone?: string; size?: number; rest?: boolean; stay?: boolean }): (t: number) => void {
|
|
361
|
+
const { ctx } = o;
|
|
362
|
+
const size = o.size ?? 0.9;
|
|
363
|
+
const m = new THREE.Mesh(planeGeometry(), new THREE.MeshStandardMaterial({ color: color(ctx, o.tone ?? "paper"), roughness: 0.9, side: THREE.DoubleSide, flatShading: true }));
|
|
364
|
+
m.castShadow = true;
|
|
365
|
+
m.scale.setScalar(size);
|
|
366
|
+
stage.scene.add(m);
|
|
367
|
+
const A = new THREE.Vector3(...o.from);
|
|
368
|
+
const B = new THREE.Vector3(...o.to);
|
|
369
|
+
const C = A.clone().lerp(B, 0.5).add(new THREE.Vector3(0, o.arc ?? A.distanceTo(B) * 0.3, 0));
|
|
370
|
+
const curve = new THREE.QuadraticBezierCurve3(A, C, B);
|
|
371
|
+
const dur = o.dur ?? 0.6;
|
|
372
|
+
const rest = 0.16 * size;
|
|
373
|
+
const side = Math.sign((B.x - A.x) * 0.3 + (B.z - A.z)) || 1;
|
|
374
|
+
const at = (u: number) => curve.getPoint(u);
|
|
375
|
+
return (t) => {
|
|
376
|
+
const k = (t - o.at) / dur;
|
|
377
|
+
if (k < 0) {
|
|
378
|
+
m.visible = !!o.rest;
|
|
379
|
+
if (!m.visible) return;
|
|
380
|
+
m.position.copy(A).setY(A.y + rest);
|
|
381
|
+
m.lookAt(B.x, A.y + rest, B.z);
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
if (k >= 1) {
|
|
385
|
+
m.visible = !!o.stay;
|
|
386
|
+
if (!m.visible) return;
|
|
387
|
+
const tail = at(0.97);
|
|
388
|
+
m.position.copy(B).setY(B.y + rest);
|
|
389
|
+
m.lookAt(B.x + (B.x - tail.x), B.y + rest, B.z + (B.z - tail.z));
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
m.visible = true;
|
|
393
|
+
const u = toEase("inOutQuad")(k);
|
|
394
|
+
const p = at(u);
|
|
395
|
+
const ahead = at(Math.min(1, u + 0.02));
|
|
396
|
+
m.position.copy(p).setY(Math.max(p.y, B.y) + rest);
|
|
397
|
+
m.lookAt(ahead.x, Math.max(ahead.y, B.y) + rest, ahead.z);
|
|
398
|
+
m.rotateZ(Math.sin(k * Math.PI) * 0.35 * side);
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export interface Stack {
|
|
403
|
+
(t: number): void;
|
|
404
|
+
/** 그 시각까지 앉은 장 수 — 숫자가 같은 값을 센다 */
|
|
405
|
+
shown(t: number): number;
|
|
406
|
+
/** 더미 꼭대기 자리 */
|
|
407
|
+
top(t: number): THREE.Vector3;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/** 종이 더미 = 개수 — count 장이 위에서 한 장씩 떨어져 쌓인다(at 부터 dur 동안). tones 는 장마다 색(회사 색) */
|
|
411
|
+
export function sheetStack(
|
|
412
|
+
stage: Stage3D,
|
|
413
|
+
o: { ctx: SceneCtx; pos: V3; count: number; at: number; dur: number; size?: [number, number]; thick?: number; tones?: string[] | ((i: number) => string); fall?: number; seed?: string },
|
|
414
|
+
): Stack {
|
|
415
|
+
const { ctx } = o;
|
|
416
|
+
const [w, d] = o.size ?? [1.4, 1];
|
|
417
|
+
const th = o.thick ?? 0.05;
|
|
418
|
+
const seed = o.seed ?? "stack";
|
|
419
|
+
const mesh = new THREE.InstancedMesh(new THREE.BoxGeometry(w, th, d), new THREE.MeshStandardMaterial({ roughness: 0.92, metalness: 0 }), o.count);
|
|
420
|
+
mesh.castShadow = true;
|
|
421
|
+
mesh.receiveShadow = true;
|
|
422
|
+
mesh.frustumCulled = false;
|
|
423
|
+
const tone = (i: number) => (typeof o.tones === "function" ? o.tones(i) : (o.tones ?? ["paper"])[i % (o.tones?.length ?? 1)]);
|
|
424
|
+
for (let i = 0; i < o.count; i++) mesh.setColorAt(i, color(ctx, tone(i)));
|
|
425
|
+
stage.scene.add(mesh);
|
|
426
|
+
const land = (i: number) => o.at + (o.count > 1 ? (o.dur * i) / (o.count - 1) : 0);
|
|
427
|
+
const fall = o.fall ?? 2.4;
|
|
428
|
+
const m4 = new THREE.Matrix4();
|
|
429
|
+
const q = new THREE.Quaternion();
|
|
430
|
+
const up = new THREE.Vector3(0, 1, 0);
|
|
431
|
+
const one = new THREE.Vector3(1, 1, 1);
|
|
432
|
+
const zero = new THREE.Vector3(0, 0, 0);
|
|
433
|
+
const v = new THREE.Vector3();
|
|
434
|
+
return Object.assign(
|
|
435
|
+
(t: number) => {
|
|
436
|
+
for (let i = 0; i < o.count; i++) {
|
|
437
|
+
const L = land(i);
|
|
438
|
+
const k = (t - (L - 0.26)) / 0.26;
|
|
439
|
+
if (k < 0) {
|
|
440
|
+
mesh.setMatrixAt(i, m4.compose(v.set(...o.pos), q.identity(), zero));
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
const u = clamp(k);
|
|
444
|
+
const y = o.pos[1] + th * (i + 0.5) + fall * (1 - u * u);
|
|
445
|
+
const yaw = (rand(seed, i) - 0.5) * (0.12 + 0.8 * (1 - u));
|
|
446
|
+
q.setFromAxisAngle(up, yaw);
|
|
447
|
+
v.set(o.pos[0] + (rand(seed, i + 300) - 0.5) * 0.08, y, o.pos[2] + (rand(seed, i + 600) - 0.5) * 0.08);
|
|
448
|
+
mesh.setMatrixAt(i, m4.compose(v, q, one));
|
|
449
|
+
}
|
|
450
|
+
mesh.instanceMatrix.needsUpdate = true;
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
shown: (t: number) => {
|
|
454
|
+
let n = 0;
|
|
455
|
+
for (let i = 0; i < o.count; i++) if (t >= land(i)) n++;
|
|
456
|
+
return n;
|
|
457
|
+
},
|
|
458
|
+
top: (t: number) => {
|
|
459
|
+
let n = 0;
|
|
460
|
+
for (let i = 0; i < o.count; i++) if (t >= land(i)) n++;
|
|
461
|
+
return new THREE.Vector3(o.pos[0], o.pos[1] + th * n, o.pos[2]);
|
|
462
|
+
},
|
|
463
|
+
},
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* 드롭 — 네 날개로 접혀 있던 종이가 탁 펼쳐지며 안쪽에 찍힌 글(숫자)이 드러나고, 가운데서 종이비행기들이 사방으로 날아간다.
|
|
469
|
+
* 섬광·흔들림은 dropBurst(검사가 센다)
|
|
470
|
+
*/
|
|
471
|
+
export function foldBurst(stage: Stage3D, o: { ctx: SceneCtx; pos: V3; size?: number; drop?: number; text?: string; tone?: string; planes?: number; seed?: string }): (t: number) => void {
|
|
472
|
+
const { ctx } = o;
|
|
473
|
+
const S = o.size ?? 7;
|
|
474
|
+
const c = S / 2;
|
|
475
|
+
const f = S / 4;
|
|
476
|
+
const page = printed(ctx, S, S, "paper");
|
|
477
|
+
page.draw((g, W, H) => {
|
|
478
|
+
if (o.text) fitText(ctx, g, o.text, W / 2, H * 0.52, W * 0.94, H * 0.42, "display", "print");
|
|
479
|
+
});
|
|
480
|
+
const back = paperMat(ctx, o.tone ?? "accent");
|
|
481
|
+
const front = paperMat(ctx, page.tex);
|
|
482
|
+
const part = (w: number, h: number, uv: [number, number, number, number]) => {
|
|
483
|
+
const s = sheet(w, h, front, back, uv);
|
|
484
|
+
s.rotation.x = -Math.PI / 2;
|
|
485
|
+
return s;
|
|
486
|
+
};
|
|
487
|
+
const group = new THREE.Group();
|
|
488
|
+
group.position.set(...o.pos);
|
|
489
|
+
const center = part(c, c, [0.25, 0.75, 0.25, 0.75]);
|
|
490
|
+
center.position.y = 0.006;
|
|
491
|
+
group.add(center);
|
|
492
|
+
// 날개 넷 — 먼 쪽(-Z, 캔버스 위)·가까운 쪽(+Z)·오른쪽(+X)·왼쪽(-X). 접힌 각은 가운데 위로 넘어간 자리
|
|
493
|
+
const flaps = [
|
|
494
|
+
{ at: [0, 0, -c / 2] as V3, off: [0, 0, -f / 2] as V3, size: [c, f], uv: [0.25, 0.75, 0.75, 1] as [number, number, number, number], axis: "x", fold: Math.PI, lift: 0.012 },
|
|
495
|
+
{ at: [0, 0, c / 2] as V3, off: [0, 0, f / 2] as V3, size: [c, f], uv: [0.25, 0.75, 0, 0.25] as [number, number, number, number], axis: "x", fold: -Math.PI, lift: 0.016 },
|
|
496
|
+
{ at: [c / 2, 0, 0] as V3, off: [f / 2, 0, 0] as V3, size: [f, c], uv: [0.75, 1, 0.25, 0.75] as [number, number, number, number], axis: "z", fold: Math.PI, lift: 0.02 },
|
|
497
|
+
{ at: [-c / 2, 0, 0] as V3, off: [-f / 2, 0, 0] as V3, size: [f, c], uv: [0, 0.25, 0.25, 0.75] as [number, number, number, number], axis: "z", fold: -Math.PI, lift: 0.024 },
|
|
498
|
+
].map((fl, i) => {
|
|
499
|
+
const pivot = new THREE.Group();
|
|
500
|
+
pivot.position.set(...fl.at);
|
|
501
|
+
const s = part(fl.size[0], fl.size[1], fl.uv);
|
|
502
|
+
// 매트 바로 위 — 같은 높이면 펼친 날개가 매트와 깊이를 다툰다
|
|
503
|
+
s.position.set(fl.off[0], 0.006, fl.off[2]);
|
|
504
|
+
pivot.add(s);
|
|
505
|
+
group.add(pivot);
|
|
506
|
+
return { ...fl, pivot, i };
|
|
507
|
+
});
|
|
508
|
+
stage.scene.add(group);
|
|
509
|
+
const drop = o.drop ?? 0;
|
|
510
|
+
const tones = ["paper", "indigo", "mustard", "sakura", "kraft", "accent"];
|
|
511
|
+
const n = o.planes ?? 12;
|
|
512
|
+
const planes = Array.from({ length: n }, (_, i) => {
|
|
513
|
+
const a = (i / n) * Math.PI * 2 + rand(o.seed ?? "burst", i) * 0.4;
|
|
514
|
+
const to: V3 = [o.pos[0] + Math.cos(a) * 16, 0, o.pos[2] + Math.sin(a) * 12];
|
|
515
|
+
return paperPlane(stage, { ctx, from: [o.pos[0], 0.4, o.pos[2]], to, at: ctx.beats.drop(drop) + 0.04 + (i % 4) * 0.05, dur: 0.95, arc: 3 + (i % 3), tone: tones[i % tones.length], size: 0.8 });
|
|
516
|
+
});
|
|
517
|
+
const flash = document.createElement("div");
|
|
518
|
+
flash.style.cssText = `position:absolute;inset:0;background:${hex(ctx, "paper")};opacity:0;pointer-events:none;`;
|
|
519
|
+
stage.el.append(flash);
|
|
520
|
+
return (t) => {
|
|
521
|
+
const s = dropBurst(t, { beats: ctx.beats, drop, rules: ctx.style.motion, scene: ctx.id, source: "foldBurst" });
|
|
522
|
+
flash.style.opacity = String(Math.round(s.flash * 60) / 100);
|
|
523
|
+
const k = t - ctx.beats.drop(drop);
|
|
524
|
+
for (const fl of flaps) {
|
|
525
|
+
const open = settle(k, fl.i * 0.05, 0.28);
|
|
526
|
+
const a = fl.fold * (1 - open);
|
|
527
|
+
if (fl.axis === "x") fl.pivot.rotation.set(a, 0, 0);
|
|
528
|
+
else fl.pivot.rotation.set(0, 0, a);
|
|
529
|
+
fl.pivot.position.y = fl.lift * (1 - open);
|
|
530
|
+
}
|
|
531
|
+
for (const p of planes) p(t);
|
|
532
|
+
stage.camera.position.x += (s.shake.x ?? 0) * 0.02;
|
|
533
|
+
stage.camera.position.y += (s.shake.y ?? 0) * 0.02;
|
|
534
|
+
};
|
|
535
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1140 650" width="1140" height="650" fill="none" role="img" aria-label="OpenGateway">
|
|
2
|
+
<title>OpenGateway</title>
|
|
3
|
+
<g id="logo" stroke="currentColor" fill="currentColor">
|
|
4
|
+
<rect id="node-in" x="36" y="36" width="420" height="578" rx="89" fill="none" stroke-width="72"/>
|
|
5
|
+
<rect id="bar-in" x="72" y="272" width="277" height="106" stroke="none"/>
|
|
6
|
+
<path id="node-out" d="M684 213 L684 125 A89 89 0 0 1 773 36 L1015 36 A89 89 0 0 1 1104 125 L1104 525 A89 89 0 0 1 1015 614 L773 614 A89 89 0 0 1 684 525 L684 436" fill="none" stroke-width="72" stroke-linecap="butt"/>
|
|
7
|
+
<g id="arrow">
|
|
8
|
+
<rect id="arrow-shaft" x="420" y="272" width="394" height="106" stroke="none"/>
|
|
9
|
+
<path id="arrow-head" d="M833 220 L970 325 L833 430 Z" stroke-width="38" stroke-linejoin="round"/>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|