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,570 @@
|
|
|
1
|
+
import { clamp, ease, scaleOf, spring, type SceneCtx } from "@kasaframe/core";
|
|
2
|
+
import { dropBurst, type DropBurstState } from "@kasaframe/motion";
|
|
3
|
+
|
|
4
|
+
// 도면은 제도대에 붙은 종이다 — 바탕은 서 있고, 움직임은 제도하는 순서(펜이 긋고 · 치수가 재고 · 단면이 차고)에서 나온다.
|
|
5
|
+
// 그림은 전부 SVG. 선 종류(실선·파선·일점쇄선·이점쇄선)가 곧 뜻이라 dash 는 선마다 고정하고, 긋는 진행은 꼭짓점을 잘라 그린다
|
|
6
|
+
|
|
7
|
+
type Pt = readonly [number, number];
|
|
8
|
+
|
|
9
|
+
const NS = "http://www.w3.org/2000/svg";
|
|
10
|
+
|
|
11
|
+
const paint = (ctx: SceneCtx, key: string): string => ctx.style.colors[key] ?? key;
|
|
12
|
+
|
|
13
|
+
function svgLayer(el: HTMLElement, ctx: SceneCtx): SVGSVGElement {
|
|
14
|
+
const { width: W, height: H } = ctx.meta;
|
|
15
|
+
const s = document.createElementNS(NS, "svg");
|
|
16
|
+
s.setAttribute("viewBox", `0 0 ${W} ${H}`);
|
|
17
|
+
s.setAttribute("width", String(W));
|
|
18
|
+
s.setAttribute("height", String(H));
|
|
19
|
+
s.style.cssText = "position:absolute;left:0;top:0;overflow:visible;pointer-events:none";
|
|
20
|
+
el.append(s);
|
|
21
|
+
return s;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function shape<K extends keyof SVGElementTagNameMap>(parent: Element, tag: K, attrs: Record<string, string | number>): SVGElementTagNameMap[K] {
|
|
25
|
+
const n = document.createElementNS(NS, tag);
|
|
26
|
+
for (const [k, v] of Object.entries(attrs)) n.setAttribute(k, String(v));
|
|
27
|
+
parent.append(n);
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function html(parent: HTMLElement, css: string, text = ""): HTMLDivElement {
|
|
32
|
+
const d = document.createElement("div");
|
|
33
|
+
d.style.cssText = `position:absolute;pointer-events:none;${css}`;
|
|
34
|
+
d.textContent = text;
|
|
35
|
+
parent.append(d);
|
|
36
|
+
return d;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const show = (n: Element, on: boolean) => ((n as SVGElement | HTMLElement).style.visibility = on ? "visible" : "hidden");
|
|
40
|
+
|
|
41
|
+
// 제도하는 손 — 펜 끝이 처음부터 끝까지 보이게 고른 몫을 섞는다
|
|
42
|
+
const hand = (k: number): number => 0.35 * k + 0.65 * ease.inOutCubic(k);
|
|
43
|
+
|
|
44
|
+
/** 0 에서 넘쳤다 앉는 배율 — 풍선·삼각 표가 붙는 순간 */
|
|
45
|
+
const pop = (t: number, at: number): number => (t < at ? 0 : spring(t - at, { from: 0, to: 1, stiffness: 520, damping: 18 }));
|
|
46
|
+
|
|
47
|
+
// 선 종류 — 굵기와 dash(px, 1080 기준). ASME Y14.2·NASA GSFC 제도 표준의 문법 그대로
|
|
48
|
+
const LINES = {
|
|
49
|
+
visible: { w: 5, dash: null as number[] | null },
|
|
50
|
+
hidden: { w: 3, dash: [14, 9] },
|
|
51
|
+
center: { w: 2.5, dash: [40, 8, 6, 8] },
|
|
52
|
+
phantom: { w: 2.5, dash: [40, 8, 6, 8, 6, 8] },
|
|
53
|
+
cut: { w: 6, dash: [44, 10, 10, 10] },
|
|
54
|
+
thin: { w: 2, dash: null as number[] | null },
|
|
55
|
+
};
|
|
56
|
+
export type LineKind = keyof typeof LINES;
|
|
57
|
+
|
|
58
|
+
export type Shape = { line: [number, number, number, number] } | { poly: readonly Pt[]; closed?: boolean } | { rect: [number, number, number, number] } | { circle: [number, number, number] };
|
|
59
|
+
|
|
60
|
+
function polyOf(s: Shape): [number, number][] {
|
|
61
|
+
if ("line" in s) return [[s.line[0], s.line[1]], [s.line[2], s.line[3]]];
|
|
62
|
+
if ("rect" in s) {
|
|
63
|
+
const [x, y, w, h] = s.rect;
|
|
64
|
+
return [[x, y], [x + w, y], [x + w, y + h], [x, y + h], [x, y]];
|
|
65
|
+
}
|
|
66
|
+
if ("circle" in s) {
|
|
67
|
+
const [cx, cy, r] = s.circle;
|
|
68
|
+
return Array.from({ length: 65 }, (_, i) => {
|
|
69
|
+
const a = -Math.PI / 2 + (i / 64) * Math.PI * 2;
|
|
70
|
+
return [cx + Math.cos(a) * r, cy + Math.sin(a) * r];
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const pts = s.poly.map((p) => [p[0], p[1]] as [number, number]);
|
|
74
|
+
return s.closed ? [...pts, pts[0]] : pts;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface Run {
|
|
78
|
+
pts: [number, number][];
|
|
79
|
+
at: number[];
|
|
80
|
+
total: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function runOf(pts: [number, number][]): Run {
|
|
84
|
+
const at = [0];
|
|
85
|
+
for (let i = 1; i < pts.length; i++) at.push(at[i - 1] + Math.hypot(pts[i][0] - pts[i - 1][0], pts[i][1] - pts[i - 1][1]));
|
|
86
|
+
return { pts, at, total: at[at.length - 1] };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** 길이 len 까지 그은 꺾은선 d 와 그 끝점 */
|
|
90
|
+
function partial(r: Run, len: number): { d: string; tip: [number, number] } {
|
|
91
|
+
const L = clamp(len, 0, r.total);
|
|
92
|
+
let d = `M${r.pts[0][0].toFixed(1)} ${r.pts[0][1].toFixed(1)}`;
|
|
93
|
+
let tip: [number, number] = r.pts[0];
|
|
94
|
+
for (let i = 1; i < r.pts.length; i++) {
|
|
95
|
+
if (r.at[i] <= L) {
|
|
96
|
+
d += ` L${r.pts[i][0].toFixed(1)} ${r.pts[i][1].toFixed(1)}`;
|
|
97
|
+
tip = r.pts[i];
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
const k = (L - r.at[i - 1]) / (r.at[i] - r.at[i - 1] || 1);
|
|
101
|
+
tip = [r.pts[i - 1][0] + (r.pts[i][0] - r.pts[i - 1][0]) * k, r.pts[i - 1][1] + (r.pts[i][1] - r.pts[i - 1][1]) * k];
|
|
102
|
+
d += ` L${tip[0].toFixed(1)} ${tip[1].toFixed(1)}`;
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
return { d, tip };
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** 화살촉 — tip 에 끝이 닿고 dir(도) 쪽을 가리키는 가는 삼각 */
|
|
109
|
+
function arrowHead(parent: Element, color: string, u: number): SVGPathElement {
|
|
110
|
+
return shape(parent, "path", { d: `M0 0 L${-22 * u} ${-6 * u} L${-22 * u} ${6 * u} Z`, fill: color });
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const place = (n: Element, x: number, y: number, deg: number, k = 1) => n.setAttribute("transform", `translate(${x.toFixed(2)} ${y.toFixed(2)}) rotate(${deg.toFixed(2)}) scale(${Math.max(0, k).toFixed(4)})`);
|
|
114
|
+
|
|
115
|
+
// ── 효과 ─────────────────────────────────────────────────────────────
|
|
116
|
+
|
|
117
|
+
/** 도면 종이 — 청사진 바탕·옅은 제도 모눈(가는 칸·굵은 칸)·도면 테두리. 꼼짝 않는다 */
|
|
118
|
+
export function draftSheet(el: HTMLElement, o: { ctx: SceneCtx; grid?: number | false; border?: boolean }): (t: number) => void {
|
|
119
|
+
const { ctx } = o;
|
|
120
|
+
const { width: W, height: H } = ctx.meta;
|
|
121
|
+
const u = scaleOf(ctx.meta);
|
|
122
|
+
const s = svgLayer(el, ctx);
|
|
123
|
+
shape(s, "rect", { x: -40, y: -40, width: W + 80, height: H + 80, fill: paint(ctx, "bg") });
|
|
124
|
+
if (o.grid !== false) {
|
|
125
|
+
const step = (o.grid ?? 30) * u;
|
|
126
|
+
let minor = "";
|
|
127
|
+
let major = "";
|
|
128
|
+
for (let i = 1, x = step; x < W; i++, x += step) (i % 5 ? (minor += `M${x} 0V${H}`) : (major += `M${x} 0V${H}`));
|
|
129
|
+
for (let i = 1, y = step; y < H; i++, y += step) (i % 5 ? (minor += `M0 ${y}H${W}`) : (major += `M0 ${y}H${W}`));
|
|
130
|
+
shape(s, "path", { d: minor, stroke: paint(ctx, "grid"), "stroke-width": 1 * u, fill: "none" });
|
|
131
|
+
shape(s, "path", { d: major, stroke: paint(ctx, "gridMajor"), "stroke-width": 1.5 * u, fill: "none" });
|
|
132
|
+
}
|
|
133
|
+
if (o.border !== false) {
|
|
134
|
+
const m = 26 * u;
|
|
135
|
+
shape(s, "rect", { x: m, y: m, width: W - 2 * m, height: H - 2 * m, fill: "none", stroke: paint(ctx, "inkSoft"), "stroke-width": 3 * u });
|
|
136
|
+
shape(s, "rect", { x: m + 8 * u, y: m + 8 * u, width: W - 2 * m - 16 * u, height: H - 2 * m - 16 * u, fill: "none", stroke: paint(ctx, "dim"), "stroke-width": 1.2 * u });
|
|
137
|
+
}
|
|
138
|
+
return () => {};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// 절단선 양 끝 — 보는 쪽으로 꺾인 굵은 짧은 선, 화살촉, 단면 글자
|
|
142
|
+
function cutMarks(el: HTMLElement, s: SVGSVGElement, ctx: SceneCtx, pts: [number, number][], letter: string, side: 1 | -1, color: string): Element[] {
|
|
143
|
+
const u = scaleOf(ctx.meta);
|
|
144
|
+
const a = pts[0];
|
|
145
|
+
const b = pts[pts.length - 1];
|
|
146
|
+
const len = Math.hypot(b[0] - a[0], b[1] - a[1]) || 1;
|
|
147
|
+
const nx = (-(b[1] - a[1]) / len) * side;
|
|
148
|
+
const ny = ((b[0] - a[0]) / len) * side;
|
|
149
|
+
const deg = (Math.atan2(ny, nx) * 180) / Math.PI;
|
|
150
|
+
return [a, b].flatMap((p) => {
|
|
151
|
+
const stem = shape(s, "line", { x1: p[0], y1: p[1], x2: p[0] + nx * 40 * u, y2: p[1] + ny * 40 * u, stroke: color, "stroke-width": 6 * u });
|
|
152
|
+
const head = arrowHead(s, color, u * 1.4);
|
|
153
|
+
place(head, p[0] + nx * 56 * u, p[1] + ny * 56 * u, deg);
|
|
154
|
+
const tag = html(el, `left:${p[0] + nx * 100 * u}px;top:${p[1] + ny * 100 * u}px;transform:translate(-50%,-50%);font:700 ${48 * u}px/1 ${ctx.style.fonts.display};color:${color}`, letter);
|
|
155
|
+
return [stem, head, tag];
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* T자 — 제도판 왼쪽 머리에 물린 긴 자. 지금 긋는 줄 높이(stops 의 [초, y])로 미끄러져 가고, 그 사이에도 다음 줄을 향해 늘 움직인다.
|
|
161
|
+
* 자에는 모눈 간격 눈금. 투명한 판이라 아래 그림이 비친다
|
|
162
|
+
*/
|
|
163
|
+
export function tSquare(el: HTMLElement, o: { ctx: SceneCtx; stops: readonly (readonly [number, number])[]; color?: string }): (t: number) => void {
|
|
164
|
+
const { ctx } = o;
|
|
165
|
+
const { width: W } = ctx.meta;
|
|
166
|
+
const u = scaleOf(ctx.meta);
|
|
167
|
+
const color = paint(ctx, o.color ?? "ink");
|
|
168
|
+
const g = shape(svgLayer(el, ctx), "g", {});
|
|
169
|
+
const band = 46 * u;
|
|
170
|
+
const left = 34 * u;
|
|
171
|
+
shape(g, "rect", { x: left, y: 0, width: W - 2 * left, height: band, fill: color, "fill-opacity": 0.1 });
|
|
172
|
+
shape(g, "line", { x1: left, y1: 0, x2: W - left, y2: 0, stroke: color, "stroke-width": 2.5 * u, "stroke-opacity": 0.75 });
|
|
173
|
+
let ticks = "";
|
|
174
|
+
for (let i = 0, x = left + 30 * u; x < W - left; i++, x += 30 * u) ticks += `M${x.toFixed(1)} 0V${((i + 1) % 5 ? 9 : 18) * u}`;
|
|
175
|
+
shape(g, "path", { d: ticks, stroke: color, "stroke-width": 1.6 * u, "stroke-opacity": 0.75 });
|
|
176
|
+
// 머리 — 판 왼쪽 가장자리에 물려 위아래로만 움직인다
|
|
177
|
+
shape(g, "rect", { x: left - 14 * u, y: -50 * u, width: 30 * u, height: 50 * u + band + 50 * u, fill: color, "fill-opacity": 0.22, stroke: color, "stroke-opacity": 0.6, "stroke-width": 2 * u });
|
|
178
|
+
const st = [...o.stops].sort((a, b) => a[0] - b[0]);
|
|
179
|
+
// 시간을 매개로 한 3차 에르미트 — 이음매마다 앞뒤 기울기를 이어 서는 곳이 없게(마지막 둘이 같은 높이일 때만 선다)
|
|
180
|
+
const slope = (i: number): number => {
|
|
181
|
+
const a = st[Math.max(0, i - 1)];
|
|
182
|
+
const b = st[Math.min(st.length - 1, i + 1)];
|
|
183
|
+
return (b[1] - a[1]) / (b[0] - a[0] || 1);
|
|
184
|
+
};
|
|
185
|
+
const yAt = (t: number): number => {
|
|
186
|
+
if (t <= st[0][0]) return st[0][1] + slope(0) * (t - st[0][0]);
|
|
187
|
+
if (t >= st[st.length - 1][0]) return st[st.length - 1][1];
|
|
188
|
+
let i = 0;
|
|
189
|
+
while (t > st[i + 1][0]) i++;
|
|
190
|
+
const [t0, y0] = st[i];
|
|
191
|
+
const [t1, y1] = st[i + 1];
|
|
192
|
+
const h = t1 - t0;
|
|
193
|
+
const k = (t - t0) / h;
|
|
194
|
+
const [h00, h10, h01, h11] = [2 * k ** 3 - 3 * k ** 2 + 1, k ** 3 - 2 * k ** 2 + k, -2 * k ** 3 + 3 * k ** 2, k ** 3 - k ** 2];
|
|
195
|
+
return h00 * y0 + h10 * h * slope(i) + h01 * y1 + h11 * h * slope(i + 1);
|
|
196
|
+
};
|
|
197
|
+
return (t) => g.setAttribute("transform", `translate(0 ${yAt(t).toFixed(2)})`);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface PenOpts {
|
|
201
|
+
ctx: SceneCtx;
|
|
202
|
+
/** 그릴 꼴 — 차례대로 이어 긋는다 */
|
|
203
|
+
shapes: readonly Shape[];
|
|
204
|
+
/** 선 종류 — visible 외형 · hidden 숨은 · center 중심 · phantom 가상(다른 자리) · cut 절단 · thin 가는 */
|
|
205
|
+
kind?: LineKind;
|
|
206
|
+
at?: number;
|
|
207
|
+
dur?: number;
|
|
208
|
+
color?: string;
|
|
209
|
+
width?: number;
|
|
210
|
+
/** 긋는 동안 펜 끝 점 */
|
|
211
|
+
nib?: boolean;
|
|
212
|
+
/** kind cut 의 단면 글자(A) — 다 그으면 양 끝에 보는 쪽 화살표와 글자가 선다 */
|
|
213
|
+
letter?: string;
|
|
214
|
+
/** 보는 쪽 — 선의 왼쪽(1)·오른쪽(-1) */
|
|
215
|
+
side?: 1 | -1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* 제도선 — 펜 끝이 꼴을 차례로 긋는다. 선 종류마다 굵기·dash 가 정해져 있다(폴백·다른 자리는 phantom).
|
|
220
|
+
* kind cut 에 letter 를 주면 절단선 — 다 그은 뒤 양 끝에 보는 쪽 화살표와 글자(A … A)
|
|
221
|
+
*/
|
|
222
|
+
export function penLine(el: HTMLElement, o: PenOpts): (t: number) => void {
|
|
223
|
+
const { ctx } = o;
|
|
224
|
+
const u = scaleOf(ctx.meta);
|
|
225
|
+
const kind = LINES[o.kind ?? "visible"];
|
|
226
|
+
const color = paint(ctx, o.color ?? "ink");
|
|
227
|
+
const s = svgLayer(el, ctx);
|
|
228
|
+
const runs = o.shapes.map((sh) => runOf(polyOf(sh)));
|
|
229
|
+
const start: number[] = [];
|
|
230
|
+
let total = 0;
|
|
231
|
+
for (const r of runs) {
|
|
232
|
+
start.push(total);
|
|
233
|
+
total += r.total;
|
|
234
|
+
}
|
|
235
|
+
const paths = runs.map(() =>
|
|
236
|
+
shape(s, "path", {
|
|
237
|
+
fill: "none",
|
|
238
|
+
stroke: color,
|
|
239
|
+
"stroke-width": o.width ?? kind.w * u,
|
|
240
|
+
"stroke-linecap": kind.dash ? "butt" : "round",
|
|
241
|
+
"stroke-linejoin": "round",
|
|
242
|
+
...(kind.dash ? { "stroke-dasharray": kind.dash.map((v) => v * u).join(" ") } : {}),
|
|
243
|
+
}),
|
|
244
|
+
);
|
|
245
|
+
const nib = o.nib !== false ? shape(s, "circle", { r: 6 * u, fill: color }) : null;
|
|
246
|
+
const at = o.at ?? 0;
|
|
247
|
+
const dur = o.dur ?? 0.4;
|
|
248
|
+
const cutEnds = o.kind === "cut" && o.letter ? cutMarks(el, s, ctx, runs[0].pts, o.letter, o.side ?? 1, color) : [];
|
|
249
|
+
return (t) => {
|
|
250
|
+
for (const n of cutEnds) show(n, t >= at + dur);
|
|
251
|
+
const k = clamp((t - at) / dur);
|
|
252
|
+
const L = t < at ? 0 : hand(k) * total;
|
|
253
|
+
let tip: [number, number] | null = null;
|
|
254
|
+
runs.forEach((r, i) => {
|
|
255
|
+
const local = L - start[i];
|
|
256
|
+
show(paths[i], local > 0);
|
|
257
|
+
if (local <= 0) return;
|
|
258
|
+
const pr = partial(r, local);
|
|
259
|
+
paths[i].setAttribute("d", pr.d);
|
|
260
|
+
if (local < r.total) tip = pr.tip;
|
|
261
|
+
});
|
|
262
|
+
if (nib) {
|
|
263
|
+
show(nib, tip !== null && k > 0 && k < 1);
|
|
264
|
+
if (tip) {
|
|
265
|
+
nib.setAttribute("cx", (tip as [number, number])[0].toFixed(1));
|
|
266
|
+
nib.setAttribute("cy", (tip as [number, number])[1].toFixed(1));
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface DimOpts {
|
|
273
|
+
ctx: SceneCtx;
|
|
274
|
+
/** 잴 두 점(외형 위) */
|
|
275
|
+
from: Pt;
|
|
276
|
+
to: Pt;
|
|
277
|
+
/** 치수선이 외형에서 떨어진 거리 — 음수면 반대쪽 */
|
|
278
|
+
offset?: number;
|
|
279
|
+
at: number;
|
|
280
|
+
dur?: number;
|
|
281
|
+
/** 수를 주면 0 에서 그 수까지 재며 센다 */
|
|
282
|
+
value?: number;
|
|
283
|
+
decimals?: number;
|
|
284
|
+
prefix?: string;
|
|
285
|
+
unit?: string;
|
|
286
|
+
/** 수 대신 낱말 */
|
|
287
|
+
text?: string;
|
|
288
|
+
/** 치수 글자 크기 */
|
|
289
|
+
size?: number;
|
|
290
|
+
color?: string;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* 치수 — 보조선이 외형에서 조금 떨어져 서고, 치수선이 가운데서 양 끝으로 뻗어 화살촉이 닿고, 그동안 수가 0 에서 값까지 잰다.
|
|
295
|
+
* 숫자는 늘 치수로 앉는다(치수선 바깥쪽 가운데, 선을 따라 바로 선 글)
|
|
296
|
+
*/
|
|
297
|
+
export function dimension(el: HTMLElement, o: DimOpts): (t: number) => void {
|
|
298
|
+
const { ctx } = o;
|
|
299
|
+
const u = scaleOf(ctx.meta);
|
|
300
|
+
const color = paint(ctx, o.color ?? "ink");
|
|
301
|
+
const dx = o.to[0] - o.from[0];
|
|
302
|
+
const dy = o.to[1] - o.from[1];
|
|
303
|
+
const len = Math.hypot(dx, dy) || 1;
|
|
304
|
+
const off = o.offset ?? 60 * u;
|
|
305
|
+
const sg = off < 0 ? -1 : 1;
|
|
306
|
+
const nx = (-dy / len) * sg;
|
|
307
|
+
const ny = (dx / len) * sg;
|
|
308
|
+
const A: Pt = [o.from[0] + nx * Math.abs(off), o.from[1] + ny * Math.abs(off)];
|
|
309
|
+
const B: Pt = [o.to[0] + nx * Math.abs(off), o.to[1] + ny * Math.abs(off)];
|
|
310
|
+
const deg = (Math.atan2(dy, dx) * 180) / Math.PI;
|
|
311
|
+
const s = svgLayer(el, ctx);
|
|
312
|
+
const gap = 8 * u;
|
|
313
|
+
const over = 16 * u;
|
|
314
|
+
const ext = [o.from, o.to].map((p) => shape(s, "line", { x1: p[0] + nx * gap, y1: p[1] + ny * gap, stroke: color, "stroke-width": 2 * u }));
|
|
315
|
+
const line = shape(s, "line", { stroke: color, "stroke-width": 2.2 * u });
|
|
316
|
+
const heads = [arrowHead(s, color, u), arrowHead(s, color, u)];
|
|
317
|
+
const size = o.size ?? 44 * u;
|
|
318
|
+
// 글은 선을 따라 바로 서게 — 거꾸로 서지 않도록 각도를 접는다
|
|
319
|
+
const up = deg > 90 || deg <= -90 ? deg + 180 : deg;
|
|
320
|
+
const mx = (A[0] + B[0]) / 2 + nx * size * 0.72;
|
|
321
|
+
const my = (A[1] + B[1]) / 2 + ny * size * 0.72;
|
|
322
|
+
const label = html(el, `left:${mx}px;top:${my}px;transform:translate(-50%,-50%) rotate(${up}deg);font:700 ${size}px/1 ${ctx.style.fonts.mono};color:${color};white-space:pre;visibility:hidden`);
|
|
323
|
+
const at = o.at;
|
|
324
|
+
const dur = o.dur ?? 0.45;
|
|
325
|
+
const extDur = Math.min(0.14, dur * 0.3);
|
|
326
|
+
const dec = o.decimals ?? 0;
|
|
327
|
+
return (t) => {
|
|
328
|
+
const e = clamp((t - at) / extDur);
|
|
329
|
+
ext.forEach((l, i) => {
|
|
330
|
+
const p = i ? o.to : o.from;
|
|
331
|
+
show(l, t >= at);
|
|
332
|
+
const reach = gap + (Math.abs(off) + over - gap) * ease.outCubic(e);
|
|
333
|
+
l.setAttribute("x2", (p[0] + nx * reach).toFixed(1));
|
|
334
|
+
l.setAttribute("y2", (p[1] + ny * reach).toFixed(1));
|
|
335
|
+
});
|
|
336
|
+
const k = hand(clamp((t - at - extDur) / (dur - extDur)));
|
|
337
|
+
const on = t >= at + extDur;
|
|
338
|
+
show(line, on);
|
|
339
|
+
const cx = (A[0] + B[0]) / 2;
|
|
340
|
+
const cy = (A[1] + B[1]) / 2;
|
|
341
|
+
line.setAttribute("x1", (cx + (A[0] - cx) * k).toFixed(1));
|
|
342
|
+
line.setAttribute("y1", (cy + (A[1] - cy) * k).toFixed(1));
|
|
343
|
+
line.setAttribute("x2", (cx + (B[0] - cx) * k).toFixed(1));
|
|
344
|
+
line.setAttribute("y2", (cy + (B[1] - cy) * k).toFixed(1));
|
|
345
|
+
heads.forEach((h, i) => {
|
|
346
|
+
show(h, on && k >= 1);
|
|
347
|
+
place(h, i ? B[0] : A[0], i ? B[1] : A[1], i ? deg : deg + 180);
|
|
348
|
+
});
|
|
349
|
+
show(label, on);
|
|
350
|
+
label.textContent = o.text ?? `${o.prefix ?? ""}${(k >= 1 ? (o.value ?? 0) : (o.value ?? 0) * k).toFixed(dec)}${o.unit ?? ""}`;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** 단면 해칭 — 45° 가는 선이 한쪽부터 한 줄씩 차오른다. 잘린 면·채운 양(구간·비율)에 */
|
|
355
|
+
export function hatch(el: HTMLElement, o: { ctx: SceneCtx; rect: [number, number, number, number]; at: number; dur?: number; pitch?: number; color?: string; from?: "left" | "right"; outline?: boolean }): (t: number) => void {
|
|
356
|
+
const { ctx } = o;
|
|
357
|
+
const u = scaleOf(ctx.meta);
|
|
358
|
+
const [x, y, w, h] = o.rect;
|
|
359
|
+
const s = svgLayer(el, ctx);
|
|
360
|
+
const color = paint(ctx, o.color ?? "ink");
|
|
361
|
+
const pitch = (o.pitch ?? 16) * u;
|
|
362
|
+
// 오른쪽 위로 가는 45° 선 x + y = c — 상자를 덮는 c 범위를 pitch 로 나눈다
|
|
363
|
+
const lines: { n: SVGLineElement; k: number }[] = [];
|
|
364
|
+
const c0 = x + y;
|
|
365
|
+
const c1 = x + w + y + h;
|
|
366
|
+
for (let c = c0 + pitch / 2; c < c1; c += pitch) {
|
|
367
|
+
const xa = Math.max(x, c - (y + h));
|
|
368
|
+
const xb = Math.min(x + w, c - y);
|
|
369
|
+
if (xb <= xa) continue;
|
|
370
|
+
const n = shape(s, "line", { x1: xa, y1: c - xa, x2: xb, y2: c - xb, stroke: color, "stroke-width": 1.8 * u });
|
|
371
|
+
const k = (c - c0) / (c1 - c0);
|
|
372
|
+
lines.push({ n, k: o.from === "right" ? 1 - k : k });
|
|
373
|
+
}
|
|
374
|
+
const box = o.outline !== false ? shape(s, "rect", { x, y, width: w, height: h, fill: "none", stroke: color, "stroke-width": 4 * u }) : null;
|
|
375
|
+
const dur = o.dur ?? 0.4;
|
|
376
|
+
return (t) => {
|
|
377
|
+
const p = t < o.at ? 0 : hand(clamp((t - o.at) / dur));
|
|
378
|
+
for (const l of lines) show(l.n, p > 0 && l.k <= p);
|
|
379
|
+
if (box) show(box, t >= o.at);
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export interface BalloonOpts {
|
|
384
|
+
ctx: SceneCtx;
|
|
385
|
+
/** 풍선 가운데 */
|
|
386
|
+
x: number;
|
|
387
|
+
y: number;
|
|
388
|
+
/** 지시선 끝(부품 위) */
|
|
389
|
+
to: Pt;
|
|
390
|
+
text: string;
|
|
391
|
+
at: number;
|
|
392
|
+
/** 풍선 반지름 */
|
|
393
|
+
size?: number;
|
|
394
|
+
/** circle 품번 풍선 · datum 기준면 표(네모 글자 + 검은 삼각) */
|
|
395
|
+
kind?: "circle" | "datum";
|
|
396
|
+
color?: string;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/** 품번 풍선 — 부품 위 점에서 지시선이 뻗고 끝에 번호 풍선이 톡 붙는다. datum 은 기준면 표(모든 치수를 재는 기준) */
|
|
400
|
+
export function balloon(el: HTMLElement, o: BalloonOpts): (t: number) => void {
|
|
401
|
+
const { ctx } = o;
|
|
402
|
+
const u = scaleOf(ctx.meta);
|
|
403
|
+
const color = paint(ctx, o.color ?? "ink");
|
|
404
|
+
const r = o.size ?? 30 * u;
|
|
405
|
+
const s = svgLayer(el, ctx);
|
|
406
|
+
const dx = o.x - o.to[0];
|
|
407
|
+
const dy = o.y - o.to[1];
|
|
408
|
+
const len = Math.hypot(dx, dy) || 1;
|
|
409
|
+
const edge: Pt = [o.x - (dx / len) * r, o.y - (dy / len) * r];
|
|
410
|
+
const leader = shape(s, "line", { x1: o.to[0], y1: o.to[1], stroke: color, "stroke-width": 2 * u });
|
|
411
|
+
// 기준면 삼각은 밑변이 면에 붙고 꼭짓점이 표 쪽을 본다
|
|
412
|
+
const [ux, uy] = [dx / len, dy / len];
|
|
413
|
+
const foot =
|
|
414
|
+
o.kind === "datum"
|
|
415
|
+
? shape(s, "path", { d: `M${o.to[0] - uy * 16 * u} ${o.to[1] + ux * 16 * u} L${o.to[0] + uy * 16 * u} ${o.to[1] - ux * 16 * u} L${o.to[0] + ux * 26 * u} ${o.to[1] + uy * 26 * u} Z`, fill: color })
|
|
416
|
+
: shape(s, "circle", { cx: o.to[0], cy: o.to[1], r: 6 * u, fill: color });
|
|
417
|
+
const g = shape(s, "g", {});
|
|
418
|
+
if (o.kind === "datum") shape(g, "rect", { x: -r, y: -r, width: 2 * r, height: 2 * r, fill: paint(ctx, "bg"), stroke: color, "stroke-width": 3.5 * u });
|
|
419
|
+
else shape(g, "circle", { r, fill: paint(ctx, "bg"), stroke: color, "stroke-width": 3.5 * u });
|
|
420
|
+
const tag = html(el, `left:${o.x}px;top:${o.y}px;transform:translate(-50%,-46%);font:700 ${r * 1.15}px/1 ${ctx.style.fonts.mono};color:${color};white-space:pre;visibility:hidden`, o.text);
|
|
421
|
+
return (t) => {
|
|
422
|
+
const k = clamp((t - o.at) / 0.16);
|
|
423
|
+
show(leader, t >= o.at);
|
|
424
|
+
show(foot, t >= o.at);
|
|
425
|
+
leader.setAttribute("x2", (o.to[0] + (edge[0] - o.to[0]) * ease.outCubic(k)).toFixed(1));
|
|
426
|
+
leader.setAttribute("y2", (o.to[1] + (edge[1] - o.to[1]) * ease.outCubic(k)).toFixed(1));
|
|
427
|
+
const p = pop(t, o.at + 0.14);
|
|
428
|
+
show(g, p > 0);
|
|
429
|
+
place(g, o.x, o.y, 0, p);
|
|
430
|
+
show(tag, t >= o.at + 0.16);
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/** 개정 구름 — 바뀐 곳을 빨간 색연필 구름이 한 바퀴 두르고, 모서리에 개정 삼각 Δ 가 붙는다 */
|
|
435
|
+
export function revisionCloud(el: HTMLElement, o: { ctx: SceneCtx; rect: [number, number, number, number]; at: number; dur?: number; rev?: string; color?: string; bump?: number }): (t: number) => void {
|
|
436
|
+
const { ctx } = o;
|
|
437
|
+
const u = scaleOf(ctx.meta);
|
|
438
|
+
const color = paint(ctx, o.color ?? "accent");
|
|
439
|
+
const [x, y, w, h] = o.rect;
|
|
440
|
+
const bump = (o.bump ?? 26) * u;
|
|
441
|
+
// 둘레를 bump 간격으로 나눠 바깥으로 부푼 반원을 잇는다(시계 방향)
|
|
442
|
+
const sides: [Pt, Pt][] = [[[x, y], [x + w, y]], [[x + w, y], [x + w, y + h]], [[x + w, y + h], [x, y + h]], [[x, y + h], [x, y]]];
|
|
443
|
+
let d = `M${x} ${y}`;
|
|
444
|
+
let total = 0;
|
|
445
|
+
for (const [a, b] of sides) {
|
|
446
|
+
const L = Math.hypot(b[0] - a[0], b[1] - a[1]);
|
|
447
|
+
const n = Math.max(1, Math.round(L / (bump * 2)));
|
|
448
|
+
const r = L / n / 2;
|
|
449
|
+
for (let i = 1; i <= n; i++) {
|
|
450
|
+
const px = a[0] + ((b[0] - a[0]) * i) / n;
|
|
451
|
+
const py = a[1] + ((b[1] - a[1]) * i) / n;
|
|
452
|
+
d += ` A${r.toFixed(1)} ${r.toFixed(1)} 0 0 1 ${px.toFixed(1)} ${py.toFixed(1)}`;
|
|
453
|
+
total += Math.PI * r;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
const s = svgLayer(el, ctx);
|
|
457
|
+
const path = shape(s, "path", { d, fill: "none", stroke: color, "stroke-width": 4 * u, "stroke-linecap": "round", pathLength: total.toFixed(1) });
|
|
458
|
+
const tri = shape(s, "g", {});
|
|
459
|
+
const T = 34 * u;
|
|
460
|
+
shape(tri, "path", { d: `M0 ${-T} L${T * 0.95} ${T * 0.66} L${-T * 0.95} ${T * 0.66} Z`, fill: paint(ctx, "bg"), stroke: color, "stroke-width": 4 * u, "stroke-linejoin": "round" });
|
|
461
|
+
const tx = x + w + bump * 0.4;
|
|
462
|
+
const ty = y - bump * 0.4;
|
|
463
|
+
const rev = html(el, `left:${tx}px;top:${ty + T * 0.12}px;transform:translate(-50%,-50%);font:700 ${T * 0.9}px/1 ${ctx.style.fonts.mono};color:${color};visibility:hidden`, o.rev ?? "1");
|
|
464
|
+
const dur = o.dur ?? 0.45;
|
|
465
|
+
return (t) => {
|
|
466
|
+
const p = t < o.at ? 0 : hand(clamp((t - o.at) / dur));
|
|
467
|
+
show(path, p > 0);
|
|
468
|
+
path.setAttribute("stroke-dasharray", `${(p * total).toFixed(1)} ${(total + 10).toFixed(1)}`);
|
|
469
|
+
const k = pop(t, o.at + dur);
|
|
470
|
+
show(tri, k > 0);
|
|
471
|
+
place(tri, tx, ty, 0, k);
|
|
472
|
+
show(rev, t >= o.at + dur + 0.04);
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export interface TitleBlockOpts {
|
|
477
|
+
ctx: SceneCtx;
|
|
478
|
+
x: number;
|
|
479
|
+
y: number;
|
|
480
|
+
w: number;
|
|
481
|
+
/** 칸마다 이름(작게)·값(글씨로 찍힌다)·높이 */
|
|
482
|
+
rows: readonly { label: string; value: string; h: number; size?: number }[];
|
|
483
|
+
at: number;
|
|
484
|
+
/** 칸 하나가 그어지고 찍히는 간격 */
|
|
485
|
+
step?: number;
|
|
486
|
+
/** 이름 칸 폭 비율 */
|
|
487
|
+
labelWidth?: number;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/** 표제란 — 도면 오른쪽 아래 칸 상자가 그어지고 칸마다 이름·값이 차례로 찍힌다(도면 이름·주소·날짜) */
|
|
491
|
+
export function titleBlock(el: HTMLElement, o: TitleBlockOpts): (t: number) => void {
|
|
492
|
+
const { ctx } = o;
|
|
493
|
+
const u = scaleOf(ctx.meta);
|
|
494
|
+
const H = o.rows.reduce((a, r) => a + r.h, 0);
|
|
495
|
+
const lw = o.w * (o.labelWidth ?? 0.26);
|
|
496
|
+
const step = o.step ?? 0.12;
|
|
497
|
+
const frame = penLine(el, { ctx, shapes: [{ rect: [o.x, o.y, o.w, H] }], at: o.at, dur: 0.3, nib: false });
|
|
498
|
+
const divs: ((t: number) => void)[] = [];
|
|
499
|
+
const cells: ((t: number) => void)[] = [];
|
|
500
|
+
let y = o.y;
|
|
501
|
+
o.rows.forEach((r, i) => {
|
|
502
|
+
const at = o.at + 0.2 + i * step;
|
|
503
|
+
if (i > 0) divs.push(penLine(el, { ctx, shapes: [{ line: [o.x, y, o.x + o.w, y] }], kind: "thin", at, dur: 0.14, nib: false }));
|
|
504
|
+
divs.push(penLine(el, { ctx, shapes: [{ line: [o.x + lw, y, o.x + lw, y + r.h] }], kind: "thin", at, dur: 0.1, nib: false }));
|
|
505
|
+
const name = html(el, `left:${o.x + 14 * u}px;top:${y + r.h / 2}px;transform:translateY(-50%);font:600 ${Math.min(30 * u, r.h * 0.4)}px/1 ${ctx.style.fonts.sans};color:${paint(ctx, "dim")};white-space:pre;visibility:hidden`, r.label);
|
|
506
|
+
const value = html(el, `left:${o.x + lw + 22 * u}px;top:${y + r.h / 2}px;transform:translateY(-50%);font:700 ${r.size ?? Math.min(56 * u, r.h * 0.5)}px/1 ${ctx.style.fonts.display};color:${paint(ctx, "ink")};white-space:pre`);
|
|
507
|
+
const write = lettering(value, { ctx, text: r.value, at: at + 0.06, dur: 0.22 });
|
|
508
|
+
cells.push((t) => {
|
|
509
|
+
show(name, t >= at);
|
|
510
|
+
write(t);
|
|
511
|
+
});
|
|
512
|
+
y += r.h;
|
|
513
|
+
});
|
|
514
|
+
return (t) => {
|
|
515
|
+
frame(t);
|
|
516
|
+
for (const d of divs) d(t);
|
|
517
|
+
for (const c of cells) c(t);
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* 글씨 — 제도 글씨처럼 옅은 안내선 두 줄이 먼저 서고 그 사이에 글자가 한 자씩 찍힌다. 다 찍으면 안내선은 걷힌다.
|
|
523
|
+
* 글꼴 크기·자리는 그대로(색·배경만). at + dur 부터 el.textContent === text
|
|
524
|
+
*/
|
|
525
|
+
export function lettering(el: HTMLElement, o: { ctx: SceneCtx; text: string; at: number; dur?: number; guide?: boolean }): (t: number) => void {
|
|
526
|
+
const { ctx } = o;
|
|
527
|
+
el.textContent = "";
|
|
528
|
+
const spans = Array.from(o.text).map((ch) => {
|
|
529
|
+
const sp = document.createElement("span");
|
|
530
|
+
sp.textContent = ch;
|
|
531
|
+
el.append(sp);
|
|
532
|
+
return sp;
|
|
533
|
+
});
|
|
534
|
+
const n = spans.length;
|
|
535
|
+
const dur = o.dur ?? Math.min(0.5, 0.025 * n + 0.12);
|
|
536
|
+
// 안내선은 배경 그림으로만 — 글 칸이 깔아 둔 바탕색은 건드리지 않는다
|
|
537
|
+
const guide = paint(ctx, "gridMajor");
|
|
538
|
+
const line = `linear-gradient(${guide}, ${guide})`;
|
|
539
|
+
el.style.backgroundSize = "100% 2px";
|
|
540
|
+
el.style.backgroundPosition = "0 14%, 0 86%";
|
|
541
|
+
el.style.backgroundRepeat = "no-repeat";
|
|
542
|
+
return (t) => {
|
|
543
|
+
const p = clamp((t - o.at) / Math.max(1e-3, dur));
|
|
544
|
+
const shown = t < o.at ? 0 : t >= o.at + dur ? n : Math.min(n, Math.floor(p * n) + 1);
|
|
545
|
+
spans.forEach((sp, i) => (sp.style.visibility = i < shown ? "visible" : "hidden"));
|
|
546
|
+
el.style.backgroundImage = o.guide !== false && t >= o.at - 0.1 && t < o.at + dur + 0.12 ? `${line}, ${line}` : "none";
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* 드롭 = 노광 — 청사진은 빛에 쬐어 한 번에 찍힌다. 흰 섬광 한 번과 노광 램프 띠가 위에서 아래로 지나간다.
|
|
552
|
+
* 돌려준 shake 는 화면 틀에, punch 는 주인공에
|
|
553
|
+
*/
|
|
554
|
+
export function exposure(el: HTMLElement, o: { ctx: SceneCtx; drop?: number }): (t: number) => DropBurstState {
|
|
555
|
+
const { ctx } = o;
|
|
556
|
+
const { height: H } = ctx.meta;
|
|
557
|
+
const u = scaleOf(ctx.meta);
|
|
558
|
+
const flood = html(el, `inset:0;background:${paint(ctx, "ink")};opacity:0`);
|
|
559
|
+
const lamp = html(el, `left:0;right:0;top:0;height:${90 * u}px;background:${paint(ctx, "ink")};opacity:0`);
|
|
560
|
+
const D = ctx.beats.drop(o.drop ?? 0);
|
|
561
|
+
return (t) => {
|
|
562
|
+
const st = dropBurst(t, { beats: ctx.beats, drop: o.drop ?? 0, rules: ctx.style.motion, scene: ctx.id, source: "exposure" });
|
|
563
|
+
flood.style.opacity = (st.flash * 0.7).toFixed(3);
|
|
564
|
+
const k = clamp((t - D) / 0.4);
|
|
565
|
+
const on = t >= D && k < 1;
|
|
566
|
+
lamp.style.opacity = on ? (0.35 * (1 - k)).toFixed(3) : "0";
|
|
567
|
+
lamp.style.transform = `translateY(${(-90 * u + (H + 90 * u) * ease.inOutCubic(k)).toFixed(1)}px)`;
|
|
568
|
+
return st;
|
|
569
|
+
};
|
|
570
|
+
}
|
|
@@ -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>
|