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

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.1",
51
+ "%c %c@realsee/dnalogel %cv3.34.0-dev.0",
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 (console.log("setWrapper", e, this.wrapper), !e)
1217
+ if (!e)
1218
1218
  throw new Error("CSS3DRenderer: wrapper is required");
1219
1219
  if ((() => {
1220
1220
  for (let o = 0; o < e.children.length; o++)
@@ -1519,10 +1519,7 @@ const Ip = 3, _a = "CSS3DRenderer", xs = `${_a}@${Ip}`, vn = () => {
1519
1519
  }, Ke = {
1520
1520
  css3DObjects: [],
1521
1521
  frontModeStore: {
1522
- css3DRenderer: (() => {
1523
- const n = new gc();
1524
- return n.domElement.style.zIndex = "1", n;
1525
- })()
1522
+ css3DRenderer: new gc()
1526
1523
  },
1527
1524
  behindModeStore: {
1528
1525
  css3DRenderer: new gc()
@@ -2555,7 +2552,7 @@ let qp = class extends Ns {
2555
2552
  const a = () => {
2556
2553
  var h, u;
2557
2554
  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)
2555
+ if (!c)
2559
2556
  return console.error(`${Ac}: wrapper is ${c}; mode is ${r.css3DObject.mode}`);
2560
2557
  r.appendToElement(c), r.render(), this.created3DElementResults.push(r);
2561
2558
  }, l = () => {
@@ -7437,7 +7434,7 @@ let rn = class {
7437
7434
  /**
7438
7435
  * @realsee/dnalogel 版本号
7439
7436
  */
7440
- d(this, "VERSION", "3.33.1-dev.1");
7437
+ d(this, "VERSION", "3.34.0-dev.0");
7441
7438
  d(this, "five");
7442
7439
  /**
7443
7440
  * @description: 插件事件钩子
@@ -18059,6 +18056,8 @@ class Yw extends Qw {
18059
18056
  d(this, "config", Nw);
18060
18057
  d(this, "tagsLengthWillUpdate", !0);
18061
18058
  d(this, "workUtil", new Gl(this.five));
18059
+ /** 插件参数 */
18060
+ d(this, "params");
18062
18061
  d(this, "mediaStore", Sl({
18063
18062
  currentMediaElement: null
18064
18063
  }));
@@ -28247,11 +28246,11 @@ class W2 extends ce {
28247
28246
  }
28248
28247
  }
28249
28248
  function U2(n) {
28250
- ge(n, "svelte-38qb2t", ".tag--container.svelte-38qb2t{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0);z-index:1}.withAnimation.svelte-38qb2t{transition:opacity 0.2s linear}.tag--container.hide.svelte-38qb2t{opacity:0;pointer-events:none}.tag--container.hide.svelte-38qb2t *{pointer-events:none !important}");
28249
+ ge(n, "svelte-p0nosq", ".tag--container.svelte-p0nosq{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0)}.withAnimation.svelte-p0nosq{transition:opacity 0.2s linear}.tag--container.hide.svelte-p0nosq{opacity:0;pointer-events:none}.tag--container.hide.svelte-p0nosq *{pointer-events:none !important}");
28251
28250
  }
28252
28251
  function bu(n, t, e) {
28253
28252
  const i = n.slice();
28254
- return i[8] = t[e], i;
28253
+ return i[9] = t[e], i;
28255
28254
  }
28256
28255
  function yu(n) {
28257
28256
  let t, e = [], i = /* @__PURE__ */ new Map(), s, o = (
@@ -28260,7 +28259,7 @@ function yu(n) {
28260
28259
  );
28261
28260
  const r = (a) => (
28262
28261
  /*tag*/
28263
- a[8].id
28262
+ a[9].id
28264
28263
  );
28265
28264
  for (let a = 0; a < o.length; a += 1) {
28266
28265
  let l = bu(n, o, a), c = r(l);
@@ -28268,16 +28267,22 @@ function yu(n) {
28268
28267
  }
28269
28268
  return {
28270
28269
  c() {
28270
+ var a;
28271
28271
  t = S("div");
28272
- for (let a = 0; a < e.length; a += 1)
28273
- e[a].c();
28274
- C(t, "class", "tag--container svelte-38qb2t"), K(t, "hide", !/*state*/
28272
+ for (let l = 0; l < e.length; l += 1)
28273
+ e[l].c();
28274
+ C(t, "class", "tag--container svelte-p0nosq"), K(t, "hide", !/*state*/
28275
28275
  n[5].visible || !/*temporaryState*/
28276
28276
  n[6].visible), K(
28277
28277
  t,
28278
28278
  "withAnimation",
28279
28279
  /*withAnimation*/
28280
28280
  n[0]
28281
+ ), T(
28282
+ t,
28283
+ "z-index",
28284
+ /*zIndex*/
28285
+ (a = n[7]) != null ? a : ""
28281
28286
  );
28282
28287
  },
28283
28288
  m(a, l) {
@@ -28287,6 +28292,7 @@ function yu(n) {
28287
28292
  s = !0;
28288
28293
  },
28289
28294
  p(a, l) {
28295
+ var c;
28290
28296
  l & /*state, temporaryState, withAnimation, tags, mediaStore, rendererMap, contentTypeMap*/
28291
28297
  127 && (o = /*tags*/
28292
28298
  a[1], ue(), e = Ut(e, l, r, 1, a, o, i, t, ji, wu, null, bu), fe()), (!s || l & /*state, temporaryState*/
@@ -28298,6 +28304,12 @@ function yu(n) {
28298
28304
  "withAnimation",
28299
28305
  /*withAnimation*/
28300
28306
  a[0]
28307
+ ), l & /*zIndex*/
28308
+ 128 && T(
28309
+ t,
28310
+ "z-index",
28311
+ /*zIndex*/
28312
+ (c = a[7]) != null ? c : ""
28301
28313
  );
28302
28314
  },
28303
28315
  i(a) {
@@ -28337,7 +28349,7 @@ function wu(n, t) {
28337
28349
  ),
28338
28350
  tag: (
28339
28351
  /*tag*/
28340
- t[8]
28352
+ t[9]
28341
28353
  ),
28342
28354
  mediaStore: (
28343
28355
  /*mediaStore*/
@@ -28372,7 +28384,7 @@ function wu(n, t) {
28372
28384
  1 && (a.withAnimation = /*withAnimation*/
28373
28385
  t[0]), r & /*tags*/
28374
28386
  2 && (a.tag = /*tag*/
28375
- t[8]), r & /*mediaStore*/
28387
+ t[9]), r & /*mediaStore*/
28376
28388
  4 && (a.mediaStore = /*mediaStore*/
28377
28389
  t[2]), r & /*rendererMap*/
28378
28390
  8 && (a.rendererMap = /*rendererMap*/
@@ -28422,9 +28434,9 @@ function Y2(n) {
28422
28434
  };
28423
28435
  }
28424
28436
  function X2(n, t, e) {
28425
- let { withAnimation: i = !1 } = t, { tags: s = [] } = t, { hooks: o } = t, { mediaStore: r } = t, { rendererMap: a } = t, { contentTypeMap: l } = t, { state: c } = t, { temporaryState: h } = t;
28426
- return Ua("hooks", o), n.$$set = (u) => {
28427
- "withAnimation" in u && e(0, i = u.withAnimation), "tags" in u && e(1, s = u.tags), "hooks" in u && e(7, o = u.hooks), "mediaStore" in u && e(2, r = u.mediaStore), "rendererMap" in u && e(3, a = u.rendererMap), "contentTypeMap" in u && e(4, l = u.contentTypeMap), "state" in u && e(5, c = u.state), "temporaryState" in u && e(6, h = u.temporaryState);
28437
+ let { withAnimation: i = !1 } = t, { tags: s = [] } = t, { hooks: o } = t, { mediaStore: r } = t, { rendererMap: a } = t, { contentTypeMap: l } = t, { state: c } = t, { temporaryState: h } = t, { zIndex: u = void 0 } = t;
28438
+ return Ua("hooks", o), n.$$set = (f) => {
28439
+ "withAnimation" in f && e(0, i = f.withAnimation), "tags" in f && e(1, s = f.tags), "hooks" in f && e(8, o = f.hooks), "mediaStore" in f && e(2, r = f.mediaStore), "rendererMap" in f && e(3, a = f.rendererMap), "contentTypeMap" in f && e(4, l = f.contentTypeMap), "state" in f && e(5, c = f.state), "temporaryState" in f && e(6, h = f.temporaryState), "zIndex" in f && e(7, u = f.zIndex);
28428
28440
  }, [
28429
28441
  i,
28430
28442
  s,
@@ -28433,6 +28445,7 @@ function X2(n, t, e) {
28433
28445
  l,
28434
28446
  c,
28435
28447
  h,
28448
+ u,
28436
28449
  o
28437
28450
  ];
28438
28451
  }
@@ -28447,12 +28460,13 @@ class Z2 extends ce {
28447
28460
  {
28448
28461
  withAnimation: 0,
28449
28462
  tags: 1,
28450
- hooks: 7,
28463
+ hooks: 8,
28451
28464
  mediaStore: 2,
28452
28465
  rendererMap: 3,
28453
28466
  contentTypeMap: 4,
28454
28467
  state: 5,
28455
- temporaryState: 6
28468
+ temporaryState: 6,
28469
+ zIndex: 7
28456
28470
  },
28457
28471
  U2
28458
28472
  );
@@ -28806,7 +28820,8 @@ class eM extends Zw {
28806
28820
  mediaStore: this.mediaStore,
28807
28821
  rendererMap: this.rendererMap,
28808
28822
  contentTypeMap: this.contentTypeMap,
28809
- withAnimation: (s = e == null ? void 0 : e.withAnimation) != null ? s : this.store.visibleWithAnimation
28823
+ withAnimation: (s = e == null ? void 0 : e.withAnimation) != null ? s : this.store.visibleWithAnimation,
28824
+ zIndex: this.params.containerZIndex
28810
28825
  }
28811
28826
  });
28812
28827
  }
@@ -28843,8 +28858,6 @@ class ol extends eM {
28843
28858
  super(e);
28844
28859
  /** state */
28845
28860
  d(this, "state", { enabled: !0, visible: !0 });
28846
- /** 插件参数 */
28847
- d(this, "params");
28848
28861
  /** debug */
28849
28862
  d(this, "debug");
28850
28863
  d(this, "debugUtil", new tM(this));
@@ -29651,7 +29664,7 @@ class rl {
29651
29664
  d(this, "logWarning", (t) => ew("GuideLineModeItem: ", t));
29652
29665
  d(this, "logError", (t) => bg("GuideLineModeItem: ", t));
29653
29666
  var o, r;
29654
- this.five = t, this.mode = e.mode, this.plugin = e.plugin, this.parent = e.parent, this.startTagContainer = { tag: null, plugin: new ol(this.five) }, this.endTagContainer = { tag: null, plugin: new ol(this.five) };
29667
+ this.five = t, this.mode = e.mode, this.plugin = e.plugin, this.parent = e.parent, this.startTagContainer = { tag: null, plugin: new ol(this.five, { containerZIndex: 1 }) }, this.endTagContainer = { tag: null, plugin: new ol(this.five, { containerZIndex: 1 }) };
29655
29668
  const i = new w.BufferGeometry(), s = new w.ShaderMaterial({
29656
29669
  vertexShader: aM,
29657
29670
  fragmentShader: lM,