babylonjs-loaders 8.2.0 → 8.2.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.
@@ -1870,6 +1870,14 @@ declare module "babylonjs-loaders/glTF/2.0/Extensions/gltfPathToObjectConverter"
1870
1870
  import { IObjectInfo, IPathToObjectConverter } from "babylonjs/ObjectModel/objectModelInterfaces";
1871
1871
  import { IGLTF } from "babylonjs-loaders/glTF/2.0/glTFLoaderInterfaces";
1872
1872
  import { IObjectAccessor } from "babylonjs/FlowGraph/typeDefinitions";
1873
+ /**
1874
+ * Adding an exception here will break traversing through the glTF object tree.
1875
+ * This is used for properties that might not be in the glTF object model, but are optional and have a default value.
1876
+ * For example, the path /nodes/\{\}/extensions/KHR_node_visibility/visible is optional - the object can be deferred without the object fully existing.
1877
+ */
1878
+ export const OptionalPathExceptionsList: {
1879
+ regex: RegExp;
1880
+ }[];
1873
1881
  /**
1874
1882
  * A converter that takes a glTF Object Model JSON Pointer
1875
1883
  * and transforms it into an ObjectAccessorContainer, allowing
@@ -3848,7 +3856,10 @@ export interface IGLTFToFlowGraphMapping {
3848
3856
  * @param glTFObject the glTF object
3849
3857
  * @returns true if validated, false if not.
3850
3858
  */
3851
- validation?: (gltfBlock: IKHRInteractivity_Node, interactivityGraph: IKHRInteractivity_Graph, glTFObject?: IGLTF) => boolean;
3859
+ validation?: (gltfBlock: IKHRInteractivity_Node, interactivityGraph: IKHRInteractivity_Graph, glTFObject?: IGLTF) => {
3860
+ valid: boolean;
3861
+ error?: string;
3862
+ };
3852
3863
  /**
3853
3864
  * This is used if we need extra information for the constructor/options that is not provided directly by the glTF node.
3854
3865
  * This function can return more than one node, if extra nodes are needed for this block to function correctly.
@@ -7197,6 +7208,14 @@ declare module BABYLON {
7197
7208
  }
7198
7209
  declare module BABYLON.GLTF2.Loader.Extensions {
7199
7210
  /**
7211
+ * Adding an exception here will break traversing through the glTF object tree.
7212
+ * This is used for properties that might not be in the glTF object model, but are optional and have a default value.
7213
+ * For example, the path /nodes/\{\}/extensions/KHR_node_visibility/visible is optional - the object can be deferred without the object fully existing.
7214
+ */
7215
+ export var OptionalPathExceptionsList: {
7216
+ regex: RegExp;
7217
+ }[];
7218
+ /**
7200
7219
  * A converter that takes a glTF Object Model JSON Pointer
7201
7220
  * and transforms it into an ObjectAccessorContainer, allowing
7202
7221
  * objects referenced in the glTF to be associated with their
@@ -9117,7 +9136,10 @@ declare module BABYLON.GLTF2.Loader.Extensions {
9117
9136
  * @param glTFObject the glTF object
9118
9137
  * @returns true if validated, false if not.
9119
9138
  */
9120
- validation?: (gltfBlock: BABYLON.GLTF2.IKHRInteractivity_Node, interactivityGraph: BABYLON.GLTF2.IKHRInteractivity_Graph, glTFObject?: BABYLON.GLTF2.Loader.IGLTF) => boolean;
9139
+ validation?: (gltfBlock: BABYLON.GLTF2.IKHRInteractivity_Node, interactivityGraph: BABYLON.GLTF2.IKHRInteractivity_Graph, glTFObject?: BABYLON.GLTF2.Loader.IGLTF) => {
9140
+ valid: boolean;
9141
+ error?: string;
9142
+ };
9121
9143
  /**
9122
9144
  * This is used if we need extra information for the constructor/options that is not provided directly by the glTF node.
9123
9145
  * This function can return more than one node, if extra nodes are needed for this block to function correctly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "8.2.0",
3
+ "version": "8.2.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": "^8.2.0",
19
- "babylonjs-gltf2interface": "^8.2.0"
18
+ "babylonjs": "^8.2.2",
19
+ "babylonjs-gltf2interface": "^8.2.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",