shx-3d-render
parent
42b9345ef4
commit
15f6589cbf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue