@babylonjs/lite-compat 1.33.0-preview → 1.35.0-preview
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/README.md +6 -6
- package/index.d.ts +308 -25
- package/index.js +410 -54
- package/index.js.map +1 -1
- package/{meshes-BLcUDvXV.js → meshes-zeNif9yt.js} +96 -2
- package/meshes-zeNif9yt.js.map +1 -0
- package/navigation.d.ts +50 -7
- package/navigation.js +1 -1
- package/package.json +4 -4
- package/meshes-BLcUDvXV.js.map +0 -1
package/navigation.d.ts
CHANGED
|
@@ -37,11 +37,11 @@ declare abstract class AbstractEngine {
|
|
|
37
37
|
*/
|
|
38
38
|
useReverseDepthBuffer: boolean;
|
|
39
39
|
/** Babylon.js `engine.onResizeObservable` — fires after `resize()` / `setSize()`. */
|
|
40
|
-
readonly onResizeObservable: Observable<AbstractEngine>;
|
|
41
40
|
constructor(canvas: RenderCanvas, options?: ({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
readonly onResizeObservable: Observable<AbstractEngine>;
|
|
42
|
+
/** Babylon.js context-loss signal, forwarded from Lite's device-loss subscription. */
|
|
43
|
+
readonly onContextLostObservable: Observable<AbstractEngine>;
|
|
44
|
+
/** Babylon.js context-restored signal. Lite does not expose a completed-recovery event, so this remains shape-only. */
|
|
45
|
+
readonly onContextRestoredObservable: Observable<AbstractEngine>;
|
|
46
46
|
constructor(canvas: RenderCanvas, options?: WebGPUEngineOptions | boolean);
|
|
47
47
|
/** Acquire the GPU device and build the Lite engine context. */
|
|
48
48
|
initAsync(): Promise<void>;
|
|
49
49
|
getRenderingCanvas(): RenderCanvas;
|
|
@@ -281,6 +281,10 @@ declare abstract class AbstractScene {
|
|
|
281
281
|
/**
|
|
282
282
|
getNodeById(id: string): Node_2 | null;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
+
declare type AccessibilityAria = "aria-autocomplete" | "aria-checked" | "aria-disabled" | "aria-errormessage" | "aria-expanded" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-label" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-placeholder" | "aria-pressed" | "aria-readonly" | "aria-required" | "aria-selected" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "aria-busy" | "aria-live" | "aria-relevant" | "aria-atomic" | "aria-dropeffect" | "aria-grabbed" | "aria-activedescendant" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-describedby" | "aria-description" | "aria-details" | "aria-flowto" | "aria-labelledby" | "aria-owns" | "aria-posinset" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-setsize";
|
|
286
|
+
|
|
287
|
+
declare type AccessibilityRole = "toolbar" | "tooltip" | "feed" | "math" | "presentation" | "none" | "note" | "application" | "article" | "cell" | "columnheader" | "definition" | "directory" | "document" | "figure" | "group" | "heading" | "img" | "list" | "listitem" | "meter" | "row" | "rowgroup" | "rowheader" | "separator" | "table" | "term" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "switch" | "tab" | "tabpanel" | "treeitem" | "combobox" | "menu" | "menubar" | "tablist" | "tree" | "treegrid" | "banner" | "complementary" | "contentinfo" | "form" | "main" | "navigation" | "region" | "search" | "alert" | "log" | "marquee" | "status" | "timer" | "alertdialog" | "dialog";
|
|
288
|
+
|
|
285
289
|
/** Babylon.js `IAgentParameters` subset accepted by `RecastJSCrowd.addAgent`. */
|
|
286
290
|
declare interface AgentParameters {
|
|
287
291
|
radius: number;
|
|
@@ -789,6 +793,17 @@ declare class HDRCubeTexture extends BaseTexture {
|
|
|
789
793
|
dispose(): void;
|
|
790
794
|
}
|
|
791
795
|
|
|
796
|
+
declare interface IAccessibilityTag {
|
|
797
|
+
description?: string;
|
|
798
|
+
eventHandler?: {
|
|
799
|
+
[K in keyof HTMLElementEventMap]: (event?: Event) => void;
|
|
800
|
+
};
|
|
801
|
+
role?: AccessibilityRole;
|
|
802
|
+
aria?: {
|
|
803
|
+
[K in AccessibilityAria]: any;
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
|
|
792
807
|
declare interface IAnimationKey {
|
|
793
808
|
frame: number;
|
|
794
809
|
value: AnimationValue;
|
|
@@ -1009,6 +1024,14 @@ declare class Matrix {
|
|
|
1009
1024
|
static RotationZ(angle: number): Matrix;
|
|
1010
1025
|
/** Babylon.js `Matrix.LookAtLH(eye, target, up)` — left-handed view matrix. */
|
|
1011
1026
|
static LookAtLH(eye: Vector3, target: Vector3, up: Vector3): Matrix;
|
|
1027
|
+
/** Babylon.js `Matrix.LookDirectionLH(forward, up)` orientation matrix. */
|
|
1028
|
+
static LookDirectionLH(forward: Vector3, up: Vector3): Matrix;
|
|
1029
|
+
/** Babylon.js `Matrix.LookDirectionLHToRef(forward, up, result)`. */
|
|
1030
|
+
static LookDirectionLHToRef<T extends Matrix>(forward: Vector3, up: Vector3, result: T): T;
|
|
1031
|
+
/** Babylon.js `Matrix.LookDirectionRH(forward, up)` orientation matrix. */
|
|
1032
|
+
static LookDirectionRH(forward: Vector3, up: Vector3): Matrix;
|
|
1033
|
+
/** Babylon.js `Matrix.LookDirectionRHToRef(forward, up, result)`. */
|
|
1034
|
+
static LookDirectionRHToRef<T extends Matrix>(forward: Vector3, up: Vector3, result: T): T;
|
|
1012
1035
|
/** Babylon.js `Matrix.OrthoOffCenterLH(left, right, bottom, top, znear, zfar, halfZRange?)` — LH ortho projection. */
|
|
1013
1036
|
static OrthoOffCenterLH(left: number, right: number, bottom: number, top: number, znear: number, zfar: number, _halfZRange?: boolean): Matrix;
|
|
1014
1037
|
/**
|
|
@@ -1145,14 +1168,16 @@ declare abstract class Node_2 {
|
|
|
1145
1168
|
readonly uniqueId: number;
|
|
1146
1169
|
/** Free-form user data slot (Babylon.js `Node.metadata`). */
|
|
1147
1170
|
metadata: unknown;
|
|
1148
|
-
readonly onDisposeObservable: Observable<Node_2>;
|
|
1149
1171
|
protected constructor(name: string, scene?: Scene);
|
|
1172
|
+
readonly onDisposeObservable: Observable<Node_2>;
|
|
1173
|
+
onAccessibilityTagChangedObservable: Observable<IAccessibilityTag | null>;
|
|
1150
1174
|
protected constructor(name: string, scene?: Scene);
|
|
1151
1175
|
/** The runtime class name (overridden by each subclass). */
|
|
1152
1176
|
getClassName(): string;
|
|
1153
1177
|
/** The scene this node belongs to, if any. */
|
|
1154
1178
|
getScene(): Scene | undefined;
|
|
1155
1179
|
/** The engine backing this node's scene, if any. */
|
|
1156
1180
|
getEngine(): WebGPUEngine | undefined;
|
|
1157
|
-
get
|
|
1181
|
+
get accessibilityTag(): IAccessibilityTag | null;
|
|
1182
|
+
set accessibilityTag(value: IAccessibilityTag | null);
|
|
1158
1183
|
get parent(): Node_2 | null;
|
|
1159
1184
|
set parent(value: Node_2 | null);
|
|
1160
1185
|
/**
|
|
1161
1186
|
* Babylon.js `node.getDescendants(directDescendantsOnly?, predicate?)` — the
|
|
1162
1187
|
* nodes parented (directly or transitively) under this one, optionally filtered.
|
|
@@ -1659,6 +1684,15 @@ declare class Quaternion {
|
|
|
1659
1684
|
* `matrix` into `result`. Backed by Lite's `createQuatFromRotationMat4`.
|
|
1660
1685
|
*/
|
|
1661
1686
|
static FromRotationMatrixToRef(matrix: Matrix, result: Quaternion): Quaternion;
|
|
1687
|
+
/** Babylon.js `Quaternion.FromLookDirectionLH(forward, up)`. */
|
|
1688
|
+
static FromLookDirectionLH(forward: Vector3, up: Vector3): Quaternion;
|
|
1689
|
+
/** Babylon.js `Quaternion.FromLookDirectionLHToRef(forward, up, result)`. */
|
|
1690
|
+
static FromLookDirectionLHToRef<T extends Quaternion>(forward: Vector3, up: Vector3, result: T): T;
|
|
1691
|
+
/** Babylon.js `Quaternion.FromLookDirectionRH(forward, up)`. */
|
|
1692
|
+
static FromLookDirectionRH(forward: Vector3, up: Vector3): Quaternion;
|
|
1693
|
+
/** Babylon.js `Quaternion.FromLookDirectionRHToRef(forward, up, result)`. */
|
|
1694
|
+
static FromLookDirectionRHToRef<T extends Quaternion>(forward: Vector3, up: Vector3, result: T): T;
|
|
1695
|
+
private static _FromRotationStorageToRef;
|
|
1662
1696
|
static FromEulerAngles(x: number, y: number, z: number): Quaternion;
|
|
1663
1697
|
static RotationYawPitchRoll(yaw: number, pitch: number, roll: number): Quaternion;
|
|
1664
1698
|
static RotationAxis(axis: Vector3, angle: number): Quaternion;
|
|
@@ -2223,4 +2257,13 @@ export declare function WaitForFullTileCacheUpdate(navMesh: unknown, _tileCache?
|
|
|
2223
2257
|
declare class WebGPUEngine extends AbstractEngine {
|
|
2224
2258
|
}
|
|
2225
2259
|
|
|
2260
|
+
/** Babylon.js `WebGPUEngineOptions` subset accepted by the compat engine. */
|
|
2261
|
+
declare interface WebGPUEngineOptions extends EngineOptions {
|
|
2262
|
+
antialias?: boolean;
|
|
2263
|
+
adaptToDeviceRatio?: boolean;
|
|
2264
|
+
useLargeWorldRendering?: boolean;
|
|
2265
|
+
canvasToneMapping?: GPUCanvasToneMapping;
|
|
2266
|
+
canvasColorSpace?: PredefinedColorSpace;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2226
2269
|
export { }
|
package/navigation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as registerMeshAtStart, Q as Vector3, b as Mesh } from "./meshes-
|
|
1
|
+
import { D as registerMeshAtStart, Q as Vector3, b as Mesh } from "./meshes-zeNif9yt.js";
|
|
2
2
|
import { addAgent, addBoxObstacle, addCylinderObstacle, agentGoto, computePath, createDebugNavMeshGeometry, createMeshFromData, createNavCrowd, createNavMesh, createNavigationPluginAsync, getAgentPosition, getClosestPoint, raycast, removeObstacle, updateNavCrowd, updateNavMeshObstacles } from "@babylonjs/lite";
|
|
3
3
|
//#region src/navigation/navigation.ts
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/lite-compat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0-preview",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Opt-in Babylon.js-shaped compatibility layer implemented on top of the Babylon Lite public API. Provides a migration runway from Babylon.js to Babylon Lite.",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"babylonLiteRelease": {
|
|
50
|
-
"azureBuildId": "
|
|
51
|
-
"sourceVersion": "
|
|
52
|
-
"builtAgainstLite": "1.
|
|
50
|
+
"azureBuildId": "60987",
|
|
51
|
+
"sourceVersion": "d3dcfc97f032ef31ee63eaaebe19569858fa4b08",
|
|
52
|
+
"builtAgainstLite": "1.35.0"
|
|
53
53
|
}
|
|
54
54
|
}
|