@realsee/dnalogel 3.50.14 → 3.50.15-alpha.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.
Files changed (107) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +2 -2
  4. package/dist/index.cjs.js +255 -255
  5. package/dist/index.js +2733 -2732
  6. package/dist/index.umd.js +251 -251
  7. package/dist/shared-utils/tag.d.ts +1 -1
  8. package/dist/shared-utils/three/index.d.ts +1 -0
  9. package/libs/AreaMakerPlugin/Controller.js +104 -74
  10. package/libs/AreaMakerPlugin/index.js +33 -3
  11. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  12. package/libs/CSS3DRenderPlugin/Controller.js +35 -15
  13. package/libs/CSS3DRenderPlugin/index.js +34 -14
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  16. package/libs/CruisePlugin/BaseController.js +59 -29
  17. package/libs/CruisePlugin/Move.js +32 -13
  18. package/libs/CruisePlugin/Work.js +65 -46
  19. package/libs/CruisePlugin/index.js +37 -18
  20. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  21. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  22. package/libs/GuideLinePlugin/Controller.js +59 -40
  23. package/libs/GuideLinePlugin/GuideLineItem.js +33 -14
  24. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  25. package/libs/GuideLinePlugin/GuideLineModeItem.js +33 -14
  26. package/libs/GuideLinePlugin/index.js +37 -18
  27. package/libs/ModelMakerPlugin/Controller.js +50 -32
  28. package/libs/ModelMakerPlugin/index.js +33 -15
  29. package/libs/ModelTVVideoPlugin/Plugin.js +47 -27
  30. package/libs/ModelTVVideoPlugin/index.js +23 -3
  31. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  32. package/libs/Object3DHelperPlugin/index.js +36 -17
  33. package/libs/PanoCompassPlugin/Controller.js +33 -13
  34. package/libs/PanoCompassPlugin/index.js +34 -14
  35. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  36. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  37. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  38. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  39. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  41. package/libs/PanoMeasurePlugin/Controller/index.js +15 -15
  42. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  45. package/libs/PanoMeasurePlugin/index.js +3 -3
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  47. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  48. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  49. package/libs/PanoRulerProPlugin/index.js +33 -3
  50. package/libs/PanoSpatialTagPlugin/Plugin.js +53 -33
  51. package/libs/PanoSpatialTagPlugin/index.js +21 -1
  52. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  53. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  54. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  55. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  56. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  57. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  58. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  59. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  60. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  61. package/libs/PanoTagPlugin/controller/TagRender.js +47 -28
  62. package/libs/PanoTagPlugin/controller/TagUtil.js +32 -13
  63. package/libs/PanoTagPlugin/controller/index.js +45 -26
  64. package/libs/PanoTagPlugin/index.js +40 -21
  65. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  66. package/libs/PanoVideoPlugin/Controller.js +91 -61
  67. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  68. package/libs/PanoVideoPlugin/index.js +36 -6
  69. package/libs/PipelinePlugin/Controller.js +80 -51
  70. package/libs/PipelinePlugin/index.js +34 -5
  71. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  72. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  73. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  74. package/libs/Sculpt/Meshes/Box.js +3 -2
  75. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  76. package/libs/Sculpt/Meshes/Line.js +9 -8
  77. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  78. package/libs/Sculpt/Meshes/Point.js +3 -2
  79. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  80. package/libs/Sculpt/Meshes/Prism.js +8 -7
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  82. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  83. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  84. package/libs/Sculpt/index.d.ts +2 -2
  85. package/libs/Sculpt/index.js +3 -2
  86. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  87. package/libs/base/BasePlugin.js +4 -3
  88. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +88 -59
  89. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  90. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  91. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  94. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  95. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  96. package/libs/floorplan/index.js +1 -0
  97. package/libs/index.js +28 -28
  98. package/libs/shared-utils/five/index.js +3 -2
  99. package/libs/shared-utils/five/lookObject.js +3 -2
  100. package/libs/shared-utils/index.js +44 -42
  101. package/libs/shared-utils/logger.js +1 -1
  102. package/libs/shared-utils/tag.d.ts +1 -1
  103. package/libs/shared-utils/tag.js +41 -41
  104. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  105. package/libs/shared-utils/three/index.d.ts +1 -0
  106. package/libs/shared-utils/three/index.js +1 -0
  107. package/package.json +1 -1
@@ -1,30 +1,30 @@
1
1
  var f = Object.defineProperty;
2
2
  var c = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
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
- for (var e in t || (t = {}))
6
- v.call(t, e) && h(i, e, t[e]);
4
+ var h = (e, t, i) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, u = (e, t) => {
5
+ for (var i in t || (t = {}))
6
+ v.call(t, i) && h(e, i, t[i]);
7
7
  if (c)
8
- for (var e of c(t))
9
- b.call(t, e) && h(i, e, t[e]);
10
- return i;
8
+ for (var i of c(t))
9
+ b.call(t, i) && h(e, i, t[i]);
10
+ return e;
11
11
  };
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) => {
12
+ var o = (e, t, i) => (h(e, typeof t != "symbol" ? t + "" : t, i), i);
13
+ var m = (e, t, i) => new Promise((p, s) => {
14
+ var a = (r) => {
15
15
  try {
16
- d(e.next(r));
17
- } catch (m) {
18
- s(m);
16
+ l(i.next(r));
17
+ } catch (d) {
18
+ s(d);
19
19
  }
20
- }, p = (r) => {
20
+ }, n = (r) => {
21
21
  try {
22
- d(e.throw(r));
23
- } catch (m) {
24
- s(m);
22
+ l(i.throw(r));
23
+ } catch (d) {
24
+ s(d);
25
25
  }
26
- }, d = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(n, p);
27
- d((e = e.apply(i, t)).next());
26
+ }, l = (r) => r.done ? p(r.value) : Promise.resolve(r.value).then(a, n);
27
+ l((i = i.apply(e, t)).next());
28
28
  });
29
29
  import I from "./RulerItems.js";
30
30
  import "../vendor/svelte/internal/index.js";
@@ -44,20 +44,50 @@ import "../shared-utils/five/transformPosition.js";
44
44
  import "../shared-utils/three/temp.js";
45
45
  import "../shared-utils/dom/resizeObserver.js";
46
46
  import "hammerjs";
47
+ import "../shared-utils/three/PointSelector/index.js";
48
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
49
+ import "../shared-utils/three/Magnifier.js";
50
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
51
+ import "../shared-utils/three/Assets/index.js";
52
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
47
53
  import "three/examples/jsm/renderers/CSS3DRenderer";
54
+ import "../CSS3DRenderPlugin/utils/even.js";
55
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
56
+ import "../shared-utils/three/centerPoint.js";
57
+ import "../shared-utils/three/getObjectVisible.js";
48
58
  import "@realsee/five/line";
49
59
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
50
60
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
51
61
  import "../vendor/three/build/three.module.js";
52
62
  import "../shared-utils/three/core/Sphere.js";
53
63
  import "animejs";
64
+ import "../shared-utils/isNil.js";
65
+ import "../shared-utils/three/PointSelector/utils/html.js";
66
+ import "../shared-utils/five/initialCSS3DRender.js";
67
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
68
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
69
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
70
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
71
+ import "../Sculpt/Meshes/Line.js";
72
+ import "../Sculpt/typings/style.js";
73
+ import "../shared-utils/five/FiveLine.js";
74
+ import "../shared-utils/three/IObject3D.js";
75
+ import "../Sculpt/utils/removeAllTag.js";
76
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
77
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
78
+ import "../shared-utils/util.js";
79
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
80
+ import "../shared-utils/isTouchDevice.js";
81
+ import "../shared-utils/five/getPosition.js";
82
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
83
+ import "../shared-utils/three/PointSelector/utils/contents.js";
54
84
  import "../shared-utils/equal.js";
55
85
  import "../shared-utils/isTruelyObject.js";
56
86
  import "../shared-utils/math/planimetry.js";
57
87
  import "../shared-utils/throttle.js";
58
88
  import "./RulerItem.js";
59
- class X {
60
- constructor(t, e) {
89
+ class xt {
90
+ constructor(t, i) {
61
91
  o(this, "five");
62
92
  o(this, "container", document.createElement("div"));
63
93
  o(this, "panoRulerProData");
@@ -70,23 +100,23 @@ class X {
70
100
  distanceText: (t) => `${t.toFixed(1)}m`
71
101
  }
72
102
  });
73
- var a, s;
103
+ var p, s;
74
104
  this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
75
105
  "style",
76
106
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
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);
107
+ ), i && (i.data && this.load(i.data), this.state.options = u(u({}, this.state.options), i.options || {}), (p = i.options) != null && p.className && this.container.classList.add((s = i.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => m(this, null, function* () {
108
+ var a, n;
109
+ (n = (a = this.five.getElement()) == null ? void 0 : a.parentNode) == null || n.append(this.container);
80
110
  })), this.five.once("dispose", () => this.dispose());
81
111
  }
82
112
  load(t) {
83
- return l(this, null, function* () {
113
+ return m(this, null, function* () {
84
114
  if (!this.five.work)
85
115
  return;
86
- const e = t.data;
87
- if (!e)
116
+ const i = t.data;
117
+ if (!i)
88
118
  throw new Error("标尺数据依赖不齐全!");
89
- this.panoRulerProData = e, this.state.loaded = !0;
119
+ this.panoRulerProData = i, this.state.loaded = !0;
90
120
  });
91
121
  }
92
122
  enable() {
@@ -96,7 +126,7 @@ class X {
96
126
  return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
97
127
  }
98
128
  render() {
99
- return l(this, null, function* () {
129
+ return m(this, null, function* () {
100
130
  var t;
101
131
  if (this.state.enabled) {
102
132
  if (!this.panoRulerProData || !this.container)
@@ -119,5 +149,5 @@ class X {
119
149
  }
120
150
  }
121
151
  export {
122
- X as default
152
+ xt as default
123
153
  };
@@ -1,17 +1,18 @@
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";
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 it, create_component as st, mount_component as at, destroy_component as ct, group_outros as mt } from "../vendor/svelte/internal/index.js";
2
+ import { Five as lt } from "@realsee/five";
3
+ import { nextFrame as pt } from "../shared-utils/animationFrame/index.js";
4
4
  import "../shared-utils/tag.js";
5
5
  import { Vector3 as M } from "three";
6
6
  import "hammerjs";
7
+ import "../shared-utils/three/PointSelector/index.js";
7
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
9
  import "@realsee/five/line";
9
10
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
10
11
  import "../shared-utils/three/core/Sphere.js";
11
12
  import "animejs";
12
13
  import { equal as z } from "../shared-utils/equal.js";
13
- import { intersectionOfLine as ut } from "../shared-utils/math/planimetry.js";
14
- import { throttle as pt } from "../shared-utils/throttle.js";
14
+ import { intersectionOfLine as ft } from "../shared-utils/math/planimetry.js";
15
+ import { throttle as ut } from "../shared-utils/throttle.js";
15
16
  import ht from "./RulerItem.js";
16
17
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
17
18
  import "../shared-utils/positionToVector3.js";
@@ -24,6 +25,35 @@ import "../shared-utils/Utils/WorkUtil.js";
24
25
  import "../shared-utils/five/transformPosition.js";
25
26
  import "../shared-utils/three/temp.js";
26
27
  import "../shared-utils/dom/resizeObserver.js";
28
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
29
+ import "../shared-utils/three/Magnifier.js";
30
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
31
+ import "../shared-utils/three/Assets/index.js";
32
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
33
+ import "../CSS3DRenderPlugin/utils/even.js";
34
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
35
+ import "../shared-utils/three/centerPoint.js";
36
+ import "../shared-utils/three/getObjectVisible.js";
37
+ import "../shared-utils/isNil.js";
38
+ import "../shared-utils/three/PointSelector/utils/html.js";
39
+ import "../shared-utils/five/initialCSS3DRender.js";
40
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
41
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
42
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
43
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
44
+ import "../Sculpt/Meshes/Line.js";
45
+ import "../Sculpt/typings/style.js";
46
+ import "../shared-utils/five/FiveLine.js";
47
+ import "../shared-utils/three/IObject3D.js";
48
+ import "../Sculpt/utils/removeAllTag.js";
49
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
50
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
51
+ import "../shared-utils/util.js";
52
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
53
+ import "../shared-utils/isTouchDevice.js";
54
+ import "../shared-utils/five/getPosition.js";
55
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
56
+ import "../shared-utils/three/PointSelector/utils/contents.js";
27
57
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
28
58
  import "../vendor/three/build/three.module.js";
29
59
  import "../shared-utils/isTruelyObject.js";
@@ -40,10 +70,10 @@ function K(d) {
40
70
  ) }
41
71
  }), {
42
72
  c() {
43
- at(r.$$.fragment);
73
+ st(r.$$.fragment);
44
74
  },
45
75
  m(t, e) {
46
- it(r, t, e), c = !0;
76
+ at(r, t, e), c = !0;
47
77
  },
48
78
  p(t, e) {
49
79
  const w = {};
@@ -78,38 +108,38 @@ function dt(d) {
78
108
  for (let n = 0; n < e.length; n += 1)
79
109
  e[n].c();
80
110
  },
81
- m(n, a) {
82
- tt(n, r, a);
111
+ m(n, s) {
112
+ tt(n, r, s);
83
113
  for (let o = 0; o < e.length; o += 1)
84
114
  e[o] && e[o].m(r, null);
85
115
  c = !0;
86
116
  },
87
- p(n, [a]) {
88
- if (a & /*rulerItemProp*/
117
+ p(n, [s]) {
118
+ if (s & /*rulerItemProp*/
89
119
  1) {
90
120
  t = /*rulerItemProp*/
91
121
  n[0];
92
122
  let o;
93
123
  for (o = 0; o < t.length; o += 1) {
94
124
  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));
125
+ e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(r, null));
96
126
  }
97
- for (lt(), o = t.length; o < e.length; o += 1)
127
+ for (mt(), o = t.length; o < e.length; o += 1)
98
128
  w(o);
99
129
  et();
100
130
  }
101
131
  },
102
132
  i(n) {
103
133
  if (!c) {
104
- for (let a = 0; a < t.length; a += 1)
105
- C(e[a]);
134
+ for (let s = 0; s < t.length; s += 1)
135
+ C(e[s]);
106
136
  c = !0;
107
137
  }
108
138
  },
109
139
  o(n) {
110
140
  e = e.filter(Boolean);
111
- for (let a = 0; a < e.length; a += 1)
112
- k(e[a]);
141
+ for (let s = 0; s < e.length; s += 1)
142
+ k(e[s]);
113
143
  c = !1;
114
144
  },
115
145
  d(n) {
@@ -120,37 +150,37 @@ function dt(d) {
120
150
  function gt(d, r, c) {
121
151
  var B, G, H, U;
122
152
  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 = [
125
- [{ x: 0, y: 0 }, { x: a, y: 0 }],
153
+ const s = ((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 = (a, m) => {
154
+ const l = [
155
+ [{ x: 0, y: 0 }, { x: s, y: 0 }],
126
156
  [{ 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 }]
129
- ], u = [];
130
- for (let p = 0; p < m.length; p++) {
131
- const g = ut([i, l], [m[p][0], m[p][1]], !0);
132
- g && u.push(g);
157
+ [{ x: s, y: 0 }, { x: s, y: o }],
158
+ [{ x: 0, y: o }, { x: s, y: o }]
159
+ ], f = [];
160
+ for (let u = 0; u < l.length; u++) {
161
+ const g = ft([a, m], [l[u][0], l[u][1]], !0);
162
+ g && f.push(g);
133
163
  }
134
- return u.length === 0 ? !1 : u;
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));
164
+ return f.length === 0 ? !1 : f;
165
+ }, j = (a, m) => {
166
+ const l = a.clone().project(t.camera), f = (l.x + 1) / 2 * s, u = (-l.y + 1) / 2 * o, g = m.clone().project(t.camera), L = (g.x + 1) / 2 * s, y = (-g.y + 1) / 2 * o, i = Math.sqrt(Math.pow(L - f, 2) + Math.pow(y - u, 2));
137
167
  return {
138
- startLeft: u,
139
- startTop: p,
168
+ startLeft: f,
169
+ startTop: u,
140
170
  endLeft: L,
141
171
  endTop: y,
142
- distance: s
172
+ distance: i
143
173
  };
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;
174
+ }, N = (a, m, l) => {
175
+ const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g = a.clone().sub(f).normalize().angleTo(u), L = m.clone().sub(f).normalize().angleTo(u), y = a.distanceTo(m), T = m.clone().sub(m.clone().sub(a).divide(new M(2, 2, 2))).distanceTo(f), { startLeft: h, startTop: x, endLeft: v, endTop: q, distance: D } = j(a, m), S = -((Math.PI / 2 - Math.atan2(v - h, x - q)) / Math.PI) * 180;
146
176
  let P = !0;
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);
177
+ l || (P = !1), !z(a, l) && !z(m, l) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
148
178
  let I = 50, b = D;
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) {
179
+ const p = A({ x: ~~h, y: ~~x }, { x: ~~v, y: ~~q });
180
+ if (p && p.length === 1 && (z(a, l) ? (b = Math.sqrt(Math.pow(p[0].x - h, 2) + Math.pow(p[0].y - x, 2)), I = b / D * 50) : z(m, l) && (b = Math.sqrt(Math.pow(p[0].x - v, 2) + Math.pow(p[0].y - q, 2)), I = 100 - b / D * 50)), p && p.length === 2) {
151
181
  const F = {
152
- x: (f[0].x + f[1].x) / 2,
153
- y: (f[0].y + f[1].y) / 2
182
+ x: (p[0].x + p[1].x) / 2,
183
+ y: (p[0].y + p[1].y) / 2
154
184
  };
155
185
  I = Math.sqrt(Math.pow(F.x - h, 2) + Math.pow(F.y - x, 2)) / D * 100;
156
186
  }
@@ -164,18 +194,18 @@ function gt(d, r, c) {
164
194
  ruleLength: y
165
195
  };
166
196
  }, _ = () => {
167
- const i = t.panoIndex, l = e.find((s) => s.panoIndex === i);
168
- if (!l)
197
+ const a = t.panoIndex, m = e.find((i) => i.panoIndex === a);
198
+ if (!m)
169
199
  return c(0, n = []);
170
- if (t.currentMode !== mt.Mode.Panorama)
200
+ if (t.currentMode !== lt.Mode.Panorama)
171
201
  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));
202
+ const l = t.camera.position, f = t.camera.getWorldDirection(new M()), u = m.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = m.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
203
+ const h = i.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0));
174
204
  return h - x;
175
- }), y = l.lines.map((s) => {
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) => {
205
+ }), y = m.lines.map((i) => {
206
+ var b, p;
207
+ const T = i.start, h = i.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 = [];
208
+ return i.children && ((b = i.children) == null ? void 0 : b.length) > 0 && ((p = i.children) == null || p.forEach((F) => {
179
209
  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]));
180
210
  I.push({ width: O, state: F.state });
181
211
  })), {
@@ -183,7 +213,7 @@ function gt(d, r, c) {
183
213
  left: x,
184
214
  top: v,
185
215
  rotateDeg: D,
186
- state: s.state,
216
+ state: i.state,
187
217
  children: I,
188
218
  labelOffset: S,
189
219
  visible: V,
@@ -191,20 +221,20 @@ function gt(d, r, c) {
191
221
  };
192
222
  });
193
223
  c(0, n = y);
194
- }, E = () => ft(_), R = pt(_, 80);
224
+ }, E = () => pt(_), R = ut(_, 80);
195
225
  return rt(() => {
196
226
  _(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
197
- }), st(() => {
227
+ }), it(() => {
198
228
  t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
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);
229
+ }), d.$$set = (a) => {
230
+ "five" in a && c(1, t = a.five), "rulerDatas" in a && c(2, e = a.rulerDatas), "options" in a && c(3, w = a.options);
201
231
  }, [n, t, e, w];
202
232
  }
203
- class Jt extends Q {
233
+ class _e extends Q {
204
234
  constructor(r) {
205
235
  super(), X(this, r, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
206
236
  }
207
237
  }
208
238
  export {
209
- Jt as default
239
+ _e as default
210
240
  };
@@ -17,20 +17,50 @@ import "../shared-utils/five/transformPosition.js";
17
17
  import "../shared-utils/three/temp.js";
18
18
  import "../shared-utils/dom/resizeObserver.js";
19
19
  import "hammerjs";
20
+ import "../shared-utils/three/PointSelector/index.js";
21
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
22
+ import "../shared-utils/three/Magnifier.js";
23
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
24
+ import "../shared-utils/three/Assets/index.js";
25
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
20
26
  import "three/examples/jsm/renderers/CSS3DRenderer";
27
+ import "../CSS3DRenderPlugin/utils/even.js";
28
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
29
+ import "../shared-utils/three/centerPoint.js";
30
+ import "../shared-utils/three/getObjectVisible.js";
21
31
  import "@realsee/five/line";
22
32
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
23
33
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
24
34
  import "../vendor/three/build/three.module.js";
25
35
  import "../shared-utils/three/core/Sphere.js";
26
36
  import "animejs";
37
+ import "../shared-utils/isNil.js";
38
+ import "../shared-utils/three/PointSelector/utils/html.js";
39
+ import "../shared-utils/five/initialCSS3DRender.js";
40
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
41
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
42
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
43
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
44
+ import "../Sculpt/Meshes/Line.js";
45
+ import "../Sculpt/typings/style.js";
46
+ import "../shared-utils/five/FiveLine.js";
47
+ import "../shared-utils/three/IObject3D.js";
48
+ import "../Sculpt/utils/removeAllTag.js";
49
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
50
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
51
+ import "../shared-utils/util.js";
52
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
53
+ import "../shared-utils/isTouchDevice.js";
54
+ import "../shared-utils/five/getPosition.js";
55
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
56
+ import "../shared-utils/three/PointSelector/utils/contents.js";
27
57
  import "../shared-utils/equal.js";
28
58
  import "../shared-utils/isTruelyObject.js";
29
59
  import "../shared-utils/math/planimetry.js";
30
60
  import "../shared-utils/throttle.js";
31
61
  import "./RulerItem.js";
32
- const G = (r, o) => new t(r, o);
62
+ const ar = (r, o) => new t(r, o);
33
63
  export {
34
- G as PanoRulerProPlugin,
35
- G as default
64
+ ar as PanoRulerProPlugin,
65
+ ar as default
36
66
  };