shx-3d-render

main
Jan Umbach 2024-06-19 20:57:14 +02:00
parent 763a5f45b1
commit 42b9345ef4
1 changed files with 5 additions and 2 deletions

View File

@ -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);