babylonjs-serializers 8.30.3 → 8.30.4

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.
@@ -87,7 +87,7 @@ export * from "babylonjs-serializers/glTF/2.0/Extensions/index";
87
87
  declare module "babylonjs-serializers/glTF/2.0/glTFUtilities" {
88
88
  import { INode } from "babylonjs-gltf2interface";
89
89
  import { AccessorType, MeshPrimitiveMode } from "babylonjs-gltf2interface";
90
- import { FloatArray, DataArray, IndicesArray } from "babylonjs/types";
90
+ import { FloatArray, DataArray, IndicesArray, DeepImmutable } from "babylonjs/types";
91
91
  import { Vector4 } from "babylonjs/Maths/math.vector";
92
92
  import { Quaternion, Matrix, Vector3 } from "babylonjs/Maths/math.vector";
93
93
  import { VertexBuffer } from "babylonjs/Buffers/buffer";
@@ -95,9 +95,9 @@ import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
95
95
  import { Node } from "babylonjs/node";
96
96
  import { TargetCamera } from "babylonjs/Cameras/targetCamera";
97
97
  import { ShadowLight } from "babylonjs/Lights/shadowLight";
98
- export const DefaultTranslation: Vector3;
99
- export const DefaultRotation: Quaternion;
100
- export const DefaultScale: Vector3;
98
+ export const DefaultTranslation: import("babylonjs/types").DeepImmutableObject<Vector3>;
99
+ export const DefaultRotation: DeepImmutable<Quaternion>;
100
+ export const DefaultScale: import("babylonjs/types").DeepImmutableObject<Vector3>;
101
101
  /**
102
102
  * Get the information necessary for enumerating a vertex buffer.
103
103
  * @param vertexBuffer the vertex buffer to enumerate
@@ -153,14 +153,17 @@ export function CollapseChildIntoParent(node: INode, parentNode: INode): void;
153
153
  */
154
154
  export function IsChildCollapsible(babylonNode: ShadowLight | TargetCamera, parentBabylonNode: Node): boolean;
155
155
  /**
156
- * Converts an IndicesArray into either Uint32Array or Uint16Array, only copying if the data is number[].
156
+ * Converts an IndicesArray into either a Uint32Array or Uint16Array.
157
+ * If the `start` and `count` parameters specify a subset of the array, a new view is created.
158
+ * If the input is a number[], the data is copied into a new buffer.
157
159
  * @param indices input array to be converted
158
- * @param start starting index to copy from
159
- * @param count number of indices to copy
160
+ * @param start starting index
161
+ * @param count number of indices
162
+ * @param is32Bits whether the output should be Uint32Array (true) or Uint16Array (false) when indices is an `Array`
160
163
  * @returns a Uint32Array or Uint16Array
161
164
  * @internal
162
165
  */
163
- export function IndicesArrayToTypedArray(indices: IndicesArray, start: number, count: number, is32Bits: boolean): Uint32Array | Uint16Array;
166
+ export function IndicesArrayToTypedSubarray(indices: IndicesArray, start: number, count: number, is32Bits: boolean): Uint32Array | Uint16Array;
164
167
  export function DataArrayToUint8Array(data: DataArray): Uint8Array;
165
168
  export function GetMinMax(data: DataArray, vertexBuffer: VertexBuffer, start: number, count: number): {
166
169
  min: number[];
@@ -1863,9 +1866,9 @@ declare module BABYLON {
1863
1866
 
1864
1867
 
1865
1868
 
1866
- export var DefaultTranslation: Vector3;
1867
- export var DefaultRotation: Quaternion;
1868
- export var DefaultScale: Vector3;
1869
+ export var DefaultTranslation: DeepImmutableObject<Vector3>;
1870
+ export var DefaultRotation: DeepImmutable<Quaternion>;
1871
+ export var DefaultScale: DeepImmutableObject<Vector3>;
1869
1872
  /**
1870
1873
  * Get the information necessary for enumerating a vertex buffer.
1871
1874
  * @param vertexBuffer the vertex buffer to enumerate
@@ -1921,14 +1924,17 @@ declare module BABYLON {
1921
1924
  */
1922
1925
  export function IsChildCollapsible(babylonNode: ShadowLight | TargetCamera, parentBabylonNode: Node): boolean;
1923
1926
  /**
1924
- * Converts an IndicesArray into either Uint32Array or Uint16Array, only copying if the data is number[].
1927
+ * Converts an IndicesArray into either a Uint32Array or Uint16Array.
1928
+ * If the `start` and `count` parameters specify a subset of the array, a new view is created.
1929
+ * If the input is a number[], the data is copied into a new buffer.
1925
1930
  * @param indices input array to be converted
1926
- * @param start starting index to copy from
1927
- * @param count number of indices to copy
1931
+ * @param start starting index
1932
+ * @param count number of indices
1933
+ * @param is32Bits whether the output should be Uint32Array (true) or Uint16Array (false) when indices is an `Array`
1928
1934
  * @returns a Uint32Array or Uint16Array
1929
1935
  * @internal
1930
1936
  */
1931
- export function IndicesArrayToTypedArray(indices: IndicesArray, start: number, count: number, is32Bits: boolean): Uint32Array | Uint16Array;
1937
+ export function IndicesArrayToTypedSubarray(indices: IndicesArray, start: number, count: number, is32Bits: boolean): Uint32Array | Uint16Array;
1932
1938
  export function DataArrayToUint8Array(data: DataArray): Uint8Array;
1933
1939
  export function GetMinMax(data: DataArray, vertexBuffer: VertexBuffer, start: number, count: number): {
1934
1940
  min: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-serializers",
3
- "version": "8.30.3",
3
+ "version": "8.30.4",
4
4
  "main": "babylonjs.serializers.min.js",
5
5
  "types": "babylonjs.serializers.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.serializers.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^8.30.3",
19
- "babylonjs-gltf2interface": "^8.30.3"
18
+ "babylonjs": "^8.30.4",
19
+ "babylonjs-gltf2interface": "^8.30.4"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",