@almadar/ui 5.105.0 → 5.107.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/avl/index.cjs +1903 -4193
- package/dist/avl/index.js +998 -3288
- package/dist/components/core/atoms/index.d.ts +1 -1
- package/dist/components/core/molecules/index.d.ts +1 -1
- package/dist/components/core/organisms/index.d.ts +1 -1
- package/dist/components/core/templates/index.d.ts +2 -2
- package/dist/components/game/{2d/atoms → atoms}/ActionButton.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/ChoiceButton.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/ControlButton.d.ts +1 -1
- package/dist/components/game/atoms/DrawShape.d.ts +50 -0
- package/dist/components/game/atoms/DrawSprite.d.ts +47 -0
- package/dist/components/game/atoms/DrawText.d.ts +31 -0
- package/dist/components/game/{2d/atoms → atoms}/GameAudioToggle.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/GameIcon.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/ItemSlot.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/MiniMap.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/ResourceCounter.d.ts +2 -2
- package/dist/components/game/{2d/atoms → atoms}/ScoreDisplay.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/Sprite.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/StateIndicator.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/StatusEffect.d.ts +1 -1
- package/dist/components/game/{2d/atoms → atoms}/WaypointMarker.d.ts +1 -1
- package/dist/components/game/{shared/hooks → hooks}/useCamera.d.ts +1 -1
- package/dist/components/game/{shared/hooks → hooks}/useUnitSpriteAtlas.d.ts +2 -2
- package/dist/components/game/{shared → lib}/index.d.ts +1 -2
- package/dist/components/game/{shared/lib → lib}/puzzleObject.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/ActionTile.d.ts +1 -1
- package/dist/components/game/molecules/Canvas.d.ts +96 -0
- package/dist/components/game/molecules/Canvas2D.d.ts +120 -0
- package/dist/components/game/{2d/molecules → molecules}/ControlGrid.d.ts +1 -1
- package/dist/components/game/molecules/DrawShapeLayer.d.ts +19 -0
- package/dist/components/game/molecules/DrawSpriteLayer.d.ts +21 -0
- package/dist/components/game/molecules/DrawTextLayer.d.ts +22 -0
- package/dist/components/game/{2d/molecules → molecules}/GameHud.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/InventoryGrid.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/ResourceBar.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/StatBadge.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/StateNode.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/TraitSlot.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/TraitStateViewer.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/TransitionArrow.d.ts +1 -1
- package/dist/components/game/{2d/molecules → molecules}/index.d.ts +9 -16
- package/dist/components/game/patterns.d.ts +20 -0
- package/dist/components/game/{shared/providers → providers}/GameAudioProvider.d.ts +1 -1
- package/dist/components/game/{2d/templates → templates}/GameTemplate.d.ts +1 -1
- package/dist/components/game/{3d → three}/atoms/SpriteBillboard3D.d.ts +1 -1
- package/dist/components/game/{shared → three}/hooks/useGameCanvas3DEvents.d.ts +4 -3
- package/dist/components/game/{3d → three}/index.cjs +766 -3008
- package/dist/components/game/{3d → three}/index.css +3 -3
- package/dist/components/game/{3d → three}/index.d.ts +0 -1
- package/dist/components/game/{3d → three}/index.js +622 -2863
- package/dist/components/game/{shared → three}/lib/game3dAssetManifest.d.ts +1 -1
- package/dist/components/game/three/molecules/GameCanvas3D.d.ts +175 -0
- package/dist/components/game/{3d → three}/molecules/index.d.ts +9 -12
- package/dist/components/game/{3d → three}/patterns.d.ts +0 -4
- package/dist/components/index.cjs +2315 -4418
- package/dist/components/index.js +1412 -3508
- package/dist/lib/drawable/Drawable3D.d.ts +20 -0
- package/dist/lib/drawable/contract.d.ts +68 -0
- package/dist/lib/drawable/hitTest.d.ts +23 -0
- package/dist/lib/drawable/mesh3d.d.ts +28 -0
- package/dist/lib/drawable/paintDispatch.d.ts +22 -0
- package/dist/lib/drawable/projector.d.ts +14 -0
- package/dist/lib/drawable/projector3d.d.ts +20 -0
- package/dist/lib/imageCache.d.ts +9 -0
- package/dist/lib/painter2d.d.ts +81 -0
- package/dist/lib/webPainter2d.d.ts +7 -0
- package/dist/marketing/index.cjs +10 -0
- package/dist/marketing/index.js +10 -0
- package/dist/providers/index.cjs +1748 -4042
- package/dist/providers/index.js +956 -3250
- package/dist/runtime/index.cjs +1758 -4048
- package/dist/runtime/index.js +972 -3262
- package/package.json +13 -13
- package/dist/components/game/2d/molecules/Canvas2D.d.ts +0 -175
- package/dist/components/game/2d/molecules/SideCanvas2D.d.ts +0 -36
- package/dist/components/game/2d/organisms/BuilderBoard.d.ts +0 -60
- package/dist/components/game/2d/organisms/ClassifierBoard.d.ts +0 -66
- package/dist/components/game/2d/organisms/DebuggerBoard.d.ts +0 -61
- package/dist/components/game/2d/organisms/EventHandlerBoard.d.ts +0 -42
- package/dist/components/game/2d/organisms/NegotiatorBoard.d.ts +0 -56
- package/dist/components/game/2d/organisms/SequencerBoard.d.ts +0 -69
- package/dist/components/game/2d/organisms/SimulatorBoard.d.ts +0 -58
- package/dist/components/game/2d/organisms/StateArchitectBoard.d.ts +0 -61
- package/dist/components/game/3d/atoms/EventMarker3D.d.ts +0 -17
- package/dist/components/game/3d/molecules/FeatureMesh3D.d.ts +0 -21
- package/dist/components/game/3d/molecules/GameCanvas3D.d.ts +0 -259
- package/dist/components/game/3d/molecules/SideScene3D.d.ts +0 -31
- package/dist/components/game/3d/molecules/TileMesh3D.d.ts +0 -28
- package/dist/components/game/3d/molecules/UnitMesh3D.d.ts +0 -29
- package/dist/components/game/3d/organisms/GameBoard3D.d.ts +0 -66
- package/dist/components/game/3d/templates/GameCanvas3DBattleTemplate.d.ts +0 -82
- package/dist/components/game/3d/templates/GameCanvas3DCastleTemplate.d.ts +0 -87
- package/dist/components/game/3d/templates/GameCanvas3DWorldMapTemplate.d.ts +0 -95
- package/dist/components/game/shared/effects.d.ts +0 -253
- /package/dist/components/game/{2d/atoms → atoms}/ComboCounter.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/DamageNumber.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/DialogueBubble.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/GameCard.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/HealthBar.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/TimerDisplay.d.ts +0 -0
- /package/dist/components/game/{2d/atoms → atoms}/TurnIndicator.d.ts +0 -0
- /package/dist/components/game/{shared/hooks → hooks}/useGameAudio.d.ts +0 -0
- /package/dist/components/game/{shared → hooks}/useImageCache.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/boardEntity.d.ts +0 -0
- /package/dist/components/game/{shared/lib → lib}/editorUtils.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/game.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/isometric.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/isometricTypes.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/makeAsset.d.ts +0 -0
- /package/dist/components/game/{shared/lib → lib}/mechanics.d.ts +0 -0
- /package/dist/components/game/{shared/lib → lib}/physicsPresets.d.ts +0 -0
- /package/dist/components/game/{shared/lib → lib}/physicsTypes.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/spriteAnimation.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/spriteAnimationTypes.d.ts +0 -0
- /package/dist/components/game/{shared → lib}/spriteSheetConstants.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/ActionPalette.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/EventLog.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/GameMenu.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/ObjectRulePanel.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/RuleEditor.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/SequenceBar.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/StateGraph.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/StateJsonView.d.ts +0 -0
- /package/dist/components/game/{2d/molecules → molecules}/VariablePanel.d.ts +0 -0
- /package/dist/components/game/{2d/templates → templates}/GameShell.d.ts +0 -0
- /package/dist/components/game/{shared → three}/game3dTheme.d.ts +0 -0
- /package/dist/components/game/{shared → three}/hooks/useAssetLoader.d.ts +0 -0
- /package/dist/components/game/{shared → three}/hooks/useRaycaster.d.ts +0 -0
- /package/dist/components/game/{shared → three}/hooks/useSceneGraph.d.ts +0 -0
- /package/dist/components/game/{shared → three}/hooks/useThree.d.ts +0 -0
- /package/dist/components/game/{shared → three}/lib/AssetLoader.d.ts +0 -0
- /package/dist/components/game/{shared → three}/lib/culling.d.ts +0 -0
- /package/dist/components/game/{shared → three}/lib/grid3D.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Camera3D.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Canvas3DErrorBoundary.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Canvas3DLoadingState.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/GameCamera3D.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Lighting3D.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/ModelLoader.d.ts +0 -0
- /package/dist/components/game/{3d → three}/molecules/Scene3D.d.ts +0 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset, EntityRow } from '@almadar/core';
|
|
13
|
-
import type { IsometricTile, IsometricFeature } from '
|
|
13
|
+
import type { IsometricTile, IsometricFeature } from '../../lib/isometricTypes';
|
|
14
14
|
/** GLB model assets for a 3D board, keyed by terrain "kind" and (optionally) feature type. */
|
|
15
15
|
export interface Game3DAssetManifest {
|
|
16
16
|
/** Floor model assets by terrain kind ('wall' | 'dirt' | 'open'). */
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GameCanvas3D — the thin 3D draw-host (Drawable Canvas, P6 closing).
|
|
3
|
+
*
|
|
4
|
+
* The 3D twin of Canvas2D: the board authors a `drawables` list (the neutral
|
|
5
|
+
* `draw-*` children) and this host maps each descriptor through `Drawable3D` to a
|
|
6
|
+
* three.js mesh (a raw descriptor NEVER reaches `<group>{children}` — R3F throws).
|
|
7
|
+
* It owns NO game data — tiles, units, features, selection, health bars and labels
|
|
8
|
+
* are all `draw-*` children composed in `.lolo`, not props here. Only view state
|
|
9
|
+
* (camera, error boundary) is local.
|
|
10
|
+
*
|
|
11
|
+
* Camera: `isometric`/`perspective`/`top-down` frame the scene bounds (derived from
|
|
12
|
+
* the drawn descriptors); `follow`/`chase` track the neutral core `Camera.target`
|
|
13
|
+
* (forwarded as `followTarget`), falling back to the scene centre.
|
|
14
|
+
*
|
|
15
|
+
* Interaction: keyboard maps to semantic events (device-agnostic input). Pointer
|
|
16
|
+
* click/hover on neutral drawables needs a per-entity id + a scene-space raycast
|
|
17
|
+
* the descriptors don't yet carry — that hit-test is a tracked fork
|
|
18
|
+
* (docs/Almadar_Std_Game_V2_PLAN.md); the click/hover event props are accepted but
|
|
19
|
+
* not yet emitted from a raycast.
|
|
20
|
+
*
|
|
21
|
+
* @packageDocumentation
|
|
22
|
+
*/
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import type { EventEmit, Asset, ScenePos } from '@almadar/core';
|
|
25
|
+
import * as THREE from 'three';
|
|
26
|
+
import type { DrawableNode } from '../../../../lib/drawable/paintDispatch';
|
|
27
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../lib/isometricTypes';
|
|
28
|
+
import './GameCanvas3D.css';
|
|
29
|
+
export type { IsometricTile, IsometricUnit, IsometricFeature };
|
|
30
|
+
/** Camera mode for 3D view.
|
|
31
|
+
* - `follow` tracks `followTarget` (the neutral `Camera.target`) from a fixed offset.
|
|
32
|
+
* - `chase` sits behind + above the target. */
|
|
33
|
+
export type CameraMode = 'isometric' | 'perspective' | 'top-down' | 'follow' | 'chase';
|
|
34
|
+
/** Per-role model manifest (retained type export; the thin host no longer resolves
|
|
35
|
+
* models from a manifest — a `draw-sprite` carries its own `Asset`). */
|
|
36
|
+
export interface GameCanvas3DAssetManifest {
|
|
37
|
+
terrains?: Record<string, Asset>;
|
|
38
|
+
units?: Record<string, Asset>;
|
|
39
|
+
features?: Record<string, Asset>;
|
|
40
|
+
effects?: Record<string, Asset>;
|
|
41
|
+
}
|
|
42
|
+
/** Map orientation */
|
|
43
|
+
export type MapOrientation = 'standard' | 'rotated';
|
|
44
|
+
/** Overlay control */
|
|
45
|
+
export type OverlayControl = 'default' | 'hidden' | 'minimap';
|
|
46
|
+
/** Props for GameCanvas3D component */
|
|
47
|
+
export interface GameCanvas3DProps {
|
|
48
|
+
/** Additional CSS classes */
|
|
49
|
+
className?: string;
|
|
50
|
+
/** Children to render inside the 3D canvas (e.g., physics objects, custom meshes) */
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
/** Neutral drawable descriptors — the same `children` vocabulary as Canvas2D. The
|
|
53
|
+
* host maps each through `Drawable3D` to a mesh. */
|
|
54
|
+
drawables?: DrawableNode[];
|
|
55
|
+
/** Loading state indicator */
|
|
56
|
+
isLoading?: boolean;
|
|
57
|
+
/** Error state */
|
|
58
|
+
error?: string | null;
|
|
59
|
+
/** Fog of war data (accepted for API parity; presentation-only). */
|
|
60
|
+
fogOfWar?: boolean[][];
|
|
61
|
+
/** Map orientation (data attribute). */
|
|
62
|
+
orientation?: MapOrientation;
|
|
63
|
+
/** Camera mode */
|
|
64
|
+
cameraMode?: CameraMode;
|
|
65
|
+
/** Follow-camera target in scene space (the neutral core `Camera.target`). */
|
|
66
|
+
followTarget?: ScenePos;
|
|
67
|
+
/** Show grid */
|
|
68
|
+
showGrid?: boolean;
|
|
69
|
+
/** Show coordinates overlay (accepted for API parity). */
|
|
70
|
+
showCoordinates?: boolean;
|
|
71
|
+
/** Show tile information (accepted for API parity). */
|
|
72
|
+
showTileInfo?: boolean;
|
|
73
|
+
/** Overlay control mode (data attribute). */
|
|
74
|
+
overlay?: OverlayControl;
|
|
75
|
+
/** Enable shadows */
|
|
76
|
+
shadows?: boolean;
|
|
77
|
+
/** Background color */
|
|
78
|
+
backgroundColor?: string;
|
|
79
|
+
/** Declarative event: tile click. Emitted from a ground-plane raycast → scene cell
|
|
80
|
+
* `{ x, z }` (the FSM validates the cell). `tileId` is optional — the neutral host
|
|
81
|
+
* has no per-tile id, and the board FSMs key off the coordinate. */
|
|
82
|
+
tileClickEvent?: EventEmit<{
|
|
83
|
+
x: number;
|
|
84
|
+
z: number;
|
|
85
|
+
tileId?: string;
|
|
86
|
+
type?: string;
|
|
87
|
+
terrain?: string;
|
|
88
|
+
elevation?: number;
|
|
89
|
+
}>;
|
|
90
|
+
/** Declarative event: unit click. Emitted `{ unitId, x, z }` when the raycast lands on a
|
|
91
|
+
* cell whose descriptor carries an `id` (a tagged unit sprite). */
|
|
92
|
+
unitClickEvent?: EventEmit<{
|
|
93
|
+
unitId: string;
|
|
94
|
+
x: number;
|
|
95
|
+
z: number;
|
|
96
|
+
unitType?: string;
|
|
97
|
+
name?: string;
|
|
98
|
+
team?: string;
|
|
99
|
+
faction?: string;
|
|
100
|
+
health?: number;
|
|
101
|
+
maxHealth?: number;
|
|
102
|
+
}>;
|
|
103
|
+
/** Declarative event: feature click. Accepted; not yet emitted (see `tileClickEvent`). */
|
|
104
|
+
featureClickEvent?: EventEmit<{
|
|
105
|
+
featureId: string;
|
|
106
|
+
x: number;
|
|
107
|
+
z: number;
|
|
108
|
+
type?: string;
|
|
109
|
+
elevation?: number;
|
|
110
|
+
}>;
|
|
111
|
+
/** Declarative event: canvas (background) click. */
|
|
112
|
+
canvasClickEvent?: EventEmit<{
|
|
113
|
+
clientX: number;
|
|
114
|
+
clientY: number;
|
|
115
|
+
button: number;
|
|
116
|
+
}>;
|
|
117
|
+
/** Declarative event: tile hover. Accepted; not yet emitted (see `tileClickEvent`). */
|
|
118
|
+
tileHoverEvent?: EventEmit<{
|
|
119
|
+
tileId: string;
|
|
120
|
+
x: number;
|
|
121
|
+
z: number;
|
|
122
|
+
type?: string;
|
|
123
|
+
}>;
|
|
124
|
+
/** Declarative event: tile leave. */
|
|
125
|
+
tileLeaveEvent?: EventEmit<Record<string, never>>;
|
|
126
|
+
/** Declarative event: unit animation. */
|
|
127
|
+
unitAnimationEvent?: EventEmit<{
|
|
128
|
+
unitId: string;
|
|
129
|
+
state: string;
|
|
130
|
+
timestamp: number;
|
|
131
|
+
}>;
|
|
132
|
+
/** Declarative event: camera change. */
|
|
133
|
+
cameraChangeEvent?: EventEmit<{
|
|
134
|
+
position: {
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
z: number;
|
|
138
|
+
};
|
|
139
|
+
timestamp: number;
|
|
140
|
+
}>;
|
|
141
|
+
/** Loading message */
|
|
142
|
+
loadingMessage?: string;
|
|
143
|
+
/** Unit draw-size multiplier (accepted for API parity; sizing is drawable-authored). */
|
|
144
|
+
unitScale?: number;
|
|
145
|
+
/** Board zoom (accepted for API parity; 3D zoom is camera-driven, not group-scaled). */
|
|
146
|
+
scale?: number;
|
|
147
|
+
/** Maps a keydown `e.code` → the board's SEMANTIC event (device-agnostic input). */
|
|
148
|
+
keyMap?: Record<string, string>;
|
|
149
|
+
/** Maps a keyup `e.code` → the board's SEMANTIC event. */
|
|
150
|
+
keyUpMap?: Record<string, string>;
|
|
151
|
+
/** Side-view world size in pixels (accepted for API parity). */
|
|
152
|
+
worldWidth?: number;
|
|
153
|
+
/** Side-view world size in pixels (accepted for API parity). */
|
|
154
|
+
worldHeight?: number;
|
|
155
|
+
/** Pixel→world-unit divisor for side view (accepted for API parity). */
|
|
156
|
+
pixelsPerUnit?: number;
|
|
157
|
+
}
|
|
158
|
+
/** Imperative handle for GameCanvas3D */
|
|
159
|
+
export interface GameCanvas3DHandle {
|
|
160
|
+
/** Get current camera position */
|
|
161
|
+
getCameraPosition: () => THREE.Vector3 | null;
|
|
162
|
+
/** Set camera position */
|
|
163
|
+
setCameraPosition: (x: number, y: number, z: number) => void;
|
|
164
|
+
/** Look at a specific point */
|
|
165
|
+
lookAt: (x: number, y: number, z: number) => void;
|
|
166
|
+
/** Reset camera to default position */
|
|
167
|
+
resetCamera: () => void;
|
|
168
|
+
/** Take a screenshot */
|
|
169
|
+
screenshot: () => string | null;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* GameCanvas3D — thin 3D draw-host. Walks `drawables` through `Drawable3D`.
|
|
173
|
+
*/
|
|
174
|
+
export declare const GameCanvas3D: React.ForwardRefExoticComponent<GameCanvas3DProps & React.RefAttributes<GameCanvas3DHandle>>;
|
|
175
|
+
export default GameCanvas3D;
|
|
@@ -12,18 +12,15 @@ export { Lighting3D, type Lighting3DProps } from './Lighting3D';
|
|
|
12
12
|
export { Canvas3DLoadingState, type Canvas3DLoadingStateProps, } from './Canvas3DLoadingState';
|
|
13
13
|
export { Canvas3DErrorBoundary, type Canvas3DErrorBoundaryProps, type Canvas3DErrorBoundaryState, } from './Canvas3DErrorBoundary';
|
|
14
14
|
export { ModelLoader, type ModelLoaderProps, } from './ModelLoader';
|
|
15
|
-
export { useThree, type UseThreeOptions, type UseThreeReturn, } from '
|
|
16
|
-
export { useAssetLoader, type UseAssetLoaderOptions, type UseAssetLoaderReturn, type AssetLoadingState, } from '
|
|
17
|
-
export { useSceneGraph, type UseSceneGraphReturn, type SceneGraphNode, type NodeType, } from '
|
|
18
|
-
export { useRaycaster, type UseRaycasterOptions, type UseRaycasterReturn, type RaycastHit, type GridHit, } from '
|
|
19
|
-
export { useGameCanvas3DEvents, type UseGameCanvas3DEventsOptions, type UseGameCanvas3DEventsReturn, type GameCanvas3DEventConfig, } from '
|
|
20
|
-
export { AssetLoader, assetLoader, type LoadedModel, } from '
|
|
21
|
-
export type { UnitAnimationState } from '../../
|
|
15
|
+
export { useThree, type UseThreeOptions, type UseThreeReturn, } from '../hooks/useThree';
|
|
16
|
+
export { useAssetLoader, type UseAssetLoaderOptions, type UseAssetLoaderReturn, type AssetLoadingState, } from '../hooks/useAssetLoader';
|
|
17
|
+
export { useSceneGraph, type UseSceneGraphReturn, type SceneGraphNode, type NodeType, } from '../hooks/useSceneGraph';
|
|
18
|
+
export { useRaycaster, type UseRaycasterOptions, type UseRaycasterReturn, type RaycastHit, type GridHit, } from '../hooks/useRaycaster';
|
|
19
|
+
export { useGameCanvas3DEvents, type UseGameCanvas3DEventsOptions, type UseGameCanvas3DEventsReturn, type GameCanvas3DEventConfig, } from '../hooks/useGameCanvas3DEvents';
|
|
20
|
+
export { AssetLoader, assetLoader, type LoadedModel, } from '../lib/AssetLoader';
|
|
21
|
+
export type { UnitAnimationState } from '../../lib/spriteAnimationTypes';
|
|
22
22
|
export { GameCanvas3D, type GameCanvas3DProps } from './GameCanvas3D';
|
|
23
|
-
export {
|
|
24
|
-
export { GameCanvas3DCastleTemplate, type GameCanvas3DCastleTemplateProps } from '../templates/GameCanvas3DCastleTemplate';
|
|
25
|
-
export { GameCanvas3DWorldMapTemplate, type GameCanvas3DWorldMapTemplateProps } from '../templates/GameCanvas3DWorldMapTemplate';
|
|
26
|
-
export { gridToWorld, worldToGrid, raycastToPlane, raycastToObjects, gridDistance, gridManhattanDistance, getNeighbors, isInBounds, getCellsInRadius, createGridHighlight, normalizeMouseCoordinates, type Grid3DConfig, type GridCoordinate, } from '../../shared/lib/grid3D';
|
|
23
|
+
export { gridToWorld, worldToGrid, raycastToPlane, raycastToObjects, gridDistance, gridManhattanDistance, getNeighbors, isInBounds, getCellsInRadius, createGridHighlight, normalizeMouseCoordinates, type Grid3DConfig, type GridCoordinate, } from '../lib/grid3D';
|
|
27
24
|
export { Avl3DViewer, type Avl3DViewerProps } from '../../../avl/organisms/Avl3DViewer';
|
|
28
25
|
export { Avl3DApplicationScene, type Avl3DApplicationSceneProps } from '../../../avl/organisms/Avl3DApplicationScene';
|
|
29
26
|
export { Avl3DOrbitalScene, type Avl3DOrbitalSceneProps } from '../../../avl/organisms/Avl3DOrbitalScene';
|
|
@@ -32,4 +29,4 @@ export { Avl3DTransitionScene, type Avl3DTransitionSceneProps } from '../../../a
|
|
|
32
29
|
export { Avl3DEffects, type Avl3DEffectsProps } from '../../../avl/organisms/Avl3DEffects';
|
|
33
30
|
export { Avl3DContext, useAvl3DConfig, type Avl3DModelOverrides, type Avl3DConfig } from '../../../avl/providers/avl-3d-context';
|
|
34
31
|
export { AVL_3D_COLORS, CAMERA_POSITIONS, goldenSpiralPositions, fibonacciSpherePositions, orbitRingPositions, arcCurve3D, selfLoopCurve3D, treeLayout3D, type Position3D, } from '../../../avl/lib/avl-3d-layout';
|
|
35
|
-
export { isInFrustum, filterByFrustum, getVisibleIndices, calculateLODLevel, updateInstanceLOD, cullInstancedMesh, SpatialHashGrid, type CullingOptions, type LODLevel, type LODConfig, } from '
|
|
32
|
+
export { isInFrustum, filterByFrustum, getVisibleIndices, calculateLODLevel, updateInstanceLOD, cullInstancedMesh, SpatialHashGrid, type CullingOptions, type LODLevel, type LODConfig, } from '../lib/culling';
|
|
@@ -14,7 +14,3 @@
|
|
|
14
14
|
* @packageDocumentation
|
|
15
15
|
*/
|
|
16
16
|
export { GameCanvas3D } from './molecules/GameCanvas3D';
|
|
17
|
-
export { GameBoard3D } from './organisms/GameBoard3D';
|
|
18
|
-
export { GameCanvas3DBattleTemplate } from './templates/GameCanvas3DBattleTemplate';
|
|
19
|
-
export { GameCanvas3DCastleTemplate } from './templates/GameCanvas3DCastleTemplate';
|
|
20
|
-
export { GameCanvas3DWorldMapTemplate } from './templates/GameCanvas3DWorldMapTemplate';
|