@realsee/dnalogel 3.50.16 → 3.50.18-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 (118) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +116 -0
  3. package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
  4. package/dist/Sculpt/utils/export.d.ts +18 -0
  5. package/dist/index.cjs.js +207 -207
  6. package/dist/index.js +34867 -34776
  7. package/dist/index.umd.js +211 -211
  8. package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  9. package/dist/shared-utils/index.d.ts +1 -0
  10. package/dist/shared-utils/tag.d.ts +41 -2
  11. package/dist/shared-utils/three/temp.d.ts +2 -2
  12. package/libs/AreaMakerPlugin/Controller.js +100 -46
  13. package/libs/AreaMakerPlugin/index.js +64 -10
  14. package/libs/AreaMakerPlugin/utils/Item.js +156 -100
  15. package/libs/CSS3DRenderPlugin/Controller.js +93 -44
  16. package/libs/CSS3DRenderPlugin/index.js +62 -13
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
  19. package/libs/CruisePlugin/BaseController.js +143 -89
  20. package/libs/CruisePlugin/Move.js +83 -39
  21. package/libs/CruisePlugin/Work.js +95 -51
  22. package/libs/CruisePlugin/index.js +66 -22
  23. package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
  24. package/libs/CurrentPanoImagePlugin/index.js +63 -9
  25. package/libs/GuideLinePlugin/Controller.js +57 -13
  26. package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
  27. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
  29. package/libs/GuideLinePlugin/index.js +66 -22
  30. package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
  31. package/libs/ModelMakerPlugin/Controller.js +190 -129
  32. package/libs/ModelMakerPlugin/index.js +63 -21
  33. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  34. package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
  35. package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
  36. package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
  37. package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
  38. package/libs/ModelTVVideoPlugin/index.js +55 -6
  39. package/libs/Object3DHelperPlugin/Controller.js +42 -25
  40. package/libs/Object3DHelperPlugin/index.js +28 -12
  41. package/libs/PanoCompassPlugin/Controller.js +92 -44
  42. package/libs/PanoCompassPlugin/index.js +63 -15
  43. package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
  44. package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
  45. package/libs/PanoDoorLabelPlugin/index.js +63 -9
  46. package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
  47. package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
  48. package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
  49. package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
  50. package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
  51. package/libs/PanoMeasurePlugin/Model/area.js +72 -22
  52. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
  53. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
  54. package/libs/PanoMeasurePlugin/index.js +62 -16
  55. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
  56. package/libs/PanoRulerProPlugin/Controller.js +88 -33
  57. package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
  58. package/libs/PanoRulerProPlugin/index.js +64 -9
  59. package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
  60. package/libs/PanoSpatialTagPlugin/index.js +53 -4
  61. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
  62. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
  63. package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
  64. package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
  65. package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
  66. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
  67. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
  68. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
  69. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
  70. package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
  71. package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
  72. package/libs/PanoTagPlugin/controller/index.js +110 -72
  73. package/libs/PanoTagPlugin/index.js +72 -28
  74. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
  75. package/libs/PanoVideoPlugin/Controller.js +95 -41
  76. package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
  77. package/libs/PanoVideoPlugin/index.js +66 -12
  78. package/libs/PipelinePlugin/Controller.js +173 -119
  79. package/libs/PipelinePlugin/index.js +63 -9
  80. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
  81. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
  82. package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
  83. package/libs/Sculpt/Meshes/Box.js +3 -2
  84. package/libs/Sculpt/Meshes/Cylinder.js +10 -6
  85. package/libs/Sculpt/Meshes/Line.js +43 -38
  86. package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
  87. package/libs/Sculpt/Meshes/Point.js +24 -20
  88. package/libs/Sculpt/Meshes/Polygon.js +5 -2
  89. package/libs/Sculpt/Meshes/Prism.js +19 -16
  90. package/libs/Sculpt/Objects/Line/Editor.js +6 -5
  91. package/libs/Sculpt/index.js +15 -14
  92. package/libs/Sculpt/utils/export.d.ts +18 -0
  93. package/libs/Sculpt/utils/export.js +21 -0
  94. package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
  95. package/libs/base/BasePlugin.js +14 -10
  96. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
  97. package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
  98. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
  99. package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
  101. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
  102. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
  103. package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
  104. package/libs/floorplan/index.js +4 -0
  105. package/libs/index.js +208 -206
  106. package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  107. package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
  108. package/libs/shared-utils/five/index.js +6 -2
  109. package/libs/shared-utils/five/lookObject.js +31 -27
  110. package/libs/shared-utils/index.d.ts +1 -0
  111. package/libs/shared-utils/index.js +19 -17
  112. package/libs/shared-utils/logger.js +1 -1
  113. package/libs/shared-utils/tag.d.ts +41 -2
  114. package/libs/shared-utils/tag.js +139 -86
  115. package/libs/shared-utils/three/index.js +4 -0
  116. package/libs/shared-utils/three/temp.d.ts +2 -2
  117. package/libs/shared-utils/three/temp.js +4 -4
  118. package/package.json +1 -1
@@ -1,6 +1,6 @@
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";
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 ot, transition_out as k, detach as et, destroy_each as rt, onMount as nt, onDestroy as it, create_component as mt, mount_component as st, destroy_component as at, group_outros as pt } from "../vendor/svelte/internal/index.js";
2
+ import { Five as ct } from "@realsee/five";
3
+ import { nextFrame as lt } 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";
@@ -11,6 +11,10 @@ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
11
11
  import "../shared-utils/three/core/Sphere.js";
12
12
  import "animejs";
13
13
  import { equal as z } from "../shared-utils/equal.js";
14
+ import "../Sculpt/Meshes/Polygon.js";
15
+ import "../Sculpt/utils/Modules/Global.js";
16
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
17
+ import "../Sculpt/utils/three/rayOnLine.js";
14
18
  import { intersectionOfLine as ft } from "../shared-utils/math/planimetry.js";
15
19
  import { throttle as ut } from "../shared-utils/throttle.js";
16
20
  import ht from "./RulerItem.js";
@@ -24,7 +28,9 @@ import "../shared-utils/Subscribe.js";
24
28
  import "../shared-utils/Utils/WorkUtil.js";
25
29
  import "../shared-utils/five/transformPosition.js";
26
30
  import "../shared-utils/three/temp.js";
31
+ import "../shared-utils/three/core/Raycaster.js";
27
32
  import "../shared-utils/dom/resizeObserver.js";
33
+ import "../shared-utils/five/fiveEveryReadyListener.js";
28
34
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
29
35
  import "../shared-utils/three/Magnifier.js";
30
36
  import "../shared-utils/three/PointSelector/utils/PointHelper.js";
@@ -56,114 +62,163 @@ import "../shared-utils/five/getRaycasterByNdcPosition.js";
56
62
  import "../shared-utils/three/PointSelector/utils/contents.js";
57
63
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
58
64
  import "../vendor/three/build/three.module.js";
65
+ import "../shared-utils/three/generatePolygonGeometry.js";
66
+ import "../shared-utils/three/earcut3D.js";
67
+ import "earcut";
68
+ import "../shared-utils/three/getNormal.js";
69
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
70
+ import "../Sculpt/utils/three/ColoredMesh.js";
71
+ import "../shared-utils/three/geometryUtil.js";
72
+ import "../Sculpt/utils/Modules/Cursor.js";
73
+ import "../Object3DHelperPlugin/Controller.js";
74
+ import "../base/BasePlugin.js";
75
+ import "../shared-utils/url/absoluteUrl.js";
76
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
77
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
78
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
79
+ import "../shared-utils/three/boundingBox.js";
80
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
81
+ import "../shared-utils/Object3DHelper/utils/direction.js";
82
+ import "../shared-utils/Object3DHelper/Constants/color.js";
83
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
84
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
85
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
86
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
87
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
88
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
89
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
90
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
91
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
92
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
93
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
94
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
95
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
96
+ import "../shared-utils/threex/domevents/index.js";
97
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
98
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
99
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
100
+ import "../shared-utils/Object3DHelper/index.js";
101
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
102
+ import "../shared-utils/math/rad2Deg.js";
103
+ import "../shared-utils/math/deg2Rad.js";
104
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
105
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
106
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
107
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
108
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
109
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
110
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
111
+ import "../shared-utils/five/fiveModelLoad.js";
112
+ import "../shared-utils/five/FiveDomEvents.js";
113
+ import "../shared-utils/five/calculateThreeMouse.js";
59
114
  import "../shared-utils/isTruelyObject.js";
60
- function J(d, r, c) {
115
+ function J(d, n, a) {
61
116
  const t = d.slice();
62
- return t[12] = r[c], t;
117
+ return t[12] = n[a], t;
63
118
  }
64
119
  function K(d) {
65
- let r, c;
66
- return r = new ht({
120
+ let n, a;
121
+ return n = new ht({
67
122
  props: { rulerItemProp: (
68
123
  /*itemData*/
69
124
  d[12]
70
125
  ) }
71
126
  }), {
72
127
  c() {
73
- st(r.$$.fragment);
128
+ mt(n.$$.fragment);
74
129
  },
75
- m(t, e) {
76
- at(r, t, e), c = !0;
130
+ m(t, o) {
131
+ st(n, t, o), a = !0;
77
132
  },
78
- p(t, e) {
133
+ p(t, o) {
79
134
  const w = {};
80
- e & /*rulerItemProp*/
135
+ o & /*rulerItemProp*/
81
136
  1 && (w.rulerItemProp = /*itemData*/
82
- t[12]), r.$set(w);
137
+ t[12]), n.$set(w);
83
138
  },
84
139
  i(t) {
85
- c || (C(r.$$.fragment, t), c = !0);
140
+ a || (C(n.$$.fragment, t), a = !0);
86
141
  },
87
142
  o(t) {
88
- k(r.$$.fragment, t), c = !1;
143
+ k(n.$$.fragment, t), a = !1;
89
144
  },
90
145
  d(t) {
91
- ct(r, t);
146
+ at(n, t);
92
147
  }
93
148
  };
94
149
  }
95
150
  function dt(d) {
96
- let r, c, t = (
151
+ let n, a, t = (
97
152
  /*rulerItemProp*/
98
153
  d[0]
99
- ), e = [];
100
- for (let n = 0; n < t.length; n += 1)
101
- e[n] = K(J(d, t, n));
102
- const w = (n) => k(e[n], 1, 1, () => {
103
- e[n] = null;
154
+ ), o = [];
155
+ for (let r = 0; r < t.length; r += 1)
156
+ o[r] = K(J(d, t, r));
157
+ const w = (r) => k(o[r], 1, 1, () => {
158
+ o[r] = null;
104
159
  });
105
160
  return {
106
161
  c() {
107
- r = $("div");
108
- for (let n = 0; n < e.length; n += 1)
109
- e[n].c();
162
+ n = $("div");
163
+ for (let r = 0; r < o.length; r += 1)
164
+ o[r].c();
110
165
  },
111
- m(n, s) {
112
- tt(n, r, s);
113
- for (let o = 0; o < e.length; o += 1)
114
- e[o] && e[o].m(r, null);
115
- c = !0;
166
+ m(r, m) {
167
+ tt(r, n, m);
168
+ for (let e = 0; e < o.length; e += 1)
169
+ o[e] && o[e].m(n, null);
170
+ a = !0;
116
171
  },
117
- p(n, [s]) {
118
- if (s & /*rulerItemProp*/
172
+ p(r, [m]) {
173
+ if (m & /*rulerItemProp*/
119
174
  1) {
120
175
  t = /*rulerItemProp*/
121
- n[0];
122
- let o;
123
- for (o = 0; o < t.length; o += 1) {
124
- const A = J(n, t, o);
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));
176
+ r[0];
177
+ let e;
178
+ for (e = 0; e < t.length; e += 1) {
179
+ const A = J(r, t, e);
180
+ o[e] ? (o[e].p(A, m), C(o[e], 1)) : (o[e] = K(A), o[e].c(), C(o[e], 1), o[e].m(n, null));
126
181
  }
127
- for (mt(), o = t.length; o < e.length; o += 1)
128
- w(o);
129
- et();
182
+ for (pt(), e = t.length; e < o.length; e += 1)
183
+ w(e);
184
+ ot();
130
185
  }
131
186
  },
132
- i(n) {
133
- if (!c) {
134
- for (let s = 0; s < t.length; s += 1)
135
- C(e[s]);
136
- c = !0;
187
+ i(r) {
188
+ if (!a) {
189
+ for (let m = 0; m < t.length; m += 1)
190
+ C(o[m]);
191
+ a = !0;
137
192
  }
138
193
  },
139
- o(n) {
140
- e = e.filter(Boolean);
141
- for (let s = 0; s < e.length; s += 1)
142
- k(e[s]);
143
- c = !1;
194
+ o(r) {
195
+ o = o.filter(Boolean);
196
+ for (let m = 0; m < o.length; m += 1)
197
+ k(o[m]);
198
+ a = !1;
144
199
  },
145
- d(n) {
146
- n && ot(r), nt(e, n);
200
+ d(r) {
201
+ r && et(n), rt(o, r);
147
202
  }
148
203
  };
149
204
  }
150
- function gt(d, r, c) {
205
+ function gt(d, n, a) {
151
206
  var B, G, H, U;
152
- let { five: t } = r, { rulerDatas: e } = r, { options: w } = r, n = [];
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 }],
156
- [{ x: 0, y: 0 }, { x: 0, y: o }],
157
- [{ x: s, y: 0 }, { x: s, y: o }],
158
- [{ x: 0, y: o }, { x: s, y: o }]
207
+ let { five: t } = n, { rulerDatas: o } = n, { options: w } = n, r = [];
208
+ const m = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, e = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (s, p) => {
209
+ const c = [
210
+ [{ x: 0, y: 0 }, { x: m, y: 0 }],
211
+ [{ x: 0, y: 0 }, { x: 0, y: e }],
212
+ [{ x: m, y: 0 }, { x: m, y: e }],
213
+ [{ x: 0, y: e }, { x: m, y: e }]
159
214
  ], f = [];
160
- for (let u = 0; u < l.length; u++) {
161
- const g = ft([a, m], [l[u][0], l[u][1]], !0);
215
+ for (let u = 0; u < c.length; u++) {
216
+ const g = ft([s, p], [c[u][0], c[u][1]], !0);
162
217
  g && f.push(g);
163
218
  }
164
219
  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));
220
+ }, j = (s, p) => {
221
+ const c = s.clone().project(t.camera), f = (c.x + 1) / 2 * m, u = (-c.y + 1) / 2 * e, g = p.clone().project(t.camera), L = (g.x + 1) / 2 * m, y = (-g.y + 1) / 2 * e, i = Math.sqrt(Math.pow(L - f, 2) + Math.pow(y - u, 2));
167
222
  return {
168
223
  startLeft: f,
169
224
  startTop: u,
@@ -171,16 +226,16 @@ function gt(d, r, c) {
171
226
  endTop: y,
172
227
  distance: i
173
228
  };
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;
229
+ }, N = (s, p, c) => {
230
+ const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g = s.clone().sub(f).normalize().angleTo(u), L = p.clone().sub(f).normalize().angleTo(u), y = s.distanceTo(p), T = p.clone().sub(p.clone().sub(s).divide(new M(2, 2, 2))).distanceTo(f), { startLeft: h, startTop: x, endLeft: v, endTop: q, distance: D } = j(s, p), S = -((Math.PI / 2 - Math.atan2(v - h, x - q)) / Math.PI) * 180;
176
231
  let P = !0;
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);
232
+ c || (P = !1), !z(s, c) && !z(p, c) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
178
233
  let I = 50, b = D;
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) {
234
+ const l = A({ x: ~~h, y: ~~x }, { x: ~~v, y: ~~q });
235
+ if (l && l.length === 1 && (z(s, c) ? (b = Math.sqrt(Math.pow(l[0].x - h, 2) + Math.pow(l[0].y - x, 2)), I = b / D * 50) : z(p, c) && (b = Math.sqrt(Math.pow(l[0].x - v, 2) + Math.pow(l[0].y - q, 2)), I = 100 - b / D * 50)), l && l.length === 2) {
181
236
  const F = {
182
- x: (p[0].x + p[1].x) / 2,
183
- y: (p[0].y + p[1].y) / 2
237
+ x: (l[0].x + l[1].x) / 2,
238
+ y: (l[0].y + l[1].y) / 2
184
239
  };
185
240
  I = Math.sqrt(Math.pow(F.x - h, 2) + Math.pow(F.y - x, 2)) / D * 100;
186
241
  }
@@ -194,18 +249,18 @@ function gt(d, r, c) {
194
249
  ruleLength: y
195
250
  };
196
251
  }, _ = () => {
197
- const a = t.panoIndex, m = e.find((i) => i.panoIndex === a);
198
- if (!m)
199
- return c(0, n = []);
200
- if (t.currentMode !== lt.Mode.Panorama)
201
- return c(0, n = []);
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));
252
+ const s = t.panoIndex, p = o.find((i) => i.panoIndex === s);
253
+ if (!p)
254
+ return a(0, r = []);
255
+ if (t.currentMode !== ct.Mode.Panorama)
256
+ return a(0, r = []);
257
+ const c = t.camera.position, f = t.camera.getWorldDirection(new M()), u = p.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = p.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
258
+ const h = i.clone().setY(0).sub(c).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(c).normalize().angleTo(f.clone().setY(0));
204
259
  return h - x;
205
- }), y = m.lines.map((i) => {
206
- var b, p;
260
+ }), y = p.lines.map((i) => {
261
+ var b, l;
207
262
  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) => {
263
+ return i.children && ((b = i.children) == null ? void 0 : b.length) > 0 && ((l = i.children) == null || l.forEach((F) => {
209
264
  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]));
210
265
  I.push({ width: O, state: F.state });
211
266
  })), {
@@ -220,21 +275,21 @@ function gt(d, r, c) {
220
275
  labelElement: w.distanceText(P)
221
276
  };
222
277
  });
223
- c(0, n = y);
224
- }, E = () => pt(_), R = ut(_, 80);
225
- return rt(() => {
278
+ a(0, r = y);
279
+ }, E = () => lt(_), R = ut(_, 80);
280
+ return nt(() => {
226
281
  _(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
227
282
  }), it(() => {
228
283
  t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
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);
231
- }, [n, t, e, w];
284
+ }), d.$$set = (s) => {
285
+ "five" in s && a(1, t = s.five), "rulerDatas" in s && a(2, o = s.rulerDatas), "options" in s && a(3, w = s.options);
286
+ }, [r, t, o, w];
232
287
  }
233
- class _e extends Q {
234
- constructor(r) {
235
- super(), X(this, r, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
288
+ class De extends Q {
289
+ constructor(n) {
290
+ super(), X(this, n, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
236
291
  }
237
292
  }
238
293
  export {
239
- _e as default
294
+ De as default
240
295
  };
@@ -15,7 +15,10 @@ import "../shared-utils/Subscribe.js";
15
15
  import "../shared-utils/Utils/WorkUtil.js";
16
16
  import "../shared-utils/five/transformPosition.js";
17
17
  import "../shared-utils/three/temp.js";
18
+ import "../shared-utils/three/core/Raycaster.js";
18
19
  import "../shared-utils/dom/resizeObserver.js";
20
+ import "../shared-utils/five/fiveEveryReadyListener.js";
21
+ import "../shared-utils/throttle.js";
19
22
  import "hammerjs";
20
23
  import "../shared-utils/three/PointSelector/index.js";
21
24
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -35,32 +38,84 @@ import "../vendor/three/build/three.module.js";
35
38
  import "../shared-utils/three/core/Sphere.js";
36
39
  import "animejs";
37
40
  import "../shared-utils/isNil.js";
38
- import "../shared-utils/three/PointSelector/utils/html.js";
39
- import "../shared-utils/five/initialCSS3DRender.js";
41
+ import "../Sculpt/Meshes/Polygon.js";
42
+ import "../shared-utils/three/generatePolygonGeometry.js";
43
+ import "../shared-utils/three/earcut3D.js";
44
+ import "earcut";
45
+ import "../shared-utils/three/getNormal.js";
46
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
47
+ import "../Sculpt/typings/style.js";
48
+ import "../Sculpt/utils/three/ColoredMesh.js";
49
+ import "../shared-utils/three/IObject3D.js";
50
+ import "../Sculpt/utils/Modules/Global.js";
51
+ import "../Sculpt/utils/Modules/Cursor.js";
52
+ import "../Object3DHelperPlugin/Controller.js";
53
+ import "../base/BasePlugin.js";
54
+ import "../shared-utils/url/absoluteUrl.js";
55
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
56
+ import "../Sculpt/utils/three/rayOnLine.js";
57
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
58
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
59
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
60
+ import "../shared-utils/three/boundingBox.js";
61
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
62
+ import "../shared-utils/Object3DHelper/utils/direction.js";
63
+ import "../shared-utils/Object3DHelper/Constants/color.js";
64
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
65
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
40
66
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
41
67
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
42
68
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
69
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
70
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
71
+ import "../shared-utils/util.js";
72
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
73
+ import "../shared-utils/three/PointSelector/utils/html.js";
74
+ import "../shared-utils/five/initialCSS3DRender.js";
43
75
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
44
76
  import "../Sculpt/Meshes/Line.js";
45
- import "../Sculpt/typings/style.js";
46
77
  import "../shared-utils/five/FiveLine.js";
47
- import "../shared-utils/three/IObject3D.js";
48
78
  import "../Sculpt/utils/removeAllTag.js";
49
79
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
50
80
  import "../shared-utils/three/applyObjectMatrixWorld.js";
51
- import "../shared-utils/util.js";
52
81
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
82
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
83
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
84
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
85
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
86
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
87
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
88
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
89
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
90
+ import "../shared-utils/threex/domevents/index.js";
91
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
92
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
93
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
94
+ import "../shared-utils/Object3DHelper/index.js";
95
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
96
+ import "../shared-utils/math/rad2Deg.js";
97
+ import "../shared-utils/math/deg2Rad.js";
98
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
99
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
100
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
101
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
102
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
103
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
104
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
105
+ import "../shared-utils/five/fiveModelLoad.js";
106
+ import "../shared-utils/five/FiveDomEvents.js";
107
+ import "../shared-utils/five/calculateThreeMouse.js";
53
108
  import "../shared-utils/isTouchDevice.js";
109
+ import "../shared-utils/three/geometryUtil.js";
54
110
  import "../shared-utils/five/getPosition.js";
55
111
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
56
112
  import "../shared-utils/three/PointSelector/utils/contents.js";
57
113
  import "../shared-utils/equal.js";
58
114
  import "../shared-utils/isTruelyObject.js";
59
115
  import "../shared-utils/math/planimetry.js";
60
- import "../shared-utils/throttle.js";
61
116
  import "./RulerItem.js";
62
- const ar = (r, o) => new t(r, o);
117
+ const Po = (r, o) => new t(r, o);
63
118
  export {
64
- ar as PanoRulerProPlugin,
65
- ar as default
119
+ Po as PanoRulerProPlugin,
120
+ Po as default
66
121
  };