@realsee/dnalogel 3.41.1 → 3.41.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/CruisePlugin/BaseController.d.ts +0 -2
  3. package/dist/CurrentPanoImagePlugin/Controller.d.ts +1 -0
  4. package/dist/base/BasePlugin.d.ts +2 -0
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +3923 -3905
  7. package/dist/index.umd.js +48 -48
  8. package/dist/shared-utils/Utils/FiveUtil.d.ts +1 -0
  9. package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -0
  10. package/dist/shared-utils/five/getFiveModel.d.ts +2 -0
  11. package/libs/AreaMakerPlugin/Controller.js +6 -4
  12. package/libs/AreaMakerPlugin/index.js +5 -3
  13. package/libs/AreaMakerPlugin/utils/Item.js +2 -2
  14. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  15. package/libs/CSS3DRenderPlugin/index.js +6 -5
  16. package/libs/CruisePlugin/BaseController.d.ts +0 -2
  17. package/libs/CruisePlugin/BaseController.js +36 -36
  18. package/libs/CruisePlugin/Move.js +5 -4
  19. package/libs/CruisePlugin/Work.js +5 -4
  20. package/libs/CruisePlugin/index.js +9 -8
  21. package/libs/CurrentPanoImagePlugin/Controller.d.ts +1 -0
  22. package/libs/CurrentPanoImagePlugin/Controller.js +13 -11
  23. package/libs/CurrentPanoImagePlugin/index.js +6 -4
  24. package/libs/GuideLinePlugin/Controller.js +7 -6
  25. package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
  26. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -1
  27. package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -3
  28. package/libs/GuideLinePlugin/index.js +9 -8
  29. package/libs/ModelMakerPlugin/Controller.js +5 -3
  30. package/libs/ModelMakerPlugin/index.js +5 -3
  31. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  32. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  33. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  34. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  35. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -6
  36. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  37. package/libs/ModelTVVideoPlugin/index.js +3 -2
  38. package/libs/Object3DHelperPlugin/Controller.js +16 -14
  39. package/libs/Object3DHelperPlugin/index.js +8 -6
  40. package/libs/PanoCompassPlugin/Controller.js +5 -3
  41. package/libs/PanoCompassPlugin/index.js +6 -4
  42. package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
  43. package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
  44. package/libs/PanoDoorLabelPlugin/index.js +6 -4
  45. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  46. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  47. package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
  48. package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -34
  49. package/libs/PanoMeasurePlugin/Controller/WatchController.js +50 -49
  50. package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
  51. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  52. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +4 -3
  53. package/libs/PanoMeasurePlugin/index.js +16 -14
  54. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  55. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  56. package/libs/PanoTagPlugin/controller/TagCache.js +11 -9
  57. package/libs/PanoTagPlugin/controller/TagComputer.js +12 -10
  58. package/libs/PanoTagPlugin/controller/TagRender.js +5 -3
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +5 -3
  60. package/libs/PanoTagPlugin/controller/index.js +8 -6
  61. package/libs/PanoTagPlugin/index.js +14 -12
  62. package/libs/PanoVideoPlugin/Controller.js +5 -3
  63. package/libs/PanoVideoPlugin/index.js +8 -6
  64. package/libs/PipelinePlugin/Controller.js +25 -23
  65. package/libs/PipelinePlugin/index.js +6 -4
  66. package/libs/base/BasePlugin.d.ts +2 -0
  67. package/libs/base/BasePlugin.js +14 -13
  68. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +14 -11
  69. package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
  70. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
  71. package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
  72. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
  73. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
  74. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -3
  75. package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
  76. package/libs/index.js +128 -127
  77. package/libs/shared-utils/Utils/FiveUtil.d.ts +1 -0
  78. package/libs/shared-utils/Utils/FiveUtil.js +11 -7
  79. package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -0
  80. package/libs/shared-utils/five/FiveDomEvents.js +46 -42
  81. package/libs/shared-utils/five/fiveModelLoad.js +26 -17
  82. package/libs/shared-utils/five/getFiveModel.d.ts +2 -0
  83. package/libs/shared-utils/five/getFiveModel.js +7 -0
  84. package/libs/shared-utils/five/getPosition.js +24 -23
  85. package/libs/shared-utils/logger.js +1 -1
  86. package/libs/shared-utils/tag.js +10 -9
  87. package/libs/shared-utils/three/blink.js +10 -10
  88. package/libs/shared-utils/three/getIntersect.js +19 -18
  89. package/package.json +1 -1
  90. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
  91. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
@@ -1,45 +1,46 @@
1
- var l = Object.defineProperty, u = Object.defineProperties;
2
- var d = Object.getOwnPropertyDescriptors;
1
+ var u = Object.defineProperty, d = Object.defineProperties;
2
+ var m = Object.getOwnPropertyDescriptors;
3
3
  var i = Object.getOwnPropertySymbols;
4
4
  var y = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
5
- var o = (t, e, n) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, s = (t, e) => {
5
+ var s = (t, e, n) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, a = (t, e) => {
6
6
  for (var n in e || (e = {}))
7
- y.call(e, n) && o(t, n, e[n]);
7
+ y.call(e, n) && s(t, n, e[n]);
8
8
  if (i)
9
9
  for (var n of i(e))
10
- f.call(e, n) && o(t, n, e[n]);
10
+ f.call(e, n) && s(t, n, e[n]);
11
11
  return t;
12
- }, a = (t, e) => u(t, d(e));
13
- import * as r from "three";
14
- import { getRaycasterByNdcPosition as m } from "./getRaycasterByNdcPosition.js";
15
- function w(t, e) {
16
- const n = m(t, e);
17
- return g(t, n);
12
+ }, l = (t, e) => d(t, m(e));
13
+ import * as o from "three";
14
+ import { getRaycasterByNdcPosition as g } from "./getRaycasterByNdcPosition.js";
15
+ import { getFiveModel as p } from "./getFiveModel.js";
16
+ function j(t, e) {
17
+ const n = g(t, e);
18
+ return R(t, n);
18
19
  }
19
- function g(t, e) {
20
+ function R(t, e) {
20
21
  var n;
21
- return (n = p(t, e)) != null ? n : R(e);
22
+ return (n = B(t, e)) != null ? n : I(e);
22
23
  }
23
- function R(t) {
24
- const n = new r.Vector3().addVectors(
24
+ function I(t) {
25
+ const n = new o.Vector3().addVectors(
25
26
  t.ray.origin,
26
27
  t.ray.direction.clone().normalize().multiplyScalar(3)
27
- ), c = t.ray.direction.clone().negate();
28
+ ), r = t.ray.direction.clone().negate();
28
29
  return {
29
30
  distance: 3,
30
31
  point: n,
31
- object: new r.Object3D(),
32
- face: new r.Face3(0, 0, 0, c),
32
+ object: new o.Object3D(),
33
+ face: new o.Face3(0, 0, 0, r),
33
34
  raycaster: t,
34
35
  isVirtual: !0
35
36
  };
36
37
  }
37
- function p(t, e) {
38
- const c = t.model.intersectRaycaster(e)[0];
38
+ function B(t, e) {
39
+ const c = p(t).intersectRaycaster(e)[0];
39
40
  if (c)
40
- return a(s({}, c), { raycaster: e, isVirtual: !1 });
41
+ return l(a({}, c), { raycaster: e, isVirtual: !1 });
41
42
  }
42
43
  export {
43
- w as getIntersectByNdcPosition,
44
- g as getIntersectByRaycaster
44
+ j as getIntersectByNdcPosition,
45
+ R as getIntersectByRaycaster
45
46
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.41.1",
3
+ "%c %c@realsee/dnalogel %cv3.41.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,9 @@ var i = (s, t, e) => (p(s, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import { anyPositionToVector3 as f } from "./positionToVector3.js";
5
5
  import * as d from "three";
6
6
  import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
7
+ import { getFiveModel as m } from "./five/getFiveModel.js";
7
8
  const l = "LightTagContainer_shgjakdhwakjdhsja";
8
- class m {
9
+ class v {
9
10
  constructor(t, e, n) {
10
11
  i(this, "container");
11
12
  i(this, "visible", !1);
@@ -27,7 +28,7 @@ class m {
27
28
  if (this.visible && this.five.state.mode !== "Panorama") {
28
29
  const e = new d.Raycaster();
29
30
  e.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
30
- const n = (t = this.five.model.intersectRaycaster(e)) == null ? void 0 : t[0];
31
+ const n = (t = m(this.five).intersectRaycaster(e)) == null ? void 0 : t[0];
31
32
  (n == null ? void 0 : n.distance) > 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");
32
33
  }
33
34
  });
@@ -43,13 +44,13 @@ class m {
43
44
  this.visible = !1, t != null && t.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
44
45
  }
45
46
  enable() {
46
- var n, o, r, h;
47
+ var n, o, a, h;
47
48
  if (this.enabled)
48
49
  return;
49
50
  this.enabled = !0, this.wrapper || (this.wrapper = (o = (n = this.config.wrapper) != null ? n : document.getElementById(l)) != null ? o : (() => {
50
- const a = document.createElement("div");
51
- return a.id = l, a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a;
52
- })(), (r = this.five.getElement()) != null && r.parentElement.contains(this.wrapper) || (h = this.five.getElement()) == null || h.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
51
+ const r = document.createElement("div");
52
+ return r.id = l, r.style.position = "absolute", r.style.top = "0", r.style.left = "0", r.style.width = "100%", r.style.height = "100%", r.style.pointerEvents = "none", r;
53
+ })(), (a = this.five.getElement()) != null && a.parentElement.contains(this.wrapper) || (h = this.five.getElement()) == null || h.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
53
54
  let t = !1;
54
55
  const e = () => {
55
56
  t || (t = !0, this.five.ready().then(() => {
@@ -68,9 +69,9 @@ class m {
68
69
  this.transformedPosition = this.originPosition.clone().applyMatrix4(t), this.onCameraUpdate();
69
70
  }
70
71
  }
71
- function w(s, t, e) {
72
- return new m(s, t, e);
72
+ function E(s, t, e) {
73
+ return new v(s, t, e);
73
74
  }
74
75
  export {
75
- w as tag
76
+ E as tag
76
77
  };
@@ -1,12 +1,12 @@
1
- var o = Object.defineProperty;
1
+ var R = Object.defineProperty;
2
2
  var T = Object.getOwnPropertySymbols;
3
3
  var L = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var H = (l, r, a) => r in l ? o(l, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : l[r] = a, M = (l, r) => {
4
+ var o = (l, r, a) => r in l ? R(l, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : l[r] = a, M = (l, r) => {
5
5
  for (var a in r || (r = {}))
6
- L.call(r, a) && H(l, a, r[a]);
6
+ L.call(r, a) && o(l, a, r[a]);
7
7
  if (T)
8
8
  for (var a of T(r))
9
- x.call(r, a) && H(l, a, r[a]);
9
+ x.call(r, a) && o(l, a, r[a]);
10
10
  return l;
11
11
  };
12
12
  import D from "animejs";
@@ -35,7 +35,7 @@ function k(l) {
35
35
  })));
36
36
  });
37
37
  }
38
- function R(l) {
38
+ function H(l) {
39
39
  h(l).forEach((a) => {
40
40
  const e = f.get(a);
41
41
  e && (a instanceof HTMLElement && (a.style.opacity = e.opacity === void 0 ? "" : e.opacity, a.style.display = e.visible.display, a.style.visibility = e.visible.visibility), a.isObject3D && (a.visible = e.visible, a.material && (a.material instanceof d.ShaderMaterial ? (a.material.uniforms.opacity && (a.material.uniforms.opacity.value = e.opacity), a.material.transparent = e.transparent) : (a.material.opacity = e.opacity, a.material.transparent = e.transparent))), f.delete(a));
@@ -50,7 +50,7 @@ function m(l, r) {
50
50
  i instanceof HTMLElement ? y.push(i) : i.isObject3D && (a ? (y.push(i), i.traverse((c) => {
51
51
  c && y.push(c);
52
52
  })) : y.push(i));
53
- }), e = [...new Set(y)], k(e);
53
+ }), e = [...new Set(y.filter(Boolean))], k(e);
54
54
  const t = D(M({
55
55
  targets: e,
56
56
  duration: 300,
@@ -71,7 +71,7 @@ function m(l, r) {
71
71
  }
72
72
  }, r));
73
73
  t.preComplete = () => {
74
- t != null && t.completed || (t == null || t.pause(), R(e), setTimeout(() => {
74
+ t != null && t.completed || (t == null || t.pause(), H(e), setTimeout(() => {
75
75
  var i;
76
76
  return (i = r == null ? void 0 : r.updateRender) == null ? void 0 : i.call(r);
77
77
  }));
@@ -79,12 +79,12 @@ function m(l, r) {
79
79
  const u = v.get(l);
80
80
  return u == null || u.pause(), u == null || u.seek(0), v.set(l, t), t.play(), t.finished.then(() => {
81
81
  var i;
82
- R(e), setTimeout(() => {
82
+ H(e), setTimeout(() => {
83
83
  v.get(l) === t && v.delete(l);
84
84
  }, 1e3), (i = r == null ? void 0 : r.updateRender) == null || i.call(r);
85
85
  }), t;
86
86
  }
87
- function z(l, r) {
87
+ function q(l, r) {
88
88
  return m(l, M({
89
89
  update: (a) => {
90
90
  var e;
@@ -102,5 +102,5 @@ function z(l, r) {
102
102
  export {
103
103
  v as animeMap,
104
104
  m as blink,
105
- z as reblink
105
+ q as reblink
106
106
  };
@@ -1,23 +1,24 @@
1
- var f = Object.defineProperty, R = Object.defineProperties;
2
- var p = Object.getOwnPropertyDescriptors;
3
- var n = Object.getOwnPropertySymbols;
4
- var u = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var o = (e, t, s) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, a = (e, t) => {
1
+ var p = Object.defineProperty, R = Object.defineProperties;
2
+ var u = Object.getOwnPropertyDescriptors;
3
+ var c = Object.getOwnPropertySymbols;
4
+ var x = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
+ var n = (e, t, s) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, a = (e, t) => {
6
6
  for (var s in t || (t = {}))
7
- u.call(t, s) && o(e, s, t[s]);
8
- if (n)
9
- for (var s of n(t))
10
- x.call(t, s) && o(e, s, t[s]);
11
- return e;
12
- }, i = (e, t) => R(e, p(t));
13
- import * as E from "three";
14
- function g(e, t) {
15
- const { x: s, y: m } = t, l = s * 2 - 1, y = m * 2 - 1, r = new E.Raycaster();
16
- r.setFromCamera({ x: l, y }, e.camera);
17
- const c = e.model.intersectRaycaster(r)[0];
7
+ x.call(t, s) && n(e, s, t[s]);
18
8
  if (c)
19
- return i(a({}, c), { raycaster: r, isVirtual: !1 });
9
+ for (var s of c(t))
10
+ F.call(t, s) && n(e, s, t[s]);
11
+ return e;
12
+ }, i = (e, t) => R(e, u(t));
13
+ import * as d from "three";
14
+ import { getFiveModel as g } from "../five/getFiveModel.js";
15
+ function C(e, t) {
16
+ const s = g(e), { x: m, y: l } = t, f = m * 2 - 1, y = l * 2 - 1, r = new d.Raycaster();
17
+ r.setFromCamera({ x: f, y }, e.camera);
18
+ const o = s.intersectRaycaster(r)[0];
19
+ if (o)
20
+ return i(a({}, o), { raycaster: r, isVirtual: !1 });
20
21
  }
21
22
  export {
22
- g as getIntersectFromRelativePosition
23
+ C as getIntersectFromRelativePosition
23
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.41.1",
3
+ "version": "3.41.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -1,2 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- export default function fiveModelLoaded(five: Five): Promise<void>;
@@ -1,31 +0,0 @@
1
- var t = (o, n, e) => new Promise((u, r) => {
2
- var c = (d) => {
3
- try {
4
- a(e.next(d));
5
- } catch (l) {
6
- r(l);
7
- }
8
- }, f = (d) => {
9
- try {
10
- a(e.throw(d));
11
- } catch (l) {
12
- r(l);
13
- }
14
- }, a = (d) => d.done ? u(d.value) : Promise.resolve(d.value).then(c, f);
15
- a((e = e.apply(o, n)).next());
16
- });
17
- function m(o) {
18
- return t(this, null, function* () {
19
- return new Promise((n) => {
20
- var e;
21
- if ((e = o.model) != null && e.loaded) {
22
- n();
23
- return;
24
- } else
25
- o.once("modelLoaded", () => n());
26
- });
27
- });
28
- }
29
- export {
30
- m as default
31
- };