@babylonjs/loaders 5.0.0-rc.7 → 5.0.0-rc.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/OBJ/index.d.ts +4 -4
  2. package/OBJ/index.js +4 -4
  3. package/OBJ/mtlFileLoader.d.ts +41 -41
  4. package/OBJ/mtlFileLoader.js +232 -232
  5. package/OBJ/objFileLoader.d.ts +126 -126
  6. package/OBJ/objFileLoader.js +296 -296
  7. package/OBJ/objLoadingOptions.d.ts +43 -43
  8. package/OBJ/objLoadingOptions.js +1 -1
  9. package/OBJ/solidParser.d.ts +154 -154
  10. package/OBJ/solidParser.js +693 -693
  11. package/STL/index.d.ts +1 -1
  12. package/STL/index.js +1 -1
  13. package/STL/stlFileLoader.d.ts +64 -64
  14. package/STL/stlFileLoader.js +233 -233
  15. package/glTF/1.0/glTFBinaryExtension.d.ts +13 -13
  16. package/glTF/1.0/glTFBinaryExtension.js +60 -60
  17. package/glTF/1.0/glTFLoader.d.ts +136 -136
  18. package/glTF/1.0/glTFLoader.js +1815 -1815
  19. package/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -412
  20. package/glTF/1.0/glTFLoaderInterfaces.js +95 -95
  21. package/glTF/1.0/glTFLoaderUtils.d.ts +62 -62
  22. package/glTF/1.0/glTFLoaderUtils.js +250 -250
  23. package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +10 -10
  24. package/glTF/1.0/glTFMaterialsCommonExtension.js +129 -129
  25. package/glTF/1.0/index.d.ts +5 -5
  26. package/glTF/1.0/index.js +5 -5
  27. package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +43 -43
  28. package/glTF/2.0/Extensions/EXT_lights_image_based.js +117 -117
  29. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +36 -36
  30. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +88 -88
  31. package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +34 -34
  32. package/glTF/2.0/Extensions/EXT_meshopt_compression.js +49 -49
  33. package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +29 -29
  34. package/glTF/2.0/Extensions/EXT_texture_webp.js +40 -40
  35. package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +50 -50
  36. package/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -73
  37. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +39 -39
  38. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +112 -112
  39. package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +36 -36
  40. package/glTF/2.0/Extensions/KHR_lights_punctual.js +89 -89
  41. package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +39 -39
  42. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +94 -94
  43. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +38 -38
  44. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +53 -53
  45. package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +42 -42
  46. package/glTF/2.0/Extensions/KHR_materials_ior.js +62 -62
  47. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +38 -38
  48. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -80
  49. package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +39 -39
  50. package/glTF/2.0/Extensions/KHR_materials_sheen.js +84 -84
  51. package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +38 -38
  52. package/glTF/2.0/Extensions/KHR_materials_specular.js +74 -74
  53. package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +39 -39
  54. package/glTF/2.0/Extensions/KHR_materials_translucency.js +83 -83
  55. package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +38 -38
  56. package/glTF/2.0/Extensions/KHR_materials_transmission.js +288 -288
  57. package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +38 -38
  58. package/glTF/2.0/Extensions/KHR_materials_unlit.js +73 -73
  59. package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +87 -87
  60. package/glTF/2.0/Extensions/KHR_materials_variants.js +254 -254
  61. package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +39 -39
  62. package/glTF/2.0/Extensions/KHR_materials_volume.js +85 -85
  63. package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +22 -22
  64. package/glTF/2.0/Extensions/KHR_mesh_quantization.js +23 -23
  65. package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +29 -29
  66. package/glTF/2.0/Extensions/KHR_texture_basisu.js +40 -40
  67. package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +33 -33
  68. package/glTF/2.0/Extensions/KHR_texture_transform.js +61 -61
  69. package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +32 -32
  70. package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +49 -49
  71. package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +54 -54
  72. package/glTF/2.0/Extensions/MSFT_audio_emitter.js +240 -240
  73. package/glTF/2.0/Extensions/MSFT_lod.d.ts +109 -109
  74. package/glTF/2.0/Extensions/MSFT_lod.js +369 -369
  75. package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +14 -14
  76. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +36 -36
  77. package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +14 -14
  78. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +36 -36
  79. package/glTF/2.0/Extensions/index.d.ts +26 -26
  80. package/glTF/2.0/Extensions/index.js +26 -26
  81. package/glTF/2.0/glTFLoader.d.ts +405 -405
  82. package/glTF/2.0/glTFLoader.js +2366 -2366
  83. package/glTF/2.0/glTFLoaderExtension.d.ts +152 -152
  84. package/glTF/2.0/glTFLoaderExtension.js +1 -1
  85. package/glTF/2.0/glTFLoaderInterfaces.d.ts +211 -211
  86. package/glTF/2.0/glTFLoaderInterfaces.js +1 -1
  87. package/glTF/2.0/index.d.ts +4 -4
  88. package/glTF/2.0/index.js +4 -4
  89. package/glTF/glTFFileLoader.d.ts +433 -433
  90. package/glTF/glTFFileLoader.js +927 -927
  91. package/glTF/glTFValidation.d.ts +29 -29
  92. package/glTF/glTFValidation.js +123 -123
  93. package/glTF/index.d.ts +5 -5
  94. package/glTF/index.js +5 -5
  95. package/index.d.ts +3 -3
  96. package/index.js +3 -3
  97. package/legacy/legacy-glTF.d.ts +2 -2
  98. package/legacy/legacy-glTF.js +18 -18
  99. package/legacy/legacy-glTF1.d.ts +2 -2
  100. package/legacy/legacy-glTF1.js +14 -14
  101. package/legacy/legacy-glTF1FileLoader.d.ts +2 -2
  102. package/legacy/legacy-glTF1FileLoader.js +3 -3
  103. package/legacy/legacy-glTF2.d.ts +2 -2
  104. package/legacy/legacy-glTF2.js +32 -32
  105. package/legacy/legacy-glTF2FileLoader.d.ts +2 -2
  106. package/legacy/legacy-glTF2FileLoader.js +3 -3
  107. package/legacy/legacy-glTFFileLoader.d.ts +3 -3
  108. package/legacy/legacy-glTFFileLoader.js +4 -4
  109. package/legacy/legacy-objFileLoader.d.ts +1 -1
  110. package/legacy/legacy-objFileLoader.js +12 -12
  111. package/legacy/legacy-stlFileLoader.d.ts +1 -1
  112. package/legacy/legacy-stlFileLoader.js +12 -12
  113. package/legacy/legacy.d.ts +6 -6
  114. package/legacy/legacy.js +7 -7
  115. package/package.json +3 -3
@@ -1,152 +1,152 @@
1
- import { Nullable } from "@babylonjs/core/types.js";
2
- import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup.js";
3
- import { Material } from "@babylonjs/core/Materials/material.js";
4
- import { Camera } from "@babylonjs/core/Cameras/camera.js";
5
- import { Geometry } from "@babylonjs/core/Meshes/geometry.js";
6
- import { TransformNode } from "@babylonjs/core/Meshes/transformNode.js";
7
- import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture.js";
8
- import { Mesh } from "@babylonjs/core/Meshes/mesh.js";
9
- import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh.js";
10
- import { IDisposable } from "@babylonjs/core/scene.js";
11
- import { IScene, INode, IMesh, ISkin, ICamera, IMeshPrimitive, IMaterial, ITextureInfo, IAnimation, ITexture, IBufferView, IBuffer } from "./glTFLoaderInterfaces";
12
- import { IGLTFLoaderExtension as IGLTFBaseLoaderExtension } from "../glTFFileLoader";
13
- import { IProperty } from "babylonjs-gltf2interface";
14
- /**
15
- * Interface for a glTF loader extension.
16
- */
17
- export interface IGLTFLoaderExtension extends IGLTFBaseLoaderExtension, IDisposable {
18
- /**
19
- * Called after the loader state changes to LOADING.
20
- */
21
- onLoading?(): void;
22
- /**
23
- * Called after the loader state changes to READY.
24
- */
25
- onReady?(): void;
26
- /**
27
- * Define this method to modify the default behavior when loading scenes.
28
- * @param context The context when loading the asset
29
- * @param scene The glTF scene property
30
- * @returns A promise that resolves when the load is complete or null if not handled
31
- */
32
- loadSceneAsync?(context: string, scene: IScene): Nullable<Promise<void>>;
33
- /**
34
- * Define this method to modify the default behavior when loading nodes.
35
- * @param context The context when loading the asset
36
- * @param node The glTF node property
37
- * @param assign A function called synchronously after parsing the glTF properties
38
- * @returns A promise that resolves with the loaded Babylon transform node when the load is complete or null if not handled
39
- */
40
- loadNodeAsync?(context: string, node: INode, assign: (babylonMesh: TransformNode) => void): Nullable<Promise<TransformNode>>;
41
- /**
42
- * Define this method to modify the default behavior when loading cameras.
43
- * @param context The context when loading the asset
44
- * @param camera The glTF camera property
45
- * @param assign A function called synchronously after parsing the glTF properties
46
- * @returns A promise that resolves with the loaded Babylon camera when the load is complete or null if not handled
47
- */
48
- loadCameraAsync?(context: string, camera: ICamera, assign: (babylonCamera: Camera) => void): Nullable<Promise<Camera>>;
49
- /**
50
- * @hidden
51
- * Define this method to modify the default behavior when loading vertex data for mesh primitives.
52
- * @param context The context when loading the asset
53
- * @param primitive The glTF mesh primitive property
54
- * @returns A promise that resolves with the loaded geometry when the load is complete or null if not handled
55
- */
56
- _loadVertexDataAsync?(context: string, primitive: IMeshPrimitive, babylonMesh: Mesh): Nullable<Promise<Geometry>>;
57
- /**
58
- * @hidden
59
- * Define this method to modify the default behavior when loading data for mesh primitives.
60
- * @param context The context when loading the asset
61
- * @param name The mesh name when loading the asset
62
- * @param node The glTF node when loading the asset
63
- * @param mesh The glTF mesh when loading the asset
64
- * @param primitive The glTF mesh primitive property
65
- * @param assign A function called synchronously after parsing the glTF properties
66
- * @returns A promise that resolves with the loaded mesh when the load is complete or null if not handled
67
- */
68
- _loadMeshPrimitiveAsync?(context: string, name: string, node: INode, mesh: IMesh, primitive: IMeshPrimitive, assign: (babylonMesh: AbstractMesh) => void): Nullable<Promise<AbstractMesh>>;
69
- /**
70
- * @hidden
71
- * Define this method to modify the default behavior when loading materials. Load material creates the material and then loads material properties.
72
- * @param context The context when loading the asset
73
- * @param material The glTF material property
74
- * @param assign A function called synchronously after parsing the glTF properties
75
- * @returns A promise that resolves with the loaded Babylon material when the load is complete or null if not handled
76
- */
77
- _loadMaterialAsync?(context: string, material: IMaterial, babylonMesh: Nullable<Mesh>, babylonDrawMode: number, assign: (babylonMaterial: Material) => void): Nullable<Promise<Material>>;
78
- /**
79
- * Define this method to modify the default behavior when creating materials.
80
- * @param context The context when loading the asset
81
- * @param material The glTF material property
82
- * @param babylonDrawMode The draw mode for the Babylon material
83
- * @returns The Babylon material or null if not handled
84
- */
85
- createMaterial?(context: string, material: IMaterial, babylonDrawMode: number): Nullable<Material>;
86
- /**
87
- * Define this method to modify the default behavior when loading material properties.
88
- * @param context The context when loading the asset
89
- * @param material The glTF material property
90
- * @param babylonMaterial The Babylon material
91
- * @returns A promise that resolves when the load is complete or null if not handled
92
- */
93
- loadMaterialPropertiesAsync?(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
94
- /**
95
- * Define this method to modify the default behavior when loading texture infos.
96
- * @param context The context when loading the asset
97
- * @param textureInfo The glTF texture info property
98
- * @param assign A function called synchronously after parsing the glTF properties
99
- * @returns A promise that resolves with the loaded Babylon texture when the load is complete or null if not handled
100
- */
101
- loadTextureInfoAsync?(context: string, textureInfo: ITextureInfo, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
102
- /**
103
- * @hidden
104
- * Define this method to modify the default behavior when loading textures.
105
- * @param context The context when loading the asset
106
- * @param texture The glTF texture property
107
- * @param assign A function called synchronously after parsing the glTF properties
108
- * @returns A promise that resolves with the loaded Babylon texture when the load is complete or null if not handled
109
- */
110
- _loadTextureAsync?(context: string, texture: ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
111
- /**
112
- * Define this method to modify the default behavior when loading animations.
113
- * @param context The context when loading the asset
114
- * @param animation The glTF animation property
115
- * @returns A promise that resolves with the loaded Babylon animation group when the load is complete or null if not handled
116
- */
117
- loadAnimationAsync?(context: string, animation: IAnimation): Nullable<Promise<AnimationGroup>>;
118
- /**
119
- * @hidden
120
- * Define this method to modify the default behavior when loading skins.
121
- * @param context The context when loading the asset
122
- * @param node The glTF node property
123
- * @param skin The glTF skin property
124
- * @returns A promise that resolves when the load is complete or null if not handled
125
- */
126
- _loadSkinAsync?(context: string, node: INode, skin: ISkin): Nullable<Promise<void>>;
127
- /**
128
- * @hidden
129
- * Define this method to modify the default behavior when loading uris.
130
- * @param context The context when loading the asset
131
- * @param property The glTF property associated with the uri
132
- * @param uri The uri to load
133
- * @returns A promise that resolves with the loaded data when the load is complete or null if not handled
134
- */
135
- _loadUriAsync?(context: string, property: IProperty, uri: string): Nullable<Promise<ArrayBufferView>>;
136
- /**
137
- * Define this method to modify the default behavior when loading buffer views.
138
- * @param context The context when loading the asset
139
- * @param bufferView The glTF buffer view property
140
- * @returns A promise that resolves with the loaded data when the load is complete or null if not handled
141
- */
142
- loadBufferViewAsync?(context: string, bufferView: IBufferView): Nullable<Promise<ArrayBufferView>>;
143
- /**
144
- * Define this method to modify the default behavior when loading buffers.
145
- * @param context The context when loading the asset
146
- * @param buffer The glTF buffer property
147
- * @param byteOffset The byte offset to load
148
- * @param byteLength The byte length to load
149
- * @returns A promise that resolves with the loaded data when the load is complete or null if not handled
150
- */
151
- loadBufferAsync?(context: string, buffer: IBuffer, byteOffset: number, byteLength: number): Nullable<Promise<ArrayBufferView>>;
152
- }
1
+ import { Nullable } from "@babylonjs/core/types.js";
2
+ import { AnimationGroup } from "@babylonjs/core/Animations/animationGroup.js";
3
+ import { Material } from "@babylonjs/core/Materials/material.js";
4
+ import { Camera } from "@babylonjs/core/Cameras/camera.js";
5
+ import { Geometry } from "@babylonjs/core/Meshes/geometry.js";
6
+ import { TransformNode } from "@babylonjs/core/Meshes/transformNode.js";
7
+ import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture.js";
8
+ import { Mesh } from "@babylonjs/core/Meshes/mesh.js";
9
+ import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh.js";
10
+ import { IDisposable } from "@babylonjs/core/scene.js";
11
+ import { IScene, INode, IMesh, ISkin, ICamera, IMeshPrimitive, IMaterial, ITextureInfo, IAnimation, ITexture, IBufferView, IBuffer } from "./glTFLoaderInterfaces";
12
+ import { IGLTFLoaderExtension as IGLTFBaseLoaderExtension } from "../glTFFileLoader";
13
+ import { IProperty } from "babylonjs-gltf2interface";
14
+ /**
15
+ * Interface for a glTF loader extension.
16
+ */
17
+ export interface IGLTFLoaderExtension extends IGLTFBaseLoaderExtension, IDisposable {
18
+ /**
19
+ * Called after the loader state changes to LOADING.
20
+ */
21
+ onLoading?(): void;
22
+ /**
23
+ * Called after the loader state changes to READY.
24
+ */
25
+ onReady?(): void;
26
+ /**
27
+ * Define this method to modify the default behavior when loading scenes.
28
+ * @param context The context when loading the asset
29
+ * @param scene The glTF scene property
30
+ * @returns A promise that resolves when the load is complete or null if not handled
31
+ */
32
+ loadSceneAsync?(context: string, scene: IScene): Nullable<Promise<void>>;
33
+ /**
34
+ * Define this method to modify the default behavior when loading nodes.
35
+ * @param context The context when loading the asset
36
+ * @param node The glTF node property
37
+ * @param assign A function called synchronously after parsing the glTF properties
38
+ * @returns A promise that resolves with the loaded Babylon transform node when the load is complete or null if not handled
39
+ */
40
+ loadNodeAsync?(context: string, node: INode, assign: (babylonMesh: TransformNode) => void): Nullable<Promise<TransformNode>>;
41
+ /**
42
+ * Define this method to modify the default behavior when loading cameras.
43
+ * @param context The context when loading the asset
44
+ * @param camera The glTF camera property
45
+ * @param assign A function called synchronously after parsing the glTF properties
46
+ * @returns A promise that resolves with the loaded Babylon camera when the load is complete or null if not handled
47
+ */
48
+ loadCameraAsync?(context: string, camera: ICamera, assign: (babylonCamera: Camera) => void): Nullable<Promise<Camera>>;
49
+ /**
50
+ * @hidden
51
+ * Define this method to modify the default behavior when loading vertex data for mesh primitives.
52
+ * @param context The context when loading the asset
53
+ * @param primitive The glTF mesh primitive property
54
+ * @returns A promise that resolves with the loaded geometry when the load is complete or null if not handled
55
+ */
56
+ _loadVertexDataAsync?(context: string, primitive: IMeshPrimitive, babylonMesh: Mesh): Nullable<Promise<Geometry>>;
57
+ /**
58
+ * @hidden
59
+ * Define this method to modify the default behavior when loading data for mesh primitives.
60
+ * @param context The context when loading the asset
61
+ * @param name The mesh name when loading the asset
62
+ * @param node The glTF node when loading the asset
63
+ * @param mesh The glTF mesh when loading the asset
64
+ * @param primitive The glTF mesh primitive property
65
+ * @param assign A function called synchronously after parsing the glTF properties
66
+ * @returns A promise that resolves with the loaded mesh when the load is complete or null if not handled
67
+ */
68
+ _loadMeshPrimitiveAsync?(context: string, name: string, node: INode, mesh: IMesh, primitive: IMeshPrimitive, assign: (babylonMesh: AbstractMesh) => void): Nullable<Promise<AbstractMesh>>;
69
+ /**
70
+ * @hidden
71
+ * Define this method to modify the default behavior when loading materials. Load material creates the material and then loads material properties.
72
+ * @param context The context when loading the asset
73
+ * @param material The glTF material property
74
+ * @param assign A function called synchronously after parsing the glTF properties
75
+ * @returns A promise that resolves with the loaded Babylon material when the load is complete or null if not handled
76
+ */
77
+ _loadMaterialAsync?(context: string, material: IMaterial, babylonMesh: Nullable<Mesh>, babylonDrawMode: number, assign: (babylonMaterial: Material) => void): Nullable<Promise<Material>>;
78
+ /**
79
+ * Define this method to modify the default behavior when creating materials.
80
+ * @param context The context when loading the asset
81
+ * @param material The glTF material property
82
+ * @param babylonDrawMode The draw mode for the Babylon material
83
+ * @returns The Babylon material or null if not handled
84
+ */
85
+ createMaterial?(context: string, material: IMaterial, babylonDrawMode: number): Nullable<Material>;
86
+ /**
87
+ * Define this method to modify the default behavior when loading material properties.
88
+ * @param context The context when loading the asset
89
+ * @param material The glTF material property
90
+ * @param babylonMaterial The Babylon material
91
+ * @returns A promise that resolves when the load is complete or null if not handled
92
+ */
93
+ loadMaterialPropertiesAsync?(context: string, material: IMaterial, babylonMaterial: Material): Nullable<Promise<void>>;
94
+ /**
95
+ * Define this method to modify the default behavior when loading texture infos.
96
+ * @param context The context when loading the asset
97
+ * @param textureInfo The glTF texture info property
98
+ * @param assign A function called synchronously after parsing the glTF properties
99
+ * @returns A promise that resolves with the loaded Babylon texture when the load is complete or null if not handled
100
+ */
101
+ loadTextureInfoAsync?(context: string, textureInfo: ITextureInfo, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
102
+ /**
103
+ * @hidden
104
+ * Define this method to modify the default behavior when loading textures.
105
+ * @param context The context when loading the asset
106
+ * @param texture The glTF texture property
107
+ * @param assign A function called synchronously after parsing the glTF properties
108
+ * @returns A promise that resolves with the loaded Babylon texture when the load is complete or null if not handled
109
+ */
110
+ _loadTextureAsync?(context: string, texture: ITexture, assign: (babylonTexture: BaseTexture) => void): Nullable<Promise<BaseTexture>>;
111
+ /**
112
+ * Define this method to modify the default behavior when loading animations.
113
+ * @param context The context when loading the asset
114
+ * @param animation The glTF animation property
115
+ * @returns A promise that resolves with the loaded Babylon animation group when the load is complete or null if not handled
116
+ */
117
+ loadAnimationAsync?(context: string, animation: IAnimation): Nullable<Promise<AnimationGroup>>;
118
+ /**
119
+ * @hidden
120
+ * Define this method to modify the default behavior when loading skins.
121
+ * @param context The context when loading the asset
122
+ * @param node The glTF node property
123
+ * @param skin The glTF skin property
124
+ * @returns A promise that resolves when the load is complete or null if not handled
125
+ */
126
+ _loadSkinAsync?(context: string, node: INode, skin: ISkin): Nullable<Promise<void>>;
127
+ /**
128
+ * @hidden
129
+ * Define this method to modify the default behavior when loading uris.
130
+ * @param context The context when loading the asset
131
+ * @param property The glTF property associated with the uri
132
+ * @param uri The uri to load
133
+ * @returns A promise that resolves with the loaded data when the load is complete or null if not handled
134
+ */
135
+ _loadUriAsync?(context: string, property: IProperty, uri: string): Nullable<Promise<ArrayBufferView>>;
136
+ /**
137
+ * Define this method to modify the default behavior when loading buffer views.
138
+ * @param context The context when loading the asset
139
+ * @param bufferView The glTF buffer view property
140
+ * @returns A promise that resolves with the loaded data when the load is complete or null if not handled
141
+ */
142
+ loadBufferViewAsync?(context: string, bufferView: IBufferView): Nullable<Promise<ArrayBufferView>>;
143
+ /**
144
+ * Define this method to modify the default behavior when loading buffers.
145
+ * @param context The context when loading the asset
146
+ * @param buffer The glTF buffer property
147
+ * @param byteOffset The byte offset to load
148
+ * @param byteLength The byte length to load
149
+ * @returns A promise that resolves with the loaded data when the load is complete or null if not handled
150
+ */
151
+ loadBufferAsync?(context: string, buffer: IBuffer, byteOffset: number, byteLength: number): Nullable<Promise<ArrayBufferView>>;
152
+ }
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=glTFLoaderExtension.js.map