@almadar/shell-web 1.0.0 → 1.2.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/LICENSE +72 -0
- package/dist/AvlGlyph-KZMJDBEB.js +5 -0
- package/dist/AvlStateMachine-KVZMFHFU.js +8 -0
- package/dist/AvlTransitionDetail-7DVGV27I.js +10 -0
- package/dist/AvlTransitionExplainer-RMJ5LQLK.js +11 -0
- package/dist/BehaviorView-EYRPME67.js +10 -0
- package/dist/{FileTree-BCFnBEuQ.d.ts → FileTree-B3GDAjaQ.d.ts} +131 -4
- package/dist/FlowCanvas-J54627TC.js +23 -0
- package/dist/{FlowCanvas-3JRMNJLV.css → FlowCanvas-R4LL3KRI.css} +190 -192
- package/dist/{GameAudioProvider-ceM_n0ey.d.ts → GameAudioProvider-BgWOOYT3.d.ts} +15 -20
- package/dist/{KernelEngineContext-CcxGYtlr.d.ts → KernelEngineContext-BPx-q0iw.d.ts} +15 -2
- package/dist/{LayersPanel-M2LHWUFF.js → LayersPanel-PSXI4EHG.js} +4 -4
- package/dist/ModuleCard-TNRLL45H.js +6 -0
- package/dist/{OrbInspector-MHLJ6OEE.css → OrbInspector-2EGVZLOJ.css} +190 -192
- package/dist/OrbInspector-UBEQWWZ2.js +23 -0
- package/dist/{parseLessonSegments-GpCeMrb2.d.ts → SegmentRenderer-BAQ6Jwf6.d.ts} +4 -20
- package/dist/{Select-B-iDdnvE.d.ts → Select-BJ8Fgc8A.d.ts} +1 -1
- package/dist/{UISlotContext-Dl_ewwCI.d.ts → UISlotContext-7r0SQdTL.d.ts} +1 -1
- package/dist/UISlotRenderer-5OURMAP2.js +23 -0
- package/dist/{UISlotRenderer-KVFO6J7R.css → UISlotRenderer-SJBSQGBQ.css} +190 -192
- package/dist/auth/react/index.js +7 -6
- package/dist/avl/index.css +190 -192
- package/dist/avl/index.d.ts +19 -7
- package/dist/avl/index.js +170 -39
- package/dist/{chunk-AE7VCQB6.js → chunk-2LNXLMK3.js} +2 -2
- package/dist/{chunk-REXYVBUO.js → chunk-3DA36FOA.js} +1 -1
- package/dist/{chunk-UXLE3IPR.js → chunk-3UQNFRYV.js} +207 -9
- package/dist/{chunk-AGXD77SL.js → chunk-3YUMGEEW.js} +1 -1
- package/dist/{chunk-K4MOPSEL.js → chunk-6RXP5ZXE.js} +7 -8
- package/dist/{chunk-E6KA4J6N.js → chunk-7UCL26QB.js} +4 -5
- package/dist/{chunk-57DC34LY.js → chunk-AL2XXMYR.js} +2 -2
- package/dist/{chunk-YHMRX6YA.js → chunk-ANTJUQRD.js} +53 -13
- package/dist/{chunk-P4ZFUQFF.js → chunk-AZ74UPG6.js} +4 -1
- package/dist/{chunk-ROICKAU7.js → chunk-B23EZH2P.js} +3 -3
- package/dist/{chunk-CPLN6NBQ.js → chunk-CCO2ZH7F.js} +3 -4
- package/dist/{chunk-4YXBKHHM.js → chunk-D5FJU4XC.js} +87 -16
- package/dist/{chunk-HH5KSMH5.js → chunk-DPDKBY6Z.js} +1 -1
- package/dist/{chunk-A2LR6VQQ.js → chunk-ECC3WQIB.js} +9 -93
- package/dist/{chunk-VO2TTLS5.js → chunk-GHAF7QUD.js} +1 -1
- package/dist/{chunk-TXAUOLWZ.js → chunk-HA2BYO5E.js} +1 -1
- package/dist/{chunk-ILQXJ2AR.js → chunk-JEN4EIUF.js} +1 -1
- package/dist/{chunk-UTDC2NEA.js → chunk-KTYOYEVA.js} +1 -1
- package/dist/{chunk-X3DMMX27.js → chunk-LINJRTNB.js} +2 -2
- package/dist/{chunk-TUPZWTRE.js → chunk-LKL5RULQ.js} +467 -141
- package/dist/{chunk-UU57VNS2.js → chunk-PWXZN5G5.js} +2 -2
- package/dist/{chunk-SP5CDJ6K.js → chunk-RDPELAFQ.js} +4 -4
- package/dist/{chunk-PRXQGGCO.js → chunk-S3LS3B7N.js} +1 -1
- package/dist/{chunk-LHP2TK7O.js → chunk-TAEOMNDK.js} +3611 -4737
- package/dist/{chunk-3S54FWRC.js → chunk-UFQLHCFJ.js} +1 -1
- package/dist/{chunk-AB3X7QTE.js → chunk-V5SVGUYN.js} +2 -3
- package/dist/{chunk-3VZ36ZKO.js → chunk-ZDRDJKYB.js} +5 -2
- package/dist/components/index.css +190 -192
- package/dist/components/index.d.ts +568 -190
- package/dist/components/index.js +27 -30
- package/dist/context/index.d.ts +2 -2
- package/dist/context/index.js +5 -5
- package/dist/core.d.ts +21 -4
- package/dist/core.js +1 -1
- package/dist/{fx-CmQjnHmT.d.ts → fx-Bx5RqplG.d.ts} +10 -7
- package/dist/hooks/index.d.ts +8 -8
- package/dist/hooks/index.js +6 -6
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/dist/{katexPlugin-FA7NX4PE.css → katexPlugin-BUHVNRBJ.css} +1 -1
- package/dist/{kernel-client-TZKGHJRY.js → kernel-client-NMZ56JVU.js} +60 -6
- package/dist/{kernel-wire-wNdAPfhJ.d.ts → kernel-wire-CRsHtLsf.d.ts} +8 -1
- package/dist/lib/index.d.ts +3 -4
- package/dist/lib/index.js +435 -4
- package/dist/providers/index.css +190 -192
- package/dist/providers/index.d.ts +6 -8
- package/dist/providers/index.js +21 -25
- package/dist/renderer/index.d.ts +3 -79
- package/dist/renderer/index.js +2 -2
- package/dist/runtime/index.css +190 -192
- package/dist/runtime/index.d.ts +9 -2
- package/dist/runtime/index.js +20 -23
- package/dist/ssr/index.cjs +105 -28
- package/dist/ssr/index.js +106 -29
- package/dist/test-support.js +2 -2
- package/dist/{useUISlots-CiobNFGb.d.ts → useUISlots-BLcGd__D.d.ts} +2 -0
- package/dist/{paintDispatch-CuJLsr9Y.d.ts → verificationRegistry-BLuQU1JV.d.ts} +127 -15
- package/package.json +10 -38
- package/src/core/locales/ar.json +10 -1
- package/src/core/locales/en.json +10 -1
- package/src/core/locales/sl.json +10 -1
- package/tailwind-preset.cjs +8 -4
- package/dist/AvlGlyph-EPJKFEO3.js +0 -6
- package/dist/AvlStateMachine-RKZIKNGC.js +0 -9
- package/dist/AvlTransitionDetail-63SD6GZF.js +0 -11
- package/dist/AvlTransitionExplainer-ZBTLOM3T.js +0 -12
- package/dist/BehaviorView-YS5G4GNB.js +0 -11
- package/dist/Canvas3DHost-BkZQB5l2.d.ts +0 -552
- package/dist/FlowCanvas-AUMTWMNG.js +0 -26
- package/dist/ModuleCard-QHDGK5XK.js +0 -7
- package/dist/OrbInspector-QCPEPUPH.js +0 -26
- package/dist/UISlotRenderer-C7WWOK43.js +0 -26
- package/dist/avl-3d-context-BycmO6tG.d.ts +0 -201
- package/dist/avl-schema-parser-CtJxJ9KU.d.ts +0 -132
- package/dist/avl-zoom-state-CKMVuBFg.d.ts +0 -17
- package/dist/chunk-4T3P43NS.js +0 -1133
- package/dist/chunk-DZBQA2OW.js +0 -176
- package/dist/chunk-EOWMARUB.js +0 -16
- package/dist/chunk-GFXCPUMX.js +0 -1334
- package/dist/chunk-ILZ7ORX7.js +0 -432
- package/dist/three/index.css +0 -503
- package/dist/three/index.d.ts +0 -1185
- package/dist/three/index.js +0 -3908
- package/dist/verificationRegistry-CVrcxG1s.d.ts +0 -122
- /package/dist/{katexPlugin-NCDKOOQY.js → katexPlugin-WGJ4JFZU.js} +0 -0
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export { B as BoardTile, G as GameAction, j as GamePhase, k as GameState, l as GameUnit, b as IsometricFeature, I as IsometricTile, P as Position, m as UnitTrait, n as calculateAttackTargets, o as calculateValidMoves, p as createInitialGameState } from '../Canvas3DHost-BkZQB5l2.js';
|
|
5
|
-
import { EntityRow, FieldValue, EntityRole, Asset, AnimationName, SpriteDirection, AnimationDef, A11yProps, EventKey, EventEmit, EventPayload, AssetUrl, ScenePos, Camera, SoundEntry, EntityWith, DiagramMarkRoles, TraitConfigValue, SkeletonVariant, SkeletonSpec, SkeletonNode, SurfaceMode, UISlot, PatternNode, EventListen, JsonValue, AssetCatalog, SExpr, JsonObject, EventPayloadValue, DeclaredTraitConfig, TraitConfig, ControlValue, OrbitalSchema, Trait, TraceActivity, OrbitalEntity, FormSubmitPayload, TraitDescription, MountedOrbital, EnterAnimation, TraitValue, TransitionTrace, DependencyGraph, EditFocus, TraceSubagent, TraceChatMessage } from '@almadar/core';
|
|
3
|
+
import { AnimationName, Asset, EntityRow, FieldValue, EntityRole, SpriteDirection, AnimationDef, A11yProps, EventKey, EventEmit, EventPayload, AssetUrl, ScenePos, Camera, AudioPlay, EntityWith, DiagramMarkRoles, GpuBuffer, TraitConfigValue, SkeletonVariant, SkeletonSpec, SkeletonNode, SurfaceMode, UISlot, PatternNode, EventListen, JsonValue, AssetCatalog, SExpr, JsonObject, EventPayloadValue, DeclaredTraitConfig, TraitConfig, ControlValue, OrbitalSchema, Trait, TraceActivity, OrbitalEntity, FormSubmitPayload, TraitDescription, MountedOrbital, EnterAnimation, TraitValue, TransitionTrace, DependencyGraph, EditFocus, TraceSubagent, TraceChatMessage } from '@almadar/core';
|
|
6
4
|
export { AnimationDef, AnimationName, AudioManifest, BusEvent, BusEventListener, BusEventSource, BusEventListener as EventListener, SkeletonVariant, SoundEntry, SpriteDirection, UISlot, Unsubscribe } from '@almadar/core';
|
|
7
5
|
import { IconInput, UiError, FxOverlayItem, BadgeColor, DisplayField, DisplayFieldFormat, BadgeVariant, ColorToken } from '../core.js';
|
|
8
6
|
import '../EventBusProvider-BFFHfN4O.js';
|
|
9
|
-
import { D as DrawableNode, P as Projector, M as MeshShapeKind
|
|
10
|
-
export {
|
|
11
|
-
export { G as GameAudioContext, a as GameAudioContextValue, e as GameAudioControls, b as GameAudioProvider, c as GameAudioProviderProps, U as UseGameAudioOptions, f as useGameAudio, u as useGameAudioContext } from '../GameAudioProvider-
|
|
12
|
-
import { AvlStateMachineProps } from '../avl/index.js';
|
|
13
|
-
export { B as BehaviorView,
|
|
7
|
+
import { D as DrawableNode, P as Projector, M as MeshShapeKind } from '../verificationRegistry-BLuQU1JV.js';
|
|
8
|
+
export { A as DrawFxLayer, B as DrawGroup, C as DrawMesh, E as DrawShape, F as DrawShapeLayer, G as DrawSkinnedMesh, H as DrawSprite, I as DrawSpriteLayer, J as DrawText, K as DrawTextLayer } from '../verificationRegistry-BLuQU1JV.js';
|
|
9
|
+
export { G as GameAudioContext, a as GameAudioContextValue, e as GameAudioControls, b as GameAudioProvider, c as GameAudioProviderProps, U as UseGameAudioOptions, f as useGameAudio, u as useGameAudioContext } from '../GameAudioProvider-BgWOOYT3.js';
|
|
10
|
+
import { AvlStateMachineProps, TraitLevelData } from '../avl/index.js';
|
|
11
|
+
export { B as BehaviorView, l as BehaviorViewProps, m as FileTree, F as FileTreeItem, n as FileTreeNode, o as FileTreeProps, M as ModuleCard, q as ModuleCardProps } from '../FileTree-B3GDAjaQ.js';
|
|
14
12
|
import { LucideIcon } from 'lucide-react';
|
|
15
13
|
import { InputProps, ButtonProps, PatternVariant, SelectOption } from '../core.js';
|
|
16
|
-
import {
|
|
14
|
+
import { j as ContentAnnotation, L as LessonSegment } from '../SegmentRenderer-BAQ6Jwf6.js';
|
|
17
15
|
import { EditorMotion, EditorOperator, ContentSegment } from '../lib/index.js';
|
|
18
|
-
export { B as BloomLevel,
|
|
16
|
+
export { B as BloomLevel, k as BloomQuizBlock, l as BloomQuizBlockProps, n as CodeRunnerPanel, o as CodeRunnerPanelProps, q as CodeSimulationOutput, r as LessonUserProgress, S as SegmentRenderer, s as SegmentRendererProps } from '../SegmentRenderer-BAQ6Jwf6.js';
|
|
19
17
|
import { LanguageCode } from '@almadar/core/i18n';
|
|
20
18
|
import { EmojiPickPayload, ItemActionPayload, SelectionChangePayload } from '@almadar/core/patterns';
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
export { D as DEFAULT_SLOTS, S as SlotChangeCallback, b as SlotRenderConfig, U as UISlotManager, u as useUISlotManager } from '../useUISlots-CiobNFGb.js';
|
|
24
|
-
import '../verificationRegistry-CVrcxG1s.js';
|
|
19
|
+
import { a as SlotContent, c as SlotPropValue } from '../useUISlots-BLcGd__D.js';
|
|
20
|
+
export { D as DEFAULT_SLOTS, S as SlotChangeCallback, b as SlotRenderConfig, U as UISlotManager, u as useUISlotManager } from '../useUISlots-BLcGd__D.js';
|
|
25
21
|
export { ALMADAR_DND_MIME, AuthContextValue, AuthUser, CanvasGestureCallbacks, CanvasGestureHandlers, CompileResult, CompileStage, DragReorderResult, DraggablePayload, EditorKeyEvent, Extension, ExtensionManifest, FileSystemFile, FileSystemStatus, GitHubRepo, GitHubStatus, KeyCaptureEntry, KeyCaptureTable, LongPressHandlers, LongPressOptions, OpenFile, PageHeadInput, Positioned, PullToRefreshOptions, PullToRefreshResult, QuerySingletonEntity, QuerySingletonResult, QuerySingletonState, QueryState, RenderInterpolationHandle, RenderInterpolationOptions, SelectedFile, SharedEntityStore, SharedEntityStoreContext, SharedEntitySubscriber, SharedEntityWriter, SwipeGestureOptions, SwipeGestureResult, SwipeHandlers, TraitListenSpec, UseCanvasGesturesOptions, UseCompileResult, UseDraggableOptions, UseDraggableResult, UseDropZoneOptions, UseDropZoneResult, UseExtensionsOptions, UseExtensionsResult, UseFileEditorOptions, UseFileEditorResult, UseFileSystemResult, UseKeyboardRouterOptions, claimDelivery, createSharedEntityStore, keyChord, mergeCaptureTables, parseQueryBinding, runTickFrame, useAgentChat, useAuthContext, useCanvasGestures, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useDragReorder, useDraggable, useDropZone, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useKeyboardRouter, useLongPress, usePageHead, usePreview, usePullToRefresh, useQuerySingleton, useRenderInterpolation, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useSwipeGesture, useTickVisibility, useTraitListens, useUIEvents, useValidation } from '../hooks/index.js';
|
|
26
22
|
export { S as SlotHostManifest, a as SlotHostRegion, b as assertUniqueSlotsPerHost } from '../slot-host-CPzrxLo9.js';
|
|
27
|
-
import 'three';
|
|
28
|
-
import '@xyflow/react';
|
|
29
23
|
import '@almadar/shell-runtime/client/EventTransport';
|
|
30
24
|
import '../verification-C5pTeMJv.js';
|
|
25
|
+
import '@xyflow/react';
|
|
31
26
|
import '@tanstack/react-query';
|
|
32
27
|
|
|
33
28
|
/**
|
|
@@ -85,6 +80,292 @@ declare namespace TraitFrame {
|
|
|
85
80
|
var displayName: string;
|
|
86
81
|
}
|
|
87
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Sprite Sheet Animation Types
|
|
85
|
+
*
|
|
86
|
+
* Type definitions for frame-based sprite sheet animation system.
|
|
87
|
+
* Supports standard 8-column × 5-row character sheets.
|
|
88
|
+
*
|
|
89
|
+
* `AnimationName`, `AnimationDef`, and `SpriteDirection` are canonically owned
|
|
90
|
+
* by `@almadar/core` (they travel with a `spriteSheet`-role `Asset.url`'s
|
|
91
|
+
* resolved atlas contract) — re-exported here so existing call sites in this
|
|
92
|
+
* package don't need to change their import path.
|
|
93
|
+
*
|
|
94
|
+
* @packageDocumentation
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/** Unit facing direction on screen (4 isometric directions) */
|
|
98
|
+
type FacingDirection = 'se' | 'sw' | 'ne' | 'nw';
|
|
99
|
+
/** A resolved frame ready to draw on canvas */
|
|
100
|
+
interface ResolvedFrame {
|
|
101
|
+
/** URL of the sprite sheet image */
|
|
102
|
+
sheetUrl: string;
|
|
103
|
+
/** Source X in the sheet (pixel offset) */
|
|
104
|
+
sx: number;
|
|
105
|
+
/** Source Y in the sheet (pixel offset) */
|
|
106
|
+
sy: number;
|
|
107
|
+
/** Source width (frame width) */
|
|
108
|
+
sw: number;
|
|
109
|
+
/** Source height (frame height) */
|
|
110
|
+
sh: number;
|
|
111
|
+
/** Whether to flip horizontally when drawing (for NE/NW directions) */
|
|
112
|
+
flipX: boolean;
|
|
113
|
+
/** When true, canvas should apply sine-bob breathing offset (frozen idle frame) */
|
|
114
|
+
applyBreathing?: boolean;
|
|
115
|
+
}
|
|
116
|
+
/** Per-unit animation state tracked in the animation system */
|
|
117
|
+
interface UnitAnimationState {
|
|
118
|
+
/** Unit identifier */
|
|
119
|
+
unitId: string;
|
|
120
|
+
/** Current animation playing */
|
|
121
|
+
animation: AnimationName;
|
|
122
|
+
/** Current facing direction */
|
|
123
|
+
direction: FacingDirection;
|
|
124
|
+
/** Current frame index within the animation */
|
|
125
|
+
frame: number;
|
|
126
|
+
/** Elapsed time in current animation (ms) */
|
|
127
|
+
elapsed: number;
|
|
128
|
+
/** Animation to play after current one-shot completes (null = idle) */
|
|
129
|
+
queuedAnimation: AnimationName | null;
|
|
130
|
+
/** Whether the current one-shot animation has finished its last frame */
|
|
131
|
+
finished: boolean;
|
|
132
|
+
}
|
|
133
|
+
/** Frame dimensions for a sprite sheet */
|
|
134
|
+
interface SpriteFrameDims {
|
|
135
|
+
/** Width of a single frame in pixels */
|
|
136
|
+
width: number;
|
|
137
|
+
/** Height of a single frame in pixels */
|
|
138
|
+
height: number;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Sheet URLs per facing. Legacy hand-drawn packs ship only se/sw (ne/nw are
|
|
142
|
+
* mirror-flipped — a cheat that shows the face while walking away); 3D-baked
|
|
143
|
+
* sheets also ship real ne/nw, which `resolveFrame` prefers when present.
|
|
144
|
+
*/
|
|
145
|
+
interface SpriteSheetUrls {
|
|
146
|
+
/** Southeast-facing sheet URL */
|
|
147
|
+
se: string;
|
|
148
|
+
/** Southwest-facing sheet URL */
|
|
149
|
+
sw: string;
|
|
150
|
+
/** Northeast-facing sheet URL (real back view; omitted → mirror of sw) */
|
|
151
|
+
ne?: string;
|
|
152
|
+
/** Northwest-facing sheet URL (real back view; omitted → mirror of se) */
|
|
153
|
+
nw?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Game Types — Generalized
|
|
158
|
+
*
|
|
159
|
+
* Core type definitions for tactical game state.
|
|
160
|
+
* Extracted from Trait Wars and generalized for any game project.
|
|
161
|
+
*/
|
|
162
|
+
interface Position {
|
|
163
|
+
x: number;
|
|
164
|
+
y: number;
|
|
165
|
+
}
|
|
166
|
+
interface GameUnit {
|
|
167
|
+
id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
characterType: string;
|
|
170
|
+
team: 'player' | 'enemy' | 'neutral';
|
|
171
|
+
position: Position;
|
|
172
|
+
health: number;
|
|
173
|
+
maxHealth: number;
|
|
174
|
+
movement: number;
|
|
175
|
+
attack: number;
|
|
176
|
+
defense: number;
|
|
177
|
+
traits: UnitTrait[];
|
|
178
|
+
}
|
|
179
|
+
interface UnitTrait {
|
|
180
|
+
name: string;
|
|
181
|
+
currentState: string;
|
|
182
|
+
states: string[];
|
|
183
|
+
cooldown: number;
|
|
184
|
+
}
|
|
185
|
+
interface BoardTile {
|
|
186
|
+
terrain: string;
|
|
187
|
+
unitId?: string;
|
|
188
|
+
isBlocked?: boolean;
|
|
189
|
+
}
|
|
190
|
+
type GamePhase = 'observation' | 'planning' | 'execution' | 'tick';
|
|
191
|
+
interface GameState {
|
|
192
|
+
board: BoardTile[][];
|
|
193
|
+
units: Record<string, GameUnit>;
|
|
194
|
+
currentPhase: GamePhase;
|
|
195
|
+
currentTurn: number;
|
|
196
|
+
activeTeam: 'player' | 'enemy' | 'neutral';
|
|
197
|
+
selectedUnitId?: string;
|
|
198
|
+
validMoves: Position[];
|
|
199
|
+
attackTargets: Position[];
|
|
200
|
+
}
|
|
201
|
+
type GameAction = {
|
|
202
|
+
type: 'SELECT_UNIT';
|
|
203
|
+
unitId: string;
|
|
204
|
+
} | {
|
|
205
|
+
type: 'MOVE_UNIT';
|
|
206
|
+
from: Position;
|
|
207
|
+
to: Position;
|
|
208
|
+
} | {
|
|
209
|
+
type: 'ATTACK';
|
|
210
|
+
attackerId: string;
|
|
211
|
+
targetId: string;
|
|
212
|
+
} | {
|
|
213
|
+
type: 'END_TURN';
|
|
214
|
+
} | {
|
|
215
|
+
type: 'EXECUTE_TRAITS';
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Create the initial game state with board and units.
|
|
219
|
+
*
|
|
220
|
+
* @param {number} width - Board width in tiles
|
|
221
|
+
* @param {number} height - Board height in tiles
|
|
222
|
+
* @param {GameUnit[]} units - Initial units to place on the board
|
|
223
|
+
* @param {string} [defaultTerrain] - Default terrain type for empty tiles
|
|
224
|
+
* @returns {GameState} The initialized game state
|
|
225
|
+
*/
|
|
226
|
+
declare function createInitialGameState(width: number, height: number, units: GameUnit[], defaultTerrain?: string): GameState;
|
|
227
|
+
/**
|
|
228
|
+
* Calculate valid movement positions for a unit.
|
|
229
|
+
*
|
|
230
|
+
* Returns all tiles within the unit's movement range that are
|
|
231
|
+
* not blocked and don't contain other units.
|
|
232
|
+
*
|
|
233
|
+
* @param {GameState} state - Current game state
|
|
234
|
+
* @param {string} unitId - ID of the unit to calculate moves for
|
|
235
|
+
* @returns {Position[]} Array of valid move positions
|
|
236
|
+
*/
|
|
237
|
+
declare function calculateValidMoves(state: GameState, unitId: string): Position[];
|
|
238
|
+
/**
|
|
239
|
+
* Calculate valid attack targets for a unit.
|
|
240
|
+
*
|
|
241
|
+
* Returns adjacent positions containing enemy units that can be attacked.
|
|
242
|
+
*
|
|
243
|
+
* @param {GameState} state - Current game state
|
|
244
|
+
* @param {string} unitId - ID of the unit to calculate targets for
|
|
245
|
+
* @returns {Position[]} Array of valid attack target positions
|
|
246
|
+
*/
|
|
247
|
+
declare function calculateAttackTargets(state: GameState, unitId: string): Position[];
|
|
248
|
+
|
|
249
|
+
/** A single isometric tile on the grid */
|
|
250
|
+
interface IsometricTile {
|
|
251
|
+
/** Optional unique identifier (required for 3D rendering) */
|
|
252
|
+
id?: string;
|
|
253
|
+
/** Grid x coordinate */
|
|
254
|
+
x: number;
|
|
255
|
+
/** Grid y coordinate (2D) */
|
|
256
|
+
y: number;
|
|
257
|
+
/** Grid z coordinate (3D alternative to y) */
|
|
258
|
+
z?: number;
|
|
259
|
+
/** Terrain type key (e.g., 'grass', 'stone', 'water') - 2D */
|
|
260
|
+
terrain?: string;
|
|
261
|
+
/** Tile type for visual rendering (3D) */
|
|
262
|
+
type?: string;
|
|
263
|
+
/** Direct sprite URL override (bypasses getTerrainSprite resolver) */
|
|
264
|
+
terrainSprite?: Asset;
|
|
265
|
+
/** Fallback/override fill color (2D + 3D) — bypasses the terrain color map. `.lolo`-computed. */
|
|
266
|
+
color?: string;
|
|
267
|
+
/** Whether units can traverse this tile (default true) */
|
|
268
|
+
passable?: boolean;
|
|
269
|
+
/** Movement cost for pathfinding (default 1) */
|
|
270
|
+
movementCost?: number;
|
|
271
|
+
/** Optional tile type for visual variants */
|
|
272
|
+
tileType?: string;
|
|
273
|
+
/** Elevation offset for 3D rendering */
|
|
274
|
+
elevation?: number;
|
|
275
|
+
/** 3D model URL (GLB format) for GameCanvas3D — rendered via ModelLoader with box fallback */
|
|
276
|
+
modelUrl?: Asset;
|
|
277
|
+
/** Y-axis rotation in degrees (3D) — orients directional pieces (track corners, road bends) */
|
|
278
|
+
rotation?: number;
|
|
279
|
+
}
|
|
280
|
+
/** A unit positioned on the isometric grid */
|
|
281
|
+
type IsometricUnit = {
|
|
282
|
+
/** Unique unit identifier */
|
|
283
|
+
id: string;
|
|
284
|
+
/** Current grid position (2D format) */
|
|
285
|
+
position?: {
|
|
286
|
+
x: number;
|
|
287
|
+
y: number;
|
|
288
|
+
};
|
|
289
|
+
/** Grid x coordinate (3D format) */
|
|
290
|
+
x?: number;
|
|
291
|
+
/** Grid y coordinate (3D format) */
|
|
292
|
+
y?: number;
|
|
293
|
+
/** Grid z coordinate (3D format) */
|
|
294
|
+
z?: number;
|
|
295
|
+
/** Static sprite URL (used when no sprite sheet animation) */
|
|
296
|
+
sprite?: Asset;
|
|
297
|
+
/** Sprite-sheet atlas JSON URL (e.g. `.../guardian-sprite-sheet.json`).
|
|
298
|
+
* When set, the canvas loads the atlas and crops/animates a single frame
|
|
299
|
+
* by animation state instead of drawing the whole sheet. */
|
|
300
|
+
spriteSheet?: Asset;
|
|
301
|
+
/** 3D model URL (GLB format) for GameCanvas3D — rendered via ModelLoader with box fallback */
|
|
302
|
+
modelUrl?: Asset;
|
|
303
|
+
/** Unit archetype key for sprite resolution */
|
|
304
|
+
unitType?: string;
|
|
305
|
+
/** Hero identifier for sprite sheet lookup */
|
|
306
|
+
heroId?: string;
|
|
307
|
+
/** Display name rendered below the unit */
|
|
308
|
+
name?: string;
|
|
309
|
+
/** Team affiliation for coloring */
|
|
310
|
+
team?: 'player' | 'enemy' | 'neutral';
|
|
311
|
+
/** Faction for 3D rendering (player/enemy/neutral) */
|
|
312
|
+
faction?: 'player' | 'enemy' | 'neutral';
|
|
313
|
+
/** Fallback/override tint color (2D + 3D) — bypasses the team/faction color map. `.lolo`-computed. */
|
|
314
|
+
tint?: string;
|
|
315
|
+
/** Current health */
|
|
316
|
+
health?: number;
|
|
317
|
+
/** Maximum health */
|
|
318
|
+
maxHealth?: number;
|
|
319
|
+
/** Trait attachments for state display */
|
|
320
|
+
traits?: UnitTrait[];
|
|
321
|
+
/** Previous position for movement trail ghost */
|
|
322
|
+
previousPosition?: {
|
|
323
|
+
x: number;
|
|
324
|
+
y: number;
|
|
325
|
+
};
|
|
326
|
+
/** Elevation offset for 3D rendering */
|
|
327
|
+
elevation?: number;
|
|
328
|
+
/** Animation name — driven by the LOLO state machine; renderer defaults to 'idle' */
|
|
329
|
+
animation?: AnimationName;
|
|
330
|
+
/** Frame index within the animation — driven by the LOLO state machine; renderer defaults to 0 */
|
|
331
|
+
frame?: number;
|
|
332
|
+
/** Y-axis heading in radians (3D) — travel/facing direction. Orients the unit model and
|
|
333
|
+
* drives the `chase` camera (behind + above, looking along heading). Driving boards set this. */
|
|
334
|
+
heading?: number;
|
|
335
|
+
};
|
|
336
|
+
/** A map feature (resource, building, portal, etc.) */
|
|
337
|
+
type IsometricFeature = {
|
|
338
|
+
/** Optional unique identifier (required for 3D rendering) */
|
|
339
|
+
id?: string;
|
|
340
|
+
/** Grid x coordinate */
|
|
341
|
+
x: number;
|
|
342
|
+
/** Grid y coordinate (2D) */
|
|
343
|
+
y: number;
|
|
344
|
+
/** Grid z coordinate (3D alternative to y) */
|
|
345
|
+
z?: number;
|
|
346
|
+
/** Feature type key (e.g., 'goldMine', 'castle', 'portal') */
|
|
347
|
+
type: string;
|
|
348
|
+
/** Direct sprite URL override (bypasses getFeatureSprite resolver) */
|
|
349
|
+
sprite?: Asset;
|
|
350
|
+
/** 3D model URL (GLB format) for GameCanvas3D */
|
|
351
|
+
assetUrl?: Asset;
|
|
352
|
+
/** Color override for 3D rendering */
|
|
353
|
+
color?: string;
|
|
354
|
+
/** Elevation offset for 3D rendering */
|
|
355
|
+
elevation?: number;
|
|
356
|
+
/** Y-axis rotation in radians (3D) — orients directional features (arches, signs, docks). */
|
|
357
|
+
rotation?: number;
|
|
358
|
+
};
|
|
359
|
+
/** Camera state for pan/zoom */
|
|
360
|
+
interface CameraState {
|
|
361
|
+
/** Camera X offset in pixels */
|
|
362
|
+
x: number;
|
|
363
|
+
/** Camera Y offset in pixels */
|
|
364
|
+
y: number;
|
|
365
|
+
/** Zoom level (1.0 = 100%) */
|
|
366
|
+
zoom: number;
|
|
367
|
+
}
|
|
368
|
+
|
|
88
369
|
/**
|
|
89
370
|
* boardEntity — tiny coercion helpers for reading `EntityRow` data inside game
|
|
90
371
|
* boards.
|
|
@@ -869,6 +1150,60 @@ declare namespace Canvas2D {
|
|
|
869
1150
|
var displayName: string;
|
|
870
1151
|
}
|
|
871
1152
|
|
|
1153
|
+
/**
|
|
1154
|
+
* The 3D scene props a pattern declares as data (light rig, post-processing stack), shared by the `canvas` and
|
|
1155
|
+
* learning patterns and drawn by orbital-canvas.
|
|
1156
|
+
*
|
|
1157
|
+
* @packageDocumentation
|
|
1158
|
+
*/
|
|
1159
|
+
/** Single light's tunable knobs (ambient/directional share this shape). */
|
|
1160
|
+
type CanvasLightConfig = {
|
|
1161
|
+
intensity?: number;
|
|
1162
|
+
color?: string;
|
|
1163
|
+
position?: [number, number, number];
|
|
1164
|
+
};
|
|
1165
|
+
/** Hemisphere (sky/ground) light config. */
|
|
1166
|
+
type CanvasHemisphereConfig = {
|
|
1167
|
+
intensity?: number;
|
|
1168
|
+
color?: string;
|
|
1169
|
+
groundColor?: string;
|
|
1170
|
+
};
|
|
1171
|
+
/** Point light config — `position` is required since a point light has no meaningful default placement. */
|
|
1172
|
+
type CanvasPointLightConfig = {
|
|
1173
|
+
intensity?: number;
|
|
1174
|
+
color?: string;
|
|
1175
|
+
position: [number, number, number];
|
|
1176
|
+
distance?: number;
|
|
1177
|
+
decay?: number;
|
|
1178
|
+
};
|
|
1179
|
+
/** Canvas-level 3D light rig, authored as data. Every field is optional; an omitted field takes the standard rig's value. */
|
|
1180
|
+
type CanvasLighting = {
|
|
1181
|
+
/** Default intensity 0.6, color '#ffffff'. */
|
|
1182
|
+
ambient?: CanvasLightConfig;
|
|
1183
|
+
/** Default intensity 0.8, color '#ffffff', position [10, 20, 10]. */
|
|
1184
|
+
directional?: CanvasLightConfig;
|
|
1185
|
+
/** Default intensity 0.3, color '#87ceeb', groundColor '#362d1d'. */
|
|
1186
|
+
hemisphere?: CanvasHemisphereConfig;
|
|
1187
|
+
/** Additional point lights. Default none. */
|
|
1188
|
+
points?: CanvasPointLightConfig[];
|
|
1189
|
+
/** Procedural environment for PBR reflection (metals/glass). Default 'none'. */
|
|
1190
|
+
environment?: 'room' | 'none';
|
|
1191
|
+
/** Output tone mapping. Default 'aces' (filmic); 'none' renders material colors faithfully. */
|
|
1192
|
+
toneMapping?: 'aces' | 'none';
|
|
1193
|
+
};
|
|
1194
|
+
/** Canvas-level post-processing stack. Every field is optional; an omitted field means that pass is not run. */
|
|
1195
|
+
type CanvasPost = {
|
|
1196
|
+
bloom?: {
|
|
1197
|
+
intensity?: number;
|
|
1198
|
+
threshold?: number;
|
|
1199
|
+
smoothing?: number;
|
|
1200
|
+
};
|
|
1201
|
+
vignette?: {
|
|
1202
|
+
offset?: number;
|
|
1203
|
+
darkness?: number;
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
|
|
872
1207
|
/**
|
|
873
1208
|
* Canvas — the unified game canvas draw-host (P6 closing).
|
|
874
1209
|
*
|
|
@@ -889,8 +1224,8 @@ declare namespace Canvas2D {
|
|
|
889
1224
|
* shapes so the single value stays assignable to either host's prop (the two hosts
|
|
890
1225
|
* still emit their own coordinate shape at runtime).
|
|
891
1226
|
*
|
|
892
|
-
* The 3D
|
|
893
|
-
*
|
|
1227
|
+
* The 3D painter is orbital-canvas (wasm), handed the pattern's own props as its
|
|
1228
|
+
* scene config.
|
|
894
1229
|
*
|
|
895
1230
|
* @packageDocumentation
|
|
896
1231
|
*/
|
|
@@ -902,6 +1237,8 @@ interface CanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProps>, A11
|
|
|
902
1237
|
mode?: CanvasMode;
|
|
903
1238
|
/** Neutral drawable descriptors — the `draw-*` children. Routed to the host's painter. */
|
|
904
1239
|
drawables?: DrawableNode[];
|
|
1240
|
+
/** Text alternative for the scene, rendered as visually hidden text and linked by aria-describedby. */
|
|
1241
|
+
description?: string;
|
|
905
1242
|
/** Neutral camera pose. Mapped to the underlying host's framing + zoom. */
|
|
906
1243
|
camera?: Camera;
|
|
907
1244
|
/** 2D grid layout (2D mode only): isometric / hex / flat / free / side. */
|
|
@@ -996,7 +1333,7 @@ interface CanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProps>, A11
|
|
|
996
1333
|
* Forwarded to the 2D host, which collects them via drawable registry context. */
|
|
997
1334
|
children?: React$1.ReactNode;
|
|
998
1335
|
}
|
|
999
|
-
declare function Canvas({ mode, drawables, camera, projection, className, isLoading, unitScale, showMinimap, fit, tileWidth, backgroundImage, backgroundColor, worldWidth, worldHeight, pixelsPerUnit, showGrid, shadows, showCoordinates, showTileInfo, fogOfWar, lighting, post, tileClickEvent, unitClickEvent, tileHoverEvent, tileLeaveEvent, featureClickEvent, keyMap, keyUpMap, editable, selectedId, onSelect, onMove, selectEvent, moveEvent, children, ...rest }: CanvasProps): React$1.JSX.Element;
|
|
1336
|
+
declare function Canvas({ mode, drawables, camera, projection, className, isLoading, unitScale, showMinimap, fit, tileWidth, backgroundImage, backgroundColor, worldWidth, worldHeight, pixelsPerUnit, showGrid, shadows, showCoordinates, showTileInfo, fogOfWar, lighting, post, tileClickEvent, unitClickEvent, tileHoverEvent, tileLeaveEvent, featureClickEvent, keyMap, keyUpMap, editable, selectedId, onSelect, onMove, selectEvent, moveEvent, children, description, ...rest }: CanvasProps): React$1.JSX.Element;
|
|
1000
1337
|
declare namespace Canvas {
|
|
1001
1338
|
var displayName: string;
|
|
1002
1339
|
}
|
|
@@ -1059,22 +1396,20 @@ declare namespace GameAudioToggle {
|
|
|
1059
1396
|
}
|
|
1060
1397
|
|
|
1061
1398
|
interface GameAudioCueProps {
|
|
1062
|
-
/**
|
|
1063
|
-
cue?: string;
|
|
1064
|
-
/** Monotonically increasing counter — bumping it re-triggers `cue`. */
|
|
1399
|
+
/** Monotonically increasing counter — bumping it plays `cuePlay` once. */
|
|
1065
1400
|
cueSeq?: number;
|
|
1066
|
-
/**
|
|
1067
|
-
|
|
1401
|
+
/** The resolved one-shot to play on the next `cueSeq` bump. */
|
|
1402
|
+
cuePlay?: AudioPlay;
|
|
1403
|
+
/** The resolved looping track; an empty key fades the current one out. */
|
|
1404
|
+
musicPlay?: AudioPlay;
|
|
1405
|
+
/** Resolved sounds started on the first user gesture while unmuted. */
|
|
1406
|
+
autostart?: AudioPlay[];
|
|
1068
1407
|
/** Muted state, owned externally and mirrored into the hook. */
|
|
1069
1408
|
muted?: boolean;
|
|
1070
1409
|
/** Master volume 0-1, owned externally and mirrored into the hook. */
|
|
1071
1410
|
volume?: number;
|
|
1072
|
-
/** Sound manifest — keys mapped to sound definitions (path, volume, loop, ...). */
|
|
1073
|
-
manifest: Record<string, SoundEntry>;
|
|
1074
|
-
/** Base URL prepended to every manifest path. */
|
|
1075
|
-
baseUrl?: string;
|
|
1076
1411
|
}
|
|
1077
|
-
declare function GameAudioCue({
|
|
1412
|
+
declare function GameAudioCue({ cueSeq, cuePlay, musicPlay, autostart, muted, volume, }: GameAudioCueProps): null;
|
|
1078
1413
|
declare namespace GameAudioCue {
|
|
1079
1414
|
var displayName: string;
|
|
1080
1415
|
}
|
|
@@ -1696,10 +2031,9 @@ declare const GameShell: React__default.FC<GameShellProps>;
|
|
|
1696
2031
|
/**
|
|
1697
2032
|
* LearningCanvas
|
|
1698
2033
|
*
|
|
1699
|
-
* A
|
|
1700
|
-
*
|
|
1701
|
-
*
|
|
1702
|
-
* events, and optional animation drives a continuous render loop.
|
|
2034
|
+
* A declarative canvas atom for math and science visualizations: a list of primitive shapes (line, arrow, circle,
|
|
2035
|
+
* rect, polygon, path, text, axis, grid) plus readout chips and trace insets, mapped and drawn by orbital-canvas.
|
|
2036
|
+
* Optional interactivity emits click events.
|
|
1703
2037
|
*
|
|
1704
2038
|
* This is the foundational atom for the `learning/` behavior family.
|
|
1705
2039
|
*
|
|
@@ -1759,6 +2093,22 @@ interface LearningShape extends DiagramMarkRoles {
|
|
|
1759
2093
|
/** venn-region only: ids of sibling `circle` shapes SUBTRACTED from the `inside` intersection (true lens/exclusion shading). */
|
|
1760
2094
|
outside?: string[];
|
|
1761
2095
|
}
|
|
2096
|
+
/**
|
|
2097
|
+
* Particles packed as data (a GPU readback, for one): one little-endian 32-bit word every `stride` bytes, x in bits
|
|
2098
|
+
* 0-11, y in bits 12-23 and a `palette` index in bits 24-31. Drawn in one pass, without a shape per particle.
|
|
2099
|
+
*/
|
|
2100
|
+
interface LearningParticles {
|
|
2101
|
+
/** The packed words as base64 bytes (a CPU copy); exactly one of `data` or `buffer`. */
|
|
2102
|
+
data?: string;
|
|
2103
|
+
/** The packed words where they lie on the GPU (a program's compute output, drawn without a readback). */
|
|
2104
|
+
buffer?: GpuBuffer;
|
|
2105
|
+
/** Bytes from one particle's word to the next. */
|
|
2106
|
+
stride: number;
|
|
2107
|
+
/** Drawn half-size of each particle, in scene pixels. */
|
|
2108
|
+
radius: number;
|
|
2109
|
+
/** Particle colors by index: tone names, `var()` tokens or literals; an index past the end takes the last. */
|
|
2110
|
+
palette: string[];
|
|
2111
|
+
}
|
|
1762
2112
|
/** A single top-right status chip (e.g. a live measurement or score). */
|
|
1763
2113
|
interface LearningReadout {
|
|
1764
2114
|
/** Chip label, shown before the value. */
|
|
@@ -1822,6 +2172,8 @@ interface LearningCanvasProps extends A11yProps {
|
|
|
1822
2172
|
fontFamily?: string;
|
|
1823
2173
|
/** Declarative shapes to draw. */
|
|
1824
2174
|
shapes?: LearningShape[];
|
|
2175
|
+
/** Packed particles drawn under the shapes in one pass ({@link LearningParticles}). */
|
|
2176
|
+
particles?: LearningParticles;
|
|
1825
2177
|
/**
|
|
1826
2178
|
* Neutral game-canvas drawables (e.g. `draw-sprite`, `draw-fx-layer`) painted
|
|
1827
2179
|
* in world coordinates via the supplied `projector`. This lets the learning
|
|
@@ -2826,6 +3178,8 @@ interface MenuItem {
|
|
|
2826
3178
|
id?: string;
|
|
2827
3179
|
/** Item label */
|
|
2828
3180
|
label: string;
|
|
3181
|
+
/** A second, quieter line under the label. */
|
|
3182
|
+
description?: string;
|
|
2829
3183
|
/** Item icon (Lucide icon name or component) */
|
|
2830
3184
|
icon?: IconInput;
|
|
2831
3185
|
/** Item badge */
|
|
@@ -3915,6 +4269,46 @@ interface CodeViewerFile {
|
|
|
3915
4269
|
code: string;
|
|
3916
4270
|
language?: CodeLanguage;
|
|
3917
4271
|
}
|
|
4272
|
+
/** Buffer mode: a position in the text, zero-based line and character column (the units of `str/len`). */
|
|
4273
|
+
interface CodeCursor {
|
|
4274
|
+
row: number;
|
|
4275
|
+
col: number;
|
|
4276
|
+
}
|
|
4277
|
+
/** Buffer mode: the selected range, end inclusive of the cursor's character; `linewise` selects whole lines. */
|
|
4278
|
+
interface CodeSelection {
|
|
4279
|
+
fromRow: number;
|
|
4280
|
+
fromCol: number;
|
|
4281
|
+
toRow: number;
|
|
4282
|
+
toCol: number;
|
|
4283
|
+
linewise: boolean;
|
|
4284
|
+
}
|
|
4285
|
+
/**
|
|
4286
|
+
* Buffer mode: a painted range, `to` exclusive. `tone` names a theme color role: syntax
|
|
4287
|
+
* (keyword, string, comment, number, type, function, operator, punctuation, variable) or
|
|
4288
|
+
* annotation (search, review, review-recent, error, warning, info). `label` is its accessible name.
|
|
4289
|
+
*/
|
|
4290
|
+
interface CodeDecoration {
|
|
4291
|
+
id: string;
|
|
4292
|
+
fromRow: number;
|
|
4293
|
+
fromCol: number;
|
|
4294
|
+
toRow: number;
|
|
4295
|
+
toCol: number;
|
|
4296
|
+
tone: string;
|
|
4297
|
+
label?: string;
|
|
4298
|
+
}
|
|
4299
|
+
/** Buffer mode: a note anchored below a range; `busy` shows that more is on its way. */
|
|
4300
|
+
interface CodePopover {
|
|
4301
|
+
fromRow: number;
|
|
4302
|
+
fromCol: number;
|
|
4303
|
+
toRow: number;
|
|
4304
|
+
toCol: number;
|
|
4305
|
+
title: string;
|
|
4306
|
+
sections: {
|
|
4307
|
+
heading: string;
|
|
4308
|
+
lines: string[];
|
|
4309
|
+
}[];
|
|
4310
|
+
busy: boolean;
|
|
4311
|
+
}
|
|
3918
4312
|
interface CodeBlockProps extends A11yProps {
|
|
3919
4313
|
/** The code content to display */
|
|
3920
4314
|
code?: string;
|
|
@@ -4079,6 +4473,59 @@ interface CodeBlockProps extends A11yProps {
|
|
|
4079
4473
|
* @tier presentation
|
|
4080
4474
|
*/
|
|
4081
4475
|
operators?: readonly EditorOperator[];
|
|
4476
|
+
/**
|
|
4477
|
+
* Buffer mode: when set, the program owns the text and the cursor (std-text-buffer) and this
|
|
4478
|
+
* surface only paints them — `code` split on newlines, the caret here, `selection`,
|
|
4479
|
+
* `decorations` and `popover` — and emits input as events: every keydown through `onKey`, a
|
|
4480
|
+
* press through `onPointerDown`, the character the pointer rests over through `onHover`. It
|
|
4481
|
+
* never edits, moves the caret or interprets a key itself, and keeps the cursor line in view.
|
|
4482
|
+
* @tier presentation
|
|
4483
|
+
*/
|
|
4484
|
+
cursor?: CodeCursor;
|
|
4485
|
+
/**
|
|
4486
|
+
* Buffer mode: the caret shape the program's mode asks for.
|
|
4487
|
+
* @tier presentation
|
|
4488
|
+
*/
|
|
4489
|
+
caret?: EditorCaret;
|
|
4490
|
+
/**
|
|
4491
|
+
* Buffer mode: the selected range to paint (VISUAL), or none.
|
|
4492
|
+
* @tier presentation
|
|
4493
|
+
*/
|
|
4494
|
+
selection?: CodeSelection | null;
|
|
4495
|
+
/**
|
|
4496
|
+
* Buffer mode: ranges painted by tone (syntax colors, search hits, review highlights).
|
|
4497
|
+
* @tier presentation
|
|
4498
|
+
*/
|
|
4499
|
+
decorations?: CodeDecoration[];
|
|
4500
|
+
/**
|
|
4501
|
+
* Buffer mode: a note anchored below a range, or none.
|
|
4502
|
+
* @tier presentation
|
|
4503
|
+
*/
|
|
4504
|
+
popover?: CodePopover | null;
|
|
4505
|
+
/**
|
|
4506
|
+
* Number each line by its distance from the cursor line; the cursor line shows its own number.
|
|
4507
|
+
* @tier presentation
|
|
4508
|
+
*/
|
|
4509
|
+
relativeLineNumbers?: boolean;
|
|
4510
|
+
/**
|
|
4511
|
+
* Buffer mode: emits UI:{onPointerDown} with the zero-based row and column a pointer pressed.
|
|
4512
|
+
* @tier presentation
|
|
4513
|
+
*/
|
|
4514
|
+
onPointerDown?: EventEmit<{
|
|
4515
|
+
editorId: string;
|
|
4516
|
+
row: number;
|
|
4517
|
+
col: number;
|
|
4518
|
+
}>;
|
|
4519
|
+
/**
|
|
4520
|
+
* Buffer mode: emits UI:{onHover} with the zero-based row and column the pointer moved onto
|
|
4521
|
+
* (once per character it enters).
|
|
4522
|
+
* @tier presentation
|
|
4523
|
+
*/
|
|
4524
|
+
onHover?: EventEmit<{
|
|
4525
|
+
editorId: string;
|
|
4526
|
+
row: number;
|
|
4527
|
+
col: number;
|
|
4528
|
+
}>;
|
|
4082
4529
|
/**
|
|
4083
4530
|
* Editable only: answers the caret's valid continuations after a keystroke (and on
|
|
4084
4531
|
* Ctrl-Space); they show under the editor and Tab or a click inserts one.
|
|
@@ -4145,6 +4592,7 @@ interface CodeBlockProps extends A11yProps {
|
|
|
4145
4592
|
/** Note action label (default: translated) */
|
|
4146
4593
|
noteLabel?: string;
|
|
4147
4594
|
}
|
|
4595
|
+
/** Buffer mode is on exactly when the program supplies a `cursor`; every other block is the classic one. */
|
|
4148
4596
|
declare const CodeBlock: React__default.NamedExoticComponent<CodeBlockProps>;
|
|
4149
4597
|
|
|
4150
4598
|
/**
|
|
@@ -4843,9 +5291,8 @@ declare const ProgressDots: React__default.FC<ProgressDotsProps>;
|
|
|
4843
5291
|
/**
|
|
4844
5292
|
* MathCanvas
|
|
4845
5293
|
*
|
|
4846
|
-
* A field-scoped learning molecule for
|
|
4847
|
-
*
|
|
4848
|
-
* of the declarative `LearningCanvas` atom.
|
|
5294
|
+
* A field-scoped learning molecule for math: axes, grid, curves, points, vectors, regions, bars, guides, angles,
|
|
5295
|
+
* hops and game drawables in plot coordinates, mapped and drawn by orbital-canvas.
|
|
4849
5296
|
*
|
|
4850
5297
|
* @packageDocumentation
|
|
4851
5298
|
*/
|
|
@@ -5008,9 +5455,9 @@ interface MathCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProps>,
|
|
|
5008
5455
|
* the same x/y world→pixel transform used for curves/points.
|
|
5009
5456
|
*/
|
|
5010
5457
|
drawables?: DrawableNode[];
|
|
5011
|
-
/** Top-right status chips
|
|
5458
|
+
/** Top-right status chips (the LearningCanvas vocabulary). */
|
|
5012
5459
|
readouts?: LearningReadout[];
|
|
5013
|
-
/** Inset sparkline panels
|
|
5460
|
+
/** Inset sparkline panels (the LearningCanvas vocabulary). */
|
|
5014
5461
|
traces?: LearningTracePanel[];
|
|
5015
5462
|
interactive?: boolean;
|
|
5016
5463
|
animate?: boolean;
|
|
@@ -5031,9 +5478,8 @@ declare const MathCanvas: React$1.FC<MathCanvasProps>;
|
|
|
5031
5478
|
/**
|
|
5032
5479
|
* PhysicsCanvas
|
|
5033
5480
|
*
|
|
5034
|
-
* A field-scoped learning molecule for physics
|
|
5035
|
-
*
|
|
5036
|
-
* atom.
|
|
5481
|
+
* A field-scoped learning molecule for physics: bodies, constraints, velocity and force arrows, fixtures, fields
|
|
5482
|
+
* and meters in 2D, or a 3D scene, mapped and drawn by orbital-canvas.
|
|
5037
5483
|
*
|
|
5038
5484
|
* @packageDocumentation
|
|
5039
5485
|
*/
|
|
@@ -5146,17 +5592,17 @@ interface PhysicsTrail {
|
|
|
5146
5592
|
fade?: boolean;
|
|
5147
5593
|
}
|
|
5148
5594
|
/** One elevation color band for a `surface3d` height field; sorted ascending by `min`. */
|
|
5149
|
-
|
|
5595
|
+
type PhysicsSurfaceBand = {
|
|
5150
5596
|
/** Inclusive floor height in cells; omit for the catch-all lowest band. */
|
|
5151
5597
|
min?: number;
|
|
5152
5598
|
color: string;
|
|
5153
|
-
}
|
|
5599
|
+
};
|
|
5154
5600
|
/**
|
|
5155
5601
|
* A 3D height-field mesh (a wave, a terrain, a potential surface) rendered
|
|
5156
5602
|
* from a row-major grid of heights. 3D only.
|
|
5157
5603
|
* @synonyms heightfield, wave surface, terrain, potential surface
|
|
5158
5604
|
*/
|
|
5159
|
-
|
|
5605
|
+
type PhysicsSurface3D = {
|
|
5160
5606
|
/** Grid columns. */
|
|
5161
5607
|
nx: number;
|
|
5162
5608
|
/** Grid rows. */
|
|
@@ -5176,7 +5622,7 @@ interface PhysicsSurface3D {
|
|
|
5176
5622
|
opacity?: number;
|
|
5177
5623
|
/** Faceted low-poly shading (default true). */
|
|
5178
5624
|
flatShading?: boolean;
|
|
5179
|
-
}
|
|
5625
|
+
};
|
|
5180
5626
|
/**
|
|
5181
5627
|
* A single labeled 3D arrow (field arrow, axis-triad leg, force/velocity
|
|
5182
5628
|
* vector), rendered via `vectors3d` + `vectorScale`. 3D only.
|
|
@@ -5224,7 +5670,7 @@ interface PhysicsAngleMarker {
|
|
|
5224
5670
|
* A single uniform vector/into-page/out-of-page lattice drawn over a region.
|
|
5225
5671
|
* @synonyms magnetic field, into page, out of page, field grid
|
|
5226
5672
|
*/
|
|
5227
|
-
|
|
5673
|
+
type PhysicsField = {
|
|
5228
5674
|
kind: 'arrows' | 'into' | 'out';
|
|
5229
5675
|
/** Lattice cell size in pixels (default 48). */
|
|
5230
5676
|
spacing?: number;
|
|
@@ -5242,7 +5688,7 @@ interface PhysicsField {
|
|
|
5242
5688
|
width?: number;
|
|
5243
5689
|
/** Region height (default canvas height). */
|
|
5244
5690
|
height?: number;
|
|
5245
|
-
}
|
|
5691
|
+
};
|
|
5246
5692
|
/**
|
|
5247
5693
|
* A bottom-left labeled bar gauge for a scalar quantity (energy, speed, charge, ...).
|
|
5248
5694
|
* @synonyms energy bar, KE, PE, gauge
|
|
@@ -5267,7 +5713,7 @@ interface PhysicsCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProp
|
|
|
5267
5713
|
keyMap?: Record<string, EventKey>;
|
|
5268
5714
|
/** Maps a keyup `e.code` to a semantic event emitted as `UI:{event}`. */
|
|
5269
5715
|
keyUpMap?: Record<string, EventKey>;
|
|
5270
|
-
/** Painter: 2D raster (default) or 3D mesh scene
|
|
5716
|
+
/** Painter: 2D raster (default) or 3D mesh scene, both drawn by orbital-canvas. */
|
|
5271
5717
|
mode?: '2d' | '3d';
|
|
5272
5718
|
/** 3D only: neutral camera pose ({ mode, zoom, fov, azimuth, target }). */
|
|
5273
5719
|
camera?: Camera;
|
|
@@ -5276,6 +5722,8 @@ interface PhysicsCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProp
|
|
|
5276
5722
|
/** 3D only: post-processing stack (bloom/vignette). */
|
|
5277
5723
|
post?: CanvasPost;
|
|
5278
5724
|
bodies?: LearningPhysicsBody[];
|
|
5725
|
+
/** 2D mode: packed particles drawn in one pass under the bodies (a GPU readback), instead of a body per particle. */
|
|
5726
|
+
particles?: LearningParticles;
|
|
5279
5727
|
constraints?: LearningPhysicsConstraint[];
|
|
5280
5728
|
showVelocity?: boolean;
|
|
5281
5729
|
showForces?: boolean;
|
|
@@ -5301,9 +5749,9 @@ interface PhysicsCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProp
|
|
|
5301
5749
|
meters?: PhysicsMeter[];
|
|
5302
5750
|
/** Extra declarative shapes in canvas pixel coordinates (2D mode only — ignored in 3D). */
|
|
5303
5751
|
shapes?: LearningShape[];
|
|
5304
|
-
/** Top-right status chip row
|
|
5752
|
+
/** Top-right status chip row (the LearningCanvas vocabulary). */
|
|
5305
5753
|
readouts?: LearningReadout[];
|
|
5306
|
-
/** Inset sparkline panels
|
|
5754
|
+
/** Inset sparkline panels (the LearningCanvas vocabulary). */
|
|
5307
5755
|
traces?: LearningTracePanel[];
|
|
5308
5756
|
/** 3D only: show the ground grid (default off). */
|
|
5309
5757
|
showGrid?: boolean;
|
|
@@ -5326,8 +5774,8 @@ declare const PhysicsCanvas: React$1.FC<PhysicsCanvasProps>;
|
|
|
5326
5774
|
/**
|
|
5327
5775
|
* BiologyCanvas
|
|
5328
5776
|
*
|
|
5329
|
-
* A field-scoped learning molecule for biology
|
|
5330
|
-
*
|
|
5777
|
+
* A field-scoped learning molecule for biology: nodes, edges, compartments, bands, stages and a DNA helix in 2D,
|
|
5778
|
+
* or a 3D scene, mapped and drawn by orbital-canvas.
|
|
5331
5779
|
*
|
|
5332
5780
|
* @packageDocumentation
|
|
5333
5781
|
*/
|
|
@@ -5396,7 +5844,7 @@ interface BiologyStage {
|
|
|
5396
5844
|
color?: string;
|
|
5397
5845
|
}
|
|
5398
5846
|
/** One base pair (rung) of a `helix` ladder. */
|
|
5399
|
-
|
|
5847
|
+
type BiologyHelixRung = {
|
|
5400
5848
|
/** Base letter on strand A (top). */
|
|
5401
5849
|
a?: string;
|
|
5402
5850
|
/** Base letter on strand B (bottom). */
|
|
@@ -5405,9 +5853,9 @@ interface BiologyHelixRung {
|
|
|
5405
5853
|
state?: 'paired' | 'open' | 'new';
|
|
5406
5854
|
/** Overrides the state-derived rung color. */
|
|
5407
5855
|
color?: string;
|
|
5408
|
-
}
|
|
5856
|
+
};
|
|
5409
5857
|
/** A DNA double-helix ladder rendered as two strand polylines plus rungs, with an optional unzipped fork. */
|
|
5410
|
-
|
|
5858
|
+
type BiologyHelix = {
|
|
5411
5859
|
/** Panel left edge (default 24). */
|
|
5412
5860
|
x?: number;
|
|
5413
5861
|
/** Panel top edge (default canvas height * 0.25). */
|
|
@@ -5425,9 +5873,9 @@ interface BiologyHelix {
|
|
|
5425
5873
|
colorB?: string;
|
|
5426
5874
|
/** Default paired-rung color: a tone name, token or literal (default `muted`). */
|
|
5427
5875
|
rungColor?: string;
|
|
5428
|
-
}
|
|
5876
|
+
};
|
|
5429
5877
|
/** One base-pair rung of a 3D `helix3d` ladder. */
|
|
5430
|
-
|
|
5878
|
+
type BiologyHelixRung3D = {
|
|
5431
5879
|
/** Clickable when present — stamped on this rung's marker sphere. */
|
|
5432
5880
|
id?: string;
|
|
5433
5881
|
/** Rung cylinder + marker color: a tone name, token or literal (default `muted`). */
|
|
@@ -5436,13 +5884,13 @@ interface BiologyHelixRung3D {
|
|
|
5436
5884
|
radius?: number;
|
|
5437
5885
|
/** Billboard label above the marker. */
|
|
5438
5886
|
label?: string;
|
|
5439
|
-
}
|
|
5887
|
+
};
|
|
5440
5888
|
/**
|
|
5441
5889
|
* A 3D DNA double-helix: two beaded backbone strands plus a base-pair rung
|
|
5442
5890
|
* per index, optionally unwound (replication-fork style) at one end. 3D only.
|
|
5443
5891
|
* @synonyms DNA double helix, base pairs 3D
|
|
5444
5892
|
*/
|
|
5445
|
-
|
|
5893
|
+
type BiologyHelix3D = {
|
|
5446
5894
|
/** Rung count; defaults to `rungs.length`. One of `count`/`rungs` is required. */
|
|
5447
5895
|
count?: number;
|
|
5448
5896
|
/** Per-rung overrides, padded with defaults up to `count`. */
|
|
@@ -5469,7 +5917,7 @@ interface BiologyHelix3D {
|
|
|
5469
5917
|
unwoundCount?: number;
|
|
5470
5918
|
/** Spread multiplier for unwound rungs (default 1.8). */
|
|
5471
5919
|
unwindSpread?: number;
|
|
5472
|
-
}
|
|
5920
|
+
};
|
|
5473
5921
|
interface BiologyCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProps>, A11yProps {
|
|
5474
5922
|
className?: string;
|
|
5475
5923
|
width?: number;
|
|
@@ -5482,7 +5930,7 @@ interface BiologyCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProp
|
|
|
5482
5930
|
keyMap?: Record<string, EventKey>;
|
|
5483
5931
|
/** Maps a keyup `e.code` to a semantic event emitted as `UI:{event}`. */
|
|
5484
5932
|
keyUpMap?: Record<string, EventKey>;
|
|
5485
|
-
/** Painter: 2D raster (default) or 3D mesh scene
|
|
5933
|
+
/** Painter: 2D raster (default) or 3D mesh scene, both drawn by orbital-canvas. */
|
|
5486
5934
|
mode?: '2d' | '3d';
|
|
5487
5935
|
/** 3D only: neutral camera pose ({ mode, zoom, fov, azimuth, target }). */
|
|
5488
5936
|
camera?: Camera;
|
|
@@ -5518,9 +5966,9 @@ interface BiologyCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProp
|
|
|
5518
5966
|
helix3d?: BiologyHelix3D;
|
|
5519
5967
|
/** Extra declarative shapes in canvas pixel coordinates (2D mode only — ignored in 3D). */
|
|
5520
5968
|
shapes?: LearningShape[];
|
|
5521
|
-
/** Top-right status chip row
|
|
5969
|
+
/** Top-right status chip row (the LearningCanvas vocabulary). */
|
|
5522
5970
|
readouts?: LearningReadout[];
|
|
5523
|
-
/** Inset sparkline panels
|
|
5971
|
+
/** Inset sparkline panels (the LearningCanvas vocabulary). */
|
|
5524
5972
|
traces?: LearningTracePanel[];
|
|
5525
5973
|
/** 3D only: show the ground grid (default off). */
|
|
5526
5974
|
showGrid?: boolean;
|
|
@@ -5543,8 +5991,8 @@ declare const BiologyCanvas: React$1.FC<BiologyCanvasProps>;
|
|
|
5543
5991
|
/**
|
|
5544
5992
|
* ChemistryCanvas
|
|
5545
5993
|
*
|
|
5546
|
-
* A field-scoped learning molecule for chemistry
|
|
5547
|
-
*
|
|
5994
|
+
* A field-scoped learning molecule for chemistry: atoms, bonds, arrows, containers and an equation in 2D, or a 3D
|
|
5995
|
+
* scene, mapped and drawn by orbital-canvas.
|
|
5548
5996
|
*
|
|
5549
5997
|
* @packageDocumentation
|
|
5550
5998
|
*/
|
|
@@ -5612,7 +6060,7 @@ interface ChemistryArrow {
|
|
|
5612
6060
|
label?: string;
|
|
5613
6061
|
}
|
|
5614
6062
|
/** One basis site of a `lattice3d` crystal, replicated across the generated block. */
|
|
5615
|
-
|
|
6063
|
+
type ChemistryLatticeSite = {
|
|
5616
6064
|
/** Basis-site key; bonds reference sites by key, not by generated id. */
|
|
5617
6065
|
key: string;
|
|
5618
6066
|
/** Fractional cell offset, 0..1. */
|
|
@@ -5630,9 +6078,9 @@ interface ChemistryLatticeSite {
|
|
|
5630
6078
|
yEdge?: boolean;
|
|
5631
6079
|
/** Replicate on the +z face so the boundary plane completes (n+1 planes along z). */
|
|
5632
6080
|
zEdge?: boolean;
|
|
5633
|
-
}
|
|
6081
|
+
};
|
|
5634
6082
|
/** A bond rule generating one cylinder per valid `from`→`to` site-instance pair. */
|
|
5635
|
-
|
|
6083
|
+
type ChemistryLatticeBond = {
|
|
5636
6084
|
/** Basis-site key this bond originates from. */
|
|
5637
6085
|
from: string;
|
|
5638
6086
|
/** Basis-site key this bond targets. */
|
|
@@ -5643,14 +6091,14 @@ interface ChemistryLatticeBond {
|
|
|
5643
6091
|
dz?: number;
|
|
5644
6092
|
/** Bond color: a tone name, token or literal (default the `ink` tone). */
|
|
5645
6093
|
color?: string;
|
|
5646
|
-
}
|
|
6094
|
+
};
|
|
5647
6095
|
/**
|
|
5648
6096
|
* A 3D crystal lattice (simple cubic, BCC, FCC, rock salt, diamond, ...)
|
|
5649
6097
|
* generated procedurally from a fractional basis + bond rules into a block
|
|
5650
6098
|
* centered on the origin. 3D only.
|
|
5651
6099
|
* @synonyms crystal lattice, unit cell, BCC FCC
|
|
5652
6100
|
*/
|
|
5653
|
-
|
|
6101
|
+
type ChemistryLattice3D = {
|
|
5654
6102
|
basis: ChemistryLatticeSite[];
|
|
5655
6103
|
/** Unit cells replicated along x/y/z (default 2 each). */
|
|
5656
6104
|
nx?: number;
|
|
@@ -5671,7 +6119,7 @@ interface ChemistryLattice3D {
|
|
|
5671
6119
|
selectedId?: string;
|
|
5672
6120
|
/** Selected-site color: a tone name, token or literal (default the `highlight` tone). */
|
|
5673
6121
|
selectedColor?: string;
|
|
5674
|
-
}
|
|
6122
|
+
};
|
|
5675
6123
|
interface ChemistryCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yProps>, A11yProps {
|
|
5676
6124
|
className?: string;
|
|
5677
6125
|
width?: number;
|
|
@@ -5684,7 +6132,7 @@ interface ChemistryCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yPr
|
|
|
5684
6132
|
keyMap?: Record<string, EventKey>;
|
|
5685
6133
|
/** Maps a keyup `e.code` to a semantic event emitted as `UI:{event}`. */
|
|
5686
6134
|
keyUpMap?: Record<string, EventKey>;
|
|
5687
|
-
/** Painter: 2D raster (default) or 3D mesh scene
|
|
6135
|
+
/** Painter: 2D raster (default) or 3D mesh scene, both drawn by orbital-canvas. */
|
|
5688
6136
|
mode?: '2d' | '3d';
|
|
5689
6137
|
/** 3D only: neutral camera pose ({ mode, zoom, fov, azimuth, target }). */
|
|
5690
6138
|
camera?: Camera;
|
|
@@ -5713,9 +6161,9 @@ interface ChemistryCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yPr
|
|
|
5713
6161
|
lattice3d?: ChemistryLattice3D;
|
|
5714
6162
|
/** Extra declarative shapes in canvas pixel coordinates (2D mode only — ignored in 3D). */
|
|
5715
6163
|
shapes?: LearningShape[];
|
|
5716
|
-
/** Top-right status chip row
|
|
6164
|
+
/** Top-right status chip row (the LearningCanvas vocabulary). */
|
|
5717
6165
|
readouts?: LearningReadout[];
|
|
5718
|
-
/** Inset sparkline panels
|
|
6166
|
+
/** Inset sparkline panels (the LearningCanvas vocabulary). */
|
|
5719
6167
|
traces?: LearningTracePanel[];
|
|
5720
6168
|
/** 3D only: show the ground grid (default off). */
|
|
5721
6169
|
showGrid?: boolean;
|
|
@@ -5738,20 +6186,8 @@ declare const ChemistryCanvas: React$1.FC<ChemistryCanvasProps>;
|
|
|
5738
6186
|
/**
|
|
5739
6187
|
* AlgorithmCanvas
|
|
5740
6188
|
*
|
|
5741
|
-
* A field-scoped learning molecule for
|
|
5742
|
-
*
|
|
5743
|
-
* `cells` (grids/arrays/DP tables), `buckets` (hash-table chaining), and `frames`
|
|
5744
|
-
* (call stacks) into pixel-space shapes on the declarative `LearningCanvas` atom,
|
|
5745
|
-
* so a `.lolo` behavior never computes pixel coordinates — it just sets the family
|
|
5746
|
-
* arrays and lets this molecule lay them out. `pointers` (index cursors) and
|
|
5747
|
-
* `ranges` (highlighted spans) decorate the bars/slots panel. Graph/tree
|
|
5748
|
-
* algorithms use `AlgoGraphCanvas` (nodes + edges + layouts); this canvas owns
|
|
5749
|
-
* only the bar/slot/cell/bucket/frame vocabulary.
|
|
5750
|
-
*
|
|
5751
|
-
* When more than one of `bars`/`slots`/`cells`/`buckets`/`frames` is populated,
|
|
5752
|
-
* they share the canvas height as equal vertical panels in that fixed order
|
|
5753
|
-
* (`panelHeight = height / panelCount`); with exactly one family present the
|
|
5754
|
-
* panel math collapses to the original full-height layout unchanged.
|
|
6189
|
+
* A field-scoped learning molecule for algorithms: bars, cells, pointers, ranges, slots, frames and buckets, mapped
|
|
6190
|
+
* and drawn by orbital-canvas.
|
|
5755
6191
|
*
|
|
5756
6192
|
* @packageDocumentation
|
|
5757
6193
|
*/
|
|
@@ -5877,14 +6313,8 @@ declare const AlgorithmCanvas: React$1.FC<AlgorithmCanvasProps>;
|
|
|
5877
6313
|
/**
|
|
5878
6314
|
* AlgoGraphCanvas
|
|
5879
6315
|
*
|
|
5880
|
-
* A field-scoped learning molecule for
|
|
5881
|
-
*
|
|
5882
|
-
* Declares a fixed node/edge state vocabulary with default colors and
|
|
5883
|
-
* deterministic layouts (`manual` | `tree` | `layered` | `circle`) so a
|
|
5884
|
-
* `.lolo` behavior never computes pixel coordinates — it just sets node
|
|
5885
|
-
* `state`/edges and picks a layout. Distinguish from the core d3-force
|
|
5886
|
-
* `GraphCanvas`: this one is a dumb deterministic projection, not a
|
|
5887
|
-
* force simulation.
|
|
6316
|
+
* A field-scoped learning molecule for graph algorithms: nodes in a deterministic layout, edges and node badges,
|
|
6317
|
+
* mapped and drawn by orbital-canvas.
|
|
5888
6318
|
*
|
|
5889
6319
|
* @packageDocumentation
|
|
5890
6320
|
*/
|
|
@@ -5958,96 +6388,6 @@ interface AlgoGraphCanvasProps extends Omit<React$1.AriaAttributes, keyof A11yPr
|
|
|
5958
6388
|
}
|
|
5959
6389
|
declare const AlgoGraphCanvas: React$1.FC<AlgoGraphCanvasProps>;
|
|
5960
6390
|
|
|
5961
|
-
/**
|
|
5962
|
-
* learningScene3D — the shared 3D seam for the learning canvas molecules
|
|
5963
|
-
* (PhysicsCanvas / BiologyCanvas / ChemistryCanvas), mirroring the game
|
|
5964
|
-
* `Canvas` molecule's 2D/3D split: each molecule derives neutral drawable
|
|
5965
|
-
* descriptors from its vocabulary and this module hosts them in the lazy
|
|
5966
|
-
* `Canvas3DHost`, so three.js/R3F never enters a 2D-only bundle.
|
|
5967
|
-
*
|
|
5968
|
-
* The lazy import is the code-split boundary: the package's one split ESM build
|
|
5969
|
-
* makes it its own chunk (the `./three` entry).
|
|
5970
|
-
*
|
|
5971
|
-
* Click: the host speaks `EventEmit` (a bus event-name string), so the wrapper
|
|
5972
|
-
* mints a per-instance, dot-qualified event name (dot-qualified flows through
|
|
5973
|
-
* trait-scope qualification verbatim — a bare key would be scope-rewritten and
|
|
5974
|
-
* never reach this listener) and bridges it back to the molecule's
|
|
5975
|
-
* `onShapeClick` callback contract via `useEventListener` — the same
|
|
5976
|
-
* bus→callback mechanism `MediaGallery`/`StateMachineView` use.
|
|
5977
|
-
*
|
|
5978
|
-
* The derivation helpers below are pure descriptor builders (no three imports).
|
|
5979
|
-
* Scene coordinates are cells: `x`/`y` the ground plane, `z` the height.
|
|
5980
|
-
*
|
|
5981
|
-
* @packageDocumentation
|
|
5982
|
-
*/
|
|
5983
|
-
|
|
5984
|
-
/** A point in scene space: `[x, y, z]` — x/y the ground plane, z the height (cells). */
|
|
5985
|
-
type Learning3DPoint = [number, number, number];
|
|
5986
|
-
interface LearningScene3DProps extends A11yProps {
|
|
5987
|
-
/** Text alternative for the scene, rendered as visually hidden text and linked by aria-describedby. */
|
|
5988
|
-
description?: string;
|
|
5989
|
-
className?: string;
|
|
5990
|
-
width?: number;
|
|
5991
|
-
height?: number;
|
|
5992
|
-
title?: string;
|
|
5993
|
-
backgroundColor?: string;
|
|
5994
|
-
/** Overrides the theme's categorical palette (`series-1…N`) for this scene. */
|
|
5995
|
-
series?: string[];
|
|
5996
|
-
/** Neutral drawable descriptors derived from the molecule's vocabulary. */
|
|
5997
|
-
drawables: DrawableNode[];
|
|
5998
|
-
/** Neutral camera pose; `mode` defaults to 'perspective' for learning scenes. */
|
|
5999
|
-
camera?: Camera;
|
|
6000
|
-
/** 3D scene light rig as data. Omitted → the host's standard fixed rig. */
|
|
6001
|
-
lighting?: CanvasLighting;
|
|
6002
|
-
/** 3D post-processing stack (bloom/vignette). Omitted → no post pass. */
|
|
6003
|
-
post?: CanvasPost;
|
|
6004
|
-
/** Show the 3D ground grid. Default false (the learning scenes' current look). */
|
|
6005
|
-
showGrid?: boolean;
|
|
6006
|
-
/** Enable 3D shadows. Omitted → the host default (shadows on). */
|
|
6007
|
-
shadows?: boolean;
|
|
6008
|
-
/** Enable the orbit camera controls. Omitted → the host default (controls on). */
|
|
6009
|
-
interactive?: boolean;
|
|
6010
|
-
isLoading?: boolean;
|
|
6011
|
-
error?: UiError | null;
|
|
6012
|
-
/** Fires with the `id` of a clicked descriptor (descriptors carry `id` via DrawableBase). */
|
|
6013
|
-
onItemClick?: (id: string) => void;
|
|
6014
|
-
}
|
|
6015
|
-
declare function LearningScene3D({ className, width, height, title, backgroundColor, series, drawables, camera, lighting, post, showGrid, shadows, interactive, isLoading, error, onItemClick, description, ...rest }: LearningScene3DProps): React$1.JSX.Element;
|
|
6016
|
-
declare namespace LearningScene3D {
|
|
6017
|
-
var displayName: string;
|
|
6018
|
-
}
|
|
6019
|
-
interface MeshSphereOpts {
|
|
6020
|
-
/** Primitive kind (default 'sphere'; organelles read well as 'capsule'). */
|
|
6021
|
-
shape?: MeshShapeKind;
|
|
6022
|
-
segments?: number;
|
|
6023
|
-
material?: MeshMaterial;
|
|
6024
|
-
opacity?: number;
|
|
6025
|
-
}
|
|
6026
|
-
/** A sphere (or `opts.shape` primitive) centred at the scene point, `id`-tagged for click. */
|
|
6027
|
-
declare function meshSphere(id: string | undefined, x: number, y: number, z: number, radius: number, color: string, opts?: MeshSphereOpts): DrawMeshProps;
|
|
6028
|
-
/** A cylinder spanning from→to, centred on the midpoint. Null when the segment is degenerate. */
|
|
6029
|
-
declare function cylinderBetween(from: Learning3DPoint, to: Learning3DPoint, radius: number, color: string): DrawMeshProps | null;
|
|
6030
|
-
/**
|
|
6031
|
-
* An arrow from→to as a `draw-group` (shaft cylinder + tip cone) local to `from`.
|
|
6032
|
-
* `shaftRadius` is in scene cells (default: a thin rod at cell scale). `id`,
|
|
6033
|
-
* when given, is stamped on the returned draw-group for click routing.
|
|
6034
|
-
*/
|
|
6035
|
-
declare function arrowBetween(from: Learning3DPoint, to: Learning3DPoint, color: string, shaftRadius?: number, id?: string): DrawGroupProps | null;
|
|
6036
|
-
/** A billboarded text label above the scene point (the 3D host lifts it off the item). */
|
|
6037
|
-
declare function billboardLabel(text: string, x: number, y: number, z: number, opts?: {
|
|
6038
|
-
color?: string;
|
|
6039
|
-
}): DrawTextProps;
|
|
6040
|
-
/**
|
|
6041
|
-
* Bridge the 3D host's `{ unitId }` click back to the molecules' 2D
|
|
6042
|
-
* `onShapeClick({ id, index })` contract — `index` is the item's position in
|
|
6043
|
-
* its vocabulary array (−1 when the id is unknown).
|
|
6044
|
-
*/
|
|
6045
|
-
declare function get3DClickPayload(onShapeClick: ((payload: {
|
|
6046
|
-
id?: string;
|
|
6047
|
-
type?: string;
|
|
6048
|
-
index: number;
|
|
6049
|
-
}) => void) | undefined, idToIndex: ReadonlyMap<string, number>): ((id: string) => void) | undefined;
|
|
6050
|
-
|
|
6051
6391
|
/**
|
|
6052
6392
|
* GraphView Molecule Component
|
|
6053
6393
|
*
|
|
@@ -6695,6 +7035,8 @@ interface TableViewColumn {
|
|
|
6695
7035
|
colorMap?: Readonly<Record<string, BadgeColor>>;
|
|
6696
7036
|
/** Display text per exact value (for `format: 'badge'`); unmapped values show as stored */
|
|
6697
7037
|
labels?: Readonly<Record<string, string>>;
|
|
7038
|
+
/** Lucide icon name per exact value (for `format: 'badge'`), shown inside the badge so status is never colour alone */
|
|
7039
|
+
iconMap?: Readonly<Record<string, string>>;
|
|
6698
7040
|
/** `h3`/`h4` marks the row's title column: on narrow tables it heads the stacked card, unlabelled */
|
|
6699
7041
|
variant?: 'h3' | 'h4';
|
|
6700
7042
|
/** Lucide icon name or component shown before the header label. */
|
|
@@ -9583,8 +9925,10 @@ interface AgentActivityRowProps {
|
|
|
9583
9925
|
onJump?: (target: AgentActivityJumpTarget) => void;
|
|
9584
9926
|
/** What the row knows from its list (`activityRowFacts`). */
|
|
9585
9927
|
facts: RowFacts;
|
|
9928
|
+
/** The declared label of the tool a tool step names, shown in place of its address. */
|
|
9929
|
+
toolLabel?: string;
|
|
9586
9930
|
}
|
|
9587
|
-
declare function AgentActivityRow({ activity, onJump, facts }: AgentActivityRowProps): React__default.ReactElement;
|
|
9931
|
+
declare function AgentActivityRow({ activity, onJump, facts, toolLabel }: AgentActivityRowProps): React__default.ReactElement;
|
|
9588
9932
|
declare namespace AgentActivityRow {
|
|
9589
9933
|
var displayName: string;
|
|
9590
9934
|
}
|
|
@@ -9635,9 +9979,16 @@ interface AgentChatFeedProps {
|
|
|
9635
9979
|
idPrefix: string;
|
|
9636
9980
|
/** The agent is running — the feed shows it is thinking. */
|
|
9637
9981
|
working?: boolean;
|
|
9982
|
+
/** Declared labels of the tools a step can name: a step of a listed tool shows its label, not its address. */
|
|
9983
|
+
toolLabels?: readonly AgentToolLabel[];
|
|
9638
9984
|
className?: string;
|
|
9639
9985
|
}
|
|
9640
|
-
|
|
9986
|
+
/** The label a tool's steps are shown under. */
|
|
9987
|
+
interface AgentToolLabel {
|
|
9988
|
+
tool: string;
|
|
9989
|
+
label: string;
|
|
9990
|
+
}
|
|
9991
|
+
declare function AgentChatFeed({ activities, emptyTitle, rawLlmPreferenceKey, idPrefix, working, toolLabels, className }: AgentChatFeedProps): React__default.ReactElement;
|
|
9641
9992
|
declare namespace AgentChatFeed {
|
|
9642
9993
|
var displayName: string;
|
|
9643
9994
|
}
|
|
@@ -10185,6 +10536,27 @@ interface FormProps extends Omit<React__default.FormHTMLAttributes<HTMLFormEleme
|
|
|
10185
10536
|
}
|
|
10186
10537
|
declare const Form: React__default.FC<FormProps>;
|
|
10187
10538
|
|
|
10539
|
+
/**
|
|
10540
|
+
* AvlOrbitalMachine — a whole mounted orbital on one canvas: every rendering
|
|
10541
|
+
* trait is a box nested inside its parent, boxes within `expandDepth` draw
|
|
10542
|
+
* their own machine, the rest are compact boxes that open in place, traits
|
|
10543
|
+
* that never paint sit in a background lane, and `Trait.EVENT` listens are
|
|
10544
|
+
* dashed wires between boxes, drawn only for the chosen trait and the last
|
|
10545
|
+
* dispatch's route. Choosing a box emits `selectEvent`; with `pickEvent` an
|
|
10546
|
+
* inspect toggle picks a trait from its output on the page, then opens and
|
|
10547
|
+
* scrolls to its box.
|
|
10548
|
+
*/
|
|
10549
|
+
|
|
10550
|
+
interface OrbitalFocusTarget {
|
|
10551
|
+
trait: string;
|
|
10552
|
+
/** The event of the transition to show; empty shows the trait's box. */
|
|
10553
|
+
event: string;
|
|
10554
|
+
from: string;
|
|
10555
|
+
to: string;
|
|
10556
|
+
/** Changes with each request, so asking for the same transition again scrolls again. */
|
|
10557
|
+
nonce: number;
|
|
10558
|
+
}
|
|
10559
|
+
|
|
10188
10560
|
/**
|
|
10189
10561
|
* StateMachineView — the AVL state machine with loading / error / empty states.
|
|
10190
10562
|
*/
|
|
@@ -10231,6 +10603,10 @@ interface StateMachineViewProps extends Omit<AvlStateMachineProps, 'trait'> {
|
|
|
10231
10603
|
pickEvent?: EventEmit<{
|
|
10232
10604
|
trait: string;
|
|
10233
10605
|
}>;
|
|
10606
|
+
/** Orbital mode: a transition to scroll to; its trait's box opens and the canvas scrolls to the transition. @default null
|
|
10607
|
+
* @example {"trait":"OrderPage","event":"EDIT","from":"browsing","to":"editing","nonce":1}
|
|
10608
|
+
*/
|
|
10609
|
+
focusTarget?: OrbitalFocusTarget | null;
|
|
10234
10610
|
/** Orbital mode: the canvas scrolls inside this height. @default "calc(100vh - 9rem)" */
|
|
10235
10611
|
maxHeight?: string;
|
|
10236
10612
|
/** Loading state indicator */
|
|
@@ -10949,6 +11325,8 @@ interface ChatFocusRequest {
|
|
|
10949
11325
|
id: string | number;
|
|
10950
11326
|
/** Shown in the input until the next message is sent. */
|
|
10951
11327
|
placeholder?: string;
|
|
11328
|
+
/** Put in the input, replacing what is there, for the user to edit and send. */
|
|
11329
|
+
text?: string;
|
|
10952
11330
|
}
|
|
10953
11331
|
interface ChatBarProps extends DisplayStateProps, Omit<React__default.AriaAttributes, keyof A11yProps>, A11yProps {
|
|
10954
11332
|
/** Pipeline status */
|
|
@@ -11295,5 +11673,5 @@ interface GenericAppTemplateProps extends TemplateProps, Omit<React__default.Ari
|
|
|
11295
11673
|
}
|
|
11296
11674
|
declare const GenericAppTemplate: React__default.FC<GenericAppTemplateProps>;
|
|
11297
11675
|
|
|
11298
|
-
export { ALL_PRESETS, Accordion, Card as ActionCard, ActionPalette, ActionTile, ActivationBlock, ActivityRail, AgentActivityFeed, AgentActivityRow, AgentChatFeed, AgentThinkingRow, Alert, AlgoGraphCanvas, AlgorithmCanvas, AnimatedCounter, AssetPicker, AuthLayout, BiologyCanvas, BranchingLogicBuilder, Breadcrumb, ButtonGroup, COMPACT_MEDIA_QUERY, CalendarGrid,
|
|
11299
|
-
export type { AccordionItem, AccordionProps, CardProps as ActionCardProps, ActionPaletteProps, ActionTileProps, ActivationBlockProps, ActivityRailItem, ActivityRailProps, AgentActivityFeedProps, AgentActivityJumpTarget, AgentActivityRowProps, AgentChatFeedProps, AgentConversation, AlertProps, AlertVariant, AlgoGraphCanvasProps, AlgoGraphEdge, AlgoGraphEdgeState, AlgoGraphLayout, AlgoGraphNode, AlgoGraphNodeBadge, AlgoGraphNodeState, AlgorithmBar, AlgorithmCanvasProps, AlgorithmCell, AlgorithmPointer, AnimatedCounterProps, AssetPickerProps, AuthLayoutProps, BiologyCanvasProps, BiologyEdge, BiologyNode, BranchingLogicBuilderProps, BranchingQuestion, BranchingRule, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, CalendarGridProps, CameraMode, Canvas2DProps, CanvasItemShape, CanvasItemStatus, CanvasMode, CanvasProps, CardAction, CarouselProps, ChangeListItem, ChangeListProps, ChangeType, ChartDataPoint, ChartLegendItem, ChartLegendProps, ChartProps, ChartSeries, ChartType, ChatBarProps, ChatBarStatus, ChatFocusRequest, ChemistryArrow, ChemistryAtom, ChemistryBond, ChemistryCanvasProps, ChoiceButtonProps, CoachmarkAnchor, CoachmarkPlacement, CoachmarkProps, CodeAssistProvider, CodeAssistRequest, CodeAssistResult, CodeBlockProps, CodeCompletion, CodeCompletionProvider, CodeCompletionResult, CodeDiagnostic, CodeLanguage, CodeLanguageLoader, CodeSuggestion, CodeViewerAction, CodeViewerFile, CodeViewerMode, CollapsibleSectionProps, CommandPaletteCommand, CommandPaletteProps, CommitKind, CommitRowProps, ConfirmDialogProps, ConfirmDialogVariant, ConnectionBlockProps, ContainerProps, ContentRendererProps, ControlButtonProps, ControlGridButton, ControlGridKind, ControlGridProps, CounterSize, CounterTemplateProps, CounterVariant, DPadDirection, DashboardGridCell, DashboardGridProps, DashboardLayoutProps, DataGridField, DataGridItemAction, DataGridProps, DataListField, DataListItemAction, DataListProps, DateRangePickerPreset, DateRangePickerProps, DateRangeSelectorOption, DateRangeSelectorProps, DescribeTrait, DetailField, DetailPanelProps, DetailSection, DialogueBubbleProps, DiffHunk, DiffLine$1 as DiffLine, DiffLineType, DiffRevision, DispatchCommandPaletteCommandDeps, DisplayStateProps, DocBreadcrumbItem, DocBreadcrumbProps, DocPaginationLink, DocPaginationProps, DocSearchProps, DocSearchResult, DocSidebarItem, DocSidebarProps, DocTOCItem, DocTOCProps, DockLayoutContextValue, DockLayoutProps, DocumentDetailsField, DocumentDetailsProps, DocumentPanelAction, DocumentPanelProps, DocumentType, DocumentViewerProps, DotSize, DotState, DrawerPosition, DrawerProps, DrawerSize, DrawerSlotProps, EdgeDecorationProps, EdgeSide, EdgeVariant, EditorCheckboxProps, EditorMode, EditorSelectProps, EditorSliderProps, EditorTextInputProps, EditorToolbarProps, EmojiPickerPosition, EmojiPickerProps, EmptyStateProps, ErrorBoundaryProps, ErrorStateProps, FeatureCardProps, FeatureGridProps, FilterDefinition, FilterGroupProps, FilterPayload, FlexProps, FlipCardProps, FloatingAction, FloatingActionButtonProps, FloatingToolbarItem, FloatingToolbarPosition, FloatingToolbarProps, FormActionsProps, FormFieldProps, FormLayoutProps, FormProps, FormSectionHeaderProps, FormSectionProps, FxOverlayProps, GameAudioCueProps, GameAudioToggleProps, GameHudElement, GameHudProps, GameHudStat, GameMenuProps, GameShellProps, GanttLink, GanttProps, GenericAppTemplateProps, GeometricPatternProps, GradientDividerProps, GraphCanvasProps, GraphEdge, GraphNode, GraphSimilarity, GraphViewEdge, GraphViewNode, GraphViewProps, GridPickerCellSize, GridPickerProps, GridProps, GuestViewProps, HeaderProps, HealthBarProps, IconButtonProps, IconPickerProps, ImportEntityDisplay, ImportPreviewTreeProps, ImportPreviewUnit, ImportProgressCounts, ImportProgressProps, ImportProgressStep, ImportSkippedElement, ImportSourceOption, ImportSourcePickerProps, InputGroupProps, JazariStateMachineProps, JsonTreeEditorProps,
|
|
11676
|
+
export { ALL_PRESETS, Accordion, Card as ActionCard, ActionPalette, ActionTile, ActivationBlock, ActivityRail, AgentActivityFeed, AgentActivityRow, AgentChatFeed, AgentThinkingRow, Alert, AlgoGraphCanvas, AlgorithmCanvas, AnimatedCounter, AssetPicker, AuthLayout, BiologyCanvas, BranchingLogicBuilder, Breadcrumb, ButtonGroup, COMPACT_MEDIA_QUERY, CalendarGrid, Canvas, Canvas2D, Carousel, ChangeList, Chart, ChartLegend, ChatBar, ChemistryCanvas, ChoiceButton, Coachmark, CodeBlock, CollapsibleSection, CommandPalette, CommitRow, ConfirmDialog, ConnectionBlock, Container, ContentRenderer, ControlButton, ControlGrid, CounterTemplate, DEFAULT_LIKERT_OPTION_KEYS, DEFAULT_MATRIX_COLUMN_KEYS, DIAMOND_TOP_Y, DashboardGrid, DashboardLayout, DataGrid, DataList, DateRangePicker, DateRangeSelector, DetailPanel, DialogueBubble, DocBreadcrumb, DocPagination, DocSearch, DocSidebar, DocTOC, DockLayout, DocumentDetails, DocumentPanel, DocumentViewer, StateMachineView as DomStateMachineVisualizer, Drawer, DrawerSlot, ELEMENT_SELECTED_EVENT, EdgeDecoration, EditorCheckbox, EditorSelect, EditorSlider, EditorTextInput, EditorToolbar, EmojiPicker, EmptyState, EntityDisplayEvents, ErrorBoundary, ErrorState, FEATURE_COLORS, FEATURE_TYPES, FLOOR_HEIGHT, FeatureCard, FeatureGrid, FilterGroup, Flex, FlipCard, FloatingActionButton, FloatingToolbar, Form, FormActions, FormField, FormLayout, FormSection$1 as FormSection, FormSectionHeader, FxOverlay, GameAudioCue, GameAudioToggle, GameHud, GameMenu, GameShell, Gantt, GenericAppTemplate, GeometricPattern, GradientDivider, GraphCanvas, GraphView, Grid, GridPicker, GuestView, Header, HealthBar, IconButton, IconPicker, ImportPreviewTree, ImportProgress, ImportSourcePicker, InputGroup, JazariStateMachine, JsonTreeEditor, LearningCanvas, LessonSegment, Lightbox, LikertScale, LineChart, LoadingState, MachinePanel, MapView, MarkdownContent, MasterDetailLayout, MathCanvas, MatrixQuestion, MediaGallery, Menu, Meter, Modal, ModalSlot, Navigation, NodeSlotEditor, NumberStepper, OnboardingSpotlight, OptionConstraintGroup, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, PageHeader, PageTransition, Pagination, PhysicsCanvas, Popover, PositionedCanvas, ProgressDots, PropertyInspector, PullToRefresh, QrScanner, QuizBlock, ReflectionBlock, RelationSelect, RepeatableFormSection, ReplyTree, RichTextEditor, RuntimeDebugger, SHEET_COLUMNS, SPRITE_SHEET_LAYOUT, ScaledDiagram, ScoreDisplay, SearchInput, Section, SequenceBar, SidePanel, Sidebar, SignaturePad, SimpleGrid, Skeleton, SkeletonTree, SlotContent, SlotContentRenderer, SocialProof, SortableList, Split, SplitPane, StarRating, StatBadge, StatCard, StatDisplay, StateGraph, StateJsonView, StateMachineView, StatusBar, SubagentTracePanel, SwipeableRow, TERRAIN_COLORS, TILE_HEIGHT, TILE_WIDTH, TabbedContainer, TableView, Tabs, TagInput, TerrainPalette, Timeline, TimerDisplay, Toast, ToastSlot, Tooltip, TopNavItem, TraitFrame, TraitSlot, TraitStateViewer, UISlotComponent, UISlotRenderer, UploadDropZone, VersionDiff, ViolationAlert, VoteStack, WizardContainer, WizardNavigation, WizardProgress, activityRowFacts, applyCompletion, applySuggestions, boardEntity, bool, calculateAttackTargets, calculateValidMoves, createInitialGameState, createUnitAnimationState, dispatchCommandPaletteCommand, getCurrentFrame, groupIntoConversations, inferDirection, isoToScreen, makeAsset, makeAssetMap, num, objAvailableActions, objAvailableEvents, objCurrentState, objIcon, objId, objMaxRules, objName, objRules, objStates, parseEditFocus, parseMarkdownWithCodeBlocks, pendulum, preloadCodeHighlighter, projectileMotion, registerCodeLanguageLoader, renderPatternValue, resolveFrame, resolveSheetDirection, rows, sanitizeRichHtml, screenToIso, springOscillator, str, tickAnimationState, toCodeLanguage, transitionAnimation, unitHealth, unitPosition, unitTeam, useAnchorRect, useCamera, useCompactLayout, useDockLayout, useImageCache, useUnitSpriteAtlas, vec2 };
|
|
11677
|
+
export type { AccordionItem, AccordionProps, CardProps as ActionCardProps, ActionPaletteProps, ActionTileProps, ActivationBlockProps, ActivityRailItem, ActivityRailProps, AgentActivityFeedProps, AgentActivityJumpTarget, AgentActivityRowProps, AgentChatFeedProps, AgentConversation, AlertProps, AlertVariant, AlgoGraphCanvasProps, AlgoGraphEdge, AlgoGraphEdgeState, AlgoGraphLayout, AlgoGraphNode, AlgoGraphNodeBadge, AlgoGraphNodeState, AlgorithmBar, AlgorithmCanvasProps, AlgorithmCell, AlgorithmPointer, AnimatedCounterProps, AssetPickerProps, AuthLayoutProps, BiologyCanvasProps, BiologyEdge, BiologyNode, BoardTile, BranchingLogicBuilderProps, BranchingQuestion, BranchingRule, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, CalendarGridProps, CameraMode, CameraState, Canvas2DProps, CanvasItemShape, CanvasItemStatus, CanvasMode, CanvasProps, CardAction, CarouselProps, ChangeListItem, ChangeListProps, ChangeType, ChartDataPoint, ChartLegendItem, ChartLegendProps, ChartProps, ChartSeries, ChartType, ChatBarProps, ChatBarStatus, ChatFocusRequest, ChemistryArrow, ChemistryAtom, ChemistryBond, ChemistryCanvasProps, ChoiceButtonProps, CoachmarkAnchor, CoachmarkPlacement, CoachmarkProps, CodeAssistProvider, CodeAssistRequest, CodeAssistResult, CodeBlockProps, CodeCompletion, CodeCompletionProvider, CodeCompletionResult, CodeDiagnostic, CodeLanguage, CodeLanguageLoader, CodeSuggestion, CodeViewerAction, CodeViewerFile, CodeViewerMode, CollapsibleSectionProps, CommandPaletteCommand, CommandPaletteProps, CommitKind, CommitRowProps, ConfirmDialogProps, ConfirmDialogVariant, ConnectionBlockProps, ContainerProps, ContentRendererProps, ControlButtonProps, ControlGridButton, ControlGridKind, ControlGridProps, CounterSize, CounterTemplateProps, CounterVariant, DPadDirection, DashboardGridCell, DashboardGridProps, DashboardLayoutProps, DataGridField, DataGridItemAction, DataGridProps, DataListField, DataListItemAction, DataListProps, DateRangePickerPreset, DateRangePickerProps, DateRangeSelectorOption, DateRangeSelectorProps, DescribeTrait, DetailField, DetailPanelProps, DetailSection, DialogueBubbleProps, DiffHunk, DiffLine$1 as DiffLine, DiffLineType, DiffRevision, DispatchCommandPaletteCommandDeps, DisplayStateProps, DocBreadcrumbItem, DocBreadcrumbProps, DocPaginationLink, DocPaginationProps, DocSearchProps, DocSearchResult, DocSidebarItem, DocSidebarProps, DocTOCItem, DocTOCProps, DockLayoutContextValue, DockLayoutProps, DocumentDetailsField, DocumentDetailsProps, DocumentPanelAction, DocumentPanelProps, DocumentType, DocumentViewerProps, DotSize, DotState, DrawerPosition, DrawerProps, DrawerSize, DrawerSlotProps, EdgeDecorationProps, EdgeSide, EdgeVariant, EditorCheckboxProps, EditorMode, EditorSelectProps, EditorSliderProps, EditorTextInputProps, EditorToolbarProps, EmojiPickerPosition, EmojiPickerProps, EmptyStateProps, ErrorBoundaryProps, ErrorStateProps, FacingDirection, FeatureCardProps, FeatureGridProps, FilterDefinition, FilterGroupProps, FilterPayload, FlexProps, FlipCardProps, FloatingAction, FloatingActionButtonProps, FloatingToolbarItem, FloatingToolbarPosition, FloatingToolbarProps, FormActionsProps, FormFieldProps, FormLayoutProps, FormProps, FormSectionHeaderProps, FormSectionProps, FxOverlayProps, GameAction, GameAudioCueProps, GameAudioToggleProps, GameHudElement, GameHudProps, GameHudStat, GameMenuProps, GamePhase, GameShellProps, GameState, GameUnit, GanttLink, GanttProps, GenericAppTemplateProps, GeometricPatternProps, GradientDividerProps, GraphCanvasProps, GraphEdge, GraphNode, GraphSimilarity, GraphViewEdge, GraphViewNode, GraphViewProps, GridPickerCellSize, GridPickerProps, GridProps, GuestViewProps, HeaderProps, HealthBarProps, IconButtonProps, IconPickerProps, ImportEntityDisplay, ImportPreviewTreeProps, ImportPreviewUnit, ImportProgressCounts, ImportProgressProps, ImportProgressStep, ImportSkippedElement, ImportSourceOption, ImportSourcePickerProps, InputGroupProps, IsometricFeature, IsometricTile, IsometricUnit, JazariStateMachineProps, JsonTreeEditorProps, LearningCanvasProps, LearningPhysicsBody, LearningPhysicsConstraint, LearningPoint, LearningShape, LearningShapeType, LightboxImage, LightboxProps, LikertOption, LikertScaleProps, LineChartProps, LoadingStateProps, MachinePanelProps, MapMarkerData, MapRouteData, MapRouteWaypoint, MapViewProps, MarkdownContentProps, MasterDetailLayoutProps, MathCanvasProps, MathCurve, MathPoint, MathVector, MatrixColumn, MatrixQuestionProps, MatrixRow, MediaGalleryProps, MediaItem, MenuItem, MenuOption, MenuProps, MeterAction, MeterProps, MeterThreshold, MeterVariant, MixedSegment, ModalProps, ModalSize, ModalSlotProps, NavItem, NavigationItem, NavigationProps, NodeSlotEditorProps, NumberStepperProps, NumberStepperSize, OnboardingSpotlightProps, OptionConstraint, OptionConstraintGroupProps, OptionConstraintOption, OrbitalVisualizationProps, PageBreadcrumb, PageHeaderProps, PageTransitionProps, PaginatePayload, PaginationProps, PhysicsCanvasProps, PickerItem, Platform, PopoverProps, Position, PositionedCanvasProps, PrismLanguageGrammar, ProgressDotsProps, Projection, PropertyInspectorProps, PullToRefreshProps, QrScanResult, QrScannerProps, QuizBlockProps, ReflectionBlockProps, RelationOption, RelationSelectProps, RepeatableFormSectionProps, RepeatableItem, ReplyTreeProps, ResolvedFrame, RichTextEditorProps, RowFacts, RuleDefinition, RuleOption, RuntimeDebuggerProps, ScaledDiagramProps, ScoreDisplayProps, SearchInputProps, SearchPayload, SectionProps, SelectPayload, SequenceBarProps, SidePanelProps, SidePlayer, SidebarItem, SidebarProps, SignaturePadProps, SimpleGridProps, SkeletonProps, SlotItemData, SocialProofItem, SocialProofProps, SortPayload, SortableListProps, SplitPaneProps, SplitProps, SpotlightStep, SpriteFrameDims, SpriteSheetUrls, StarRatingPrecision, StarRatingProps, StarRatingSize, StatBadgeProps, StatCardProps, StatDisplayProps, StateGraphProps, StateGraphTransition, StateJsonViewProps, StateMachineViewProps, StatusBarProps, SubagentTracePanelProps, SwipeAction, SwipeableRowProps, TabDefinition, TabItem, TabbedContainerProps, TableViewColumn, TableViewProps, TabsProps, TagInputProps, TeamUnitTraits, TemplateProps, TerrainPaletteProps, TileCoord, TileLayout, TimelineItem, TimelineItemStatus, TimelineProps, TimerDisplayProps, ToastProps, ToastSlotProps, ToastVariant, TooltipProps, TopNavItemData, TopNavItemProps, TraceDisclosureLevel, TraitFrameProps, TraitSlotProps, TraitStateMachineDefinition, TraitStateViewerProps, TraitTransition, UISlotComponentProps, UISlotRendererProps, UnitAnimationState, UnitTrait, UploadDropZoneProps, Vec2, DiffLine as VersionDiffLine, VersionDiffProps, ViolationAlertProps, ViolationRecord, VoteStackProps, WizardContainerProps, WizardNavigationProps, WizardProgressProps, WizardProgressStep, WizardStep };
|