@realsee/dnalogel 3.50.13 → 3.50.14

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 (104) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/index.cjs.js +194 -194
  3. package/dist/index.js +3617 -3596
  4. package/dist/index.umd.js +191 -191
  5. package/dist/shared-utils/equal.d.ts +1 -1
  6. package/dist/shared-utils/index.d.ts +2 -1
  7. package/dist/shared-utils/tag.d.ts +18 -7
  8. package/libs/AreaMakerPlugin/Controller.js +3 -3
  9. package/libs/AreaMakerPlugin/index.js +6 -6
  10. package/libs/AreaMakerPlugin/utils/Item.js +3 -3
  11. package/libs/CSS3DRenderPlugin/Controller.js +3 -3
  12. package/libs/CSS3DRenderPlugin/index.js +7 -7
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -3
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +5 -5
  15. package/libs/CruisePlugin/BaseController.js +13 -13
  16. package/libs/CruisePlugin/Move.js +3 -3
  17. package/libs/CruisePlugin/Work.js +2 -2
  18. package/libs/CruisePlugin/index.js +8 -8
  19. package/libs/CurrentPanoImagePlugin/Controller.js +3 -3
  20. package/libs/CurrentPanoImagePlugin/index.js +6 -6
  21. package/libs/GuideLinePlugin/Controller.js +19 -19
  22. package/libs/GuideLinePlugin/GuideLineItem.js +7 -7
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +1 -1
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -3
  25. package/libs/GuideLinePlugin/index.js +8 -8
  26. package/libs/ModelMakerPlugin/Controller.js +3 -3
  27. package/libs/ModelMakerPlugin/index.js +7 -7
  28. package/libs/ModelTVVideoPlugin/Plugin.js +5 -5
  29. package/libs/ModelTVVideoPlugin/index.js +5 -5
  30. package/libs/Object3DHelperPlugin/Controller.js +6 -6
  31. package/libs/Object3DHelperPlugin/index.js +7 -7
  32. package/libs/PanoCompassPlugin/Controller.js +6 -6
  33. package/libs/PanoCompassPlugin/index.js +6 -6
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +7 -7
  35. package/libs/PanoDoorLabelPlugin/Controller.js +6 -6
  36. package/libs/PanoDoorLabelPlugin/index.js +6 -6
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -5
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +5 -5
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -4
  41. package/libs/PanoMeasurePlugin/Controller/index.js +3 -3
  42. package/libs/PanoMeasurePlugin/Model/area.js +5 -5
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +7 -7
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +5 -5
  45. package/libs/PanoMeasurePlugin/index.js +3 -3
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -3
  47. package/libs/PanoRulerProPlugin/Controller.js +52 -33
  48. package/libs/PanoRulerProPlugin/RulerItems.js +104 -85
  49. package/libs/PanoRulerProPlugin/index.js +23 -4
  50. package/libs/PanoSpatialTagPlugin/Plugin.js +5 -5
  51. package/libs/PanoSpatialTagPlugin/index.js +5 -5
  52. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
  53. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -3
  54. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -3
  55. package/libs/PanoTagPlugin/Components/TagContainer.js +6 -6
  56. package/libs/PanoTagPlugin/Components/TagItem.js +3 -3
  57. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -3
  58. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +7 -7
  59. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +7 -7
  60. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +7 -7
  61. package/libs/PanoTagPlugin/controller/TagRender.js +6 -6
  62. package/libs/PanoTagPlugin/controller/TagUtil.js +5 -5
  63. package/libs/PanoTagPlugin/controller/index.js +3 -3
  64. package/libs/PanoTagPlugin/index.js +6 -6
  65. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -3
  66. package/libs/PanoVideoPlugin/Controller.js +7 -7
  67. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -3
  68. package/libs/PanoVideoPlugin/index.js +7 -7
  69. package/libs/PipelinePlugin/Controller.js +15 -15
  70. package/libs/PipelinePlugin/index.js +7 -7
  71. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -3
  72. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -3
  73. package/libs/PipelinePlugin/utils/Objects/Pipe.js +3 -3
  74. package/libs/Sculpt/Meshes/Box.js +1 -1
  75. package/libs/Sculpt/Meshes/Cylinder.js +1 -1
  76. package/libs/Sculpt/Meshes/Line.js +4 -4
  77. package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
  78. package/libs/Sculpt/Meshes/Point.js +1 -1
  79. package/libs/Sculpt/Meshes/Prism.js +9 -8
  80. package/libs/Sculpt/Meshes/Rectangle.js +1 -1
  81. package/libs/Sculpt/Objects/Line/Editor.js +1 -1
  82. package/libs/Sculpt/index.js +1 -1
  83. package/libs/Sculpt/utils/three/ColoredMesh.js +1 -1
  84. package/libs/base/BasePlugin.js +2 -2
  85. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -3
  86. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -6
  87. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -3
  88. package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -6
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +7 -7
  90. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -7
  91. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -3
  92. package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -6
  93. package/libs/floorplan/index.js +1 -1
  94. package/libs/index.js +6 -6
  95. package/libs/shared-utils/equal.d.ts +1 -1
  96. package/libs/shared-utils/five/index.js +1 -1
  97. package/libs/shared-utils/five/lookObject.js +1 -1
  98. package/libs/shared-utils/index.d.ts +2 -1
  99. package/libs/shared-utils/index.js +57 -54
  100. package/libs/shared-utils/logger.js +1 -1
  101. package/libs/shared-utils/tag.d.ts +18 -7
  102. package/libs/shared-utils/tag.js +80 -61
  103. package/libs/shared-utils/three/index.js +1 -1
  104. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import t from "./Controller/index.js";
2
+ import "../shared-utils/tag.js";
2
3
  import "three";
3
4
  import { Magnifier as fr } from "../shared-utils/three/Magnifier.js";
4
5
  import "three/examples/jsm/renderers/CSS3DRenderer";
5
6
  import "@realsee/five/line";
6
7
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
7
- import "../shared-utils/tag.js";
8
8
  import "../shared-utils/three/core/Sphere.js";
9
9
  import "animejs";
10
10
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -37,8 +37,6 @@ import "./utils/dom/areaDom.js";
37
37
  import "../shared-utils/three/geometryUtil.js";
38
38
  import "hammerjs";
39
39
  import "../shared-utils/isNil.js";
40
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
41
- import "../vendor/three/build/three.module.js";
42
40
  import "../shared-utils/positionToVector3.js";
43
41
  import "../shared-utils/five/vector3ToScreen.js";
44
42
  import "../shared-utils/five/getFiveModel.js";
@@ -49,6 +47,8 @@ import "../shared-utils/Utils/WorkUtil.js";
49
47
  import "../shared-utils/five/transformPosition.js";
50
48
  import "../shared-utils/three/temp.js";
51
49
  import "../shared-utils/dom/resizeObserver.js";
50
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
51
+ import "../vendor/three/build/three.module.js";
52
52
  import "../shared-utils/three/PointSelector/index.js";
53
53
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
54
54
  import "../shared-utils/three/PointSelector/utils/PointHelper.js";
@@ -13,20 +13,18 @@ var m = (i, o, t) => o in i ? u(i, o, { enumerable: !0, configurable: !0, writab
13
13
  var l = (i, o, t) => (m(i, typeof o != "symbol" ? o + "" : o, t), t);
14
14
  import { ItemDom as y } from "./base.js";
15
15
  import { getGeometryInfo as I } from "../../../shared-utils/three/geometryUtil.js";
16
+ import "../../../shared-utils/tag.js";
16
17
  import "three";
17
18
  import "hammerjs";
18
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
19
20
  import "@realsee/five/line";
20
21
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
21
- import "../../../shared-utils/tag.js";
22
22
  import "../../../shared-utils/three/core/Sphere.js";
23
23
  import "animejs";
24
24
  import { isNil as P } from "../../../shared-utils/isNil.js";
25
25
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
26
  import "../isNDCPointInScreen.js";
27
27
  import "../../../shared-utils/three/centerPoint.js";
28
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
29
- import "../../../vendor/three/build/three.module.js";
30
28
  import "../../../shared-utils/positionToVector3.js";
31
29
  import "../../../shared-utils/five/vector3ToScreen.js";
32
30
  import "../../../shared-utils/five/getFiveModel.js";
@@ -37,6 +35,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
37
35
  import "../../../shared-utils/five/transformPosition.js";
38
36
  import "../../../shared-utils/three/temp.js";
39
37
  import "../../../shared-utils/dom/resizeObserver.js";
38
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
39
+ import "../../../vendor/three/build/three.module.js";
40
40
  class Y extends y {
41
41
  constructor(t) {
42
42
  t.containerStyle = s(p({}, t.containerStyle), {
@@ -1,49 +1,68 @@
1
- var m = Object.defineProperty;
2
- var f = Object.getOwnPropertySymbols;
1
+ var f = Object.defineProperty;
2
+ var c = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var p = (i, t, e) => t in i ? m(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, c = (i, t) => {
4
+ var h = (i, t, e) => t in i ? f(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, u = (i, t) => {
5
5
  for (var e in t || (t = {}))
6
- v.call(t, e) && p(i, e, t[e]);
7
- if (f)
8
- for (var e of f(t))
9
- b.call(t, e) && p(i, e, t[e]);
6
+ v.call(t, e) && h(i, e, t[e]);
7
+ if (c)
8
+ for (var e of c(t))
9
+ b.call(t, e) && h(i, e, t[e]);
10
10
  return i;
11
11
  };
12
- var r = (i, t, e) => (p(i, typeof t != "symbol" ? t + "" : t, e), e);
13
- var d = (i, t, e) => new Promise((a, o) => {
14
- var n = (s) => {
12
+ var o = (i, t, e) => (h(i, typeof t != "symbol" ? t + "" : t, e), e);
13
+ var l = (i, t, e) => new Promise((a, s) => {
14
+ var n = (r) => {
15
15
  try {
16
- h(e.next(s));
17
- } catch (u) {
18
- o(u);
16
+ d(e.next(r));
17
+ } catch (m) {
18
+ s(m);
19
19
  }
20
- }, l = (s) => {
20
+ }, p = (r) => {
21
21
  try {
22
- h(e.throw(s));
23
- } catch (u) {
24
- o(u);
22
+ d(e.throw(r));
23
+ } catch (m) {
24
+ s(m);
25
25
  }
26
- }, h = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(n, l);
27
- h((e = e.apply(i, t)).next());
26
+ }, d = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(n, p);
27
+ d((e = e.apply(i, t)).next());
28
28
  });
29
29
  import I from "./RulerItems.js";
30
30
  import "../vendor/svelte/internal/index.js";
31
31
  import "@realsee/five";
32
32
  import "../shared-utils/animationFrame/index.js";
33
33
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
34
+ import "../shared-utils/tag.js";
35
+ import "../shared-utils/positionToVector3.js";
36
+ import "three";
37
+ import "../shared-utils/five/vector3ToScreen.js";
38
+ import "../shared-utils/five/getFiveModel.js";
39
+ import "../shared-utils/Utils/FiveUtil.js";
40
+ import "../shared-utils/Utils/BaseUtil.js";
41
+ import "../shared-utils/Subscribe.js";
42
+ import "../shared-utils/Utils/WorkUtil.js";
43
+ import "../shared-utils/five/transformPosition.js";
44
+ import "../shared-utils/three/temp.js";
45
+ import "../shared-utils/dom/resizeObserver.js";
46
+ import "hammerjs";
47
+ import "three/examples/jsm/renderers/CSS3DRenderer";
48
+ import "@realsee/five/line";
49
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
50
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
51
+ import "../vendor/three/build/three.module.js";
52
+ import "../shared-utils/three/core/Sphere.js";
53
+ import "animejs";
34
54
  import "../shared-utils/equal.js";
35
55
  import "../shared-utils/isTruelyObject.js";
36
56
  import "../shared-utils/math/planimetry.js";
37
57
  import "../shared-utils/throttle.js";
38
- import "three";
39
58
  import "./RulerItem.js";
40
- class A {
59
+ class X {
41
60
  constructor(t, e) {
42
- r(this, "five");
43
- r(this, "container", document.createElement("div"));
44
- r(this, "panoRulerProData");
45
- r(this, "rulerItems");
46
- r(this, "state", {
61
+ o(this, "five");
62
+ o(this, "container", document.createElement("div"));
63
+ o(this, "panoRulerProData");
64
+ o(this, "rulerItems");
65
+ o(this, "state", {
47
66
  enabled: !1,
48
67
  loaded: !1,
49
68
  options: {
@@ -51,17 +70,17 @@ class A {
51
70
  distanceText: (t) => `${t.toFixed(1)}m`
52
71
  }
53
72
  });
54
- var a, o;
73
+ var a, s;
55
74
  this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
56
75
  "style",
57
76
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
58
- ), e && (e.data && this.load(e.data), this.state.options = c(c({}, this.state.options), e.options || {}), (a = e.options) != null && a.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => d(this, null, function* () {
59
- var n, l;
60
- (l = (n = this.five.getElement()) == null ? void 0 : n.parentNode) == null || l.append(this.container);
77
+ ), e && (e.data && this.load(e.data), this.state.options = u(u({}, this.state.options), e.options || {}), (a = e.options) != null && a.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => l(this, null, function* () {
78
+ var n, p;
79
+ (p = (n = this.five.getElement()) == null ? void 0 : n.parentNode) == null || p.append(this.container);
61
80
  })), this.five.once("dispose", () => this.dispose());
62
81
  }
63
82
  load(t) {
64
- return d(this, null, function* () {
83
+ return l(this, null, function* () {
65
84
  if (!this.five.work)
66
85
  return;
67
86
  const e = t.data;
@@ -77,7 +96,7 @@ class A {
77
96
  return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
78
97
  }
79
98
  render() {
80
- return d(this, null, function* () {
99
+ return l(this, null, function* () {
81
100
  var t;
82
101
  if (this.state.enabled) {
83
102
  if (!this.panoRulerProData || !this.container)
@@ -100,5 +119,5 @@ class A {
100
119
  }
101
120
  }
102
121
  export {
103
- A as default
122
+ X as default
104
123
  };
@@ -1,30 +1,49 @@
1
- import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as nt, destroy_each as ot, onMount as rt, onDestroy as st, create_component as at, mount_component as ct, destroy_component as it, group_outros as lt } from "../vendor/svelte/internal/index.js";
2
- import { Five as ft } from "@realsee/five";
3
- import { nextFrame as mt } from "../shared-utils/animationFrame/index.js";
1
+ import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as nt, onMount as rt, onDestroy as st, create_component as at, mount_component as it, destroy_component as ct, group_outros as lt } from "../vendor/svelte/internal/index.js";
2
+ import { Five as mt } from "@realsee/five";
3
+ import { nextFrame as ft } from "../shared-utils/animationFrame/index.js";
4
+ import "../shared-utils/tag.js";
5
+ import { Vector3 as M } from "three";
6
+ import "hammerjs";
7
+ import "three/examples/jsm/renderers/CSS3DRenderer";
8
+ import "@realsee/five/line";
9
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
10
+ import "../shared-utils/three/core/Sphere.js";
11
+ import "animejs";
4
12
  import { equal as z } from "../shared-utils/equal.js";
5
13
  import { intersectionOfLine as ut } from "../shared-utils/math/planimetry.js";
6
- import { throttle as ht } from "../shared-utils/throttle.js";
7
- import { Vector3 as M } from "three";
8
- import dt from "./RulerItem.js";
14
+ import { throttle as pt } from "../shared-utils/throttle.js";
15
+ import ht from "./RulerItem.js";
9
16
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
17
+ import "../shared-utils/positionToVector3.js";
18
+ import "../shared-utils/five/vector3ToScreen.js";
19
+ import "../shared-utils/five/getFiveModel.js";
20
+ import "../shared-utils/Utils/FiveUtil.js";
21
+ import "../shared-utils/Utils/BaseUtil.js";
22
+ import "../shared-utils/Subscribe.js";
23
+ import "../shared-utils/Utils/WorkUtil.js";
24
+ import "../shared-utils/five/transformPosition.js";
25
+ import "../shared-utils/three/temp.js";
26
+ import "../shared-utils/dom/resizeObserver.js";
27
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
28
+ import "../vendor/three/build/three.module.js";
10
29
  import "../shared-utils/isTruelyObject.js";
11
- function J(p, r, i) {
12
- const t = p.slice();
13
- return t[12] = r[i], t;
30
+ function J(d, r, c) {
31
+ const t = d.slice();
32
+ return t[12] = r[c], t;
14
33
  }
15
- function K(p) {
16
- let r, i;
17
- return r = new dt({
34
+ function K(d) {
35
+ let r, c;
36
+ return r = new ht({
18
37
  props: { rulerItemProp: (
19
38
  /*itemData*/
20
- p[12]
39
+ d[12]
21
40
  ) }
22
41
  }), {
23
42
  c() {
24
43
  at(r.$$.fragment);
25
44
  },
26
45
  m(t, e) {
27
- ct(r, t, e), i = !0;
46
+ it(r, t, e), c = !0;
28
47
  },
29
48
  p(t, e) {
30
49
  const w = {};
@@ -33,110 +52,110 @@ function K(p) {
33
52
  t[12]), r.$set(w);
34
53
  },
35
54
  i(t) {
36
- i || (C(r.$$.fragment, t), i = !0);
55
+ c || (C(r.$$.fragment, t), c = !0);
37
56
  },
38
57
  o(t) {
39
- k(r.$$.fragment, t), i = !1;
58
+ k(r.$$.fragment, t), c = !1;
40
59
  },
41
60
  d(t) {
42
- it(r, t);
61
+ ct(r, t);
43
62
  }
44
63
  };
45
64
  }
46
- function pt(p) {
47
- let r, i, t = (
65
+ function dt(d) {
66
+ let r, c, t = (
48
67
  /*rulerItemProp*/
49
- p[0]
68
+ d[0]
50
69
  ), e = [];
51
- for (let o = 0; o < t.length; o += 1)
52
- e[o] = K(J(p, t, o));
53
- const w = (o) => k(e[o], 1, 1, () => {
54
- e[o] = null;
70
+ for (let n = 0; n < t.length; n += 1)
71
+ e[n] = K(J(d, t, n));
72
+ const w = (n) => k(e[n], 1, 1, () => {
73
+ e[n] = null;
55
74
  });
56
75
  return {
57
76
  c() {
58
77
  r = $("div");
59
- for (let o = 0; o < e.length; o += 1)
60
- e[o].c();
61
- },
62
- m(o, a) {
63
- tt(o, r, a);
64
78
  for (let n = 0; n < e.length; n += 1)
65
- e[n] && e[n].m(r, null);
66
- i = !0;
79
+ e[n].c();
80
+ },
81
+ m(n, a) {
82
+ tt(n, r, a);
83
+ for (let o = 0; o < e.length; o += 1)
84
+ e[o] && e[o].m(r, null);
85
+ c = !0;
67
86
  },
68
- p(o, [a]) {
87
+ p(n, [a]) {
69
88
  if (a & /*rulerItemProp*/
70
89
  1) {
71
90
  t = /*rulerItemProp*/
72
- o[0];
73
- let n;
74
- for (n = 0; n < t.length; n += 1) {
75
- const A = J(o, t, n);
76
- e[n] ? (e[n].p(A, a), C(e[n], 1)) : (e[n] = K(A), e[n].c(), C(e[n], 1), e[n].m(r, null));
91
+ n[0];
92
+ let o;
93
+ for (o = 0; o < t.length; o += 1) {
94
+ const A = J(n, t, o);
95
+ e[o] ? (e[o].p(A, a), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(r, null));
77
96
  }
78
- for (lt(), n = t.length; n < e.length; n += 1)
79
- w(n);
97
+ for (lt(), o = t.length; o < e.length; o += 1)
98
+ w(o);
80
99
  et();
81
100
  }
82
101
  },
83
- i(o) {
84
- if (!i) {
102
+ i(n) {
103
+ if (!c) {
85
104
  for (let a = 0; a < t.length; a += 1)
86
105
  C(e[a]);
87
- i = !0;
106
+ c = !0;
88
107
  }
89
108
  },
90
- o(o) {
109
+ o(n) {
91
110
  e = e.filter(Boolean);
92
111
  for (let a = 0; a < e.length; a += 1)
93
112
  k(e[a]);
94
- i = !1;
113
+ c = !1;
95
114
  },
96
- d(o) {
97
- o && nt(r), ot(e, o);
115
+ d(n) {
116
+ n && ot(r), nt(e, n);
98
117
  }
99
118
  };
100
119
  }
101
- function gt(p, r, i) {
120
+ function gt(d, r, c) {
102
121
  var B, G, H, U;
103
- let { five: t } = r, { rulerDatas: e } = r, { options: w } = r, o = [];
104
- const a = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, n = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (c, l) => {
105
- const f = [
122
+ let { five: t } = r, { rulerDatas: e } = r, { options: w } = r, n = [];
123
+ const a = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, o = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (i, l) => {
124
+ const m = [
106
125
  [{ x: 0, y: 0 }, { x: a, y: 0 }],
107
- [{ x: 0, y: 0 }, { x: 0, y: n }],
108
- [{ x: a, y: 0 }, { x: a, y: n }],
109
- [{ x: 0, y: n }, { x: a, y: n }]
126
+ [{ x: 0, y: 0 }, { x: 0, y: o }],
127
+ [{ x: a, y: 0 }, { x: a, y: o }],
128
+ [{ x: 0, y: o }, { x: a, y: o }]
110
129
  ], u = [];
111
- for (let h = 0; h < f.length; h++) {
112
- const g = ut([c, l], [f[h][0], f[h][1]], !0);
130
+ for (let p = 0; p < m.length; p++) {
131
+ const g = ut([i, l], [m[p][0], m[p][1]], !0);
113
132
  g && u.push(g);
114
133
  }
115
134
  return u.length === 0 ? !1 : u;
116
- }, j = (c, l) => {
117
- const f = c.clone().project(t.camera), u = (f.x + 1) / 2 * a, h = (-f.y + 1) / 2 * n, g = l.clone().project(t.camera), L = (g.x + 1) / 2 * a, y = (-g.y + 1) / 2 * n, s = Math.sqrt(Math.pow(L - u, 2) + Math.pow(y - h, 2));
135
+ }, j = (i, l) => {
136
+ const m = i.clone().project(t.camera), u = (m.x + 1) / 2 * a, p = (-m.y + 1) / 2 * o, g = l.clone().project(t.camera), L = (g.x + 1) / 2 * a, y = (-g.y + 1) / 2 * o, s = Math.sqrt(Math.pow(L - u, 2) + Math.pow(y - p, 2));
118
137
  return {
119
138
  startLeft: u,
120
- startTop: h,
139
+ startTop: p,
121
140
  endLeft: L,
122
141
  endTop: y,
123
142
  distance: s
124
143
  };
125
- }, N = (c, l, f) => {
126
- const u = t.camera.position, h = t.camera.getWorldDirection(new M()), g = c.clone().sub(u).normalize().angleTo(h), L = l.clone().sub(u).normalize().angleTo(h), y = c.distanceTo(l), T = l.clone().sub(l.clone().sub(c).divide(new M(2, 2, 2))).distanceTo(u), { startLeft: d, startTop: x, endLeft: v, endTop: q, distance: D } = j(c, l), S = -((Math.PI / 2 - Math.atan2(v - d, x - q)) / Math.PI) * 180;
144
+ }, N = (i, l, m) => {
145
+ const u = t.camera.position, p = t.camera.getWorldDirection(new M()), g = i.clone().sub(u).normalize().angleTo(p), L = l.clone().sub(u).normalize().angleTo(p), y = i.distanceTo(l), T = l.clone().sub(l.clone().sub(i).divide(new M(2, 2, 2))).distanceTo(u), { startLeft: h, startTop: x, endLeft: v, endTop: q, distance: D } = j(i, l), S = -((Math.PI / 2 - Math.atan2(v - h, x - q)) / Math.PI) * 180;
127
146
  let P = !0;
128
- f || (P = !1), !z(c, f) && !z(l, f) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
147
+ m || (P = !1), !z(i, m) && !z(l, m) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
129
148
  let I = 50, b = D;
130
- const m = A({ x: ~~d, y: ~~x }, { x: ~~v, y: ~~q });
131
- if (m && m.length === 1 && (z(c, f) ? (b = Math.sqrt(Math.pow(m[0].x - d, 2) + Math.pow(m[0].y - x, 2)), I = b / D * 50) : z(l, f) && (b = Math.sqrt(Math.pow(m[0].x - v, 2) + Math.pow(m[0].y - q, 2)), I = 100 - b / D * 50)), m && m.length === 2) {
149
+ const f = A({ x: ~~h, y: ~~x }, { x: ~~v, y: ~~q });
150
+ if (f && f.length === 1 && (z(i, m) ? (b = Math.sqrt(Math.pow(f[0].x - h, 2) + Math.pow(f[0].y - x, 2)), I = b / D * 50) : z(l, m) && (b = Math.sqrt(Math.pow(f[0].x - v, 2) + Math.pow(f[0].y - q, 2)), I = 100 - b / D * 50)), f && f.length === 2) {
132
151
  const F = {
133
- x: (m[0].x + m[1].x) / 2,
134
- y: (m[0].y + m[1].y) / 2
152
+ x: (f[0].x + f[1].x) / 2,
153
+ y: (f[0].y + f[1].y) / 2
135
154
  };
136
- I = Math.sqrt(Math.pow(F.x - d, 2) + Math.pow(F.y - x, 2)) / D * 100;
155
+ I = Math.sqrt(Math.pow(F.x - h, 2) + Math.pow(F.y - x, 2)) / D * 100;
137
156
  }
138
157
  return {
139
- startLeft: d,
158
+ startLeft: h,
140
159
  startTop: x,
141
160
  distance: D,
142
161
  deg: S,
@@ -145,18 +164,18 @@ function gt(p, r, i) {
145
164
  ruleLength: y
146
165
  };
147
166
  }, _ = () => {
148
- const c = t.panoIndex, l = e.find((s) => s.panoIndex === c);
167
+ const i = t.panoIndex, l = e.find((s) => s.panoIndex === i);
149
168
  if (!l)
150
- return i(0, o = []);
151
- if (t.currentMode !== ft.Mode.Panorama)
152
- return i(0, o = []);
153
- const f = t.camera.position, u = t.camera.getWorldDirection(new M()), h = l.lines.map((s) => new M(s.start[0], -s.start[1], -s.start[2])), g = l.lines.map((s) => new M(s.end[0], -s.end[1], -s.end[2])), [L] = h.concat(g).sort((s, T) => {
154
- const d = s.clone().setY(0).sub(f).normalize().angleTo(u.clone().setY(0)), x = T.clone().setY(0).sub(f).normalize().angleTo(u.clone().setY(0));
155
- return d - x;
169
+ return c(0, n = []);
170
+ if (t.currentMode !== mt.Mode.Panorama)
171
+ return c(0, n = []);
172
+ const m = t.camera.position, u = t.camera.getWorldDirection(new M()), p = l.lines.map((s) => new M(s.start[0], -s.start[1], -s.start[2])), g = l.lines.map((s) => new M(s.end[0], -s.end[1], -s.end[2])), [L] = p.concat(g).sort((s, T) => {
173
+ const h = s.clone().setY(0).sub(m).normalize().angleTo(u.clone().setY(0)), x = T.clone().setY(0).sub(m).normalize().angleTo(u.clone().setY(0));
174
+ return h - x;
156
175
  }), y = l.lines.map((s) => {
157
- var b, m;
158
- const T = s.start, d = s.end, { startLeft: x, startTop: v, distance: q, deg: D, visible: V, labelOffset: S, ruleLength: P } = N(new M(T[0], -T[1], -T[2]), new M(d[0], -d[1], -d[2]), L), I = [];
159
- return s.children && ((b = s.children) == null ? void 0 : b.length) > 0 && ((m = s.children) == null || m.forEach((F) => {
176
+ var b, f;
177
+ const T = s.start, h = s.end, { startLeft: x, startTop: v, distance: q, deg: D, visible: V, labelOffset: S, ruleLength: P } = N(new M(T[0], -T[1], -T[2]), new M(h[0], -h[1], -h[2]), L), I = [];
178
+ return s.children && ((b = s.children) == null ? void 0 : b.length) > 0 && ((f = s.children) == null || f.forEach((F) => {
160
179
  const W = F.start, Y = F.end, { distance: O } = j(new M(W[0], -W[1], -W[2]), new M(Y[0], -Y[1], -Y[2]));
161
180
  I.push({ width: O, state: F.state });
162
181
  })), {
@@ -171,21 +190,21 @@ function gt(p, r, i) {
171
190
  labelElement: w.distanceText(P)
172
191
  };
173
192
  });
174
- i(0, o = y);
175
- }, E = () => mt(_), R = ht(_, 80);
193
+ c(0, n = y);
194
+ }, E = () => ft(_), R = pt(_, 80);
176
195
  return rt(() => {
177
196
  _(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
178
197
  }), st(() => {
179
198
  t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
180
- }), p.$$set = (c) => {
181
- "five" in c && i(1, t = c.five), "rulerDatas" in c && i(2, e = c.rulerDatas), "options" in c && i(3, w = c.options);
182
- }, [o, t, e, w];
199
+ }), d.$$set = (i) => {
200
+ "five" in i && c(1, t = i.five), "rulerDatas" in i && c(2, e = i.rulerDatas), "options" in i && c(3, w = i.options);
201
+ }, [n, t, e, w];
183
202
  }
184
- class Lt extends Q {
203
+ class Jt extends Q {
185
204
  constructor(r) {
186
- super(), X(this, r, gt, pt, Z, { five: 1, rulerDatas: 2, options: 3 });
205
+ super(), X(this, r, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
187
206
  }
188
207
  }
189
208
  export {
190
- Lt as default
209
+ Jt as default
191
210
  };
@@ -4,14 +4,33 @@ import "../vendor/svelte/internal/index.js";
4
4
  import "@realsee/five";
5
5
  import "../shared-utils/animationFrame/index.js";
6
6
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
7
+ import "../shared-utils/tag.js";
8
+ import "../shared-utils/positionToVector3.js";
9
+ import "three";
10
+ import "../shared-utils/five/vector3ToScreen.js";
11
+ import "../shared-utils/five/getFiveModel.js";
12
+ import "../shared-utils/Utils/FiveUtil.js";
13
+ import "../shared-utils/Utils/BaseUtil.js";
14
+ import "../shared-utils/Subscribe.js";
15
+ import "../shared-utils/Utils/WorkUtil.js";
16
+ import "../shared-utils/five/transformPosition.js";
17
+ import "../shared-utils/three/temp.js";
18
+ import "../shared-utils/dom/resizeObserver.js";
19
+ import "hammerjs";
20
+ import "three/examples/jsm/renderers/CSS3DRenderer";
21
+ import "@realsee/five/line";
22
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
23
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
24
+ import "../vendor/three/build/three.module.js";
25
+ import "../shared-utils/three/core/Sphere.js";
26
+ import "animejs";
7
27
  import "../shared-utils/equal.js";
8
28
  import "../shared-utils/isTruelyObject.js";
9
29
  import "../shared-utils/math/planimetry.js";
10
30
  import "../shared-utils/throttle.js";
11
- import "three";
12
31
  import "./RulerItem.js";
13
- const d = (r, o) => new t(r, o);
32
+ const G = (r, o) => new t(r, o);
14
33
  export {
15
- d as PanoRulerProPlugin,
16
- d as default
34
+ G as PanoRulerProPlugin,
35
+ G as default
17
36
  };
@@ -18,11 +18,6 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
18
18
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
19
19
  import "../shared-utils/three/centerPoint.js";
20
20
  import "../shared-utils/three/getObjectVisible.js";
21
- import "hammerjs";
22
- import "@realsee/five/line";
23
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
24
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
25
- import "../vendor/three/build/three.module.js";
26
21
  import "../shared-utils/tag.js";
27
22
  import "../shared-utils/five/vector3ToScreen.js";
28
23
  import "../shared-utils/five/getFiveModel.js";
@@ -32,6 +27,11 @@ import "../shared-utils/Utils/WorkUtil.js";
32
27
  import "../shared-utils/five/transformPosition.js";
33
28
  import "../shared-utils/three/temp.js";
34
29
  import "../shared-utils/dom/resizeObserver.js";
30
+ import "hammerjs";
31
+ import "@realsee/five/line";
32
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
33
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
34
+ import "../vendor/three/build/three.module.js";
35
35
  import "../shared-utils/three/core/Sphere.js";
36
36
  import "animejs";
37
37
  import "../shared-utils/isNil.js";
@@ -15,11 +15,6 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
15
15
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
16
16
  import "../shared-utils/three/centerPoint.js";
17
17
  import "../shared-utils/three/getObjectVisible.js";
18
- import "hammerjs";
19
- import "@realsee/five/line";
20
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
21
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
22
- import "../vendor/three/build/three.module.js";
23
18
  import "../shared-utils/tag.js";
24
19
  import "../shared-utils/five/vector3ToScreen.js";
25
20
  import "../shared-utils/five/getFiveModel.js";
@@ -29,6 +24,11 @@ import "../shared-utils/Utils/WorkUtil.js";
29
24
  import "../shared-utils/five/transformPosition.js";
30
25
  import "../shared-utils/three/temp.js";
31
26
  import "../shared-utils/dom/resizeObserver.js";
27
+ import "hammerjs";
28
+ import "@realsee/five/line";
29
+ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
30
+ import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
31
+ import "../vendor/three/build/three.module.js";
32
32
  import "../shared-utils/three/core/Sphere.js";
33
33
  import "animejs";
34
34
  import "../shared-utils/isNil.js";
@@ -2,13 +2,13 @@ import { SvelteComponent as j, init as q, safe_not_equal as O, append_styles as
2
2
  import H from "./Shadow.js";
3
3
  import J from "./Icon/Icon.js";
4
4
  import { Image_Default_Point as K } from "../../Assets/Icon.js";
5
+ import "../../../shared-utils/tag.js";
5
6
  import { isModelLike as N } from "../../../shared-utils/five/mode.js";
6
7
  import "three";
7
8
  import "hammerjs";
8
9
  import "three/examples/jsm/renderers/CSS3DRenderer";
9
10
  import "@realsee/five/line";
10
11
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
11
- import "../../../shared-utils/tag.js";
12
12
  import "../../../shared-utils/three/core/Sphere.js";
13
13
  import "animejs";
14
14
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -17,8 +17,6 @@ import "../../../vendor/svelte/easing/index.js";
17
17
  import "../../utils/noTypecheck.js";
18
18
  import "../../utils/getImageInfo.js";
19
19
  import "../../utils/px2rem.js";
20
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
21
- import "../../../vendor/three/build/three.module.js";
22
20
  import "../../../shared-utils/positionToVector3.js";
23
21
  import "../../../shared-utils/five/vector3ToScreen.js";
24
22
  import "../../../shared-utils/five/getFiveModel.js";
@@ -29,6 +27,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
29
27
  import "../../../shared-utils/five/transformPosition.js";
30
28
  import "../../../shared-utils/three/temp.js";
31
29
  import "../../../shared-utils/dom/resizeObserver.js";
30
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
31
+ import "../../../vendor/three/build/three.module.js";
32
32
  function Q(t) {
33
33
  U(t, "svelte-7aiuwz", '@charset "UTF-8";.tag-point-click-helper.svelte-7aiuwz.svelte-7aiuwz{position:absolute;pointer-events:auto;cursor:pointer;width:calc(100% + 0.75rem);height:calc(100% + 0.75rem);left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-7aiuwz.svelte-7aiuwz{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-folded-point.svelte-7aiuwz.svelte-7aiuwz,.tag-unfolded-point.svelte-7aiuwz.svelte-7aiuwz{transition:all 0.5s}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-folded-point.svelte-7aiuwz{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-7aiuwz .tag-unfolded-point.svelte-7aiuwz{opacity:1;scale:1}');
34
34
  }
@@ -1,10 +1,10 @@
1
1
  import { SvelteComponent as te, init as le, safe_not_equal as ie, append_styles as se, element as p, create_component as re, space as C, text as S, attr as d, set_style as L, null_to_empty as D, toggle_class as H, insert as y, mount_component as ne, append as q, set_data as P, transition_in as oe, transition_out as ae, detach as T, destroy_component as ce, src_url_equal as F, action_destroyer as fe, listen as me, destroy_each as O, run_all as ge } from "../../../vendor/svelte/internal/index.js";
2
+ import "../../../shared-utils/tag.js";
2
3
  import "three";
3
4
  import "hammerjs";
4
5
  import "three/examples/jsm/renderers/CSS3DRenderer";
5
6
  import "@realsee/five/line";
6
7
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
7
- import "../../../shared-utils/tag.js";
8
8
  import "../../../shared-utils/three/core/Sphere.js";
9
9
  import "animejs";
10
10
  import { notNil as qe } from "../../../shared-utils/isNil.js";
@@ -12,8 +12,6 @@ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
12
12
  import de from "../../utils/px2rem.js";
13
13
  import pe from "../Common/Shadow.js";
14
14
  import { svelteResizeObserver as ve } from "../../../shared-utils/svelte/resizeObserver.js";
15
- import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
16
- import "../../../vendor/three/build/three.module.js";
17
15
  import "../../../shared-utils/positionToVector3.js";
18
16
  import "../../../shared-utils/five/vector3ToScreen.js";
19
17
  import "../../../shared-utils/five/getFiveModel.js";
@@ -24,6 +22,8 @@ import "../../../shared-utils/Utils/WorkUtil.js";
24
22
  import "../../../shared-utils/five/transformPosition.js";
25
23
  import "../../../shared-utils/three/temp.js";
26
24
  import "../../../shared-utils/dom/resizeObserver.js";
25
+ import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
26
+ import "../../../vendor/three/build/three.module.js";
27
27
  import "../../../vendor/svelte/transition/index.js";
28
28
  import "../../../vendor/svelte/easing/index.js";
29
29
  import "../../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";