shx-3d-render

main
Jan Umbach 2024-06-19 20:57:39 +02:00
parent 42b9345ef4
commit 15f6589cbf
1 changed files with 9 additions and 4 deletions

View File

@ -203,16 +203,21 @@
function createIFrame() {
this.Viewer3D = document.createElement('iframe');
const Viewer3D = this.Viewer3D;
this.Viewer3D.onload = () => {
Viewer3D.contentWindow.postMessage(JSON.stringify({"init":{"uuid":this.uuid}}), "*");
};
this.Viewer3D.src = "https://3d-viewer.shinnex.de/";
this.Viewer3D.classList.add('shx-threejs-renderer');
this.Viewer3D.style.width = this.container.offsetWidth + 'px';
this.Viewer3D.style.height = this.container.offsetWidth + 'px';
const Viewer3D = this.Viewer3D;
this.Viewer3D.onload = () => {
Viewer3D.contentWindow.postMessage(JSON.stringify({"init":{"uuid":this.uuid}}), "*");
};
this.Viewer3DContainer.appendChild(this.Viewer3D);
}