shx-3d-render

main
Jan Umbach 2024-06-14 14:24:44 +02:00
parent 53a003906c
commit 01e1e7598e
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,8 @@
// element functionality written in here
this.currentVariant = null;
this.container = null;
this.uuid = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
}
connectedCallback() {
@ -125,6 +127,8 @@
this.Viewer3D.style.width = this.container.offsetWidth + 'px';
this.Viewer3D.style.height = this.container.offsetWidth + 'px';
this.container.appendChild(this.Viewer3D);
this.Viewer3D.contentWindow.postMessage(JSON.stringify({"init":{"uuid":this.uuid}}), "*");
}
initCurrentVariant(id) {