@almadar/ui 5.111.0 → 5.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GameAudioProvider-CPGwD49P.d.cts +151 -0
- package/dist/GameAudioProvider-CPGwD49P.d.ts +151 -0
- package/dist/TraitProvider-YkK6tXDw.d.cts +236 -0
- package/dist/TraitProvider-YkK6tXDw.d.ts +236 -0
- package/dist/{providers/UISlotContext.d.ts → UISlotContext-C1FsU9GB.d.ts} +14 -10
- package/dist/UISlotContext-D8_SoDsD.d.cts +79 -0
- package/dist/UserContext-bziZwgFL.d.cts +278 -0
- package/dist/UserContext-bziZwgFL.d.ts +278 -0
- package/dist/avl/index.cjs +137 -18
- package/dist/avl/index.js +139 -20
- package/dist/avl-schema-parser-B8Onmfsu.d.cts +393 -0
- package/dist/avl-schema-parser-B8Onmfsu.d.ts +393 -0
- package/dist/cn-BkQrMR01.d.cts +295 -0
- package/dist/cn-CTEFm9PC.d.ts +295 -0
- package/dist/components/index.cjs +33 -6
- package/dist/components/index.d.cts +11225 -0
- package/dist/components/index.d.ts +11225 -6
- package/dist/components/index.js +33 -6
- package/dist/{lib/themeTokens.d.ts → context/index.d.cts} +13 -4
- package/dist/context/index.d.ts +62 -9
- package/dist/{types/event-bus-types.d.ts → event-bus-types-Bl78kokd.d.cts} +7 -6
- package/dist/event-bus-types-Bl78kokd.d.ts +65 -0
- package/dist/hooks/index.d.cts +995 -0
- package/dist/hooks/index.d.ts +994 -32
- package/dist/lib/drawable/three/index.cjs +11 -24
- package/dist/lib/drawable/three/index.d.cts +1485 -0
- package/dist/lib/drawable/three/index.d.ts +1484 -38
- package/dist/lib/drawable/three/index.js +11 -24
- package/dist/lib/index.d.cts +505 -0
- package/dist/lib/index.d.ts +504 -18
- package/dist/locales/index.d.cts +22 -0
- package/dist/locales/index.d.ts +7 -5
- package/dist/offline-executor-aRuNznZx.d.cts +520 -0
- package/dist/offline-executor-aRuNznZx.d.ts +520 -0
- package/dist/paintDispatch-DR942knx.d.cts +221 -0
- package/dist/paintDispatch-DR942knx.d.ts +221 -0
- package/dist/providers/index.cjs +33 -6
- package/dist/providers/index.d.cts +428 -0
- package/dist/providers/index.d.ts +427 -26
- package/dist/providers/index.js +33 -6
- package/dist/renderer/index.cjs +1 -1
- package/dist/renderer/index.d.cts +343 -0
- package/dist/renderer/index.d.ts +337 -22
- package/dist/renderer/index.js +1 -1
- package/dist/runtime/index.cjs +137 -18
- package/dist/runtime/index.d.cts +426 -0
- package/dist/runtime/index.d.ts +421 -16
- package/dist/runtime/index.js +139 -20
- package/dist/useEventBus-CQWyAWpK.d.ts +65 -0
- package/dist/useEventBus-Ckr4wqW3.d.cts +65 -0
- package/dist/{hooks/useUISlots.d.ts → useUISlots-BesZYMks.d.cts} +16 -14
- package/dist/useUISlots-BesZYMks.d.ts +216 -0
- package/package.json +11 -11
- package/dist/avl/index.d.cts +0 -1853
- package/dist/avl/index.d.ts +0 -64
- package/dist/components/avl/atoms/Avl3DLabel.d.ts +0 -23
- package/dist/components/avl/atoms/Avl3DTooltip.d.ts +0 -25
- package/dist/components/avl/atoms/AvlApplication.d.ts +0 -8
- package/dist/components/avl/atoms/AvlBinding.d.ts +0 -12
- package/dist/components/avl/atoms/AvlBindingRef.d.ts +0 -7
- package/dist/components/avl/atoms/AvlEffect.d.ts +0 -10
- package/dist/components/avl/atoms/AvlEntity.d.ts +0 -9
- package/dist/components/avl/atoms/AvlEvent.d.ts +0 -7
- package/dist/components/avl/atoms/AvlField.d.ts +0 -10
- package/dist/components/avl/atoms/AvlFieldType.d.ts +0 -8
- package/dist/components/avl/atoms/AvlGuard.d.ts +0 -7
- package/dist/components/avl/atoms/AvlLiteral.d.ts +0 -7
- package/dist/components/avl/atoms/AvlOperator.d.ts +0 -8
- package/dist/components/avl/atoms/AvlOrbital.d.ts +0 -11
- package/dist/components/avl/atoms/AvlPage.d.ts +0 -7
- package/dist/components/avl/atoms/AvlPersistence.d.ts +0 -8
- package/dist/components/avl/atoms/AvlSExpr.d.ts +0 -8
- package/dist/components/avl/atoms/AvlState.d.ts +0 -15
- package/dist/components/avl/atoms/AvlTrait.d.ts +0 -13
- package/dist/components/avl/atoms/AvlTransition.d.ts +0 -18
- package/dist/components/avl/atoms/index.d.ts +0 -24
- package/dist/components/avl/hooks/useCanvasDnd.d.ts +0 -155
- package/dist/components/avl/lib/avl-3d-layout.d.ts +0 -116
- package/dist/components/avl/lib/avl-behavior-compose-converter.d.ts +0 -55
- package/dist/components/avl/lib/avl-elk-layout.d.ts +0 -55
- package/dist/components/avl/lib/avl-flow-converter.d.ts +0 -17
- package/dist/components/avl/lib/avl-layout.d.ts +0 -32
- package/dist/components/avl/lib/avl-preview-converter.d.ts +0 -71
- package/dist/components/avl/lib/avl-schema-parser.d.ts +0 -128
- package/dist/components/avl/lib/avl-story-schemas.d.ts +0 -34
- package/dist/components/avl/lib/avl-zoom-band.d.ts +0 -19
- package/dist/components/avl/lib/avl-zoom-state.d.ts +0 -72
- package/dist/components/avl/lib/derive-edit-focus.d.ts +0 -8
- package/dist/components/avl/lib/wire-validation.d.ts +0 -30
- package/dist/components/avl/molecules/Avl3DCrossWire.d.ts +0 -22
- package/dist/components/avl/molecules/Avl3DEntityCore.d.ts +0 -26
- package/dist/components/avl/molecules/Avl3DExprTree.d.ts +0 -21
- package/dist/components/avl/molecules/Avl3DOrbitalNode.d.ts +0 -29
- package/dist/components/avl/molecules/Avl3DStateNode.d.ts +0 -34
- package/dist/components/avl/molecules/Avl3DTransitionArc.d.ts +0 -38
- package/dist/components/avl/molecules/AvlBackwardEdge.d.ts +0 -8
- package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +0 -61
- package/dist/components/avl/molecules/AvlBindingEdge.d.ts +0 -9
- package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +0 -20
- package/dist/components/avl/molecules/AvlEmitListen.d.ts +0 -16
- package/dist/components/avl/molecules/AvlEventWireEdge.d.ts +0 -15
- package/dist/components/avl/molecules/AvlExprTree.d.ts +0 -13
- package/dist/components/avl/molecules/AvlOrbitalNode.d.ts +0 -12
- package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +0 -20
- package/dist/components/avl/molecules/AvlPageEdge.d.ts +0 -8
- package/dist/components/avl/molecules/AvlSlotMap.d.ts +0 -18
- package/dist/components/avl/molecules/AvlStateMachine.d.ts +0 -22
- package/dist/components/avl/molecules/AvlSwimLane.d.ts +0 -10
- package/dist/components/avl/molecules/AvlTransitionEdge.d.ts +0 -17
- package/dist/components/avl/molecules/AvlTransitionLane.d.ts +0 -18
- package/dist/components/avl/molecules/BehaviorComposeNode.d.ts +0 -13
- package/dist/components/avl/molecules/BehaviorView.d.ts +0 -12
- package/dist/components/avl/molecules/DetailView.d.ts +0 -13
- package/dist/components/avl/molecules/EventFlowEdge.d.ts +0 -13
- package/dist/components/avl/molecules/MiniStateMachine.d.ts +0 -14
- package/dist/components/avl/molecules/ModuleCard.d.ts +0 -22
- package/dist/components/avl/molecules/OrbPreviewNode.d.ts +0 -38
- package/dist/components/avl/molecules/SystemNode.d.ts +0 -12
- package/dist/components/avl/molecules/TraitCardNode.d.ts +0 -33
- package/dist/components/avl/molecules/index.d.ts +0 -38
- package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +0 -19
- package/dist/components/avl/organisms/Avl3DEffects.d.ts +0 -18
- package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +0 -23
- package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +0 -19
- package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +0 -17
- package/dist/components/avl/organisms/Avl3DViewer.d.ts +0 -40
- package/dist/components/avl/organisms/AvlClickTarget.d.ts +0 -31
- package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +0 -41
- package/dist/components/avl/organisms/AvlLegend.d.ts +0 -15
- package/dist/components/avl/organisms/AvlOrbitalsCosmicZoom.d.ts +0 -54
- package/dist/components/avl/organisms/AvlTraitScene.d.ts +0 -17
- package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +0 -20
- package/dist/components/avl/organisms/AvlTransitionScene.d.ts +0 -13
- package/dist/components/avl/organisms/FlowCanvas.d.ts +0 -134
- package/dist/components/avl/organisms/OrbInspector.d.ts +0 -45
- package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +0 -16
- package/dist/components/avl/organisms/ZoomLegend.d.ts +0 -10
- package/dist/components/avl/organisms/index.d.ts +0 -19
- package/dist/components/avl/providers/avl-3d-context.d.ts +0 -32
- package/dist/components/avl/types/avl-atom-types.d.ts +0 -53
- package/dist/components/avl/types/avl-behavior-compose-types.d.ts +0 -120
- package/dist/components/avl/types/avl-canvas-types.d.ts +0 -39
- package/dist/components/avl/types/avl-preview-types.d.ts +0 -240
- package/dist/components/core/atoms/Aside.d.ts +0 -15
- package/dist/components/core/atoms/AtlasImage.d.ts +0 -58
- package/dist/components/core/atoms/Avatar.d.ts +0 -61
- package/dist/components/core/atoms/Badge.d.ts +0 -29
- package/dist/components/core/atoms/Box.d.ts +0 -68
- package/dist/components/core/atoms/Button.d.ts +0 -33
- package/dist/components/core/atoms/Card.d.ts +0 -34
- package/dist/components/core/atoms/Center.d.ts +0 -33
- package/dist/components/core/atoms/Checkbox.d.ts +0 -14
- package/dist/components/core/atoms/ConditionalWrapper.d.ts +0 -69
- package/dist/components/core/atoms/ConfettiEffect.d.ts +0 -19
- package/dist/components/core/atoms/DayCell.d.ts +0 -22
- package/dist/components/core/atoms/Dialog.d.ts +0 -18
- package/dist/components/core/atoms/Divider.d.ts +0 -29
- package/dist/components/core/atoms/FilterPill.d.ts +0 -30
- package/dist/components/core/atoms/FlipContainer.d.ts +0 -21
- package/dist/components/core/atoms/GameIcon.d.ts +0 -19
- package/dist/components/core/atoms/Icon.d.ts +0 -57
- package/dist/components/core/atoms/InfiniteScrollSentinel.d.ts +0 -24
- package/dist/components/core/atoms/Input.d.ts +0 -39
- package/dist/components/core/atoms/Label.d.ts +0 -12
- package/dist/components/core/atoms/LawReferenceTooltip.d.ts +0 -48
- package/dist/components/core/atoms/Overlay.d.ts +0 -17
- package/dist/components/core/atoms/ProgressBar.d.ts +0 -63
- package/dist/components/core/atoms/Radio.d.ts +0 -35
- package/dist/components/core/atoms/RangeSlider.d.ts +0 -34
- package/dist/components/core/atoms/SectionHeader.d.ts +0 -14
- package/dist/components/core/atoms/Select.d.ts +0 -49
- package/dist/components/core/atoms/Spacer.d.ts +0 -25
- package/dist/components/core/atoms/Sparkline.d.ts +0 -30
- package/dist/components/core/atoms/Spinner.d.ts +0 -10
- package/dist/components/core/atoms/Stack.d.ts +0 -67
- package/dist/components/core/atoms/StatusDot.d.ts +0 -16
- package/dist/components/core/atoms/Switch.d.ts +0 -12
- package/dist/components/core/atoms/TextHighlight.d.ts +0 -54
- package/dist/components/core/atoms/Textarea.d.ts +0 -17
- package/dist/components/core/atoms/ThemeToggle.d.ts +0 -33
- package/dist/components/core/atoms/TimeSlotCell.d.ts +0 -23
- package/dist/components/core/atoms/TraitFrame.d.ts +0 -54
- package/dist/components/core/atoms/TrendIndicator.d.ts +0 -20
- package/dist/components/core/atoms/TypewriterText.d.ts +0 -20
- package/dist/components/core/atoms/Typography.d.ts +0 -39
- package/dist/components/core/atoms/index.d.ts +0 -52
- package/dist/components/core/atoms/svg/SvgBranch.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgConnection.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgFlow.d.ts +0 -14
- package/dist/components/core/atoms/svg/SvgGrid.d.ts +0 -18
- package/dist/components/core/atoms/svg/SvgLobe.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgMesh.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgMorph.d.ts +0 -15
- package/dist/components/core/atoms/svg/SvgNode.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgPulse.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgRing.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgShield.d.ts +0 -15
- package/dist/components/core/atoms/svg/SvgStack.d.ts +0 -17
- package/dist/components/core/atoms/svg/index.d.ts +0 -12
- package/dist/components/core/atoms/types.d.ts +0 -47
- package/dist/components/core/molecules/Accordion.d.ts +0 -71
- package/dist/components/core/molecules/ActivationBlock.d.ts +0 -22
- package/dist/components/core/molecules/Alert.d.ts +0 -25
- package/dist/components/core/molecules/AnimatedCounter.d.ts +0 -18
- package/dist/components/core/molecules/AssetPicker.d.ts +0 -21
- package/dist/components/core/molecules/BloomQuizBlock.d.ts +0 -25
- package/dist/components/core/molecules/BranchingLogicBuilder.d.ts +0 -33
- package/dist/components/core/molecules/Breadcrumb.d.ts +0 -55
- package/dist/components/core/molecules/ButtonGroup.d.ts +0 -77
- package/dist/components/core/molecules/CalendarGrid.d.ts +0 -61
- package/dist/components/core/molecules/Card.d.ts +0 -58
- package/dist/components/core/molecules/Carousel.d.ts +0 -42
- package/dist/components/core/molecules/Chart.d.ts +0 -106
- package/dist/components/core/molecules/ChartLegend.d.ts +0 -20
- package/dist/components/core/molecules/Coachmark.d.ts +0 -47
- package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -49
- package/dist/components/core/molecules/ConnectionBlock.d.ts +0 -18
- package/dist/components/core/molecules/Container.d.ts +0 -30
- package/dist/components/core/molecules/ContentRenderer.d.ts +0 -23
- package/dist/components/core/molecules/DataGrid.d.ts +0 -117
- package/dist/components/core/molecules/DataList.d.ts +0 -129
- package/dist/components/core/molecules/DateRangePicker.d.ts +0 -56
- package/dist/components/core/molecules/DateRangeSelector.d.ts +0 -21
- package/dist/components/core/molecules/DocBreadcrumb.d.ts +0 -20
- package/dist/components/core/molecules/DocPagination.d.ts +0 -21
- package/dist/components/core/molecules/DocSearch.d.ts +0 -22
- package/dist/components/core/molecules/DocSidebar.d.ts +0 -24
- package/dist/components/core/molecules/DocTOC.d.ts +0 -24
- package/dist/components/core/molecules/DocumentViewer.d.ts +0 -61
- package/dist/components/core/molecules/Drawer.d.ts +0 -47
- package/dist/components/core/molecules/EdgeDecoration.d.ts +0 -36
- package/dist/components/core/molecules/EmptyState.d.ts +0 -29
- package/dist/components/core/molecules/ErrorBoundary.d.ts +0 -54
- package/dist/components/core/molecules/ErrorState.d.ts +0 -14
- package/dist/components/core/molecules/FeatureGrid.d.ts +0 -19
- package/dist/components/core/molecules/FileTree.d.ts +0 -37
- package/dist/components/core/molecules/FilterGroup.d.ts +0 -61
- package/dist/components/core/molecules/Flex.d.ts +0 -43
- package/dist/components/core/molecules/FlipCard.d.ts +0 -24
- package/dist/components/core/molecules/FloatingActionButton.d.ts +0 -83
- package/dist/components/core/molecules/FormField.d.ts +0 -16
- package/dist/components/core/molecules/FormSection.d.ts +0 -39
- package/dist/components/core/molecules/FormSectionHeader.d.ts +0 -31
- package/dist/components/core/molecules/GradientDivider.d.ts +0 -15
- package/dist/components/core/molecules/GraphCanvas.d.ts +0 -83
- package/dist/components/core/molecules/GraphView.d.ts +0 -45
- package/dist/components/core/molecules/Grid.d.ts +0 -54
- package/dist/components/core/molecules/GridPicker.d.ts +0 -44
- package/dist/components/core/molecules/Header.d.ts +0 -113
- package/dist/components/core/molecules/IconPicker.d.ts +0 -18
- package/dist/components/core/molecules/InputGroup.d.ts +0 -24
- package/dist/components/core/molecules/JazariStateMachine.d.ts +0 -34
- package/dist/components/core/molecules/JsonTreeEditor.d.ts +0 -13
- package/dist/components/core/molecules/Lightbox.d.ts +0 -26
- package/dist/components/core/molecules/LikertScale.d.ts +0 -34
- package/dist/components/core/molecules/LineChart.d.ts +0 -35
- package/dist/components/core/molecules/LoadingState.d.ts +0 -7
- package/dist/components/core/molecules/MapView.d.ts +0 -87
- package/dist/components/core/molecules/MatrixQuestion.d.ts +0 -35
- package/dist/components/core/molecules/Menu.d.ts +0 -44
- package/dist/components/core/molecules/Meter.d.ts +0 -52
- package/dist/components/core/molecules/Modal.d.ts +0 -36
- package/dist/components/core/molecules/Navigation.d.ts +0 -67
- package/dist/components/core/molecules/NodeSlotEditor.d.ts +0 -17
- package/dist/components/core/molecules/NumberStepper.d.ts +0 -28
- package/dist/components/core/molecules/OnboardingSpotlight.d.ts +0 -27
- package/dist/components/core/molecules/OptionConstraintGroup.d.ts +0 -44
- package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -48
- package/dist/components/core/molecules/PageHeader.d.ts +0 -60
- package/dist/components/core/molecules/Pagination.d.ts +0 -71
- package/dist/components/core/molecules/Popover.d.ts +0 -39
- package/dist/components/core/molecules/PositionedCanvas.d.ts +0 -40
- package/dist/components/core/molecules/ProgressDots.d.ts +0 -24
- package/dist/components/core/molecules/PropertyInspector.d.ts +0 -38
- package/dist/components/core/molecules/PullToRefresh.d.ts +0 -22
- package/dist/components/core/molecules/QrScanner.d.ts +0 -24
- package/dist/components/core/molecules/QuizBlock.d.ts +0 -20
- package/dist/components/core/molecules/ReflectionBlock.d.ts +0 -23
- package/dist/components/core/molecules/RelationSelect.d.ts +0 -48
- package/dist/components/core/molecules/RepeatableFormSection.d.ts +0 -60
- package/dist/components/core/molecules/ReplyTree.d.ts +0 -46
- package/dist/components/core/molecules/RichBlockEditor.d.ts +0 -43
- package/dist/components/core/molecules/ScaledDiagram.d.ts +0 -20
- package/dist/components/core/molecules/SearchInput.d.ts +0 -60
- package/dist/components/core/molecules/Section.d.ts +0 -43
- package/dist/components/core/molecules/SidePanel.d.ts +0 -53
- package/dist/components/core/molecules/Sidebar.d.ts +0 -72
- package/dist/components/core/molecules/SignaturePad.d.ts +0 -46
- package/dist/components/core/molecules/SimpleGrid.d.ts +0 -27
- package/dist/components/core/molecules/Skeleton.d.ts +0 -35
- package/dist/components/core/molecules/SocialProof.d.ts +0 -25
- package/dist/components/core/molecules/SortableList.d.ts +0 -19
- package/dist/components/core/molecules/Split.d.ts +0 -41
- package/dist/components/core/molecules/StarRating.d.ts +0 -27
- package/dist/components/core/molecules/StatDisplay.d.ts +0 -58
- package/dist/components/core/molecules/SwipeableRow.d.ts +0 -26
- package/dist/components/core/molecules/TableView.d.ts +0 -111
- package/dist/components/core/molecules/Tabs.d.ts +0 -60
- package/dist/components/core/molecules/TagInput.d.ts +0 -52
- package/dist/components/core/molecules/Toast.d.ts +0 -36
- package/dist/components/core/molecules/Tooltip.d.ts +0 -25
- package/dist/components/core/molecules/UploadDropZone.d.ts +0 -28
- package/dist/components/core/molecules/VersionDiff.d.ts +0 -62
- package/dist/components/core/molecules/ViolationAlert.d.ts +0 -46
- package/dist/components/core/molecules/VoteStack.d.ts +0 -35
- package/dist/components/core/molecules/WizardContainer.d.ts +0 -166
- package/dist/components/core/molecules/WizardNavigation.d.ts +0 -61
- package/dist/components/core/molecules/WizardProgress.d.ts +0 -45
- package/dist/components/core/molecules/index.d.ts +0 -138
- package/dist/components/core/molecules/lessonSegmentUtils.d.ts +0 -18
- package/dist/components/core/molecules/markdown/CodeBlock.d.ts +0 -108
- package/dist/components/core/molecules/markdown/MarkdownContent.d.ts +0 -26
- package/dist/components/core/molecules/markdown/index.d.ts +0 -2
- package/dist/components/core/molecules/parseLessonSegments.d.ts +0 -44
- package/dist/components/core/molecules/useDataDnd.d.ts +0 -63
- package/dist/components/core/organisms/CardGrid.d.ts +0 -84
- package/dist/components/core/organisms/ChatBar.d.ts +0 -31
- package/dist/components/core/organisms/CodeRunnerPanel.d.ts +0 -42
- package/dist/components/core/organisms/ComponentPatterns.d.ts +0 -185
- package/dist/components/core/organisms/CustomPattern.d.ts +0 -105
- package/dist/components/core/organisms/DataTable.d.ts +0 -79
- package/dist/components/core/organisms/DetailPanel.d.ts +0 -80
- package/dist/components/core/organisms/DrawerSlot.d.ts +0 -42
- package/dist/components/core/organisms/Form.d.ts +0 -214
- package/dist/components/core/organisms/LayoutPatterns.d.ts +0 -108
- package/dist/components/core/organisms/List.d.ts +0 -81
- package/dist/components/core/organisms/MasterDetail.d.ts +0 -35
- package/dist/components/core/organisms/MediaGallery.d.ts +0 -63
- package/dist/components/core/organisms/ModalSlot.d.ts +0 -38
- package/dist/components/core/organisms/NotifyListener.d.ts +0 -15
- package/dist/components/core/organisms/SegmentRenderer.d.ts +0 -38
- package/dist/components/core/organisms/StatCard.d.ts +0 -65
- package/dist/components/core/organisms/StateMachineView.d.ts +0 -45
- package/dist/components/core/organisms/SubagentTracePanel.d.ts +0 -50
- package/dist/components/core/organisms/Timeline.d.ts +0 -71
- package/dist/components/core/organisms/ToastSlot.d.ts +0 -41
- package/dist/components/core/organisms/UISlotRenderer.d.ts +0 -116
- package/dist/components/core/organisms/book/index.d.ts +0 -7
- package/dist/components/core/organisms/book/types.d.ts +0 -62
- package/dist/components/core/organisms/component-registry.generated.d.ts +0 -9
- package/dist/components/core/organisms/debug/RuntimeDebugger.d.ts +0 -29
- package/dist/components/core/organisms/debug/WalkMinimap.d.ts +0 -17
- package/dist/components/core/organisms/debug/hooks/useDebugData.d.ts +0 -25
- package/dist/components/core/organisms/debug/index.d.ts +0 -13
- package/dist/components/core/organisms/debug/tabs/EntitiesTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/EventDispatcherTab.d.ts +0 -18
- package/dist/components/core/organisms/debug/tabs/EventFlowTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/GuardsPanel.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/ServerBridgeTab.d.ts +0 -20
- package/dist/components/core/organisms/debug/tabs/TicksTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/TraitsTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/TransitionTimeline.d.ts +0 -19
- package/dist/components/core/organisms/debug/tabs/VerificationTab.d.ts +0 -17
- package/dist/components/core/organisms/index.d.ts +0 -33
- package/dist/components/core/organisms/layout/DashboardGrid.d.ts +0 -33
- package/dist/components/core/organisms/layout/MasterDetailLayout.d.ts +0 -32
- package/dist/components/core/organisms/layout/SplitPane.d.ts +0 -34
- package/dist/components/core/organisms/layout/TabbedContainer.d.ts +0 -42
- package/dist/components/core/organisms/layout/index.d.ts +0 -9
- package/dist/components/core/organisms/marketing-types.d.ts +0 -8
- package/dist/components/core/organisms/trace-edit-focus.d.ts +0 -14
- package/dist/components/core/organisms/types.d.ts +0 -72
- package/dist/components/core/templates/CounterTemplate.d.ts +0 -51
- package/dist/components/core/templates/DashboardLayout.d.ts +0 -110
- package/dist/components/core/templates/GenericAppTemplate.d.ts +0 -24
- package/dist/components/core/templates/index.d.ts +0 -10
- package/dist/components/core/templates/types.d.ts +0 -35
- package/dist/components/game/atoms/ChoiceButton.d.ts +0 -29
- package/dist/components/game/atoms/ControlButton.d.ts +0 -35
- package/dist/components/game/atoms/DialogueBubble.d.ts +0 -26
- package/dist/components/game/atoms/DrawShape.d.ts +0 -50
- package/dist/components/game/atoms/DrawSprite.d.ts +0 -47
- package/dist/components/game/atoms/DrawText.d.ts +0 -31
- package/dist/components/game/atoms/GameAudioToggle.d.ts +0 -34
- package/dist/components/game/atoms/HealthBar.d.ts +0 -32
- package/dist/components/game/atoms/MiniMap.d.ts +0 -40
- package/dist/components/game/atoms/ScoreDisplay.d.ts +0 -25
- package/dist/components/game/atoms/StateIndicator.d.ts +0 -29
- package/dist/components/game/atoms/TimerDisplay.d.ts +0 -22
- package/dist/components/game/molecules/ActionPalette.d.ts +0 -34
- package/dist/components/game/molecules/ActionTile.d.ts +0 -30
- package/dist/components/game/molecules/Canvas.d.ts +0 -96
- package/dist/components/game/molecules/Canvas2D.d.ts +0 -120
- package/dist/components/game/molecules/ControlGrid.d.ts +0 -49
- package/dist/components/game/molecules/DrawShapeLayer.d.ts +0 -19
- package/dist/components/game/molecules/DrawSpriteLayer.d.ts +0 -21
- package/dist/components/game/molecules/DrawTextLayer.d.ts +0 -22
- package/dist/components/game/molecules/GameHud.d.ts +0 -52
- package/dist/components/game/molecules/GameMenu.d.ts +0 -42
- package/dist/components/game/molecules/SequenceBar.d.ts +0 -51
- package/dist/components/game/molecules/StatBadge.d.ts +0 -39
- package/dist/components/game/molecules/StateGraph.d.ts +0 -38
- package/dist/components/game/molecules/StateJsonView.d.ts +0 -37
- package/dist/components/game/molecules/StateNode.d.ts +0 -31
- package/dist/components/game/molecules/TraitSlot.d.ts +0 -99
- package/dist/components/game/molecules/TraitStateViewer.d.ts +0 -52
- package/dist/components/game/molecules/TransitionArrow.d.ts +0 -31
- package/dist/components/game/molecules/index.d.ts +0 -39
- package/dist/components/game/patterns.d.ts +0 -20
- package/dist/components/game/templates/GameShell.d.ts +0 -35
- package/dist/components/learning/atoms/LearningCanvas.d.ts +0 -80
- package/dist/components/learning/molecules/AlgorithmCanvas.d.ts +0 -58
- package/dist/components/learning/molecules/BiologyCanvas.d.ts +0 -47
- package/dist/components/learning/molecules/ChemistryCanvas.d.ts +0 -55
- package/dist/components/learning/molecules/MathCanvas.d.ts +0 -61
- package/dist/components/learning/molecules/PhysicsCanvas.d.ts +0 -54
- package/dist/components/marketing/atoms/AnimatedCounter.d.ts +0 -20
- package/dist/components/marketing/atoms/AnimatedGraphic.d.ts +0 -32
- package/dist/components/marketing/atoms/AnimatedReveal.d.ts +0 -26
- package/dist/components/marketing/atoms/ContentSection.d.ts +0 -16
- package/dist/components/marketing/atoms/MarketingStatCard.d.ts +0 -13
- package/dist/components/marketing/atoms/PatternTile.d.ts +0 -41
- package/dist/components/marketing/molecules/ArticleSection.d.ts +0 -18
- package/dist/components/marketing/molecules/CTABanner.d.ts +0 -26
- package/dist/components/marketing/molecules/CaseStudyCard.d.ts +0 -24
- package/dist/components/marketing/molecules/CommunityLinks.d.ts +0 -28
- package/dist/components/marketing/molecules/FeatureCard.d.ts +0 -26
- package/dist/components/marketing/molecules/GeometricPattern.d.ts +0 -33
- package/dist/components/marketing/molecules/HeroSection.d.ts +0 -28
- package/dist/components/marketing/molecules/InstallBox.d.ts +0 -16
- package/dist/components/marketing/molecules/MarketingFooter.d.ts +0 -29
- package/dist/components/marketing/molecules/PricingCard.d.ts +0 -19
- package/dist/components/marketing/molecules/PricingGrid.d.ts +0 -13
- package/dist/components/marketing/molecules/PullQuote.d.ts +0 -14
- package/dist/components/marketing/molecules/ServiceCatalog.d.ts +0 -19
- package/dist/components/marketing/molecules/ShowcaseCard.d.ts +0 -18
- package/dist/components/marketing/molecules/SplitSection.d.ts +0 -19
- package/dist/components/marketing/molecules/StatsGrid.d.ts +0 -18
- package/dist/components/marketing/molecules/StepFlow.d.ts +0 -21
- package/dist/components/marketing/molecules/TagCloud.d.ts +0 -18
- package/dist/components/marketing/molecules/TeamCard.d.ts +0 -19
- package/dist/components/marketing/organisms/CaseStudyOrganism.d.ts +0 -29
- package/dist/components/marketing/organisms/FeatureGridOrganism.d.ts +0 -30
- package/dist/components/marketing/organisms/HeroOrganism.d.ts +0 -42
- package/dist/components/marketing/organisms/PricingOrganism.d.ts +0 -33
- package/dist/components/marketing/organisms/ShowcaseOrganism.d.ts +0 -34
- package/dist/components/marketing/organisms/StatsOrganism.d.ts +0 -23
- package/dist/components/marketing/organisms/StepFlowOrganism.d.ts +0 -29
- package/dist/components/marketing/organisms/TeamOrganism.d.ts +0 -28
- package/dist/components/marketing/organisms/book/BookChapterView.d.ts +0 -21
- package/dist/components/marketing/organisms/book/BookCoverPage.d.ts +0 -21
- package/dist/components/marketing/organisms/book/BookNavBar.d.ts +0 -19
- package/dist/components/marketing/organisms/book/BookTableOfContents.d.ts +0 -20
- package/dist/components/marketing/organisms/book/BookViewer.d.ts +0 -31
- package/dist/components/marketing/templates/AboutPageTemplate.d.ts +0 -53
- package/dist/components/marketing/templates/AuthLayout.d.ts +0 -15
- package/dist/components/marketing/templates/FeatureDetailPageTemplate.d.ts +0 -37
- package/dist/components/marketing/templates/LandingPageTemplate.d.ts +0 -70
- package/dist/components/marketing/templates/PricingPageTemplate.d.ts +0 -44
- package/dist/hooks/useAgentChat.d.ts +0 -105
- package/dist/hooks/useAlmadarDndCollision.d.ts +0 -34
- package/dist/hooks/useAuthContext.d.ts +0 -25
- package/dist/hooks/useCamera.d.ts +0 -57
- package/dist/hooks/useCanvasGestures.d.ts +0 -44
- package/dist/hooks/useClientEffects.d.ts +0 -88
- package/dist/hooks/useCompile.d.ts +0 -18
- package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
- package/dist/hooks/useDragReorder.d.ts +0 -26
- package/dist/hooks/useDraggable.d.ts +0 -25
- package/dist/hooks/useDropZone.d.ts +0 -23
- package/dist/hooks/useEventBus.d.ts +0 -99
- package/dist/hooks/useExtensions.d.ts +0 -32
- package/dist/hooks/useFileEditor.d.ts +0 -32
- package/dist/hooks/useFileSystem.d.ts +0 -50
- package/dist/hooks/useGameAudio.d.ts +0 -47
- package/dist/hooks/useGitHub.d.ts +0 -58
- package/dist/hooks/useImageCache.d.ts +0 -16
- package/dist/hooks/useInfiniteScroll.d.ts +0 -13
- package/dist/hooks/useLongPress.d.ts +0 -16
- package/dist/hooks/useOrbitalHistory.d.ts +0 -39
- package/dist/hooks/usePreview.d.ts +0 -57
- package/dist/hooks/usePullToRefresh.d.ts +0 -25
- package/dist/hooks/useQuerySingleton.d.ts +0 -79
- package/dist/hooks/useRenderInterpolation.d.ts +0 -33
- package/dist/hooks/useResolvedSchema.d.ts +0 -45
- package/dist/hooks/useSharedEntityStore.d.ts +0 -53
- package/dist/hooks/useSwipeGesture.d.ts +0 -26
- package/dist/hooks/useTapReveal.d.ts +0 -32
- package/dist/hooks/useTraitStateMachine.d.ts +0 -136
- package/dist/hooks/useTranslate.d.ts +0 -35
- package/dist/hooks/useUIEvents.d.ts +0 -41
- package/dist/hooks/useUnitSpriteAtlas.d.ts +0 -24
- package/dist/hooks/useValidation.d.ts +0 -46
- package/dist/lib/api-client.d.ts +0 -43
- package/dist/lib/atlasSlice.d.ts +0 -58
- package/dist/lib/boardEntity.d.ts +0 -44
- package/dist/lib/client-effect-executor.d.ts +0 -57
- package/dist/lib/cn.d.ts +0 -6
- package/dist/lib/createClientEffectHandlers.d.ts +0 -42
- package/dist/lib/data-resolver.d.ts +0 -55
- package/dist/lib/debug.d.ts +0 -36
- package/dist/lib/debugRegistry.d.ts +0 -30
- package/dist/lib/debugUtils.d.ts +0 -27
- package/dist/lib/drawable/contract.d.ts +0 -68
- package/dist/lib/drawable/hitTest.d.ts +0 -23
- package/dist/lib/drawable/paintDispatch.d.ts +0 -22
- package/dist/lib/drawable/projector.d.ts +0 -14
- package/dist/lib/drawable/projector3d.d.ts +0 -20
- package/dist/lib/drawable/three/Camera3D.d.ts +0 -60
- package/dist/lib/drawable/three/Canvas3DErrorBoundary.d.ts +0 -51
- package/dist/lib/drawable/three/Canvas3DHost.d.ts +0 -178
- package/dist/lib/drawable/three/Canvas3DLoadingState.d.ts +0 -44
- package/dist/lib/drawable/three/Drawable3D.d.ts +0 -20
- package/dist/lib/drawable/three/GameCamera3D.d.ts +0 -16
- package/dist/lib/drawable/three/Lighting3D.d.ts +0 -55
- package/dist/lib/drawable/three/ModelLoader.d.ts +0 -52
- package/dist/lib/drawable/three/Scene3D.d.ts +0 -37
- package/dist/lib/drawable/three/game3dTheme.d.ts +0 -14
- package/dist/lib/drawable/three/hooks/useAssetLoader.d.ts +0 -58
- package/dist/lib/drawable/three/hooks/useGameCanvas3DEvents.d.ts +0 -124
- package/dist/lib/drawable/three/hooks/useRaycaster.d.ts +0 -86
- package/dist/lib/drawable/three/hooks/useSceneGraph.d.ts +0 -67
- package/dist/lib/drawable/three/hooks/useThree.d.ts +0 -58
- package/dist/lib/drawable/three/lib/AssetLoader.d.ts +0 -80
- package/dist/lib/drawable/three/lib/culling.d.ts +0 -134
- package/dist/lib/drawable/three/lib/grid3D.d.ts +0 -154
- package/dist/lib/drawable/three/mesh3d.d.ts +0 -28
- package/dist/lib/editorUtils.d.ts +0 -114
- package/dist/lib/embedded-traits.d.ts +0 -39
- package/dist/lib/entityDebug.d.ts +0 -39
- package/dist/lib/fn-form-lambda.d.ts +0 -27
- package/dist/lib/game.d.ts +0 -92
- package/dist/lib/gameShared.d.ts +0 -18
- package/dist/lib/getNestedValue.d.ts +0 -34
- package/dist/lib/guardRegistry.d.ts +0 -33
- package/dist/lib/iconFamily.d.ts +0 -41
- package/dist/lib/imageCache.d.ts +0 -9
- package/dist/lib/init.d.ts +0 -14
- package/dist/lib/isometric.d.ts +0 -121
- package/dist/lib/isometricTypes.d.ts +0 -141
- package/dist/lib/jazari/index.d.ts +0 -5
- package/dist/lib/jazari/layout.d.ts +0 -31
- package/dist/lib/jazari/svg-paths.d.ts +0 -61
- package/dist/lib/jazari/types.d.ts +0 -91
- package/dist/lib/makeAsset.d.ts +0 -5
- package/dist/lib/mechanics.d.ts +0 -4
- package/dist/lib/offline-executor.d.ts +0 -239
- package/dist/lib/orbitalsByTrait.d.ts +0 -34
- package/dist/lib/painter2d.d.ts +0 -81
- package/dist/lib/parseContentSegments.d.ts +0 -42
- package/dist/lib/pattern-resolver.d.ts +0 -88
- package/dist/lib/perf.d.ts +0 -32
- package/dist/lib/physicsPresets.d.ts +0 -4
- package/dist/lib/physicsTypes.d.ts +0 -43
- package/dist/lib/prepareSchemaForPreview.d.ts +0 -71
- package/dist/lib/puzzleObject.d.ts +0 -41
- package/dist/lib/slot-definitions.d.ts +0 -33
- package/dist/lib/spriteAnimation.d.ts +0 -85
- package/dist/lib/spriteAnimationTypes.d.ts +0 -72
- package/dist/lib/spriteSheetConstants.d.ts +0 -16
- package/dist/lib/tickRegistry.d.ts +0 -40
- package/dist/lib/trait-binding-resolver.d.ts +0 -57
- package/dist/lib/traitRegistry.d.ts +0 -34
- package/dist/lib/verificationRegistry.d.ts +0 -97
- package/dist/lib/visualizer/browser.d.ts +0 -48
- package/dist/lib/visualizer/index.d.ts +0 -144
- package/dist/lib/webPainter2d.d.ts +0 -7
- package/dist/lib/wrapCallbackForEvent.d.ts +0 -16
- package/dist/marketing/index.d.cts +0 -1067
- package/dist/marketing/index.d.ts +0 -72
- package/dist/providers/CurrentPagePathContext.d.ts +0 -9
- package/dist/providers/DesignThemeContext.d.ts +0 -21
- package/dist/providers/EntitySchemaContext.d.ts +0 -81
- package/dist/providers/EventBusProvider.d.ts +0 -47
- package/dist/providers/GameAudioProvider.d.ts +0 -53
- package/dist/providers/OfflineModeProvider.d.ts +0 -79
- package/dist/providers/OrbitalProvider.d.ts +0 -110
- package/dist/providers/OrbitalThemeProvider.d.ts +0 -37
- package/dist/providers/SelectionProvider.d.ts +0 -82
- package/dist/providers/ServerBridge.d.ts +0 -102
- package/dist/providers/ThemeContext.d.ts +0 -104
- package/dist/providers/TraitProvider.d.ts +0 -53
- package/dist/providers/TraitScopeProvider.d.ts +0 -43
- package/dist/providers/UserContext.d.ts +0 -112
- package/dist/providers/VerificationProvider.d.ts +0 -64
- package/dist/providers/navigation.d.ts +0 -142
- package/dist/runtime/BrowserPlayground.d.ts +0 -34
- package/dist/runtime/OrbPreview.d.ts +0 -84
- package/dist/scripts/audit-tailwind-safelist.d.ts +0 -27
- package/dist/scripts/generate-design-system.d.ts +0 -29
- package/dist/scripts/generate-theme-from-schema.d.ts +0 -10
- package/dist/scripts/generate.d.ts +0 -12
- package/dist/scripts/suggest-components.d.ts +0 -31
- package/dist/scripts/types.d.ts +0 -129
- package/dist/tsup.config.d.ts +0 -3
- package/dist/types/renderer-types.d.ts +0 -146
- package/dist/types/runtime-types.d.ts +0 -21
- package/dist/types/slot-types.d.ts +0 -49
- package/dist/vitest.config.d.ts +0 -2
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import type { EventEmit } from '@almadar/core';
|
|
2
|
-
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../../isometricTypes';
|
|
3
|
-
export interface GameCanvas3DEventConfig {
|
|
4
|
-
/** Event name for tile clicks. `tileId` is optional — the neutral draw-host emits
|
|
5
|
-
* only the scene coordinate `{ x, z }` (the FSM keys off the cell, not an id). */
|
|
6
|
-
tileClickEvent?: EventEmit<{
|
|
7
|
-
x: number;
|
|
8
|
-
z: number;
|
|
9
|
-
tileId?: string;
|
|
10
|
-
type?: string;
|
|
11
|
-
terrain?: string;
|
|
12
|
-
elevation?: number;
|
|
13
|
-
}>;
|
|
14
|
-
/** Event name for unit clicks */
|
|
15
|
-
unitClickEvent?: EventEmit<{
|
|
16
|
-
unitId: string;
|
|
17
|
-
x: number;
|
|
18
|
-
z: number;
|
|
19
|
-
unitType?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
team?: string;
|
|
22
|
-
faction?: string;
|
|
23
|
-
health?: number;
|
|
24
|
-
maxHealth?: number;
|
|
25
|
-
}>;
|
|
26
|
-
/** Event name for feature clicks */
|
|
27
|
-
featureClickEvent?: EventEmit<{
|
|
28
|
-
featureId: string;
|
|
29
|
-
x: number;
|
|
30
|
-
z: number;
|
|
31
|
-
type?: string;
|
|
32
|
-
elevation?: number;
|
|
33
|
-
}>;
|
|
34
|
-
/** Event name for canvas clicks */
|
|
35
|
-
canvasClickEvent?: EventEmit<{
|
|
36
|
-
clientX: number;
|
|
37
|
-
clientY: number;
|
|
38
|
-
button: number;
|
|
39
|
-
}>;
|
|
40
|
-
/** Event name for tile hover */
|
|
41
|
-
tileHoverEvent?: EventEmit<{
|
|
42
|
-
tileId: string;
|
|
43
|
-
x: number;
|
|
44
|
-
z: number;
|
|
45
|
-
type?: string;
|
|
46
|
-
}>;
|
|
47
|
-
/** Event name for tile leave */
|
|
48
|
-
tileLeaveEvent?: EventEmit<Record<string, never>>;
|
|
49
|
-
/** Event name for unit animation changes */
|
|
50
|
-
unitAnimationEvent?: EventEmit<{
|
|
51
|
-
unitId: string;
|
|
52
|
-
state: string;
|
|
53
|
-
timestamp: number;
|
|
54
|
-
}>;
|
|
55
|
-
/** Event name for camera changes */
|
|
56
|
-
cameraChangeEvent?: EventEmit<{
|
|
57
|
-
position: {
|
|
58
|
-
x: number;
|
|
59
|
-
y: number;
|
|
60
|
-
z: number;
|
|
61
|
-
};
|
|
62
|
-
timestamp: number;
|
|
63
|
-
}>;
|
|
64
|
-
}
|
|
65
|
-
/** Minimal mouse event interface — satisfied by both React.MouseEvent and ThreeEvent<MouseEvent> */
|
|
66
|
-
export interface MinimalMouseEvent {
|
|
67
|
-
clientX: number;
|
|
68
|
-
clientY: number;
|
|
69
|
-
button: number;
|
|
70
|
-
}
|
|
71
|
-
export interface UseGameCanvas3DEventsOptions extends GameCanvas3DEventConfig {
|
|
72
|
-
/** Callback for tile clicks (direct) */
|
|
73
|
-
onTileClick?: (tile: IsometricTile, event: MinimalMouseEvent) => void;
|
|
74
|
-
/** Callback for unit clicks (direct) */
|
|
75
|
-
onUnitClick?: (unit: IsometricUnit, event: MinimalMouseEvent) => void;
|
|
76
|
-
/** Callback for feature clicks (direct) */
|
|
77
|
-
onFeatureClick?: (feature: IsometricFeature, event: MinimalMouseEvent) => void;
|
|
78
|
-
/** Callback for canvas clicks (direct) */
|
|
79
|
-
onCanvasClick?: (event: MinimalMouseEvent) => void;
|
|
80
|
-
/** Callback for tile hover (direct) */
|
|
81
|
-
onTileHover?: (tile: IsometricTile | null, event: MinimalMouseEvent) => void;
|
|
82
|
-
/** Callback for unit animation changes (direct) */
|
|
83
|
-
onUnitAnimation?: (unitId: string, state: string) => void;
|
|
84
|
-
}
|
|
85
|
-
export interface UseGameCanvas3DEventsReturn {
|
|
86
|
-
/** Handle tile click - emits event and calls callback */
|
|
87
|
-
handleTileClick: (tile: IsometricTile, event: MinimalMouseEvent) => void;
|
|
88
|
-
/** Handle unit click - emits event and calls callback */
|
|
89
|
-
handleUnitClick: (unit: IsometricUnit, event: MinimalMouseEvent) => void;
|
|
90
|
-
/** Handle feature click - emits event and calls callback */
|
|
91
|
-
handleFeatureClick: (feature: IsometricFeature, event: MinimalMouseEvent) => void;
|
|
92
|
-
/** Handle canvas click - emits event and calls callback */
|
|
93
|
-
handleCanvasClick: (event: MinimalMouseEvent) => void;
|
|
94
|
-
/** Handle tile hover - emits event and calls callback */
|
|
95
|
-
handleTileHover: (tile: IsometricTile | null, event: MinimalMouseEvent) => void;
|
|
96
|
-
/** Handle unit animation - emits event and calls callback */
|
|
97
|
-
handleUnitAnimation: (unitId: string, state: string) => void;
|
|
98
|
-
/** Handle camera change - emits event */
|
|
99
|
-
handleCameraChange: (position: {
|
|
100
|
-
x: number;
|
|
101
|
-
y: number;
|
|
102
|
-
z: number;
|
|
103
|
-
}) => void;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Hook for integrating GameCanvas3D with the event bus
|
|
107
|
-
*
|
|
108
|
-
* Supports both declarative event props (tileClickEvent) and
|
|
109
|
-
* direct callback props (onTileClick).
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```tsx
|
|
113
|
-
* const events = useGameCanvas3DEvents({
|
|
114
|
-
* tileClickEvent: 'TILE_SELECTED',
|
|
115
|
-
* unitClickEvent: 'UNIT_SELECTED',
|
|
116
|
-
* onTileClick: (tile) => console.log('Tile:', tile)
|
|
117
|
-
* });
|
|
118
|
-
*
|
|
119
|
-
* // In component:
|
|
120
|
-
* <TileRenderer onTileClick={events.handleTileClick} />
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
export declare function useGameCanvas3DEvents(options: UseGameCanvas3DEventsOptions): UseGameCanvas3DEventsReturn;
|
|
124
|
-
export default useGameCanvas3DEvents;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
export interface RaycastHit {
|
|
3
|
-
/** Intersected object */
|
|
4
|
-
object: THREE.Object3D;
|
|
5
|
-
/** Intersection point */
|
|
6
|
-
point: THREE.Vector3;
|
|
7
|
-
/** Distance from camera */
|
|
8
|
-
distance: number;
|
|
9
|
-
/** UV coordinates (if available) */
|
|
10
|
-
uv?: THREE.Vector2;
|
|
11
|
-
/** Face normal */
|
|
12
|
-
face?: THREE.Face;
|
|
13
|
-
/** Face index */
|
|
14
|
-
faceIndex?: number;
|
|
15
|
-
/** Instance ID (for instanced meshes) */
|
|
16
|
-
instanceId?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface GridHit {
|
|
19
|
-
/** Grid X coordinate */
|
|
20
|
-
gridX: number;
|
|
21
|
-
/** Grid Z coordinate */
|
|
22
|
-
gridZ: number;
|
|
23
|
-
/** World position */
|
|
24
|
-
worldPosition: THREE.Vector3;
|
|
25
|
-
/** Intersected object type */
|
|
26
|
-
objectType?: 'tile' | 'unit' | 'feature';
|
|
27
|
-
/** Object ID if available */
|
|
28
|
-
objectId?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface UseRaycasterOptions {
|
|
31
|
-
/** Camera reference */
|
|
32
|
-
camera: THREE.Camera | null;
|
|
33
|
-
/** Canvas element for coordinate conversion */
|
|
34
|
-
canvas: HTMLCanvasElement | null;
|
|
35
|
-
/** Grid cell size */
|
|
36
|
-
cellSize?: number;
|
|
37
|
-
/** Grid offset X */
|
|
38
|
-
offsetX?: number;
|
|
39
|
-
/** Grid offset Z */
|
|
40
|
-
offsetZ?: number;
|
|
41
|
-
}
|
|
42
|
-
export interface UseRaycasterReturn {
|
|
43
|
-
/** Raycaster instance */
|
|
44
|
-
raycaster: React.MutableRefObject<THREE.Raycaster>;
|
|
45
|
-
/** Mouse vector instance */
|
|
46
|
-
mouse: React.MutableRefObject<THREE.Vector2>;
|
|
47
|
-
/** Get intersection at client coordinates */
|
|
48
|
-
getIntersection: (clientX: number, clientY: number, objects: THREE.Object3D[]) => RaycastHit | null;
|
|
49
|
-
/** Get all intersections at client coordinates */
|
|
50
|
-
getAllIntersections: (clientX: number, clientY: number, objects: THREE.Object3D[]) => RaycastHit[];
|
|
51
|
-
/** Get grid coordinates at client position */
|
|
52
|
-
getGridCoordinates: (clientX: number, clientY: number) => {
|
|
53
|
-
x: number;
|
|
54
|
-
z: number;
|
|
55
|
-
} | null;
|
|
56
|
-
/** Get tile at client position from scene */
|
|
57
|
-
getTileAtPosition: (clientX: number, clientY: number, scene: THREE.Scene) => GridHit | null;
|
|
58
|
-
/** Convert client coordinates to normalized device coordinates */
|
|
59
|
-
clientToNDC: (clientX: number, clientY: number) => {
|
|
60
|
-
x: number;
|
|
61
|
-
y: number;
|
|
62
|
-
};
|
|
63
|
-
/** Check if point is within canvas bounds */
|
|
64
|
-
isWithinCanvas: (clientX: number, clientY: number) => boolean;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Hook for 3D raycasting operations
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```tsx
|
|
71
|
-
* const { getIntersection, getGridCoordinates } = useRaycaster({
|
|
72
|
-
* camera,
|
|
73
|
-
* canvas: canvasRef.current
|
|
74
|
-
* });
|
|
75
|
-
*
|
|
76
|
-
* const handleClick = (e: MouseEvent) => {
|
|
77
|
-
* const hit = getIntersection(e.clientX, e.clientY, tileMeshes);
|
|
78
|
-
* if (hit) {
|
|
79
|
-
* const grid = getGridCoordinates(e.clientX, e.clientY);
|
|
80
|
-
* console.log('Clicked grid:', grid);
|
|
81
|
-
* }
|
|
82
|
-
* };
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
export declare function useRaycaster(options: UseRaycasterOptions): UseRaycasterReturn;
|
|
86
|
-
export default useRaycaster;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import type { JsonObject } from '@almadar/core';
|
|
3
|
-
export type NodeType = 'tile' | 'unit' | 'feature' | 'highlight' | 'effect';
|
|
4
|
-
export interface SceneGraphNode {
|
|
5
|
-
/** Unique node identifier */
|
|
6
|
-
id: string;
|
|
7
|
-
/** Node type classification */
|
|
8
|
-
type: NodeType;
|
|
9
|
-
/** Three.js object */
|
|
10
|
-
mesh: THREE.Object3D;
|
|
11
|
-
/** World position */
|
|
12
|
-
position: {
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
z: number;
|
|
16
|
-
};
|
|
17
|
-
/** Grid position */
|
|
18
|
-
gridPosition: {
|
|
19
|
-
x: number;
|
|
20
|
-
z: number;
|
|
21
|
-
};
|
|
22
|
-
/** Optional metadata */
|
|
23
|
-
metadata?: JsonObject;
|
|
24
|
-
}
|
|
25
|
-
export interface UseSceneGraphReturn {
|
|
26
|
-
/** Reference to the nodes map */
|
|
27
|
-
nodesRef: React.MutableRefObject<Map<string, SceneGraphNode>>;
|
|
28
|
-
/** Add a node to the scene */
|
|
29
|
-
addNode: (node: SceneGraphNode) => void;
|
|
30
|
-
/** Remove a node from the scene */
|
|
31
|
-
removeNode: (id: string) => void;
|
|
32
|
-
/** Get a node by ID */
|
|
33
|
-
getNode: (id: string) => SceneGraphNode | undefined;
|
|
34
|
-
/** Update node position */
|
|
35
|
-
updateNodePosition: (id: string, x: number, y: number, z: number) => void;
|
|
36
|
-
/** Update node grid position */
|
|
37
|
-
updateNodeGridPosition: (id: string, gridX: number, gridZ: number) => void;
|
|
38
|
-
/** Get node at grid position */
|
|
39
|
-
getNodeAtGrid: (x: number, z: number, type?: NodeType) => SceneGraphNode | undefined;
|
|
40
|
-
/** Get all nodes of a specific type */
|
|
41
|
-
getNodesByType: (type: NodeType) => SceneGraphNode[];
|
|
42
|
-
/** Get all nodes within a bounding box */
|
|
43
|
-
getNodesInBounds: (minX: number, maxX: number, minZ: number, maxZ: number) => SceneGraphNode[];
|
|
44
|
-
/** Clear all nodes */
|
|
45
|
-
clearNodes: () => void;
|
|
46
|
-
/** Count nodes by type */
|
|
47
|
-
countNodes: (type?: NodeType) => number;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Hook for managing the 3D scene graph
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```tsx
|
|
54
|
-
* const { addNode, removeNode, getNodeAtGrid } = useSceneGraph();
|
|
55
|
-
*
|
|
56
|
-
* // Add a tile
|
|
57
|
-
* addNode({
|
|
58
|
-
* id: 'tile-0-0',
|
|
59
|
-
* type: 'tile',
|
|
60
|
-
* mesh: tileMesh,
|
|
61
|
-
* position: { x: 0, y: 0, z: 0 },
|
|
62
|
-
* gridPosition: { x: 0, z: 0 }
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export declare function useSceneGraph(): UseSceneGraphReturn;
|
|
67
|
-
export default useSceneGraph;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
3
|
-
import { AssetLoader } from '../lib/AssetLoader';
|
|
4
|
-
export type CameraMode = 'isometric' | 'perspective' | 'top-down';
|
|
5
|
-
export interface UseThreeOptions {
|
|
6
|
-
/** Camera mode for viewing the scene */
|
|
7
|
-
cameraMode?: CameraMode;
|
|
8
|
-
/** Initial camera position [x, y, z] */
|
|
9
|
-
cameraPosition?: [number, number, number];
|
|
10
|
-
/** Background color */
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
/** Enable shadows */
|
|
13
|
-
shadows?: boolean;
|
|
14
|
-
/** Enable grid helper */
|
|
15
|
-
showGrid?: boolean;
|
|
16
|
-
/** Grid size */
|
|
17
|
-
gridSize?: number;
|
|
18
|
-
/** Asset loader instance */
|
|
19
|
-
assetLoader?: AssetLoader;
|
|
20
|
-
}
|
|
21
|
-
export interface UseThreeReturn {
|
|
22
|
-
/** Canvas element reference (for React Three Fiber) */
|
|
23
|
-
canvasRef: React.RefObject<HTMLCanvasElement | null>;
|
|
24
|
-
/** Three.js renderer */
|
|
25
|
-
renderer: THREE.WebGLRenderer | null;
|
|
26
|
-
/** Three.js scene */
|
|
27
|
-
scene: THREE.Scene | null;
|
|
28
|
-
/** Three.js camera */
|
|
29
|
-
camera: THREE.Camera | null;
|
|
30
|
-
/** Orbit controls */
|
|
31
|
-
controls: OrbitControls | null;
|
|
32
|
-
/** Is scene ready */
|
|
33
|
-
isReady: boolean;
|
|
34
|
-
/** Canvas dimensions */
|
|
35
|
-
dimensions: {
|
|
36
|
-
width: number;
|
|
37
|
-
height: number;
|
|
38
|
-
};
|
|
39
|
-
/** Set camera position */
|
|
40
|
-
setCameraPosition: (x: number, y: number, z: number) => void;
|
|
41
|
-
/** Look at a specific point */
|
|
42
|
-
lookAt: (x: number, y: number, z: number) => void;
|
|
43
|
-
/** Reset camera to initial position */
|
|
44
|
-
resetCamera: () => void;
|
|
45
|
-
/** Fit view to bounds */
|
|
46
|
-
fitView: (bounds: {
|
|
47
|
-
minX: number;
|
|
48
|
-
maxX: number;
|
|
49
|
-
minZ: number;
|
|
50
|
-
maxZ: number;
|
|
51
|
-
}) => void;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Hook for managing a Three.js scene
|
|
55
|
-
* This is a lower-level hook used by GameCanvas3D
|
|
56
|
-
*/
|
|
57
|
-
export declare function useThree(options?: UseThreeOptions): UseThreeReturn;
|
|
58
|
-
export default useThree;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AssetLoader
|
|
3
|
-
*
|
|
4
|
-
* Three.js asset loading manager for 3D models and textures.
|
|
5
|
-
* Supports GLB/GLTF (primary), OBJ (fallback), and texture loading.
|
|
6
|
-
* Implements caching for performance.
|
|
7
|
-
*
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
import * as THREE from 'three';
|
|
11
|
-
export interface LoadedModel {
|
|
12
|
-
scene: THREE.Group;
|
|
13
|
-
animations: THREE.AnimationClip[];
|
|
14
|
-
}
|
|
15
|
-
export declare class AssetLoader {
|
|
16
|
-
private objLoader;
|
|
17
|
-
private textureLoader;
|
|
18
|
-
private modelCache;
|
|
19
|
-
private textureCache;
|
|
20
|
-
private loadingPromises;
|
|
21
|
-
constructor();
|
|
22
|
-
/**
|
|
23
|
-
* Load a GLB/GLTF model
|
|
24
|
-
* @param url - URL to the .glb or .gltf file
|
|
25
|
-
* @returns Promise with loaded model scene and animations
|
|
26
|
-
*/
|
|
27
|
-
loadModel(url: string): Promise<LoadedModel>;
|
|
28
|
-
/**
|
|
29
|
-
* Load an OBJ model (fallback for non-GLB assets)
|
|
30
|
-
* @param url - URL to the .obj file
|
|
31
|
-
* @returns Promise with loaded object group
|
|
32
|
-
*/
|
|
33
|
-
loadOBJ(url: string): Promise<THREE.Group>;
|
|
34
|
-
/**
|
|
35
|
-
* Load a texture
|
|
36
|
-
* @param url - URL to the texture image
|
|
37
|
-
* @returns Promise with loaded texture
|
|
38
|
-
*/
|
|
39
|
-
loadTexture(url: string): Promise<THREE.Texture>;
|
|
40
|
-
/**
|
|
41
|
-
* Preload multiple assets
|
|
42
|
-
* @param urls - Array of asset URLs to preload
|
|
43
|
-
* @returns Promise that resolves when all assets are loaded
|
|
44
|
-
*/
|
|
45
|
-
preload(urls: string[]): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Check if a model is cached
|
|
48
|
-
* @param url - Model URL
|
|
49
|
-
*/
|
|
50
|
-
hasModel(url: string): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Check if a texture is cached
|
|
53
|
-
* @param url - Texture URL
|
|
54
|
-
*/
|
|
55
|
-
hasTexture(url: string): boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Get cached model (throws if not cached)
|
|
58
|
-
* @param url - Model URL
|
|
59
|
-
*/
|
|
60
|
-
getModel(url: string): LoadedModel;
|
|
61
|
-
/**
|
|
62
|
-
* Get cached texture (throws if not cached)
|
|
63
|
-
* @param url - Texture URL
|
|
64
|
-
*/
|
|
65
|
-
getTexture(url: string): THREE.Texture;
|
|
66
|
-
/**
|
|
67
|
-
* Clear all caches
|
|
68
|
-
*/
|
|
69
|
-
clearCache(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Get cache statistics
|
|
72
|
-
*/
|
|
73
|
-
getStats(): {
|
|
74
|
-
models: number;
|
|
75
|
-
textures: number;
|
|
76
|
-
loading: number;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
export declare const assetLoader: AssetLoader;
|
|
80
|
-
export default AssetLoader;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Culling Utilities
|
|
3
|
-
*
|
|
4
|
-
* Frustum culling and LOD (Level of Detail) management for 3D scene optimization.
|
|
5
|
-
*
|
|
6
|
-
* @packageDocumentation
|
|
7
|
-
*/
|
|
8
|
-
import * as THREE from 'three';
|
|
9
|
-
export interface CullingOptions {
|
|
10
|
-
/** Camera frustum for culling */
|
|
11
|
-
camera: THREE.Camera;
|
|
12
|
-
/** Optional padding around frustum */
|
|
13
|
-
padding?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface LODLevel {
|
|
16
|
-
/** Distance threshold for this LOD level */
|
|
17
|
-
distance: number;
|
|
18
|
-
/** Geometry or mesh for this level */
|
|
19
|
-
geometry?: THREE.BufferGeometry;
|
|
20
|
-
/** Scale multiplier for this level */
|
|
21
|
-
scale?: number;
|
|
22
|
-
/** Whether to use simplified material */
|
|
23
|
-
simpleMaterial?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface LODConfig {
|
|
26
|
-
/** LOD levels from closest to farthest */
|
|
27
|
-
levels: LODLevel[];
|
|
28
|
-
/** Transition smoothness (0-1) */
|
|
29
|
-
transitionSmoothness?: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Frustum culling check for a position
|
|
33
|
-
* @param position - World position to check
|
|
34
|
-
* @param camera - Camera to check against
|
|
35
|
-
* @param padding - Optional padding in world units
|
|
36
|
-
* @returns Whether the position is within the frustum
|
|
37
|
-
*/
|
|
38
|
-
export declare function isInFrustum(position: THREE.Vector3, camera: THREE.Camera, padding?: number): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Filter an array of positions to only those within the frustum
|
|
41
|
-
* @param positions - Array of world positions
|
|
42
|
-
* @param camera - Camera to check against
|
|
43
|
-
* @param padding - Optional padding in world units
|
|
44
|
-
* @returns Array of positions within frustum
|
|
45
|
-
*/
|
|
46
|
-
export declare function filterByFrustum(positions: THREE.Vector3[], camera: THREE.Camera, padding?: number): THREE.Vector3[];
|
|
47
|
-
/**
|
|
48
|
-
* Get indices of visible items from an array
|
|
49
|
-
* @param positions - Array of world positions
|
|
50
|
-
* @param camera - Camera to check against
|
|
51
|
-
* @param padding - Optional padding in world units
|
|
52
|
-
* @returns Set of visible indices
|
|
53
|
-
*/
|
|
54
|
-
export declare function getVisibleIndices(positions: THREE.Vector3[], camera: THREE.Camera, padding?: number): Set<number>;
|
|
55
|
-
/**
|
|
56
|
-
* Calculate LOD level based on distance from camera
|
|
57
|
-
* @param position - Object position
|
|
58
|
-
* @param camera - Camera position
|
|
59
|
-
* @param lodLevels - Array of distance thresholds (sorted closest to farthest)
|
|
60
|
-
* @returns Index of the LOD level to use
|
|
61
|
-
*/
|
|
62
|
-
export declare function calculateLODLevel(position: THREE.Vector3, camera: THREE.Camera, lodLevels: number[]): number;
|
|
63
|
-
/**
|
|
64
|
-
* Create a distance-based LOD system for an instanced mesh
|
|
65
|
-
* @param instancedMesh - The instanced mesh to manage
|
|
66
|
-
* @param positions - Array of instance positions
|
|
67
|
-
* @param camera - Camera to calculate distances from
|
|
68
|
-
* @param lodDistances - Distance thresholds for LOD levels
|
|
69
|
-
* @returns Array of LOD indices for each instance
|
|
70
|
-
*/
|
|
71
|
-
export declare function updateInstanceLOD(instancedMesh: THREE.InstancedMesh, positions: THREE.Vector3[], camera: THREE.Camera, lodDistances: number[]): Uint8Array;
|
|
72
|
-
/**
|
|
73
|
-
* Create visibility data for instanced mesh culling
|
|
74
|
-
* Updates the instance matrix to hide/show instances
|
|
75
|
-
* @param instancedMesh - The instanced mesh
|
|
76
|
-
* @param positions - Array of instance positions
|
|
77
|
-
* @param visibleIndices - Set of visible indices
|
|
78
|
-
* @returns Updated count of visible instances
|
|
79
|
-
*/
|
|
80
|
-
export declare function cullInstancedMesh(instancedMesh: THREE.InstancedMesh, positions: THREE.Vector3[], visibleIndices: Set<number>): number;
|
|
81
|
-
/**
|
|
82
|
-
* Spatial hash grid for efficient object queries
|
|
83
|
-
*/
|
|
84
|
-
export declare class SpatialHashGrid {
|
|
85
|
-
private cellSize;
|
|
86
|
-
private cells;
|
|
87
|
-
private objectPositions;
|
|
88
|
-
constructor(cellSize?: number);
|
|
89
|
-
/**
|
|
90
|
-
* Get cell key for a position
|
|
91
|
-
*/
|
|
92
|
-
private getCellKey;
|
|
93
|
-
/**
|
|
94
|
-
* Insert an object into the grid
|
|
95
|
-
*/
|
|
96
|
-
insert(id: string, position: THREE.Vector3): void;
|
|
97
|
-
/**
|
|
98
|
-
* Remove an object from the grid
|
|
99
|
-
*/
|
|
100
|
-
remove(id: string): void;
|
|
101
|
-
/**
|
|
102
|
-
* Update an object's position
|
|
103
|
-
*/
|
|
104
|
-
update(id: string, newPosition: THREE.Vector3): void;
|
|
105
|
-
/**
|
|
106
|
-
* Query objects within a radius of a position
|
|
107
|
-
*/
|
|
108
|
-
queryRadius(center: THREE.Vector3, radius: number): string[];
|
|
109
|
-
/**
|
|
110
|
-
* Query objects within a bounding box
|
|
111
|
-
*/
|
|
112
|
-
queryBox(minX: number, maxX: number, minZ: number, maxZ: number): string[];
|
|
113
|
-
/**
|
|
114
|
-
* Clear all objects from the grid
|
|
115
|
-
*/
|
|
116
|
-
clear(): void;
|
|
117
|
-
/**
|
|
118
|
-
* Get statistics about the grid
|
|
119
|
-
*/
|
|
120
|
-
getStats(): {
|
|
121
|
-
objects: number;
|
|
122
|
-
cells: number;
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
declare const _default: {
|
|
126
|
-
isInFrustum: typeof isInFrustum;
|
|
127
|
-
filterByFrustum: typeof filterByFrustum;
|
|
128
|
-
getVisibleIndices: typeof getVisibleIndices;
|
|
129
|
-
calculateLODLevel: typeof calculateLODLevel;
|
|
130
|
-
updateInstanceLOD: typeof updateInstanceLOD;
|
|
131
|
-
cullInstancedMesh: typeof cullInstancedMesh;
|
|
132
|
-
SpatialHashGrid: typeof SpatialHashGrid;
|
|
133
|
-
};
|
|
134
|
-
export default _default;
|