@realsee/dnalogel 4.0.0-webgpu.18 → 4.0.0-webgpu.19

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 (89) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/floorplan.js +1 -1
  3. package/dist/index.js +18 -18
  4. package/dist/internal/{BasePlugin-Cr_atQUC.js → BasePlugin-AYcNjiyG.js} +2 -2
  5. package/dist/internal/{BasePlugin-Cr_atQUC.js.map → BasePlugin-AYcNjiyG.js.map} +1 -1
  6. package/dist/internal/BasePluginWithData-CWgZY4u8.js +7 -0
  7. package/dist/internal/{BasePluginWithData-CIQpqYGe.js.map → BasePluginWithData-CWgZY4u8.js.map} +1 -1
  8. package/dist/internal/{Controller-Cq-mYkzT.js → Controller-DPpDpYsR.js} +3 -3
  9. package/dist/internal/{Controller-Cq-mYkzT.js.map → Controller-DPpDpYsR.js.map} +1 -1
  10. package/dist/internal/{Controller-5BvatEWD.js → Controller-DSKeCecj.js} +171 -154
  11. package/dist/internal/Controller-DSKeCecj.js.map +1 -0
  12. package/dist/internal/{Controller-BDT5_ZNe.js → Controller-DZwww-c4.js} +2 -2
  13. package/dist/internal/{Controller-BDT5_ZNe.js.map → Controller-DZwww-c4.js.map} +1 -1
  14. package/dist/internal/PointHelper-G9EgUMWo.js +1052 -0
  15. package/dist/internal/PointHelper-G9EgUMWo.js.map +1 -0
  16. package/dist/internal/{Rectangle-Z2T_h74M.js → Rectangle-DSOdWXl_.js} +3 -3
  17. package/dist/internal/{Rectangle-Z2T_h74M.js.map → Rectangle-DSOdWXl_.js.map} +1 -1
  18. package/dist/internal/{Work-PKaUMpXd.js → Work-HQHipxJj.js} +4 -4
  19. package/dist/internal/{Work-PKaUMpXd.js.map → Work-HQHipxJj.js.map} +1 -1
  20. package/dist/internal/{area-maker-BTGqxG6D.js → area-maker-Diy_UkTD.js} +2 -2
  21. package/dist/internal/{area-maker-BTGqxG6D.js.map → area-maker-Diy_UkTD.js.map} +1 -1
  22. package/dist/internal/{controller-B0hqJtoB.js → controller-DZUdbdd8.js} +4 -4
  23. package/dist/internal/{controller-B0hqJtoB.js.map → controller-DZUdbdd8.js.map} +1 -1
  24. package/dist/internal/{cruise-BkSbiLjd.js → cruise-Bo8CD4vF.js} +2 -2
  25. package/dist/internal/{cruise-BkSbiLjd.js.map → cruise-Bo8CD4vF.js.map} +1 -1
  26. package/dist/internal/{current-pano-image-DqyUFIP6.js → current-pano-image-Cqq4DRPh.js} +2 -2
  27. package/dist/internal/{current-pano-image-DqyUFIP6.js.map → current-pano-image-Cqq4DRPh.js.map} +1 -1
  28. package/dist/internal/{edgeSnap-8fdFCcXB.js → edgeSnap-CH0HidZm.js} +206 -83
  29. package/dist/internal/edgeSnap-CH0HidZm.js.map +1 -0
  30. package/dist/internal/{floorplan-Dkp7omYn.js → floorplan-DwcrbASA.js} +2 -2
  31. package/dist/internal/{floorplan-Dkp7omYn.js.map → floorplan-DwcrbASA.js.map} +1 -1
  32. package/dist/internal/{measure-KVSCjRnS.js → measure-DIstq55p.js} +2 -2
  33. package/dist/internal/{measure-KVSCjRnS.js.map → measure-DIstq55p.js.map} +1 -1
  34. package/dist/internal/measure-v2-Byp1mE5q.js +215 -0
  35. package/dist/internal/measure-v2-Byp1mE5q.js.map +1 -0
  36. package/dist/internal/{model-maker-L5eqUgkU.js → model-maker-pQcaAh5M.js} +2 -2
  37. package/dist/internal/{model-maker-L5eqUgkU.js.map → model-maker-pQcaAh5M.js.map} +1 -1
  38. package/dist/internal/object3d-helper-zRXHAcbm.js +7 -0
  39. package/dist/internal/{object3d-helper-CUhRRdCQ.js.map → object3d-helper-zRXHAcbm.js.map} +1 -1
  40. package/dist/internal/{pano-compass-dmcsnFDQ.js → pano-compass-CMIljzhC.js} +2 -2
  41. package/dist/internal/{pano-compass-dmcsnFDQ.js.map → pano-compass-CMIljzhC.js.map} +1 -1
  42. package/dist/internal/{pano-door-label-C0sd66vf.js → pano-door-label-B4nqTTzN.js} +2 -2
  43. package/dist/internal/{pano-door-label-C0sd66vf.js.map → pano-door-label-B4nqTTzN.js.map} +1 -1
  44. package/dist/internal/{pano-measure-NbB7-uVE.js → pano-measure-C2r0ecHk.js} +2 -2
  45. package/dist/internal/{pano-measure-NbB7-uVE.js.map → pano-measure-C2r0ecHk.js.map} +1 -1
  46. package/dist/internal/{pano-measure-v2-CRPvPs0e.js → pano-measure-v2-BfSAjO-I.js} +4 -4
  47. package/dist/internal/{pano-measure-v2-CRPvPs0e.js.map → pano-measure-v2-BfSAjO-I.js.map} +1 -1
  48. package/dist/internal/{pano-tag-j8ZPJDDK.js → pano-tag-BXo_4I6D.js} +2 -2
  49. package/dist/internal/{pano-tag-j8ZPJDDK.js.map → pano-tag-BXo_4I6D.js.map} +1 -1
  50. package/dist/internal/{pano-video-Dcspq4j1.js → pano-video-CS6-eXci.js} +2 -2
  51. package/dist/internal/{pano-video-Dcspq4j1.js.map → pano-video-CS6-eXci.js.map} +1 -1
  52. package/dist/internal/{pipeline-CD2YkN5U.js → pipeline-BN9A4lPZ.js} +2 -2
  53. package/dist/internal/{pipeline-CD2YkN5U.js.map → pipeline-BN9A4lPZ.js.map} +1 -1
  54. package/dist/internal/{sculpt-CbEBEh9F.js → sculpt-e0IRMtjB.js} +3 -3
  55. package/dist/internal/{sculpt-CbEBEh9F.js.map → sculpt-e0IRMtjB.js.map} +1 -1
  56. package/dist/plugins/area-maker.js +1 -1
  57. package/dist/plugins/cruise.js +2 -2
  58. package/dist/plugins/current-pano-image.js +1 -1
  59. package/dist/plugins/guide-line.js +1 -1
  60. package/dist/plugins/measure-v2.js +2 -2
  61. package/dist/plugins/measure.js +2 -2
  62. package/dist/plugins/model-maker.js +1 -1
  63. package/dist/plugins/object3d-helper.js +2 -2
  64. package/dist/plugins/pano-compass.js +1 -1
  65. package/dist/plugins/pano-door-label.js +1 -1
  66. package/dist/plugins/pano-measure-v2.js +1 -1
  67. package/dist/plugins/pano-measure.js +1 -1
  68. package/dist/plugins/pano-tag.js +2 -2
  69. package/dist/plugins/pano-video.js +1 -1
  70. package/dist/plugins/pipeline.js +1 -1
  71. package/dist/plugins/sculpt.js +2 -2
  72. package/dist/types/MeasurePlugin/Controller.d.ts +7 -0
  73. package/dist/types/MeasurePlugin/utils/MeasureMesh.d.ts +5 -0
  74. package/dist/types/MeasurePluginV2/Controller.d.ts +9 -0
  75. package/dist/types/MeasurePluginV2/Magnifier.d.ts +33 -0
  76. package/dist/types/MeasurePluginV2/PointOverlay.d.ts +5 -0
  77. package/dist/types/MeasurePluginV2/closeupView.d.ts +69 -0
  78. package/dist/types/MeasurePluginV2/normalMeasure.d.ts +116 -0
  79. package/dist/types/shared-utils/three/Magnifier.d.ts +55 -0
  80. package/dist/utils.js +1 -1
  81. package/package.json +1 -1
  82. package/dist/internal/BasePluginWithData-CIQpqYGe.js +0 -7
  83. package/dist/internal/Controller-5BvatEWD.js.map +0 -1
  84. package/dist/internal/PointHelper-grrf8vu1.js +0 -953
  85. package/dist/internal/PointHelper-grrf8vu1.js.map +0 -1
  86. package/dist/internal/edgeSnap-8fdFCcXB.js.map +0 -1
  87. package/dist/internal/measure-v2-DqjBlSeF.js +0 -83
  88. package/dist/internal/measure-v2-DqjBlSeF.js.map +0 -1
  89. package/dist/internal/object3d-helper-CUhRRdCQ.js +0 -7
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./Subscribe-DLlAl88n.js";
2
- import { r as t } from "./PointHelper-grrf8vu1.js";
2
+ import { r as t } from "./PointHelper-G9EgUMWo.js";
3
3
  import { C as n, c as r } from "./generatePolygonGeometry-DEr9kX3D.js";
4
4
  import { r as i } from "./util-vGeVT4oo.js";
5
5
  import { n as a } from "./getNormal-BatLuzsS.js";
@@ -26,7 +26,10 @@ function m(e) {
26
26
  }
27
27
  //#endregion
28
28
  //#region src/MeasurePlugin/utils/MeasureMesh.ts
29
- var h = class extends a {
29
+ function h(e) {
30
+ return !!e && e.isMeasureMesh === !0;
31
+ }
32
+ var g = class extends a {
30
33
  name = "MeasureMesh";
31
34
  isMeasureMesh = !0;
32
35
  points = [];
@@ -63,30 +66,30 @@ var h = class extends a {
63
66
  unhighlight() {
64
67
  this.line.unhighlight(), this.polygon.unhighlight();
65
68
  }
66
- }, g = typeof navigator < "u" && navigator.userAgent.toLowerCase().indexOf("firefox") > 0;
67
- function _(e, t, n, r) {
69
+ }, _ = typeof navigator < "u" && navigator.userAgent.toLowerCase().indexOf("firefox") > 0;
70
+ function v(e, t, n, r) {
68
71
  e.addEventListener ? e.addEventListener(t, n, r) : e.attachEvent && e.attachEvent(`on${t}`, n);
69
72
  }
70
- function v(e, t, n, r) {
73
+ function y(e, t, n, r) {
71
74
  e && (e.removeEventListener ? e.removeEventListener(t, n, r) : e.detachEvent && e.detachEvent(`on${t}`, n));
72
75
  }
73
- function y(e, t) {
76
+ function b(e, t) {
74
77
  let n = t.slice(0, t.length - 1), r = [];
75
78
  for (let t = 0; t < n.length; t++) r.push(e[n[t].toLowerCase()]);
76
79
  return r;
77
80
  }
78
- function b(e) {
81
+ function x(e) {
79
82
  typeof e != "string" && (e = ""), e = e.replace(/\s/g, "");
80
83
  let t = e.split(","), n = t.lastIndexOf("");
81
84
  for (; n >= 0;) t[n - 1] += ",", t.splice(n, 1), n = t.lastIndexOf("");
82
85
  return t;
83
86
  }
84
- function x(e, t) {
87
+ function S(e, t) {
85
88
  let n = e.length >= t.length ? e : t, r = e.length >= t.length ? t : e, i = !0;
86
89
  for (let e = 0; e < n.length; e++) r.indexOf(n[e]) === -1 && (i = !1);
87
90
  return i;
88
91
  }
89
- function S(e, t, n) {
92
+ function C(e, t, n) {
90
93
  let r = e.keyCode || e.which || e.charCode;
91
94
  if (e.key) {
92
95
  let r = e.key.toLowerCase();
@@ -97,7 +100,7 @@ function S(e, t, n) {
97
100
  }
98
101
  return e.code && /^Key[A-Z]$/.test(e.code) && (r = e.code.charCodeAt(3)), r;
99
102
  }
100
- var C = {
103
+ var w = {
101
104
  backspace: 8,
102
105
  "⌫": 8,
103
106
  tab: 9,
@@ -146,16 +149,16 @@ var C = {
146
149
  ".": 190,
147
150
  "/": 191,
148
151
  "`": 192,
149
- "-": g ? 173 : 189,
150
- "=": g ? 61 : 187,
151
- ";": g ? 59 : 186,
152
+ "-": _ ? 173 : 189,
153
+ "=": _ ? 61 : 187,
154
+ ";": _ ? 59 : 186,
152
155
  "'": 222,
153
156
  "{": 219,
154
157
  "}": 221,
155
158
  "[": 219,
156
159
  "]": 221,
157
160
  "\\": 220
158
- }, w = {
161
+ }, T = {
159
162
  "⇧": 16,
160
163
  shift: 16,
161
164
  "⌥": 18,
@@ -168,7 +171,7 @@ var C = {
168
171
  cmd: 91,
169
172
  meta: 91,
170
173
  command: 91
171
- }, T = {
174
+ }, E = {
172
175
  16: "shiftKey",
173
176
  18: "altKey",
174
177
  17: "ctrlKey",
@@ -177,28 +180,28 @@ var C = {
177
180
  ctrlKey: 17,
178
181
  altKey: 18,
179
182
  metaKey: 91
180
- }, E = {
183
+ }, D = {
181
184
  16: !1,
182
185
  18: !1,
183
186
  17: !1,
184
187
  91: !1
185
- }, D = {};
186
- for (let e = 1; e < 20; e++) C[`f${e}`] = 111 + e;
187
- var O = [], k = null, A = null, j = "all", M = /* @__PURE__ */ new Map(), N = (e) => C[e.toLowerCase()] || w[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), P = (e) => Object.keys(C).find((t) => C[t] === e), F = (e) => Object.keys(w).find((t) => w[t] === e), I = (e) => {
188
- j = e || "all";
189
- }, L = () => j || "all", R = () => O.slice(0), z = () => O.map((e) => P(e) || F(e) || String.fromCharCode(e)), B = () => {
188
+ }, O = {};
189
+ for (let e = 1; e < 20; e++) w[`f${e}`] = 111 + e;
190
+ var k = [], A = null, j = null, M = "all", N = /* @__PURE__ */ new Map(), P = (e) => w[e.toLowerCase()] || T[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), F = (e) => Object.keys(w).find((t) => w[t] === e), I = (e) => Object.keys(T).find((t) => T[t] === e), L = (e) => {
191
+ M = e || "all";
192
+ }, R = () => M || "all", z = () => k.slice(0), B = () => k.map((e) => F(e) || I(e) || String.fromCharCode(e)), V = () => {
190
193
  let e = [];
191
- return Object.keys(D).forEach((t) => {
192
- D[t].forEach(({ key: t, scope: n, mods: r, shortcut: i }) => {
194
+ return Object.keys(O).forEach((t) => {
195
+ O[t].forEach(({ key: t, scope: n, mods: r, shortcut: i }) => {
193
196
  e.push({
194
197
  scope: n,
195
198
  shortcut: i,
196
199
  mods: r,
197
- keys: t.split("+").map((e) => N(e))
200
+ keys: t.split("+").map((e) => P(e))
198
201
  });
199
202
  });
200
203
  }), e;
201
- }, V = (e) => {
204
+ }, H = (e) => {
202
205
  let t = e.target || e.srcElement, { tagName: n } = t, r = !0, i = n === "INPUT" && ![
203
206
  "checkbox",
204
207
  "radio",
@@ -210,99 +213,99 @@ var O = [], k = null, A = null, j = "all", M = /* @__PURE__ */ new Map(), N = (e
210
213
  "color"
211
214
  ].includes(t.type);
212
215
  return (t.isContentEditable || (i || n === "TEXTAREA" || n === "SELECT") && !t.readOnly) && (r = !1), r;
213
- }, H = (e) => (typeof e == "string" && (e = N(e)), O.indexOf(e) !== -1), U = (e, t) => {
216
+ }, U = (e) => (typeof e == "string" && (e = P(e)), k.indexOf(e) !== -1), W = (e, t) => {
214
217
  let n, r;
215
- e ||= L();
216
- for (let t in D) if (Object.prototype.hasOwnProperty.call(D, t)) for (n = D[t], r = 0; r < n.length;) n[r].scope === e ? n.splice(r, 1).forEach(({ element: e }) => Z(e)) : r++;
217
- L() === e && I(t || "all");
218
+ e ||= R();
219
+ for (let t in O) if (Object.prototype.hasOwnProperty.call(O, t)) for (n = O[t], r = 0; r < n.length;) n[r].scope === e ? n.splice(r, 1).forEach(({ element: e }) => Q(e)) : r++;
220
+ R() === e && L(t || "all");
218
221
  };
219
- function W(e) {
220
- let t = S(e, C, w);
221
- e.key && e.key.toLowerCase() === "capslock" && (t = N(e.key));
222
- let n = O.indexOf(t);
223
- if (n >= 0 && O.splice(n, 1), e.key && e.key.toLowerCase() === "meta" && O.splice(0, O.length), (t === 93 || t === 224) && (t = 91), t in E) {
224
- E[t] = !1;
225
- for (let e in w) w[e] === t && (Y[e] = !1);
222
+ function G(e) {
223
+ let t = C(e, w, T);
224
+ e.key && e.key.toLowerCase() === "capslock" && (t = P(e.key));
225
+ let n = k.indexOf(t);
226
+ if (n >= 0 && k.splice(n, 1), e.key && e.key.toLowerCase() === "meta" && k.splice(0, k.length), (t === 93 || t === 224) && (t = 91), t in D) {
227
+ D[t] = !1;
228
+ for (let e in T) T[e] === t && (X[e] = !1);
226
229
  }
227
230
  }
228
- var G = (e, ...t) => {
229
- if (e === void 0) Object.keys(D).forEach((e) => {
230
- Array.isArray(D[e]) && D[e].forEach((e) => K(e)), delete D[e];
231
- }), Z(null);
231
+ var K = (e, ...t) => {
232
+ if (e === void 0) Object.keys(O).forEach((e) => {
233
+ Array.isArray(O[e]) && O[e].forEach((e) => q(e)), delete O[e];
234
+ }), Q(null);
232
235
  else if (Array.isArray(e)) e.forEach((e) => {
233
- e.key && K(e);
236
+ e.key && q(e);
234
237
  });
235
- else if (typeof e == "object") e.key && K(e);
238
+ else if (typeof e == "object") e.key && q(e);
236
239
  else if (typeof e == "string") {
237
240
  let [n, r] = t;
238
- typeof n == "function" && (r = n, n = ""), K({
241
+ typeof n == "function" && (r = n, n = ""), q({
239
242
  key: e,
240
243
  scope: n,
241
244
  method: r,
242
245
  splitKey: "+"
243
246
  });
244
247
  }
245
- }, K = ({ key: e, scope: t, method: n, splitKey: r = "+" }) => {
246
- b(e).forEach((e) => {
247
- let i = e.split(r), a = i.length, o = i[a - 1], s = o === "*" ? "*" : N(o);
248
- if (!D[s]) return;
249
- t ||= L();
250
- let c = a > 1 ? y(w, i) : [], l = [];
251
- D[s] = D[s].filter((e) => {
252
- let r = (!n || e.method === n) && e.scope === t && x(e.mods, c);
248
+ }, q = ({ key: e, scope: t, method: n, splitKey: r = "+" }) => {
249
+ x(e).forEach((e) => {
250
+ let i = e.split(r), a = i.length, o = i[a - 1], s = o === "*" ? "*" : P(o);
251
+ if (!O[s]) return;
252
+ t ||= R();
253
+ let c = a > 1 ? b(T, i) : [], l = [];
254
+ O[s] = O[s].filter((e) => {
255
+ let r = (!n || e.method === n) && e.scope === t && S(e.mods, c);
253
256
  return r && l.push(e.element), !r;
254
- }), l.forEach((e) => Z(e));
257
+ }), l.forEach((e) => Q(e));
255
258
  });
256
259
  };
257
- function q(e, t, n, r) {
260
+ function J(e, t, n, r) {
258
261
  if (t.element !== r) return;
259
262
  let i;
260
263
  if (t.scope === n || t.scope === "all") {
261
264
  i = t.mods.length > 0;
262
- for (let e in E) Object.prototype.hasOwnProperty.call(E, e) && (!E[e] && t.mods.indexOf(+e) > -1 || E[e] && t.mods.indexOf(+e) === -1) && (i = !1);
263
- (t.mods.length === 0 && !E[16] && !E[18] && !E[17] && !E[91] || i || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(O), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble &&= !0));
265
+ for (let e in D) Object.prototype.hasOwnProperty.call(D, e) && (!D[e] && t.mods.indexOf(+e) > -1 || D[e] && t.mods.indexOf(+e) === -1) && (i = !1);
266
+ (t.mods.length === 0 && !D[16] && !D[18] && !D[17] && !D[91] || i || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(k), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble &&= !0));
264
267
  }
265
268
  }
266
- function J(e, t) {
267
- let n = D["*"], r = S(e, C, w);
268
- if (e.key && e.key.toLowerCase() === "capslock" || !(Y.filter || V).call(this, e)) return;
269
- if ((r === 93 || r === 224) && (r = 91), O.indexOf(r) === -1 && r !== 229 && O.push(r), [
269
+ function Y(e, t) {
270
+ let n = O["*"], r = C(e, w, T);
271
+ if (e.key && e.key.toLowerCase() === "capslock" || !(X.filter || H).call(this, e)) return;
272
+ if ((r === 93 || r === 224) && (r = 91), k.indexOf(r) === -1 && r !== 229 && k.push(r), [
270
273
  "metaKey",
271
274
  "ctrlKey",
272
275
  "altKey",
273
276
  "shiftKey"
274
277
  ].forEach((t) => {
275
- let n = T[t];
276
- e[t] && O.indexOf(n) === -1 ? O.push(n) : !e[t] && O.indexOf(n) > -1 ? O.splice(O.indexOf(n), 1) : t === "metaKey" && e[t] && (O = O.filter((e) => e in T || e === r));
277
- }), r in E) {
278
- E[r] = !0;
279
- for (let t in w) Object.prototype.hasOwnProperty.call(w, t) && (Y[t] = e[T[w[t]]]);
278
+ let n = E[t];
279
+ e[t] && k.indexOf(n) === -1 ? k.push(n) : !e[t] && k.indexOf(n) > -1 ? k.splice(k.indexOf(n), 1) : t === "metaKey" && e[t] && (k = k.filter((e) => e in E || e === r));
280
+ }), r in D) {
281
+ D[r] = !0;
282
+ for (let t in T) Object.prototype.hasOwnProperty.call(T, t) && (X[t] = e[E[T[t]]]);
280
283
  if (!n) return;
281
284
  }
282
- for (let t in E) Object.prototype.hasOwnProperty.call(E, t) && (E[t] = e[T[t]]);
283
- e.getModifierState && (!e.altKey || e.ctrlKey) && e.getModifierState("AltGraph") && (O.indexOf(17) === -1 && O.push(17), O.indexOf(18) === -1 && O.push(18), E[17] = !0, E[18] = !0);
284
- let i = L();
285
- if (n) for (let r = 0; r < n.length; r++) n[r].scope === i && (e.type === "keydown" && n[r].keydown || e.type === "keyup" && n[r].keyup) && q(e, n[r], i, t);
286
- if (!(r in D)) return;
287
- let a = D[r], o = a.length;
285
+ for (let t in D) Object.prototype.hasOwnProperty.call(D, t) && (D[t] = e[E[t]]);
286
+ e.getModifierState && (!e.altKey || e.ctrlKey) && e.getModifierState("AltGraph") && (k.indexOf(17) === -1 && k.push(17), k.indexOf(18) === -1 && k.push(18), D[17] = !0, D[18] = !0);
287
+ let i = R();
288
+ if (n) for (let r = 0; r < n.length; r++) n[r].scope === i && (e.type === "keydown" && n[r].keydown || e.type === "keyup" && n[r].keyup) && J(e, n[r], i, t);
289
+ if (!(r in O)) return;
290
+ let a = O[r], o = a.length;
288
291
  for (let n = 0; n < o; n++) if ((e.type === "keydown" && a[n].keydown || e.type === "keyup" && a[n].keyup) && a[n].key) {
289
292
  let r = a[n], { splitKey: o } = r, s = r.key.split(o), c = [];
290
- for (let e = 0; e < s.length; e++) c.push(N(s[e]));
291
- c.sort().join("") === O.sort().join("") && q(e, r, i, t);
293
+ for (let e = 0; e < s.length; e++) c.push(P(s[e]));
294
+ c.sort().join("") === k.sort().join("") && J(e, r, i, t);
292
295
  }
293
296
  }
294
- var Y = function e(t, n, r) {
295
- O = [];
296
- let i = b(t), a = [], o = "all", s = document, c = 0, l = !1, u = !0, d = "+", f = !1, p = !1;
297
+ var X = function e(t, n, r) {
298
+ k = [];
299
+ let i = x(t), a = [], o = "all", s = document, c = 0, l = !1, u = !0, d = "+", f = !1, p = !1;
297
300
  if (r === void 0 && typeof n == "function" && (r = n), Object.prototype.toString.call(n) === "[object Object]") {
298
301
  let e = n;
299
302
  e.scope && (o = e.scope), e.element && (s = e.element), e.keyup && (l = e.keyup), e.keydown !== void 0 && (u = e.keydown), e.capture !== void 0 && (f = e.capture), typeof e.splitKey == "string" && (d = e.splitKey), e.single === !0 && (p = !0);
300
303
  }
301
- for (typeof n == "string" && (o = n), p && G(t, o); c < i.length; c++) {
304
+ for (typeof n == "string" && (o = n), p && K(t, o); c < i.length; c++) {
302
305
  let e = i[c].split(d);
303
- a = [], e.length > 1 && (a = y(w, e));
306
+ a = [], e.length > 1 && (a = b(T, e));
304
307
  let t = e[e.length - 1];
305
- t = t === "*" ? "*" : N(t), t in D || (D[t] = []), D[t].push({
308
+ t = t === "*" ? "*" : P(t), t in O || (O[t] = []), O[t].push({
306
309
  keyup: l,
307
310
  keydown: u,
308
311
  scope: o,
@@ -315,90 +318,91 @@ var Y = function e(t, n, r) {
315
318
  });
316
319
  }
317
320
  if (s !== void 0 && typeof window < "u") {
318
- if (!M.has(s)) {
319
- let e = (e = window.event) => J(e, s), t = (e = window.event) => {
320
- J(e, s), W(e);
321
+ if (!N.has(s)) {
322
+ let e = (e = window.event) => Y(e, s), t = (e = window.event) => {
323
+ Y(e, s), G(e);
321
324
  };
322
- M.set(s, {
325
+ N.set(s, {
323
326
  keydownListener: e,
324
327
  keyupListenr: t,
325
328
  capture: f
326
- }), _(s, "keydown", e, f), _(s, "keyup", t, f);
329
+ }), v(s, "keydown", e, f), v(s, "keyup", t, f);
327
330
  }
328
- if (!k) {
331
+ if (!A) {
329
332
  let e = () => {
330
- O = [];
333
+ k = [];
331
334
  };
332
- k = {
335
+ A = {
333
336
  listener: e,
334
337
  capture: f
335
- }, _(window, "focus", e, f);
338
+ }, v(window, "focus", e, f);
336
339
  }
337
- if (!A && typeof document < "u") {
340
+ if (!j && typeof document < "u") {
338
341
  let t = () => {
339
- O = [];
340
- for (let e in E) E[e] = !1;
341
- for (let t in w) e[t] = !1;
342
+ k = [];
343
+ for (let e in D) D[e] = !1;
344
+ for (let t in T) e[t] = !1;
342
345
  }, n = t, r = t;
343
- document.addEventListener("fullscreenchange", n), document.addEventListener("webkitfullscreenchange", r), A = {
346
+ document.addEventListener("fullscreenchange", n), document.addEventListener("webkitfullscreenchange", r), j = {
344
347
  fullscreen: n,
345
348
  webkit: r
346
349
  };
347
350
  }
348
351
  }
349
352
  };
350
- function X(e, t = "all") {
351
- Object.keys(D).forEach((n) => {
352
- D[n].filter((n) => n.scope === t && (n.shortcut === e || n.shortcut === "*")).forEach((e) => {
353
+ function Z(e, t = "all") {
354
+ Object.keys(O).forEach((n) => {
355
+ O[n].filter((n) => n.scope === t && (n.shortcut === e || n.shortcut === "*")).forEach((e) => {
353
356
  e && e.method && e.method({}, e);
354
357
  });
355
358
  });
356
359
  }
357
- function Z(e) {
358
- let t = Object.values(D).flat();
360
+ function Q(e) {
361
+ let t = Object.values(O).flat();
359
362
  if (t.findIndex(({ element: t }) => t === e) < 0 && e) {
360
- let { keydownListener: t, keyupListenr: n, capture: r } = M.get(e) || {};
361
- t && n && (v(e, "keyup", n, r), v(e, "keydown", t, r), M.delete(e));
363
+ let { keydownListener: t, keyupListenr: n, capture: r } = N.get(e) || {};
364
+ t && n && (y(e, "keyup", n, r), y(e, "keydown", t, r), N.delete(e));
362
365
  }
363
- if (t.length <= 0 || M.size <= 0) {
364
- if (Array.from(M.keys()).forEach((e) => {
365
- let { keydownListener: t, keyupListenr: n, capture: r } = M.get(e) || {};
366
- t && n && (v(e, "keyup", n, r), v(e, "keydown", t, r), M.delete(e));
367
- }), M.clear(), Object.keys(D).forEach((e) => delete D[e]), k) {
368
- let { listener: e, capture: t } = k;
369
- v(window, "focus", e, t), k = null;
366
+ if (t.length <= 0 || N.size <= 0) {
367
+ if (Array.from(N.keys()).forEach((e) => {
368
+ let { keydownListener: t, keyupListenr: n, capture: r } = N.get(e) || {};
369
+ t && n && (y(e, "keyup", n, r), y(e, "keydown", t, r), N.delete(e));
370
+ }), N.clear(), Object.keys(O).forEach((e) => delete O[e]), A) {
371
+ let { listener: e, capture: t } = A;
372
+ y(window, "focus", e, t), A = null;
370
373
  }
371
- A && typeof document < "u" && (document.removeEventListener("fullscreenchange", A.fullscreen), document.removeEventListener("webkitfullscreenchange", A.webkit), A = null);
374
+ j && typeof document < "u" && (document.removeEventListener("fullscreenchange", j.fullscreen), document.removeEventListener("webkitfullscreenchange", j.webkit), j = null);
372
375
  }
373
376
  }
374
- var Q = {
375
- getPressedKeyString: z,
376
- setScope: I,
377
- getScope: L,
378
- deleteScope: U,
379
- getPressedKeyCodes: R,
380
- getAllKeyCodes: B,
381
- isPressed: H,
382
- filter: V,
383
- trigger: X,
384
- unbind: G,
385
- keyMap: C,
386
- modifier: w,
387
- modifierMap: T
377
+ var $ = {
378
+ getPressedKeyString: B,
379
+ setScope: L,
380
+ getScope: R,
381
+ deleteScope: W,
382
+ getPressedKeyCodes: z,
383
+ getAllKeyCodes: V,
384
+ isPressed: U,
385
+ filter: H,
386
+ trigger: Z,
387
+ unbind: K,
388
+ keyMap: w,
389
+ modifier: T,
390
+ modifierMap: E
388
391
  };
389
- for (let e in Q) {
392
+ for (let e in $) {
390
393
  let t = e;
391
- Object.prototype.hasOwnProperty.call(Q, t) && (Y[t] = Q[t]);
394
+ Object.prototype.hasOwnProperty.call($, t) && (X[t] = $[t]);
392
395
  }
393
396
  if (typeof window < "u") {
394
397
  let e = window.hotkeys;
395
- Y.noConflict = (t) => (t && window.hotkeys === Y && (window.hotkeys = e), Y), window.hotkeys = Y;
398
+ X.noConflict = (t) => (t && window.hotkeys === X && (window.hotkeys = e), X), window.hotkeys = X;
396
399
  }
397
400
  //#endregion
398
401
  //#region src/MeasurePlugin/Controller.ts
399
- var $ = class extends e {
402
+ var ee = class extends e {
400
403
  name = "MeasurePlugin";
401
404
  currentMeasureMesh;
405
+ continueMeasureFrom;
402
406
  five;
403
407
  group;
404
408
  currentEndReason = "enter";
@@ -444,7 +448,7 @@ var $ = class extends e {
444
448
  return this._config;
445
449
  }
446
450
  set config(e) {
447
- this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, e.lengthEnable !== void 0 && (this.lineStyle.lengthEnable = e.lengthEnable, this.polygonStyle.lengthEnable = e.lengthEnable), e.precision !== void 0 && (this.lineStyle.precision = e.precision), this.group?.children?.forEach((e) => e.changeConfig({
451
+ this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, e.lengthEnable !== void 0 && (this.lineStyle.lengthEnable = e.lengthEnable, this.polygonStyle.lengthEnable = e.lengthEnable), e.precision !== void 0 && (this.lineStyle.precision = e.precision), this.group?.children?.filter(h).forEach((e) => e.changeConfig({
448
452
  lineStyle: this.lineStyle,
449
453
  polygonStyle: this.polygonStyle
450
454
  }));
@@ -472,15 +476,20 @@ var $ = class extends e {
472
476
  this.config = t ? {
473
477
  ...r,
474
478
  ...t
475
- } : r, this.group = new a(), this.group.name = "MeasureGroup", n(this.group, this.five), this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), Y("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
479
+ } : r, this.group = new a(), this.group.name = "MeasureGroup", n(this.group, this.five), this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), X("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
476
480
  }
477
481
  initEventListeners = () => {
478
482
  this.group.children.forEach(this.addMeshEventListeners);
479
483
  };
484
+ unselectAllMeasureMeshes = () => {
485
+ this.group.children.forEach((e) => {
486
+ h(e) && e.unselect();
487
+ });
488
+ };
480
489
  measure = () => {
481
490
  if (this.currentMeasureMesh) return;
482
- this.cleanupPendingPress?.(), this.repositioningState && this.cancelRepositioning(), this.listener.addMeasureListener(), Y.unbind("delete, backspace", this.deleteSelectedMesh), this.group.children.forEach((e) => e.unselect()), this.cursor.removeDeleteButton();
483
- let e = new h({
491
+ this.cleanupPendingPress?.(), this.repositioningState && this.cancelRepositioning(), this.listener.addMeasureListener(), X.unbind("delete, backspace", this.deleteSelectedMesh), this.unselectAllMeasureMeshes(), this.cursor.removeDeleteButton();
492
+ let e = new g({
484
493
  lineStyle: this.lineStyle,
485
494
  polygonStyle: this.polygonStyle
486
495
  });
@@ -509,10 +518,10 @@ var $ = class extends e {
509
518
  occlusionVisibility: !0,
510
519
  color: 3407837,
511
520
  opacity: .5
512
- }), c = null, l = !1, g = !1, _ = (e) => {
513
- e.key === "Shift" && (g = !0);
521
+ }), c = null, l = !1, h = !1, _ = (e) => {
522
+ e.key === "Shift" && (h = !0);
514
523
  }, v = (e) => {
515
- e.key === "Shift" && (g = !1);
524
+ e.key === "Shift" && (h = !1);
516
525
  }, y = () => {
517
526
  t.removeFromParent(), n.removeFromParent(), i.removeFromParent(), a.removeFromParent(), o.removeFromParent(), s.removeFromParent();
518
527
  };
@@ -570,15 +579,23 @@ var $ = class extends e {
570
579
  }, x = (t) => {
571
580
  if (!t) return;
572
581
  let n = t.point;
573
- g && l && c && e.points.length >= 1 && (n = c.clone()), y(), e.setPoints([...e.points, n]), this.updateSelectAdsorbedHelper(), this.publishInteraction("drawing"), e.isPolygon && (this.currentEndReason = "polygon", this.pointSelector.disable());
582
+ h && l && c && e.points.length >= 1 && (n = c.clone()), y(), e.setPoints([...e.points, n]), this.updateSelectAdsorbedHelper(), this.publishInteraction("drawing"), e.isPolygon && (this.currentEndReason = "polygon", this.pointSelector.disable());
574
583
  }, S = () => {
575
584
  e?.setPoints(e.points.slice(0, -1)), y(), this.pointSelector.pointSelectorHelper?.magnifier?.render(), this.updateSelectAdsorbedHelper(), this.publishInteraction("drawing"), this.five.needsRender = !0;
576
- }, C = () => {
577
- this.pointSelector.off("intersectionUpdate", b), this.pointSelector.off("select", x), this.pointSelector.off("disable", C), this.off("undo", S), document.removeEventListener("keydown", _), document.removeEventListener("keyup", v), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), y();
585
+ }, C = (t) => {
586
+ if (this.currentMeasureMesh !== e) return;
587
+ e.line.setStyle({ cssStyle: "pointer-events: auto;" }), e.__five_pano_index = this.five.panoIndex, this.addMeshEventListeners(e), y();
588
+ let n = new g({
589
+ lineStyle: this.lineStyle,
590
+ polygonStyle: this.polygonStyle
591
+ });
592
+ n.line.setStyle({ cssStyle: "pointer-events: none;" }), n.setPoints([t.clone()]), this.group.add(n), e = n, this.currentMeasureMesh = n, this.pointSelector.actionIfNoIntersection = "virtualPoint", this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
593
+ }, w = () => {
594
+ this.continueMeasureFrom = void 0, this.pointSelector.off("intersectionUpdate", b), this.pointSelector.off("select", x), this.pointSelector.off("disable", w), this.off("undo", S), document.removeEventListener("keydown", _), document.removeEventListener("keyup", v), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), y();
578
595
  let t = this.currentEndReason, n = !0;
579
- t === "escape" ? (e.removeFromParent(), n = !1) : e.points.length < 2 ? (e.removeFromParent(), t = "points_insufficient", n = !1) : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), Y("delete, backspace", this.deleteSelectedMesh), this.publishInteraction("idle"), this.emit("measureEnd", t, n ? e.points : []), this.currentEndReason = "enter";
596
+ t === "escape" ? (e.removeFromParent(), n = !1) : e.points.length < 2 ? (e.removeFromParent(), t = "points_insufficient", n = !1) : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), X("delete, backspace", this.deleteSelectedMesh), this.publishInteraction("idle"), this.emit("measureEnd", t, n ? e.points : []), this.currentEndReason = "enter";
580
597
  };
581
- this.on("undo", S), this.pointSelector.on("intersectionUpdate", b), this.pointSelector.on("select", x), this.pointSelector.on("disable", C), this.pointSelector.enable(), this.publishInteraction("drawing");
598
+ this.continueMeasureFrom = C, this.on("undo", S), this.pointSelector.on("intersectionUpdate", b), this.pointSelector.on("select", x), this.pointSelector.on("disable", w), this.pointSelector.enable(), this.publishInteraction("drawing");
582
599
  };
583
600
  endMeasure = () => {
584
601
  this.currentEndReason = "external", this.pointSelector.disable();
@@ -597,10 +614,10 @@ var $ = class extends e {
597
614
  };
598
615
  setLengthEnable = (e) => {
599
616
  this.lineStyle.lengthEnable = e, this.polygonStyle.lengthEnable = e, this.group.children.forEach((e) => {
600
- e.changeConfig({
617
+ h(e) && (e.changeConfig({
601
618
  lineStyle: { ...this.lineStyle },
602
619
  polygonStyle: { ...this.polygonStyle }
603
- }), this.addMeshEventListeners(e);
620
+ }), this.addMeshEventListeners(e));
604
621
  }), this.currentMeasureMesh && this.currentMeasureMesh.changeConfig({
605
622
  lineStyle: { ...this.lineStyle },
606
623
  polygonStyle: { ...this.polygonStyle }
@@ -649,32 +666,32 @@ var $ = class extends e {
649
666
  this.pointSelector.disable(), e && (this.removeMeshEventListeners(e), e.removeFromParent(), this.publishInteraction(this.currentMeasureMesh ? "drawing" : "idle"));
650
667
  };
651
668
  clear = () => {
652
- this.cleanupPendingPress?.(), this.cancelRepositioning(), this.currentMeasureMesh = null, this.pointSelector.disable(), this.group.children.forEach(this.removeMeshEventListeners), this.group.removeChildren(), this.cursor.removeDeleteButton(), this.publishInteraction("idle");
669
+ this.cleanupPendingPress?.(), this.cancelRepositioning(), this.currentMeasureMesh = null, this.pointSelector.disable(), this.group.children.filter(h).forEach(this.removeMeshEventListeners), this.group.removeChildren(), this.cursor.removeDeleteButton(), this.publishInteraction("idle");
653
670
  };
654
671
  dispose = () => {
655
672
  this.pointSelector.disable(), this.listener.removeMeasureListener(), this.listener.removeClickListener(), this.clear(), this.endpointPointerElement?.removeEventListener("pointerdown", this.onEndpointPointerDown, !0), this.endpointPointerElement = void 0, this._fiveDomEvents?.dispose();
656
673
  };
657
674
  listener = {
658
675
  addClickListener: () => {
659
- this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), Y("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
676
+ this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), X("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
660
677
  },
661
678
  removeClickListener: () => {
662
679
  this.group.children.forEach((e) => {
663
- e.line.doms?.forEach((e) => {
680
+ h(e) && (e.line.doms?.forEach((e) => {
664
681
  e?.container && (e.container.onclick = null, e.container.onmouseenter = null, e.container.onmouseleave = null);
665
- }), e.polygon.areaDom?.container && (e.polygon.areaDom.container.onclick = null, e.polygon.areaDom.container.onmouseenter = null, e.polygon.areaDom.container.onmouseleave = null);
666
- }), this.fiveDomEvents.clear(), this.five.off("panoArrived", this.onMoveToPano), this.five.off("modeChange", this.onModeChange), Y.unbind("delete, backspace", this.deleteSelectedMesh);
682
+ }), e.polygon.areaDom?.container && (e.polygon.areaDom.container.onclick = null, e.polygon.areaDom.container.onmouseenter = null, e.polygon.areaDom.container.onmouseleave = null));
683
+ }), this.fiveDomEvents.clear(), this.five.off("panoArrived", this.onMoveToPano), this.five.off("modeChange", this.onModeChange), X.unbind("delete, backspace", this.deleteSelectedMesh);
667
684
  },
668
685
  addMeasureListener: () => {
669
- Y("ctrl+z, command+z", this.undo), Y("esc", this.cancel), Y("enter", this.endMeasureByEnter), this.five.on("mode.change", this.endMeasureByModeChange), this.five.on("pano.moveTo", this.endMeasureByPanoMove), this.five.on("model.changeShownFloor", this.endMeasureByFloorChange);
686
+ X("ctrl+z, command+z", this.undo), X("esc", this.cancel), X("enter", this.endMeasureByEnter), this.five.on("mode.change", this.endMeasureByModeChange), this.five.on("pano.moveTo", this.endMeasureByPanoMove), this.five.on("model.changeShownFloor", this.endMeasureByFloorChange);
670
687
  },
671
688
  removeMeasureListener: () => {
672
- Y.unbind("ctrl+z, command+z", this.undo), Y.unbind("esc", this.cancel), Y.unbind("enter", this.endMeasureByEnter), this.five.off("mode.change", this.endMeasureByModeChange), this.five.off("pano.moveTo", this.endMeasureByPanoMove), this.five.off("model.changeShownFloor", this.endMeasureByFloorChange);
689
+ X.unbind("ctrl+z, command+z", this.undo), X.unbind("esc", this.cancel), X.unbind("enter", this.endMeasureByEnter), this.five.off("mode.change", this.endMeasureByModeChange), this.five.off("pano.moveTo", this.endMeasureByPanoMove), this.five.off("model.changeShownFloor", this.endMeasureByFloorChange);
673
690
  }
674
691
  };
675
692
  onMoveToPano = (e) => {
676
693
  this.cleanupPendingPress?.(), this.cancelRepositioning();
677
- let t = this.group.children.filter((e) => e !== this.currentMeasureMesh), n = new o();
694
+ let t = this.group.children.filter((e) => e !== this.currentMeasureMesh && h(e)), n = new o();
678
695
  t.forEach((t) => {
679
696
  t.unselect(), t.__five_pano_index === e ? t.visible = !0 : (t.visible = !!t.line.points?.some((e) => {
680
697
  let t = e.clone().sub(this.five.camera.position).normalize();
@@ -693,14 +710,14 @@ var $ = class extends e {
693
710
  };
694
711
  onClick = ({ origDomEvent: e, target: t }) => {
695
712
  let n = t;
696
- if (!n) return;
713
+ if (!h(n)) return;
697
714
  if (n.selected) {
698
715
  n.unselect(), this.cursor.removeDeleteButton();
699
716
  return;
700
717
  }
701
718
  let r, i;
702
719
  if (e && ("touches" in e && e.touches && e.touches[0] ? (r = e.touches[0].clientX, i = e.touches[0].clientY) : "clientX" in e && "clientY" in e && (r = e.clientX, i = e.clientY)), r === void 0 || i === void 0) return;
703
- this.group.children.forEach((e) => e.unselect()), n.select();
720
+ this.unselectAllMeasureMeshes(), n.select();
704
721
  let a = () => {
705
722
  this.removeMeshEventListeners(n), n.removeFromParent(), this.publishInteraction("idle"), this.cursor.removeDeleteButton(), this.five.needsRender = !0;
706
723
  }, o = this.five.getElement()?.parentElement || document.body;
@@ -814,7 +831,7 @@ var $ = class extends e {
814
831
  };
815
832
  load = (e) => {
816
833
  this.clear(), e.forEach((e) => {
817
- let t = new h({
834
+ let t = new g({
818
835
  lineStyle: this.lineStyle,
819
836
  polygonStyle: this.polygonStyle
820
837
  });
@@ -830,7 +847,7 @@ var $ = class extends e {
830
847
  isDragMode: n,
831
848
  mouseDownPosition: r || void 0,
832
849
  hasMoved: !1
833
- }, this.applyRepositioningStyle(e, !0), this.five.on("wantsGesture", this.preventFiveGestures), n ? this.enableGlobalPointerTracking(i) : (this.pointSelector.actionIfNoIntersection = "virtualPoint", this.pointSelector.enable(), this.pointSelector.on("intersectionUpdate", this.onRepositioningMove), this.pointSelector.on("select", this.onRepositioningConfirm), this.pointSelector.on("disable", this.cancelRepositioning)), this.repositioningState && (Y("esc", this.cancelRepositioning), this.publishInteraction("editing")));
850
+ }, this.applyRepositioningStyle(e, !0), this.five.on("wantsGesture", this.preventFiveGestures), n ? this.enableGlobalPointerTracking(i) : (this.pointSelector.actionIfNoIntersection = "virtualPoint", this.pointSelector.enable(), this.pointSelector.on("intersectionUpdate", this.onRepositioningMove), this.pointSelector.on("select", this.onRepositioningConfirm), this.pointSelector.on("disable", this.cancelRepositioning)), this.repositioningState && (X("esc", this.cancelRepositioning), this.publishInteraction("editing")));
834
851
  };
835
852
  updatePolygonPoints = (e, t, n, i = !1) => {
836
853
  if (e.isPolygon && t.length > 3 && n !== void 0) {
@@ -950,10 +967,10 @@ var $ = class extends e {
950
967
  };
951
968
  preventFiveGestures = () => !1;
952
969
  cleanupRepositioning = () => {
953
- this.cleanupRepositioningListeners?.(), this.cleanupRepositioningListeners = void 0, this.repositioningState && (this.repositioningState.isDragMode || (this.pointSelector.off("intersectionUpdate", this.onRepositioningMove), this.pointSelector.off("select", this.onRepositioningConfirm), this.pointSelector.off("disable", this.cancelRepositioning), this.pointSelector.disable())), this.five.off("wantsGesture", this.preventFiveGestures), Y.unbind("esc", this.cancelRepositioning), this.repositioningState = null, this.five.needsRender = !0;
970
+ this.cleanupRepositioningListeners?.(), this.cleanupRepositioningListeners = void 0, this.repositioningState && (this.repositioningState.isDragMode || (this.pointSelector.off("intersectionUpdate", this.onRepositioningMove), this.pointSelector.off("select", this.onRepositioningConfirm), this.pointSelector.off("disable", this.cancelRepositioning), this.pointSelector.disable())), this.five.off("wantsGesture", this.preventFiveGestures), X.unbind("esc", this.cancelRepositioning), this.repositioningState = null, this.five.needsRender = !0;
954
971
  };
955
972
  };
956
973
  //#endregion
957
- export { m as n, $ as t };
974
+ export { m as n, ee as t };
958
975
 
959
- //# sourceMappingURL=Controller-5BvatEWD.js.map
976
+ //# sourceMappingURL=Controller-DSKeCecj.js.map