@babylonjs/loaders 5.24.0 → 5.26.0
Sign up to get free protection for your applications and to get access to all the features.
- package/STL/stlFileLoader.d.ts +4 -4
- package/STL/stlFileLoader.js +4 -4
- package/STL/stlFileLoader.js.map +1 -1
- package/glTF/1.0/glTFBinaryExtension.d.ts +1 -1
- package/glTF/1.0/glTFBinaryExtension.js +1 -1
- package/glTF/1.0/glTFBinaryExtension.js.map +1 -1
- package/glTF/1.0/glTFLoader.d.ts +3 -3
- package/glTF/1.0/glTFLoader.js +3 -3
- package/glTF/1.0/glTFLoader.js.map +1 -1
- package/glTF/1.0/glTFLoaderInterfaces.d.ts +45 -45
- package/glTF/1.0/glTFLoaderInterfaces.js +8 -8
- package/glTF/1.0/glTFLoaderInterfaces.js.map +1 -1
- package/glTF/1.0/glTFLoaderUtils.d.ts +1 -1
- package/glTF/1.0/glTFLoaderUtils.js +1 -1
- package/glTF/1.0/glTFLoaderUtils.js.map +1 -1
- package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +1 -1
- package/glTF/1.0/glTFMaterialsCommonExtension.js +1 -1
- package/glTF/1.0/glTFMaterialsCommonExtension.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +5 -8
- package/glTF/2.0/Extensions/EXT_lights_image_based.js +4 -7
- package/glTF/2.0/Extensions/EXT_lights_image_based.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +3 -7
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +3 -7
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +3 -6
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js +3 -6
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +3 -7
- package/glTF/2.0/Extensions/EXT_texture_webp.js +3 -7
- package/glTF/2.0/Extensions/EXT_texture_webp.js.map +1 -1
- package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +5 -15
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js +5 -15
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_animation_pointer.d.ts +14 -35
- package/glTF/2.0/Extensions/KHR_animation_pointer.data.d.ts +133 -0
- package/glTF/2.0/Extensions/KHR_animation_pointer.data.js +169 -0
- package/glTF/2.0/Extensions/KHR_animation_pointer.data.js.map +1 -0
- package/glTF/2.0/Extensions/KHR_animation_pointer.js +56 -208
- package/glTF/2.0/Extensions/KHR_animation_pointer.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +3 -7
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +4 -8
- package/glTF/2.0/Extensions/KHR_lights_punctual.js +6 -9
- package/glTF/2.0/Extensions/KHR_lights_punctual.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_ior.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_ior.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_iridescence.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_iridescence.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_iridescence.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_sheen.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_specular.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_specular.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_translucency.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_translucency.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_transmission.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_unlit.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +4 -11
- package/glTF/2.0/Extensions/KHR_materials_variants.js +4 -11
- package/glTF/2.0/Extensions/KHR_materials_variants.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_materials_volume.js +3 -7
- package/glTF/2.0/Extensions/KHR_materials_volume.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +2 -3
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js +2 -3
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_texture_basisu.js +3 -7
- package/glTF/2.0/Extensions/KHR_texture_basisu.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +3 -7
- package/glTF/2.0/Extensions/KHR_texture_transform.js +3 -7
- package/glTF/2.0/Extensions/KHR_texture_transform.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +2 -3
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +2 -3
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +6 -14
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js +6 -14
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_lod.d.ts +8 -26
- package/glTF/2.0/Extensions/MSFT_lod.js +8 -26
- package/glTF/2.0/Extensions/MSFT_lod.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +1 -1
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +1 -1
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +1 -1
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +1 -1
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +1 -1
- package/glTF/2.0/glTFLoader.d.ts +55 -52
- package/glTF/2.0/glTFLoader.js +217 -91
- package/glTF/2.0/glTFLoader.js.map +1 -1
- package/glTF/2.0/glTFLoaderAnimation.d.ts +29 -0
- package/glTF/2.0/glTFLoaderAnimation.js +66 -0
- package/glTF/2.0/glTFLoaderAnimation.js.map +1 -0
- package/glTF/2.0/glTFLoaderExtension.d.ts +20 -7
- package/glTF/2.0/glTFLoaderExtension.js.map +1 -1
- package/glTF/2.0/glTFLoaderInterfaces.d.ts +58 -31
- package/glTF/2.0/glTFLoaderInterfaces.js.map +1 -1
- package/glTF/glTFFileLoader.d.ts +20 -53
- package/glTF/glTFFileLoader.js +17 -50
- package/glTF/glTFFileLoader.js.map +1 -1
- package/package.json +3 -3
- package/glTF/2.0/Extensions/KHR_animation_pointer.map.d.ts +0 -15
- package/glTF/2.0/Extensions/KHR_animation_pointer.map.js +0 -454
- package/glTF/2.0/Extensions/KHR_animation_pointer.map.js.map +0 -1
- package/glTF/2.0/glTFUtilities.d.ts +0 -7
- package/glTF/2.0/glTFUtilities.js +0 -23
- package/glTF/2.0/glTFUtilities.js.map +0 -1
package/glTF/glTFFileLoader.d.ts
CHANGED
@@ -91,7 +91,7 @@ export declare enum GLTFLoaderState {
|
|
91
91
|
*/
|
92
92
|
COMPLETE = 2
|
93
93
|
}
|
94
|
-
/** @
|
94
|
+
/** @internal */
|
95
95
|
export interface IGLTFLoader extends IDisposable {
|
96
96
|
importMeshAsync: (meshesNames: any, scene: Scene, container: Nullable<AssetContainer>, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<ISceneLoaderAsyncResult>;
|
97
97
|
loadAsync: (scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<void>;
|
@@ -100,9 +100,9 @@ export interface IGLTFLoader extends IDisposable {
|
|
100
100
|
* File loader for loading glTF files into a scene.
|
101
101
|
*/
|
102
102
|
export declare class GLTFFileLoader implements IDisposable, ISceneLoaderPluginAsync, ISceneLoaderPluginFactory {
|
103
|
-
/** @
|
103
|
+
/** @internal */
|
104
104
|
static _CreateGLTF1Loader: (parent: GLTFFileLoader) => IGLTFLoader;
|
105
|
-
/** @
|
105
|
+
/** @internal */
|
106
106
|
static _CreateGLTF2Loader: (parent: GLTFFileLoader) => IGLTFLoader;
|
107
107
|
/**
|
108
108
|
* Raised when the asset has been parsed
|
@@ -117,13 +117,13 @@ export declare class GLTFFileLoader implements IDisposable, ISceneLoaderPluginAs
|
|
117
117
|
* Set this property to false to disable incremental loading which delays the loader from calling the success callback until after loading the meshes and shaders.
|
118
118
|
* Textures always loads asynchronously. For example, the success callback can compute the bounding information of the loaded meshes when incremental loading is disabled.
|
119
119
|
* Defaults to true.
|
120
|
-
* @
|
120
|
+
* @internal
|
121
121
|
*/
|
122
122
|
static IncrementalLoading: boolean;
|
123
123
|
/**
|
124
124
|
* Set this property to true in order to work with homogeneous coordinates, available with some converters and exporters.
|
125
125
|
* Defaults to false. See https://en.wikipedia.org/wiki/Homogeneous_coordinates.
|
126
|
-
* @
|
126
|
+
* @internal
|
127
127
|
*/
|
128
128
|
static HomogeneousCoordinates: boolean;
|
129
129
|
/**
|
@@ -317,59 +317,34 @@ export declare class GLTFFileLoader implements IDisposable, ISceneLoaderPluginAs
|
|
317
317
|
* Name of the loader ("gltf")
|
318
318
|
*/
|
319
319
|
name: string;
|
320
|
-
/** @
|
320
|
+
/** @internal */
|
321
321
|
extensions: ISceneLoaderPluginExtensions;
|
322
322
|
/**
|
323
323
|
* Disposes the loader, releases resources during load, and cancels any outstanding requests.
|
324
324
|
*/
|
325
325
|
dispose(): void;
|
326
326
|
/**
|
327
|
-
* @
|
328
|
-
* @param fileOrUrl
|
329
|
-
* @param onSuccess
|
330
|
-
* @param onProgress
|
331
|
-
* @param useArrayBuffer
|
332
|
-
* @param onError
|
333
|
-
* @hidden
|
327
|
+
* @internal
|
334
328
|
*/
|
335
329
|
loadFile(scene: Scene, fileOrUrl: File | string, onSuccess: (data: any, responseURL?: string) => void, onProgress?: (ev: ISceneLoaderProgressEvent) => void, useArrayBuffer?: boolean, onError?: (request?: WebRequest, exception?: LoadFileError) => void): IFileRequest;
|
336
330
|
/**
|
337
|
-
* @
|
338
|
-
* @param scene
|
339
|
-
* @param data
|
340
|
-
* @param rootUrl
|
341
|
-
* @param onProgress
|
342
|
-
* @param fileName
|
343
|
-
* @hidden
|
331
|
+
* @internal
|
344
332
|
*/
|
345
333
|
importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
346
334
|
/**
|
347
|
-
* @
|
348
|
-
* @param data
|
349
|
-
* @param rootUrl
|
350
|
-
* @param onProgress
|
351
|
-
* @param fileName
|
352
|
-
* @hidden
|
335
|
+
* @internal
|
353
336
|
*/
|
354
337
|
loadAsync(scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<void>;
|
355
338
|
/**
|
356
|
-
* @
|
357
|
-
* @param data
|
358
|
-
* @param rootUrl
|
359
|
-
* @param onProgress
|
360
|
-
* @param fileName
|
361
|
-
* @hidden
|
339
|
+
* @internal
|
362
340
|
*/
|
363
341
|
loadAssetContainerAsync(scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<AssetContainer>;
|
364
342
|
/**
|
365
|
-
* @
|
366
|
-
* @hidden
|
343
|
+
* @internal
|
367
344
|
*/
|
368
345
|
canDirectLoad(data: string): boolean;
|
369
346
|
/**
|
370
|
-
* @
|
371
|
-
* @param data
|
372
|
-
* @hidden
|
347
|
+
* @internal
|
373
348
|
*/
|
374
349
|
directLoad(scene: Scene, data: string): Promise<any>;
|
375
350
|
/**
|
@@ -379,7 +354,7 @@ export declare class GLTFFileLoader implements IDisposable, ISceneLoaderPluginAs
|
|
379
354
|
* @returns the new root url
|
380
355
|
*/
|
381
356
|
rewriteRootURL?(rootUrl: string, responseURL?: string): string;
|
382
|
-
/** @
|
357
|
+
/** @internal */
|
383
358
|
createPlugin(): ISceneLoaderPlugin | ISceneLoaderPluginAsync;
|
384
359
|
/**
|
385
360
|
* The loader state or null if the loader is not active.
|
@@ -395,18 +370,11 @@ export declare class GLTFFileLoader implements IDisposable, ISceneLoaderPluginAs
|
|
395
370
|
*/
|
396
371
|
whenCompleteAsync(): Promise<void>;
|
397
372
|
/**
|
398
|
-
* @
|
399
|
-
* @hidden
|
373
|
+
* @internal
|
400
374
|
*/
|
401
375
|
_setState(state: GLTFLoaderState): void;
|
402
376
|
/**
|
403
|
-
* @
|
404
|
-
* @param fileOrUrl
|
405
|
-
* @param onSuccess
|
406
|
-
* @param useArrayBuffer
|
407
|
-
* @param onError
|
408
|
-
* @param onOpened
|
409
|
-
* @hidden
|
377
|
+
* @internal
|
410
378
|
*/
|
411
379
|
_loadFile(scene: Scene, fileOrUrl: File | string, onSuccess: (data: string | ArrayBuffer) => void, useArrayBuffer?: boolean, onError?: (request?: WebRequest) => void, onOpened?: (request: WebRequest) => void): IFileRequest;
|
412
380
|
private _onProgress;
|
@@ -421,21 +389,20 @@ export declare class GLTFFileLoader implements IDisposable, ISceneLoaderPluginAs
|
|
421
389
|
private static readonly _logSpaces;
|
422
390
|
private _logIndentLevel;
|
423
391
|
private _loggingEnabled;
|
424
|
-
/** @
|
392
|
+
/** @internal */
|
425
393
|
_log: (message: string) => void;
|
426
394
|
/**
|
427
|
-
* @
|
428
|
-
* @hidden
|
395
|
+
* @internal
|
429
396
|
*/
|
430
397
|
_logOpen(message: string): void;
|
431
|
-
/** @
|
398
|
+
/** @internal */
|
432
399
|
_logClose(): void;
|
433
400
|
private _logEnabled;
|
434
401
|
private _logDisabled;
|
435
402
|
private _capturePerformanceCounters;
|
436
|
-
/** @
|
403
|
+
/** @internal */
|
437
404
|
_startPerformanceCounter: (counterName: string) => void;
|
438
|
-
/** @
|
405
|
+
/** @internal */
|
439
406
|
_endPerformanceCounter: (counterName: string) => void;
|
440
407
|
private _startPerformanceCounterEnabled;
|
441
408
|
private _startPerformanceCounterDisabled;
|
package/glTF/glTFFileLoader.js
CHANGED
@@ -208,7 +208,7 @@ export class GLTFFileLoader {
|
|
208
208
|
* Name of the loader ("gltf")
|
209
209
|
*/
|
210
210
|
this.name = "gltf";
|
211
|
-
/** @
|
211
|
+
/** @internal */
|
212
212
|
this.extensions = {
|
213
213
|
".gltf": { isBinary: false },
|
214
214
|
".glb": { isBinary: true },
|
@@ -219,12 +219,12 @@ export class GLTFFileLoader {
|
|
219
219
|
this.onLoaderStateChangedObservable = new Observable();
|
220
220
|
this._logIndentLevel = 0;
|
221
221
|
this._loggingEnabled = false;
|
222
|
-
/** @
|
222
|
+
/** @internal */
|
223
223
|
this._log = this._logDisabled;
|
224
224
|
this._capturePerformanceCounters = false;
|
225
|
-
/** @
|
225
|
+
/** @internal */
|
226
226
|
this._startPerformanceCounter = this._startPerformanceCounterDisabled;
|
227
|
-
/** @
|
227
|
+
/** @internal */
|
228
228
|
this._endPerformanceCounter = this._endPerformanceCounterDisabled;
|
229
229
|
}
|
230
230
|
/**
|
@@ -383,13 +383,7 @@ export class GLTFFileLoader {
|
|
383
383
|
this.onDisposeObservable.clear();
|
384
384
|
}
|
385
385
|
/**
|
386
|
-
* @
|
387
|
-
* @param fileOrUrl
|
388
|
-
* @param onSuccess
|
389
|
-
* @param onProgress
|
390
|
-
* @param useArrayBuffer
|
391
|
-
* @param onError
|
392
|
-
* @hidden
|
386
|
+
* @internal
|
393
387
|
*/
|
394
388
|
loadFile(scene, fileOrUrl, onSuccess, onProgress, useArrayBuffer, onError) {
|
395
389
|
this._progressCallback = onProgress;
|
@@ -440,13 +434,7 @@ export class GLTFFileLoader {
|
|
440
434
|
}, useArrayBuffer, onError);
|
441
435
|
}
|
442
436
|
/**
|
443
|
-
* @
|
444
|
-
* @param scene
|
445
|
-
* @param data
|
446
|
-
* @param rootUrl
|
447
|
-
* @param onProgress
|
448
|
-
* @param fileName
|
449
|
-
* @hidden
|
437
|
+
* @internal
|
450
438
|
*/
|
451
439
|
importMeshAsync(meshesNames, scene, data, rootUrl, onProgress, fileName) {
|
452
440
|
return Promise.resolve().then(() => {
|
@@ -458,12 +446,7 @@ export class GLTFFileLoader {
|
|
458
446
|
});
|
459
447
|
}
|
460
448
|
/**
|
461
|
-
* @
|
462
|
-
* @param data
|
463
|
-
* @param rootUrl
|
464
|
-
* @param onProgress
|
465
|
-
* @param fileName
|
466
|
-
* @hidden
|
449
|
+
* @internal
|
467
450
|
*/
|
468
451
|
loadAsync(scene, data, rootUrl, onProgress, fileName) {
|
469
452
|
return Promise.resolve().then(() => {
|
@@ -475,12 +458,7 @@ export class GLTFFileLoader {
|
|
475
458
|
});
|
476
459
|
}
|
477
460
|
/**
|
478
|
-
* @
|
479
|
-
* @param data
|
480
|
-
* @param rootUrl
|
481
|
-
* @param onProgress
|
482
|
-
* @param fileName
|
483
|
-
* @hidden
|
461
|
+
* @internal
|
484
462
|
*/
|
485
463
|
loadAssetContainerAsync(scene, data, rootUrl, onProgress, fileName) {
|
486
464
|
return Promise.resolve().then(() => {
|
@@ -519,8 +497,7 @@ export class GLTFFileLoader {
|
|
519
497
|
});
|
520
498
|
}
|
521
499
|
/**
|
522
|
-
* @
|
523
|
-
* @hidden
|
500
|
+
* @internal
|
524
501
|
*/
|
525
502
|
canDirectLoad(data) {
|
526
503
|
return ((data.indexOf("asset") !== -1 && data.indexOf("version") !== -1) ||
|
@@ -530,9 +507,7 @@ export class GLTFFileLoader {
|
|
530
507
|
data.startsWith("data:model/gltf-binary;base64," + GLTFFileLoader._MagicBase64Encoded));
|
531
508
|
}
|
532
509
|
/**
|
533
|
-
* @
|
534
|
-
* @param data
|
535
|
-
* @hidden
|
510
|
+
* @internal
|
536
511
|
*/
|
537
512
|
directLoad(scene, data) {
|
538
513
|
if (data.startsWith("base64," + GLTFFileLoader._MagicBase64Encoded) || // this is technically incorrect, but will continue to support for backcompat.
|
@@ -549,7 +524,7 @@ export class GLTFFileLoader {
|
|
549
524
|
this._validate(scene, data);
|
550
525
|
return Promise.resolve({ json: this._parseJson(data) });
|
551
526
|
}
|
552
|
-
/** @
|
527
|
+
/** @internal */
|
553
528
|
createPlugin() {
|
554
529
|
return new GLTFFileLoader();
|
555
530
|
}
|
@@ -574,8 +549,7 @@ export class GLTFFileLoader {
|
|
574
549
|
});
|
575
550
|
}
|
576
551
|
/**
|
577
|
-
* @
|
578
|
-
* @hidden
|
552
|
+
* @internal
|
579
553
|
*/
|
580
554
|
_setState(state) {
|
581
555
|
if (this._state === state) {
|
@@ -586,13 +560,7 @@ export class GLTFFileLoader {
|
|
586
560
|
this._log(GLTFLoaderState[this._state]);
|
587
561
|
}
|
588
562
|
/**
|
589
|
-
* @
|
590
|
-
* @param fileOrUrl
|
591
|
-
* @param onSuccess
|
592
|
-
* @param useArrayBuffer
|
593
|
-
* @param onError
|
594
|
-
* @param onOpened
|
595
|
-
* @hidden
|
563
|
+
* @internal
|
596
564
|
*/
|
597
565
|
_loadFile(scene, fileOrUrl, onSuccess, useArrayBuffer, onError, onOpened) {
|
598
566
|
const request = scene._loadFile(fileOrUrl, onSuccess, (event) => {
|
@@ -819,14 +787,13 @@ export class GLTFFileLoader {
|
|
819
787
|
return 0;
|
820
788
|
}
|
821
789
|
/**
|
822
|
-
* @
|
823
|
-
* @hidden
|
790
|
+
* @internal
|
824
791
|
*/
|
825
792
|
_logOpen(message) {
|
826
793
|
this._log(message);
|
827
794
|
this._logIndentLevel++;
|
828
795
|
}
|
829
|
-
/** @
|
796
|
+
/** @internal */
|
830
797
|
_logClose() {
|
831
798
|
--this._logIndentLevel;
|
832
799
|
}
|
@@ -851,13 +818,13 @@ export class GLTFFileLoader {
|
|
851
818
|
* Set this property to false to disable incremental loading which delays the loader from calling the success callback until after loading the meshes and shaders.
|
852
819
|
* Textures always loads asynchronously. For example, the success callback can compute the bounding information of the loaded meshes when incremental loading is disabled.
|
853
820
|
* Defaults to true.
|
854
|
-
* @
|
821
|
+
* @internal
|
855
822
|
*/
|
856
823
|
GLTFFileLoader.IncrementalLoading = true;
|
857
824
|
/**
|
858
825
|
* Set this property to true in order to work with homogeneous coordinates, available with some converters and exporters.
|
859
826
|
* Defaults to false. See https://en.wikipedia.org/wiki/Homogeneous_coordinates.
|
860
|
-
* @
|
827
|
+
* @internal
|
861
828
|
*/
|
862
829
|
GLTFFileLoader.HomogeneousCoordinates = false;
|
863
830
|
GLTFFileLoader._MagicBase64Encoded = "Z2xURg"; // "glTF" base64 encoded (without the quotes!)
|