Rename callback.
This commit is contained in:
parent
784715e89c
commit
235149c325
@ -119,7 +119,7 @@ export class Importer
|
||||
});
|
||||
});
|
||||
},
|
||||
onFileProgress : callbacks.onFileProgress,
|
||||
onFileListProgress : callbacks.onFileListProgress,
|
||||
onFileLoadProgress : callbacks.onFileLoadProgress
|
||||
});
|
||||
}
|
||||
@ -152,7 +152,7 @@ export class Importer
|
||||
}
|
||||
this.fileList.GetContent ({
|
||||
onReady : callbacks.onReady,
|
||||
onFileProgress : callbacks.onFileProgress,
|
||||
onFileListProgress : callbacks.onFileListProgress,
|
||||
onFileLoadProgress : callbacks.onFileLoadProgress
|
||||
});
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ export class ImporterFileList
|
||||
{
|
||||
RunTasks (this.files.length, {
|
||||
runTask : (index, onTaskComplete) => {
|
||||
callbacks.onFileProgress (index, this.files.length);
|
||||
callbacks.onFileListProgress (index, this.files.length);
|
||||
this.GetFileContent (this.files[index], {
|
||||
onReady : onTaskComplete,
|
||||
onProgress : callbacks.onFileLoadProgress
|
||||
|
||||
@ -34,8 +34,8 @@ export class ThreeModelLoader
|
||||
onLoadStart : () => {
|
||||
callbacks.onLoadStart ();
|
||||
},
|
||||
onFileProgress : (current, total) => {
|
||||
callbacks.onFileProgress (current, total);
|
||||
onFileListProgress : (current, total) => {
|
||||
callbacks.onFileListProgress (current, total);
|
||||
},
|
||||
onFileLoadProgress : (current, total) => {
|
||||
callbacks.onFileLoadProgress (current, total);
|
||||
|
||||
@ -87,7 +87,7 @@ export class EmbeddedViewer
|
||||
progressDiv.innerHTML = 'Loading model...';
|
||||
this.parentElement.appendChild (progressDiv);
|
||||
},
|
||||
onFileProgress : (current, total) => {
|
||||
onFileListProgress : (current, total) => {
|
||||
},
|
||||
onFileLoadProgress : (current, total) => {
|
||||
},
|
||||
|
||||
@ -28,7 +28,7 @@ export class ThreeModelLoaderUI
|
||||
progressDialog.Init ('Loading Model');
|
||||
progressDialog.Open ();
|
||||
},
|
||||
onFileProgress : (current, total) => {
|
||||
onFileListProgress : (current, total) => {
|
||||
progressDialog.SetProgress (null);
|
||||
progressDialog.SetText ('Loading File ' + (current + 1).toString () + '/' + total.toString ());
|
||||
},
|
||||
|
||||
@ -121,7 +121,7 @@ function ExportImport (model, format, extension, onReady)
|
||||
onLoadStart : function () {
|
||||
|
||||
},
|
||||
onFileProgress : (current, total) => {
|
||||
onFileListProgress : (current, total) => {
|
||||
},
|
||||
onFileLoadProgress : (current, total) => {
|
||||
},
|
||||
|
||||
@ -12,7 +12,7 @@ function ImportFilesWithImporter (importer, files, callbacks)
|
||||
onLoadStart : function () {
|
||||
|
||||
},
|
||||
onFileProgress : (current, total) => {
|
||||
onFileListProgress : (current, total) => {
|
||||
},
|
||||
onFileLoadProgress : (current, total) => {
|
||||
},
|
||||
@ -272,7 +272,7 @@ describe ('Importer Test', function () {
|
||||
onLoadStart : function () {
|
||||
|
||||
},
|
||||
onFileProgress : (current, total) => {
|
||||
onFileListProgress : (current, total) => {
|
||||
},
|
||||
onFileLoadProgress : (current, total) => {
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user