@realsee/dnalogel 3.33.1-dev.0 → 3.33.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ import Um from "earcut";
48
48
  import { GLTFLoader as Ym } from "@realsee/five/gltf-loader";
49
49
  function Xm() {
50
50
  console.debug(
51
- "%c %c@realsee/dnalogel %cv3.33.1-dev.0",
51
+ "%c %c@realsee/dnalogel %cv3.33.1-dev.1",
52
52
  [
53
53
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
54
54
  "background-repeat: no-repeat",
@@ -1214,7 +1214,7 @@ class gc extends Gm {
1214
1214
  this.domElementWrapper.classList.add("ICSS3DRendererWrapper"), this.domElementWrapper.style.position = "absolute", this.domElementWrapper.style.top = "0", this.domElementWrapper.style.left = "0", this.domElementWrapper.style.width = "100%", this.domElementWrapper.style.height = "100%", this.domElementWrapper.style.userSelect = "none", this.domElementWrapper.style.pointerEvents = "none", this.domElement.classList.add("ICSS3DRenderer"), this.domElement.style.position = "absolute", this.domElement.style.top = "0", this.domElement.style.left = "0", this.domElement.style.userSelect = "none", this.domElement.style.pointerEvents = "none", this.domElementWrapper.appendChild(this.domElement);
1215
1215
  }
1216
1216
  setWrapper(e) {
1217
- if (!e)
1217
+ if (console.log("setWrapper", e, this.wrapper), !e)
1218
1218
  throw new Error("CSS3DRenderer: wrapper is required");
1219
1219
  if ((() => {
1220
1220
  for (let o = 0; o < e.children.length; o++)
@@ -2553,9 +2553,10 @@ let qp = class extends Ns {
2553
2553
  if (!r)
2554
2554
  return;
2555
2555
  const a = () => {
2556
- const c = r.css3DObject.mode === "front" ? this.frontFiveContainer : this.getBehindFiveElement();
2557
- if (!c)
2558
- return console.error(`${Ac}: wrapper is ${c}`);
2556
+ var h, u;
2557
+ const c = r.css3DObject.mode === "front" ? (u = this.frontFiveContainer) != null ? u : (h = this.five.getElement()) == null ? void 0 : h.parentElement : this.getBehindFiveElement();
2558
+ if (console.log({ wrapper: c }), !c)
2559
+ return console.error(`${Ac}: wrapper is ${c}; mode is ${r.css3DObject.mode}`);
2559
2560
  r.appendToElement(c), r.render(), this.created3DElementResults.push(r);
2560
2561
  }, l = () => {
2561
2562
  r.css3DObject.mode === "front" && a(), r.css3DObject.mode === "behind" && vl(this.five).then(() => a());
@@ -7436,7 +7437,7 @@ let rn = class {
7436
7437
  /**
7437
7438
  * @realsee/dnalogel 版本号
7438
7439
  */
7439
- d(this, "VERSION", "3.33.1-dev.0");
7440
+ d(this, "VERSION", "3.33.1-dev.1");
7440
7441
  d(this, "five");
7441
7442
  /**
7442
7443
  * @description: 插件事件钩子
@@ -28946,9 +28947,9 @@ class ol extends eM {
28946
28947
  }
28947
28948
  appendTo(e) {
28948
28949
  var s, o, r, a;
28949
- this.container = e;
28950
- const i = (o = (s = this.TagContainerSvelte) == null ? void 0 : s.$$) == null ? void 0 : o.root;
28951
- i && i !== this.container && ((r = this.css3DRenderPlugin) == null || r.appendToFrontFiveContainer(this.container), (a = this.TagContainerSvelte) == null || a.$destroy(), this.TagContainerSvelte = void 0, this.updateDomView());
28950
+ this.container = e, (s = this.css3DRenderPlugin) == null || s.appendToFrontFiveContainer(this.container);
28951
+ const i = (r = (o = this.TagContainerSvelte) == null ? void 0 : o.$$) == null ? void 0 : r.root;
28952
+ i && i !== this.container && ((a = this.TagContainerSvelte) == null || a.$destroy(), this.TagContainerSvelte = void 0, this.updateDomView());
28952
28953
  }
28953
28954
  /**
28954
28955
  * @description 加载数据