@realsee/dnalogel 3.49.1 → 3.49.3

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.
@@ -1,12 +1,12 @@
1
1
  var D = Object.defineProperty, P = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
3
+ var y = Object.getOwnPropertySymbols;
4
4
  var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
5
  var u = (d, a, e) => a in d ? D(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, f = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
7
  F.call(a, e) && u(d, e, a[e]);
8
- if (b)
9
- for (var e of b(a))
8
+ if (y)
9
+ for (var e of y(a))
10
10
  E.call(a, e) && u(d, e, a[e]);
11
11
  return d;
12
12
  }, c = (d, a) => P(d, U(a));
@@ -29,10 +29,10 @@ var l = (d, a, e) => new Promise((t, i) => {
29
29
  });
30
30
  import * as v from "three";
31
31
  import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
32
- import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
33
- import { isModelTag as k, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
32
+ import { arrayPositionToVector3 as k } from "../../shared-utils/positionToVector3.js";
33
+ import { isModelTag as A, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
34
34
  import { debounce as M } from "../utils/debounce.js";
35
- import { throttle as y } from "../utils/throttle.js";
35
+ import { throttle as b } from "../utils/throttle.js";
36
36
  import _, { getTagStickType as I } from "../utils/tag/format.js";
37
37
  import { generateBlankAudio as L, AudioNamespace as B } from "../../shared-utils/audio.js";
38
38
  import { resizeObserver as C } from "../../shared-utils/dom/resizeObserver.js";
@@ -50,8 +50,8 @@ import { waitFiveModelLoaded as N } from "../../shared-utils/five/fiveModelLoad.
50
50
  import { DebugUtil as V } from "../utils/DebugUtil.js";
51
51
  import { safeObj as T } from "../../shared-utils/safeObj.js";
52
52
  import { PointTag as z } from "./Tag/PointTag.js";
53
- import { ModelTag as x } from "./Tag/ModelTag.js";
54
- import { PlaneTag as Q } from "./Tag/PlaneTag.js";
53
+ import { ModelTag as Q } from "./Tag/ModelTag.js";
54
+ import { PlaneTag as x } from "./Tag/PlaneTag.js";
55
55
  import $ from "../Components/TagContainer.js";
56
56
  import { tweenProgress as W } from "../../shared-utils/animationFrame/BetterTween.js";
57
57
  import "../Components/Tag/index.js";
@@ -241,7 +241,7 @@ class Zi extends O {
241
241
  p(this, "handleFivePanoArrived", () => l(this, null, function* () {
242
242
  this.tags.forEach((e) => {
243
243
  e.state.visible = !1, e.temporaryState = c(f({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
244
- }), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
244
+ }), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(A).filter((e) => {
245
245
  var t;
246
246
  return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
247
247
  }).forEach((e) => {
@@ -346,9 +346,9 @@ class Zi extends O {
346
346
  if (s === "2DPoint" || s === "3DPoint")
347
347
  return new z(this, o);
348
348
  if (s === "Model")
349
- return new x(this, o);
350
- if (s === "Plane")
351
349
  return new Q(this, o);
350
+ if (s === "Plane")
351
+ return new x(this, o);
352
352
  });
353
353
  return i.forEach(_), this.tags.push(...i), this.tagsLengthWillUpdate = !0, N(this.five).then(() => l(this, null, function* () {
354
354
  var o, s;
@@ -463,7 +463,7 @@ class Zi extends O {
463
463
  */
464
464
  changeTagNormalById(e, t) {
465
465
  const i = this.getTagById(e);
466
- i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = A(t));
466
+ i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = k(t));
467
467
  }
468
468
  /**
469
469
  * @description 改变data
@@ -550,11 +550,11 @@ class Zi extends O {
550
550
  if (this.store.disposed)
551
551
  return;
552
552
  const e = this.five.getElement(), t = () => {
553
- this.state.enabled && (this.filterPointTag.forEach((h) => h.updateScreenPosition({ force: !0 })), this.show());
553
+ this.state.enabled && (this.filterPointTag.forEach((h) => h.updateScreenPosition({ force: !0 })), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
554
554
  }, i = () => {
555
- this.state.enabled && this.hide();
555
+ this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
556
556
  }, { observe: o, unobserve: s } = C(
557
- y(() => {
557
+ b(() => {
558
558
  this.store.resizeObserverDisposer && i();
559
559
  }, 500),
560
560
  e
@@ -592,7 +592,7 @@ class Zi extends O {
592
592
  addEventListener() {
593
593
  const { five: e, hooks: t } = this;
594
594
  let i = !1;
595
- const o = y(() => {
595
+ const o = b(() => {
596
596
  i || (i = !0, e.ready().then(() => {
597
597
  this.onFiveEveryReady(), i = !1;
598
598
  }));
@@ -18,7 +18,7 @@ let P = class {
18
18
  /**
19
19
  * @realsee/dnalogel 版本号
20
20
  */
21
- i(this, "VERSION", "3.49.1");
21
+ i(this, "VERSION", "3.49.3");
22
22
  i(this, "NAME");
23
23
  i(this, "five");
24
24
  i(this, "workUtil");
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.49.1",
3
+ "%c %c@realsee/dnalogel %cv3.49.3",
4
4
  [
5
5
  "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=')",
6
6
  "background-repeat: no-repeat",
@@ -4,8 +4,8 @@ var s = (h, t, e) => (g(h, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import { anyPositionToVector3 as d } from "./positionToVector3.js";
5
5
  import * as b from "three";
6
6
  import { vector3ToScreen as l } from "./five/vector3ToScreen.js";
7
- import { getFiveModel as U } from "./five/getFiveModel.js";
8
- import { FiveUtil as x } from "./Utils/FiveUtil.js";
7
+ import { getFiveModel as x } from "./five/getFiveModel.js";
8
+ import { FiveUtil as U } from "./Utils/FiveUtil.js";
9
9
  import { _raycaster as m } from "./three/temp.js";
10
10
  const v = "LightTagContainer_shgjakdhwakjdhsja", w = new b.Vector2();
11
11
  class E {
@@ -35,12 +35,12 @@ class E {
35
35
  if (this.intersectCheck && this.visible && this.five.state.mode !== "Panorama") {
36
36
  let e = 0.01;
37
37
  this.fiveUtil.workUtil.fromType === "poincare" && (e = 0.05), m.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
38
- const o = (t = U(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
38
+ const o = (t = x(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
39
39
  (o == null ? void 0 : o.distance) + e > this.transformedPosition.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
40
40
  }
41
41
  });
42
42
  var n, r, a;
43
- this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new x(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
43
+ this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new U(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
44
44
  const i = document.createElement("div");
45
45
  return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i.style.transition = "opacity 0.2s linear", i;
46
46
  })(), this.config = o != null ? o : {}, this.enable(), this.show();
@@ -57,7 +57,7 @@ class E {
57
57
  return;
58
58
  this.enabled = !0, this.wrapper = (r = (n = this.config.wrapper) != null ? n : (o = this.five.getElement()) == null ? void 0 : o.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (a = document.getElementById(v)) != null ? a : (() => {
59
59
  const i = document.createElement("div");
60
- return i.id = v, i.style.position = "absolute", i.style.top = "0", i.style.left = "0", i.style.width = "100%", i.style.height = "100%", i.style.pointerEvents = "none", i;
60
+ return i.id = v, i.style.position = "absolute", i.style.top = "0", i.style.left = "0", i.style.width = "100%", i.style.height = "100%", i.style.pointerEvents = "none", i.style.zIndex = "1", i;
61
61
  })(), this.wrapper.contains(this.tagWrapper) || this.wrapper.appendChild(this.tagWrapper)), this.tagWrapper.appendChild(this.container);
62
62
  let t = !1;
63
63
  const e = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.49.1",
3
+ "version": "3.49.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",