@realsee/dnalogel 4.0.0-webgpu.18 → 4.0.0-webgpu.20
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.
- package/CHANGELOG.md +10 -0
- package/dist/floorplan.js +1 -1
- package/dist/index.js +19 -19
- package/dist/internal/{BasePlugin-Cr_atQUC.js → BasePlugin-hxM1EHtV.js} +2 -2
- package/dist/internal/{BasePlugin-Cr_atQUC.js.map → BasePlugin-hxM1EHtV.js.map} +1 -1
- package/dist/internal/BasePluginWithData-BS2O9hNu.js +7 -0
- package/dist/internal/{BasePluginWithData-CIQpqYGe.js.map → BasePluginWithData-BS2O9hNu.js.map} +1 -1
- package/dist/internal/{Controller-Cq-mYkzT.js → Controller-CDLmWyXz.js} +3 -3
- package/dist/internal/{Controller-Cq-mYkzT.js.map → Controller-CDLmWyXz.js.map} +1 -1
- package/dist/internal/{Controller-BDT5_ZNe.js → Controller-CxAUW5kD.js} +2 -2
- package/dist/internal/{Controller-BDT5_ZNe.js.map → Controller-CxAUW5kD.js.map} +1 -1
- package/dist/internal/{Controller-5BvatEWD.js → Controller-DSKeCecj.js} +171 -154
- package/dist/internal/Controller-DSKeCecj.js.map +1 -0
- package/dist/internal/PointHelper-G9EgUMWo.js +1052 -0
- package/dist/internal/PointHelper-G9EgUMWo.js.map +1 -0
- package/dist/internal/{Rectangle-Z2T_h74M.js → Rectangle-HB8jF_bX.js} +3 -3
- package/dist/internal/{Rectangle-Z2T_h74M.js.map → Rectangle-HB8jF_bX.js.map} +1 -1
- package/dist/internal/{Work-PKaUMpXd.js → Work-6uuml2Ft.js} +4 -4
- package/dist/internal/{Work-PKaUMpXd.js.map → Work-6uuml2Ft.js.map} +1 -1
- package/dist/internal/{area-maker-BTGqxG6D.js → area-maker-D2ZIYsTG.js} +2 -2
- package/dist/internal/{area-maker-BTGqxG6D.js.map → area-maker-D2ZIYsTG.js.map} +1 -1
- package/dist/internal/{controller-B0hqJtoB.js → controller-DjCi781H.js} +4 -4
- package/dist/internal/{controller-B0hqJtoB.js.map → controller-DjCi781H.js.map} +1 -1
- package/dist/internal/{cruise-BkSbiLjd.js → cruise-DWxq9GTd.js} +2 -2
- package/dist/internal/{cruise-BkSbiLjd.js.map → cruise-DWxq9GTd.js.map} +1 -1
- package/dist/internal/{current-pano-image-DqyUFIP6.js → current-pano-image-DPLm0-o2.js} +2 -2
- package/dist/internal/{current-pano-image-DqyUFIP6.js.map → current-pano-image-DPLm0-o2.js.map} +1 -1
- package/dist/internal/{edgeSnap-8fdFCcXB.js → edgeSnap-CH0HidZm.js} +206 -83
- package/dist/internal/edgeSnap-CH0HidZm.js.map +1 -0
- package/dist/internal/{floorplan-Dkp7omYn.js → floorplan-B6Y-8xjB.js} +2 -2
- package/dist/internal/{floorplan-Dkp7omYn.js.map → floorplan-B6Y-8xjB.js.map} +1 -1
- package/dist/internal/{measure-KVSCjRnS.js → measure-DIstq55p.js} +2 -2
- package/dist/internal/{measure-KVSCjRnS.js.map → measure-DIstq55p.js.map} +1 -1
- package/dist/internal/measure-v2-Byp1mE5q.js +215 -0
- package/dist/internal/measure-v2-Byp1mE5q.js.map +1 -0
- package/dist/internal/{model-maker-L5eqUgkU.js → model-maker-Cea52AmN.js} +2 -2
- package/dist/internal/{model-maker-L5eqUgkU.js.map → model-maker-Cea52AmN.js.map} +1 -1
- package/dist/internal/{model-view-BWUU0-uq.js → model-view-DSRXOhPg.js} +12 -2
- package/dist/internal/model-view-DSRXOhPg.js.map +1 -0
- package/dist/internal/object3d-helper-JrdReT4Y.js +7 -0
- package/dist/internal/{object3d-helper-CUhRRdCQ.js.map → object3d-helper-JrdReT4Y.js.map} +1 -1
- package/dist/internal/{pano-compass-dmcsnFDQ.js → pano-compass-DENjS-F-.js} +2 -2
- package/dist/internal/{pano-compass-dmcsnFDQ.js.map → pano-compass-DENjS-F-.js.map} +1 -1
- package/dist/internal/{pano-door-label-C0sd66vf.js → pano-door-label-DFcBreFx.js} +2 -2
- package/dist/internal/{pano-door-label-C0sd66vf.js.map → pano-door-label-DFcBreFx.js.map} +1 -1
- package/dist/internal/{pano-measure-NbB7-uVE.js → pano-measure-bIqtdQ8N.js} +2 -2
- package/dist/internal/{pano-measure-NbB7-uVE.js.map → pano-measure-bIqtdQ8N.js.map} +1 -1
- package/dist/internal/{pano-measure-v2-CRPvPs0e.js → pano-measure-v2-BRr9Jses.js} +4 -4
- package/dist/internal/{pano-measure-v2-CRPvPs0e.js.map → pano-measure-v2-BRr9Jses.js.map} +1 -1
- package/dist/internal/{pano-tag-j8ZPJDDK.js → pano-tag-BI_eOX_D.js} +2 -2
- package/dist/internal/{pano-tag-j8ZPJDDK.js.map → pano-tag-BI_eOX_D.js.map} +1 -1
- package/dist/internal/{pano-video-Dcspq4j1.js → pano-video-D0dQTeX6.js} +2 -2
- package/dist/internal/{pano-video-Dcspq4j1.js.map → pano-video-D0dQTeX6.js.map} +1 -1
- package/dist/internal/{pipeline-CD2YkN5U.js → pipeline-CyleoezT.js} +2 -2
- package/dist/internal/{pipeline-CD2YkN5U.js.map → pipeline-CyleoezT.js.map} +1 -1
- package/dist/internal/{sculpt-CbEBEh9F.js → sculpt-BGx4Dudb.js} +3 -3
- package/dist/internal/{sculpt-CbEBEh9F.js.map → sculpt-BGx4Dudb.js.map} +1 -1
- package/dist/plugins/area-maker.js +1 -1
- package/dist/plugins/cruise.js +2 -2
- package/dist/plugins/current-pano-image.js +1 -1
- package/dist/plugins/guide-line.js +1 -1
- package/dist/plugins/measure-v2.js +2 -2
- package/dist/plugins/measure.js +2 -2
- package/dist/plugins/model-maker.js +1 -1
- package/dist/plugins/model-view.js +1 -1
- package/dist/plugins/object3d-helper.js +2 -2
- package/dist/plugins/pano-compass.js +1 -1
- package/dist/plugins/pano-door-label.js +1 -1
- package/dist/plugins/pano-measure-v2.js +1 -1
- package/dist/plugins/pano-measure.js +1 -1
- package/dist/plugins/pano-tag.js +2 -2
- package/dist/plugins/pano-video.js +1 -1
- package/dist/plugins/pipeline.js +1 -1
- package/dist/plugins/sculpt.js +2 -2
- package/dist/types/MeasurePlugin/Controller.d.ts +7 -0
- package/dist/types/MeasurePlugin/utils/MeasureMesh.d.ts +5 -0
- package/dist/types/MeasurePluginV2/Controller.d.ts +9 -0
- package/dist/types/MeasurePluginV2/Magnifier.d.ts +33 -0
- package/dist/types/MeasurePluginV2/PointOverlay.d.ts +5 -0
- package/dist/types/MeasurePluginV2/closeupView.d.ts +69 -0
- package/dist/types/MeasurePluginV2/normalMeasure.d.ts +116 -0
- package/dist/types/shared-utils/three/Magnifier.d.ts +55 -0
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/internal/BasePluginWithData-CIQpqYGe.js +0 -7
- package/dist/internal/Controller-5BvatEWD.js.map +0 -1
- package/dist/internal/PointHelper-grrf8vu1.js +0 -953
- package/dist/internal/PointHelper-grrf8vu1.js.map +0 -1
- package/dist/internal/edgeSnap-8fdFCcXB.js.map +0 -1
- package/dist/internal/measure-v2-DqjBlSeF.js +0 -83
- package/dist/internal/measure-v2-DqjBlSeF.js.map +0 -1
- package/dist/internal/model-view-BWUU0-uq.js.map +0 -1
- 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-
|
|
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
|
-
|
|
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
|
-
},
|
|
67
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
"-":
|
|
150
|
-
"=":
|
|
151
|
-
";":
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
183
|
+
}, D = {
|
|
181
184
|
16: !1,
|
|
182
185
|
18: !1,
|
|
183
186
|
17: !1,
|
|
184
187
|
91: !1
|
|
185
|
-
},
|
|
186
|
-
for (let e = 1; e < 20; e++)
|
|
187
|
-
var
|
|
188
|
-
|
|
189
|
-
},
|
|
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(
|
|
192
|
-
|
|
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) =>
|
|
200
|
+
keys: t.split("+").map((e) => P(e))
|
|
198
201
|
});
|
|
199
202
|
});
|
|
200
203
|
}), e;
|
|
201
|
-
},
|
|
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
|
-
},
|
|
216
|
+
}, U = (e) => (typeof e == "string" && (e = P(e)), k.indexOf(e) !== -1), W = (e, t) => {
|
|
214
217
|
let n, r;
|
|
215
|
-
e ||=
|
|
216
|
-
for (let t in
|
|
217
|
-
|
|
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
|
|
220
|
-
let t =
|
|
221
|
-
e.key && e.key.toLowerCase() === "capslock" && (t =
|
|
222
|
-
let n =
|
|
223
|
-
if (n >= 0 &&
|
|
224
|
-
|
|
225
|
-
for (let e in
|
|
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
|
|
229
|
-
if (e === void 0) Object.keys(
|
|
230
|
-
Array.isArray(
|
|
231
|
-
}),
|
|
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 &&
|
|
236
|
+
e.key && q(e);
|
|
234
237
|
});
|
|
235
|
-
else if (typeof e == "object") e.key &&
|
|
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 = ""),
|
|
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
|
-
},
|
|
246
|
-
|
|
247
|
-
let i = e.split(r), a = i.length, o = i[a - 1], s = o === "*" ? "*" :
|
|
248
|
-
if (!
|
|
249
|
-
t ||=
|
|
250
|
-
let c = a > 1 ?
|
|
251
|
-
|
|
252
|
-
let r = (!n || e.method === n) && e.scope === t &&
|
|
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) =>
|
|
257
|
+
}), l.forEach((e) => Q(e));
|
|
255
258
|
});
|
|
256
259
|
};
|
|
257
|
-
function
|
|
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
|
|
263
|
-
(t.mods.length === 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
|
|
267
|
-
let n =
|
|
268
|
-
if (e.key && e.key.toLowerCase() === "capslock" || !(
|
|
269
|
-
if ((r === 93 || r === 224) && (r = 91),
|
|
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 =
|
|
276
|
-
e[t] &&
|
|
277
|
-
}), r in
|
|
278
|
-
|
|
279
|
-
for (let t in
|
|
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
|
|
283
|
-
e.getModifierState && (!e.altKey || e.ctrlKey) && e.getModifierState("AltGraph") && (
|
|
284
|
-
let i =
|
|
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) &&
|
|
286
|
-
if (!(r in
|
|
287
|
-
let a =
|
|
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(
|
|
291
|
-
c.sort().join("") ===
|
|
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
|
|
295
|
-
|
|
296
|
-
let i =
|
|
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 &&
|
|
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 =
|
|
306
|
+
a = [], e.length > 1 && (a = b(T, e));
|
|
304
307
|
let t = e[e.length - 1];
|
|
305
|
-
t = t === "*" ? "*" :
|
|
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 (!
|
|
319
|
-
let e = (e = window.event) =>
|
|
320
|
-
|
|
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
|
-
|
|
325
|
+
N.set(s, {
|
|
323
326
|
keydownListener: e,
|
|
324
327
|
keyupListenr: t,
|
|
325
328
|
capture: f
|
|
326
|
-
}),
|
|
329
|
+
}), v(s, "keydown", e, f), v(s, "keyup", t, f);
|
|
327
330
|
}
|
|
328
|
-
if (!
|
|
331
|
+
if (!A) {
|
|
329
332
|
let e = () => {
|
|
330
|
-
|
|
333
|
+
k = [];
|
|
331
334
|
};
|
|
332
|
-
|
|
335
|
+
A = {
|
|
333
336
|
listener: e,
|
|
334
337
|
capture: f
|
|
335
|
-
},
|
|
338
|
+
}, v(window, "focus", e, f);
|
|
336
339
|
}
|
|
337
|
-
if (!
|
|
340
|
+
if (!j && typeof document < "u") {
|
|
338
341
|
let t = () => {
|
|
339
|
-
|
|
340
|
-
for (let e in
|
|
341
|
-
for (let t in
|
|
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),
|
|
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
|
|
351
|
-
Object.keys(
|
|
352
|
-
|
|
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
|
|
358
|
-
let t = Object.values(
|
|
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 } =
|
|
361
|
-
t && n && (
|
|
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 ||
|
|
364
|
-
if (Array.from(
|
|
365
|
-
let { keydownListener: t, keyupListenr: n, capture: r } =
|
|
366
|
-
t && n && (
|
|
367
|
-
}),
|
|
368
|
-
let { listener: e, capture: t } =
|
|
369
|
-
|
|
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
|
-
|
|
374
|
+
j && typeof document < "u" && (document.removeEventListener("fullscreenchange", j.fullscreen), document.removeEventListener("webkitfullscreenchange", j.webkit), j = null);
|
|
372
375
|
}
|
|
373
376
|
}
|
|
374
|
-
var
|
|
375
|
-
getPressedKeyString:
|
|
376
|
-
setScope:
|
|
377
|
-
getScope:
|
|
378
|
-
deleteScope:
|
|
379
|
-
getPressedKeyCodes:
|
|
380
|
-
getAllKeyCodes:
|
|
381
|
-
isPressed:
|
|
382
|
-
filter:
|
|
383
|
-
trigger:
|
|
384
|
-
unbind:
|
|
385
|
-
keyMap:
|
|
386
|
-
modifier:
|
|
387
|
-
modifierMap:
|
|
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
|
|
392
|
+
for (let e in $) {
|
|
390
393
|
let t = e;
|
|
391
|
-
Object.prototype.hasOwnProperty.call(
|
|
394
|
+
Object.prototype.hasOwnProperty.call($, t) && (X[t] = $[t]);
|
|
392
395
|
}
|
|
393
396
|
if (typeof window < "u") {
|
|
394
397
|
let e = window.hotkeys;
|
|
395
|
-
|
|
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
|
|
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),
|
|
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(),
|
|
483
|
-
let e = new
|
|
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,
|
|
513
|
-
e.key === "Shift" && (
|
|
521
|
+
}), c = null, l = !1, h = !1, _ = (e) => {
|
|
522
|
+
e.key === "Shift" && (h = !0);
|
|
514
523
|
}, v = (e) => {
|
|
515
|
-
e.key === "Shift" && (
|
|
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
|
-
|
|
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
|
-
|
|
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(),
|
|
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",
|
|
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),
|
|
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),
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
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 && (
|
|
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),
|
|
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,
|
|
974
|
+
export { m as n, ee as t };
|
|
958
975
|
|
|
959
|
-
//# sourceMappingURL=Controller-
|
|
976
|
+
//# sourceMappingURL=Controller-DSKeCecj.js.map
|