@babylonjs/lite-compat 1.34.0-preview → 1.36.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/navigation.d.ts CHANGED
@@ -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 parent(): Node_2 | null;
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;
package/navigation.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as registerMeshAtStart, Q as Vector3, b as Mesh } from "./meshes-BLcUDvXV.js";
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.34.0-preview",
3
+ "version": "1.36.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": "60698",
51
- "sourceVersion": "22bd82496ecbb38f7bbd4107ef5eca40c2897bd0",
52
- "builtAgainstLite": "1.34.0"
50
+ "azureBuildId": "61061",
51
+ "sourceVersion": "5241e29f5a88ff23534a11d3114ac8ea983c5961",
52
+ "builtAgainstLite": "1.36.0"
53
53
  }
54
54
  }