shx-3d-render
parent
763a5f45b1
commit
42b9345ef4
|
@ -207,11 +207,14 @@
|
|||
this.Viewer3D.classList.add('shx-threejs-renderer');
|
||||
this.Viewer3D.style.width = this.container.offsetWidth + 'px';
|
||||
this.Viewer3D.style.height = this.container.offsetWidth + 'px';
|
||||
this.Viewer3DContainer.appendChild(this.Viewer3D);
|
||||
|
||||
const Viewer3D = this.Viewer3D;
|
||||
|
||||
this.Viewer3D.onload = () => {
|
||||
this.Viewer3D.contentWindow.postMessage(JSON.stringify({"init":{"uuid":this.uuid}}), "*");
|
||||
Viewer3D.contentWindow.postMessage(JSON.stringify({"init":{"uuid":this.uuid}}), "*");
|
||||
};
|
||||
|
||||
this.Viewer3DContainer.appendChild(this.Viewer3D);
|
||||
}
|
||||
|
||||
setTimeout(createIFrame.bind(this), 1000);
|
||||
|
|
Loading…
Reference in New Issue