babylonjs-loaders 6.21.1 → 6.21.2

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.
@@ -1105,6 +1105,10 @@ export class KHR_draco_mesh_compression implements IGLTFLoaderExtension {
1105
1105
  * Defines whether this extension is enabled.
1106
1106
  */
1107
1107
  enabled: boolean;
1108
+ /**
1109
+ * Defines whether to use the normalized flag from the glTF accessor instead of the Draco data. Defaults to true.
1110
+ */
1111
+ useNormalizedFlagFromAccessor: boolean;
1108
1112
  private _loader;
1109
1113
  /**
1110
1114
  * @internal
@@ -2035,6 +2039,13 @@ export class ArrayItem {
2035
2039
  * @returns The array item
2036
2040
  */
2037
2041
  static Get<T>(context: string, array: ArrayLike<T> | undefined, index: number | undefined): T;
2042
+ /**
2043
+ * Gets an item from the given array or returns null if not available.
2044
+ * @param array The array to get the item from
2045
+ * @param index The index to the array
2046
+ * @returns The array item or null
2047
+ */
2048
+ static TryGet<T>(array: ArrayLike<T> | undefined, index: number | undefined): Nullable<T>;
2038
2049
  /**
2039
2050
  * Assign an `index` field to each item of the given array.
2040
2051
  * @param array The array of items
@@ -4926,6 +4937,10 @@ declare module BABYLON.GLTF2.Loader.Extensions {
4926
4937
  * Defines whether this extension is enabled.
4927
4938
  */
4928
4939
  enabled: boolean;
4940
+ /**
4941
+ * Defines whether to use the normalized flag from the glTF accessor instead of the Draco data. Defaults to true.
4942
+ */
4943
+ useNormalizedFlagFromAccessor: boolean;
4929
4944
  private _loader;
4930
4945
  /**
4931
4946
  * @internal
@@ -5839,6 +5854,13 @@ declare module BABYLON.GLTF2 {
5839
5854
  * @returns The array item
5840
5855
  */
5841
5856
  static Get<T>(context: string, array: ArrayLike<T> | undefined, index: number | undefined): T;
5857
+ /**
5858
+ * Gets an item from the given array or returns null if not available.
5859
+ * @param array The array to get the item from
5860
+ * @param index The index to the array
5861
+ * @returns The array item or null
5862
+ */
5863
+ static TryGet<T>(array: ArrayLike<T> | undefined, index: number | undefined): Nullable<T>;
5842
5864
  /**
5843
5865
  * Assign an `index` field to each item of the given array.
5844
5866
  * @param array The array of items
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "6.21.1",
3
+ "version": "6.21.2",
4
4
  "main": "babylonjs.loaders.js",
5
5
  "types": "babylonjs.loaders.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.loaders.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^6.21.1",
19
- "babylonjs-gltf2interface": "^6.21.1"
18
+ "babylonjs": "^6.21.2",
19
+ "babylonjs-gltf2interface": "^6.21.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",