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

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.2",
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",
@@ -1208,13 +1208,13 @@ class gc extends Gm {
1208
1208
  constructor() {
1209
1209
  super();
1210
1210
  d(this, "wrapper");
1211
+ d(this, "domElementWrapper", document.createElement("div"));
1211
1212
  d(this, "requestAnimationFrameId");
1212
1213
  d(this, "resizeDisoper");
1213
- d(this, "domElementWrapper", document.createElement("div"));
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.2");
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
  }));
@@ -18109,7 +18108,12 @@ class Yw extends Qw {
18109
18108
  }
18110
18109
  /** css3DRenderPlugin */
18111
18110
  get css3DRenderPlugin() {
18112
- return this._css3DRenderPlugin || (this._css3DRenderPlugin = yf(this.five)), this._css3DRenderPlugin;
18111
+ var e, i;
18112
+ if (!this._css3DRenderPlugin) {
18113
+ const s = yf(this.five);
18114
+ this._css3DRenderPlugin = s, s.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (i = (e = this.params.containerZIndex) == null ? void 0 : e.toString()) != null ? i : "";
18115
+ }
18116
+ return this._css3DRenderPlugin;
18113
18117
  }
18114
18118
  getTagById(e) {
18115
18119
  const i = this.tags.find((s) => s.id === e);
@@ -28247,11 +28251,11 @@ class W2 extends ce {
28247
28251
  }
28248
28252
  }
28249
28253
  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}");
28254
+ 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
28255
  }
28252
28256
  function bu(n, t, e) {
28253
28257
  const i = n.slice();
28254
- return i[8] = t[e], i;
28258
+ return i[9] = t[e], i;
28255
28259
  }
28256
28260
  function yu(n) {
28257
28261
  let t, e = [], i = /* @__PURE__ */ new Map(), s, o = (
@@ -28260,7 +28264,7 @@ function yu(n) {
28260
28264
  );
28261
28265
  const r = (a) => (
28262
28266
  /*tag*/
28263
- a[8].id
28267
+ a[9].id
28264
28268
  );
28265
28269
  for (let a = 0; a < o.length; a += 1) {
28266
28270
  let l = bu(n, o, a), c = r(l);
@@ -28268,16 +28272,22 @@ function yu(n) {
28268
28272
  }
28269
28273
  return {
28270
28274
  c() {
28275
+ var a;
28271
28276
  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*/
28277
+ for (let l = 0; l < e.length; l += 1)
28278
+ e[l].c();
28279
+ C(t, "class", "tag--container svelte-p0nosq"), K(t, "hide", !/*state*/
28275
28280
  n[5].visible || !/*temporaryState*/
28276
28281
  n[6].visible), K(
28277
28282
  t,
28278
28283
  "withAnimation",
28279
28284
  /*withAnimation*/
28280
28285
  n[0]
28286
+ ), T(
28287
+ t,
28288
+ "z-index",
28289
+ /*zIndex*/
28290
+ (a = n[7]) != null ? a : ""
28281
28291
  );
28282
28292
  },
28283
28293
  m(a, l) {
@@ -28287,6 +28297,7 @@ function yu(n) {
28287
28297
  s = !0;
28288
28298
  },
28289
28299
  p(a, l) {
28300
+ var c;
28290
28301
  l & /*state, temporaryState, withAnimation, tags, mediaStore, rendererMap, contentTypeMap*/
28291
28302
  127 && (o = /*tags*/
28292
28303
  a[1], ue(), e = Ut(e, l, r, 1, a, o, i, t, ji, wu, null, bu), fe()), (!s || l & /*state, temporaryState*/
@@ -28298,6 +28309,12 @@ function yu(n) {
28298
28309
  "withAnimation",
28299
28310
  /*withAnimation*/
28300
28311
  a[0]
28312
+ ), l & /*zIndex*/
28313
+ 128 && T(
28314
+ t,
28315
+ "z-index",
28316
+ /*zIndex*/
28317
+ (c = a[7]) != null ? c : ""
28301
28318
  );
28302
28319
  },
28303
28320
  i(a) {
@@ -28337,7 +28354,7 @@ function wu(n, t) {
28337
28354
  ),
28338
28355
  tag: (
28339
28356
  /*tag*/
28340
- t[8]
28357
+ t[9]
28341
28358
  ),
28342
28359
  mediaStore: (
28343
28360
  /*mediaStore*/
@@ -28372,7 +28389,7 @@ function wu(n, t) {
28372
28389
  1 && (a.withAnimation = /*withAnimation*/
28373
28390
  t[0]), r & /*tags*/
28374
28391
  2 && (a.tag = /*tag*/
28375
- t[8]), r & /*mediaStore*/
28392
+ t[9]), r & /*mediaStore*/
28376
28393
  4 && (a.mediaStore = /*mediaStore*/
28377
28394
  t[2]), r & /*rendererMap*/
28378
28395
  8 && (a.rendererMap = /*rendererMap*/
@@ -28422,9 +28439,9 @@ function Y2(n) {
28422
28439
  };
28423
28440
  }
28424
28441
  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);
28442
+ 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;
28443
+ return Ua("hooks", o), n.$$set = (f) => {
28444
+ "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
28445
  }, [
28429
28446
  i,
28430
28447
  s,
@@ -28433,6 +28450,7 @@ function X2(n, t, e) {
28433
28450
  l,
28434
28451
  c,
28435
28452
  h,
28453
+ u,
28436
28454
  o
28437
28455
  ];
28438
28456
  }
@@ -28447,12 +28465,13 @@ class Z2 extends ce {
28447
28465
  {
28448
28466
  withAnimation: 0,
28449
28467
  tags: 1,
28450
- hooks: 7,
28468
+ hooks: 8,
28451
28469
  mediaStore: 2,
28452
28470
  rendererMap: 3,
28453
28471
  contentTypeMap: 4,
28454
28472
  state: 5,
28455
- temporaryState: 6
28473
+ temporaryState: 6,
28474
+ zIndex: 7
28456
28475
  },
28457
28476
  U2
28458
28477
  );
@@ -28806,7 +28825,8 @@ class eM extends Zw {
28806
28825
  mediaStore: this.mediaStore,
28807
28826
  rendererMap: this.rendererMap,
28808
28827
  contentTypeMap: this.contentTypeMap,
28809
- withAnimation: (s = e == null ? void 0 : e.withAnimation) != null ? s : this.store.visibleWithAnimation
28828
+ withAnimation: (s = e == null ? void 0 : e.withAnimation) != null ? s : this.store.visibleWithAnimation,
28829
+ zIndex: this.params.containerZIndex
28810
28830
  }
28811
28831
  });
28812
28832
  }
@@ -28843,8 +28863,6 @@ class ol extends eM {
28843
28863
  super(e);
28844
28864
  /** state */
28845
28865
  d(this, "state", { enabled: !0, visible: !0 });
28846
- /** 插件参数 */
28847
- d(this, "params");
28848
28866
  /** debug */
28849
28867
  d(this, "debug");
28850
28868
  d(this, "debugUtil", new tM(this));
@@ -29651,7 +29669,7 @@ class rl {
29651
29669
  d(this, "logWarning", (t) => ew("GuideLineModeItem: ", t));
29652
29670
  d(this, "logError", (t) => bg("GuideLineModeItem: ", t));
29653
29671
  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) };
29672
+ 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
29673
  const i = new w.BufferGeometry(), s = new w.ShaderMaterial({
29656
29674
  vertexShader: aM,
29657
29675
  fragmentShader: lM,