@appinternalleads/ui 0.4.0 → 0.4.1
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/dist/cjs/agent/AgentComponent.js +1 -1
- package/dist/cjs/agent/AgentComponent.js.map +1 -1
- package/dist/cjs/agent/manifests.js +81 -1
- package/dist/cjs/agent/manifests.js.map +1 -1
- package/dist/cjs/agent/result.js +6 -0
- package/dist/cjs/agent/result.js.map +1 -1
- package/dist/cjs/components/catalog.js +18 -0
- package/dist/cjs/components/catalog.js.map +1 -1
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.js +21 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.types.js +6 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.types.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.web.js +89 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStage.web.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStatusView.js +62 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStatusView.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStill.js +20 -0
- package/dist/cjs/components/onboarding/animated-status/AnimatedStill.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/contract.js +87 -0
- package/dist/cjs/components/onboarding/animated-status/contract.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/engine.js +40 -0
- package/dist/cjs/components/onboarding/animated-status/engine.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/index.js +20 -0
- package/dist/cjs/components/onboarding/animated-status/index.js.map +1 -0
- package/dist/cjs/components/onboarding/animated-status/presets.json +126 -0
- package/dist/cjs/components/onboarding/animated-status/riv.js +7 -0
- package/dist/cjs/components/onboarding/animated-status/riv.js.map +1 -0
- package/dist/cjs/components/onboarding/index.js +4 -0
- package/dist/cjs/components/onboarding/index.js.map +1 -1
- package/dist/cjs/components/onboarding/presets.js +90 -84
- package/dist/cjs/components/onboarding/presets.js.map +1 -1
- package/dist/cjs/components/onboarding/receipt-printer/ReceiptStage.js +43 -6
- package/dist/cjs/components/onboarding/receipt-printer/ReceiptStage.js.map +1 -1
- package/dist/cjs/components/onboarding/send-completion/SendCompletionView.js +111 -0
- package/dist/cjs/components/onboarding/send-completion/SendCompletionView.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.js +37 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.types.js +6 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.types.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.web.js +107 -0
- package/dist/cjs/components/onboarding/send-completion/SendStage.web.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/SendStill.js +17 -0
- package/dist/cjs/components/onboarding/send-completion/SendStill.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/contract.js +83 -0
- package/dist/cjs/components/onboarding/send-completion/contract.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/engine.js +32 -0
- package/dist/cjs/components/onboarding/send-completion/engine.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/index.js +22 -0
- package/dist/cjs/components/onboarding/send-completion/index.js.map +1 -0
- package/dist/cjs/components/onboarding/send-completion/presets.json +132 -0
- package/dist/cjs/components/onboarding/send-completion/riv.js +7 -0
- package/dist/cjs/components/onboarding/send-completion/riv.js.map +1 -0
- package/dist/cjs/components/onboarding/shared/actions-data.js +2 -0
- package/dist/cjs/components/onboarding/shared/actions-data.js.map +1 -1
- package/dist/cjs/components/onboarding/shared/configColor.js +76 -0
- package/dist/cjs/components/onboarding/shared/configColor.js.map +1 -0
- package/dist/cjs/components/onboarding/shared/contract.js +4 -0
- package/dist/cjs/components/onboarding/shared/contract.js.map +1 -1
- package/dist/cjs/components/onboarding/shared/describe.js +1 -1
- package/dist/cjs/components/onboarding/shared/describe.js.map +1 -1
- package/dist/cjs/components/onboarding/shared/mock.js +2 -0
- package/dist/cjs/components/onboarding/shared/mock.js.map +1 -1
- package/dist/cjs/components/onboarding/views.js +8 -0
- package/dist/cjs/components/onboarding/views.js.map +1 -1
- package/dist/cjs/motion/MotionPlayer.js +42 -0
- package/dist/cjs/motion/MotionPlayer.js.map +1 -0
- package/dist/cjs/motion/agent.js +323 -0
- package/dist/cjs/motion/agent.js.map +1 -0
- package/dist/cjs/motion/cat/Cat.js +79 -0
- package/dist/cjs/motion/cat/Cat.js.map +1 -0
- package/dist/cjs/motion/cat/animation.js +204 -0
- package/dist/cjs/motion/cat/animation.js.map +1 -0
- package/dist/cjs/motion/cat/art.generated.js +37 -0
- package/dist/cjs/motion/cat/art.generated.js.map +1 -0
- package/dist/cjs/motion/cat/config.js +136 -0
- package/dist/cjs/motion/cat/config.js.map +1 -0
- package/dist/cjs/motion/cat/index.js +75 -0
- package/dist/cjs/motion/cat/index.js.map +1 -0
- package/dist/cjs/motion/cat/rig.js +99 -0
- package/dist/cjs/motion/cat/rig.js.map +1 -0
- package/dist/cjs/motion/cat/scene.js +148 -0
- package/dist/cjs/motion/cat/scene.js.map +1 -0
- package/dist/cjs/motion/configurable/config.js +477 -0
- package/dist/cjs/motion/configurable/config.js.map +1 -0
- package/dist/cjs/motion/configurable/controls.js +44 -0
- package/dist/cjs/motion/configurable/controls.js.map +1 -0
- package/dist/cjs/motion/easing.js +62 -0
- package/dist/cjs/motion/easing.js.map +1 -0
- package/dist/cjs/motion/fit.js +12 -0
- package/dist/cjs/motion/fit.js.map +1 -0
- package/dist/cjs/motion/index.js +101 -0
- package/dist/cjs/motion/index.js.map +1 -0
- package/dist/cjs/motion/neon/GlowRenderer.js +18 -0
- package/dist/cjs/motion/neon/GlowRenderer.js.map +1 -0
- package/dist/cjs/motion/neon/NeonCanvas.js +97 -0
- package/dist/cjs/motion/neon/NeonCanvas.js.map +1 -0
- package/dist/cjs/motion/neon/NeonText.js +108 -0
- package/dist/cjs/motion/neon/NeonText.js.map +1 -0
- package/dist/cjs/motion/neon/NeonTextFrame.js +36 -0
- package/dist/cjs/motion/neon/NeonTextFrame.js.map +1 -0
- package/dist/cjs/motion/neon/artwork.js +102 -0
- package/dist/cjs/motion/neon/artwork.js.map +1 -0
- package/dist/cjs/motion/neon/audio.js +165 -0
- package/dist/cjs/motion/neon/audio.js.map +1 -0
- package/dist/cjs/motion/neon/config.js +334 -0
- package/dist/cjs/motion/neon/config.js.map +1 -0
- package/dist/cjs/motion/neon/flicker.js +196 -0
- package/dist/cjs/motion/neon/flicker.js.map +1 -0
- package/dist/cjs/motion/neon/fonts.js +52 -0
- package/dist/cjs/motion/neon/fonts.js.map +1 -0
- package/dist/cjs/motion/neon/frame.js +24 -0
- package/dist/cjs/motion/neon/frame.js.map +1 -0
- package/dist/cjs/motion/neon/glitch.js +114 -0
- package/dist/cjs/motion/neon/glitch.js.map +1 -0
- package/dist/cjs/motion/neon/index.js +119 -0
- package/dist/cjs/motion/neon/index.js.map +1 -0
- package/dist/cjs/motion/neon/layers.js +68 -0
- package/dist/cjs/motion/neon/layers.js.map +1 -0
- package/dist/cjs/motion/neon/material.js +56 -0
- package/dist/cjs/motion/neon/material.js.map +1 -0
- package/dist/cjs/motion/neon/random.js +43 -0
- package/dist/cjs/motion/neon/random.js.map +1 -0
- package/dist/cjs/motion/neon/scene.js +549 -0
- package/dist/cjs/motion/neon/scene.js.map +1 -0
- package/dist/cjs/motion/neon/synth.js +213 -0
- package/dist/cjs/motion/neon/synth.js.map +1 -0
- package/dist/cjs/motion/neon/typography.js +81 -0
- package/dist/cjs/motion/neon/typography.js.map +1 -0
- package/dist/cjs/motion/neon/wall.js +113 -0
- package/dist/cjs/motion/neon/wall.js.map +1 -0
- package/dist/cjs/motion/paperfold/PaperFold.js +40 -0
- package/dist/cjs/motion/paperfold/PaperFold.js.map +1 -0
- package/dist/cjs/motion/paperfold/PaperFoldFrame.js +290 -0
- package/dist/cjs/motion/paperfold/PaperFoldFrame.js.map +1 -0
- package/dist/cjs/motion/paperfold/PaperFoldPlayer.js +59 -0
- package/dist/cjs/motion/paperfold/PaperFoldPlayer.js.map +1 -0
- package/dist/cjs/motion/paperfold/art.js +388 -0
- package/dist/cjs/motion/paperfold/art.js.map +1 -0
- package/dist/cjs/motion/paperfold/config.js +103 -0
- package/dist/cjs/motion/paperfold/config.js.map +1 -0
- package/dist/cjs/motion/paperfold/controls.js +493 -0
- package/dist/cjs/motion/paperfold/controls.js.map +1 -0
- package/dist/cjs/motion/paperfold/engine.js +722 -0
- package/dist/cjs/motion/paperfold/engine.js.map +1 -0
- package/dist/cjs/motion/paperfold/fonts.js +25 -0
- package/dist/cjs/motion/paperfold/fonts.js.map +1 -0
- package/dist/cjs/motion/paperfold/index.js +113 -0
- package/dist/cjs/motion/paperfold/index.js.map +1 -0
- package/dist/cjs/motion/paperfold/manipulate.js +170 -0
- package/dist/cjs/motion/paperfold/manipulate.js.map +1 -0
- package/dist/cjs/motion/paperfold/presets.js +119 -0
- package/dist/cjs/motion/paperfold/presets.js.map +1 -0
- package/dist/cjs/motion/paperfold/template.js +40 -0
- package/dist/cjs/motion/paperfold/template.js.map +1 -0
- package/dist/cjs/motion/player.js +203 -0
- package/dist/cjs/motion/player.js.map +1 -0
- package/dist/cjs/motion/promo/PromoFrame.js +293 -0
- package/dist/cjs/motion/promo/PromoFrame.js.map +1 -0
- package/dist/cjs/motion/promo/PromoShowcasePlayer.js +59 -0
- package/dist/cjs/motion/promo/PromoShowcasePlayer.js.map +1 -0
- package/dist/cjs/motion/promo/config.js +565 -0
- package/dist/cjs/motion/promo/config.js.map +1 -0
- package/dist/cjs/motion/promo/controls.js +571 -0
- package/dist/cjs/motion/promo/controls.js.map +1 -0
- package/dist/cjs/motion/promo/easing.js +35 -0
- package/dist/cjs/motion/promo/easing.js.map +1 -0
- package/dist/cjs/motion/promo/engine.js +567 -0
- package/dist/cjs/motion/promo/engine.js.map +1 -0
- package/dist/cjs/motion/promo/fonts.js +20 -0
- package/dist/cjs/motion/promo/fonts.js.map +1 -0
- package/dist/cjs/motion/promo/icons.js +29 -0
- package/dist/cjs/motion/promo/icons.js.map +1 -0
- package/dist/cjs/motion/promo/index.js +73 -0
- package/dist/cjs/motion/promo/index.js.map +1 -0
- package/dist/cjs/motion/promo/presets.js +44 -0
- package/dist/cjs/motion/promo/presets.js.map +1 -0
- package/dist/cjs/motion/promo/template.js +38 -0
- package/dist/cjs/motion/promo/template.js.map +1 -0
- package/dist/cjs/motion/replication2/Replication2Player.js +93 -0
- package/dist/cjs/motion/replication2/Replication2Player.js.map +1 -0
- package/dist/cjs/motion/replication2/config.js +352 -0
- package/dist/cjs/motion/replication2/config.js.map +1 -0
- package/dist/cjs/motion/replication2/controls.js +286 -0
- package/dist/cjs/motion/replication2/controls.js.map +1 -0
- package/dist/cjs/motion/replication2/driver.js +68 -0
- package/dist/cjs/motion/replication2/driver.js.map +1 -0
- package/dist/cjs/motion/replication2/easing.js +97 -0
- package/dist/cjs/motion/replication2/easing.js.map +1 -0
- package/dist/cjs/motion/replication2/engine.js +481 -0
- package/dist/cjs/motion/replication2/engine.js.map +1 -0
- package/dist/cjs/motion/replication2/html.js +88 -0
- package/dist/cjs/motion/replication2/html.js.map +1 -0
- package/dist/cjs/motion/replication2/index.js +61 -0
- package/dist/cjs/motion/replication2/index.js.map +1 -0
- package/dist/cjs/motion/replication2/measure.js +30 -0
- package/dist/cjs/motion/replication2/measure.js.map +1 -0
- package/dist/cjs/motion/replication2/metrics.js +10 -0
- package/dist/cjs/motion/replication2/metrics.js.map +1 -0
- package/dist/cjs/motion/replication2/presets.js +67 -0
- package/dist/cjs/motion/replication2/presets.js.map +1 -0
- package/dist/cjs/motion/replication2/riv.js +7 -0
- package/dist/cjs/motion/replication2/riv.js.map +1 -0
- package/dist/cjs/motion/replication2/rive-contract.js +158 -0
- package/dist/cjs/motion/replication2/rive-contract.js.map +1 -0
- package/dist/cjs/motion/replication2/template.js +35 -0
- package/dist/cjs/motion/replication2/template.js.map +1 -0
- package/dist/cjs/motion/sample.js +149 -0
- package/dist/cjs/motion/sample.js.map +1 -0
- package/dist/cjs/motion/templates/hey-template.js +1552 -0
- package/dist/cjs/motion/templates/hey-template.js.map +1 -0
- package/dist/cjs/motion/templates/index.js +22 -0
- package/dist/cjs/motion/templates/index.js.map +1 -0
- package/dist/cjs/motion/templates/word-motion.js +1165 -0
- package/dist/cjs/motion/templates/word-motion.js.map +1 -0
- package/dist/cjs/motion/types.js +3 -0
- package/dist/cjs/motion/types.js.map +1 -0
- package/dist/cjs/motion/typesurface/TypeSurfaceCanvas.js +62 -0
- package/dist/cjs/motion/typesurface/TypeSurfaceCanvas.js.map +1 -0
- package/dist/cjs/motion/typesurface/art.js +861 -0
- package/dist/cjs/motion/typesurface/art.js.map +1 -0
- package/dist/cjs/motion/typesurface/config.js +269 -0
- package/dist/cjs/motion/typesurface/config.js.map +1 -0
- package/dist/cjs/motion/typesurface/engine.js +607 -0
- package/dist/cjs/motion/typesurface/engine.js.map +1 -0
- package/dist/cjs/motion/typesurface/fonts.js +45 -0
- package/dist/cjs/motion/typesurface/fonts.js.map +1 -0
- package/dist/cjs/motion/typesurface/index.js +72 -0
- package/dist/cjs/motion/typesurface/index.js.map +1 -0
- package/dist/cjs/motion/typesurface/layout.js +130 -0
- package/dist/cjs/motion/typesurface/layout.js.map +1 -0
- package/dist/cjs/motion/typesurface/ops.js +175 -0
- package/dist/cjs/motion/typesurface/ops.js.map +1 -0
- package/dist/cjs/motion/typesurface/presets.js +192 -0
- package/dist/cjs/motion/typesurface/presets.js.map +1 -0
- package/dist/cjs/motion/typesurface/renderer.js +672 -0
- package/dist/cjs/motion/typesurface/renderer.js.map +1 -0
- package/dist/cjs/motion/typesurface/shaders.js +300 -0
- package/dist/cjs/motion/typesurface/shaders.js.map +1 -0
- package/dist/cjs/motion/typesurface/surfaces.js +156 -0
- package/dist/cjs/motion/typesurface/surfaces.js.map +1 -0
- package/dist/cjs/motion/typesurface/text.js +34 -0
- package/dist/cjs/motion/typesurface/text.js.map +1 -0
- package/dist/cjs/motion/typesurface/timeline.js +64 -0
- package/dist/cjs/motion/typesurface/timeline.js.map +1 -0
- package/dist/cjs/motion/validate.js +89 -0
- package/dist/cjs/motion/validate.js.map +1 -0
- package/dist/cjs/native/RiveReceiptStage.js +9 -150
- package/dist/cjs/native/RiveReceiptStage.js.map +1 -1
- package/dist/cjs/native/riveReceiptStageFactory.js +162 -0
- package/dist/cjs/native/riveReceiptStageFactory.js.map +1 -0
- package/dist/cjs/tokens/stage.js +10 -0
- package/dist/cjs/tokens/stage.js.map +1 -0
- package/dist/esm/agent/AgentComponent.js +1 -1
- package/dist/esm/agent/AgentComponent.js.map +1 -1
- package/dist/esm/agent/manifests.d.ts.map +1 -1
- package/dist/esm/agent/manifests.js +81 -1
- package/dist/esm/agent/manifests.js.map +1 -1
- package/dist/esm/agent/result.d.ts.map +1 -1
- package/dist/esm/agent/result.js +6 -0
- package/dist/esm/agent/result.js.map +1 -1
- package/dist/esm/agent/types.d.ts +1 -1
- package/dist/esm/agent/types.d.ts.map +1 -1
- package/dist/esm/components/catalog.d.ts +1 -1
- package/dist/esm/components/catalog.d.ts.map +1 -1
- package/dist/esm/components/catalog.js +18 -0
- package/dist/esm/components/catalog.js.map +1 -1
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.d.ts +9 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.js +18 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.types.d.ts +31 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.types.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.types.js +3 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.types.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.web.d.ts +4 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.web.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.web.js +86 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStage.web.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStatusView.d.ts +32 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStatusView.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStatusView.js +59 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStatusView.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStill.d.ts +8 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStill.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStill.js +17 -0
- package/dist/esm/components/onboarding/animated-status/AnimatedStill.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/contract.d.ts +61 -0
- package/dist/esm/components/onboarding/animated-status/contract.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/contract.js +78 -0
- package/dist/esm/components/onboarding/animated-status/contract.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/engine.d.ts +24 -0
- package/dist/esm/components/onboarding/animated-status/engine.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/engine.js +32 -0
- package/dist/esm/components/onboarding/animated-status/engine.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/index.d.ts +5 -0
- package/dist/esm/components/onboarding/animated-status/index.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/index.js +4 -0
- package/dist/esm/components/onboarding/animated-status/index.js.map +1 -0
- package/dist/esm/components/onboarding/animated-status/presets.json +126 -0
- package/dist/esm/components/onboarding/animated-status/riv.d.ts +3 -0
- package/dist/esm/components/onboarding/animated-status/riv.d.ts.map +1 -0
- package/dist/esm/components/onboarding/animated-status/riv.js +4 -0
- package/dist/esm/components/onboarding/animated-status/riv.js.map +1 -0
- package/dist/esm/components/onboarding/index.d.ts +2 -0
- package/dist/esm/components/onboarding/index.d.ts.map +1 -1
- package/dist/esm/components/onboarding/index.js +4 -0
- package/dist/esm/components/onboarding/index.js.map +1 -1
- package/dist/esm/components/onboarding/presets.d.ts.map +1 -1
- package/dist/esm/components/onboarding/presets.js +6 -0
- package/dist/esm/components/onboarding/presets.js.map +1 -1
- package/dist/esm/components/onboarding/receipt-printer/ReceiptStage.d.ts +4 -6
- package/dist/esm/components/onboarding/receipt-printer/ReceiptStage.d.ts.map +1 -1
- package/dist/esm/components/onboarding/receipt-printer/ReceiptStage.js +42 -6
- package/dist/esm/components/onboarding/receipt-printer/ReceiptStage.js.map +1 -1
- package/dist/esm/components/onboarding/send-completion/SendCompletionView.d.ts +47 -0
- package/dist/esm/components/onboarding/send-completion/SendCompletionView.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendCompletionView.js +108 -0
- package/dist/esm/components/onboarding/send-completion/SendCompletionView.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.d.ts +9 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.js +34 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.types.d.ts +33 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.types.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.types.js +3 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.types.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.web.d.ts +4 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.web.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.web.js +104 -0
- package/dist/esm/components/onboarding/send-completion/SendStage.web.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStill.d.ts +11 -0
- package/dist/esm/components/onboarding/send-completion/SendStill.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/SendStill.js +14 -0
- package/dist/esm/components/onboarding/send-completion/SendStill.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/contract.d.ts +99 -0
- package/dist/esm/components/onboarding/send-completion/contract.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/contract.js +76 -0
- package/dist/esm/components/onboarding/send-completion/contract.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/engine.d.ts +20 -0
- package/dist/esm/components/onboarding/send-completion/engine.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/engine.js +28 -0
- package/dist/esm/components/onboarding/send-completion/engine.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/index.d.ts +6 -0
- package/dist/esm/components/onboarding/send-completion/index.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/index.js +6 -0
- package/dist/esm/components/onboarding/send-completion/index.js.map +1 -0
- package/dist/esm/components/onboarding/send-completion/presets.json +132 -0
- package/dist/esm/components/onboarding/send-completion/riv.d.ts +3 -0
- package/dist/esm/components/onboarding/send-completion/riv.d.ts.map +1 -0
- package/dist/esm/components/onboarding/send-completion/riv.js +4 -0
- package/dist/esm/components/onboarding/send-completion/riv.js.map +1 -0
- package/dist/esm/components/onboarding/shared/actions-data.d.ts.map +1 -1
- package/dist/esm/components/onboarding/shared/actions-data.js +2 -0
- package/dist/esm/components/onboarding/shared/actions-data.js.map +1 -1
- package/dist/esm/components/onboarding/shared/configColor.d.ts +29 -0
- package/dist/esm/components/onboarding/shared/configColor.d.ts.map +1 -0
- package/dist/esm/components/onboarding/shared/configColor.js +69 -0
- package/dist/esm/components/onboarding/shared/configColor.js.map +1 -0
- package/dist/esm/components/onboarding/shared/contract.d.ts +1 -1
- package/dist/esm/components/onboarding/shared/contract.d.ts.map +1 -1
- package/dist/esm/components/onboarding/shared/contract.js +4 -0
- package/dist/esm/components/onboarding/shared/contract.js.map +1 -1
- package/dist/esm/components/onboarding/shared/describe.d.ts.map +1 -1
- package/dist/esm/components/onboarding/shared/describe.js +1 -1
- package/dist/esm/components/onboarding/shared/describe.js.map +1 -1
- package/dist/esm/components/onboarding/shared/mock.d.ts +2 -0
- package/dist/esm/components/onboarding/shared/mock.d.ts.map +1 -1
- package/dist/esm/components/onboarding/shared/mock.js +2 -0
- package/dist/esm/components/onboarding/shared/mock.js.map +1 -1
- package/dist/esm/components/onboarding/views.d.ts.map +1 -1
- package/dist/esm/components/onboarding/views.js +8 -0
- package/dist/esm/components/onboarding/views.js.map +1 -1
- package/dist/esm/motion/MotionPlayer.d.ts +22 -0
- package/dist/esm/motion/MotionPlayer.d.ts.map +1 -0
- package/dist/esm/motion/MotionPlayer.js +39 -0
- package/dist/esm/motion/MotionPlayer.js.map +1 -0
- package/dist/esm/motion/agent.d.ts +146 -0
- package/dist/esm/motion/agent.d.ts.map +1 -0
- package/dist/esm/motion/agent.js +278 -0
- package/dist/esm/motion/agent.js.map +1 -0
- package/dist/esm/motion/cat/Cat.d.ts +43 -0
- package/dist/esm/motion/cat/Cat.d.ts.map +1 -0
- package/dist/esm/motion/cat/Cat.js +74 -0
- package/dist/esm/motion/cat/Cat.js.map +1 -0
- package/dist/esm/motion/cat/animation.d.ts +86 -0
- package/dist/esm/motion/cat/animation.d.ts.map +1 -0
- package/dist/esm/motion/cat/animation.js +193 -0
- package/dist/esm/motion/cat/animation.js.map +1 -0
- package/dist/esm/motion/cat/art.generated.d.ts +53 -0
- package/dist/esm/motion/cat/art.generated.d.ts.map +1 -0
- package/dist/esm/motion/cat/art.generated.js +34 -0
- package/dist/esm/motion/cat/art.generated.js.map +1 -0
- package/dist/esm/motion/cat/config.d.ts +103 -0
- package/dist/esm/motion/cat/config.d.ts.map +1 -0
- package/dist/esm/motion/cat/config.js +129 -0
- package/dist/esm/motion/cat/config.js.map +1 -0
- package/dist/esm/motion/cat/index.d.ts +13 -0
- package/dist/esm/motion/cat/index.d.ts.map +1 -0
- package/dist/esm/motion/cat/index.js +13 -0
- package/dist/esm/motion/cat/index.js.map +1 -0
- package/dist/esm/motion/cat/rig.d.ts +44 -0
- package/dist/esm/motion/cat/rig.d.ts.map +1 -0
- package/dist/esm/motion/cat/rig.js +86 -0
- package/dist/esm/motion/cat/rig.js.map +1 -0
- package/dist/esm/motion/cat/scene.d.ts +66 -0
- package/dist/esm/motion/cat/scene.d.ts.map +1 -0
- package/dist/esm/motion/cat/scene.js +137 -0
- package/dist/esm/motion/cat/scene.js.map +1 -0
- package/dist/esm/motion/configurable/config.d.ts +80 -0
- package/dist/esm/motion/configurable/config.d.ts.map +1 -0
- package/dist/esm/motion/configurable/config.js +468 -0
- package/dist/esm/motion/configurable/config.js.map +1 -0
- package/dist/esm/motion/configurable/controls.d.ts +74 -0
- package/dist/esm/motion/configurable/controls.d.ts.map +1 -0
- package/dist/esm/motion/configurable/controls.js +38 -0
- package/dist/esm/motion/configurable/controls.js.map +1 -0
- package/dist/esm/motion/easing.d.ts +4 -0
- package/dist/esm/motion/easing.d.ts.map +1 -0
- package/dist/esm/motion/easing.js +58 -0
- package/dist/esm/motion/easing.js.map +1 -0
- package/dist/esm/motion/fit.d.ts +8 -0
- package/dist/esm/motion/fit.d.ts.map +1 -0
- package/dist/esm/motion/fit.js +8 -0
- package/dist/esm/motion/fit.js.map +1 -0
- package/dist/esm/motion/index.d.ts +27 -0
- package/dist/esm/motion/index.d.ts.map +1 -0
- package/dist/esm/motion/index.js +21 -0
- package/dist/esm/motion/index.js.map +1 -0
- package/dist/esm/motion/neon/GlowRenderer.d.ts +31 -0
- package/dist/esm/motion/neon/GlowRenderer.d.ts.map +1 -0
- package/dist/esm/motion/neon/GlowRenderer.js +14 -0
- package/dist/esm/motion/neon/GlowRenderer.js.map +1 -0
- package/dist/esm/motion/neon/NeonCanvas.d.ts +42 -0
- package/dist/esm/motion/neon/NeonCanvas.d.ts.map +1 -0
- package/dist/esm/motion/neon/NeonCanvas.js +92 -0
- package/dist/esm/motion/neon/NeonCanvas.js.map +1 -0
- package/dist/esm/motion/neon/NeonText.d.ts +26 -0
- package/dist/esm/motion/neon/NeonText.d.ts.map +1 -0
- package/dist/esm/motion/neon/NeonText.js +103 -0
- package/dist/esm/motion/neon/NeonText.js.map +1 -0
- package/dist/esm/motion/neon/NeonTextFrame.d.ts +29 -0
- package/dist/esm/motion/neon/NeonTextFrame.d.ts.map +1 -0
- package/dist/esm/motion/neon/NeonTextFrame.js +33 -0
- package/dist/esm/motion/neon/NeonTextFrame.js.map +1 -0
- package/dist/esm/motion/neon/artwork.d.ts +29 -0
- package/dist/esm/motion/neon/artwork.d.ts.map +1 -0
- package/dist/esm/motion/neon/artwork.js +98 -0
- package/dist/esm/motion/neon/artwork.js.map +1 -0
- package/dist/esm/motion/neon/audio.d.ts +49 -0
- package/dist/esm/motion/neon/audio.d.ts.map +1 -0
- package/dist/esm/motion/neon/audio.js +161 -0
- package/dist/esm/motion/neon/audio.js.map +1 -0
- package/dist/esm/motion/neon/config.d.ts +319 -0
- package/dist/esm/motion/neon/config.d.ts.map +1 -0
- package/dist/esm/motion/neon/config.js +319 -0
- package/dist/esm/motion/neon/config.js.map +1 -0
- package/dist/esm/motion/neon/flicker.d.ts +82 -0
- package/dist/esm/motion/neon/flicker.d.ts.map +1 -0
- package/dist/esm/motion/neon/flicker.js +187 -0
- package/dist/esm/motion/neon/flicker.js.map +1 -0
- package/dist/esm/motion/neon/fonts.d.ts +29 -0
- package/dist/esm/motion/neon/fonts.d.ts.map +1 -0
- package/dist/esm/motion/neon/fonts.js +47 -0
- package/dist/esm/motion/neon/fonts.js.map +1 -0
- package/dist/esm/motion/neon/frame.d.ts +22 -0
- package/dist/esm/motion/neon/frame.d.ts.map +1 -0
- package/dist/esm/motion/neon/frame.js +20 -0
- package/dist/esm/motion/neon/frame.js.map +1 -0
- package/dist/esm/motion/neon/glitch.d.ts +64 -0
- package/dist/esm/motion/neon/glitch.d.ts.map +1 -0
- package/dist/esm/motion/neon/glitch.js +108 -0
- package/dist/esm/motion/neon/glitch.js.map +1 -0
- package/dist/esm/motion/neon/index.d.ts +29 -0
- package/dist/esm/motion/neon/index.d.ts.map +1 -0
- package/dist/esm/motion/neon/index.js +28 -0
- package/dist/esm/motion/neon/index.js.map +1 -0
- package/dist/esm/motion/neon/layers.d.ts +56 -0
- package/dist/esm/motion/neon/layers.d.ts.map +1 -0
- package/dist/esm/motion/neon/layers.js +64 -0
- package/dist/esm/motion/neon/layers.js.map +1 -0
- package/dist/esm/motion/neon/material.d.ts +68 -0
- package/dist/esm/motion/neon/material.d.ts.map +1 -0
- package/dist/esm/motion/neon/material.js +51 -0
- package/dist/esm/motion/neon/material.js.map +1 -0
- package/dist/esm/motion/neon/random.d.ts +15 -0
- package/dist/esm/motion/neon/random.d.ts.map +1 -0
- package/dist/esm/motion/neon/random.js +37 -0
- package/dist/esm/motion/neon/random.js.map +1 -0
- package/dist/esm/motion/neon/scene.d.ts +255 -0
- package/dist/esm/motion/neon/scene.d.ts.map +1 -0
- package/dist/esm/motion/neon/scene.js +532 -0
- package/dist/esm/motion/neon/scene.js.map +1 -0
- package/dist/esm/motion/neon/synth.d.ts +18 -0
- package/dist/esm/motion/neon/synth.d.ts.map +1 -0
- package/dist/esm/motion/neon/synth.js +208 -0
- package/dist/esm/motion/neon/synth.js.map +1 -0
- package/dist/esm/motion/neon/typography.d.ts +53 -0
- package/dist/esm/motion/neon/typography.d.ts.map +1 -0
- package/dist/esm/motion/neon/typography.js +74 -0
- package/dist/esm/motion/neon/typography.js.map +1 -0
- package/dist/esm/motion/neon/wall.d.ts +62 -0
- package/dist/esm/motion/neon/wall.d.ts.map +1 -0
- package/dist/esm/motion/neon/wall.js +106 -0
- package/dist/esm/motion/neon/wall.js.map +1 -0
- package/dist/esm/motion/paperfold/PaperFold.d.ts +36 -0
- package/dist/esm/motion/paperfold/PaperFold.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/PaperFold.js +37 -0
- package/dist/esm/motion/paperfold/PaperFold.js.map +1 -0
- package/dist/esm/motion/paperfold/PaperFoldFrame.d.ts +39 -0
- package/dist/esm/motion/paperfold/PaperFoldFrame.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/PaperFoldFrame.js +283 -0
- package/dist/esm/motion/paperfold/PaperFoldFrame.js.map +1 -0
- package/dist/esm/motion/paperfold/PaperFoldPlayer.d.ts +27 -0
- package/dist/esm/motion/paperfold/PaperFoldPlayer.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/PaperFoldPlayer.js +56 -0
- package/dist/esm/motion/paperfold/PaperFoldPlayer.js.map +1 -0
- package/dist/esm/motion/paperfold/art.d.ts +148 -0
- package/dist/esm/motion/paperfold/art.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/art.js +374 -0
- package/dist/esm/motion/paperfold/art.js.map +1 -0
- package/dist/esm/motion/paperfold/config.d.ts +47 -0
- package/dist/esm/motion/paperfold/config.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/config.js +96 -0
- package/dist/esm/motion/paperfold/config.js.map +1 -0
- package/dist/esm/motion/paperfold/controls.d.ts +57 -0
- package/dist/esm/motion/paperfold/controls.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/controls.js +506 -0
- package/dist/esm/motion/paperfold/controls.js.map +1 -0
- package/dist/esm/motion/paperfold/engine.d.ts +397 -0
- package/dist/esm/motion/paperfold/engine.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/engine.js +699 -0
- package/dist/esm/motion/paperfold/engine.js.map +1 -0
- package/dist/esm/motion/paperfold/fonts.d.ts +3 -0
- package/dist/esm/motion/paperfold/fonts.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/fonts.js +21 -0
- package/dist/esm/motion/paperfold/fonts.js.map +1 -0
- package/dist/esm/motion/paperfold/index.d.ts +17 -0
- package/dist/esm/motion/paperfold/index.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/index.js +17 -0
- package/dist/esm/motion/paperfold/index.js.map +1 -0
- package/dist/esm/motion/paperfold/manipulate.d.ts +59 -0
- package/dist/esm/motion/paperfold/manipulate.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/manipulate.js +161 -0
- package/dist/esm/motion/paperfold/manipulate.js.map +1 -0
- package/dist/esm/motion/paperfold/presets.d.ts +9 -0
- package/dist/esm/motion/paperfold/presets.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/presets.js +115 -0
- package/dist/esm/motion/paperfold/presets.js.map +1 -0
- package/dist/esm/motion/paperfold/template.d.ts +3 -0
- package/dist/esm/motion/paperfold/template.d.ts.map +1 -0
- package/dist/esm/motion/paperfold/template.js +37 -0
- package/dist/esm/motion/paperfold/template.js.map +1 -0
- package/dist/esm/motion/player.d.ts +35 -0
- package/dist/esm/motion/player.d.ts.map +1 -0
- package/dist/esm/motion/player.js +197 -0
- package/dist/esm/motion/player.js.map +1 -0
- package/dist/esm/motion/promo/PromoFrame.d.ts +31 -0
- package/dist/esm/motion/promo/PromoFrame.d.ts.map +1 -0
- package/dist/esm/motion/promo/PromoFrame.js +288 -0
- package/dist/esm/motion/promo/PromoFrame.js.map +1 -0
- package/dist/esm/motion/promo/PromoShowcasePlayer.d.ts +25 -0
- package/dist/esm/motion/promo/PromoShowcasePlayer.d.ts.map +1 -0
- package/dist/esm/motion/promo/PromoShowcasePlayer.js +56 -0
- package/dist/esm/motion/promo/PromoShowcasePlayer.js.map +1 -0
- package/dist/esm/motion/promo/config.d.ts +91 -0
- package/dist/esm/motion/promo/config.d.ts.map +1 -0
- package/dist/esm/motion/promo/config.js +550 -0
- package/dist/esm/motion/promo/config.js.map +1 -0
- package/dist/esm/motion/promo/controls.d.ts +86 -0
- package/dist/esm/motion/promo/controls.d.ts.map +1 -0
- package/dist/esm/motion/promo/controls.js +567 -0
- package/dist/esm/motion/promo/controls.js.map +1 -0
- package/dist/esm/motion/promo/easing.d.ts +3 -0
- package/dist/esm/motion/promo/easing.d.ts.map +1 -0
- package/dist/esm/motion/promo/easing.js +32 -0
- package/dist/esm/motion/promo/easing.js.map +1 -0
- package/dist/esm/motion/promo/engine.d.ts +205 -0
- package/dist/esm/motion/promo/engine.d.ts.map +1 -0
- package/dist/esm/motion/promo/engine.js +551 -0
- package/dist/esm/motion/promo/engine.js.map +1 -0
- package/dist/esm/motion/promo/fonts.d.ts +7 -0
- package/dist/esm/motion/promo/fonts.d.ts.map +1 -0
- package/dist/esm/motion/promo/fonts.js +16 -0
- package/dist/esm/motion/promo/fonts.js.map +1 -0
- package/dist/esm/motion/promo/icons.d.ts +7 -0
- package/dist/esm/motion/promo/icons.d.ts.map +1 -0
- package/dist/esm/motion/promo/icons.js +26 -0
- package/dist/esm/motion/promo/icons.js.map +1 -0
- package/dist/esm/motion/promo/index.d.ts +15 -0
- package/dist/esm/motion/promo/index.d.ts.map +1 -0
- package/dist/esm/motion/promo/index.js +15 -0
- package/dist/esm/motion/promo/index.js.map +1 -0
- package/dist/esm/motion/promo/presets.d.ts +13 -0
- package/dist/esm/motion/promo/presets.d.ts.map +1 -0
- package/dist/esm/motion/promo/presets.js +40 -0
- package/dist/esm/motion/promo/presets.js.map +1 -0
- package/dist/esm/motion/promo/template.d.ts +8 -0
- package/dist/esm/motion/promo/template.d.ts.map +1 -0
- package/dist/esm/motion/promo/template.js +35 -0
- package/dist/esm/motion/promo/template.js.map +1 -0
- package/dist/esm/motion/replication2/Replication2Player.d.ts +26 -0
- package/dist/esm/motion/replication2/Replication2Player.d.ts.map +1 -0
- package/dist/esm/motion/replication2/Replication2Player.js +90 -0
- package/dist/esm/motion/replication2/Replication2Player.js.map +1 -0
- package/dist/esm/motion/replication2/config.d.ts +78 -0
- package/dist/esm/motion/replication2/config.d.ts.map +1 -0
- package/dist/esm/motion/replication2/config.js +341 -0
- package/dist/esm/motion/replication2/config.js.map +1 -0
- package/dist/esm/motion/replication2/controls.d.ts +70 -0
- package/dist/esm/motion/replication2/controls.d.ts.map +1 -0
- package/dist/esm/motion/replication2/controls.js +283 -0
- package/dist/esm/motion/replication2/controls.js.map +1 -0
- package/dist/esm/motion/replication2/driver.d.ts +23 -0
- package/dist/esm/motion/replication2/driver.d.ts.map +1 -0
- package/dist/esm/motion/replication2/driver.js +65 -0
- package/dist/esm/motion/replication2/driver.js.map +1 -0
- package/dist/esm/motion/replication2/easing.d.ts +19 -0
- package/dist/esm/motion/replication2/easing.d.ts.map +1 -0
- package/dist/esm/motion/replication2/easing.js +92 -0
- package/dist/esm/motion/replication2/easing.js.map +1 -0
- package/dist/esm/motion/replication2/engine.d.ts +236 -0
- package/dist/esm/motion/replication2/engine.d.ts.map +1 -0
- package/dist/esm/motion/replication2/engine.js +470 -0
- package/dist/esm/motion/replication2/engine.js.map +1 -0
- package/dist/esm/motion/replication2/html.d.ts +30 -0
- package/dist/esm/motion/replication2/html.d.ts.map +1 -0
- package/dist/esm/motion/replication2/html.js +83 -0
- package/dist/esm/motion/replication2/html.js.map +1 -0
- package/dist/esm/motion/replication2/index.d.ts +15 -0
- package/dist/esm/motion/replication2/index.d.ts.map +1 -0
- package/dist/esm/motion/replication2/index.js +15 -0
- package/dist/esm/motion/replication2/index.js.map +1 -0
- package/dist/esm/motion/replication2/measure.d.ts +3 -0
- package/dist/esm/motion/replication2/measure.d.ts.map +1 -0
- package/dist/esm/motion/replication2/measure.js +27 -0
- package/dist/esm/motion/replication2/measure.js.map +1 -0
- package/dist/esm/motion/replication2/metrics.d.ts +6 -0
- package/dist/esm/motion/replication2/metrics.d.ts.map +1 -0
- package/dist/esm/motion/replication2/metrics.js +7 -0
- package/dist/esm/motion/replication2/metrics.js.map +1 -0
- package/dist/esm/motion/replication2/presets.d.ts +13 -0
- package/dist/esm/motion/replication2/presets.d.ts.map +1 -0
- package/dist/esm/motion/replication2/presets.js +63 -0
- package/dist/esm/motion/replication2/presets.js.map +1 -0
- package/dist/esm/motion/replication2/riv.d.ts +3 -0
- package/dist/esm/motion/replication2/riv.d.ts.map +1 -0
- package/dist/esm/motion/replication2/riv.js +4 -0
- package/dist/esm/motion/replication2/riv.js.map +1 -0
- package/dist/esm/motion/replication2/rive-contract.d.ts +27 -0
- package/dist/esm/motion/replication2/rive-contract.d.ts.map +1 -0
- package/dist/esm/motion/replication2/rive-contract.js +153 -0
- package/dist/esm/motion/replication2/rive-contract.js.map +1 -0
- package/dist/esm/motion/replication2/template.d.ts +8 -0
- package/dist/esm/motion/replication2/template.d.ts.map +1 -0
- package/dist/esm/motion/replication2/template.js +32 -0
- package/dist/esm/motion/replication2/template.js.map +1 -0
- package/dist/esm/motion/sample.d.ts +61 -0
- package/dist/esm/motion/sample.d.ts.map +1 -0
- package/dist/esm/motion/sample.js +138 -0
- package/dist/esm/motion/sample.js.map +1 -0
- package/dist/esm/motion/templates/hey-template.d.ts +3 -0
- package/dist/esm/motion/templates/hey-template.d.ts.map +1 -0
- package/dist/esm/motion/templates/hey-template.js +1549 -0
- package/dist/esm/motion/templates/hey-template.js.map +1 -0
- package/dist/esm/motion/templates/index.d.ts +22 -0
- package/dist/esm/motion/templates/index.d.ts.map +1 -0
- package/dist/esm/motion/templates/index.js +15 -0
- package/dist/esm/motion/templates/index.js.map +1 -0
- package/dist/esm/motion/templates/word-motion.d.ts +3 -0
- package/dist/esm/motion/templates/word-motion.d.ts.map +1 -0
- package/dist/esm/motion/templates/word-motion.js +1162 -0
- package/dist/esm/motion/templates/word-motion.js.map +1 -0
- package/dist/esm/motion/types.d.ts +192 -0
- package/dist/esm/motion/types.d.ts.map +1 -0
- package/dist/esm/motion/types.js +2 -0
- package/dist/esm/motion/types.js.map +1 -0
- package/dist/esm/motion/typesurface/TypeSurfaceCanvas.d.ts +22 -0
- package/dist/esm/motion/typesurface/TypeSurfaceCanvas.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/TypeSurfaceCanvas.js +58 -0
- package/dist/esm/motion/typesurface/TypeSurfaceCanvas.js.map +1 -0
- package/dist/esm/motion/typesurface/art.d.ts +21 -0
- package/dist/esm/motion/typesurface/art.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/art.js +854 -0
- package/dist/esm/motion/typesurface/art.js.map +1 -0
- package/dist/esm/motion/typesurface/config.d.ts +273 -0
- package/dist/esm/motion/typesurface/config.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/config.js +260 -0
- package/dist/esm/motion/typesurface/config.js.map +1 -0
- package/dist/esm/motion/typesurface/engine.d.ts +94 -0
- package/dist/esm/motion/typesurface/engine.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/engine.js +603 -0
- package/dist/esm/motion/typesurface/engine.js.map +1 -0
- package/dist/esm/motion/typesurface/fonts.d.ts +25 -0
- package/dist/esm/motion/typesurface/fonts.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/fonts.js +40 -0
- package/dist/esm/motion/typesurface/fonts.js.map +1 -0
- package/dist/esm/motion/typesurface/index.d.ts +17 -0
- package/dist/esm/motion/typesurface/index.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/index.js +17 -0
- package/dist/esm/motion/typesurface/index.js.map +1 -0
- package/dist/esm/motion/typesurface/layout.d.ts +57 -0
- package/dist/esm/motion/typesurface/layout.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/layout.js +122 -0
- package/dist/esm/motion/typesurface/layout.js.map +1 -0
- package/dist/esm/motion/typesurface/ops.d.ts +70 -0
- package/dist/esm/motion/typesurface/ops.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/ops.js +164 -0
- package/dist/esm/motion/typesurface/ops.js.map +1 -0
- package/dist/esm/motion/typesurface/presets.d.ts +33 -0
- package/dist/esm/motion/typesurface/presets.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/presets.js +185 -0
- package/dist/esm/motion/typesurface/presets.js.map +1 -0
- package/dist/esm/motion/typesurface/renderer.d.ts +78 -0
- package/dist/esm/motion/typesurface/renderer.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/renderer.js +666 -0
- package/dist/esm/motion/typesurface/renderer.js.map +1 -0
- package/dist/esm/motion/typesurface/shaders.d.ts +17 -0
- package/dist/esm/motion/typesurface/shaders.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/shaders.js +297 -0
- package/dist/esm/motion/typesurface/shaders.js.map +1 -0
- package/dist/esm/motion/typesurface/surfaces.d.ts +81 -0
- package/dist/esm/motion/typesurface/surfaces.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/surfaces.js +149 -0
- package/dist/esm/motion/typesurface/surfaces.js.map +1 -0
- package/dist/esm/motion/typesurface/text.d.ts +17 -0
- package/dist/esm/motion/typesurface/text.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/text.js +28 -0
- package/dist/esm/motion/typesurface/text.js.map +1 -0
- package/dist/esm/motion/typesurface/timeline.d.ts +15 -0
- package/dist/esm/motion/typesurface/timeline.d.ts.map +1 -0
- package/dist/esm/motion/typesurface/timeline.js +57 -0
- package/dist/esm/motion/typesurface/timeline.js.map +1 -0
- package/dist/esm/motion/validate.d.ts +22 -0
- package/dist/esm/motion/validate.d.ts.map +1 -0
- package/dist/esm/motion/validate.js +84 -0
- package/dist/esm/motion/validate.js.map +1 -0
- package/dist/esm/native/RiveReceiptStage.d.ts +25 -2
- package/dist/esm/native/RiveReceiptStage.d.ts.map +1 -1
- package/dist/esm/native/RiveReceiptStage.js +7 -148
- package/dist/esm/native/RiveReceiptStage.js.map +1 -1
- package/dist/esm/native/riveReceiptStageFactory.d.ts +26 -0
- package/dist/esm/native/riveReceiptStageFactory.d.ts.map +1 -0
- package/dist/esm/native/riveReceiptStageFactory.js +159 -0
- package/dist/esm/native/riveReceiptStageFactory.js.map +1 -0
- package/dist/esm/tokens/stage.d.ts +7 -0
- package/dist/esm/tokens/stage.d.ts.map +1 -0
- package/dist/esm/tokens/stage.js +7 -0
- package/dist/esm/tokens/stage.js.map +1 -0
- package/package.json +35 -1
- package/spec/examples/components/onboarding/animated-status/case1.json +42 -0
- package/spec/examples/components/onboarding/animated-status/case2.json +42 -0
- package/spec/examples/components/onboarding/animated-status/case3.json +42 -0
- package/spec/examples/components/onboarding/animated-status/case4.json +42 -0
- package/spec/examples/components/onboarding/animated-status/case5.json +42 -0
- package/spec/examples/components/onboarding/send-completion/case1.json +48 -0
- package/spec/examples/components/onboarding/send-completion/case2.json +48 -0
- package/spec/examples/components/onboarding/send-completion/case3.json +48 -0
- package/spec/examples/components/onboarding/send-completion/case4.json +48 -0
- package/spec/examples/components/onboarding/send-completion/case5.json +48 -0
- package/spec/families/onboarding.schema.json +610 -1
- package/src/agent/AgentComponent.tsx +1 -1
- package/src/agent/manifests.ts +83 -1
- package/src/agent/result.ts +6 -0
- package/src/agent/types.ts +1 -1
- package/src/components/catalog.ts +21 -1
- package/src/components/onboarding/animated-status/AnimatedStage.tsx +18 -0
- package/src/components/onboarding/animated-status/AnimatedStage.types.ts +30 -0
- package/src/components/onboarding/animated-status/AnimatedStage.web.tsx +99 -0
- package/src/components/onboarding/animated-status/AnimatedStatusView.tsx +109 -0
- package/src/components/onboarding/animated-status/AnimatedStill.tsx +23 -0
- package/src/components/onboarding/animated-status/contract.ts +105 -0
- package/src/components/onboarding/animated-status/engine.ts +49 -0
- package/src/components/onboarding/animated-status/index.ts +8 -0
- package/src/components/onboarding/animated-status/presets.json +126 -0
- package/src/components/onboarding/animated-status/riv.ts +4 -0
- package/src/components/onboarding/index.ts +4 -0
- package/src/components/onboarding/presets.ts +6 -0
- package/src/components/onboarding/receipt-printer/ReceiptStage.tsx +46 -7
- package/src/components/onboarding/send-completion/SendCompletionView.tsx +164 -0
- package/src/components/onboarding/send-completion/SendStage.tsx +27 -0
- package/src/components/onboarding/send-completion/SendStage.types.ts +32 -0
- package/src/components/onboarding/send-completion/SendStage.web.tsx +116 -0
- package/src/components/onboarding/send-completion/SendStill.tsx +19 -0
- package/src/components/onboarding/send-completion/contract.ts +127 -0
- package/src/components/onboarding/send-completion/engine.ts +37 -0
- package/src/components/onboarding/send-completion/index.ts +10 -0
- package/src/components/onboarding/send-completion/presets.json +132 -0
- package/src/components/onboarding/send-completion/riv.ts +4 -0
- package/src/components/onboarding/shared/actions-data.ts +2 -0
- package/src/components/onboarding/shared/configColor.ts +72 -0
- package/src/components/onboarding/shared/contract.ts +4 -0
- package/src/components/onboarding/shared/describe.ts +1 -1
- package/src/components/onboarding/shared/mock.ts +2 -0
- package/src/components/onboarding/views.ts +8 -0
- package/src/motion/MotionPlayer.tsx +62 -0
- package/src/motion/agent.ts +288 -0
- package/src/motion/cat/Cat.tsx +118 -0
- package/src/motion/cat/animation.ts +206 -0
- package/src/motion/cat/art.generated.ts +44 -0
- package/src/motion/cat/config.ts +186 -0
- package/src/motion/cat/index.ts +26 -0
- package/src/motion/cat/rig.ts +102 -0
- package/src/motion/cat/scene.ts +181 -0
- package/src/motion/configurable/config.ts +420 -0
- package/src/motion/configurable/controls.ts +93 -0
- package/src/motion/easing.ts +55 -0
- package/src/motion/fit.ts +8 -0
- package/src/motion/index.ts +29 -0
- package/src/motion/neon/GlowRenderer.tsx +83 -0
- package/src/motion/neon/NeonCanvas.tsx +175 -0
- package/src/motion/neon/NeonText.tsx +113 -0
- package/src/motion/neon/NeonTextFrame.tsx +67 -0
- package/src/motion/neon/artwork.ts +95 -0
- package/src/motion/neon/audio.ts +162 -0
- package/src/motion/neon/config.ts +484 -0
- package/src/motion/neon/flicker.ts +225 -0
- package/src/motion/neon/fonts.ts +76 -0
- package/src/motion/neon/frame.ts +34 -0
- package/src/motion/neon/glitch.ts +142 -0
- package/src/motion/neon/index.ts +41 -0
- package/src/motion/neon/layers.tsx +209 -0
- package/src/motion/neon/material.ts +88 -0
- package/src/motion/neon/random.ts +40 -0
- package/src/motion/neon/scene.ts +610 -0
- package/src/motion/neon/synth.ts +188 -0
- package/src/motion/neon/typography.ts +102 -0
- package/src/motion/neon/wall.ts +157 -0
- package/src/motion/paperfold/PaperFold.tsx +45 -0
- package/src/motion/paperfold/PaperFoldFrame.tsx +576 -0
- package/src/motion/paperfold/PaperFoldPlayer.tsx +80 -0
- package/src/motion/paperfold/art.ts +455 -0
- package/src/motion/paperfold/config.ts +98 -0
- package/src/motion/paperfold/controls.ts +557 -0
- package/src/motion/paperfold/engine.ts +852 -0
- package/src/motion/paperfold/fonts.ts +21 -0
- package/src/motion/paperfold/index.ts +30 -0
- package/src/motion/paperfold/manipulate.ts +188 -0
- package/src/motion/paperfold/presets.ts +117 -0
- package/src/motion/paperfold/template.ts +38 -0
- package/src/motion/player.ts +207 -0
- package/src/motion/promo/PromoFrame.tsx +501 -0
- package/src/motion/promo/PromoShowcasePlayer.tsx +78 -0
- package/src/motion/promo/config.ts +479 -0
- package/src/motion/promo/controls.ts +643 -0
- package/src/motion/promo/easing.ts +36 -0
- package/src/motion/promo/engine.ts +587 -0
- package/src/motion/promo/fonts.ts +16 -0
- package/src/motion/promo/icons.tsx +29 -0
- package/src/motion/promo/index.ts +24 -0
- package/src/motion/promo/presets.ts +40 -0
- package/src/motion/promo/template.ts +36 -0
- package/src/motion/replication2/Replication2Player.tsx +115 -0
- package/src/motion/replication2/config.ts +323 -0
- package/src/motion/replication2/controls.ts +336 -0
- package/src/motion/replication2/driver.ts +92 -0
- package/src/motion/replication2/easing.ts +88 -0
- package/src/motion/replication2/engine.ts +539 -0
- package/src/motion/replication2/html.ts +87 -0
- package/src/motion/replication2/index.ts +14 -0
- package/src/motion/replication2/measure.ts +28 -0
- package/src/motion/replication2/metrics.ts +7 -0
- package/src/motion/replication2/presets.ts +63 -0
- package/src/motion/replication2/riv.ts +4 -0
- package/src/motion/replication2/rive-contract.ts +165 -0
- package/src/motion/replication2/template.ts +33 -0
- package/src/motion/sample.ts +173 -0
- package/src/motion/templates/hey-template.ts +1553 -0
- package/src/motion/templates/index.ts +17 -0
- package/src/motion/templates/word-motion.ts +1166 -0
- package/src/motion/types.ts +162 -0
- package/src/motion/typesurface/TypeSurfaceCanvas.tsx +73 -0
- package/src/motion/typesurface/art.ts +639 -0
- package/src/motion/typesurface/config.ts +486 -0
- package/src/motion/typesurface/engine.ts +586 -0
- package/src/motion/typesurface/fonts.ts +63 -0
- package/src/motion/typesurface/index.ts +16 -0
- package/src/motion/typesurface/layout.ts +133 -0
- package/src/motion/typesurface/ops.ts +196 -0
- package/src/motion/typesurface/presets.ts +199 -0
- package/src/motion/typesurface/renderer.ts +579 -0
- package/src/motion/typesurface/shaders.ts +303 -0
- package/src/motion/typesurface/surfaces.ts +223 -0
- package/src/motion/typesurface/text.ts +35 -0
- package/src/motion/typesurface/timeline.ts +58 -0
- package/src/motion/validate.ts +101 -0
- package/src/native/RiveReceiptStage.tsx +8 -155
- package/src/native/riveReceiptStageFactory.tsx +175 -0
- package/src/tokens/stage.ts +6 -0
- package/tools/ask/dist/components.mjs +6887 -46
- package/tools/ask/mcp.mjs +80 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **Text geometry.** The text is laid out once into a block (surface units): lines, and each
|
|
3
|
+
* glyph's box on its line. The raster draws exactly this layout, and the mesh uses the glyph boxes
|
|
4
|
+
* to land letters one by one (morph) and to spread them apart mid-morph. Kerning is kept: a
|
|
5
|
+
* glyph's position is the width of everything before it on the line. Pure; the width of a string
|
|
6
|
+
* comes from a measurer (a canvas in the browser, an estimate on a server).
|
|
7
|
+
*/
|
|
8
|
+
import type { TSTypography } from './config';
|
|
9
|
+
|
|
10
|
+
/** Width of `text` in surface units at `typography.fontSize`, letter spacing excluded. */
|
|
11
|
+
export type TSMeasurer = (text: string, typography: TSTypography) => number;
|
|
12
|
+
|
|
13
|
+
export type TSGlyph = { ch: string; x0: number; x1: number; order: number };
|
|
14
|
+
export type TSLine = { text: string; glyphs: TSGlyph[]; left: number; width: number; top: number; baseline: number; bottom: number };
|
|
15
|
+
export type TSTextLayout = {
|
|
16
|
+
/** Block size, surface units, padding included. */
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
pad: number;
|
|
20
|
+
fontSize: number;
|
|
21
|
+
lines: TSLine[];
|
|
22
|
+
/** Glyphs that are not spaces, in reading order. */
|
|
23
|
+
glyphCount: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const NARROW = new Set([...'iljtfr.,:;!|\'`I1()[]{} ']);
|
|
27
|
+
const WIDE = new Set([...'MWmw@%&']);
|
|
28
|
+
|
|
29
|
+
/** A font-free width estimate: good enough for a server render or a test. */
|
|
30
|
+
export const estimateMeasurer: TSMeasurer = (text, t) => {
|
|
31
|
+
const fam = t.fontFamily.toLowerCase();
|
|
32
|
+
const mono = /mono|courier|code/.test(fam);
|
|
33
|
+
const condensed = /condensed|oswald|bebas|anton|league gothic|narrow|compressed/.test(fam);
|
|
34
|
+
let w = 0;
|
|
35
|
+
for (const ch of text) {
|
|
36
|
+
if (mono) { w += 0.6; continue; }
|
|
37
|
+
if (ch === ' ') w += 0.27;
|
|
38
|
+
else if (NARROW.has(ch)) w += 0.3;
|
|
39
|
+
else if (WIDE.has(ch)) w += 0.86;
|
|
40
|
+
else if (ch >= 'A' && ch <= 'Z') w += 0.66;
|
|
41
|
+
else if (ch >= '0' && ch <= '9') w += 0.56;
|
|
42
|
+
else w += 0.52;
|
|
43
|
+
}
|
|
44
|
+
const weight = 1 + (t.fontWeight - 400) / 2200;
|
|
45
|
+
return w * t.fontSize * weight * (condensed ? 0.7 : 1);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
function wrapLine(line: string, maxWidth: number, width: (s: string) => number): string[] {
|
|
49
|
+
if (maxWidth <= 0 || width(line) <= maxWidth) return [line];
|
|
50
|
+
const words = line.split(/(\s+)/);
|
|
51
|
+
const out: string[] = [];
|
|
52
|
+
let cur = '';
|
|
53
|
+
for (const w of words) {
|
|
54
|
+
const next = cur + w;
|
|
55
|
+
if (cur.trim() && width(next.trimEnd()) > maxWidth) {
|
|
56
|
+
out.push(cur.trimEnd());
|
|
57
|
+
cur = w.trimStart();
|
|
58
|
+
} else cur = next;
|
|
59
|
+
}
|
|
60
|
+
if (cur.trim()) out.push(cur.trimEnd());
|
|
61
|
+
return out.length ? out : [line];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** Lay out `text` as a block. Pure. */
|
|
65
|
+
export function layoutText(text: string, t: TSTypography, maxWidth: number, measure: TSMeasurer = estimateMeasurer): TSTextLayout {
|
|
66
|
+
const fs = t.fontSize;
|
|
67
|
+
const ls = t.letterSpacing;
|
|
68
|
+
const chars = (s: string) => [...s];
|
|
69
|
+
const width = (s: string) => {
|
|
70
|
+
const n = chars(s).length;
|
|
71
|
+
return n ? measure(s, t) + ls * (n - 1) : 0;
|
|
72
|
+
};
|
|
73
|
+
const rows = (text || ' ').split('\n').flatMap((l) => wrapLine(l, maxWidth, width));
|
|
74
|
+
const pad = Math.round(fs * 0.45 + 12);
|
|
75
|
+
const pitch = fs * t.lineHeight;
|
|
76
|
+
const widths = rows.map(width);
|
|
77
|
+
const inner = Math.max(1, ...widths);
|
|
78
|
+
let order = 0;
|
|
79
|
+
const lines: TSLine[] = rows.map((row, k) => {
|
|
80
|
+
const w = widths[k]!;
|
|
81
|
+
const left = pad + (t.align === 'left' ? 0 : t.align === 'right' ? inner - w : (inner - w) / 2);
|
|
82
|
+
const top = pad + k * pitch;
|
|
83
|
+
const cs = chars(row);
|
|
84
|
+
const glyphs: TSGlyph[] = [];
|
|
85
|
+
let prefix = '';
|
|
86
|
+
for (let i = 0; i < cs.length; i++) {
|
|
87
|
+
const x0 = left + (prefix ? measure(prefix, t) : 0) + ls * i;
|
|
88
|
+
prefix += cs[i];
|
|
89
|
+
const x1 = left + measure(prefix, t) + ls * i;
|
|
90
|
+
glyphs.push({ ch: cs[i]!, x0, x1, order: cs[i] === ' ' ? order : order++ });
|
|
91
|
+
}
|
|
92
|
+
// Cap height ≈ 0.7 em sits centred in the line.
|
|
93
|
+
const baseline = top + pitch / 2 + fs * 0.35;
|
|
94
|
+
return { text: row, glyphs, left, width: w, top, baseline, bottom: top + pitch };
|
|
95
|
+
});
|
|
96
|
+
return { width: inner + pad * 2, height: pitch * rows.length + pad * 2, pad, fontSize: fs, lines, glyphCount: order };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* How far letters move apart at morph `m`: nothing at rest and when landed, most mid-way. Capped so
|
|
101
|
+
* the longest line grows by at most a quarter, and stays on the surface.
|
|
102
|
+
*/
|
|
103
|
+
export function morphGap(m: number, layout: TSTextLayout): number {
|
|
104
|
+
const most = Math.max(2, ...layout.lines.map((l) => l.glyphs.length));
|
|
105
|
+
const cap = (0.25 * (layout.width - layout.pad * 2)) / (most - 1);
|
|
106
|
+
return Math.pow(Math.sin(Math.PI * Math.min(1, Math.max(0, m))), 1.4) * Math.min(layout.fontSize * 0.42, cap);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** A glyph's sideways shift when letters are `gap` apart: centred on its line. */
|
|
110
|
+
export function glyphShift(line: TSLine, index: number, gap: number): number {
|
|
111
|
+
const n = line.glyphs.length;
|
|
112
|
+
return (index - (n - 1) / 2) * gap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The glyph under block point (bx, by) when letters are `gap` apart, or null off the text. The
|
|
117
|
+
* shader runs the same search, so a vertex and the pixels around it agree on their letter.
|
|
118
|
+
*/
|
|
119
|
+
export function glyphAt(layout: TSTextLayout, bx: number, by: number, gap: number): { line: number; index: number; glyph: TSGlyph; shift: number } | null {
|
|
120
|
+
let li = 0;
|
|
121
|
+
for (let k = 0; k < layout.lines.length; k++) if (by >= layout.lines[k]!.top) li = k;
|
|
122
|
+
const line = layout.lines[li];
|
|
123
|
+
if (!line || !line.glyphs.length) return null;
|
|
124
|
+
let best = 0, bestD = Infinity;
|
|
125
|
+
for (let i = 0; i < line.glyphs.length; i++) {
|
|
126
|
+
const g = line.glyphs[i]!;
|
|
127
|
+
const sh = glyphShift(line, i, gap);
|
|
128
|
+
const c = (g.x0 + g.x1) / 2 + sh;
|
|
129
|
+
const d = Math.abs(bx - c);
|
|
130
|
+
if (d < bestD) { bestD = d; best = i; }
|
|
131
|
+
}
|
|
132
|
+
return { line: li, index: best, glyph: line.glyphs[best]!, shift: glyphShift(line, best, gap) };
|
|
133
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **Deformation operators** — the shared vocabulary every surface is built from. Each maps a point
|
|
3
|
+
* of a sheet to where it is after one physical operation, in place, with no allocation:
|
|
4
|
+
*
|
|
5
|
+
* bend a crease: one side rotates about a line through a rounded zone (fold, double fold)
|
|
6
|
+
* roll the sheet winds up from an edge onto a tightening spiral (a rolled newspaper)
|
|
7
|
+
* cylinder the sheet wraps a cylinder (a bottle label, a curved plate, a rolled tube)
|
|
8
|
+
* crumple a network of sharp creases: planar facets, ridges and valleys, and shrinkage
|
|
9
|
+
* rotate rigid turns of the whole object (horizontal / vertical distortion)
|
|
10
|
+
*
|
|
11
|
+
* Frame: the sheet starts in the plane z = 0, x right, y up, the printed side facing +z (the
|
|
12
|
+
* camera). Every operator is an isometry of the sheet, or close to one, so text on it keeps its
|
|
13
|
+
* length and only bends, which is what makes the letters look physically attached. Pure; no React.
|
|
14
|
+
*/
|
|
15
|
+
import { hash32 } from '../neon/random';
|
|
16
|
+
|
|
17
|
+
export type Vec3 = [number, number, number];
|
|
18
|
+
|
|
19
|
+
const clamp = (v: number, lo: number, hi: number) => (v < lo ? lo : v > hi ? hi : v);
|
|
20
|
+
export const smoothstep = (a: number, b: number, v: number) => {
|
|
21
|
+
const t = clamp((v - a) / (b - a), 0, 1);
|
|
22
|
+
return t * t * (3 - 2 * t);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/* ---------------- bend (a fold) ---------------- */
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A crease. `px, py` is a point on the crease line, `dx, dy` its unit direction; the moving side is
|
|
29
|
+
* the one `(nx, ny) = (dy, −dx)` points to. `theta` is the signed angle reached (radians; positive
|
|
30
|
+
* lifts toward +z) and `width` the arc length of the rounded zone. Points in the zone lie on a
|
|
31
|
+
* circular arc of radius width/|θ|; beyond it they turn rigidly by θ. Height above the sheet (z)
|
|
32
|
+
* is carried through the bend, so stacked layers and creased paper fold together. `core` widens the
|
|
33
|
+
* crease so layers already folded onto its inner side wrap around instead of turning inside out.
|
|
34
|
+
*/
|
|
35
|
+
export type Bend = { px: number; py: number; dx: number; dy: number; theta: number; width: number; core?: number };
|
|
36
|
+
|
|
37
|
+
export function bend(p: Vec3, b: Bend): void {
|
|
38
|
+
if (Math.abs(b.theta) < 1e-5) return;
|
|
39
|
+
const nx = b.dy, ny = -b.dx;
|
|
40
|
+
const rx = p[0] - b.px, ry = p[1] - b.py;
|
|
41
|
+
const d = rx * nx + ry * ny;
|
|
42
|
+
if (d <= 0) return;
|
|
43
|
+
const t = rx * b.dx + ry * b.dy;
|
|
44
|
+
const h = p[2];
|
|
45
|
+
const w = Math.max(b.width, 1e-5);
|
|
46
|
+
const sig = b.theta > 0 ? 1 : -1;
|
|
47
|
+
const R = w / Math.abs(b.theta) + (b.core ?? 0);
|
|
48
|
+
const zone = Math.abs(b.theta) * R;
|
|
49
|
+
const s = Math.min(d, zone);
|
|
50
|
+
const phi = b.theta * (s / zone);
|
|
51
|
+
// Rotate the radial vector (0, h − σR) about the centre (0, σR) by φ.
|
|
52
|
+
const vy = h - sig * R;
|
|
53
|
+
const c = Math.cos(phi), sn = Math.sin(phi);
|
|
54
|
+
let dd = -vy * sn;
|
|
55
|
+
let zz = sig * R + vy * c;
|
|
56
|
+
if (d > zone) {
|
|
57
|
+
dd += (d - zone) * Math.cos(b.theta);
|
|
58
|
+
zz += (d - zone) * Math.sin(b.theta);
|
|
59
|
+
}
|
|
60
|
+
p[0] = b.px + t * b.dx + dd * nx;
|
|
61
|
+
p[1] = b.py + t * b.dy + dd * ny;
|
|
62
|
+
p[2] = zz;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Signed distance from the crease (positive on the moving side), for shading and debug. */
|
|
66
|
+
export function bendDistance(x: number, y: number, b: Bend): number {
|
|
67
|
+
return (x - b.px) * b.dy - (y - b.py) * b.dx;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ---------------- roll (a spiral from one edge) ---------------- */
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The sheet winds up from an edge. `e` measures the distance from the rolling edge into the sheet
|
|
74
|
+
* along (ex, ey); everything nearer the edge than `reach` is wound onto a spiral whose outer radius
|
|
75
|
+
* is `radius` and that tightens toward the edge (the edge is the innermost turn), so turns never
|
|
76
|
+
* pass through each other. `sign` −1 curls away from the camera: the printed side stays outside.
|
|
77
|
+
*/
|
|
78
|
+
export type Roll = { ox: number; oy: number; ex: number; ey: number; reach: number; radius: number; inner: number; length: number; sign: number };
|
|
79
|
+
|
|
80
|
+
export function roll(p: Vec3, r: Roll): void {
|
|
81
|
+
if (r.reach <= 1e-5) return;
|
|
82
|
+
const rx = p[0] - r.ox, ry = p[1] - r.oy;
|
|
83
|
+
const e = rx * r.ex + ry * r.ey;
|
|
84
|
+
if (e >= r.reach) return;
|
|
85
|
+
const t = rx * -r.ey + ry * r.ex;
|
|
86
|
+
const s = r.reach - Math.max(e, r.reach - r.length);
|
|
87
|
+
// r(φ) = R − kφ, s(φ) = Rφ − kφ²/2, and the spiral ends at `inner` after the whole length.
|
|
88
|
+
const R = r.radius;
|
|
89
|
+
const k = Math.max(1e-6, ((R - r.inner) * (R + r.inner)) / (2 * r.length));
|
|
90
|
+
const disc = Math.max(0, R * R - 2 * k * s);
|
|
91
|
+
const phi = (R - Math.sqrt(disc)) / k;
|
|
92
|
+
const rad = Math.max(1e-4, R - k * phi - r.sign * p[2]);
|
|
93
|
+
const ee = r.reach - rad * Math.sin(phi);
|
|
94
|
+
const zz = r.sign * R - rad * r.sign * Math.cos(phi);
|
|
95
|
+
p[0] = r.ox + ee * r.ex + t * -r.ey;
|
|
96
|
+
p[1] = r.oy + ee * r.ey + t * r.ex;
|
|
97
|
+
p[2] = zz;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ---------------- cylinder (wrap around an axis) ---------------- */
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Wrap onto a cylinder whose axis is parallel to y, behind the sheet, at distance 1/κ. κ = 0 is
|
|
104
|
+
* flat; the front (x = 0) never moves, so the text in the middle stays put while its ends curve
|
|
105
|
+
* away. Arc length is kept: a label of width w covers w / radius radians.
|
|
106
|
+
*/
|
|
107
|
+
export function cylinder(p: Vec3, kappa: number): void {
|
|
108
|
+
if (Math.abs(kappa) < 1e-6) return;
|
|
109
|
+
const r = 1 / kappa + p[2];
|
|
110
|
+
const a = p[0] * kappa;
|
|
111
|
+
p[0] = Math.sin(a) * r;
|
|
112
|
+
p[2] = Math.cos(a) * r - 1 / kappa;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* ---------------- crumple (a crease network) ---------------- */
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* One crease of a crumple: a straight ridge (or valley) with planar flanks. Crumpled paper is a
|
|
119
|
+
* network of such creases; their sum gives flat facets, sharp ridges and the shrinkage the ridges
|
|
120
|
+
* take up.
|
|
121
|
+
*/
|
|
122
|
+
export type Crease = { cx: number; cy: number; dx: number; dy: number; half: number; width: number; height: number };
|
|
123
|
+
|
|
124
|
+
/** The creases of one crumple, in sheet units where the sheet is 1 wide. Deterministic per seed. */
|
|
125
|
+
export function crumpleCreases(seed: number, scale: number, aspect: number): Crease[] {
|
|
126
|
+
const out: Crease[] = [];
|
|
127
|
+
const r = (i: number, salt: number) => hash32(seed, i, salt) / 4294967296;
|
|
128
|
+
const layer = (count: number, base: number, lenMin: number, lenMax: number, wMin: number, wMax: number, amp: number, salt: number) => {
|
|
129
|
+
for (let i = 0; i < count; i++) {
|
|
130
|
+
const a = r(i, salt + 1) * Math.PI;
|
|
131
|
+
const sgn = r(i, salt + 2) < 0.62 ? 1 : -1;
|
|
132
|
+
out.push({
|
|
133
|
+
cx: (r(i, salt + 3) - 0.5) * 1.25,
|
|
134
|
+
cy: (r(i, salt + 4) - 0.5) * 1.25 * aspect,
|
|
135
|
+
dx: Math.cos(a), dy: Math.sin(a),
|
|
136
|
+
half: (lenMin + (lenMax - lenMin) * r(i, salt + 5)) * scale * base,
|
|
137
|
+
width: (wMin + (wMax - wMin) * r(i, salt + 6)) * scale,
|
|
138
|
+
height: sgn * amp * (0.35 + 0.65 * r(i, salt + 7)),
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
const k = Math.round(26 / Math.max(0.5, scale));
|
|
143
|
+
layer(k, 1, 0.3, 0.85, 0.06, 0.17, 1, 10);
|
|
144
|
+
layer(k * 2 + 12, 1, 0.12, 0.35, 0.035, 0.08, 0.3, 20);
|
|
145
|
+
return out;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The crumple field at (x, y) (sheet units, 1 wide): `out = [dx, dy, dz]` for a unit crumple.
|
|
150
|
+
* `fine` keeps only the small creases, which are the wrinkles.
|
|
151
|
+
*/
|
|
152
|
+
export function crumpleField(creases: readonly Crease[], x: number, y: number, out: Vec3, fine = false): void {
|
|
153
|
+
let dx = 0, dy = 0, dz = 0;
|
|
154
|
+
for (const c of creases) {
|
|
155
|
+
if (fine && Math.abs(c.height) > 0.5) continue;
|
|
156
|
+
const rx = x - c.cx, ry = y - c.cy;
|
|
157
|
+
const along = rx * c.dx + ry * c.dy;
|
|
158
|
+
const across = rx * -c.dy + ry * c.dx;
|
|
159
|
+
const aa = Math.abs(across);
|
|
160
|
+
if (aa >= c.width) continue;
|
|
161
|
+
const la = Math.abs(along) / c.half;
|
|
162
|
+
if (la >= 1) continue;
|
|
163
|
+
const win = la < 0.55 ? 1 : 1 - smoothstep(0.55, 1, la);
|
|
164
|
+
const tent = (1 - aa / c.width) * win;
|
|
165
|
+
dz += c.height * tent * c.width;
|
|
166
|
+
// The paper a ridge stands up in comes from both sides of it: pull the flanks in.
|
|
167
|
+
const pull = -0.12 * Math.sign(across) * Math.abs(c.height) * c.width * tent;
|
|
168
|
+
dx += pull * -c.dy;
|
|
169
|
+
dy += pull * c.dx;
|
|
170
|
+
}
|
|
171
|
+
out[0] = dx; out[1] = dy; out[2] = dz;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* ---------------- rigid transforms ---------------- */
|
|
175
|
+
|
|
176
|
+
/** Rotate about the y axis (a), then x (b), then z (c), radians. */
|
|
177
|
+
export function rotate(p: Vec3, a: number, b: number, c: number): void {
|
|
178
|
+
if (a) {
|
|
179
|
+
const ca = Math.cos(a), sa = Math.sin(a);
|
|
180
|
+
const x = p[0] * ca + p[2] * sa;
|
|
181
|
+
p[2] = -p[0] * sa + p[2] * ca;
|
|
182
|
+
p[0] = x;
|
|
183
|
+
}
|
|
184
|
+
if (b) {
|
|
185
|
+
const cb = Math.cos(b), sb = Math.sin(b);
|
|
186
|
+
const y = p[1] * cb - p[2] * sb;
|
|
187
|
+
p[2] = p[1] * sb + p[2] * cb;
|
|
188
|
+
p[1] = y;
|
|
189
|
+
}
|
|
190
|
+
if (c) {
|
|
191
|
+
const cc = Math.cos(c), sc = Math.sin(c);
|
|
192
|
+
const x = p[0] * cc - p[1] * sc;
|
|
193
|
+
p[1] = p[0] * sc + p[1] * cc;
|
|
194
|
+
p[0] = x;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/* eslint-disable comppack/no-raw-colour -- preset type and ink colours are experiment content. */
|
|
2
|
+
/**
|
|
3
|
+
* **Experiments.** Each preset is a complete config: text, typography, surface and state, how far
|
|
4
|
+
* every transformation goes, the material, and the stages that play it. They are starting points
|
|
5
|
+
* for looking, not fixed animations: every value is still a slider. Plus the helpers that put a
|
|
6
|
+
* surface into a named state and build an experiment from a few words (for agents).
|
|
7
|
+
*/
|
|
8
|
+
import { findTypeSurfaceFont } from './fonts';
|
|
9
|
+
import { DEFAULT_TYPE_SURFACE, REST_DEFORMATION, resolveTypeSurface, type TSStage, type TSSurfaceType, type TypeSurfaceConfig, type TypeSurfaceConfigInput } from './config';
|
|
10
|
+
import { getSurface } from './surfaces';
|
|
11
|
+
|
|
12
|
+
const isObj = (v: unknown): v is Record<string, unknown> => typeof v === 'object' && v !== null && !Array.isArray(v);
|
|
13
|
+
function merge<T>(base: T, over: unknown): T {
|
|
14
|
+
if (!isObj(base) || !isObj(over)) return (over === undefined ? base : over) as T;
|
|
15
|
+
const out: Record<string, unknown> = { ...base };
|
|
16
|
+
for (const [k, v] of Object.entries(over)) out[k] = merge((base as Record<string, unknown>)[k], v);
|
|
17
|
+
return out as T;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Put the surface in a named state (`SURFACES[type].states`). The surface's shape and the camera
|
|
22
|
+
* change; the text, and how far it has wrapped and morphed, do not.
|
|
23
|
+
*/
|
|
24
|
+
export function applySurfaceState(config: TypeSurfaceConfig, stateId: string): TypeSurfaceConfig {
|
|
25
|
+
const def = getSurface(config.surface.type);
|
|
26
|
+
const state = def.states[stateId];
|
|
27
|
+
if (!state) return config;
|
|
28
|
+
const deformation = merge(REST_DEFORMATION, state.deformation);
|
|
29
|
+
return {
|
|
30
|
+
...config,
|
|
31
|
+
surface: { ...config.surface, state: stateId },
|
|
32
|
+
deformation: { ...deformation, wrap: config.deformation.wrap, morph: config.deformation.morph },
|
|
33
|
+
view: { ...config.view, roll: 0, ...state.view },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Switch surface: its default state and its natural text material, keeping the words and type.
|
|
39
|
+
* Stages that drive a transformation the new surface has no use for are kept; they just do nothing.
|
|
40
|
+
*/
|
|
41
|
+
export function switchSurface(config: TypeSurfaceConfig, type: TSSurfaceType | string): TypeSurfaceConfig {
|
|
42
|
+
const def = getSurface(type);
|
|
43
|
+
const next: TypeSurfaceConfig = { ...config, surface: { ...config.surface, type: type as TSSurfaceType, color: null }, material: { ...config.material, ...def.material } };
|
|
44
|
+
return applySurfaceState(next, def.defaultState);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const stage = (key: TSStage['key'], start: number, end: number, label?: string, out?: [number, number]): TSStage =>
|
|
48
|
+
({ key, start, end, easing: 'ease-in-out', label: label ?? key, ...(out ? { outStart: out[0], outEnd: out[1] } : {}) });
|
|
49
|
+
|
|
50
|
+
export type TypeSurfacePreset = { id: string; name: string; description: string; config: TypeSurfaceConfig };
|
|
51
|
+
|
|
52
|
+
const on = (type: TSSurfaceType, input: TypeSurfaceConfigInput): TypeSurfaceConfig => {
|
|
53
|
+
const def = getSurface(type);
|
|
54
|
+
const base = { ...DEFAULT_TYPE_SURFACE, material: { ...DEFAULT_TYPE_SURFACE.material, ...def.material } };
|
|
55
|
+
return resolveTypeSurface({ ...input, surface: { type, state: def.defaultState, seed: 7, color: null, ...input.surface } }, { ...base, deformation: REST_DEFORMATION });
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const ANTON = "'Anton', Impact, sans-serif";
|
|
59
|
+
const PLAYFAIR = "'Playfair Display', Georgia, serif";
|
|
60
|
+
|
|
61
|
+
export const TYPE_SURFACE_PRESETS: TypeSurfacePreset[] = [
|
|
62
|
+
{
|
|
63
|
+
id: 'newspaper-fold', name: 'Newspaper · Fold', description: 'The headline lands, then the page folds under through NEWS: the letters wrap round the crease and vanish beneath.',
|
|
64
|
+
config: on('newspaper', {
|
|
65
|
+
text: 'BREAKING NEWS', typography: { fontFamily: ANTON, fontSize: 132, color: '#E0271B' },
|
|
66
|
+
deformation: { wrap: 1, fold: { amount: 1, position: 0.7, angle: 180, width: 0.03, direction: 'under', influence: 0.8 } },
|
|
67
|
+
material: { blend: 0.55 },
|
|
68
|
+
animation: { duration: 9000, stages: [stage('wrap', 0.03, 0.22), stage('blend', 0.12, 0.28, 'print'), stage('fold', 0.32, 0.75)] },
|
|
69
|
+
}),
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 'newspaper-fold-word', name: 'Newspaper · Crease through a word', description: 'The hard case: a crease runs through the middle of a word. Letters compress, turn, darken and pass behind.',
|
|
73
|
+
config: on('newspaper', {
|
|
74
|
+
text: 'EXTRAORDINARY', typography: { fontFamily: "'Playfair Display', Georgia, serif", fontWeight: 900, fontSize: 118, letterSpacing: 0, color: '#141210' },
|
|
75
|
+
placement: { y: 0.3 },
|
|
76
|
+
deformation: { wrap: 1, tiltX: -0.12, fold: { amount: 1, position: 0.5, angle: 80, width: 0.018, direction: 'over', influence: 1 } },
|
|
77
|
+
material: { blend: 0.9 },
|
|
78
|
+
animation: { duration: 7000, stages: [stage('fold', 0.1, 0.7)] },
|
|
79
|
+
}),
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 'newspaper-four-folds', name: 'Newspaper · Four folds', description: 'An accordion of four creases, the farthest folded first; the last crease runs through the headline, so the lower half of the letters tilts away.',
|
|
83
|
+
config: on('newspaper', {
|
|
84
|
+
text: 'BREAKING NEWS', typography: { fontFamily: ANTON, fontSize: 150, color: '#E0271B' }, placement: { y: 0.3 },
|
|
85
|
+
deformation: {
|
|
86
|
+
wrap: 1,
|
|
87
|
+
fold: { amount: 1, position: 0.84, angle: 100, direction: 'under', orientation: 'horizontal', width: 0.02 },
|
|
88
|
+
fold2: { amount: 1, position: 0.68, angle: 100, direction: 'over', orientation: 'horizontal', width: 0.02 },
|
|
89
|
+
fold3: { amount: 1, position: 0.52, angle: 100, direction: 'under', orientation: 'horizontal', width: 0.02 },
|
|
90
|
+
fold4: { amount: 1, position: 0.31, angle: 50, direction: 'over', orientation: 'horizontal', width: 0.02, influence: 1 },
|
|
91
|
+
},
|
|
92
|
+
material: { blend: 0.85 },
|
|
93
|
+
animation: { duration: 10000, stages: [stage('fold', 0.05, 0.28), stage('fold2', 0.28, 0.5), stage('fold3', 0.5, 0.72), stage('fold4', 0.72, 0.94)] },
|
|
94
|
+
}),
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'newspaper-wraps', name: 'Newspaper · Wraps', description: 'Both sides wrap round rods and the bottom rolls under a third: the headline stays on the flat middle, the columns curve away.',
|
|
98
|
+
config: on('newspaper', {
|
|
99
|
+
text: 'BREAKING NEWS', typography: { fontFamily: ANTON, fontSize: 120, color: '#E0271B' }, placement: { y: 0.34 },
|
|
100
|
+
deformation: {
|
|
101
|
+
wrap: 1,
|
|
102
|
+
wrap1: { amount: 1, position: 0.9, radius: 0.05, angle: 190, direction: 'under', orientation: 'vertical', side: 'far' },
|
|
103
|
+
wrap2: { amount: 1, position: 0.1, radius: 0.05, angle: 190, direction: 'under', orientation: 'vertical', side: 'near' },
|
|
104
|
+
wrap3: { amount: 1, position: 0.72, radius: 0.07, angle: 210, direction: 'under', orientation: 'horizontal', side: 'far' },
|
|
105
|
+
wrap4: { amount: 0.6, position: 0.12, radius: 0.04, angle: 120, direction: 'over', orientation: 'horizontal', side: 'near' },
|
|
106
|
+
},
|
|
107
|
+
material: { blend: 0.8 },
|
|
108
|
+
animation: { duration: 10000, stages: [stage('wrap1', 0.05, 0.3, 'wrap 1'), stage('wrap2', 0.25, 0.5, 'wrap 2'), stage('wrap3', 0.5, 0.75, 'wrap 3'), stage('wrap4', 0.72, 0.95, 'wrap 4')] },
|
|
109
|
+
}),
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'newspaper-crumple', name: 'Newspaper · Crumple', description: 'Printed headline → folded once → crushed. The letters break across facets like real newsprint.',
|
|
113
|
+
config: on('newspaper', {
|
|
114
|
+
text: 'BREAKING NEWS', typography: { fontFamily: PLAYFAIR, fontWeight: 900, fontSize: 124, letterSpacing: -2, color: '#161412' },
|
|
115
|
+
deformation: { wrap: 1, fold: { amount: 0.55, position: 0.5, orientation: 'horizontal', direction: 'under', width: 0.05 }, crumple: { amount: 0.9, scale: 1 } },
|
|
116
|
+
material: { blend: 1, halftone: 0 },
|
|
117
|
+
animation: { duration: 9000, stages: [stage('fold', 0.08, 0.3), stage('crumple', 0.32, 0.8, 'crumple')] },
|
|
118
|
+
}),
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 'newspaper-roll', name: 'Newspaper · Roll', description: 'The page rolls up from the bottom into a tube; the headline rides the outside of the roll.',
|
|
122
|
+
config: on('newspaper', {
|
|
123
|
+
text: 'BREAKING NEWS', typography: { fontFamily: ANTON, fontSize: 132, color: '#E0271B' }, placement: { y: 0.3 },
|
|
124
|
+
deformation: { wrap: 1, roll: { amount: 0.7, edge: 'bottom', direction: 'under', radius: 0.085 } },
|
|
125
|
+
material: { blend: 0.8 },
|
|
126
|
+
animation: { duration: 8000, stages: [stage('roll', 0.1, 0.8, 'roll')] },
|
|
127
|
+
}),
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: 'bottle-wrap', name: 'Bottle · Wrap', description: 'Flat label → cylinder → the type wraps it → glass reflections → printed.',
|
|
131
|
+
config: on('bottle', {
|
|
132
|
+
text: 'HELLO\nWORLD', typography: { fontFamily: "'Archivo Black', 'Arial Black', sans-serif", fontSize: 150, lineHeight: 0.92, letterSpacing: -3, color: '#161616', align: 'left' },
|
|
133
|
+
placement: { x: 0.5, y: 0.47 },
|
|
134
|
+
deformation: { wrap: 1, curve: 1 },
|
|
135
|
+
material: { blend: 1, gloss: 0.25 },
|
|
136
|
+
view: { roll: -28, motion: 0.8 },
|
|
137
|
+
animation: { duration: 9000, stages: [stage('curve', 0.05, 0.38, 'cylinder'), stage('wrap', 0.3, 0.55), stage('blend', 0.55, 0.85, 'print')] },
|
|
138
|
+
}),
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: 'wrapper-fold', name: 'Wrapper · Fold', description: 'Flat film → inflated pack → the end folds under → wrinkles → printed on the foil.',
|
|
142
|
+
config: on('wrapper', {
|
|
143
|
+
text: 'SUMMER\nSALE', typography: { fontFamily: ANTON, fontSize: 170, lineHeight: 0.9, color: '#C8102E', gradient: { enabled: true, from: '#E3262B', to: '#8E0B1F', angle: 90 } },
|
|
144
|
+
placement: { x: 0.46, y: 0.5, rotation: -6 },
|
|
145
|
+
deformation: { wrap: 1, curve: 1, wrinkle: 0.7, fold: { amount: 0.85, position: 0.82, angle: 150, width: 0.05, direction: 'under' } },
|
|
146
|
+
material: { blend: 1 },
|
|
147
|
+
animation: { duration: 9000, stages: [stage('curve', 0.05, 0.3, 'inflate'), stage('wrap', 0.12, 0.36), stage('fold', 0.36, 0.58), stage('wrinkle', 0.55, 0.75), stage('blend', 0.7, 0.92, 'print')] },
|
|
148
|
+
}),
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'fabric-fold', name: 'Fabric · Fold', description: 'Screen print on cotton: the cloth drifts into folds, then folds over; the ink moves with the weave.',
|
|
152
|
+
config: on('fabric', {
|
|
153
|
+
text: 'WEEKEND\nCLUB', typography: { fontFamily: "'Oswald', 'Arial Narrow', sans-serif", fontWeight: 700, fontSize: 150, lineHeight: 0.95, letterSpacing: 6, color: '#F2EBDD' },
|
|
154
|
+
placement: { y: 0.46 },
|
|
155
|
+
deformation: { wrap: 1, wave: 0.75, fold: { amount: 1, position: 0.88, angle: 170, width: 0.05, direction: 'over' } },
|
|
156
|
+
material: { blend: 1 }, view: { motion: 1 },
|
|
157
|
+
animation: { duration: 9000, stages: [stage('wrap', 0.03, 0.2), stage('wave', 0.15, 0.5, 'folds'), stage('fold', 0.55, 0.85)] },
|
|
158
|
+
}),
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: 'paper-crumple', name: 'Paper · Note', description: 'A marker note on a plain sheet, crushed.',
|
|
162
|
+
config: on('paper', {
|
|
163
|
+
text: 'Call me\nback!', typography: { fontFamily: "'Permanent Marker', cursive", fontSize: 118, lineHeight: 1.05, color: '#1F3FA8', letterSpacing: 0 },
|
|
164
|
+
placement: { y: 0.42, rotation: -5 },
|
|
165
|
+
deformation: { wrap: 1, crumple: { amount: 0.75, scale: 0.9 } },
|
|
166
|
+
material: { blend: 1, inkRoughness: 0.2 },
|
|
167
|
+
animation: { duration: 8000, stages: [stage('crumple', 0.15, 0.7, 'crush')] },
|
|
168
|
+
}),
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
|
|
172
|
+
export function findTypeSurfacePreset(id: string): TypeSurfacePreset | undefined {
|
|
173
|
+
return TYPE_SURFACE_PRESETS.find((p) => p.id === id);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** A few words an agent can say → a config. Unknown fonts/states are ignored, not fatal. */
|
|
177
|
+
export type TypeSurfaceShorthand = {
|
|
178
|
+
text?: string;
|
|
179
|
+
surface?: TSSurfaceType | string;
|
|
180
|
+
state?: string;
|
|
181
|
+
font?: string;
|
|
182
|
+
color?: string;
|
|
183
|
+
material?: TypeSurfaceConfig['material']['type'];
|
|
184
|
+
/** One of the preset ids to start from. */
|
|
185
|
+
preset?: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/** Build an experiment from shorthand: preset → surface → state → text, font, colour, material. */
|
|
189
|
+
export function createTypeSurface(s: TypeSurfaceShorthand = {}): TypeSurfaceConfig {
|
|
190
|
+
let cfg = findTypeSurfacePreset(s.preset ?? '')?.config ?? TYPE_SURFACE_PRESETS[0]!.config;
|
|
191
|
+
if (s.surface && s.surface !== cfg.surface.type) cfg = switchSurface(cfg, s.surface);
|
|
192
|
+
if (s.state) cfg = applySurfaceState(cfg, s.state);
|
|
193
|
+
if (s.text !== undefined) cfg = { ...cfg, text: s.text };
|
|
194
|
+
const font = s.font ? findTypeSurfaceFont(s.font) : undefined;
|
|
195
|
+
if (font) cfg = { ...cfg, typography: { ...cfg.typography, fontFamily: font.family, fontWeight: font.weights.includes(cfg.typography.fontWeight) ? cfg.typography.fontWeight : font.weights[font.weights.length - 1]! } };
|
|
196
|
+
if (s.color && /^#[0-9a-f]{6}$/i.test(s.color)) cfg = { ...cfg, typography: { ...cfg.typography, color: s.color.toUpperCase() } };
|
|
197
|
+
if (s.material) cfg = { ...cfg, material: { ...cfg.material, type: s.material } };
|
|
198
|
+
return cfg;
|
|
199
|
+
}
|