feat(EmbeddedViewer): add the loader as class property (#327)

Co-authored-by: Younes Guarssifi <younes.guarssifi@sms-group.com>
This commit is contained in:
GuYounes 2022-12-05 17:42:18 +01:00 committed by GitHub
parent dc3d0546d6
commit cb2e48cf11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,7 @@ export class EmbeddedViewer
this.model = null;
let progressDiv = null;
let loader = new ThreeModelLoader ();
this.loader = loader;
loader.LoadModel (inputFiles, settings, {
onLoadStart : () => {
this.canvas.style.display = 'none';