@almadar/ui 5.142.0 → 5.144.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 +173 -35
- package/dist/avl/index.js +174 -36
- package/dist/{avl-schema-parser-DAs12kxP.d.ts → avl-schema-parser-BRJ77Yze.d.ts} +17 -3
- package/dist/{avl-schema-parser-wOkfbwAh.d.cts → avl-schema-parser-DVmrgdwc.d.cts} +17 -3
- package/dist/{cn-rwc3svaX.d.cts → cn-BdGFhYe3.d.cts} +1 -1
- package/dist/{cn-BDwC4QpH.d.ts → cn-DNkqAWZK.d.ts} +1 -1
- package/dist/components/index.cjs +277 -163
- package/dist/components/index.d.cts +9 -7
- package/dist/components/index.d.ts +9 -7
- package/dist/components/index.js +278 -164
- package/dist/lib/drawable/three/index.cjs +449 -195
- package/dist/lib/drawable/three/index.d.cts +3 -3
- package/dist/lib/drawable/three/index.d.ts +3 -3
- package/dist/lib/drawable/three/index.js +425 -171
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/marketing/index.cjs +6 -1
- package/dist/marketing/index.js +6 -1
- package/dist/{paintDispatch-BQn5Lyx1.d.cts → paintDispatch-Cb_hQj4Y.d.cts} +79 -33
- package/dist/{paintDispatch-BQn5Lyx1.d.ts → paintDispatch-Cb_hQj4Y.d.ts} +79 -33
- package/dist/providers/index.cjs +173 -35
- package/dist/providers/index.js +174 -36
- package/dist/runtime/index.cjs +173 -35
- package/dist/runtime/index.js +174 -36
- package/package.json +9 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnimationName, Asset, ScenePos, EventEmit, JsonObject, JsonValue } from '@almadar/core';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
|
-
import { D as DrawableNode } from './paintDispatch-
|
|
4
|
+
import { D as DrawableNode } from './paintDispatch-Cb_hQj4Y.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Sprite Sheet Animation Types
|
|
@@ -60,12 +60,20 @@ interface SpriteFrameDims {
|
|
|
60
60
|
/** Height of a single frame in pixels */
|
|
61
61
|
height: number;
|
|
62
62
|
}
|
|
63
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Sheet URLs per facing. Legacy hand-drawn packs ship only se/sw (ne/nw are
|
|
65
|
+
* mirror-flipped — a cheat that shows the face while walking away); 3D-baked
|
|
66
|
+
* sheets also ship real ne/nw, which `resolveFrame` prefers when present.
|
|
67
|
+
*/
|
|
64
68
|
interface SpriteSheetUrls {
|
|
65
69
|
/** Southeast-facing sheet URL */
|
|
66
70
|
se: string;
|
|
67
71
|
/** Southwest-facing sheet URL */
|
|
68
72
|
sw: string;
|
|
73
|
+
/** Northeast-facing sheet URL (real back view; omitted → mirror of sw) */
|
|
74
|
+
ne?: string;
|
|
75
|
+
/** Northwest-facing sheet URL (real back view; omitted → mirror of se) */
|
|
76
|
+
nw?: string;
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
/**
|
|
@@ -310,7 +318,7 @@ interface CameraState {
|
|
|
310
318
|
/** Camera mode for 3D view.
|
|
311
319
|
* - `follow` tracks `followTarget` (the neutral `Camera.target`) from a fixed offset.
|
|
312
320
|
* - `chase` sits behind + above the target. */
|
|
313
|
-
type CameraMode = 'isometric' | 'perspective' | 'top-down' | 'follow' | 'chase';
|
|
321
|
+
type CameraMode = 'isometric' | 'perspective' | 'top-down' | 'front' | 'follow' | 'chase';
|
|
314
322
|
/** Map orientation */
|
|
315
323
|
type MapOrientation = 'standard' | 'rotated';
|
|
316
324
|
/** Overlay control */
|
|
@@ -351,6 +359,10 @@ interface CanvasLighting {
|
|
|
351
359
|
* RoomEnvironment via PMREMGenerator — no network fetch. Default 'none' (today's
|
|
352
360
|
* look). */
|
|
353
361
|
environment?: 'room' | 'none';
|
|
362
|
+
/** Output tone mapping. Default 'aces' (R3F's filmic default — the stylized look
|
|
363
|
+
* every existing scene was authored under); 'none' renders material colors
|
|
364
|
+
* faithfully (raw three default — what GLB viewers show). */
|
|
365
|
+
toneMapping?: 'aces' | 'none';
|
|
354
366
|
}
|
|
355
367
|
/** Canvas-level post-processing stack. Every field is optional — an omitted field
|
|
356
368
|
* means that pass is not mounted. */
|
|
@@ -480,6 +492,8 @@ interface Canvas3DHostProps {
|
|
|
480
492
|
pixelsPerUnit?: number;
|
|
481
493
|
/** Perspective field of view in degrees — the neutral `Camera.fov`. Default 45. */
|
|
482
494
|
fov?: number;
|
|
495
|
+
/** Orbit the mode's framing position around the vertical axis through the target, in radians — the neutral `Camera.azimuth`. */
|
|
496
|
+
azimuth?: number;
|
|
483
497
|
/** 3D scene light rig as data — ambient/directional/hemisphere/point lights + optional
|
|
484
498
|
* 'room' environment. Omitted → the standard fixed rig (this host's current
|
|
485
499
|
* hardcoded lights, unchanged). */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnimationName, Asset, ScenePos, EventEmit, JsonObject, JsonValue } from '@almadar/core';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
|
-
import { D as DrawableNode } from './paintDispatch-
|
|
4
|
+
import { D as DrawableNode } from './paintDispatch-Cb_hQj4Y.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Sprite Sheet Animation Types
|
|
@@ -60,12 +60,20 @@ interface SpriteFrameDims {
|
|
|
60
60
|
/** Height of a single frame in pixels */
|
|
61
61
|
height: number;
|
|
62
62
|
}
|
|
63
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Sheet URLs per facing. Legacy hand-drawn packs ship only se/sw (ne/nw are
|
|
65
|
+
* mirror-flipped — a cheat that shows the face while walking away); 3D-baked
|
|
66
|
+
* sheets also ship real ne/nw, which `resolveFrame` prefers when present.
|
|
67
|
+
*/
|
|
64
68
|
interface SpriteSheetUrls {
|
|
65
69
|
/** Southeast-facing sheet URL */
|
|
66
70
|
se: string;
|
|
67
71
|
/** Southwest-facing sheet URL */
|
|
68
72
|
sw: string;
|
|
73
|
+
/** Northeast-facing sheet URL (real back view; omitted → mirror of sw) */
|
|
74
|
+
ne?: string;
|
|
75
|
+
/** Northwest-facing sheet URL (real back view; omitted → mirror of se) */
|
|
76
|
+
nw?: string;
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
/**
|
|
@@ -310,7 +318,7 @@ interface CameraState {
|
|
|
310
318
|
/** Camera mode for 3D view.
|
|
311
319
|
* - `follow` tracks `followTarget` (the neutral `Camera.target`) from a fixed offset.
|
|
312
320
|
* - `chase` sits behind + above the target. */
|
|
313
|
-
type CameraMode = 'isometric' | 'perspective' | 'top-down' | 'follow' | 'chase';
|
|
321
|
+
type CameraMode = 'isometric' | 'perspective' | 'top-down' | 'front' | 'follow' | 'chase';
|
|
314
322
|
/** Map orientation */
|
|
315
323
|
type MapOrientation = 'standard' | 'rotated';
|
|
316
324
|
/** Overlay control */
|
|
@@ -351,6 +359,10 @@ interface CanvasLighting {
|
|
|
351
359
|
* RoomEnvironment via PMREMGenerator — no network fetch. Default 'none' (today's
|
|
352
360
|
* look). */
|
|
353
361
|
environment?: 'room' | 'none';
|
|
362
|
+
/** Output tone mapping. Default 'aces' (R3F's filmic default — the stylized look
|
|
363
|
+
* every existing scene was authored under); 'none' renders material colors
|
|
364
|
+
* faithfully (raw three default — what GLB viewers show). */
|
|
365
|
+
toneMapping?: 'aces' | 'none';
|
|
354
366
|
}
|
|
355
367
|
/** Canvas-level post-processing stack. Every field is optional — an omitted field
|
|
356
368
|
* means that pass is not mounted. */
|
|
@@ -480,6 +492,8 @@ interface Canvas3DHostProps {
|
|
|
480
492
|
pixelsPerUnit?: number;
|
|
481
493
|
/** Perspective field of view in degrees — the neutral `Camera.fov`. Default 45. */
|
|
482
494
|
fov?: number;
|
|
495
|
+
/** Orbit the mode's framing position around the vertical axis through the target, in radians — the neutral `Camera.azimuth`. */
|
|
496
|
+
azimuth?: number;
|
|
483
497
|
/** 3D scene light rig as data — ambient/directional/hemisphere/point lights + optional
|
|
484
498
|
* 'room' environment. Omitted → the standard fixed rig (this host's current
|
|
485
499
|
* hardcoded lights, unchanged). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrbitalSchema, SExpr, Effect, OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, ServerResponseTrace, CheckStatus, AssetLoadStatus } from '@almadar/core';
|
|
2
|
-
import { D as DrawableNode } from './paintDispatch-
|
|
2
|
+
import { D as DrawableNode } from './paintDispatch-Cb_hQj4Y.cjs';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrbitalSchema, SExpr, Effect, OrbitalVerificationAPI, TraitStateSnapshot, EventPayload, BusEvent, VerificationCheck, BridgeHealth, VerificationSnapshot, VerificationSummary, TransitionTrace, ServerResponseTrace, CheckStatus, AssetLoadStatus } from '@almadar/core';
|
|
2
|
-
import { D as DrawableNode } from './paintDispatch-
|
|
2
|
+
import { D as DrawableNode } from './paintDispatch-Cb_hQj4Y.js';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
/**
|