@realsee/dnalogel 3.73.3 → 3.73.5
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 +12 -3
- package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +3684 -3569
- package/dist/index.umd.js +73 -73
- package/dist/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +232 -232
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +181 -121
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +167 -136
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +151 -150
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +41 -33
- package/libs/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/shared-utils/five/getFloorMesh.js +11 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +151 -139
- package/package.json +2 -2
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
const j = typeof navigator != "undefined" ? navigator.userAgent.toLowerCase().indexOf("firefox") > 0 : !1;
|
|
2
|
-
function A(e, t,
|
|
3
|
-
e.addEventListener ? e.addEventListener(t,
|
|
2
|
+
function A(e, t, s, n) {
|
|
3
|
+
e.addEventListener ? e.addEventListener(t, s, n) : e.attachEvent && e.attachEvent("on".concat(t), s);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
e.removeEventListener ? e.removeEventListener(t,
|
|
5
|
+
function E(e, t, s, n) {
|
|
6
|
+
e.removeEventListener ? e.removeEventListener(t, s, n) : e.detachEvent && e.detachEvent("on".concat(t), s);
|
|
7
7
|
}
|
|
8
8
|
function B(e, t) {
|
|
9
|
-
const
|
|
10
|
-
for (let n = 0; n <
|
|
11
|
-
|
|
12
|
-
return
|
|
9
|
+
const s = t.slice(0, t.length - 1);
|
|
10
|
+
for (let n = 0; n < s.length; n++)
|
|
11
|
+
s[n] = e[s[n].toLowerCase()];
|
|
12
|
+
return s;
|
|
13
13
|
}
|
|
14
14
|
function D(e) {
|
|
15
15
|
typeof e != "string" && (e = ""), e = e.replace(/\s/g, "");
|
|
16
16
|
const t = e.split(",");
|
|
17
|
-
let
|
|
18
|
-
for (;
|
|
19
|
-
t[
|
|
17
|
+
let s = t.lastIndexOf("");
|
|
18
|
+
for (; s >= 0; )
|
|
19
|
+
t[s - 1] += ",", t.splice(s, 1), s = t.lastIndexOf("");
|
|
20
20
|
return t;
|
|
21
21
|
}
|
|
22
22
|
function H(e, t) {
|
|
23
|
-
const
|
|
24
|
-
let
|
|
25
|
-
for (let r = 0; r <
|
|
26
|
-
n.indexOf(
|
|
27
|
-
return
|
|
23
|
+
const s = e.length >= t.length ? e : t, n = e.length >= t.length ? t : e;
|
|
24
|
+
let i = !0;
|
|
25
|
+
for (let r = 0; r < s.length; r++)
|
|
26
|
+
n.indexOf(s[r]) === -1 && (i = !1);
|
|
27
|
+
return i;
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const x = {
|
|
30
30
|
backspace: 8,
|
|
31
31
|
"⌫": 8,
|
|
32
32
|
tab: 9,
|
|
@@ -41,6 +41,11 @@ const b = {
|
|
|
41
41
|
up: 38,
|
|
42
42
|
right: 39,
|
|
43
43
|
down: 40,
|
|
44
|
+
/// https://w3c.github.io/uievents/#events-keyboard-key-location
|
|
45
|
+
arrowup: 38,
|
|
46
|
+
arrowdown: 40,
|
|
47
|
+
arrowleft: 37,
|
|
48
|
+
arrowright: 39,
|
|
44
49
|
del: 46,
|
|
45
50
|
delete: 46,
|
|
46
51
|
ins: 45,
|
|
@@ -75,10 +80,12 @@ const b = {
|
|
|
75
80
|
"=": j ? 61 : 187,
|
|
76
81
|
";": j ? 59 : 186,
|
|
77
82
|
"'": 222,
|
|
83
|
+
"{": 219,
|
|
84
|
+
"}": 221,
|
|
78
85
|
"[": 219,
|
|
79
86
|
"]": 221,
|
|
80
87
|
"\\": 220
|
|
81
|
-
},
|
|
88
|
+
}, y = {
|
|
82
89
|
// shiftKey
|
|
83
90
|
"⇧": 16,
|
|
84
91
|
shift: 16,
|
|
@@ -93,8 +100,9 @@ const b = {
|
|
|
93
100
|
// metaKey
|
|
94
101
|
"⌘": 91,
|
|
95
102
|
cmd: 91,
|
|
103
|
+
meta: 91,
|
|
96
104
|
command: 91
|
|
97
|
-
},
|
|
105
|
+
}, b = {
|
|
98
106
|
16: "shiftKey",
|
|
99
107
|
18: "altKey",
|
|
100
108
|
17: "ctrlKey",
|
|
@@ -103,20 +111,20 @@ const b = {
|
|
|
103
111
|
ctrlKey: 17,
|
|
104
112
|
altKey: 18,
|
|
105
113
|
metaKey: 91
|
|
106
|
-
},
|
|
114
|
+
}, a = {
|
|
107
115
|
16: !1,
|
|
108
116
|
18: !1,
|
|
109
117
|
17: !1,
|
|
110
118
|
91: !1
|
|
111
119
|
}, c = {};
|
|
112
120
|
for (let e = 1; e < 20; e++)
|
|
113
|
-
|
|
114
|
-
let f = [],
|
|
115
|
-
const w = /* @__PURE__ */ new Map(),
|
|
121
|
+
x["f".concat(e)] = 111 + e;
|
|
122
|
+
let f = [], L = null, z = "all";
|
|
123
|
+
const w = /* @__PURE__ */ new Map(), O = (e) => x[e.toLowerCase()] || y[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), I = (e) => Object.keys(x).find((t) => x[t] === e), R = (e) => Object.keys(y).find((t) => y[t] === e);
|
|
116
124
|
function F(e) {
|
|
117
125
|
z = e || "all";
|
|
118
126
|
}
|
|
119
|
-
function
|
|
127
|
+
function _() {
|
|
120
128
|
return z || "all";
|
|
121
129
|
}
|
|
122
130
|
function V() {
|
|
@@ -128,168 +136,172 @@ function X() {
|
|
|
128
136
|
function q() {
|
|
129
137
|
const e = [];
|
|
130
138
|
return Object.keys(c).forEach((t) => {
|
|
131
|
-
c[t].forEach((
|
|
139
|
+
c[t].forEach((s) => {
|
|
132
140
|
let {
|
|
133
141
|
key: n,
|
|
134
|
-
scope:
|
|
142
|
+
scope: i,
|
|
135
143
|
mods: r,
|
|
136
144
|
shortcut: l
|
|
137
|
-
} =
|
|
145
|
+
} = s;
|
|
138
146
|
e.push({
|
|
139
|
-
scope:
|
|
147
|
+
scope: i,
|
|
140
148
|
shortcut: l,
|
|
141
149
|
mods: r,
|
|
142
|
-
keys: n.split("+").map((o) =>
|
|
150
|
+
keys: n.split("+").map((o) => O(o))
|
|
143
151
|
});
|
|
144
152
|
});
|
|
145
153
|
}), e;
|
|
146
154
|
}
|
|
147
|
-
function
|
|
155
|
+
function J(e) {
|
|
148
156
|
const t = e.target || e.srcElement, {
|
|
149
|
-
tagName:
|
|
157
|
+
tagName: s
|
|
150
158
|
} = t;
|
|
151
159
|
let n = !0;
|
|
152
|
-
const
|
|
153
|
-
return (t.isContentEditable || (
|
|
160
|
+
const i = s === "INPUT" && !["checkbox", "radio", "range", "button", "file", "reset", "submit", "color"].includes(t.type);
|
|
161
|
+
return (t.isContentEditable || (i || s === "TEXTAREA" || s === "SELECT") && !t.readOnly) && (n = !1), n;
|
|
154
162
|
}
|
|
155
|
-
function
|
|
156
|
-
return typeof e == "string" && (e =
|
|
163
|
+
function Q(e) {
|
|
164
|
+
return typeof e == "string" && (e = O(e)), f.indexOf(e) !== -1;
|
|
157
165
|
}
|
|
158
|
-
function
|
|
159
|
-
let
|
|
160
|
-
e || (e =
|
|
161
|
-
for (const
|
|
162
|
-
if (Object.prototype.hasOwnProperty.call(c,
|
|
163
|
-
for (
|
|
164
|
-
|
|
166
|
+
function W(e, t) {
|
|
167
|
+
let s, n;
|
|
168
|
+
e || (e = _());
|
|
169
|
+
for (const i in c)
|
|
170
|
+
if (Object.prototype.hasOwnProperty.call(c, i))
|
|
171
|
+
for (s = c[i], n = 0; n < s.length; )
|
|
172
|
+
s[n].scope === e ? s.splice(n, 1).forEach((l) => {
|
|
165
173
|
let {
|
|
166
174
|
element: o
|
|
167
175
|
} = l;
|
|
168
176
|
return S(o);
|
|
169
177
|
}) : n++;
|
|
170
|
-
|
|
178
|
+
_() === e && F(t || "all");
|
|
171
179
|
}
|
|
172
|
-
function
|
|
180
|
+
function Y(e) {
|
|
173
181
|
let t = e.keyCode || e.which || e.charCode;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
182
|
+
e.key && e.key.toLowerCase() === "capslock" && (t = O(e.key));
|
|
183
|
+
const s = f.indexOf(t);
|
|
184
|
+
if (s >= 0 && f.splice(s, 1), e.key && e.key.toLowerCase() === "meta" && f.splice(0, f.length), (t === 93 || t === 224) && (t = 91), t in a) {
|
|
185
|
+
a[t] = !1;
|
|
186
|
+
for (const n in y)
|
|
187
|
+
y[n] === t && (k[n] = !1);
|
|
179
188
|
}
|
|
180
189
|
}
|
|
181
190
|
function G(e) {
|
|
182
191
|
if (typeof e == "undefined")
|
|
183
|
-
Object.keys(c).forEach((
|
|
184
|
-
Array.isArray(c[
|
|
192
|
+
Object.keys(c).forEach((i) => {
|
|
193
|
+
Array.isArray(c[i]) && c[i].forEach((r) => C(r)), delete c[i];
|
|
185
194
|
}), S(null);
|
|
186
195
|
else if (Array.isArray(e))
|
|
187
|
-
e.forEach((
|
|
188
|
-
|
|
196
|
+
e.forEach((i) => {
|
|
197
|
+
i.key && C(i);
|
|
189
198
|
});
|
|
190
199
|
else if (typeof e == "object")
|
|
191
|
-
e.key &&
|
|
200
|
+
e.key && C(e);
|
|
192
201
|
else if (typeof e == "string") {
|
|
193
|
-
for (var t = arguments.length,
|
|
194
|
-
|
|
195
|
-
let [
|
|
196
|
-
typeof
|
|
202
|
+
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
203
|
+
s[n - 1] = arguments[n];
|
|
204
|
+
let [i, r] = s;
|
|
205
|
+
typeof i == "function" && (r = i, i = ""), C({
|
|
197
206
|
key: e,
|
|
198
|
-
scope:
|
|
207
|
+
scope: i,
|
|
199
208
|
method: r,
|
|
200
209
|
splitKey: "+"
|
|
201
210
|
});
|
|
202
211
|
}
|
|
203
212
|
}
|
|
204
|
-
const
|
|
213
|
+
const C = (e) => {
|
|
205
214
|
let {
|
|
206
215
|
key: t,
|
|
207
|
-
scope:
|
|
216
|
+
scope: s,
|
|
208
217
|
method: n,
|
|
209
|
-
splitKey:
|
|
218
|
+
splitKey: i = "+"
|
|
210
219
|
} = e;
|
|
211
220
|
D(t).forEach((l) => {
|
|
212
|
-
const o = l.split(
|
|
213
|
-
if (!c[
|
|
221
|
+
const o = l.split(i), u = o.length, h = o[u - 1], g = h === "*" ? "*" : O(h);
|
|
222
|
+
if (!c[g])
|
|
214
223
|
return;
|
|
215
|
-
|
|
216
|
-
const p =
|
|
217
|
-
c[
|
|
218
|
-
const
|
|
219
|
-
return
|
|
224
|
+
s || (s = _());
|
|
225
|
+
const p = u > 1 ? B(y, o) : [], m = [];
|
|
226
|
+
c[g] = c[g].filter((d) => {
|
|
227
|
+
const K = (n ? d.method === n : !0) && d.scope === s && H(d.mods, p);
|
|
228
|
+
return K && m.push(d.element), !K;
|
|
220
229
|
}), m.forEach((d) => S(d));
|
|
221
230
|
});
|
|
222
231
|
};
|
|
223
|
-
function T(e, t,
|
|
232
|
+
function T(e, t, s, n) {
|
|
224
233
|
if (t.element !== n)
|
|
225
234
|
return;
|
|
226
|
-
let
|
|
227
|
-
if (t.scope ===
|
|
228
|
-
|
|
229
|
-
for (const r in
|
|
230
|
-
Object.prototype.hasOwnProperty.call(
|
|
231
|
-
(t.mods.length === 0 && !
|
|
235
|
+
let i;
|
|
236
|
+
if (t.scope === s || t.scope === "all") {
|
|
237
|
+
i = t.mods.length > 0;
|
|
238
|
+
for (const r in a)
|
|
239
|
+
Object.prototype.hasOwnProperty.call(a, r) && (!a[r] && t.mods.indexOf(+r) > -1 || a[r] && t.mods.indexOf(+r) === -1) && (i = !1);
|
|
240
|
+
(t.mods.length === 0 && !a[16] && !a[18] && !a[17] && !a[91] || i || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(f), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble && (e.cancelBubble = !0)));
|
|
232
241
|
}
|
|
233
242
|
}
|
|
234
243
|
function U(e, t) {
|
|
235
|
-
const
|
|
244
|
+
const s = c["*"];
|
|
236
245
|
let n = e.keyCode || e.which || e.charCode;
|
|
237
|
-
if (!
|
|
246
|
+
if (e.key && e.key.toLowerCase() === "capslock" || !k.filter.call(this, e))
|
|
238
247
|
return;
|
|
239
248
|
if ((n === 93 || n === 224) && (n = 91), f.indexOf(n) === -1 && n !== 229 && f.push(n), ["metaKey", "ctrlKey", "altKey", "shiftKey"].forEach((o) => {
|
|
240
|
-
const
|
|
241
|
-
e[o] && f.indexOf(
|
|
242
|
-
}), n in
|
|
243
|
-
|
|
244
|
-
for (const o in
|
|
245
|
-
|
|
246
|
-
|
|
249
|
+
const u = b[o];
|
|
250
|
+
e[o] && f.indexOf(u) === -1 ? f.push(u) : !e[o] && f.indexOf(u) > -1 ? f.splice(f.indexOf(u), 1) : o === "metaKey" && e[o] && (f = f.filter((h) => h in b || h === n));
|
|
251
|
+
}), n in a) {
|
|
252
|
+
a[n] = !0;
|
|
253
|
+
for (const o in y)
|
|
254
|
+
if (Object.prototype.hasOwnProperty.call(y, o)) {
|
|
255
|
+
const u = b[y[o]];
|
|
256
|
+
k[o] = e[u];
|
|
257
|
+
}
|
|
258
|
+
if (!s)
|
|
247
259
|
return;
|
|
248
260
|
}
|
|
249
|
-
for (const o in
|
|
250
|
-
Object.prototype.hasOwnProperty.call(
|
|
251
|
-
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (f.indexOf(17) === -1 && f.push(17), f.indexOf(18) === -1 && f.push(18),
|
|
252
|
-
const
|
|
253
|
-
if (
|
|
254
|
-
for (let o = 0; o <
|
|
255
|
-
|
|
261
|
+
for (const o in a)
|
|
262
|
+
Object.prototype.hasOwnProperty.call(a, o) && (a[o] = e[b[o]]);
|
|
263
|
+
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (f.indexOf(17) === -1 && f.push(17), f.indexOf(18) === -1 && f.push(18), a[17] = !0, a[18] = !0);
|
|
264
|
+
const i = _();
|
|
265
|
+
if (s)
|
|
266
|
+
for (let o = 0; o < s.length; o++)
|
|
267
|
+
s[o].scope === i && (e.type === "keydown" && s[o].keydown || e.type === "keyup" && s[o].keyup) && T(e, s[o], i, t);
|
|
256
268
|
if (!(n in c))
|
|
257
269
|
return;
|
|
258
270
|
const r = c[n], l = r.length;
|
|
259
271
|
for (let o = 0; o < l; o++)
|
|
260
272
|
if ((e.type === "keydown" && r[o].keydown || e.type === "keyup" && r[o].keyup) && r[o].key) {
|
|
261
|
-
const
|
|
262
|
-
splitKey:
|
|
263
|
-
} =
|
|
264
|
-
for (let m = 0; m <
|
|
265
|
-
p.push(
|
|
266
|
-
p.sort().join("") === f.sort().join("") && T(e,
|
|
273
|
+
const u = r[o], {
|
|
274
|
+
splitKey: h
|
|
275
|
+
} = u, g = u.key.split(h), p = [];
|
|
276
|
+
for (let m = 0; m < g.length; m++)
|
|
277
|
+
p.push(O(g[m]));
|
|
278
|
+
p.sort().join("") === f.sort().join("") && T(e, u, i, t);
|
|
267
279
|
}
|
|
268
280
|
}
|
|
269
|
-
function
|
|
281
|
+
function k(e, t, s) {
|
|
270
282
|
f = [];
|
|
271
283
|
const n = D(e);
|
|
272
|
-
let
|
|
273
|
-
for (
|
|
274
|
-
e = n[o].split(
|
|
275
|
-
keyup:
|
|
276
|
-
keydown:
|
|
284
|
+
let i = [], r = "all", l = document, o = 0, u = !1, h = !0, g = "+", p = !1, m = !1;
|
|
285
|
+
for (s === void 0 && typeof t == "function" && (s = t), Object.prototype.toString.call(t) === "[object Object]" && (t.scope && (r = t.scope), t.element && (l = t.element), t.keyup && (u = t.keyup), t.keydown !== void 0 && (h = t.keydown), t.capture !== void 0 && (p = t.capture), typeof t.splitKey == "string" && (g = t.splitKey), t.single === !0 && (m = !0)), typeof t == "string" && (r = t), m && G(e, r); o < n.length; o++)
|
|
286
|
+
e = n[o].split(g), i = [], e.length > 1 && (i = B(y, e)), e = e[e.length - 1], e = e === "*" ? "*" : O(e), e in c || (c[e] = []), c[e].push({
|
|
287
|
+
keyup: u,
|
|
288
|
+
keydown: h,
|
|
277
289
|
scope: r,
|
|
278
|
-
mods:
|
|
290
|
+
mods: i,
|
|
279
291
|
shortcut: n[o],
|
|
280
|
-
method:
|
|
292
|
+
method: s,
|
|
281
293
|
key: n[o],
|
|
282
|
-
splitKey:
|
|
294
|
+
splitKey: g,
|
|
283
295
|
element: l
|
|
284
296
|
});
|
|
285
297
|
if (typeof l != "undefined" && window) {
|
|
286
298
|
if (!w.has(l)) {
|
|
287
299
|
const d = function() {
|
|
288
|
-
let
|
|
289
|
-
return U(
|
|
300
|
+
let K = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.event;
|
|
301
|
+
return U(K, l);
|
|
290
302
|
}, M = function() {
|
|
291
|
-
let
|
|
292
|
-
U(
|
|
303
|
+
let K = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.event;
|
|
304
|
+
U(K, l), Y(K);
|
|
293
305
|
};
|
|
294
306
|
w.set(l, {
|
|
295
307
|
keydownListener: d,
|
|
@@ -297,22 +309,22 @@ function K(e, t, i) {
|
|
|
297
309
|
capture: p
|
|
298
310
|
}), A(l, "keydown", d, p), A(l, "keyup", M, p);
|
|
299
311
|
}
|
|
300
|
-
if (!
|
|
312
|
+
if (!L) {
|
|
301
313
|
const d = () => {
|
|
302
314
|
f = [];
|
|
303
315
|
};
|
|
304
|
-
|
|
316
|
+
L = {
|
|
305
317
|
listener: d,
|
|
306
318
|
capture: p
|
|
307
319
|
}, A(window, "focus", d, p);
|
|
308
320
|
}
|
|
309
321
|
}
|
|
310
322
|
}
|
|
311
|
-
function
|
|
323
|
+
function Z(e) {
|
|
312
324
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "all";
|
|
313
|
-
Object.keys(c).forEach((
|
|
314
|
-
c[
|
|
315
|
-
|
|
325
|
+
Object.keys(c).forEach((s) => {
|
|
326
|
+
c[s].filter((i) => i.scope === t && i.shortcut === e).forEach((i) => {
|
|
327
|
+
i && i.method && i.method();
|
|
316
328
|
});
|
|
317
329
|
});
|
|
318
330
|
}
|
|
@@ -320,53 +332,53 @@ function S(e) {
|
|
|
320
332
|
const t = Object.values(c).flat();
|
|
321
333
|
if (t.findIndex((n) => {
|
|
322
334
|
let {
|
|
323
|
-
element:
|
|
335
|
+
element: i
|
|
324
336
|
} = n;
|
|
325
|
-
return
|
|
337
|
+
return i === e;
|
|
326
338
|
}) < 0) {
|
|
327
339
|
const {
|
|
328
340
|
keydownListener: n,
|
|
329
|
-
keyupListenr:
|
|
341
|
+
keyupListenr: i,
|
|
330
342
|
capture: r
|
|
331
343
|
} = w.get(e) || {};
|
|
332
|
-
n &&
|
|
344
|
+
n && i && (E(e, "keyup", i, r), E(e, "keydown", n, r), w.delete(e));
|
|
333
345
|
}
|
|
334
|
-
if ((t.length <= 0 || w.size <= 0) && (Object.keys(w).forEach((
|
|
346
|
+
if ((t.length <= 0 || w.size <= 0) && (Object.keys(w).forEach((i) => {
|
|
335
347
|
const {
|
|
336
348
|
keydownListener: r,
|
|
337
349
|
keyupListenr: l,
|
|
338
350
|
capture: o
|
|
339
|
-
} = w.get(
|
|
340
|
-
r && l && (
|
|
341
|
-
}), w.clear(), Object.keys(c).forEach((
|
|
351
|
+
} = w.get(i) || {};
|
|
352
|
+
r && l && (E(i, "keyup", l, o), E(i, "keydown", r, o), w.delete(i));
|
|
353
|
+
}), w.clear(), Object.keys(c).forEach((i) => delete c[i]), L)) {
|
|
342
354
|
const {
|
|
343
|
-
listener:
|
|
355
|
+
listener: i,
|
|
344
356
|
capture: r
|
|
345
|
-
} =
|
|
346
|
-
|
|
357
|
+
} = L;
|
|
358
|
+
E(window, "focus", i, r), L = null;
|
|
347
359
|
}
|
|
348
360
|
}
|
|
349
361
|
const P = {
|
|
350
362
|
getPressedKeyString: X,
|
|
351
363
|
setScope: F,
|
|
352
|
-
getScope:
|
|
353
|
-
deleteScope:
|
|
364
|
+
getScope: _,
|
|
365
|
+
deleteScope: W,
|
|
354
366
|
getPressedKeyCodes: V,
|
|
355
367
|
getAllKeyCodes: q,
|
|
356
|
-
isPressed:
|
|
357
|
-
filter:
|
|
358
|
-
trigger:
|
|
368
|
+
isPressed: Q,
|
|
369
|
+
filter: J,
|
|
370
|
+
trigger: Z,
|
|
359
371
|
unbind: G,
|
|
360
|
-
keyMap:
|
|
361
|
-
modifier:
|
|
362
|
-
modifierMap:
|
|
372
|
+
keyMap: x,
|
|
373
|
+
modifier: y,
|
|
374
|
+
modifierMap: b
|
|
363
375
|
};
|
|
364
376
|
for (const e in P)
|
|
365
|
-
Object.prototype.hasOwnProperty.call(P, e) && (
|
|
377
|
+
Object.prototype.hasOwnProperty.call(P, e) && (k[e] = P[e]);
|
|
366
378
|
if (typeof window != "undefined") {
|
|
367
379
|
const e = window.hotkeys;
|
|
368
|
-
|
|
380
|
+
k.noConflict = (t) => (t && window.hotkeys === k && (window.hotkeys = e), k), window.hotkeys = k;
|
|
369
381
|
}
|
|
370
382
|
export {
|
|
371
|
-
|
|
383
|
+
k as hotkeys
|
|
372
384
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
|
-
"version": "3.73.
|
|
3
|
+
"version": "3.73.5",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./libs/index.js",
|
|
6
6
|
"types": "./libs/index.d.ts",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/core": "^7.22.9",
|
|
49
|
-
"@realsee/five": "6.6.
|
|
49
|
+
"@realsee/five": "6.6.17",
|
|
50
50
|
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
|
51
51
|
"@tsconfig/svelte": "^4.0.1",
|
|
52
52
|
"@tweenjs/tween.js": "^23.1.1",
|