shx-3d-render
parent
53a003906c
commit
01e1e7598e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue