@backbay/glia 0.2.0-alpha.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/LICENSE +22 -0
- package/README.md +492 -0
- package/dist/audio/hooks/index.d.ts +15 -0
- package/dist/audio/hooks/index.d.ts.map +1 -0
- package/dist/audio/hooks/index.js +7 -0
- package/dist/audio/hooks/useAudioOverlay.d.ts +43 -0
- package/dist/audio/hooks/useAudioOverlay.d.ts.map +1 -0
- package/dist/audio/hooks/useAudioOverlay.js +48 -0
- package/dist/audio/hooks/useAudioPlayer.d.ts +14 -0
- package/dist/audio/hooks/useAudioPlayer.d.ts.map +1 -0
- package/dist/audio/hooks/useAudioPlayer.js +96 -0
- package/dist/audio/hooks/useBargeIn.d.ts +27 -0
- package/dist/audio/hooks/useBargeIn.d.ts.map +1 -0
- package/dist/audio/hooks/useBargeIn.js +65 -0
- package/dist/audio/hooks/useCognitionSpeech.d.ts +52 -0
- package/dist/audio/hooks/useCognitionSpeech.d.ts.map +1 -0
- package/dist/audio/hooks/useCognitionSpeech.js +77 -0
- package/dist/audio/hooks/useHybridSpeech.d.ts +24 -0
- package/dist/audio/hooks/useHybridSpeech.d.ts.map +1 -0
- package/dist/audio/hooks/useHybridSpeech.js +40 -0
- package/dist/audio/hooks/useRunSpeechCues.d.ts +28 -0
- package/dist/audio/hooks/useRunSpeechCues.d.ts.map +1 -0
- package/dist/audio/hooks/useRunSpeechCues.js +47 -0
- package/dist/audio/hooks/useSpeechSynthesis.d.ts +58 -0
- package/dist/audio/hooks/useSpeechSynthesis.d.ts.map +1 -0
- package/dist/audio/hooks/useSpeechSynthesis.js +154 -0
- package/dist/audio/index.d.ts +12 -0
- package/dist/audio/index.d.ts.map +1 -0
- package/dist/audio/index.js +24 -0
- package/dist/audio/overlay.d.ts +9 -0
- package/dist/audio/overlay.d.ts.map +1 -0
- package/dist/audio/overlay.js +15 -0
- package/dist/audio/planner.d.ts +51 -0
- package/dist/audio/planner.d.ts.map +1 -0
- package/dist/audio/planner.js +122 -0
- package/dist/audio/providers/httpSpeechSynthesisProvider.d.ts +33 -0
- package/dist/audio/providers/httpSpeechSynthesisProvider.d.ts.map +1 -0
- package/dist/audio/providers/httpSpeechSynthesisProvider.js +83 -0
- package/dist/audio/schema.d.ts +1741 -0
- package/dist/audio/schema.d.ts.map +1 -0
- package/dist/audio/schema.js +116 -0
- package/dist/audio/types.d.ts +175 -0
- package/dist/audio/types.d.ts.map +1 -0
- package/dist/audio/types.js +18 -0
- package/dist/cognition/controller.d.ts +97 -0
- package/dist/cognition/controller.d.ts.map +1 -0
- package/dist/cognition/controller.js +145 -0
- package/dist/cognition/hooks/index.d.ts +3 -0
- package/dist/cognition/hooks/index.d.ts.map +1 -0
- package/dist/cognition/hooks/index.js +1 -0
- package/dist/cognition/hooks/useCognition.d.ts +36 -0
- package/dist/cognition/hooks/useCognition.d.ts.map +1 -0
- package/dist/cognition/hooks/useCognition.js +88 -0
- package/dist/cognition/index.d.ts +10 -0
- package/dist/cognition/index.d.ts.map +1 -0
- package/dist/cognition/index.js +20 -0
- package/dist/cognition/reducers.d.ts +27 -0
- package/dist/cognition/reducers.d.ts.map +1 -0
- package/dist/cognition/reducers.js +152 -0
- package/dist/cognition/schema.d.ts +594 -0
- package/dist/cognition/schema.d.ts.map +1 -0
- package/dist/cognition/schema.js +102 -0
- package/dist/cognition/types.d.ts +123 -0
- package/dist/cognition/types.d.ts.map +1 -0
- package/dist/cognition/types.js +26 -0
- package/dist/components/AgentPanel.d.ts +71 -0
- package/dist/components/AgentPanel.d.ts.map +1 -0
- package/dist/components/AgentPanel.js +55 -0
- package/dist/components/BBProvider.d.ts +47 -0
- package/dist/components/BBProvider.d.ts.map +1 -0
- package/dist/components/BBProvider.js +80 -0
- package/dist/components/ClusterHero/BriefingPanel.d.ts +15 -0
- package/dist/components/ClusterHero/BriefingPanel.d.ts.map +1 -0
- package/dist/components/ClusterHero/BriefingPanel.js +54 -0
- package/dist/components/ClusterHero/ClusterAtmosphere.d.ts +8 -0
- package/dist/components/ClusterHero/ClusterAtmosphere.d.ts.map +1 -0
- package/dist/components/ClusterHero/ClusterAtmosphere.js +9 -0
- package/dist/components/ClusterHero/ClusterHero.d.ts +22 -0
- package/dist/components/ClusterHero/ClusterHero.d.ts.map +1 -0
- package/dist/components/ClusterHero/ClusterHero.js +42 -0
- package/dist/components/ClusterHero/ClusterHeroPage.d.ts +27 -0
- package/dist/components/ClusterHero/ClusterHeroPage.d.ts.map +1 -0
- package/dist/components/ClusterHero/ClusterHeroPage.js +189 -0
- package/dist/components/ClusterHero/ClusterRail.d.ts +13 -0
- package/dist/components/ClusterHero/ClusterRail.d.ts.map +1 -0
- package/dist/components/ClusterHero/ClusterRail.js +84 -0
- package/dist/components/ClusterHero/GradientVeil.d.ts +11 -0
- package/dist/components/ClusterHero/GradientVeil.d.ts.map +1 -0
- package/dist/components/ClusterHero/GradientVeil.js +22 -0
- package/dist/components/ClusterHero/HeroContent.d.ts +14 -0
- package/dist/components/ClusterHero/HeroContent.d.ts.map +1 -0
- package/dist/components/ClusterHero/HeroContent.js +49 -0
- package/dist/components/ClusterHero/LiveStrip.d.ts +8 -0
- package/dist/components/ClusterHero/LiveStrip.d.ts.map +1 -0
- package/dist/components/ClusterHero/LiveStrip.js +26 -0
- package/dist/components/ClusterHero/ScrollIndicator.d.ts +10 -0
- package/dist/components/ClusterHero/ScrollIndicator.d.ts.map +1 -0
- package/dist/components/ClusterHero/ScrollIndicator.js +18 -0
- package/dist/components/ClusterHero/SigilMonument.d.ts +13 -0
- package/dist/components/ClusterHero/SigilMonument.d.ts.map +1 -0
- package/dist/components/ClusterHero/SigilMonument.js +87 -0
- package/dist/components/ClusterHero/StructuralElements.d.ts +8 -0
- package/dist/components/ClusterHero/StructuralElements.d.ts.map +1 -0
- package/dist/components/ClusterHero/StructuralElements.js +47 -0
- package/dist/components/ClusterHero/VideoBackground.d.ts +37 -0
- package/dist/components/ClusterHero/VideoBackground.d.ts.map +1 -0
- package/dist/components/ClusterHero/VideoBackground.js +135 -0
- package/dist/components/ClusterHero/config.d.ts +20 -0
- package/dist/components/ClusterHero/config.d.ts.map +1 -0
- package/dist/components/ClusterHero/config.js +289 -0
- package/dist/components/ClusterHero/index.d.ts +17 -0
- package/dist/components/ClusterHero/index.d.ts.map +1 -0
- package/dist/components/ClusterHero/index.js +20 -0
- package/dist/components/ClusterHero/sections/CTASection.d.ts +14 -0
- package/dist/components/ClusterHero/sections/CTASection.d.ts.map +1 -0
- package/dist/components/ClusterHero/sections/CTASection.js +105 -0
- package/dist/components/ClusterHero/sections/ClusterStatsSection.d.ts +11 -0
- package/dist/components/ClusterHero/sections/ClusterStatsSection.d.ts.map +1 -0
- package/dist/components/ClusterHero/sections/ClusterStatsSection.js +121 -0
- package/dist/components/ClusterHero/sections/FeatureCardsSection.d.ts +15 -0
- package/dist/components/ClusterHero/sections/FeatureCardsSection.d.ts.map +1 -0
- package/dist/components/ClusterHero/sections/FeatureCardsSection.js +187 -0
- package/dist/components/ClusterHero/sections/index.d.ts +4 -0
- package/dist/components/ClusterHero/sections/index.d.ts.map +1 -0
- package/dist/components/ClusterHero/sections/index.js +3 -0
- package/dist/components/ClusterHero/types.d.ts +111 -0
- package/dist/components/ClusterHero/types.d.ts.map +1 -0
- package/dist/components/ClusterHero/types.js +1 -0
- package/dist/components/ClusterHero/useVideoPreload.d.ts +28 -0
- package/dist/components/ClusterHero/useVideoPreload.d.ts.map +1 -0
- package/dist/components/ClusterHero/useVideoPreload.js +60 -0
- package/dist/components/PlaySession.d.ts +48 -0
- package/dist/components/PlaySession.d.ts.map +1 -0
- package/dist/components/PlaySession.js +51 -0
- package/dist/components/SyncDocument.d.ts +50 -0
- package/dist/components/SyncDocument.d.ts.map +1 -0
- package/dist/components/SyncDocument.js +37 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +8 -0
- package/dist/core.d.ts +19 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +24 -0
- package/dist/desktop/components/desktop/Desktop.d.ts +49 -0
- package/dist/desktop/components/desktop/Desktop.d.ts.map +1 -0
- package/dist/desktop/components/desktop/Desktop.js +110 -0
- package/dist/desktop/components/desktop/DesktopIcon.d.ts +52 -0
- package/dist/desktop/components/desktop/DesktopIcon.d.ts.map +1 -0
- package/dist/desktop/components/desktop/DesktopIcon.js +185 -0
- package/dist/desktop/components/desktop/SnapZoneOverlay.d.ts +68 -0
- package/dist/desktop/components/desktop/SnapZoneOverlay.d.ts.map +1 -0
- package/dist/desktop/components/desktop/SnapZoneOverlay.js +138 -0
- package/dist/desktop/components/desktop/index.d.ts +9 -0
- package/dist/desktop/components/desktop/index.d.ts.map +1 -0
- package/dist/desktop/components/desktop/index.js +8 -0
- package/dist/desktop/components/index.d.ts +11 -0
- package/dist/desktop/components/index.d.ts.map +1 -0
- package/dist/desktop/components/index.js +13 -0
- package/dist/desktop/components/shell/Clock.d.ts +35 -0
- package/dist/desktop/components/shell/Clock.d.ts.map +1 -0
- package/dist/desktop/components/shell/Clock.js +159 -0
- package/dist/desktop/components/shell/ContextMenu.d.ts +44 -0
- package/dist/desktop/components/shell/ContextMenu.d.ts.map +1 -0
- package/dist/desktop/components/shell/ContextMenu.js +158 -0
- package/dist/desktop/components/shell/Taskbar.d.ts +111 -0
- package/dist/desktop/components/shell/Taskbar.d.ts.map +1 -0
- package/dist/desktop/components/shell/Taskbar.js +182 -0
- package/dist/desktop/components/shell/TaskbarButton.d.ts +54 -0
- package/dist/desktop/components/shell/TaskbarButton.d.ts.map +1 -0
- package/dist/desktop/components/shell/TaskbarButton.js +116 -0
- package/dist/desktop/components/shell/index.d.ts +31 -0
- package/dist/desktop/components/shell/index.d.ts.map +1 -0
- package/dist/desktop/components/shell/index.js +31 -0
- package/dist/desktop/components/window/Window.d.ts +122 -0
- package/dist/desktop/components/window/Window.d.ts.map +1 -0
- package/dist/desktop/components/window/Window.js +416 -0
- package/dist/desktop/components/window/WindowTitlebar.d.ts +71 -0
- package/dist/desktop/components/window/WindowTitlebar.d.ts.map +1 -0
- package/dist/desktop/components/window/WindowTitlebar.js +191 -0
- package/dist/desktop/components/window/index.d.ts +10 -0
- package/dist/desktop/components/window/index.d.ts.map +1 -0
- package/dist/desktop/components/window/index.js +9 -0
- package/dist/desktop/core/desktop/index.d.ts +6 -0
- package/dist/desktop/core/desktop/index.d.ts.map +1 -0
- package/dist/desktop/core/desktop/index.js +5 -0
- package/dist/desktop/core/desktop/types.d.ts +185 -0
- package/dist/desktop/core/desktop/types.d.ts.map +1 -0
- package/dist/desktop/core/desktop/types.js +6 -0
- package/dist/desktop/core/desktop/useSnapZones.d.ts +52 -0
- package/dist/desktop/core/desktop/useSnapZones.d.ts.map +1 -0
- package/dist/desktop/core/desktop/useSnapZones.js +128 -0
- package/dist/desktop/core/index.d.ts +10 -0
- package/dist/desktop/core/index.d.ts.map +1 -0
- package/dist/desktop/core/index.js +9 -0
- package/dist/desktop/core/shell/index.d.ts +6 -0
- package/dist/desktop/core/shell/index.d.ts.map +1 -0
- package/dist/desktop/core/shell/index.js +5 -0
- package/dist/desktop/core/shell/types.d.ts +169 -0
- package/dist/desktop/core/shell/types.d.ts.map +1 -0
- package/dist/desktop/core/shell/types.js +6 -0
- package/dist/desktop/core/shell/useTaskbar.d.ts +65 -0
- package/dist/desktop/core/shell/useTaskbar.d.ts.map +1 -0
- package/dist/desktop/core/shell/useTaskbar.js +221 -0
- package/dist/desktop/core/window/index.d.ts +6 -0
- package/dist/desktop/core/window/index.d.ts.map +1 -0
- package/dist/desktop/core/window/index.js +5 -0
- package/dist/desktop/core/window/types.d.ts +167 -0
- package/dist/desktop/core/window/types.d.ts.map +1 -0
- package/dist/desktop/core/window/types.js +7 -0
- package/dist/desktop/core/window/useWindowManager.d.ts +165 -0
- package/dist/desktop/core/window/useWindowManager.d.ts.map +1 -0
- package/dist/desktop/core/window/useWindowManager.js +953 -0
- package/dist/desktop/index.d.ts +40 -0
- package/dist/desktop/index.d.ts.map +1 -0
- package/dist/desktop/index.js +50 -0
- package/dist/desktop/providers/DesktopOSProvider.d.ts +93 -0
- package/dist/desktop/providers/DesktopOSProvider.d.ts.map +1 -0
- package/dist/desktop/providers/DesktopOSProvider.js +246 -0
- package/dist/desktop/providers/ThemeProvider.d.ts +51 -0
- package/dist/desktop/providers/ThemeProvider.d.ts.map +1 -0
- package/dist/desktop/providers/ThemeProvider.js +93 -0
- package/dist/desktop/providers/index.d.ts +6 -0
- package/dist/desktop/providers/index.d.ts.map +1 -0
- package/dist/desktop/providers/index.js +5 -0
- package/dist/desktop/themes/default.d.ts +18 -0
- package/dist/desktop/themes/default.d.ts.map +1 -0
- package/dist/desktop/themes/default.js +90 -0
- package/dist/desktop/themes/index.d.ts +6 -0
- package/dist/desktop/themes/index.d.ts.map +1 -0
- package/dist/desktop/themes/index.js +5 -0
- package/dist/desktop/themes/types.d.ts +147 -0
- package/dist/desktop/themes/types.d.ts.map +1 -0
- package/dist/desktop/themes/types.js +71 -0
- package/dist/emotion/constants.d.ts +35 -0
- package/dist/emotion/constants.d.ts.map +1 -0
- package/dist/emotion/constants.js +86 -0
- package/dist/emotion/controller.d.ts +97 -0
- package/dist/emotion/controller.d.ts.map +1 -0
- package/dist/emotion/controller.js +203 -0
- package/dist/emotion/hooks/index.d.ts +3 -0
- package/dist/emotion/hooks/index.d.ts.map +1 -0
- package/dist/emotion/hooks/index.js +2 -0
- package/dist/emotion/hooks/useEmotion.d.ts +60 -0
- package/dist/emotion/hooks/useEmotion.d.ts.map +1 -0
- package/dist/emotion/hooks/useEmotion.js +121 -0
- package/dist/emotion/index.d.ts +10 -0
- package/dist/emotion/index.d.ts.map +1 -0
- package/dist/emotion/index.js +13 -0
- package/dist/emotion/mapping.d.ts +55 -0
- package/dist/emotion/mapping.d.ts.map +1 -0
- package/dist/emotion/mapping.js +118 -0
- package/dist/emotion/micro-expressions.d.ts +19 -0
- package/dist/emotion/micro-expressions.d.ts.map +1 -0
- package/dist/emotion/micro-expressions.js +75 -0
- package/dist/emotion/transitions.d.ts +29 -0
- package/dist/emotion/transitions.d.ts.map +1 -0
- package/dist/emotion/transitions.js +74 -0
- package/dist/emotion/types.d.ts +84 -0
- package/dist/emotion/types.d.ts.map +1 -0
- package/dist/emotion/types.js +2 -0
- package/dist/hooks/index.d.ts +9 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +8 -0
- package/dist/hooks/useAgentRun.d.ts +36 -0
- package/dist/hooks/useAgentRun.d.ts.map +1 -0
- package/dist/hooks/useAgentRun.js +140 -0
- package/dist/hooks/useIntensity.d.ts +33 -0
- package/dist/hooks/useIntensity.d.ts.map +1 -0
- package/dist/hooks/useIntensity.js +128 -0
- package/dist/hooks/usePlaySession.d.ts +50 -0
- package/dist/hooks/usePlaySession.d.ts.map +1 -0
- package/dist/hooks/usePlaySession.js +208 -0
- package/dist/hooks/useRunStream.d.ts +39 -0
- package/dist/hooks/useRunStream.d.ts.map +1 -0
- package/dist/hooks/useRunStream.js +230 -0
- package/dist/hooks/useSync.d.ts +50 -0
- package/dist/hooks/useSync.d.ts.map +1 -0
- package/dist/hooks/useSync.js +336 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52 -0
- package/dist/lib/motion.d.ts +30 -0
- package/dist/lib/motion.d.ts.map +1 -0
- package/dist/lib/motion.js +21 -0
- package/dist/lib/utils.d.ts +35 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +102 -0
- package/dist/primitives/ambient/DustMotesLayer.d.ts +16 -0
- package/dist/primitives/ambient/DustMotesLayer.d.ts.map +1 -0
- package/dist/primitives/ambient/DustMotesLayer.js +93 -0
- package/dist/primitives/ambient/NebulaStarsLayer.d.ts +12 -0
- package/dist/primitives/ambient/NebulaStarsLayer.d.ts.map +1 -0
- package/dist/primitives/ambient/NebulaStarsLayer.js +99 -0
- package/dist/primitives/ambient/ThemedAmbientLayer.d.ts +15 -0
- package/dist/primitives/ambient/ThemedAmbientLayer.d.ts.map +1 -0
- package/dist/primitives/ambient/ThemedAmbientLayer.js +23 -0
- package/dist/primitives/ambient/index.d.ts +4 -0
- package/dist/primitives/ambient/index.d.ts.map +1 -0
- package/dist/primitives/ambient/index.js +3 -0
- package/dist/primitives/atoms/AuroraBackground/AuroraBackground.d.ts +8 -0
- package/dist/primitives/atoms/AuroraBackground/AuroraBackground.d.ts.map +1 -0
- package/dist/primitives/atoms/AuroraBackground/AuroraBackground.js +16 -0
- package/dist/primitives/atoms/AuroraBackground/index.d.ts +2 -0
- package/dist/primitives/atoms/AuroraBackground/index.d.ts.map +1 -0
- package/dist/primitives/atoms/AuroraBackground/index.js +1 -0
- package/dist/primitives/atoms/GlitchText/GlitchText.d.ts +9 -0
- package/dist/primitives/atoms/GlitchText/GlitchText.d.ts.map +1 -0
- package/dist/primitives/atoms/GlitchText/GlitchText.js +46 -0
- package/dist/primitives/atoms/GlitchText/index.d.ts +2 -0
- package/dist/primitives/atoms/GlitchText/index.d.ts.map +1 -0
- package/dist/primitives/atoms/GlitchText/index.js +1 -0
- package/dist/primitives/atoms/GlowButton/GlowButton.d.ts +19 -0
- package/dist/primitives/atoms/GlowButton/GlowButton.d.ts.map +1 -0
- package/dist/primitives/atoms/GlowButton/GlowButton.js +59 -0
- package/dist/primitives/atoms/GlowButton/index.d.ts +2 -0
- package/dist/primitives/atoms/GlowButton/index.d.ts.map +1 -0
- package/dist/primitives/atoms/GlowButton/index.js +1 -0
- package/dist/primitives/atoms/GlowInput/GlowInput.d.ts +25 -0
- package/dist/primitives/atoms/GlowInput/GlowInput.d.ts.map +1 -0
- package/dist/primitives/atoms/GlowInput/GlowInput.js +55 -0
- package/dist/primitives/atoms/GlowInput/index.d.ts +2 -0
- package/dist/primitives/atoms/GlowInput/index.d.ts.map +1 -0
- package/dist/primitives/atoms/GlowInput/index.js +1 -0
- package/dist/primitives/atoms/HUDProgressRing/HUDProgressRing.d.ts +27 -0
- package/dist/primitives/atoms/HUDProgressRing/HUDProgressRing.d.ts.map +1 -0
- package/dist/primitives/atoms/HUDProgressRing/HUDProgressRing.js +71 -0
- package/dist/primitives/atoms/HUDProgressRing/index.d.ts +2 -0
- package/dist/primitives/atoms/HUDProgressRing/index.d.ts.map +1 -0
- package/dist/primitives/atoms/HUDProgressRing/index.js +1 -0
- package/dist/primitives/atoms/IconPulse/IconPulse.d.ts +25 -0
- package/dist/primitives/atoms/IconPulse/IconPulse.d.ts.map +1 -0
- package/dist/primitives/atoms/IconPulse/IconPulse.js +111 -0
- package/dist/primitives/atoms/IconPulse/index.d.ts +2 -0
- package/dist/primitives/atoms/IconPulse/index.d.ts.map +1 -0
- package/dist/primitives/atoms/IconPulse/index.js +1 -0
- package/dist/primitives/atoms/PixelCanvas/PixelCanvas.d.ts +17 -0
- package/dist/primitives/atoms/PixelCanvas/PixelCanvas.d.ts.map +1 -0
- package/dist/primitives/atoms/PixelCanvas/PixelCanvas.js +340 -0
- package/dist/primitives/atoms/PixelCanvas/index.d.ts +2 -0
- package/dist/primitives/atoms/PixelCanvas/index.d.ts.map +1 -0
- package/dist/primitives/atoms/PixelCanvas/index.js +1 -0
- package/dist/primitives/atoms/StatBadge/StatBadge.d.ts +26 -0
- package/dist/primitives/atoms/StatBadge/StatBadge.d.ts.map +1 -0
- package/dist/primitives/atoms/StatBadge/StatBadge.js +73 -0
- package/dist/primitives/atoms/StatBadge/index.d.ts +2 -0
- package/dist/primitives/atoms/StatBadge/index.d.ts.map +1 -0
- package/dist/primitives/atoms/StatBadge/index.js +1 -0
- package/dist/primitives/atoms/TextGenerateEffect/TextGenerateEffect.d.ts +7 -0
- package/dist/primitives/atoms/TextGenerateEffect/TextGenerateEffect.d.ts.map +1 -0
- package/dist/primitives/atoms/TextGenerateEffect/TextGenerateEffect.js +26 -0
- package/dist/primitives/atoms/TextGenerateEffect/index.d.ts +2 -0
- package/dist/primitives/atoms/TextGenerateEffect/index.d.ts.map +1 -0
- package/dist/primitives/atoms/TextGenerateEffect/index.js +1 -0
- package/dist/primitives/atoms/TypingAnimation/TypingAnimation.d.ts +20 -0
- package/dist/primitives/atoms/TypingAnimation/TypingAnimation.d.ts.map +1 -0
- package/dist/primitives/atoms/TypingAnimation/TypingAnimation.js +84 -0
- package/dist/primitives/atoms/TypingAnimation/index.d.ts +2 -0
- package/dist/primitives/atoms/TypingAnimation/index.d.ts.map +1 -0
- package/dist/primitives/atoms/TypingAnimation/index.js +1 -0
- package/dist/primitives/atoms/VoiceCaptions/VoiceCaptions.d.ts +16 -0
- package/dist/primitives/atoms/VoiceCaptions/VoiceCaptions.d.ts.map +1 -0
- package/dist/primitives/atoms/VoiceCaptions/VoiceCaptions.js +192 -0
- package/dist/primitives/atoms/VoiceCaptions/index.d.ts +3 -0
- package/dist/primitives/atoms/VoiceCaptions/index.d.ts.map +1 -0
- package/dist/primitives/atoms/VoiceCaptions/index.js +1 -0
- package/dist/primitives/atoms/index.d.ts +12 -0
- package/dist/primitives/atoms/index.d.ts.map +1 -0
- package/dist/primitives/atoms/index.js +12 -0
- package/dist/primitives/environment/AuroraLayer/AuroraLayer.d.ts +3 -0
- package/dist/primitives/environment/AuroraLayer/AuroraLayer.d.ts.map +1 -0
- package/dist/primitives/environment/AuroraLayer/AuroraLayer.js +158 -0
- package/dist/primitives/environment/AuroraLayer/index.d.ts +3 -0
- package/dist/primitives/environment/AuroraLayer/index.d.ts.map +1 -0
- package/dist/primitives/environment/AuroraLayer/index.js +1 -0
- package/dist/primitives/environment/AuroraLayer/types.d.ts +16 -0
- package/dist/primitives/environment/AuroraLayer/types.d.ts.map +1 -0
- package/dist/primitives/environment/AuroraLayer/types.js +12 -0
- package/dist/primitives/environment/EnvironmentLayer/EnvironmentLayer.d.ts +23 -0
- package/dist/primitives/environment/EnvironmentLayer/EnvironmentLayer.d.ts.map +1 -0
- package/dist/primitives/environment/EnvironmentLayer/EnvironmentLayer.js +25 -0
- package/dist/primitives/environment/EnvironmentLayer/index.d.ts +5 -0
- package/dist/primitives/environment/EnvironmentLayer/index.d.ts.map +1 -0
- package/dist/primitives/environment/EnvironmentLayer/index.js +2 -0
- package/dist/primitives/environment/EnvironmentLayer/presets.d.ts +13 -0
- package/dist/primitives/environment/EnvironmentLayer/presets.d.ts.map +1 -0
- package/dist/primitives/environment/EnvironmentLayer/presets.js +98 -0
- package/dist/primitives/environment/FogLayer/FogLayer.d.ts +3 -0
- package/dist/primitives/environment/FogLayer/FogLayer.d.ts.map +1 -0
- package/dist/primitives/environment/FogLayer/FogLayer.js +77 -0
- package/dist/primitives/environment/FogLayer/index.d.ts +3 -0
- package/dist/primitives/environment/FogLayer/index.d.ts.map +1 -0
- package/dist/primitives/environment/FogLayer/index.js +1 -0
- package/dist/primitives/environment/FogLayer/types.d.ts +17 -0
- package/dist/primitives/environment/FogLayer/types.d.ts.map +1 -0
- package/dist/primitives/environment/FogLayer/types.js +26 -0
- package/dist/primitives/environment/VolumetricLight/VolumetricLight.d.ts +3 -0
- package/dist/primitives/environment/VolumetricLight/VolumetricLight.d.ts.map +1 -0
- package/dist/primitives/environment/VolumetricLight/VolumetricLight.js +145 -0
- package/dist/primitives/environment/VolumetricLight/index.d.ts +3 -0
- package/dist/primitives/environment/VolumetricLight/index.d.ts.map +1 -0
- package/dist/primitives/environment/VolumetricLight/index.js +1 -0
- package/dist/primitives/environment/VolumetricLight/types.d.ts +22 -0
- package/dist/primitives/environment/VolumetricLight/types.d.ts.map +1 -0
- package/dist/primitives/environment/VolumetricLight/types.js +12 -0
- package/dist/primitives/environment/WeatherLayer/WeatherLayer.d.ts +3 -0
- package/dist/primitives/environment/WeatherLayer/WeatherLayer.d.ts.map +1 -0
- package/dist/primitives/environment/WeatherLayer/WeatherLayer.js +157 -0
- package/dist/primitives/environment/WeatherLayer/cinematicCanvas.d.ts +6 -0
- package/dist/primitives/environment/WeatherLayer/cinematicCanvas.d.ts.map +1 -0
- package/dist/primitives/environment/WeatherLayer/cinematicCanvas.js +625 -0
- package/dist/primitives/environment/WeatherLayer/colors.d.ts +10 -0
- package/dist/primitives/environment/WeatherLayer/colors.d.ts.map +1 -0
- package/dist/primitives/environment/WeatherLayer/colors.js +14 -0
- package/dist/primitives/environment/WeatherLayer/index.d.ts +5 -0
- package/dist/primitives/environment/WeatherLayer/index.d.ts.map +1 -0
- package/dist/primitives/environment/WeatherLayer/index.js +2 -0
- package/dist/primitives/environment/WeatherLayer/leafPresets.d.ts +11 -0
- package/dist/primitives/environment/WeatherLayer/leafPresets.d.ts.map +1 -0
- package/dist/primitives/environment/WeatherLayer/leafPresets.js +9 -0
- package/dist/primitives/environment/WeatherLayer/particles.d.ts +12 -0
- package/dist/primitives/environment/WeatherLayer/particles.d.ts.map +1 -0
- package/dist/primitives/environment/WeatherLayer/particles.js +174 -0
- package/dist/primitives/environment/WeatherLayer/types.d.ts +49 -0
- package/dist/primitives/environment/WeatherLayer/types.d.ts.map +1 -0
- package/dist/primitives/environment/WeatherLayer/types.js +92 -0
- package/dist/primitives/environment/index.d.ts +17 -0
- package/dist/primitives/environment/index.d.ts.map +1 -0
- package/dist/primitives/environment/index.js +16 -0
- package/dist/primitives/environment/shared/index.d.ts +3 -0
- package/dist/primitives/environment/shared/index.d.ts.map +1 -0
- package/dist/primitives/environment/shared/index.js +2 -0
- package/dist/primitives/environment/shared/noise.d.ts +2 -0
- package/dist/primitives/environment/shared/noise.d.ts.map +1 -0
- package/dist/primitives/environment/shared/noise.js +8 -0
- package/dist/primitives/environment/shared/performance.d.ts +4 -0
- package/dist/primitives/environment/shared/performance.d.ts.map +1 -0
- package/dist/primitives/environment/shared/performance.js +28 -0
- package/dist/primitives/environment/shared/types.d.ts +18 -0
- package/dist/primitives/environment/shared/types.d.ts.map +1 -0
- package/dist/primitives/environment/shared/types.js +6 -0
- package/dist/primitives/index.d.ts +20 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +19 -0
- package/dist/primitives/molecules/KPIStat/KPIStat.d.ts +37 -0
- package/dist/primitives/molecules/KPIStat/KPIStat.d.ts.map +1 -0
- package/dist/primitives/molecules/KPIStat/KPIStat.js +84 -0
- package/dist/primitives/molecules/KPIStat/index.d.ts +2 -0
- package/dist/primitives/molecules/KPIStat/index.d.ts.map +1 -0
- package/dist/primitives/molecules/KPIStat/index.js +1 -0
- package/dist/primitives/molecules/NeonToast/NeonToast.d.ts +84 -0
- package/dist/primitives/molecules/NeonToast/NeonToast.d.ts.map +1 -0
- package/dist/primitives/molecules/NeonToast/NeonToast.js +110 -0
- package/dist/primitives/molecules/NeonToast/index.d.ts +2 -0
- package/dist/primitives/molecules/NeonToast/index.d.ts.map +1 -0
- package/dist/primitives/molecules/NeonToast/index.js +1 -0
- package/dist/primitives/molecules/ThreeDCard/ThreeDCard.d.ts +24 -0
- package/dist/primitives/molecules/ThreeDCard/ThreeDCard.d.ts.map +1 -0
- package/dist/primitives/molecules/ThreeDCard/ThreeDCard.js +67 -0
- package/dist/primitives/molecules/ThreeDCard/index.d.ts +2 -0
- package/dist/primitives/molecules/ThreeDCard/index.d.ts.map +1 -0
- package/dist/primitives/molecules/ThreeDCard/index.js +1 -0
- package/dist/primitives/molecules/index.d.ts +4 -0
- package/dist/primitives/molecules/index.d.ts.map +1 -0
- package/dist/primitives/molecules/index.js +4 -0
- package/dist/primitives/organisms/BentoGrid/BentoGrid.d.ts +13 -0
- package/dist/primitives/organisms/BentoGrid/BentoGrid.d.ts.map +1 -0
- package/dist/primitives/organisms/BentoGrid/BentoGrid.js +9 -0
- package/dist/primitives/organisms/BentoGrid/index.d.ts +2 -0
- package/dist/primitives/organisms/BentoGrid/index.d.ts.map +1 -0
- package/dist/primitives/organisms/BentoGrid/index.js +1 -0
- package/dist/primitives/organisms/CommandPalette/CommandPalette.d.ts +39 -0
- package/dist/primitives/organisms/CommandPalette/CommandPalette.d.ts.map +1 -0
- package/dist/primitives/organisms/CommandPalette/CommandPalette.js +185 -0
- package/dist/primitives/organisms/CommandPalette/index.d.ts +2 -0
- package/dist/primitives/organisms/CommandPalette/index.d.ts.map +1 -0
- package/dist/primitives/organisms/CommandPalette/index.js +1 -0
- package/dist/primitives/organisms/Glass/GlassPanel.d.ts +46 -0
- package/dist/primitives/organisms/Glass/GlassPanel.d.ts.map +1 -0
- package/dist/primitives/organisms/Glass/GlassPanel.js +124 -0
- package/dist/primitives/organisms/Glass/index.d.ts +3 -0
- package/dist/primitives/organisms/Glass/index.d.ts.map +1 -0
- package/dist/primitives/organisms/Glass/index.js +1 -0
- package/dist/primitives/organisms/index.d.ts +4 -0
- package/dist/primitives/organisms/index.d.ts.map +1 -0
- package/dist/primitives/organisms/index.js +4 -0
- package/dist/primitives/three/AgentConsole/AgentConsole.d.ts +3 -0
- package/dist/primitives/three/AgentConsole/AgentConsole.d.ts.map +1 -0
- package/dist/primitives/three/AgentConsole/AgentConsole.js +40 -0
- package/dist/primitives/three/AgentConsole/ConsoleChat.d.ts +3 -0
- package/dist/primitives/three/AgentConsole/ConsoleChat.d.ts.map +1 -0
- package/dist/primitives/three/AgentConsole/ConsoleChat.js +74 -0
- package/dist/primitives/three/AgentConsole/FocusConstellation.d.ts +3 -0
- package/dist/primitives/three/AgentConsole/FocusConstellation.d.ts.map +1 -0
- package/dist/primitives/three/AgentConsole/FocusConstellation.js +111 -0
- package/dist/primitives/three/AgentConsole/GlyphAvatar.d.ts +3 -0
- package/dist/primitives/three/AgentConsole/GlyphAvatar.d.ts.map +1 -0
- package/dist/primitives/three/AgentConsole/GlyphAvatar.js +80 -0
- package/dist/primitives/three/AgentConsole/QuickActions.d.ts +3 -0
- package/dist/primitives/three/AgentConsole/QuickActions.d.ts.map +1 -0
- package/dist/primitives/three/AgentConsole/QuickActions.js +43 -0
- package/dist/primitives/three/AgentConsole/index.d.ts +14 -0
- package/dist/primitives/three/AgentConsole/index.d.ts.map +1 -0
- package/dist/primitives/three/AgentConsole/index.js +15 -0
- package/dist/primitives/three/AgentConsole/types.d.ts +155 -0
- package/dist/primitives/three/AgentConsole/types.d.ts.map +1 -0
- package/dist/primitives/three/AgentConsole/types.js +38 -0
- package/dist/primitives/three/AmbientField/AmbientField.d.ts +32 -0
- package/dist/primitives/three/AmbientField/AmbientField.d.ts.map +1 -0
- package/dist/primitives/three/AmbientField/AmbientField.js +156 -0
- package/dist/primitives/three/AmbientField/BackbayFieldBus.d.ts +10 -0
- package/dist/primitives/three/AmbientField/BackbayFieldBus.d.ts.map +1 -0
- package/dist/primitives/three/AmbientField/BackbayFieldBus.js +264 -0
- package/dist/primitives/three/AmbientField/FieldProvider.d.ts +21 -0
- package/dist/primitives/three/AmbientField/FieldProvider.d.ts.map +1 -0
- package/dist/primitives/three/AmbientField/FieldProvider.js +48 -0
- package/dist/primitives/three/AmbientField/index.d.ts +12 -0
- package/dist/primitives/three/AmbientField/index.d.ts.map +1 -0
- package/dist/primitives/three/AmbientField/index.js +8 -0
- package/dist/primitives/three/AmbientField/shaders/constellation.d.ts +17 -0
- package/dist/primitives/three/AmbientField/shaders/constellation.d.ts.map +1 -0
- package/dist/primitives/three/AmbientField/shaders/constellation.js +359 -0
- package/dist/primitives/three/AmbientField/types.d.ts +157 -0
- package/dist/primitives/three/AmbientField/types.d.ts.map +1 -0
- package/dist/primitives/three/AmbientField/types.js +20 -0
- package/dist/primitives/three/AttackGraph/AttackGraph.d.ts +3 -0
- package/dist/primitives/three/AttackGraph/AttackGraph.d.ts.map +1 -0
- package/dist/primitives/three/AttackGraph/AttackGraph.js +159 -0
- package/dist/primitives/three/AttackGraph/index.d.ts +14 -0
- package/dist/primitives/three/AttackGraph/index.d.ts.map +1 -0
- package/dist/primitives/three/AttackGraph/index.js +12 -0
- package/dist/primitives/three/AttackGraph/types.d.ts +42 -0
- package/dist/primitives/three/AttackGraph/types.d.ts.map +1 -0
- package/dist/primitives/three/AttackGraph/types.js +46 -0
- package/dist/primitives/three/AuditTrail/AuditTrail.d.ts +6 -0
- package/dist/primitives/three/AuditTrail/AuditTrail.d.ts.map +1 -0
- package/dist/primitives/three/AuditTrail/AuditTrail.js +294 -0
- package/dist/primitives/three/AuditTrail/index.d.ts +21 -0
- package/dist/primitives/three/AuditTrail/index.d.ts.map +1 -0
- package/dist/primitives/three/AuditTrail/index.js +19 -0
- package/dist/primitives/three/AuditTrail/types.d.ts +113 -0
- package/dist/primitives/three/AuditTrail/types.d.ts.map +1 -0
- package/dist/primitives/three/AuditTrail/types.js +78 -0
- package/dist/primitives/three/CrystallineOrganism/Breadcrumb.d.ts +8 -0
- package/dist/primitives/three/CrystallineOrganism/Breadcrumb.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/Breadcrumb.js +20 -0
- package/dist/primitives/three/CrystallineOrganism/CrystallineOrganism.d.ts +12 -0
- package/dist/primitives/three/CrystallineOrganism/CrystallineOrganism.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/CrystallineOrganism.js +143 -0
- package/dist/primitives/three/CrystallineOrganism/LatticeEdge.d.ts +8 -0
- package/dist/primitives/three/CrystallineOrganism/LatticeEdge.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/LatticeEdge.js +46 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismLattice.d.ts +8 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismLattice.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismLattice.js +100 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismParticles.d.ts +9 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismParticles.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismParticles.js +97 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismShell.d.ts +9 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismShell.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/OrganismShell.js +110 -0
- package/dist/primitives/three/CrystallineOrganism/constants.d.ts +84 -0
- package/dist/primitives/three/CrystallineOrganism/constants.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/constants.js +128 -0
- package/dist/primitives/three/CrystallineOrganism/index.d.ts +17 -0
- package/dist/primitives/three/CrystallineOrganism/index.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/index.js +16 -0
- package/dist/primitives/three/CrystallineOrganism/layouts/hexGrid.d.ts +19 -0
- package/dist/primitives/three/CrystallineOrganism/layouts/hexGrid.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/layouts/hexGrid.js +71 -0
- package/dist/primitives/three/CrystallineOrganism/layouts/index.d.ts +2 -0
- package/dist/primitives/three/CrystallineOrganism/layouts/index.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/layouts/index.js +1 -0
- package/dist/primitives/three/CrystallineOrganism/types.d.ts +100 -0
- package/dist/primitives/three/CrystallineOrganism/types.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/types.js +18 -0
- package/dist/primitives/three/CrystallineOrganism/useOrganismEmotion.d.ts +31 -0
- package/dist/primitives/three/CrystallineOrganism/useOrganismEmotion.d.ts.map +1 -0
- package/dist/primitives/three/CrystallineOrganism/useOrganismEmotion.js +59 -0
- package/dist/primitives/three/FirewallBarrier/FirewallBarrier.d.ts +3 -0
- package/dist/primitives/three/FirewallBarrier/FirewallBarrier.d.ts.map +1 -0
- package/dist/primitives/three/FirewallBarrier/FirewallBarrier.js +101 -0
- package/dist/primitives/three/FirewallBarrier/index.d.ts +14 -0
- package/dist/primitives/three/FirewallBarrier/index.d.ts.map +1 -0
- package/dist/primitives/three/FirewallBarrier/index.js +12 -0
- package/dist/primitives/three/FirewallBarrier/types.d.ts +41 -0
- package/dist/primitives/three/FirewallBarrier/types.d.ts.map +1 -0
- package/dist/primitives/three/FirewallBarrier/types.js +14 -0
- package/dist/primitives/three/Glyph/GlyphObject.d.ts +3 -0
- package/dist/primitives/three/Glyph/GlyphObject.d.ts.map +1 -0
- package/dist/primitives/three/Glyph/GlyphObject.js +311 -0
- package/dist/primitives/three/Glyph/index.d.ts +10 -0
- package/dist/primitives/three/Glyph/index.d.ts.map +1 -0
- package/dist/primitives/three/Glyph/index.js +9 -0
- package/dist/primitives/three/Glyph/types.d.ts +33 -0
- package/dist/primitives/three/Glyph/types.d.ts.map +1 -0
- package/dist/primitives/three/Glyph/types.js +1 -0
- package/dist/primitives/three/Glyph/useGlyphController.d.ts +24 -0
- package/dist/primitives/three/Glyph/useGlyphController.d.ts.map +1 -0
- package/dist/primitives/three/Glyph/useGlyphController.js +182 -0
- package/dist/primitives/three/Glyph/useGlyphEmotion.d.ts +26 -0
- package/dist/primitives/three/Glyph/useGlyphEmotion.d.ts.map +1 -0
- package/dist/primitives/three/Glyph/useGlyphEmotion.js +44 -0
- package/dist/primitives/three/Graph3D/Graph3D.d.ts +25 -0
- package/dist/primitives/three/Graph3D/Graph3D.d.ts.map +1 -0
- package/dist/primitives/three/Graph3D/Graph3D.js +120 -0
- package/dist/primitives/three/Graph3D/GraphEdge.d.ts +12 -0
- package/dist/primitives/three/Graph3D/GraphEdge.d.ts.map +1 -0
- package/dist/primitives/three/Graph3D/GraphEdge.js +45 -0
- package/dist/primitives/three/Graph3D/GraphNode.d.ts +17 -0
- package/dist/primitives/three/Graph3D/GraphNode.d.ts.map +1 -0
- package/dist/primitives/three/Graph3D/GraphNode.js +104 -0
- package/dist/primitives/three/Graph3D/types.d.ts +62 -0
- package/dist/primitives/three/Graph3D/types.d.ts.map +1 -0
- package/dist/primitives/three/Graph3D/types.js +1 -0
- package/dist/primitives/three/Graph3D/utils.d.ts +10 -0
- package/dist/primitives/three/Graph3D/utils.d.ts.map +1 -0
- package/dist/primitives/three/Graph3D/utils.js +145 -0
- package/dist/primitives/three/IntelFeed/IntelFeed.d.ts +3 -0
- package/dist/primitives/three/IntelFeed/IntelFeed.d.ts.map +1 -0
- package/dist/primitives/three/IntelFeed/IntelFeed.js +130 -0
- package/dist/primitives/three/IntelFeed/index.d.ts +14 -0
- package/dist/primitives/three/IntelFeed/index.d.ts.map +1 -0
- package/dist/primitives/three/IntelFeed/index.js +12 -0
- package/dist/primitives/three/IntelFeed/types.d.ts +42 -0
- package/dist/primitives/three/IntelFeed/types.d.ts.map +1 -0
- package/dist/primitives/three/IntelFeed/types.js +20 -0
- package/dist/primitives/three/NetworkTopology/NetworkTopology.d.ts +3 -0
- package/dist/primitives/three/NetworkTopology/NetworkTopology.d.ts.map +1 -0
- package/dist/primitives/three/NetworkTopology/NetworkTopology.js +208 -0
- package/dist/primitives/three/NetworkTopology/index.d.ts +20 -0
- package/dist/primitives/three/NetworkTopology/index.d.ts.map +1 -0
- package/dist/primitives/three/NetworkTopology/index.js +18 -0
- package/dist/primitives/three/NetworkTopology/types.d.ts +59 -0
- package/dist/primitives/three/NetworkTopology/types.d.ts.map +1 -0
- package/dist/primitives/three/NetworkTopology/types.js +56 -0
- package/dist/primitives/three/ParticleField/ParticleField.d.ts +8 -0
- package/dist/primitives/three/ParticleField/ParticleField.d.ts.map +1 -0
- package/dist/primitives/three/ParticleField/ParticleField.js +44 -0
- package/dist/primitives/three/ParticleField/index.d.ts +2 -0
- package/dist/primitives/three/ParticleField/index.d.ts.map +1 -0
- package/dist/primitives/three/ParticleField/index.js +1 -0
- package/dist/primitives/three/PermissionMatrix/PermissionMatrix.d.ts +14 -0
- package/dist/primitives/three/PermissionMatrix/PermissionMatrix.d.ts.map +1 -0
- package/dist/primitives/three/PermissionMatrix/PermissionMatrix.js +99 -0
- package/dist/primitives/three/PermissionMatrix/index.d.ts +10 -0
- package/dist/primitives/three/PermissionMatrix/index.d.ts.map +1 -0
- package/dist/primitives/three/PermissionMatrix/index.js +8 -0
- package/dist/primitives/three/PermissionMatrix/types.d.ts +44 -0
- package/dist/primitives/three/PermissionMatrix/types.d.ts.map +1 -0
- package/dist/primitives/three/PermissionMatrix/types.js +12 -0
- package/dist/primitives/three/QuantumField/ConstellationField.d.ts +9 -0
- package/dist/primitives/three/QuantumField/ConstellationField.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/ConstellationField.js +185 -0
- package/dist/primitives/three/QuantumField/FieldBus.d.ts +34 -0
- package/dist/primitives/three/QuantumField/FieldBus.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/FieldBus.js +278 -0
- package/dist/primitives/three/QuantumField/FieldLayer.d.ts +22 -0
- package/dist/primitives/three/QuantumField/FieldLayer.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/FieldLayer.js +307 -0
- package/dist/primitives/three/QuantumField/FieldProvider.d.ts +75 -0
- package/dist/primitives/three/QuantumField/FieldProvider.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/FieldProvider.js +313 -0
- package/dist/primitives/three/QuantumField/PcbField.d.ts +18 -0
- package/dist/primitives/three/QuantumField/PcbField.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/PcbField.js +317 -0
- package/dist/primitives/three/QuantumField/TrailRTT.d.ts +54 -0
- package/dist/primitives/three/QuantumField/TrailRTT.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/TrailRTT.js +176 -0
- package/dist/primitives/three/QuantumField/WaterField.d.ts +9 -0
- package/dist/primitives/three/QuantumField/WaterField.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/WaterField.js +179 -0
- package/dist/primitives/three/QuantumField/WaterSimRTT.d.ts +75 -0
- package/dist/primitives/three/QuantumField/WaterSimRTT.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/WaterSimRTT.js +238 -0
- package/dist/primitives/three/QuantumField/domMapping.d.ts +110 -0
- package/dist/primitives/three/QuantumField/domMapping.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/domMapping.js +124 -0
- package/dist/primitives/three/QuantumField/index.d.ts +29 -0
- package/dist/primitives/three/QuantumField/index.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/index.js +26 -0
- package/dist/primitives/three/QuantumField/styles/index.d.ts +9 -0
- package/dist/primitives/three/QuantumField/styles/index.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/styles/index.js +8 -0
- package/dist/primitives/three/QuantumField/styles/styleA.d.ts +56 -0
- package/dist/primitives/three/QuantumField/styles/styleA.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/styles/styleA.js +484 -0
- package/dist/primitives/three/QuantumField/styles/styleB.d.ts +128 -0
- package/dist/primitives/three/QuantumField/styles/styleB.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/styles/styleB.js +1134 -0
- package/dist/primitives/three/QuantumField/styles/styleC.d.ts +42 -0
- package/dist/primitives/three/QuantumField/styles/styleC.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/styles/styleC.js +244 -0
- package/dist/primitives/three/QuantumField/themes.d.ts +60 -0
- package/dist/primitives/three/QuantumField/themes.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/themes.js +182 -0
- package/dist/primitives/three/QuantumField/types.d.ts +261 -0
- package/dist/primitives/three/QuantumField/types.d.ts.map +1 -0
- package/dist/primitives/three/QuantumField/types.js +100 -0
- package/dist/primitives/three/SOCCommandCenter/SOCCommandCenter.d.ts +3 -0
- package/dist/primitives/three/SOCCommandCenter/SOCCommandCenter.d.ts.map +1 -0
- package/dist/primitives/three/SOCCommandCenter/SOCCommandCenter.js +80 -0
- package/dist/primitives/three/SOCCommandCenter/index.d.ts +20 -0
- package/dist/primitives/three/SOCCommandCenter/index.d.ts.map +1 -0
- package/dist/primitives/three/SOCCommandCenter/index.js +18 -0
- package/dist/primitives/three/SOCCommandCenter/types.d.ts +42 -0
- package/dist/primitives/three/SOCCommandCenter/types.d.ts.map +1 -0
- package/dist/primitives/three/SOCCommandCenter/types.js +157 -0
- package/dist/primitives/three/SecurityDashboard/SecurityDashboard.d.ts +6 -0
- package/dist/primitives/three/SecurityDashboard/SecurityDashboard.d.ts.map +1 -0
- package/dist/primitives/three/SecurityDashboard/SecurityDashboard.js +187 -0
- package/dist/primitives/three/SecurityDashboard/index.d.ts +29 -0
- package/dist/primitives/three/SecurityDashboard/index.d.ts.map +1 -0
- package/dist/primitives/three/SecurityDashboard/index.js +27 -0
- package/dist/primitives/three/SecurityDashboard/types.d.ts +110 -0
- package/dist/primitives/three/SecurityDashboard/types.d.ts.map +1 -0
- package/dist/primitives/three/SecurityDashboard/types.js +38 -0
- package/dist/primitives/three/SecurityShield/SecurityShield.d.ts +6 -0
- package/dist/primitives/three/SecurityShield/SecurityShield.d.ts.map +1 -0
- package/dist/primitives/three/SecurityShield/SecurityShield.js +200 -0
- package/dist/primitives/three/SecurityShield/index.d.ts +20 -0
- package/dist/primitives/three/SecurityShield/index.d.ts.map +1 -0
- package/dist/primitives/three/SecurityShield/index.js +18 -0
- package/dist/primitives/three/SecurityShield/types.d.ts +39 -0
- package/dist/primitives/three/SecurityShield/types.d.ts.map +1 -0
- package/dist/primitives/three/SecurityShield/types.js +27 -0
- package/dist/primitives/three/Sentinel/AvatarMode.d.ts +4 -0
- package/dist/primitives/three/Sentinel/AvatarMode.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/AvatarMode.js +443 -0
- package/dist/primitives/three/Sentinel/AvatarRenderer.d.ts +23 -0
- package/dist/primitives/three/Sentinel/AvatarRenderer.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/AvatarRenderer.js +112 -0
- package/dist/primitives/three/Sentinel/CameraPip.d.ts +10 -0
- package/dist/primitives/three/Sentinel/CameraPip.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/CameraPip.js +76 -0
- package/dist/primitives/three/Sentinel/CardinalItem.d.ts +5 -0
- package/dist/primitives/three/Sentinel/CardinalItem.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/CardinalItem.js +52 -0
- package/dist/primitives/three/Sentinel/CardinalMenu.d.ts +5 -0
- package/dist/primitives/three/Sentinel/CardinalMenu.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/CardinalMenu.js +255 -0
- package/dist/primitives/three/Sentinel/DockedMiniOrb.d.ts +4 -0
- package/dist/primitives/three/Sentinel/DockedMiniOrb.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/DockedMiniOrb.js +97 -0
- package/dist/primitives/three/Sentinel/RadialSubmenu.d.ts +5 -0
- package/dist/primitives/three/Sentinel/RadialSubmenu.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/RadialSubmenu.js +187 -0
- package/dist/primitives/three/Sentinel/SentinelConversation.d.ts +4 -0
- package/dist/primitives/three/Sentinel/SentinelConversation.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/SentinelConversation.js +405 -0
- package/dist/primitives/three/Sentinel/SentinelOrb.d.ts +4 -0
- package/dist/primitives/three/Sentinel/SentinelOrb.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/SentinelOrb.js +239 -0
- package/dist/primitives/three/Sentinel/SentinelOverlay.d.ts +4 -0
- package/dist/primitives/three/Sentinel/SentinelOverlay.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/SentinelOverlay.js +90 -0
- package/dist/primitives/three/Sentinel/SentinelProvider.d.ts +12 -0
- package/dist/primitives/three/Sentinel/SentinelProvider.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/SentinelProvider.js +81 -0
- package/dist/primitives/three/Sentinel/SentinelTether.d.ts +4 -0
- package/dist/primitives/three/Sentinel/SentinelTether.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/SentinelTether.js +71 -0
- package/dist/primitives/three/Sentinel/SigilPlaceholder.d.ts +6 -0
- package/dist/primitives/three/Sentinel/SigilPlaceholder.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/SigilPlaceholder.js +65 -0
- package/dist/primitives/three/Sentinel/VerticalSubmenu.d.ts +5 -0
- package/dist/primitives/three/Sentinel/VerticalSubmenu.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/VerticalSubmenu.js +105 -0
- package/dist/primitives/three/Sentinel/index.d.ts +67 -0
- package/dist/primitives/three/Sentinel/index.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/index.js +86 -0
- package/dist/primitives/three/Sentinel/sentinelStore.d.ts +33 -0
- package/dist/primitives/three/Sentinel/sentinelStore.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/sentinelStore.js +125 -0
- package/dist/primitives/three/Sentinel/types.d.ts +337 -0
- package/dist/primitives/three/Sentinel/types.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/types.js +6 -0
- package/dist/primitives/three/Sentinel/useCameraPermission.d.ts +9 -0
- package/dist/primitives/three/Sentinel/useCameraPermission.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/useCameraPermission.js +138 -0
- package/dist/primitives/three/Sentinel/useThrowPhysics.d.ts +9 -0
- package/dist/primitives/three/Sentinel/useThrowPhysics.d.ts.map +1 -0
- package/dist/primitives/three/Sentinel/useThrowPhysics.js +167 -0
- package/dist/primitives/three/SpatialWorkspace/CyntraWorkspace.d.ts +8 -0
- package/dist/primitives/three/SpatialWorkspace/CyntraWorkspace.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/CyntraWorkspace.js +54 -0
- package/dist/primitives/three/SpatialWorkspace/JobCluster.d.ts +3 -0
- package/dist/primitives/three/SpatialWorkspace/JobCluster.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/JobCluster.js +126 -0
- package/dist/primitives/three/SpatialWorkspace/NodeGraph.d.ts +3 -0
- package/dist/primitives/three/SpatialWorkspace/NodeGraph.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/NodeGraph.js +154 -0
- package/dist/primitives/three/SpatialWorkspace/ReceiptOrbit.d.ts +3 -0
- package/dist/primitives/three/SpatialWorkspace/ReceiptOrbit.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/ReceiptOrbit.js +135 -0
- package/dist/primitives/three/SpatialWorkspace/SpatialWorkspace.d.ts +3 -0
- package/dist/primitives/three/SpatialWorkspace/SpatialWorkspace.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/SpatialWorkspace.js +189 -0
- package/dist/primitives/three/SpatialWorkspace/TrustRings.d.ts +3 -0
- package/dist/primitives/three/SpatialWorkspace/TrustRings.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/TrustRings.js +63 -0
- package/dist/primitives/three/SpatialWorkspace/adapters.d.ts +56 -0
- package/dist/primitives/three/SpatialWorkspace/adapters.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/adapters.js +253 -0
- package/dist/primitives/three/SpatialWorkspace/index.d.ts +22 -0
- package/dist/primitives/three/SpatialWorkspace/index.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/index.js +17 -0
- package/dist/primitives/three/SpatialWorkspace/nexusAdapter.d.ts +53 -0
- package/dist/primitives/three/SpatialWorkspace/nexusAdapter.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/nexusAdapter.js +107 -0
- package/dist/primitives/three/SpatialWorkspace/types.d.ts +173 -0
- package/dist/primitives/three/SpatialWorkspace/types.d.ts.map +1 -0
- package/dist/primitives/three/SpatialWorkspace/types.js +170 -0
- package/dist/primitives/three/ThreatRadar/ThreatRadar.d.ts +12 -0
- package/dist/primitives/three/ThreatRadar/ThreatRadar.d.ts.map +1 -0
- package/dist/primitives/three/ThreatRadar/ThreatRadar.js +223 -0
- package/dist/primitives/three/ThreatRadar/index.d.ts +4 -0
- package/dist/primitives/three/ThreatRadar/index.d.ts.map +1 -0
- package/dist/primitives/three/ThreatRadar/index.js +2 -0
- package/dist/primitives/three/ThreatRadar/types.d.ts +74 -0
- package/dist/primitives/three/ThreatRadar/types.d.ts.map +1 -0
- package/dist/primitives/three/ThreatRadar/types.js +20 -0
- package/dist/primitives/three/index.d.ts +22 -0
- package/dist/primitives/three/index.d.ts.map +1 -0
- package/dist/primitives/three/index.js +37 -0
- package/dist/primitives/ui/alert-dialog.d.ts +15 -0
- package/dist/primitives/ui/alert-dialog.d.ts.map +1 -0
- package/dist/primitives/ui/alert-dialog.js +39 -0
- package/dist/primitives/ui/avatar.d.ts +7 -0
- package/dist/primitives/ui/avatar.d.ts.map +1 -0
- package/dist/primitives/ui/avatar.js +14 -0
- package/dist/primitives/ui/badge.d.ts +10 -0
- package/dist/primitives/ui/badge.d.ts.map +1 -0
- package/dist/primitives/ui/badge.js +22 -0
- package/dist/primitives/ui/button.d.ts +11 -0
- package/dist/primitives/ui/button.d.ts.map +1 -0
- package/dist/primitives/ui/button.js +33 -0
- package/dist/primitives/ui/dialog.d.ts +16 -0
- package/dist/primitives/ui/dialog.d.ts.map +1 -0
- package/dist/primitives/ui/dialog.js +36 -0
- package/dist/primitives/ui/dropdown-menu.d.ts +26 -0
- package/dist/primitives/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/primitives/ui/dropdown-menu.js +51 -0
- package/dist/primitives/ui/index.d.ts +19 -0
- package/dist/primitives/ui/index.d.ts.map +1 -0
- package/dist/primitives/ui/index.js +23 -0
- package/dist/primitives/ui/input.d.ts +4 -0
- package/dist/primitives/ui/input.d.ts.map +1 -0
- package/dist/primitives/ui/input.js +6 -0
- package/dist/primitives/ui/label.d.ts +5 -0
- package/dist/primitives/ui/label.d.ts.map +1 -0
- package/dist/primitives/ui/label.js +8 -0
- package/dist/primitives/ui/popover.d.ts +8 -0
- package/dist/primitives/ui/popover.d.ts.map +1 -0
- package/dist/primitives/ui/popover.js +17 -0
- package/dist/primitives/ui/scroll-area.d.ts +6 -0
- package/dist/primitives/ui/scroll-area.d.ts.map +1 -0
- package/dist/primitives/ui/scroll-area.js +11 -0
- package/dist/primitives/ui/select.d.ts +16 -0
- package/dist/primitives/ui/select.d.ts.map +1 -0
- package/dist/primitives/ui/select.js +38 -0
- package/dist/primitives/ui/separator.d.ts +5 -0
- package/dist/primitives/ui/separator.d.ts.map +1 -0
- package/dist/primitives/ui/separator.js +8 -0
- package/dist/primitives/ui/skeleton.d.ts +4 -0
- package/dist/primitives/ui/skeleton.d.ts.map +1 -0
- package/dist/primitives/ui/skeleton.js +6 -0
- package/dist/primitives/ui/switch.d.ts +5 -0
- package/dist/primitives/ui/switch.d.ts.map +1 -0
- package/dist/primitives/ui/switch.js +8 -0
- package/dist/primitives/ui/tabs.d.ts +8 -0
- package/dist/primitives/ui/tabs.d.ts.map +1 -0
- package/dist/primitives/ui/tabs.js +17 -0
- package/dist/primitives/ui/textarea.d.ts +4 -0
- package/dist/primitives/ui/textarea.d.ts.map +1 -0
- package/dist/primitives/ui/textarea.js +6 -0
- package/dist/primitives/ui/toggle.d.ts +10 -0
- package/dist/primitives/ui/toggle.d.ts.map +1 -0
- package/dist/primitives/ui/toggle.js +26 -0
- package/dist/primitives/ui/tooltip.d.ts +8 -0
- package/dist/primitives/ui/tooltip.d.ts.map +1 -0
- package/dist/primitives/ui/tooltip.js +17 -0
- package/dist/protocol/branded.d.ts +131 -0
- package/dist/protocol/branded.d.ts.map +1 -0
- package/dist/protocol/branded.js +133 -0
- package/dist/protocol/dom.d.ts +148 -0
- package/dist/protocol/dom.d.ts.map +1 -0
- package/dist/protocol/dom.js +300 -0
- package/dist/protocol/index.d.ts +9 -0
- package/dist/protocol/index.d.ts.map +1 -0
- package/dist/protocol/index.js +30 -0
- package/dist/protocol/schema.d.ts +854 -0
- package/dist/protocol/schema.d.ts.map +1 -0
- package/dist/protocol/schema.js +155 -0
- package/dist/protocol/types.d.ts +256 -0
- package/dist/protocol/types.d.ts.map +1 -0
- package/dist/protocol/types.js +6 -0
- package/dist/speakeasy/SpeakeasyProvider.d.ts +57 -0
- package/dist/speakeasy/SpeakeasyProvider.d.ts.map +1 -0
- package/dist/speakeasy/SpeakeasyProvider.js +249 -0
- package/dist/speakeasy/auth/CapabilityIssuer.d.ts +22 -0
- package/dist/speakeasy/auth/CapabilityIssuer.d.ts.map +1 -0
- package/dist/speakeasy/auth/CapabilityIssuer.js +70 -0
- package/dist/speakeasy/auth/SpeakeasyAuth.d.ts +43 -0
- package/dist/speakeasy/auth/SpeakeasyAuth.d.ts.map +1 -0
- package/dist/speakeasy/auth/SpeakeasyAuth.js +147 -0
- package/dist/speakeasy/auth/crypto.d.ts +12 -0
- package/dist/speakeasy/auth/crypto.d.ts.map +1 -0
- package/dist/speakeasy/auth/crypto.js +68 -0
- package/dist/speakeasy/auth/deviceSecret.d.ts +17 -0
- package/dist/speakeasy/auth/deviceSecret.d.ts.map +1 -0
- package/dist/speakeasy/auth/deviceSecret.js +62 -0
- package/dist/speakeasy/auth/storage.d.ts +62 -0
- package/dist/speakeasy/auth/storage.d.ts.map +1 -0
- package/dist/speakeasy/auth/storage.js +344 -0
- package/dist/speakeasy/components/SpeakeasyConsentDialog.d.ts +24 -0
- package/dist/speakeasy/components/SpeakeasyConsentDialog.d.ts.map +1 -0
- package/dist/speakeasy/components/SpeakeasyConsentDialog.js +181 -0
- package/dist/speakeasy/components/SpeakeasyOrb.d.ts +14 -0
- package/dist/speakeasy/components/SpeakeasyOrb.d.ts.map +1 -0
- package/dist/speakeasy/components/SpeakeasyOrb.js +128 -0
- package/dist/speakeasy/components/SpeakeasyRegistrationDialog.d.ts +9 -0
- package/dist/speakeasy/components/SpeakeasyRegistrationDialog.d.ts.map +1 -0
- package/dist/speakeasy/components/SpeakeasyRegistrationDialog.js +93 -0
- package/dist/speakeasy/components/SpeakeasyRitualPad.d.ts +18 -0
- package/dist/speakeasy/components/SpeakeasyRitualPad.d.ts.map +1 -0
- package/dist/speakeasy/components/SpeakeasyRitualPad.js +63 -0
- package/dist/speakeasy/doorman/DoormanStateMachine.d.ts +40 -0
- package/dist/speakeasy/doorman/DoormanStateMachine.d.ts.map +1 -0
- package/dist/speakeasy/doorman/DoormanStateMachine.js +393 -0
- package/dist/speakeasy/doorman/panic.d.ts +10 -0
- package/dist/speakeasy/doorman/panic.d.ts.map +1 -0
- package/dist/speakeasy/doorman/panic.js +28 -0
- package/dist/speakeasy/hooks/useGestureRecognizer.d.ts +48 -0
- package/dist/speakeasy/hooks/useGestureRecognizer.d.ts.map +1 -0
- package/dist/speakeasy/hooks/useGestureRecognizer.js +337 -0
- package/dist/speakeasy/index.d.ts +47 -0
- package/dist/speakeasy/index.d.ts.map +1 -0
- package/dist/speakeasy/index.js +53 -0
- package/dist/speakeasy/types.d.ts +203 -0
- package/dist/speakeasy/types.d.ts.map +1 -0
- package/dist/speakeasy/types.js +52 -0
- package/dist/speakeasy/useSpeakeasy.d.ts +2 -0
- package/dist/speakeasy/useSpeakeasy.d.ts.map +1 -0
- package/dist/speakeasy/useSpeakeasy.js +1 -0
- package/dist/styles.css +1 -0
- package/dist/theme/UiThemeProvider.d.ts +42 -0
- package/dist/theme/UiThemeProvider.d.ts.map +1 -0
- package/dist/theme/UiThemeProvider.js +126 -0
- package/dist/theme/index.d.ts +12 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +12 -0
- package/dist/theme/nebula.d.ts +9 -0
- package/dist/theme/nebula.d.ts.map +1 -0
- package/dist/theme/nebula.js +113 -0
- package/dist/theme/registry.d.ts +24 -0
- package/dist/theme/registry.d.ts.map +1 -0
- package/dist/theme/registry.js +250 -0
- package/dist/theme/solarpunk.d.ts +9 -0
- package/dist/theme/solarpunk.d.ts.map +1 -0
- package/dist/theme/solarpunk.js +118 -0
- package/dist/theme/types.d.ts +233 -0
- package/dist/theme/types.d.ts.map +1 -0
- package/dist/theme/types.js +7 -0
- package/dist/vision/adapters/canvasCapture.d.ts +24 -0
- package/dist/vision/adapters/canvasCapture.d.ts.map +1 -0
- package/dist/vision/adapters/canvasCapture.js +64 -0
- package/dist/vision/adapters/raymondAdapter.d.ts +62 -0
- package/dist/vision/adapters/raymondAdapter.d.ts.map +1 -0
- package/dist/vision/adapters/raymondAdapter.js +227 -0
- package/dist/vision/hooks/useVisionCaptureController.d.ts +21 -0
- package/dist/vision/hooks/useVisionCaptureController.d.ts.map +1 -0
- package/dist/vision/hooks/useVisionCaptureController.js +55 -0
- package/dist/vision/index.d.ts +6 -0
- package/dist/vision/index.d.ts.map +1 -0
- package/dist/vision/index.js +5 -0
- package/dist/vision/raymond/camera.d.ts +36 -0
- package/dist/vision/raymond/camera.d.ts.map +1 -0
- package/dist/vision/raymond/camera.js +129 -0
- package/dist/vision/raymond/canvas/Eye.d.ts +12 -0
- package/dist/vision/raymond/canvas/Eye.d.ts.map +1 -0
- package/dist/vision/raymond/canvas/Eye.js +50 -0
- package/dist/vision/raymond/canvas/PointLight.d.ts +12 -0
- package/dist/vision/raymond/canvas/PointLight.d.ts.map +1 -0
- package/dist/vision/raymond/canvas/PointLight.js +20 -0
- package/dist/vision/raymond/canvas/lightingModel.d.ts +26 -0
- package/dist/vision/raymond/canvas/lightingModel.d.ts.map +1 -0
- package/dist/vision/raymond/canvas/lightingModel.js +1 -0
- package/dist/vision/raymond/canvas/lightingModelRegistry.d.ts +12 -0
- package/dist/vision/raymond/canvas/lightingModelRegistry.d.ts.map +1 -0
- package/dist/vision/raymond/canvas/lightingModelRegistry.js +33 -0
- package/dist/vision/raymond/canvas/models/phongTracingModel.d.ts +13 -0
- package/dist/vision/raymond/canvas/models/phongTracingModel.d.ts.map +1 -0
- package/dist/vision/raymond/canvas/models/phongTracingModel.js +72 -0
- package/dist/vision/raymond/canvas/optics.d.ts +37 -0
- package/dist/vision/raymond/canvas/optics.d.ts.map +1 -0
- package/dist/vision/raymond/canvas/optics.js +343 -0
- package/dist/vision/raymond/index.d.ts +15 -0
- package/dist/vision/raymond/index.d.ts.map +1 -0
- package/dist/vision/raymond/index.js +14 -0
- package/dist/vision/raymond/math.d.ts +39 -0
- package/dist/vision/raymond/math.d.ts.map +1 -0
- package/dist/vision/raymond/math.js +162 -0
- package/dist/vision/raymond/shapes.d.ts +37 -0
- package/dist/vision/raymond/shapes.d.ts.map +1 -0
- package/dist/vision/raymond/shapes.js +123 -0
- package/dist/vision/raymond/shared/color.d.ts +18 -0
- package/dist/vision/raymond/shared/color.d.ts.map +1 -0
- package/dist/vision/raymond/shared/color.js +12 -0
- package/dist/vision/raymond/shared/material.d.ts +13 -0
- package/dist/vision/raymond/shared/material.d.ts.map +1 -0
- package/dist/vision/raymond/shared/material.js +12 -0
- package/dist/vision/raymond/shared/util.d.ts +2 -0
- package/dist/vision/raymond/shared/util.d.ts.map +1 -0
- package/dist/vision/raymond/shared/util.js +3 -0
- package/dist/vision/raymond/transform.d.ts +24 -0
- package/dist/vision/raymond/transform.d.ts.map +1 -0
- package/dist/vision/raymond/transform.js +86 -0
- package/dist/vision/raymond/types.d.ts +33 -0
- package/dist/vision/raymond/types.d.ts.map +1 -0
- package/dist/vision/raymond/types.js +1 -0
- package/dist/vision/types.d.ts +72 -0
- package/dist/vision/types.d.ts.map +1 -0
- package/dist/vision/types.js +1 -0
- package/dist/workspace/WorkspaceRenderer.d.ts +34 -0
- package/dist/workspace/WorkspaceRenderer.d.ts.map +1 -0
- package/dist/workspace/WorkspaceRenderer.js +292 -0
- package/dist/workspace/componentBindings.d.ts +26 -0
- package/dist/workspace/componentBindings.d.ts.map +1 -0
- package/dist/workspace/componentBindings.js +260 -0
- package/dist/workspace/index.d.ts +28 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +27 -0
- package/dist/workspace/registry/index.d.ts +24 -0
- package/dist/workspace/registry/index.d.ts.map +1 -0
- package/dist/workspace/registry/index.js +23 -0
- package/dist/workspace/registry/manifests/atoms.d.ts +13 -0
- package/dist/workspace/registry/manifests/atoms.d.ts.map +1 -0
- package/dist/workspace/registry/manifests/atoms.js +462 -0
- package/dist/workspace/registry/manifests/index.d.ts +23 -0
- package/dist/workspace/registry/manifests/index.d.ts.map +1 -0
- package/dist/workspace/registry/manifests/index.js +38 -0
- package/dist/workspace/registry/manifests/layouts.d.ts +10 -0
- package/dist/workspace/registry/manifests/layouts.d.ts.map +1 -0
- package/dist/workspace/registry/manifests/layouts.js +268 -0
- package/dist/workspace/registry/manifests/molecules.d.ts +10 -0
- package/dist/workspace/registry/manifests/molecules.d.ts.map +1 -0
- package/dist/workspace/registry/manifests/molecules.js +276 -0
- package/dist/workspace/registry/manifests/organisms.d.ts +10 -0
- package/dist/workspace/registry/manifests/organisms.d.ts.map +1 -0
- package/dist/workspace/registry/manifests/organisms.js +267 -0
- package/dist/workspace/registry/manifests/three.d.ts +9 -0
- package/dist/workspace/registry/manifests/three.d.ts.map +1 -0
- package/dist/workspace/registry/manifests/three.js +210 -0
- package/dist/workspace/registry/registry.d.ts +22 -0
- package/dist/workspace/registry/registry.d.ts.map +1 -0
- package/dist/workspace/registry/registry.js +232 -0
- package/dist/workspace/registry/types.d.ts +133 -0
- package/dist/workspace/registry/types.d.ts.map +1 -0
- package/dist/workspace/registry/types.js +7 -0
- package/dist/workspace/types.d.ts +263 -0
- package/dist/workspace/types.d.ts.map +1 -0
- package/dist/workspace/types.js +7 -0
- package/dist/workspace/validation.d.ts +19 -0
- package/dist/workspace/validation.d.ts.map +1 -0
- package/dist/workspace/validation.js +331 -0
- package/package.json +172 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./math.js";
|
|
2
|
+
export * from "./camera.js";
|
|
3
|
+
export * from "./transform.js";
|
|
4
|
+
export * from "./types.js";
|
|
5
|
+
export * from "./shapes.js";
|
|
6
|
+
export * from "./shared/color.js";
|
|
7
|
+
export * from "./shared/material.js";
|
|
8
|
+
export * from "./shared/util.js";
|
|
9
|
+
export * from "./canvas/Eye.js";
|
|
10
|
+
export * from "./canvas/PointLight.js";
|
|
11
|
+
export * from "./canvas/lightingModel.js";
|
|
12
|
+
export * from "./canvas/lightingModelRegistry.js";
|
|
13
|
+
export * from "./canvas/optics.js";
|
|
14
|
+
export * from "./canvas/models/phongTracingModel.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transpose a 3x3 matrix.
|
|
3
|
+
*/
|
|
4
|
+
export declare function mat3_transpose(m: Mat3): Mat3;
|
|
5
|
+
export interface Vec3 {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
w: number;
|
|
9
|
+
}
|
|
10
|
+
export type Mat2 = number[][];
|
|
11
|
+
export type Mat3 = number[][];
|
|
12
|
+
export declare function newVector(x: number, y: number): Vec3;
|
|
13
|
+
export declare function newPoint(x: number, y: number): Vec3;
|
|
14
|
+
export declare function vec_add(a: Vec3, b: Vec3): Vec3;
|
|
15
|
+
export declare function vec_sub(a: Vec3, b: Vec3): Vec3;
|
|
16
|
+
export declare function vec_mul(a: Vec3, scalar: number): Vec3;
|
|
17
|
+
export declare function vec_div(a: Vec3, scalar: number): Vec3;
|
|
18
|
+
export declare function vec_magnitude(a: Vec3): number;
|
|
19
|
+
export declare function vec_magnitude_sq(a: Vec3): number;
|
|
20
|
+
export declare function vec_normalize(a: Vec3): Vec3;
|
|
21
|
+
export declare function vec_dot(a: Vec3, b: Vec3): number;
|
|
22
|
+
export declare function mat2_mul(a: Mat2, scalar: number): Mat2;
|
|
23
|
+
export declare function mat2_mul_mat2(a: Mat2, b: Mat2): Mat2;
|
|
24
|
+
export declare function mat3_identity(): Mat3;
|
|
25
|
+
export declare function mat3_equal(a: Mat3, b: Mat3): boolean;
|
|
26
|
+
export declare function mat3_mul_mat(a: Mat3, b: Mat3): Mat3;
|
|
27
|
+
export declare function mat3_chain(matrices: Mat3[]): Mat3;
|
|
28
|
+
export declare function mat3_mul(m: Mat3, scalar: number): Mat3;
|
|
29
|
+
/**
|
|
30
|
+
* Apply a 3x3 affine matrix to a 2D vector (homogeneous coords).
|
|
31
|
+
* Returns a Vector; if the resulting w is non-1, performs perspective divide.
|
|
32
|
+
*/
|
|
33
|
+
export declare function mat3_mul_vec(m: Mat3, v: Vec3): Vec3;
|
|
34
|
+
/**
|
|
35
|
+
* Compute the inverse of a 3x3 matrix. Returns undefined if singular.
|
|
36
|
+
*/
|
|
37
|
+
export declare function mat3_inverse(m: Mat3): Mat3 | undefined;
|
|
38
|
+
export declare function mat_inverse(m: Mat2): Mat2 | undefined;
|
|
39
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../src/vision/raymond/math.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,CAM5C;AACD,MAAM,WAAW,IAAI;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,EAAE,EAAE,CAAC;AAC9B,MAAM,MAAM,IAAI,GAAG,MAAM,EAAE,EAAE,CAAC;AAE9B,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAEpD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAEnD;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAE9C;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAE9C;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAErD;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAErD;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAEhD;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,CAE3C;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAEhD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAKtD;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAWpD;AAGD,wBAAgB,aAAa,IAAI,IAAI,CAMpC;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,WAS1C;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAgBnD;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAI,CAMjD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAUtD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAKnD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAuCtD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAUrD"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transpose a 3x3 matrix.
|
|
3
|
+
*/
|
|
4
|
+
export function mat3_transpose(m) {
|
|
5
|
+
return [
|
|
6
|
+
[m[0][0], m[1][0], m[2][0]],
|
|
7
|
+
[m[0][1], m[1][1], m[2][1]],
|
|
8
|
+
[m[0][2], m[1][2], m[2][2]],
|
|
9
|
+
];
|
|
10
|
+
}
|
|
11
|
+
export function newVector(x, y) {
|
|
12
|
+
return { x, y, w: 0 };
|
|
13
|
+
}
|
|
14
|
+
export function newPoint(x, y) {
|
|
15
|
+
return { x, y, w: 1 };
|
|
16
|
+
}
|
|
17
|
+
export function vec_add(a, b) {
|
|
18
|
+
return { x: a.x + b.x, y: a.y + b.y, w: a.w + b.w };
|
|
19
|
+
}
|
|
20
|
+
export function vec_sub(a, b) {
|
|
21
|
+
return { x: a.x - b.x, y: a.y - b.y, w: a.w - b.w };
|
|
22
|
+
}
|
|
23
|
+
export function vec_mul(a, scalar) {
|
|
24
|
+
return { x: a.x * scalar, y: a.y * scalar, w: a.w * scalar };
|
|
25
|
+
}
|
|
26
|
+
export function vec_div(a, scalar) {
|
|
27
|
+
return { x: a.x / scalar, y: a.y / scalar, w: a.w / scalar };
|
|
28
|
+
}
|
|
29
|
+
export function vec_magnitude(a) {
|
|
30
|
+
return Math.sqrt(Math.pow(a.x, 2) + Math.pow(a.y, 2) + Math.pow(a.w, 2));
|
|
31
|
+
}
|
|
32
|
+
export function vec_magnitude_sq(a) {
|
|
33
|
+
return Math.pow(a.x, 2) + Math.pow(a.y, 2) + Math.pow(a.w, 2);
|
|
34
|
+
}
|
|
35
|
+
export function vec_normalize(a) {
|
|
36
|
+
return vec_div(a, vec_magnitude(a));
|
|
37
|
+
}
|
|
38
|
+
export function vec_dot(a, b) {
|
|
39
|
+
return a.x * b.x + a.y * b.y + a.w * b.w;
|
|
40
|
+
}
|
|
41
|
+
export function mat2_mul(a, scalar) {
|
|
42
|
+
return [
|
|
43
|
+
[a[0][0] * scalar, a[0][1] * scalar],
|
|
44
|
+
[a[1][0] * scalar, a[1][1] * scalar],
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
export function mat2_mul_mat2(a, b) {
|
|
48
|
+
return [
|
|
49
|
+
[
|
|
50
|
+
a[0][0] * b[0][0] + a[0][1] * b[1][0],
|
|
51
|
+
a[0][0] * b[0][1] + a[0][1] * b[1][1],
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
a[1][0] * b[0][0] + a[1][1] * b[1][0],
|
|
55
|
+
a[1][0] * b[0][1] + a[1][1] * b[1][1],
|
|
56
|
+
],
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
// 3x3 matrix (homogeneous coordinates) helpers for 2D affine transforms
|
|
60
|
+
export function mat3_identity() {
|
|
61
|
+
return [
|
|
62
|
+
[1, 0, 0],
|
|
63
|
+
[0, 1, 0],
|
|
64
|
+
[0, 0, 1],
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
export function mat3_equal(a, b) {
|
|
68
|
+
for (let i = 0; i < 3; i++) {
|
|
69
|
+
for (let j = 0; j < 3; j++) {
|
|
70
|
+
if (a[i][j] !== b[i][j]) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
export function mat3_mul_mat(a, b) {
|
|
78
|
+
const res = [
|
|
79
|
+
[0, 0, 0],
|
|
80
|
+
[0, 0, 0],
|
|
81
|
+
[0, 0, 0],
|
|
82
|
+
];
|
|
83
|
+
for (let i = 0; i < 3; i++) {
|
|
84
|
+
for (let j = 0; j < 3; j++) {
|
|
85
|
+
let v = 0;
|
|
86
|
+
for (let k = 0; k < 3; k++) {
|
|
87
|
+
v += a[i][k] * b[k][j];
|
|
88
|
+
}
|
|
89
|
+
res[i][j] = v;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return res;
|
|
93
|
+
}
|
|
94
|
+
export function mat3_chain(matrices) {
|
|
95
|
+
let ret = mat3_identity();
|
|
96
|
+
for (let i = 0; i < matrices.length; i++) {
|
|
97
|
+
ret = mat3_mul_mat(matrices[matrices.length - 1 - i], ret);
|
|
98
|
+
}
|
|
99
|
+
return ret;
|
|
100
|
+
}
|
|
101
|
+
export function mat3_mul(m, scalar) {
|
|
102
|
+
const ret = [];
|
|
103
|
+
for (let i = 0; i < 3; i++) {
|
|
104
|
+
const row = [];
|
|
105
|
+
for (let j = 0; j < 3; j++) {
|
|
106
|
+
row.push(m[i][j] * scalar);
|
|
107
|
+
}
|
|
108
|
+
ret.push(row);
|
|
109
|
+
}
|
|
110
|
+
return ret;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Apply a 3x3 affine matrix to a 2D vector (homogeneous coords).
|
|
114
|
+
* Returns a Vector; if the resulting w is non-1, performs perspective divide.
|
|
115
|
+
*/
|
|
116
|
+
export function mat3_mul_vec(m, v) {
|
|
117
|
+
const x = m[0][0] * v.x + m[0][1] * v.y + m[0][2] * v.w;
|
|
118
|
+
const y = m[1][0] * v.x + m[1][1] * v.y + m[1][2] * v.w;
|
|
119
|
+
const w = m[2][0] * v.x + m[2][1] * v.y + m[2][2] * v.w;
|
|
120
|
+
return { x, y, w };
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Compute the inverse of a 3x3 matrix. Returns undefined if singular.
|
|
124
|
+
*/
|
|
125
|
+
export function mat3_inverse(m) {
|
|
126
|
+
// Compute the determinant
|
|
127
|
+
const a00 = m[0][0], a01 = m[0][1], a02 = m[0][2];
|
|
128
|
+
const a10 = m[1][0], a11 = m[1][1], a12 = m[1][2];
|
|
129
|
+
const a20 = m[2][0], a21 = m[2][1], a22 = m[2][2];
|
|
130
|
+
const det = a00 * (a11 * a22 - a12 * a21) -
|
|
131
|
+
a01 * (a10 * a22 - a12 * a20) +
|
|
132
|
+
a02 * (a10 * a21 - a11 * a20);
|
|
133
|
+
if (det === 0)
|
|
134
|
+
return undefined;
|
|
135
|
+
const invDet = 1 / det;
|
|
136
|
+
// Compute adjugate (transpose of cofactor matrix)
|
|
137
|
+
const b00 = (a11 * a22 - a12 * a21) * invDet;
|
|
138
|
+
const b01 = -(a01 * a22 - a02 * a21) * invDet;
|
|
139
|
+
const b02 = (a01 * a12 - a02 * a11) * invDet;
|
|
140
|
+
const b10 = -(a10 * a22 - a12 * a20) * invDet;
|
|
141
|
+
const b11 = (a00 * a22 - a02 * a20) * invDet;
|
|
142
|
+
const b12 = -(a00 * a12 - a02 * a10) * invDet;
|
|
143
|
+
const b20 = (a10 * a21 - a11 * a20) * invDet;
|
|
144
|
+
const b21 = -(a00 * a21 - a01 * a20) * invDet;
|
|
145
|
+
const b22 = (a00 * a11 - a01 * a10) * invDet;
|
|
146
|
+
return [
|
|
147
|
+
[b00, b01, b02],
|
|
148
|
+
[b10, b11, b12],
|
|
149
|
+
[b20, b21, b22],
|
|
150
|
+
];
|
|
151
|
+
}
|
|
152
|
+
export function mat_inverse(m) {
|
|
153
|
+
const det = m[0][0] * m[1][1] - m[0][1] * m[1][0];
|
|
154
|
+
if (det == 0) {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
const a = [
|
|
158
|
+
[m[1][1], -m[0][1]],
|
|
159
|
+
[-m[1][0], m[0][0]],
|
|
160
|
+
];
|
|
161
|
+
return mat2_mul(a, 1 / det);
|
|
162
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type Vec3 } from "./math.js";
|
|
2
|
+
import { type Material } from "./shared/material.js";
|
|
3
|
+
import { type Transform } from "./transform.js";
|
|
4
|
+
import type { Ray } from "./types.js";
|
|
5
|
+
export interface Intersection {
|
|
6
|
+
t: number;
|
|
7
|
+
shape: Shape;
|
|
8
|
+
}
|
|
9
|
+
export type ShapeType = "quad" | "circle";
|
|
10
|
+
export declare abstract class Shape {
|
|
11
|
+
transform: Transform;
|
|
12
|
+
material: Material;
|
|
13
|
+
constructor(transform: Transform, material?: Material);
|
|
14
|
+
abstract type(): string;
|
|
15
|
+
abstract _intersectLocal(ray: Ray): number[];
|
|
16
|
+
abstract _normalAtLocal(point: Vec3): Vec3;
|
|
17
|
+
abstract _hitTest(point: Vec3): boolean;
|
|
18
|
+
intersect(ray: Ray): number[];
|
|
19
|
+
normalAt(pointWorld: Vec3): Vec3;
|
|
20
|
+
hitTest(pointWorld: Vec3): boolean;
|
|
21
|
+
handlePositions(): Vec3[];
|
|
22
|
+
handleMoved(handleIndex: number, _: Vec3, newPos: Vec3): void;
|
|
23
|
+
}
|
|
24
|
+
export declare class Circle extends Shape {
|
|
25
|
+
type(): string;
|
|
26
|
+
_intersectLocal(ray: Ray): number[];
|
|
27
|
+
_normalAtLocal(point: Vec3): Vec3;
|
|
28
|
+
_hitTest(point: Vec3): boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare class Quad extends Shape {
|
|
31
|
+
type(): string;
|
|
32
|
+
_checkAxis(start: number, direction: number): number[];
|
|
33
|
+
_intersectLocal(ray: Ray): number[];
|
|
34
|
+
_normalAtLocal(point: Vec3): Vec3;
|
|
35
|
+
_hitTest(point: Vec3): boolean;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=shapes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shapes.d.ts","sourceRoot":"","sources":["../../../src/vision/raymond/shapes.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,IAAI,EAKZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EACH,KAAK,SAAS,EAIjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAItC,MAAM,WAAW,YAAY;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1C,8BAAsB,KAAK;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;gBAEP,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,QAAQ;IAKrD,QAAQ,CAAC,IAAI,IAAI,MAAM;IAGvB,QAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,EAAE;IAG5C,QAAQ,CAAC,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAG1C,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO;IAEvC,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,EAAE;IAS7B,QAAQ,CAAC,UAAU,EAAE,IAAI,GAAG,IAAI;IAiBhC,OAAO,CAAC,UAAU,EAAE,IAAI,GAAG,OAAO;IAMlC,eAAe,IAAI,IAAI,EAAE;IAKzB,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI;CAazD;AAED,qBAAa,MAAO,SAAQ,KAAK;IAC7B,IAAI,IAAI,MAAM;IAId,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,EAAE;IAiBnC,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAIjC,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO;CAGjC;AAED,qBAAa,IAAK,SAAQ,KAAK;IAC3B,IAAI,IAAI,MAAM;IAId,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE;IAqBtD,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,EAAE;IASnC,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IASjC,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO;CAGjC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { mat3_mul_vec, mat3_transpose, newPoint, newVector, vec_dot, vec_magnitude_sq, vec_normalize, vec_sub, } from "./math.js";
|
|
2
|
+
import { defaultMaterial } from "./shared/material.js";
|
|
3
|
+
import { apply, inverse, transformObject, } from "./transform.js";
|
|
4
|
+
const EPS = 0.00001;
|
|
5
|
+
export class Shape {
|
|
6
|
+
transform;
|
|
7
|
+
material;
|
|
8
|
+
constructor(transform, material) {
|
|
9
|
+
this.transform = transform;
|
|
10
|
+
this.material = material ?? defaultMaterial();
|
|
11
|
+
}
|
|
12
|
+
intersect(ray) {
|
|
13
|
+
// Transform the ray to the shape's local space
|
|
14
|
+
const rayLocal = {
|
|
15
|
+
start: apply(inverse(this.transform), ray.start),
|
|
16
|
+
direction: apply(inverse(this.transform), ray.direction),
|
|
17
|
+
};
|
|
18
|
+
return this._intersectLocal(rayLocal);
|
|
19
|
+
}
|
|
20
|
+
normalAt(pointWorld) {
|
|
21
|
+
// Transform point from world space to local space, then normal from local back to world
|
|
22
|
+
const pointLocal = apply(inverse(this.transform), pointWorld);
|
|
23
|
+
const normalLocal = this._normalAtLocal(pointLocal);
|
|
24
|
+
const inv = inverse(this.transform);
|
|
25
|
+
let normalWorld = { ...normalLocal };
|
|
26
|
+
if (inv) {
|
|
27
|
+
const inv_transpose = mat3_transpose(inv);
|
|
28
|
+
normalWorld = mat3_mul_vec(inv_transpose, normalLocal);
|
|
29
|
+
}
|
|
30
|
+
normalWorld.w = 0;
|
|
31
|
+
return vec_normalize(normalWorld);
|
|
32
|
+
}
|
|
33
|
+
hitTest(pointWorld) {
|
|
34
|
+
const pointLocal = apply(inverse(this.transform), pointWorld);
|
|
35
|
+
return this._hitTest(pointLocal);
|
|
36
|
+
}
|
|
37
|
+
// Returns the relative positions in local space of the object's handle
|
|
38
|
+
handlePositions() {
|
|
39
|
+
return [newPoint(0, 1.2)];
|
|
40
|
+
}
|
|
41
|
+
// TODO: Would be cleaner for shapes not to know about their handles
|
|
42
|
+
handleMoved(handleIndex, _, newPos) {
|
|
43
|
+
if (handleIndex !== 0) {
|
|
44
|
+
return; // Scaling not implemented yet
|
|
45
|
+
}
|
|
46
|
+
// We are rotating the shape. The centre of the shape, top of the shape, and mouse position should be collinear.
|
|
47
|
+
const shapeCentreWorld = apply(this.transform, newPoint(0, 0));
|
|
48
|
+
const d = vec_sub(newPos, shapeCentreWorld);
|
|
49
|
+
const theta = Math.atan2(d.y, d.x);
|
|
50
|
+
this.transform = transformObject(this.transform, (o) => ({
|
|
51
|
+
...o,
|
|
52
|
+
rotation: theta - Math.PI / 2,
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class Circle extends Shape {
|
|
57
|
+
type() {
|
|
58
|
+
return "circle";
|
|
59
|
+
}
|
|
60
|
+
_intersectLocal(ray) {
|
|
61
|
+
const sphereToRay = vec_sub(ray.start, newPoint(0, 0)); // Effectively just sets w = 0
|
|
62
|
+
const a = vec_magnitude_sq(ray.direction);
|
|
63
|
+
const b = 2 * vec_dot(ray.start, ray.direction);
|
|
64
|
+
const c = vec_magnitude_sq(sphereToRay) - 1;
|
|
65
|
+
const disc = b * b - 4 * a * c;
|
|
66
|
+
if (disc < 0) {
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
const rootDisc = Math.sqrt(disc);
|
|
70
|
+
const tlo = (-b - rootDisc) / (2 * a);
|
|
71
|
+
const thi = (-b + rootDisc) / (2 * a);
|
|
72
|
+
return [tlo, thi];
|
|
73
|
+
}
|
|
74
|
+
_normalAtLocal(point) {
|
|
75
|
+
return vec_sub(point, newPoint(0, 0));
|
|
76
|
+
}
|
|
77
|
+
_hitTest(point) {
|
|
78
|
+
return vec_magnitude_sq(vec_sub(point, newPoint(0, 0))) <= 1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export class Quad extends Shape {
|
|
82
|
+
type() {
|
|
83
|
+
return "quad";
|
|
84
|
+
}
|
|
85
|
+
_checkAxis(start, direction) {
|
|
86
|
+
const tminNumerator = -1 - start;
|
|
87
|
+
const tmaxNumerator = +1 - start;
|
|
88
|
+
let tmin, tmax;
|
|
89
|
+
if (Math.abs(direction) >= EPS) {
|
|
90
|
+
tmin = tminNumerator / direction;
|
|
91
|
+
tmax = tmaxNumerator / direction;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
tmin = tminNumerator * Infinity;
|
|
95
|
+
tmax = tmaxNumerator * Infinity;
|
|
96
|
+
}
|
|
97
|
+
if (tmin > tmax) {
|
|
98
|
+
const temp = tmax;
|
|
99
|
+
tmax = tmin;
|
|
100
|
+
tmin = temp;
|
|
101
|
+
}
|
|
102
|
+
return [tmin, tmax];
|
|
103
|
+
}
|
|
104
|
+
_intersectLocal(ray) {
|
|
105
|
+
const [xtmin, xtmax] = this._checkAxis(ray.start.x, ray.direction.x);
|
|
106
|
+
const [ytmin, ytmax] = this._checkAxis(ray.start.y, ray.direction.y);
|
|
107
|
+
const tmin = Math.max(xtmin, ytmin);
|
|
108
|
+
const tmax = Math.min(xtmax, ytmax);
|
|
109
|
+
return tmin < tmax ? [tmin, tmax] : [];
|
|
110
|
+
}
|
|
111
|
+
_normalAtLocal(point) {
|
|
112
|
+
const maxc = Math.max(Math.abs(point.x), Math.abs(point.y));
|
|
113
|
+
if (maxc == Math.abs(point.x)) {
|
|
114
|
+
return newVector(point.x, 0);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return newVector(0, point.y);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
_hitTest(point) {
|
|
121
|
+
return Math.abs(point.x) <= 1 && Math.abs(point.y) <= 1;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface Color {
|
|
2
|
+
r: number;
|
|
3
|
+
g: number;
|
|
4
|
+
b: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function color_mul(c: Color, scalar: number): {
|
|
7
|
+
r: number;
|
|
8
|
+
g: number;
|
|
9
|
+
b: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function color_add(a: Color, b: Color): {
|
|
12
|
+
r: number;
|
|
13
|
+
g: number;
|
|
14
|
+
b: number;
|
|
15
|
+
};
|
|
16
|
+
export declare function color_html(color: Color, alpha: number): string;
|
|
17
|
+
export declare function color_hadamard(a: Color, b: Color): Color;
|
|
18
|
+
//# sourceMappingURL=color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/vision/raymond/shared/color.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM;;;;EAEjD;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK;;;;EAE3C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAI9D;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,KAAK,CAExD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function color_mul(c, scalar) {
|
|
2
|
+
return { r: scalar * c.r, g: scalar * c.g, b: scalar * c.b };
|
|
3
|
+
}
|
|
4
|
+
export function color_add(a, b) {
|
|
5
|
+
return { r: a.r + b.r, g: a.g + b.g, b: a.b + b.b };
|
|
6
|
+
}
|
|
7
|
+
export function color_html(color, alpha) {
|
|
8
|
+
return `rgba(${color.r * 255}, ${color.g * 255}, ${color.b * 255}, ${alpha})`;
|
|
9
|
+
}
|
|
10
|
+
export function color_hadamard(a, b) {
|
|
11
|
+
return { r: a.r * b.r, g: a.g * b.g, b: a.b * b.b };
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Color } from "./color";
|
|
2
|
+
export interface Material {
|
|
3
|
+
color: Color;
|
|
4
|
+
reflectivity: number;
|
|
5
|
+
transparency: number;
|
|
6
|
+
refractiveIndex: number;
|
|
7
|
+
ambient: number;
|
|
8
|
+
diffuse: number;
|
|
9
|
+
specular: number;
|
|
10
|
+
shininess: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function defaultMaterial(): Material;
|
|
13
|
+
//# sourceMappingURL=material.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"material.d.ts","sourceRoot":"","sources":["../../../../src/vision/raymond/shared/material.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,WAAW,QAAQ;IACrB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IAExB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,eAAe,IAAI,QAAQ,CAY1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/vision/raymond/shared/util.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Vec3, type Mat3 } from "./math.js";
|
|
2
|
+
export interface ObjectTransform {
|
|
3
|
+
scale: Vec3;
|
|
4
|
+
rotation: number;
|
|
5
|
+
translation: Vec3;
|
|
6
|
+
}
|
|
7
|
+
export type Transform = Mat3;
|
|
8
|
+
/** Converts an object transform to the more general form of a matrix transform. */
|
|
9
|
+
export declare function fromObjectTransform(t: ObjectTransform): Transform;
|
|
10
|
+
/** Converts a general matrix transform to an object transform, assuming no shear. */
|
|
11
|
+
export declare function toObjectTransform(t: Transform): ObjectTransform;
|
|
12
|
+
export declare function inverse(transform: Transform): Transform;
|
|
13
|
+
export declare function apply(transform: Transform, vec: Vec3): Vec3;
|
|
14
|
+
/** Linearly interpolates the scale, translation and rotations of the two transforms,
|
|
15
|
+
* allowing for smooth animation between the two. **/
|
|
16
|
+
export declare function interp(a: Transform, b: Transform, x: number): Mat3;
|
|
17
|
+
export declare function translation(tx: number, ty: number): Mat3;
|
|
18
|
+
export declare function rotation(theta: number): Mat3;
|
|
19
|
+
export declare function scaling(sx: number, sy?: number): Mat3;
|
|
20
|
+
export declare function transformObject(t: Transform, f: (o: ObjectTransform) => ObjectTransform): Mat3;
|
|
21
|
+
export declare function rotateObject(t: Transform, theta: number): Transform;
|
|
22
|
+
export declare function translateObject(t: Transform, delta: Vec3): Transform;
|
|
23
|
+
export declare function scaleObject(t: Transform, scale: Vec3): Transform;
|
|
24
|
+
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/vision/raymond/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,IAAI,EAET,KAAK,IAAI,EAGZ,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,IAAI,CAAC;CACrB;AAED,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC;AAE7B,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,eAAe,GAAG,SAAS,CAMjE;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,SAAS,GAAG,eAAe,CAkB/D;AAED,wBAAgB,OAAO,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAEvD;AAED,wBAAgB,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,CAE3D;AAED;sDACsD;AACtD,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,QAU3D;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAMxD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAQ5C;AAED,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAOrD;AAGD,wBAAgB,eAAe,CAC3B,CAAC,EAAE,SAAS,EACZ,CAAC,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,eAAe,QAK7C;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAEnE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,GAAG,SAAS,CAKpE;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,GAAG,SAAS,CAKhE"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { mat3_chain, mat3_inverse, mat3_mul_vec, newVector, vec_add, vec_mul, } from "./math.js";
|
|
2
|
+
/** Converts an object transform to the more general form of a matrix transform. */
|
|
3
|
+
export function fromObjectTransform(t) {
|
|
4
|
+
return mat3_chain([
|
|
5
|
+
translation(t.translation.x, t.translation.y),
|
|
6
|
+
rotation(t.rotation),
|
|
7
|
+
scaling(t.scale.x, t.scale.y),
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
/** Converts a general matrix transform to an object transform, assuming no shear. */
|
|
11
|
+
export function toObjectTransform(t) {
|
|
12
|
+
const [a, b, tx] = [...t[0]];
|
|
13
|
+
const [c, d, ty] = [...t[1]];
|
|
14
|
+
// Extract translation, scale and rotation of new matrix
|
|
15
|
+
const rotation = Math.atan2(c, a);
|
|
16
|
+
const scaleX = Math.sqrt(a * a + c * c);
|
|
17
|
+
const scaleY = (a * d - b * c) / scaleX;
|
|
18
|
+
const scale = newVector(scaleX, scaleY);
|
|
19
|
+
const translation = newVector(tx, ty);
|
|
20
|
+
return {
|
|
21
|
+
scale,
|
|
22
|
+
rotation,
|
|
23
|
+
translation,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function inverse(transform) {
|
|
27
|
+
return mat3_inverse(transform) ?? transform;
|
|
28
|
+
}
|
|
29
|
+
export function apply(transform, vec) {
|
|
30
|
+
return mat3_mul_vec(transform, vec);
|
|
31
|
+
}
|
|
32
|
+
/** Linearly interpolates the scale, translation and rotations of the two transforms,
|
|
33
|
+
* allowing for smooth animation between the two. **/
|
|
34
|
+
export function interp(a, b, x) {
|
|
35
|
+
const oa = toObjectTransform(a);
|
|
36
|
+
const ob = toObjectTransform(b);
|
|
37
|
+
const rotation = (1 - x) * oa.rotation + x * ob.rotation;
|
|
38
|
+
const scale = vec_add(vec_mul(oa.scale, 1 - x), vec_mul(ob.scale, x));
|
|
39
|
+
const translation = vec_add(vec_mul(oa.translation, 1 - x), vec_mul(ob.translation, x));
|
|
40
|
+
return fromObjectTransform({ scale, rotation, translation });
|
|
41
|
+
}
|
|
42
|
+
export function translation(tx, ty) {
|
|
43
|
+
return [
|
|
44
|
+
[1, 0, tx],
|
|
45
|
+
[0, 1, ty],
|
|
46
|
+
[0, 0, 1],
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
export function rotation(theta) {
|
|
50
|
+
const c = Math.cos(theta);
|
|
51
|
+
const s = Math.sin(theta);
|
|
52
|
+
return [
|
|
53
|
+
[c, -s, 0],
|
|
54
|
+
[s, c, 0],
|
|
55
|
+
[0, 0, 1],
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
export function scaling(sx, sy) {
|
|
59
|
+
const _sy = typeof sy === "number" ? sy : sx;
|
|
60
|
+
return [
|
|
61
|
+
[sx, 0, 0],
|
|
62
|
+
[0, _sy, 0],
|
|
63
|
+
[0, 0, 1],
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
// Helpers for rotating, scaling and translating object transforms.
|
|
67
|
+
export function transformObject(t, f) {
|
|
68
|
+
const o = toObjectTransform(t);
|
|
69
|
+
const oNew = f(o);
|
|
70
|
+
return fromObjectTransform(oNew);
|
|
71
|
+
}
|
|
72
|
+
export function rotateObject(t, theta) {
|
|
73
|
+
return transformObject(t, (o) => ({ ...o, rotation: o.rotation + theta }));
|
|
74
|
+
}
|
|
75
|
+
export function translateObject(t, delta) {
|
|
76
|
+
return transformObject(t, (o) => ({
|
|
77
|
+
...o,
|
|
78
|
+
translation: vec_add(o.translation, delta),
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
export function scaleObject(t, scale) {
|
|
82
|
+
return transformObject(t, (o) => ({
|
|
83
|
+
...o,
|
|
84
|
+
scale: newVector(o.scale.x * scale.x, o.scale.y * scale.y),
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type Camera from "./camera";
|
|
2
|
+
import type { Eye } from "./canvas/Eye";
|
|
3
|
+
import { type Vec3 } from "./math";
|
|
4
|
+
import type { Shape } from "./shapes";
|
|
5
|
+
export interface RaymondState {
|
|
6
|
+
debug: boolean;
|
|
7
|
+
lastMousePos: Vec3;
|
|
8
|
+
isMouseDown: boolean;
|
|
9
|
+
placementStartWorld: Vec3 | null;
|
|
10
|
+
panStart: Vec3 | null;
|
|
11
|
+
tool: ToolType;
|
|
12
|
+
eyes: Eye[];
|
|
13
|
+
shapes: Shape[];
|
|
14
|
+
/** Which shape is currently selected, if any? */
|
|
15
|
+
selectedShapeIndex: number | null;
|
|
16
|
+
/** Is the currently selected shape being dragged? */
|
|
17
|
+
shapeDragged: boolean;
|
|
18
|
+
/** Which `handle` of the currently selected shape is being interacted with? By convention, 0 is the rotation handle, 1-8 the scale handles. */
|
|
19
|
+
activeHandleIndex: number | null;
|
|
20
|
+
camera: Camera;
|
|
21
|
+
mousePosScreen: Vec3;
|
|
22
|
+
}
|
|
23
|
+
export interface Ray {
|
|
24
|
+
start: Vec3;
|
|
25
|
+
direction: Vec3;
|
|
26
|
+
}
|
|
27
|
+
export type ToolType = "eye" | "quad" | "circle" | "pan" | "select";
|
|
28
|
+
export interface Tool {
|
|
29
|
+
type: ToolType;
|
|
30
|
+
hotkey: string;
|
|
31
|
+
name: string;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/vision/raymond/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,IAAI,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,mBAAmB,EAAE,IAAI,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,iDAAiD;IACjD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qDAAqD;IACrD,YAAY,EAAE,OAAO,CAAC;IACtB,+IAA+I;IAC/I,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,GAAG;IAChB,KAAK,EAAE,IAAI,CAAC;IACZ,SAAS,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEpE,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|