@almadar/ui 5.107.0 → 5.109.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 +1427 -2828
- package/dist/avl/index.js +525 -1926
- package/dist/components/core/atoms/Box.d.ts +2 -0
- package/dist/components/{game → core}/atoms/GameIcon.d.ts +1 -1
- package/dist/components/core/atoms/index.d.ts +1 -0
- package/dist/components/core/templates/index.d.ts +0 -1
- package/dist/components/game/molecules/index.d.ts +8 -28
- package/dist/components/index.cjs +223 -1691
- package/dist/components/index.js +213 -1671
- package/dist/lib/drawable/projector.d.ts +1 -1
- package/dist/{components/game/three/molecules/GameCanvas3D.d.ts → lib/drawable/three/Canvas3DHost.d.ts} +12 -9
- package/dist/lib/drawable/{Drawable3D.d.ts → three/Drawable3D.d.ts} +2 -2
- package/dist/lib/drawable/three/GameCamera3D.d.ts +16 -0
- package/dist/lib/drawable/three/game3dTheme.d.ts +14 -0
- package/dist/{components/game → lib/drawable}/three/hooks/useGameCanvas3DEvents.d.ts +1 -1
- package/dist/{components/game → lib/drawable}/three/index.cjs +2019 -2020
- package/dist/{components/game → lib/drawable}/three/index.css +3 -3
- package/dist/lib/drawable/three/index.d.ts +39 -0
- package/dist/{components/game → lib/drawable}/three/index.js +1932 -1934
- package/dist/lib/drawable/{mesh3d.d.ts → three/mesh3d.d.ts} +4 -4
- package/dist/{components/game/lib → lib}/puzzleObject.d.ts +11 -2
- package/dist/marketing/index.d.cts +2 -0
- package/dist/{components/game/providers → providers}/GameAudioProvider.d.ts +1 -1
- package/dist/providers/index.cjs +1619 -2690
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +827 -1902
- package/dist/runtime/index.cjs +1288 -2689
- package/dist/runtime/index.js +505 -1906
- package/package.json +7 -7
- package/dist/components/game/atoms/ActionButton.d.ts +0 -31
- package/dist/components/game/atoms/ComboCounter.d.ts +0 -20
- package/dist/components/game/atoms/DamageNumber.d.ts +0 -18
- package/dist/components/game/atoms/GameCard.d.ts +0 -34
- package/dist/components/game/atoms/ItemSlot.d.ts +0 -31
- package/dist/components/game/atoms/ResourceCounter.d.ts +0 -26
- package/dist/components/game/atoms/Sprite.d.ts +0 -52
- package/dist/components/game/atoms/StatusEffect.d.ts +0 -25
- package/dist/components/game/atoms/TurnIndicator.d.ts +0 -22
- package/dist/components/game/atoms/WaypointMarker.d.ts +0 -23
- package/dist/components/game/molecules/EventLog.d.ts +0 -31
- package/dist/components/game/molecules/InventoryGrid.d.ts +0 -35
- package/dist/components/game/molecules/ObjectRulePanel.d.ts +0 -32
- package/dist/components/game/molecules/ResourceBar.d.ts +0 -26
- package/dist/components/game/molecules/RuleEditor.d.ts +0 -39
- package/dist/components/game/molecules/VariablePanel.d.ts +0 -28
- package/dist/components/game/templates/GameTemplate.d.ts +0 -35
- package/dist/components/game/three/atoms/SpriteBillboard3D.d.ts +0 -18
- package/dist/components/game/three/game3dTheme.d.ts +0 -55
- package/dist/components/game/three/index.d.ts +0 -12
- package/dist/components/game/three/lib/game3dAssetManifest.d.ts +0 -48
- package/dist/components/game/three/molecules/GameCamera3D.d.ts +0 -35
- package/dist/components/game/three/molecules/index.d.ts +0 -32
- package/dist/components/game/three/patterns.d.ts +0 -16
- /package/dist/{components/game/hooks → hooks}/useCamera.d.ts +0 -0
- /package/dist/{components/game/hooks → hooks}/useGameAudio.d.ts +0 -0
- /package/dist/{components/game/hooks → hooks}/useImageCache.d.ts +0 -0
- /package/dist/{components/game/hooks → hooks}/useUnitSpriteAtlas.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/boardEntity.d.ts +0 -0
- /package/dist/{components/game/three/molecules → lib/drawable/three}/Camera3D.d.ts +0 -0
- /package/dist/{components/game/three/molecules → lib/drawable/three}/Canvas3DErrorBoundary.d.ts +0 -0
- /package/dist/{components/game/three/molecules → lib/drawable/three}/Canvas3DLoadingState.d.ts +0 -0
- /package/dist/{components/game/three/molecules → lib/drawable/three}/Lighting3D.d.ts +0 -0
- /package/dist/{components/game/three/molecules → lib/drawable/three}/ModelLoader.d.ts +0 -0
- /package/dist/{components/game/three/molecules → lib/drawable/three}/Scene3D.d.ts +0 -0
- /package/dist/{components/game → lib/drawable}/three/hooks/useAssetLoader.d.ts +0 -0
- /package/dist/{components/game → lib/drawable}/three/hooks/useRaycaster.d.ts +0 -0
- /package/dist/{components/game → lib/drawable}/three/hooks/useSceneGraph.d.ts +0 -0
- /package/dist/{components/game → lib/drawable}/three/hooks/useThree.d.ts +0 -0
- /package/dist/{components/game → lib/drawable}/three/lib/AssetLoader.d.ts +0 -0
- /package/dist/{components/game → lib/drawable}/three/lib/culling.d.ts +0 -0
- /package/dist/{components/game → lib/drawable}/three/lib/grid3D.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/editorUtils.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/game.d.ts +0 -0
- /package/dist/{components/game/lib/index.d.ts → lib/gameShared.d.ts} +0 -0
- /package/dist/{components/game/lib → lib}/isometric.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/isometricTypes.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/makeAsset.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/mechanics.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/physicsPresets.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/physicsTypes.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/spriteAnimation.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/spriteAnimationTypes.d.ts +0 -0
- /package/dist/{components/game/lib → lib}/spriteSheetConstants.d.ts +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* game3dAssetManifest — shared, asset-URL-free helpers for the 3D game-canvas
|
|
3
|
-
* templates (battle / castle / world-map).
|
|
4
|
-
*
|
|
5
|
-
* Every GLB model URL lives in the lolo `assetManifest` config and arrives via
|
|
6
|
-
* props; these helpers resolve a tile's / feature's `modelUrl` from that manifest
|
|
7
|
-
* by terrain/feature key. NO asset URLs are declared here — the templates and this
|
|
8
|
-
* module stay pure, exactly like the `GameCanvas3D` molecule.
|
|
9
|
-
*
|
|
10
|
-
* @packageDocumentation
|
|
11
|
-
*/
|
|
12
|
-
import type { Asset, EntityRow } from '@almadar/core';
|
|
13
|
-
import type { IsometricTile, IsometricFeature } from '../../lib/isometricTypes';
|
|
14
|
-
/** GLB model assets for a 3D board, keyed by terrain "kind" and (optionally) feature type. */
|
|
15
|
-
export interface Game3DAssetManifest {
|
|
16
|
-
/** Floor model assets by terrain kind ('wall' | 'dirt' | 'open'). */
|
|
17
|
-
models?: Record<string, Asset>;
|
|
18
|
-
/** Feature/structure model assets by feature type ('gold_mine', 'portal', …). */
|
|
19
|
-
features?: Record<string, Asset>;
|
|
20
|
-
}
|
|
21
|
-
/** Layout-only tile (no model URL): position + terrain kind. */
|
|
22
|
-
export interface Tile3DLayout {
|
|
23
|
-
id?: string;
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
z?: number;
|
|
27
|
-
type: string;
|
|
28
|
-
passable?: boolean;
|
|
29
|
-
/** Terrain kind that maps into `assetManifest.models` (wall | dirt | open). */
|
|
30
|
-
kind: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Resolve a layout tile array into render-ready `IsometricTile[]`, attaching each
|
|
34
|
-
* tile's `modelUrl` from `assetManifest.models` by terrain kind. Pure: URLs come
|
|
35
|
-
* only from the manifest.
|
|
36
|
-
*/
|
|
37
|
-
export declare function resolveTilesWithModels(layout: readonly Tile3DLayout[], manifest: Game3DAssetManifest | undefined): IsometricTile[];
|
|
38
|
-
/**
|
|
39
|
-
* Map prop `IsometricTile[]` (which already carry `type`/`passable` but no model)
|
|
40
|
-
* into render-ready tiles with manifest-resolved model URLs.
|
|
41
|
-
*/
|
|
42
|
-
export declare function resolvePropTiles(tiles: readonly IsometricTile[], manifest: Game3DAssetManifest | undefined): IsometricTile[];
|
|
43
|
-
/** Read entity-carried tile rows into render-ready `IsometricTile[]` with manifest-resolved models. */
|
|
44
|
-
export declare function resolveEntityTiles(entity: EntityRow | readonly EntityRow[] | undefined, manifest: Game3DAssetManifest | undefined): IsometricTile[];
|
|
45
|
-
/** Resolve feature model URLs from `assetManifest.features` by feature type. */
|
|
46
|
-
export declare function resolveFeaturesWithModels(features: readonly IsometricFeature[], manifest: Game3DAssetManifest | undefined): IsometricFeature[];
|
|
47
|
-
/** Read entity-carried feature rows into render-ready `IsometricFeature[]` with manifest models. */
|
|
48
|
-
export declare function resolveEntityFeatures(entity: EntityRow | readonly EntityRow[] | undefined, manifest: Game3DAssetManifest | undefined): IsometricFeature[];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GameCamera3D
|
|
3
|
-
*
|
|
4
|
-
* Camera-tracking helpers extracted from GameCanvas3D: an imperative-handle
|
|
5
|
-
* position reporter, a smooth-follow camera for `follow`/`chase` modes, and a
|
|
6
|
-
* lerped group wrapper for interpolated positions between LOLO tick snapshots.
|
|
7
|
-
*
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
import React from 'react';
|
|
11
|
-
/** Reports the live camera position on every change (imperative handle integration). */
|
|
12
|
-
export declare function CameraController3D({ onCameraChange, }: {
|
|
13
|
-
onCameraChange?: (pos: {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
z: number;
|
|
17
|
-
}) => void;
|
|
18
|
-
}): null;
|
|
19
|
-
/**
|
|
20
|
-
* Camera that smooth-tracks a world-space target (side-view player or selected unit).
|
|
21
|
-
* OrbitControls is disabled while following — the camera is authoritative.
|
|
22
|
-
*/
|
|
23
|
-
export declare function FollowCamera3D({ target, offset, }: {
|
|
24
|
-
target: [number, number, number];
|
|
25
|
-
offset: [number, number, number];
|
|
26
|
-
}): null;
|
|
27
|
-
/**
|
|
28
|
-
* Group that smooth-lerps toward its target position between LOLO tick snapshots
|
|
29
|
-
* (the 3D analogue of Canvas2D's `interpolateUnits`). Disabled → snaps.
|
|
30
|
-
*/
|
|
31
|
-
export declare function LerpedGroup3D({ target, enabled, children, }: {
|
|
32
|
-
target: [number, number, number];
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
children: React.ReactNode;
|
|
35
|
-
}): React.JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Game 3D (three.js)
|
|
3
|
-
*
|
|
4
|
-
* Three.js components, hooks, loaders, renderers, and the GameCanvas3D family.
|
|
5
|
-
* Code-split behind the `@almadar/ui/components/molecules/game/three` subpath.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
export { Scene3D, type Scene3DProps } from './Scene3D';
|
|
10
|
-
export { Camera3D, type Camera3DProps, type Camera3DHandle, type CameraMode } from './Camera3D';
|
|
11
|
-
export { Lighting3D, type Lighting3DProps } from './Lighting3D';
|
|
12
|
-
export { Canvas3DLoadingState, type Canvas3DLoadingStateProps, } from './Canvas3DLoadingState';
|
|
13
|
-
export { Canvas3DErrorBoundary, type Canvas3DErrorBoundaryProps, type Canvas3DErrorBoundaryState, } from './Canvas3DErrorBoundary';
|
|
14
|
-
export { ModelLoader, type ModelLoaderProps, } from './ModelLoader';
|
|
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
|
-
export { GameCanvas3D, type GameCanvas3DProps } from './GameCanvas3D';
|
|
23
|
-
export { gridToWorld, worldToGrid, raycastToPlane, raycastToObjects, gridDistance, gridManhattanDistance, getNeighbors, isInBounds, getCellsInRadius, createGridHighlight, normalizeMouseCoordinates, type Grid3DConfig, type GridCoordinate, } from '../lib/grid3D';
|
|
24
|
-
export { Avl3DViewer, type Avl3DViewerProps } from '../../../avl/organisms/Avl3DViewer';
|
|
25
|
-
export { Avl3DApplicationScene, type Avl3DApplicationSceneProps } from '../../../avl/organisms/Avl3DApplicationScene';
|
|
26
|
-
export { Avl3DOrbitalScene, type Avl3DOrbitalSceneProps } from '../../../avl/organisms/Avl3DOrbitalScene';
|
|
27
|
-
export { Avl3DTraitScene, type Avl3DTraitSceneProps } from '../../../avl/organisms/Avl3DTraitScene';
|
|
28
|
-
export { Avl3DTransitionScene, type Avl3DTransitionSceneProps } from '../../../avl/organisms/Avl3DTransitionScene';
|
|
29
|
-
export { Avl3DEffects, type Avl3DEffectsProps } from '../../../avl/organisms/Avl3DEffects';
|
|
30
|
-
export { Avl3DContext, useAvl3DConfig, type Avl3DModelOverrides, type Avl3DConfig } from '../../../avl/providers/avl-3d-context';
|
|
31
|
-
export { AVL_3D_COLORS, CAMERA_POSITIONS, goldenSpiralPositions, fibonacciSpherePositions, orbitRingPositions, arcCurve3D, selfLoopCurve3D, treeLayout3D, type Position3D, } from '../../../avl/lib/avl-3d-layout';
|
|
32
|
-
export { isInFrustum, filterByFrustum, getVisibleIndices, calculateLODLevel, updateInstanceLOD, cullInstancedMesh, SpatialHashGrid, type CullingOptions, type LODLevel, type LODConfig, } from '../lib/culling';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Curated list of the PUBLIC 3D (Three.js) render-ui pattern components.
|
|
3
|
-
*
|
|
4
|
-
* The 3D family is a code-split optional surface (published via the
|
|
5
|
-
* `@almadar/ui/components/{organisms,molecules}/game/three` subpath, never in
|
|
6
|
-
* the main barrel — that would pull @react-three/fiber into every app). This
|
|
7
|
-
* file is the source of truth for WHICH 3D components are render-ui patterns:
|
|
8
|
-
* `pattern-sync` discovers `patterns.ts` files by walking the tree and admits
|
|
9
|
-
* exactly the names listed here, so the 3D scene internals re-exported alongside
|
|
10
|
-
* them (Scene3D, Camera3D, Lighting3D, ModelLoader, Canvas3D, …) do NOT leak in
|
|
11
|
-
* as factory patterns. Move this file anywhere under `components/` and the
|
|
12
|
-
* scanner still finds it.
|
|
13
|
-
*
|
|
14
|
-
* @packageDocumentation
|
|
15
|
-
*/
|
|
16
|
-
export { GameCanvas3D } from './molecules/GameCanvas3D';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{components/game/three/molecules → lib/drawable/three}/Canvas3DErrorBoundary.d.ts
RENAMED
|
File without changes
|
/package/dist/{components/game/three/molecules → lib/drawable/three}/Canvas3DLoadingState.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|