babylonjs-loaders 7.20.0 → 7.21.0
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.
- package/babylon.glTF1FileLoader.js +55 -20
- package/babylon.glTF1FileLoader.min.js +1 -1
- package/babylon.glTF1FileLoader.min.js.map +1 -1
- package/babylon.glTF2FileLoader.js +55 -20
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +55 -20
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylon.objFileLoader.js +48 -10
- package/babylon.objFileLoader.min.js +1 -1
- package/babylon.objFileLoader.min.js.map +1 -1
- package/babylon.stlFileLoader.js +2 -4
- package/babylon.stlFileLoader.min.js +1 -1
- package/babylon.stlFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +103 -16
- package/babylonjs.loaders.js +105 -36
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +147 -22
- package/package.json +3 -3
|
@@ -169,8 +169,12 @@ type DefaultExtensionOptions<BaseExtensionOptions> = {
|
|
|
169
169
|
*/
|
|
170
170
|
enabled?: boolean;
|
|
171
171
|
} & BaseExtensionOptions;
|
|
172
|
-
class GLTFLoaderOptions {
|
|
173
|
-
|
|
172
|
+
abstract class GLTFLoaderOptions {
|
|
173
|
+
protected copyFrom(options?: Partial<Readonly<GLTFLoaderOptions>>): void;
|
|
174
|
+
/**
|
|
175
|
+
* Raised when the asset has been parsed
|
|
176
|
+
*/
|
|
177
|
+
abstract onParsed: (loaderData: IGLTFLoaderData) => void;
|
|
174
178
|
/**
|
|
175
179
|
* The coordinate system mode. Defaults to AUTO.
|
|
176
180
|
*/
|
|
@@ -260,6 +264,28 @@ class GLTFLoaderOptions {
|
|
|
260
264
|
* You can also pass null if you don't want a root node to be created.
|
|
261
265
|
*/
|
|
262
266
|
customRootNode?: Nullable<TransformNode>;
|
|
267
|
+
/**
|
|
268
|
+
* Callback raised when the loader creates a mesh after parsing the glTF properties of the mesh.
|
|
269
|
+
* Note that the callback is called as soon as the mesh object is created, meaning some data may not have been setup yet for this mesh (vertex data, morph targets, material, ...)
|
|
270
|
+
*/
|
|
271
|
+
abstract onMeshLoaded: (mesh: AbstractMesh) => void;
|
|
272
|
+
/**
|
|
273
|
+
* Callback raised when the loader creates a skin after parsing the glTF properties of the skin node.
|
|
274
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/importers/glTF/glTFSkinning#ignoring-the-transform-of-the-skinned-mesh
|
|
275
|
+
*/
|
|
276
|
+
abstract onSkinLoaded: (node: TransformNode, skinnedNode: TransformNode) => void;
|
|
277
|
+
/**
|
|
278
|
+
* Callback raised when the loader creates a texture after parsing the glTF properties of the texture.
|
|
279
|
+
*/
|
|
280
|
+
abstract onTextureLoaded: (texture: BaseTexture) => void;
|
|
281
|
+
/**
|
|
282
|
+
* Callback raised when the loader creates a material after parsing the glTF properties of the material.
|
|
283
|
+
*/
|
|
284
|
+
abstract onMaterialLoaded: (material: Material) => void;
|
|
285
|
+
/**
|
|
286
|
+
* Callback raised when the loader creates a camera after parsing the glTF properties of the camera.
|
|
287
|
+
*/
|
|
288
|
+
abstract onCameraLoaded: (camera: Camera) => void;
|
|
263
289
|
/**
|
|
264
290
|
* Defines options for glTF extensions.
|
|
265
291
|
*/
|
|
@@ -277,6 +303,11 @@ export class GLTFFileLoader extends GLTFLoaderOptions implements IDisposable, IS
|
|
|
277
303
|
static _CreateGLTF1Loader: (parent: GLTFFileLoader) => IGLTFLoader;
|
|
278
304
|
/** @internal */
|
|
279
305
|
static _CreateGLTF2Loader: (parent: GLTFFileLoader) => IGLTFLoader;
|
|
306
|
+
/**
|
|
307
|
+
* Creates a new glTF file loader.
|
|
308
|
+
* @param options The options for the loader
|
|
309
|
+
*/
|
|
310
|
+
constructor(options?: Partial<Readonly<GLTFLoaderOptions>>);
|
|
280
311
|
/**
|
|
281
312
|
* Raised when the asset has been parsed
|
|
282
313
|
*/
|
|
@@ -311,7 +342,7 @@ export class GLTFFileLoader extends GLTFLoaderOptions implements IDisposable, IS
|
|
|
311
342
|
*/
|
|
312
343
|
set onMeshLoaded(callback: (mesh: AbstractMesh) => void);
|
|
313
344
|
/**
|
|
314
|
-
*
|
|
345
|
+
* Observable raised when the loader creates a skin after parsing the glTF properties of the skin node.
|
|
315
346
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/importers/glTF/glTFSkinning#ignoring-the-transform-of-the-skinned-mesh
|
|
316
347
|
* @param node - the transform node that corresponds to the original glTF skin node used for animations
|
|
317
348
|
* @param skinnedNode - the transform node that is the skinned mesh itself or the parent of the skinned meshes
|
|
@@ -320,6 +351,12 @@ export class GLTFFileLoader extends GLTFLoaderOptions implements IDisposable, IS
|
|
|
320
351
|
node: TransformNode;
|
|
321
352
|
skinnedNode: TransformNode;
|
|
322
353
|
}>;
|
|
354
|
+
private _onSkinLoadedObserver;
|
|
355
|
+
/**
|
|
356
|
+
* Callback raised when the loader creates a skin after parsing the glTF properties of the skin node.
|
|
357
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/importers/glTF/glTFSkinning#ignoring-the-transform-of-the-skinned-mesh
|
|
358
|
+
*/
|
|
359
|
+
set onSkinLoaded(callback: (node: TransformNode, skinnedNode: TransformNode) => void);
|
|
323
360
|
/**
|
|
324
361
|
* Observable raised when the loader creates a texture after parsing the glTF properties of the texture.
|
|
325
362
|
*/
|
|
@@ -1578,13 +1615,12 @@ import { INode, IMaterial, IBuffer, IScene } from "babylonjs-loaders/glTF/2.0/gl
|
|
|
1578
1615
|
import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
|
|
1579
1616
|
import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
|
|
1580
1617
|
import { IProperty } from "babylonjs-gltf2interface";
|
|
1581
|
-
const NAME = "MSFT_lod";
|
|
1582
1618
|
module "babylonjs-loaders/glTF/glTFFileLoader" {
|
|
1583
1619
|
interface GLTFLoaderExtensionOptions {
|
|
1584
1620
|
/**
|
|
1585
1621
|
* Defines options for the MSFT_lod extension.
|
|
1586
1622
|
*/
|
|
1587
|
-
[
|
|
1623
|
+
["MSFT_lod"]?: Partial<{
|
|
1588
1624
|
/**
|
|
1589
1625
|
* Maximum number of LODs to load, starting from the lowest LOD.
|
|
1590
1626
|
*/
|
|
@@ -1674,7 +1710,6 @@ export class MSFT_lod implements IGLTFLoaderExtension {
|
|
|
1674
1710
|
private _disposeTransformNode;
|
|
1675
1711
|
private _disposeMaterials;
|
|
1676
1712
|
}
|
|
1677
|
-
export {};
|
|
1678
1713
|
|
|
1679
1714
|
}
|
|
1680
1715
|
declare module "babylonjs-loaders/glTF/2.0/Extensions/MSFT_audio_emitter" {
|
|
@@ -4071,6 +4106,9 @@ export class SolidParser {
|
|
|
4071
4106
|
private _setDataForCurrentFaceWithPattern5;
|
|
4072
4107
|
private _addPreviousObjMesh;
|
|
4073
4108
|
private _optimizeNormals;
|
|
4109
|
+
private static _IsLineElement;
|
|
4110
|
+
private static _IsObjectElement;
|
|
4111
|
+
private static _IsGroupElement;
|
|
4074
4112
|
/**
|
|
4075
4113
|
* Function used to parse an OBJ string
|
|
4076
4114
|
* @param meshesNames defines the list of meshes to load (all if not defined)
|
|
@@ -4520,8 +4558,12 @@ declare module BABYLON {
|
|
|
4520
4558
|
*/
|
|
4521
4559
|
enabled?: boolean;
|
|
4522
4560
|
} & BaseExtensionOptions;
|
|
4523
|
-
class GLTFLoaderOptions {
|
|
4524
|
-
|
|
4561
|
+
abstract class GLTFLoaderOptions {
|
|
4562
|
+
protected copyFrom(options?: Partial<Readonly<GLTFLoaderOptions>>): void;
|
|
4563
|
+
/**
|
|
4564
|
+
* Raised when the asset has been parsed
|
|
4565
|
+
*/
|
|
4566
|
+
abstract onParsed: (loaderData: IGLTFLoaderData) => void;
|
|
4525
4567
|
/**
|
|
4526
4568
|
* The coordinate system mode. Defaults to AUTO.
|
|
4527
4569
|
*/
|
|
@@ -4611,6 +4653,28 @@ declare module BABYLON {
|
|
|
4611
4653
|
* You can also pass null if you don't want a root node to be created.
|
|
4612
4654
|
*/
|
|
4613
4655
|
customRootNode?: Nullable<TransformNode>;
|
|
4656
|
+
/**
|
|
4657
|
+
* Callback raised when the loader creates a mesh after parsing the glTF properties of the mesh.
|
|
4658
|
+
* Note that the callback is called as soon as the mesh object is created, meaning some data may not have been setup yet for this mesh (vertex data, morph targets, material, ...)
|
|
4659
|
+
*/
|
|
4660
|
+
abstract onMeshLoaded: (mesh: AbstractMesh) => void;
|
|
4661
|
+
/**
|
|
4662
|
+
* Callback raised when the loader creates a skin after parsing the glTF properties of the skin node.
|
|
4663
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/importers/glTF/glTFSkinning#ignoring-the-transform-of-the-skinned-mesh
|
|
4664
|
+
*/
|
|
4665
|
+
abstract onSkinLoaded: (node: TransformNode, skinnedNode: TransformNode) => void;
|
|
4666
|
+
/**
|
|
4667
|
+
* Callback raised when the loader creates a texture after parsing the glTF properties of the texture.
|
|
4668
|
+
*/
|
|
4669
|
+
abstract onTextureLoaded: (texture: BaseTexture) => void;
|
|
4670
|
+
/**
|
|
4671
|
+
* Callback raised when the loader creates a material after parsing the glTF properties of the material.
|
|
4672
|
+
*/
|
|
4673
|
+
abstract onMaterialLoaded: (material: Material) => void;
|
|
4674
|
+
/**
|
|
4675
|
+
* Callback raised when the loader creates a camera after parsing the glTF properties of the camera.
|
|
4676
|
+
*/
|
|
4677
|
+
abstract onCameraLoaded: (camera: Camera) => void;
|
|
4614
4678
|
/**
|
|
4615
4679
|
* Defines options for glTF extensions.
|
|
4616
4680
|
*/
|
|
@@ -4628,6 +4692,11 @@ declare module BABYLON {
|
|
|
4628
4692
|
static _CreateGLTF1Loader: (parent: GLTFFileLoader) => IGLTFLoader;
|
|
4629
4693
|
/** @internal */
|
|
4630
4694
|
static _CreateGLTF2Loader: (parent: GLTFFileLoader) => IGLTFLoader;
|
|
4695
|
+
/**
|
|
4696
|
+
* Creates a new glTF file loader.
|
|
4697
|
+
* @param options The options for the loader
|
|
4698
|
+
*/
|
|
4699
|
+
constructor(options?: Partial<Readonly<GLTFLoaderOptions>>);
|
|
4631
4700
|
/**
|
|
4632
4701
|
* Raised when the asset has been parsed
|
|
4633
4702
|
*/
|
|
@@ -4662,7 +4731,7 @@ declare module BABYLON {
|
|
|
4662
4731
|
*/
|
|
4663
4732
|
set onMeshLoaded(callback: (mesh: AbstractMesh) => void);
|
|
4664
4733
|
/**
|
|
4665
|
-
*
|
|
4734
|
+
* Observable raised when the loader creates a skin after parsing the glTF properties of the skin node.
|
|
4666
4735
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/importers/glTF/glTFSkinning#ignoring-the-transform-of-the-skinned-mesh
|
|
4667
4736
|
* @param node - the transform node that corresponds to the original glTF skin node used for animations
|
|
4668
4737
|
* @param skinnedNode - the transform node that is the skinned mesh itself or the parent of the skinned meshes
|
|
@@ -4671,6 +4740,12 @@ declare module BABYLON {
|
|
|
4671
4740
|
node: TransformNode;
|
|
4672
4741
|
skinnedNode: TransformNode;
|
|
4673
4742
|
}>;
|
|
4743
|
+
private _onSkinLoadedObserver;
|
|
4744
|
+
/**
|
|
4745
|
+
* Callback raised when the loader creates a skin after parsing the glTF properties of the skin node.
|
|
4746
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/importers/glTF/glTFSkinning#ignoring-the-transform-of-the-skinned-mesh
|
|
4747
|
+
*/
|
|
4748
|
+
set onSkinLoaded(callback: (node: TransformNode, skinnedNode: TransformNode) => void);
|
|
4674
4749
|
/**
|
|
4675
4750
|
* Observable raised when the loader creates a texture after parsing the glTF properties of the texture.
|
|
4676
4751
|
*/
|
|
@@ -4882,6 +4957,7 @@ declare module BABYLON.GLTF2 {
|
|
|
4882
4957
|
}
|
|
4883
4958
|
declare module BABYLON {
|
|
4884
4959
|
|
|
4960
|
+
|
|
4885
4961
|
}
|
|
4886
4962
|
declare module BABYLON.GLTF2.Loader {
|
|
4887
4963
|
/**
|
|
@@ -5131,6 +5207,7 @@ declare module BABYLON.GLTF2.Loader {
|
|
|
5131
5207
|
}
|
|
5132
5208
|
declare module BABYLON {
|
|
5133
5209
|
|
|
5210
|
+
|
|
5134
5211
|
}
|
|
5135
5212
|
declare module BABYLON.GLTF2 {
|
|
5136
5213
|
/**
|
|
@@ -5289,6 +5366,7 @@ declare module BABYLON.GLTF2 {
|
|
|
5289
5366
|
}
|
|
5290
5367
|
declare module BABYLON {
|
|
5291
5368
|
|
|
5369
|
+
|
|
5292
5370
|
}
|
|
5293
5371
|
declare module BABYLON.GLTF2 {
|
|
5294
5372
|
/** @internal */
|
|
@@ -5333,6 +5411,7 @@ declare module BABYLON.GLTF2 {
|
|
|
5333
5411
|
}
|
|
5334
5412
|
declare module BABYLON {
|
|
5335
5413
|
|
|
5414
|
+
|
|
5336
5415
|
}
|
|
5337
5416
|
declare module BABYLON.GLTF2 {
|
|
5338
5417
|
interface IWithMetadata {
|
|
@@ -5740,6 +5819,7 @@ declare module BABYLON.GLTF2 {
|
|
|
5740
5819
|
}
|
|
5741
5820
|
declare module BABYLON {
|
|
5742
5821
|
|
|
5822
|
+
|
|
5743
5823
|
}
|
|
5744
5824
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5745
5825
|
export var gltfToFlowGraphTypeMap: {
|
|
@@ -5752,6 +5832,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5752
5832
|
}
|
|
5753
5833
|
declare module BABYLON {
|
|
5754
5834
|
|
|
5835
|
+
|
|
5755
5836
|
}
|
|
5756
5837
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5757
5838
|
/**
|
|
@@ -5766,6 +5847,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5766
5847
|
}
|
|
5767
5848
|
declare module BABYLON {
|
|
5768
5849
|
|
|
5850
|
+
|
|
5769
5851
|
}
|
|
5770
5852
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5771
5853
|
/**
|
|
@@ -5781,6 +5863,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5781
5863
|
}
|
|
5782
5864
|
declare module BABYLON {
|
|
5783
5865
|
|
|
5866
|
+
|
|
5784
5867
|
}
|
|
5785
5868
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5786
5869
|
|
|
@@ -5789,6 +5872,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5789
5872
|
}
|
|
5790
5873
|
declare module BABYLON {
|
|
5791
5874
|
|
|
5875
|
+
|
|
5792
5876
|
}
|
|
5793
5877
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5794
5878
|
/**
|
|
@@ -5829,6 +5913,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5829
5913
|
}
|
|
5830
5914
|
declare module BABYLON {
|
|
5831
5915
|
|
|
5916
|
+
|
|
5832
5917
|
}
|
|
5833
5918
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5834
5919
|
/** @internal */
|
|
@@ -5851,6 +5936,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5851
5936
|
}
|
|
5852
5937
|
declare module BABYLON {
|
|
5853
5938
|
|
|
5939
|
+
|
|
5854
5940
|
}
|
|
5855
5941
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5856
5942
|
/** @internal */
|
|
@@ -5873,21 +5959,10 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5873
5959
|
}
|
|
5874
5960
|
declare module BABYLON {
|
|
5875
5961
|
|
|
5962
|
+
|
|
5876
5963
|
}
|
|
5877
5964
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
5878
|
-
|
|
5879
|
-
interface GLTFLoaderExtensionOptions {
|
|
5880
|
-
/**
|
|
5881
|
-
* Defines options for the MSFT_lod extension.
|
|
5882
|
-
*/
|
|
5883
|
-
[NAME]?: Partial<{
|
|
5884
|
-
/**
|
|
5885
|
-
* Maximum number of LODs to load, starting from the lowest LOD.
|
|
5886
|
-
*/
|
|
5887
|
-
maxLODsToLoad: number;
|
|
5888
|
-
}>;
|
|
5889
|
-
}
|
|
5890
|
-
/**
|
|
5965
|
+
/**
|
|
5891
5966
|
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/MSFT_lod/README.md)
|
|
5892
5967
|
*/
|
|
5893
5968
|
export class MSFT_lod implements BABYLON.GLTF2.IGLTFLoaderExtension {
|
|
@@ -5974,6 +6049,17 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
5974
6049
|
|
|
5975
6050
|
}
|
|
5976
6051
|
declare module BABYLON {
|
|
6052
|
+
interface GLTFLoaderExtensionOptions {
|
|
6053
|
+
/**
|
|
6054
|
+
* Defines options for the MSFT_lod extension.
|
|
6055
|
+
*/
|
|
6056
|
+
["MSFT_lod"]?: Partial<{
|
|
6057
|
+
/**
|
|
6058
|
+
* Maximum number of LODs to load, starting from the lowest LOD.
|
|
6059
|
+
*/
|
|
6060
|
+
maxLODsToLoad: number;
|
|
6061
|
+
}>;
|
|
6062
|
+
}
|
|
5977
6063
|
|
|
5978
6064
|
}
|
|
5979
6065
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
@@ -6024,6 +6110,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6024
6110
|
}
|
|
6025
6111
|
declare module BABYLON {
|
|
6026
6112
|
|
|
6113
|
+
|
|
6027
6114
|
}
|
|
6028
6115
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6029
6116
|
/**
|
|
@@ -6061,6 +6148,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6061
6148
|
}
|
|
6062
6149
|
declare module BABYLON {
|
|
6063
6150
|
|
|
6151
|
+
|
|
6064
6152
|
}
|
|
6065
6153
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6066
6154
|
/**
|
|
@@ -6093,6 +6181,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6093
6181
|
}
|
|
6094
6182
|
declare module BABYLON {
|
|
6095
6183
|
|
|
6184
|
+
|
|
6096
6185
|
}
|
|
6097
6186
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6098
6187
|
/**
|
|
@@ -6121,6 +6210,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6121
6210
|
}
|
|
6122
6211
|
declare module BABYLON {
|
|
6123
6212
|
|
|
6213
|
+
|
|
6124
6214
|
}
|
|
6125
6215
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6126
6216
|
/**
|
|
@@ -6148,6 +6238,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6148
6238
|
}
|
|
6149
6239
|
declare module BABYLON {
|
|
6150
6240
|
|
|
6241
|
+
|
|
6151
6242
|
}
|
|
6152
6243
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6153
6244
|
/**
|
|
@@ -6186,6 +6277,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6186
6277
|
}
|
|
6187
6278
|
declare module BABYLON {
|
|
6188
6279
|
|
|
6280
|
+
|
|
6189
6281
|
}
|
|
6190
6282
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6191
6283
|
/**
|
|
@@ -6268,6 +6360,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6268
6360
|
}
|
|
6269
6361
|
declare module BABYLON {
|
|
6270
6362
|
|
|
6363
|
+
|
|
6271
6364
|
}
|
|
6272
6365
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6273
6366
|
/**
|
|
@@ -6305,6 +6398,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6305
6398
|
}
|
|
6306
6399
|
declare module BABYLON {
|
|
6307
6400
|
|
|
6401
|
+
|
|
6308
6402
|
}
|
|
6309
6403
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6310
6404
|
/**
|
|
@@ -6342,6 +6436,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6342
6436
|
}
|
|
6343
6437
|
declare module BABYLON {
|
|
6344
6438
|
|
|
6439
|
+
|
|
6345
6440
|
}
|
|
6346
6441
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6347
6442
|
/**
|
|
@@ -6379,6 +6474,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6379
6474
|
}
|
|
6380
6475
|
declare module BABYLON {
|
|
6381
6476
|
|
|
6477
|
+
|
|
6382
6478
|
}
|
|
6383
6479
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6384
6480
|
/**
|
|
@@ -6417,6 +6513,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6417
6513
|
}
|
|
6418
6514
|
declare module BABYLON {
|
|
6419
6515
|
|
|
6516
|
+
|
|
6420
6517
|
}
|
|
6421
6518
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6422
6519
|
/**
|
|
@@ -6454,6 +6551,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6454
6551
|
}
|
|
6455
6552
|
declare module BABYLON {
|
|
6456
6553
|
|
|
6554
|
+
|
|
6457
6555
|
}
|
|
6458
6556
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6459
6557
|
/**
|
|
@@ -6491,6 +6589,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6491
6589
|
}
|
|
6492
6590
|
declare module BABYLON {
|
|
6493
6591
|
|
|
6592
|
+
|
|
6494
6593
|
}
|
|
6495
6594
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6496
6595
|
/**
|
|
@@ -6532,6 +6631,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6532
6631
|
}
|
|
6533
6632
|
declare module BABYLON {
|
|
6534
6633
|
|
|
6634
|
+
|
|
6535
6635
|
}
|
|
6536
6636
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6537
6637
|
/**
|
|
@@ -6569,6 +6669,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6569
6669
|
}
|
|
6570
6670
|
declare module BABYLON {
|
|
6571
6671
|
|
|
6672
|
+
|
|
6572
6673
|
}
|
|
6573
6674
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6574
6675
|
/**
|
|
@@ -6607,6 +6708,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6607
6708
|
}
|
|
6608
6709
|
declare module BABYLON {
|
|
6609
6710
|
|
|
6711
|
+
|
|
6610
6712
|
}
|
|
6611
6713
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6612
6714
|
/**
|
|
@@ -6645,6 +6747,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6645
6747
|
}
|
|
6646
6748
|
declare module BABYLON {
|
|
6647
6749
|
|
|
6750
|
+
|
|
6648
6751
|
}
|
|
6649
6752
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6650
6753
|
/**
|
|
@@ -6683,6 +6786,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6683
6786
|
}
|
|
6684
6787
|
declare module BABYLON {
|
|
6685
6788
|
|
|
6789
|
+
|
|
6686
6790
|
}
|
|
6687
6791
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6688
6792
|
/**
|
|
@@ -6720,6 +6824,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6720
6824
|
}
|
|
6721
6825
|
declare module BABYLON {
|
|
6722
6826
|
|
|
6827
|
+
|
|
6723
6828
|
}
|
|
6724
6829
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6725
6830
|
/**
|
|
@@ -6756,6 +6861,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6756
6861
|
}
|
|
6757
6862
|
declare module BABYLON {
|
|
6758
6863
|
|
|
6864
|
+
|
|
6759
6865
|
}
|
|
6760
6866
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6761
6867
|
/**
|
|
@@ -6786,6 +6892,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6786
6892
|
}
|
|
6787
6893
|
declare module BABYLON {
|
|
6788
6894
|
|
|
6895
|
+
|
|
6789
6896
|
}
|
|
6790
6897
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6791
6898
|
/**
|
|
@@ -6826,6 +6933,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6826
6933
|
}
|
|
6827
6934
|
declare module BABYLON {
|
|
6828
6935
|
|
|
6936
|
+
|
|
6829
6937
|
}
|
|
6830
6938
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6831
6939
|
class CameraAnimationPropertyInfo extends BABYLON.GLTF2.AnimationPropertyInfo {
|
|
@@ -7120,6 +7228,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
7120
7228
|
}
|
|
7121
7229
|
declare module BABYLON {
|
|
7122
7230
|
|
|
7231
|
+
|
|
7123
7232
|
}
|
|
7124
7233
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
7125
7234
|
/**
|
|
@@ -7160,6 +7269,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
7160
7269
|
}
|
|
7161
7270
|
declare module BABYLON {
|
|
7162
7271
|
|
|
7272
|
+
|
|
7163
7273
|
}
|
|
7164
7274
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
7165
7275
|
/**
|
|
@@ -7201,6 +7311,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
7201
7311
|
}
|
|
7202
7312
|
declare module BABYLON {
|
|
7203
7313
|
|
|
7314
|
+
|
|
7204
7315
|
}
|
|
7205
7316
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
7206
7317
|
/**
|
|
@@ -7229,6 +7340,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
7229
7340
|
}
|
|
7230
7341
|
declare module BABYLON {
|
|
7231
7342
|
|
|
7343
|
+
|
|
7232
7344
|
}
|
|
7233
7345
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
7234
7346
|
/**
|
|
@@ -7258,6 +7370,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
7258
7370
|
}
|
|
7259
7371
|
declare module BABYLON {
|
|
7260
7372
|
|
|
7373
|
+
|
|
7261
7374
|
}
|
|
7262
7375
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
7263
7376
|
/**
|
|
@@ -7293,6 +7406,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
7293
7406
|
}
|
|
7294
7407
|
declare module BABYLON {
|
|
7295
7408
|
|
|
7409
|
+
|
|
7296
7410
|
}
|
|
7297
7411
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
7298
7412
|
/**
|
|
@@ -7326,6 +7440,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
7326
7440
|
}
|
|
7327
7441
|
declare module BABYLON {
|
|
7328
7442
|
|
|
7443
|
+
|
|
7329
7444
|
}
|
|
7330
7445
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
7331
7446
|
/** @internal */
|
|
@@ -7367,6 +7482,7 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
7367
7482
|
}
|
|
7368
7483
|
declare module BABYLON {
|
|
7369
7484
|
|
|
7485
|
+
|
|
7370
7486
|
}
|
|
7371
7487
|
declare module BABYLON.GLTF1 {
|
|
7372
7488
|
|
|
@@ -7375,6 +7491,7 @@ declare module BABYLON.GLTF1 {
|
|
|
7375
7491
|
}
|
|
7376
7492
|
declare module BABYLON {
|
|
7377
7493
|
|
|
7494
|
+
|
|
7378
7495
|
}
|
|
7379
7496
|
declare module BABYLON.GLTF1 {
|
|
7380
7497
|
/**
|
|
@@ -7393,6 +7510,7 @@ declare module BABYLON.GLTF1 {
|
|
|
7393
7510
|
}
|
|
7394
7511
|
declare module BABYLON {
|
|
7395
7512
|
|
|
7513
|
+
|
|
7396
7514
|
}
|
|
7397
7515
|
declare module BABYLON.GLTF1 {
|
|
7398
7516
|
/**
|
|
@@ -7466,6 +7584,7 @@ declare module BABYLON.GLTF1 {
|
|
|
7466
7584
|
}
|
|
7467
7585
|
declare module BABYLON {
|
|
7468
7586
|
|
|
7587
|
+
|
|
7469
7588
|
}
|
|
7470
7589
|
declare module BABYLON.GLTF1 {
|
|
7471
7590
|
/**
|
|
@@ -7879,6 +7998,7 @@ declare module BABYLON.GLTF1 {
|
|
|
7879
7998
|
}
|
|
7880
7999
|
declare module BABYLON {
|
|
7881
8000
|
|
|
8001
|
+
|
|
7882
8002
|
}
|
|
7883
8003
|
declare module BABYLON.GLTF1 {
|
|
7884
8004
|
/**
|
|
@@ -8023,6 +8143,7 @@ declare module BABYLON.GLTF1 {
|
|
|
8023
8143
|
}
|
|
8024
8144
|
declare module BABYLON {
|
|
8025
8145
|
|
|
8146
|
+
|
|
8026
8147
|
}
|
|
8027
8148
|
declare module BABYLON.GLTF1 {
|
|
8028
8149
|
/**
|
|
@@ -8042,6 +8163,7 @@ declare module BABYLON.GLTF1 {
|
|
|
8042
8163
|
|
|
8043
8164
|
}
|
|
8044
8165
|
declare module BABYLON {
|
|
8166
|
+
|
|
8045
8167
|
const PLUGIN_STL = "stl";
|
|
8046
8168
|
interface SceneLoaderPluginOptions {
|
|
8047
8169
|
/**
|
|
@@ -8339,6 +8461,9 @@ declare module BABYLON {
|
|
|
8339
8461
|
private _setDataForCurrentFaceWithPattern5;
|
|
8340
8462
|
private _addPreviousObjMesh;
|
|
8341
8463
|
private _optimizeNormals;
|
|
8464
|
+
private static _IsLineElement;
|
|
8465
|
+
private static _IsObjectElement;
|
|
8466
|
+
private static _IsGroupElement;
|
|
8342
8467
|
/**
|
|
8343
8468
|
* Function used to parse an OBJ string
|
|
8344
8469
|
* @param meshesNames defines the list of meshes to load (all if not defined)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-loaders",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.21.0",
|
|
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": "^7.
|
|
19
|
-
"babylonjs-gltf2interface": "^7.
|
|
18
|
+
"babylonjs": "^7.21.0",
|
|
19
|
+
"babylonjs-gltf2interface": "^7.21.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|