@almadar/ui 5.110.0 → 5.112.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 +126 -29
- package/dist/avl/index.js +128 -31
- package/dist/avl-schema-parser-DKRm-nyh.d.cts +611 -0
- package/dist/avl-schema-parser-DKRm-nyh.d.ts +611 -0
- package/dist/cn-BbPvQLHt.d.cts +294 -0
- package/dist/cn-BbPvQLHt.d.ts +294 -0
- package/dist/components/index.cjs +56 -18
- package/dist/components/index.d.cts +11224 -0
- package/dist/components/index.d.ts +11224 -6
- package/dist/components/index.js +56 -18
- 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 +317 -178
- package/dist/lib/drawable/three/index.d.cts +1484 -0
- package/dist/lib/drawable/three/index.d.ts +1483 -38
- package/dist/lib/drawable/three/index.js +161 -22
- package/dist/lib/index.cjs +8 -0
- package/dist/lib/index.d.cts +504 -0
- package/dist/lib/index.d.ts +503 -18
- package/dist/lib/index.js +8 -1
- 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/providers/index.cjs +56 -18
- package/dist/providers/index.d.cts +428 -0
- package/dist/providers/index.d.ts +427 -26
- package/dist/providers/index.js +56 -18
- 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 +126 -29
- package/dist/runtime/index.d.cts +426 -0
- package/dist/runtime/index.d.ts +421 -16
- package/dist/runtime/index.js +128 -31
- 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 +13 -13
- 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 -91
- 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
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
import { AnimationName, Asset, ScenePos, JsonObject, JsonValue } from '@almadar/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Sprite Sheet Animation Types
|
|
5
|
+
*
|
|
6
|
+
* Type definitions for frame-based sprite sheet animation system.
|
|
7
|
+
* Supports standard 8-column × 5-row character sheets.
|
|
8
|
+
*
|
|
9
|
+
* `AnimationName`, `AnimationDef`, and `SpriteDirection` are canonically owned
|
|
10
|
+
* by `@almadar/core` (they travel with a `spriteSheet`-role `Asset.url`'s
|
|
11
|
+
* resolved atlas contract) — re-exported here so existing call sites in this
|
|
12
|
+
* package don't need to change their import path.
|
|
13
|
+
*
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** Unit facing direction on screen (4 isometric directions) */
|
|
18
|
+
type FacingDirection = 'se' | 'sw' | 'ne' | 'nw';
|
|
19
|
+
/** A resolved frame ready to draw on canvas */
|
|
20
|
+
interface ResolvedFrame {
|
|
21
|
+
/** URL of the sprite sheet image */
|
|
22
|
+
sheetUrl: string;
|
|
23
|
+
/** Source X in the sheet (pixel offset) */
|
|
24
|
+
sx: number;
|
|
25
|
+
/** Source Y in the sheet (pixel offset) */
|
|
26
|
+
sy: number;
|
|
27
|
+
/** Source width (frame width) */
|
|
28
|
+
sw: number;
|
|
29
|
+
/** Source height (frame height) */
|
|
30
|
+
sh: number;
|
|
31
|
+
/** Whether to flip horizontally when drawing (for NE/NW directions) */
|
|
32
|
+
flipX: boolean;
|
|
33
|
+
/** When true, canvas should apply sine-bob breathing offset (frozen idle frame) */
|
|
34
|
+
applyBreathing?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** Per-unit animation state tracked in the animation system */
|
|
37
|
+
interface UnitAnimationState {
|
|
38
|
+
/** Unit identifier */
|
|
39
|
+
unitId: string;
|
|
40
|
+
/** Current animation playing */
|
|
41
|
+
animation: AnimationName;
|
|
42
|
+
/** Current facing direction */
|
|
43
|
+
direction: FacingDirection;
|
|
44
|
+
/** Current frame index within the animation */
|
|
45
|
+
frame: number;
|
|
46
|
+
/** Elapsed time in current animation (ms) */
|
|
47
|
+
elapsed: number;
|
|
48
|
+
/** Animation to play after current one-shot completes (null = idle) */
|
|
49
|
+
queuedAnimation: AnimationName | null;
|
|
50
|
+
/** Whether the current one-shot animation has finished its last frame */
|
|
51
|
+
finished: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** Frame dimensions for a sprite sheet */
|
|
54
|
+
interface SpriteFrameDims {
|
|
55
|
+
/** Width of a single frame in pixels */
|
|
56
|
+
width: number;
|
|
57
|
+
/** Height of a single frame in pixels */
|
|
58
|
+
height: number;
|
|
59
|
+
}
|
|
60
|
+
/** Sheet URLs for both directions */
|
|
61
|
+
interface SpriteSheetUrls {
|
|
62
|
+
/** Southeast-facing sheet URL */
|
|
63
|
+
se: string;
|
|
64
|
+
/** Southwest-facing sheet URL */
|
|
65
|
+
sw: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Game Types — Generalized
|
|
70
|
+
*
|
|
71
|
+
* Core type definitions for tactical game state.
|
|
72
|
+
* Extracted from Trait Wars and generalized for any game project.
|
|
73
|
+
*/
|
|
74
|
+
interface Position {
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
}
|
|
78
|
+
interface GameUnit {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
characterType: string;
|
|
82
|
+
team: 'player' | 'enemy' | 'neutral';
|
|
83
|
+
position: Position;
|
|
84
|
+
health: number;
|
|
85
|
+
maxHealth: number;
|
|
86
|
+
movement: number;
|
|
87
|
+
attack: number;
|
|
88
|
+
defense: number;
|
|
89
|
+
traits: UnitTrait[];
|
|
90
|
+
}
|
|
91
|
+
interface UnitTrait {
|
|
92
|
+
name: string;
|
|
93
|
+
currentState: string;
|
|
94
|
+
states: string[];
|
|
95
|
+
cooldown: number;
|
|
96
|
+
}
|
|
97
|
+
interface BoardTile {
|
|
98
|
+
terrain: string;
|
|
99
|
+
unitId?: string;
|
|
100
|
+
isBlocked?: boolean;
|
|
101
|
+
}
|
|
102
|
+
type GamePhase = 'observation' | 'planning' | 'execution' | 'tick';
|
|
103
|
+
interface GameState {
|
|
104
|
+
board: BoardTile[][];
|
|
105
|
+
units: Record<string, GameUnit>;
|
|
106
|
+
currentPhase: GamePhase;
|
|
107
|
+
currentTurn: number;
|
|
108
|
+
activeTeam: 'player' | 'enemy' | 'neutral';
|
|
109
|
+
selectedUnitId?: string;
|
|
110
|
+
validMoves: Position[];
|
|
111
|
+
attackTargets: Position[];
|
|
112
|
+
}
|
|
113
|
+
type GameAction = {
|
|
114
|
+
type: 'SELECT_UNIT';
|
|
115
|
+
unitId: string;
|
|
116
|
+
} | {
|
|
117
|
+
type: 'MOVE_UNIT';
|
|
118
|
+
from: Position;
|
|
119
|
+
to: Position;
|
|
120
|
+
} | {
|
|
121
|
+
type: 'ATTACK';
|
|
122
|
+
attackerId: string;
|
|
123
|
+
targetId: string;
|
|
124
|
+
} | {
|
|
125
|
+
type: 'END_TURN';
|
|
126
|
+
} | {
|
|
127
|
+
type: 'EXECUTE_TRAITS';
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Create the initial game state with board and units.
|
|
131
|
+
*
|
|
132
|
+
* @param {number} width - Board width in tiles
|
|
133
|
+
* @param {number} height - Board height in tiles
|
|
134
|
+
* @param {GameUnit[]} units - Initial units to place on the board
|
|
135
|
+
* @param {string} [defaultTerrain] - Default terrain type for empty tiles
|
|
136
|
+
* @returns {GameState} The initialized game state
|
|
137
|
+
*/
|
|
138
|
+
declare function createInitialGameState(width: number, height: number, units: GameUnit[], defaultTerrain?: string): GameState;
|
|
139
|
+
/**
|
|
140
|
+
* Calculate valid movement positions for a unit.
|
|
141
|
+
*
|
|
142
|
+
* Returns all tiles within the unit's movement range that are
|
|
143
|
+
* not blocked and don't contain other units.
|
|
144
|
+
*
|
|
145
|
+
* @param {GameState} state - Current game state
|
|
146
|
+
* @param {string} unitId - ID of the unit to calculate moves for
|
|
147
|
+
* @returns {Position[]} Array of valid move positions
|
|
148
|
+
*/
|
|
149
|
+
declare function calculateValidMoves(state: GameState, unitId: string): Position[];
|
|
150
|
+
/**
|
|
151
|
+
* Calculate valid attack targets for a unit.
|
|
152
|
+
*
|
|
153
|
+
* Returns adjacent positions containing enemy units that can be attacked.
|
|
154
|
+
*
|
|
155
|
+
* @param {GameState} state - Current game state
|
|
156
|
+
* @param {string} unitId - ID of the unit to calculate targets for
|
|
157
|
+
* @returns {Position[]} Array of valid attack target positions
|
|
158
|
+
*/
|
|
159
|
+
declare function calculateAttackTargets(state: GameState, unitId: string): Position[];
|
|
160
|
+
|
|
161
|
+
/** A single isometric tile on the grid */
|
|
162
|
+
interface IsometricTile {
|
|
163
|
+
/** Optional unique identifier (required for 3D rendering) */
|
|
164
|
+
id?: string;
|
|
165
|
+
/** Grid x coordinate */
|
|
166
|
+
x: number;
|
|
167
|
+
/** Grid y coordinate (2D) */
|
|
168
|
+
y: number;
|
|
169
|
+
/** Grid z coordinate (3D alternative to y) */
|
|
170
|
+
z?: number;
|
|
171
|
+
/** Terrain type key (e.g., 'grass', 'stone', 'water') - 2D */
|
|
172
|
+
terrain?: string;
|
|
173
|
+
/** Tile type for visual rendering (3D) */
|
|
174
|
+
type?: string;
|
|
175
|
+
/** Direct sprite URL override (bypasses getTerrainSprite resolver) */
|
|
176
|
+
terrainSprite?: Asset;
|
|
177
|
+
/** Fallback/override fill color (2D + 3D) — bypasses the terrain color map. `.lolo`-computed. */
|
|
178
|
+
color?: string;
|
|
179
|
+
/** Whether units can traverse this tile (default true) */
|
|
180
|
+
passable?: boolean;
|
|
181
|
+
/** Movement cost for pathfinding (default 1) */
|
|
182
|
+
movementCost?: number;
|
|
183
|
+
/** Optional tile type for visual variants */
|
|
184
|
+
tileType?: string;
|
|
185
|
+
/** Elevation offset for 3D rendering */
|
|
186
|
+
elevation?: number;
|
|
187
|
+
/** 3D model URL (GLB format) for GameCanvas3D — rendered via ModelLoader with box fallback */
|
|
188
|
+
modelUrl?: Asset;
|
|
189
|
+
/** Y-axis rotation in degrees (3D) — orients directional pieces (track corners, road bends) */
|
|
190
|
+
rotation?: number;
|
|
191
|
+
}
|
|
192
|
+
/** A unit positioned on the isometric grid */
|
|
193
|
+
type IsometricUnit = {
|
|
194
|
+
/** Unique unit identifier */
|
|
195
|
+
id: string;
|
|
196
|
+
/** Current grid position (2D format) */
|
|
197
|
+
position?: {
|
|
198
|
+
x: number;
|
|
199
|
+
y: number;
|
|
200
|
+
};
|
|
201
|
+
/** Grid x coordinate (3D format) */
|
|
202
|
+
x?: number;
|
|
203
|
+
/** Grid y coordinate (3D format) */
|
|
204
|
+
y?: number;
|
|
205
|
+
/** Grid z coordinate (3D format) */
|
|
206
|
+
z?: number;
|
|
207
|
+
/** Static sprite URL (used when no sprite sheet animation) */
|
|
208
|
+
sprite?: Asset;
|
|
209
|
+
/** Sprite-sheet atlas JSON URL (e.g. `.../guardian-sprite-sheet.json`).
|
|
210
|
+
* When set, the canvas loads the atlas and crops/animates a single frame
|
|
211
|
+
* by animation state instead of drawing the whole sheet. */
|
|
212
|
+
spriteSheet?: Asset;
|
|
213
|
+
/** 3D model URL (GLB format) for GameCanvas3D — rendered via ModelLoader with box fallback */
|
|
214
|
+
modelUrl?: Asset;
|
|
215
|
+
/** Unit archetype key for sprite resolution */
|
|
216
|
+
unitType?: string;
|
|
217
|
+
/** Hero identifier for sprite sheet lookup */
|
|
218
|
+
heroId?: string;
|
|
219
|
+
/** Display name rendered below the unit */
|
|
220
|
+
name?: string;
|
|
221
|
+
/** Team affiliation for coloring */
|
|
222
|
+
team?: 'player' | 'enemy' | 'neutral';
|
|
223
|
+
/** Faction for 3D rendering (player/enemy/neutral) */
|
|
224
|
+
faction?: 'player' | 'enemy' | 'neutral';
|
|
225
|
+
/** Fallback/override tint color (2D + 3D) — bypasses the team/faction color map. `.lolo`-computed. */
|
|
226
|
+
tint?: string;
|
|
227
|
+
/** Current health */
|
|
228
|
+
health?: number;
|
|
229
|
+
/** Maximum health */
|
|
230
|
+
maxHealth?: number;
|
|
231
|
+
/** Trait attachments for state display */
|
|
232
|
+
traits?: UnitTrait[];
|
|
233
|
+
/** Previous position for movement trail ghost */
|
|
234
|
+
previousPosition?: {
|
|
235
|
+
x: number;
|
|
236
|
+
y: number;
|
|
237
|
+
};
|
|
238
|
+
/** Elevation offset for 3D rendering */
|
|
239
|
+
elevation?: number;
|
|
240
|
+
/** Animation name — driven by the LOLO state machine; renderer defaults to 'idle' */
|
|
241
|
+
animation?: AnimationName;
|
|
242
|
+
/** Frame index within the animation — driven by the LOLO state machine; renderer defaults to 0 */
|
|
243
|
+
frame?: number;
|
|
244
|
+
/** Y-axis heading in radians (3D) — travel/facing direction. Orients the unit model and
|
|
245
|
+
* drives the `chase` camera (behind + above, looking along heading). Driving boards set this. */
|
|
246
|
+
heading?: number;
|
|
247
|
+
};
|
|
248
|
+
/** A map feature (resource, building, portal, etc.) */
|
|
249
|
+
type IsometricFeature = {
|
|
250
|
+
/** Optional unique identifier (required for 3D rendering) */
|
|
251
|
+
id?: string;
|
|
252
|
+
/** Grid x coordinate */
|
|
253
|
+
x: number;
|
|
254
|
+
/** Grid y coordinate (2D) */
|
|
255
|
+
y: number;
|
|
256
|
+
/** Grid z coordinate (3D alternative to y) */
|
|
257
|
+
z?: number;
|
|
258
|
+
/** Feature type key (e.g., 'goldMine', 'castle', 'portal') */
|
|
259
|
+
type: string;
|
|
260
|
+
/** Direct sprite URL override (bypasses getFeatureSprite resolver) */
|
|
261
|
+
sprite?: Asset;
|
|
262
|
+
/** 3D model URL (GLB format) for GameCanvas3D */
|
|
263
|
+
assetUrl?: Asset;
|
|
264
|
+
/** Color override for 3D rendering */
|
|
265
|
+
color?: string;
|
|
266
|
+
/** Elevation offset for 3D rendering */
|
|
267
|
+
elevation?: number;
|
|
268
|
+
/** Y-axis rotation in radians (3D) — orients directional features (arches, signs, docks). */
|
|
269
|
+
rotation?: number;
|
|
270
|
+
};
|
|
271
|
+
/** Camera state for pan/zoom */
|
|
272
|
+
interface CameraState {
|
|
273
|
+
/** Camera X offset in pixels */
|
|
274
|
+
x: number;
|
|
275
|
+
/** Camera Y offset in pixels */
|
|
276
|
+
y: number;
|
|
277
|
+
/** Zoom level (1.0 = 100%) */
|
|
278
|
+
zoom: number;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/** Source sub-rectangle within a texture (an atlas frame). Omitted → whole texture. */
|
|
282
|
+
interface BlitSrc {
|
|
283
|
+
x: number;
|
|
284
|
+
y: number;
|
|
285
|
+
w: number;
|
|
286
|
+
h: number;
|
|
287
|
+
}
|
|
288
|
+
/** A polyline/polygon vertex in pixel space. */
|
|
289
|
+
interface PainterPoint {
|
|
290
|
+
x: number;
|
|
291
|
+
y: number;
|
|
292
|
+
}
|
|
293
|
+
/** A drop shadow applied to subsequent draws until cleared. */
|
|
294
|
+
interface PainterShadow {
|
|
295
|
+
color: string;
|
|
296
|
+
blur: number;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Drawable contract — the shared vocabulary every neutral drawable primitive
|
|
301
|
+
* (the `draw-sprite`/`draw-shape`/`draw-text` atoms, `draw-sprite-layer`/
|
|
302
|
+
* `draw-shape-layer` molecules) is authored against. A drawable is a pure
|
|
303
|
+
* descriptor the canvas HOST walks and paints via the portable {@link Painter2D}
|
|
304
|
+
* seam — no `CanvasRenderingContext2D`, no DOM. Genre (a "unit"/"tile"/
|
|
305
|
+
* "highlight") is a `.lolo` COMPOSITION of these, never its own primitive.
|
|
306
|
+
*
|
|
307
|
+
* A position is a core `ScenePos` (logical scene space). The host's {@link Projector}
|
|
308
|
+
* maps it to pixels; primitives never do projection math themselves. Because the
|
|
309
|
+
* `ScenePos` type identity is what pattern-sync stamps as the `drawable`
|
|
310
|
+
* capability, every drawable descriptor's `position` MUST be a core `ScenePos`.
|
|
311
|
+
*/
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* How a drawable aligns to its projected position.
|
|
315
|
+
* - `top-left` — the cell's top-left corner (tiles).
|
|
316
|
+
* - `ground` — the cell's ground point, bottom-center of the drawable (units/features).
|
|
317
|
+
* - `center` — the cell's visual center (effects).
|
|
318
|
+
*/
|
|
319
|
+
type DrawableAnchor = 'top-left' | 'ground' | 'center';
|
|
320
|
+
/** Common shape of every drawable descriptor. `type` keys the host's paint dispatch. */
|
|
321
|
+
interface DrawableBase {
|
|
322
|
+
type: string;
|
|
323
|
+
/**
|
|
324
|
+
* Optional hit-test handle. When a board authors a per-entity id here (e.g.
|
|
325
|
+
* `id: (object/get @u id)` on a unit sprite), the canvas host indexes the
|
|
326
|
+
* descriptor's `ScenePos → id` and resolves a pointer/raycast at that cell to
|
|
327
|
+
* this id — the source of `unitClickEvent {unitId}`. A source-tagged handle,
|
|
328
|
+
* NOT a heuristic: no id → the host emits only the coordinate (tile click).
|
|
329
|
+
*/
|
|
330
|
+
id?: string;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* `draw-sprite` — the neutral image/atlas-frame drawable atom (dimension-agnostic).
|
|
335
|
+
*
|
|
336
|
+
* ONE descriptor (`DrawSpriteProps`, grounded in core `ScenePos` + `Asset`) with
|
|
337
|
+
* TWO backends: `paintSprite` (2D, here — via the portable `Painter2D` seam) and
|
|
338
|
+
* an R3F mesh (`Sprite3D` in `lib/drawable/mesh3d`, kept OUT of this file so the
|
|
339
|
+
* 2D paint path never pulls `three`/`drei` into an app bundle — the codebase
|
|
340
|
+
* code-splits R3F). The canvas host picks the backend by `mode`; that is what
|
|
341
|
+
* makes canvas-2d and canvas-3d the same `children` interface. Genre uses (tile,
|
|
342
|
+
* unit body, feature, effect, movement ghost, background cover) are all this atom
|
|
343
|
+
* with different `anchor`/`size`/`frame`/`flip`/`shadow` — composed in `.lolo`,
|
|
344
|
+
* not here. The React component renders `null` (a drawable is painted by the host,
|
|
345
|
+
* not the DOM); it exists so the pattern pipeline registers a `draw-sprite`
|
|
346
|
+
* pattern and standalone pages stay inspectable.
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
interface DrawSpriteProps extends DrawableBase {
|
|
350
|
+
type: 'draw-sprite';
|
|
351
|
+
/** Logical scene position; the projector maps it to pixels / world. */
|
|
352
|
+
position: ScenePos;
|
|
353
|
+
/** The image / atlas reference to blit. */
|
|
354
|
+
asset: Asset;
|
|
355
|
+
/** How the sprite aligns to its projected position. Default `'top-left'`. */
|
|
356
|
+
anchor?: DrawableAnchor;
|
|
357
|
+
/** Draw width in world units (fractions of `projector.tileWidth`); omitted → resolved source width in px. */
|
|
358
|
+
width?: number;
|
|
359
|
+
/** Draw height in world units (fractions of `projector.tileWidth`); omitted → resolved source height in px. */
|
|
360
|
+
height?: number;
|
|
361
|
+
/** Explicit atlas sub-rect override (px); omitted → resolved from `asset.atlas`/`asset.sprite`. */
|
|
362
|
+
frame?: BlitSrc;
|
|
363
|
+
/** Mirror horizontally (facing). */
|
|
364
|
+
flipX?: boolean;
|
|
365
|
+
/** Rotation in radians about the sprite's center. */
|
|
366
|
+
rotation?: number;
|
|
367
|
+
/** 0..1 opacity. */
|
|
368
|
+
opacity?: number;
|
|
369
|
+
/** Drop shadow (e.g. a team-colored glow). */
|
|
370
|
+
shadow?: PainterShadow;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* `draw-shape` — the neutral vector-fill/stroke drawable atom (dimension-agnostic).
|
|
375
|
+
*
|
|
376
|
+
* ONE descriptor (`DrawShapeProps`, grounded in core `ScenePos`) with TWO
|
|
377
|
+
* backends: `paintShape` (2D, here) and an R3F ground-plane mesh (`Shape3D` in
|
|
378
|
+
* `lib/drawable/mesh3d`, kept OUT of this file so the 2D path never pulls R3F).
|
|
379
|
+
* Paints a cell footprint, an axis-aligned rect, an ellipse, or a poly at a scene
|
|
380
|
+
* position, fill and/or stroke. Genre uses (tile fallback, iso/hex diamond
|
|
381
|
+
* fallback, cell highlight, feature disc, unit selection ring, unit fallback
|
|
382
|
+
* circle, ground/ghost discs, solid backgrounds, side-view platform rects) are
|
|
383
|
+
* all this atom with different `shape`/`anchor`/geometry — composed in `.lolo`,
|
|
384
|
+
* not here. The React component renders `null`; it exists so the pattern pipeline
|
|
385
|
+
* registers a `draw-shape` pattern and standalone pages stay inspectable.
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
type ShapeKind = 'cell' | 'rect' | 'ellipse' | 'poly';
|
|
389
|
+
interface DrawShapeProps extends DrawableBase {
|
|
390
|
+
type: 'draw-shape';
|
|
391
|
+
shape: ShapeKind;
|
|
392
|
+
/** Logical scene position; the projector maps it to pixels / world. */
|
|
393
|
+
position: ScenePos;
|
|
394
|
+
/** How the shape aligns to its projected position. Default varies by `shape`. */
|
|
395
|
+
anchor?: DrawableAnchor;
|
|
396
|
+
/** Rect width in world units (fractions of `projector.tileWidth`). */
|
|
397
|
+
width?: number;
|
|
398
|
+
/** Rect height in world units (fractions of `projector.tileWidth`). */
|
|
399
|
+
height?: number;
|
|
400
|
+
/** Ellipse horizontal radius in world units (fractions of `projector.tileWidth`). */
|
|
401
|
+
radiusX?: number;
|
|
402
|
+
/** Ellipse vertical radius in world units; omitted → `radiusX` (a circle). */
|
|
403
|
+
radiusY?: number;
|
|
404
|
+
/** Fine nudge from the anchor point in world units. */
|
|
405
|
+
offsetX?: number;
|
|
406
|
+
offsetY?: number;
|
|
407
|
+
/** Poly vertices as world-unit offsets relative to the cell's projected top-left. */
|
|
408
|
+
points?: PainterPoint[];
|
|
409
|
+
fill?: string;
|
|
410
|
+
stroke?: string;
|
|
411
|
+
strokeWidth?: number;
|
|
412
|
+
/** 0..1 opacity. */
|
|
413
|
+
opacity?: number;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* `draw-text` — the neutral text drawable atom (dimension-agnostic).
|
|
418
|
+
*
|
|
419
|
+
* ONE descriptor (`DrawTextProps`, grounded in core `ScenePos`) with TWO backends:
|
|
420
|
+
* `paintText` (2D, here) and an R3F billboarded `<Text>` (`Text3D` in
|
|
421
|
+
* `lib/drawable/mesh3d`, kept OUT of this file so the 2D path never pulls R3F).
|
|
422
|
+
* Paints a string at a scene position with font/color/alignment. The React
|
|
423
|
+
* component renders `null` (a drawable is painted by the host, not the DOM).
|
|
424
|
+
*/
|
|
425
|
+
|
|
426
|
+
interface DrawTextProps extends DrawableBase {
|
|
427
|
+
type: 'draw-text';
|
|
428
|
+
text: string;
|
|
429
|
+
/** Logical scene position; the projector maps it to pixels / world. */
|
|
430
|
+
position: ScenePos;
|
|
431
|
+
anchor?: DrawableAnchor;
|
|
432
|
+
offsetX?: number;
|
|
433
|
+
offsetY?: number;
|
|
434
|
+
color: string;
|
|
435
|
+
font?: string;
|
|
436
|
+
align?: CanvasTextAlign;
|
|
437
|
+
baseline?: CanvasTextBaseline;
|
|
438
|
+
opacity?: number;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* `draw-sprite-layer` — batch multiple sprites in one descriptor for O(layers) rendering.
|
|
443
|
+
*
|
|
444
|
+
* Composes the `draw-sprite` atom; the layer itself carries no `position` — each
|
|
445
|
+
* item does. It is drawable-by-composition: its `items` are `draw-sprite`
|
|
446
|
+
* descriptors (each grounded in core `ScenePos`), which is what stamps the layer
|
|
447
|
+
* `drawable` at pattern-sync time.
|
|
448
|
+
*/
|
|
449
|
+
|
|
450
|
+
interface DrawSpriteLayerProps extends DrawableBase {
|
|
451
|
+
type: 'draw-sprite-layer';
|
|
452
|
+
/** Sprites painted in array order; z-ordering is the caller's responsibility. */
|
|
453
|
+
items: DrawSpriteProps[];
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* `draw-shape-layer` — batch of shapes in one descriptor for O(layers) perf.
|
|
458
|
+
*
|
|
459
|
+
* Composes the `draw-shape` atom; drawable-by-composition (its `items` are
|
|
460
|
+
* `draw-shape` descriptors, each grounded in core `ScenePos`). The React
|
|
461
|
+
* component renders `null` (a drawable is painted by the host, not the DOM).
|
|
462
|
+
*/
|
|
463
|
+
|
|
464
|
+
interface DrawShapeLayerProps extends DrawableBase {
|
|
465
|
+
type: 'draw-shape-layer';
|
|
466
|
+
items: DrawShapeProps[];
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* `draw-text-layer` — batch of text labels in one descriptor for O(layers) perf.
|
|
471
|
+
*
|
|
472
|
+
* Composes the `draw-text` atom; drawable-by-composition (its `items` are
|
|
473
|
+
* `draw-text` descriptors, each grounded in core `ScenePos`). Covers the batched
|
|
474
|
+
* world-space text pass — fx messages, damage numbers, unit labels — that a
|
|
475
|
+
* board maps from an entity array (`items: (array/map @entity.fx (fn ...))`),
|
|
476
|
+
* which a literal `children` array can't express. The React component renders
|
|
477
|
+
* `null` (a drawable is painted by the host, not the DOM).
|
|
478
|
+
*/
|
|
479
|
+
|
|
480
|
+
interface DrawTextLayerProps extends DrawableBase {
|
|
481
|
+
type: 'draw-text-layer';
|
|
482
|
+
items: DrawTextProps[];
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Drawable paint dispatch (2D) + the `DrawableNode` union.
|
|
487
|
+
*
|
|
488
|
+
* `paintDrawable` routes ONE descriptor to its 2D painter; the host walks its
|
|
489
|
+
* `children` through it. The "drawable" designation itself is NOT recorded here —
|
|
490
|
+
* it is DERIVED from the core `ScenePos` type each descriptor's `position` uses
|
|
491
|
+
* and stamped into `patterns-registry.json` by pattern-sync (mirroring how `Asset`
|
|
492
|
+
* is tagged), then read by the orbital-rust validator. So this module is pure
|
|
493
|
+
* paint routing; the capability is the registry's, not a hand-list.
|
|
494
|
+
*/
|
|
495
|
+
|
|
496
|
+
/** Every drawable descriptor. The host's `children` are a `DrawableNode[]`. */
|
|
497
|
+
type DrawableNode = DrawSpriteProps | DrawShapeProps | DrawTextProps | DrawSpriteLayerProps | DrawShapeLayerProps | DrawTextLayerProps;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* AVL Schema Parser
|
|
501
|
+
*
|
|
502
|
+
* Pure functions that transform an OrbitalSchema into structured data
|
|
503
|
+
* for each zoom level of the Cosmic Zoom visualization.
|
|
504
|
+
*
|
|
505
|
+
* Imports all types from @almadar/core.
|
|
506
|
+
*
|
|
507
|
+
* @packageDocumentation
|
|
508
|
+
*/
|
|
509
|
+
|
|
510
|
+
interface SerializedEffect extends JsonObject {
|
|
511
|
+
type: string;
|
|
512
|
+
args: JsonValue[];
|
|
513
|
+
}
|
|
514
|
+
interface ApplicationOrbitalData {
|
|
515
|
+
name: string;
|
|
516
|
+
entityName: string;
|
|
517
|
+
fieldCount: number;
|
|
518
|
+
persistence: string;
|
|
519
|
+
traitNames: string[];
|
|
520
|
+
pageNames: string[];
|
|
521
|
+
position: {
|
|
522
|
+
x: number;
|
|
523
|
+
y: number;
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
interface CrossLink {
|
|
527
|
+
emitterOrbital: string;
|
|
528
|
+
listenerOrbital: string;
|
|
529
|
+
eventName: string;
|
|
530
|
+
emitterTrait: string;
|
|
531
|
+
listenerTrait: string;
|
|
532
|
+
}
|
|
533
|
+
interface ApplicationLevelData {
|
|
534
|
+
orbitals: ApplicationOrbitalData[];
|
|
535
|
+
crossLinks: CrossLink[];
|
|
536
|
+
}
|
|
537
|
+
interface FieldInfo extends JsonObject {
|
|
538
|
+
name: string;
|
|
539
|
+
type: string;
|
|
540
|
+
required: boolean;
|
|
541
|
+
hasDefault: boolean;
|
|
542
|
+
}
|
|
543
|
+
interface OrbitalTraitInfo extends JsonObject {
|
|
544
|
+
name: string;
|
|
545
|
+
stateCount: number;
|
|
546
|
+
eventCount: number;
|
|
547
|
+
transitionCount: number;
|
|
548
|
+
emits: string[];
|
|
549
|
+
listens: string[];
|
|
550
|
+
}
|
|
551
|
+
interface OrbitalPageInfo extends JsonObject {
|
|
552
|
+
name: string;
|
|
553
|
+
route: string;
|
|
554
|
+
}
|
|
555
|
+
interface ExternalLink extends JsonObject {
|
|
556
|
+
targetOrbital: string;
|
|
557
|
+
eventName: string;
|
|
558
|
+
direction: string;
|
|
559
|
+
traitName: string;
|
|
560
|
+
}
|
|
561
|
+
interface OrbitalLevelData {
|
|
562
|
+
name: string;
|
|
563
|
+
entity: {
|
|
564
|
+
name: string;
|
|
565
|
+
fields: FieldInfo[];
|
|
566
|
+
persistence: string;
|
|
567
|
+
};
|
|
568
|
+
traits: OrbitalTraitInfo[];
|
|
569
|
+
pages: OrbitalPageInfo[];
|
|
570
|
+
externalLinks: ExternalLink[];
|
|
571
|
+
}
|
|
572
|
+
interface TraitStateInfo extends JsonObject {
|
|
573
|
+
name: string;
|
|
574
|
+
isInitial: boolean | null;
|
|
575
|
+
isTerminal: boolean | null;
|
|
576
|
+
}
|
|
577
|
+
interface TraitTransitionInfo extends JsonObject {
|
|
578
|
+
from: string;
|
|
579
|
+
to: string;
|
|
580
|
+
event: string;
|
|
581
|
+
guard: JsonValue | null;
|
|
582
|
+
effects: SerializedEffect[];
|
|
583
|
+
index: number;
|
|
584
|
+
}
|
|
585
|
+
interface TraitLevelData extends JsonObject {
|
|
586
|
+
name: string;
|
|
587
|
+
linkedEntity: string;
|
|
588
|
+
states: TraitStateInfo[];
|
|
589
|
+
transitions: TraitTransitionInfo[];
|
|
590
|
+
emittedEvents: string[];
|
|
591
|
+
listenedEvents: string[];
|
|
592
|
+
}
|
|
593
|
+
interface ExprTreeNode {
|
|
594
|
+
label: string;
|
|
595
|
+
type: 'operator' | 'literal' | 'binding';
|
|
596
|
+
children?: ExprTreeNode[];
|
|
597
|
+
}
|
|
598
|
+
interface SlotTarget {
|
|
599
|
+
name: string;
|
|
600
|
+
pattern: string;
|
|
601
|
+
}
|
|
602
|
+
interface TransitionLevelData {
|
|
603
|
+
from: string;
|
|
604
|
+
to: string;
|
|
605
|
+
event: string;
|
|
606
|
+
guard: ExprTreeNode | null;
|
|
607
|
+
effects: ExprTreeNode[];
|
|
608
|
+
slotTargets: SlotTarget[];
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export { type ApplicationLevelData as A, type BoardTile as B, type CameraState as C, type DrawableNode as D, type ExternalLink as E, type FacingDirection as F, type GameAction as G, type IsometricTile as I, type OrbitalLevelData as O, type Position as P, type ResolvedFrame as R, type SpriteSheetUrls as S, type TraitLevelData as T, type UnitAnimationState as U, type IsometricUnit as a, type IsometricFeature as b, type TransitionLevelData as c, type SpriteFrameDims as d, type FieldInfo as e, type OrbitalTraitInfo as f, type OrbitalPageInfo as g, type GamePhase as h, type GameState as i, type GameUnit as j, type UnitTrait as k, calculateAttackTargets as l, calculateValidMoves as m, createInitialGameState as n };
|