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.
@@ -62,9 +62,9 @@ declare module BABYLON {
62
62
 
63
63
 
64
64
 
65
- export var DefaultTranslation: Vector3;
66
- export var DefaultRotation: Quaternion;
67
- export var DefaultScale: Vector3;
65
+ export var DefaultTranslation: DeepImmutableObject<Vector3>;
66
+ export var DefaultRotation: DeepImmutable<Quaternion>;
67
+ export var DefaultScale: DeepImmutableObject<Vector3>;
68
68
  /**
69
69
  * Get the information necessary for enumerating a vertex buffer.
70
70
  * @param vertexBuffer the vertex buffer to enumerate
@@ -120,14 +120,17 @@ declare module BABYLON {
120
120
  */
121
121
  export function IsChildCollapsible(babylonNode: ShadowLight | TargetCamera, parentBabylonNode: Node): boolean;
122
122
  /**
123
- * Converts an IndicesArray into either Uint32Array or Uint16Array, only copying if the data is number[].
123
+ * Converts an IndicesArray into either a Uint32Array or Uint16Array.
124
+ * If the `start` and `count` parameters specify a subset of the array, a new view is created.
125
+ * If the input is a number[], the data is copied into a new buffer.
124
126
  * @param indices input array to be converted
125
- * @param start starting index to copy from
126
- * @param count number of indices to copy
127
+ * @param start starting index
128
+ * @param count number of indices
129
+ * @param is32Bits whether the output should be Uint32Array (true) or Uint16Array (false) when indices is an `Array`
127
130
  * @returns a Uint32Array or Uint16Array
128
131
  * @internal
129
132
  */
130
- export function IndicesArrayToTypedArray(indices: IndicesArray, start: number, count: number, is32Bits: boolean): Uint32Array | Uint16Array;
133
+ export function IndicesArrayToTypedSubarray(indices: IndicesArray, start: number, count: number, is32Bits: boolean): Uint32Array | Uint16Array;
131
134
  export function DataArrayToUint8Array(data: DataArray): Uint8Array;
132
135
  export function GetMinMax(data: DataArray, vertexBuffer: VertexBuffer, start: number, count: number): {
133
136
  min: number[];