@annotorious/openseadragon 3.8.1 → 3.8.2
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.
|
@@ -379,7 +379,7 @@ function Pf(r) {
|
|
|
379
379
|
function tc() {
|
|
380
380
|
return /* @__PURE__ */ Object.create(null);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Ne(r) {
|
|
383
383
|
r.forEach(Pf);
|
|
384
384
|
}
|
|
385
385
|
function Ut(r) {
|
|
@@ -472,7 +472,7 @@ function Of(r) {
|
|
|
472
472
|
function Ae() {
|
|
473
473
|
return Of(" ");
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Fe() {
|
|
476
476
|
return Of("");
|
|
477
477
|
}
|
|
478
478
|
function Ct(r, t, e, i) {
|
|
@@ -564,7 +564,7 @@ function Ff() {
|
|
|
564
564
|
}
|
|
565
565
|
function Kg(r) {
|
|
566
566
|
if (r.fragment !== null) {
|
|
567
|
-
r.update(),
|
|
567
|
+
r.update(), Ne(r.before_update);
|
|
568
568
|
const t = r.dirty;
|
|
569
569
|
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(vl);
|
|
570
570
|
}
|
|
@@ -584,7 +584,7 @@ function Ie() {
|
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
586
|
function Pe() {
|
|
587
|
-
bi.r ||
|
|
587
|
+
bi.r || Ne(bi.c), bi = bi.p;
|
|
588
588
|
}
|
|
589
589
|
function ct(r, t) {
|
|
590
590
|
r && r.i && (Ys.delete(r), r.i(t));
|
|
@@ -607,12 +607,12 @@ function Zt(r, t, e) {
|
|
|
607
607
|
const { fragment: i, after_update: n } = r.$$;
|
|
608
608
|
i && i.m(t, e), vl(() => {
|
|
609
609
|
const s = r.$$.on_mount.map(Pf).filter(Ut);
|
|
610
|
-
r.$$.on_destroy ? r.$$.on_destroy.push(...s) :
|
|
610
|
+
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Ne(s), r.$$.on_mount = [];
|
|
611
611
|
}), n.forEach(vl);
|
|
612
612
|
}
|
|
613
613
|
function Jt(r, t) {
|
|
614
614
|
const e = r.$$;
|
|
615
|
-
e.fragment !== null && (Zg(e.after_update),
|
|
615
|
+
e.fragment !== null && (Zg(e.after_update), Ne(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
616
616
|
}
|
|
617
617
|
function Jg(r, t) {
|
|
618
618
|
r.$$.dirty[0] === -1 && (ji.push(r), Df(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
@@ -646,7 +646,7 @@ function xe(r, t, e, i, n, s, o = null, a = [-1]) {
|
|
|
646
646
|
if (h.ctx = e ? e(r, t.props || {}, (u, d, ...f) => {
|
|
647
647
|
const p = f.length ? f[0] : d;
|
|
648
648
|
return h.ctx && n(h.ctx[u], h.ctx[u] = p) && (!h.skip_bound && h.bound[u] && h.bound[u](p), c && Jg(r, u)), d;
|
|
649
|
-
}) : [], h.update(), c = !0,
|
|
649
|
+
}) : [], h.update(), c = !0, Ne(h.before_update), h.fragment = i ? i(h.ctx) : !1, t.target) {
|
|
650
650
|
if (t.hydrate) {
|
|
651
651
|
const u = zg(t.target);
|
|
652
652
|
h.fragment && h.fragment.l(u), u.forEach(et);
|
|
@@ -911,7 +911,7 @@ const cy = {
|
|
|
911
911
|
}
|
|
912
912
|
};
|
|
913
913
|
bn(vt.RECTANGLE, cy);
|
|
914
|
-
const
|
|
914
|
+
const Ue = (r) => qs(r.target), qs = (r) => {
|
|
915
915
|
var t, e;
|
|
916
916
|
return (r == null ? void 0 : r.annotation) !== void 0 && ((e = (t = r == null ? void 0 : r.selector) == null ? void 0 : t.geometry) == null ? void 0 : e.bounds) !== void 0;
|
|
917
917
|
}, uy = (r) => (r == null ? void 0 : r.type) === "FragmentSelector" ? !0 : typeof r == "string" ? r.indexOf("#") < 0 ? !1 : /#xywh(?:=(?:pixel:|percent:)?)(.+?),(.+?),(.+?),(.+)$/i.test(r) : !1, dy = (r, t = !1) => {
|
|
@@ -2105,7 +2105,7 @@ const p0 = (r, t) => {
|
|
|
2105
2105
|
w: n - e + 2 * t,
|
|
2106
2106
|
h: s - i + 2 * t
|
|
2107
2107
|
};
|
|
2108
|
-
},
|
|
2108
|
+
}, De = typeof window > "u" || typeof navigator > "u" ? !1 : "ontouchstart" in window || navigator.maxTouchPoints > 0 || // @ts-ignore
|
|
2109
2109
|
navigator.msMaxTouchPoints > 0, g0 = (r) => ({}), oc = (r) => ({ grab: (
|
|
2110
2110
|
/*onGrab*/
|
|
2111
2111
|
r[0]
|
|
@@ -2170,7 +2170,7 @@ function y0(r) {
|
|
|
2170
2170
|
yt(o, a), e = !1;
|
|
2171
2171
|
},
|
|
2172
2172
|
d(a) {
|
|
2173
|
-
a && et(t), o && o.d(a), i = !1,
|
|
2173
|
+
a && et(t), o && o.d(a), i = !1, Ne(n);
|
|
2174
2174
|
}
|
|
2175
2175
|
};
|
|
2176
2176
|
}
|
|
@@ -2345,7 +2345,7 @@ function v0(r) {
|
|
|
2345
2345
|
c[8].class || ""}`.trim()) && b(t, "class", o);
|
|
2346
2346
|
},
|
|
2347
2347
|
d(c) {
|
|
2348
|
-
c && et(t), h && h.d(), a = !1,
|
|
2348
|
+
c && et(t), h && h.d(), a = !1, Ne(l);
|
|
2349
2349
|
}
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
@@ -2483,7 +2483,7 @@ function b0(r) {
|
|
|
2483
2483
|
c[2]) && b(o, "r", a);
|
|
2484
2484
|
},
|
|
2485
2485
|
d(c) {
|
|
2486
|
-
c && et(t), l = !1,
|
|
2486
|
+
c && et(t), l = !1, Ne(h);
|
|
2487
2487
|
}
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
@@ -2534,12 +2534,12 @@ function ac(r) {
|
|
|
2534
2534
|
function x0(r) {
|
|
2535
2535
|
let t;
|
|
2536
2536
|
function e(n, s) {
|
|
2537
|
-
return
|
|
2537
|
+
return De ? b0 : v0;
|
|
2538
2538
|
}
|
|
2539
2539
|
let i = e()(r);
|
|
2540
2540
|
return {
|
|
2541
2541
|
c() {
|
|
2542
|
-
i.c(), t =
|
|
2542
|
+
i.c(), t = Fe();
|
|
2543
2543
|
},
|
|
2544
2544
|
m(n, s) {
|
|
2545
2545
|
i.m(n, s), rt(n, t, s);
|
|
@@ -2730,7 +2730,7 @@ function E0(r) {
|
|
|
2730
2730
|
);
|
|
2731
2731
|
},
|
|
2732
2732
|
d(l) {
|
|
2733
|
-
l && et(t), o = !1,
|
|
2733
|
+
l && et(t), o = !1, Ne(a);
|
|
2734
2734
|
}
|
|
2735
2735
|
};
|
|
2736
2736
|
}
|
|
@@ -2787,12 +2787,12 @@ function T0(r) {
|
|
|
2787
2787
|
function A0(r) {
|
|
2788
2788
|
let t;
|
|
2789
2789
|
function e(n, s) {
|
|
2790
|
-
return
|
|
2790
|
+
return De ? T0 : E0;
|
|
2791
2791
|
}
|
|
2792
2792
|
let i = e()(r);
|
|
2793
2793
|
return {
|
|
2794
2794
|
c() {
|
|
2795
|
-
i.c(), t =
|
|
2795
|
+
i.c(), t = Fe();
|
|
2796
2796
|
},
|
|
2797
2797
|
m(n, s) {
|
|
2798
2798
|
i.m(n, s), rt(n, t, s);
|
|
@@ -3096,7 +3096,7 @@ function C0(r) {
|
|
|
3096
3096
|
t = Y("defs"), e = Y("mask"), i = Y("rect"), l = Y("polygon"), R && R.c(), C && C.c(), c = Ae(), u = Y("polygon"), f = Ae(), p = Y("polygon"), y = Ae();
|
|
3097
3097
|
for (let P = 0; P < M.length; P += 1)
|
|
3098
3098
|
M[P].c();
|
|
3099
|
-
_ = Ae(), U && U.c(), v =
|
|
3099
|
+
_ = Ae(), U && U.c(), v = Fe(), b(i, "x", n = /*mask*/
|
|
3100
3100
|
r[9].x), b(i, "y", s = /*mask*/
|
|
3101
3101
|
r[9].y), b(i, "width", o = /*mask*/
|
|
3102
3102
|
r[9].w), b(i, "height", a = /*mask*/
|
|
@@ -3210,7 +3210,7 @@ function C0(r) {
|
|
|
3210
3210
|
yt(U), m = !1;
|
|
3211
3211
|
},
|
|
3212
3212
|
d(P) {
|
|
3213
|
-
P && (et(t), et(c), et(u), et(f), et(p), et(y), et(_), et(v)), R && R.d(), C && C.d(), Ri(M, P), U && U.d(P), x = !1,
|
|
3213
|
+
P && (et(t), et(c), et(u), et(f), et(p), et(y), et(_), et(v)), R && R.d(), C && C.d(), Ri(M, P), U && U.d(P), x = !1, Ne(S);
|
|
3214
3214
|
}
|
|
3215
3215
|
};
|
|
3216
3216
|
}
|
|
@@ -3304,7 +3304,7 @@ function O0(r, t, e) {
|
|
|
3304
3304
|
}, S = (w) => {
|
|
3305
3305
|
e(7, f = !0), w.preventDefault(), w.stopPropagation(), p = performance.now();
|
|
3306
3306
|
}, R = (w) => (A) => {
|
|
3307
|
-
if (!p ||
|
|
3307
|
+
if (!p || De || performance.now() - p > P0) return;
|
|
3308
3308
|
const L = g.includes(w);
|
|
3309
3309
|
A.metaKey || A.ctrlKey || A.shiftKey ? L ? e(8, g = g.filter((O) => O !== w)) : e(8, g = [...g, w]) : L && g.length > 1 ? e(8, g = [w]) : L ? e(8, g = []) : e(8, g = [w]), m();
|
|
3310
3310
|
}, C = (w, A, L) => {
|
|
@@ -3345,7 +3345,7 @@ function O0(r, t, e) {
|
|
|
3345
3345
|
o("change", { ...a, geometry: { points: w, bounds: A } }), e(8, g = []);
|
|
3346
3346
|
};
|
|
3347
3347
|
Zr(() => {
|
|
3348
|
-
if (
|
|
3348
|
+
if (De) return;
|
|
3349
3349
|
const w = (A) => {
|
|
3350
3350
|
(A.key === "Delete" || A.key === "Backspace") && (A.preventDefault(), M());
|
|
3351
3351
|
};
|
|
@@ -3368,7 +3368,7 @@ function O0(r, t, e) {
|
|
|
3368
3368
|
}, r.$$.update = () => {
|
|
3369
3369
|
r.$$.dirty[0] & /*shape*/
|
|
3370
3370
|
1 && e(5, i = a.geometry), r.$$.dirty[0] & /*geom, viewportScale*/
|
|
3371
|
-
40 && e(10, n =
|
|
3371
|
+
40 && e(10, n = De ? [] : i.points.map((w, A) => {
|
|
3372
3372
|
const L = A === i.points.length - 1 ? i.points[0] : i.points[A + 1], O = (w[0] + L[0]) / 2, D = (w[1] + L[1]) / 2, $ = Math.sqrt(Math.pow(L[0] - O, 2) + Math.pow(L[1] - D, 2)) > M0 / c;
|
|
3373
3373
|
return { point: [O, D], visible: $ };
|
|
3374
3374
|
})), r.$$.dirty[0] & /*geom, viewportScale*/
|
|
@@ -3777,7 +3777,7 @@ function k0(r) {
|
|
|
3777
3777
|
yt(R.$$.fragment, z), yt(jt.$$.fragment, z), yt(ue.$$.fragment, z), yt(de.$$.fragment, z), yt(fe.$$.fragment, z), Z = !1;
|
|
3778
3778
|
},
|
|
3779
3779
|
d(z) {
|
|
3780
|
-
z && (et(t), et(c), et(u), et(C), et(I), et(T), et(w), et($), et(B), et(it), et(H), et(ft), et(ht), et(_r), et(ii), et(ni), et(si)), Jt(R), Jt(jt, z), Jt(ue, z), Jt(de, z), Jt(fe, z), oi = !1,
|
|
3780
|
+
z && (et(t), et(c), et(u), et(C), et(I), et(T), et(w), et($), et(B), et(it), et(H), et(ft), et(ht), et(_r), et(ii), et(ni), et(si)), Jt(R), Jt(jt, z), Jt(ue, z), Jt(de, z), Jt(fe, z), oi = !1, Ne(Cn);
|
|
3781
3781
|
}
|
|
3782
3782
|
};
|
|
3783
3783
|
}
|
|
@@ -4219,7 +4219,7 @@ function Cc(r) {
|
|
|
4219
4219
|
c() {
|
|
4220
4220
|
for (let o = 0; o < n.length; o += 1)
|
|
4221
4221
|
n[o].c();
|
|
4222
|
-
t =
|
|
4222
|
+
t = Fe();
|
|
4223
4223
|
},
|
|
4224
4224
|
m(o, a) {
|
|
4225
4225
|
for (let l = 0; l < n.length; l += 1)
|
|
@@ -4402,7 +4402,7 @@ function Ic(r) {
|
|
|
4402
4402
|
g = !1;
|
|
4403
4403
|
},
|
|
4404
4404
|
d(C) {
|
|
4405
|
-
C && et(t), v && v.d(), m && m.d(), Ri(S, C), y = !1,
|
|
4405
|
+
C && et(t), v && v.d(), m && m.d(), Ri(S, C), y = !1, Ne(_);
|
|
4406
4406
|
}
|
|
4407
4407
|
};
|
|
4408
4408
|
}
|
|
@@ -4482,7 +4482,7 @@ function X0(r) {
|
|
|
4482
4482
|
c() {
|
|
4483
4483
|
for (let l = 0; l < s.length; l += 1)
|
|
4484
4484
|
s[l].c();
|
|
4485
|
-
t = Ae(), a && a.c(), e =
|
|
4485
|
+
t = Ae(), a && a.c(), e = Fe();
|
|
4486
4486
|
},
|
|
4487
4487
|
m(l, h) {
|
|
4488
4488
|
for (let c = 0; c < s.length; c += 1)
|
|
@@ -4619,7 +4619,7 @@ function z0(r, t, e) {
|
|
|
4619
4619
|
}, S = (A) => {
|
|
4620
4620
|
e(7, f = !0), A.preventDefault(), A.stopPropagation(), p = performance.now();
|
|
4621
4621
|
}, R = (A, L, O) => (D) => {
|
|
4622
|
-
if (!p ||
|
|
4622
|
+
if (!p || De || performance.now() - p > W0) return;
|
|
4623
4623
|
const $ = (N) => N.polygon === A && N.ring === L && N.point === O, B = g.some($);
|
|
4624
4624
|
D.metaKey || D.ctrlKey || D.shiftKey ? B ? e(8, g = g.filter((N) => !$(N))) : e(8, g = [...g, { polygon: A, ring: L, point: O }]) : B && g.length > 1 ? e(8, g = [{ polygon: A, ring: L, point: O }]) : B ? e(8, g = []) : e(8, g = [{ polygon: A, ring: L, point: O }]), m();
|
|
4625
4625
|
}, C = (A, L, O) => {
|
|
@@ -4705,7 +4705,7 @@ function z0(r, t, e) {
|
|
|
4705
4705
|
}), e(8, g = []));
|
|
4706
4706
|
};
|
|
4707
4707
|
Zr(() => {
|
|
4708
|
-
if (
|
|
4708
|
+
if (De) return;
|
|
4709
4709
|
const A = (L) => {
|
|
4710
4710
|
(L.key === "Delete" || L.key === "Backspace") && (L.preventDefault(), M());
|
|
4711
4711
|
};
|
|
@@ -4728,7 +4728,7 @@ function z0(r, t, e) {
|
|
|
4728
4728
|
}, r.$$.update = () => {
|
|
4729
4729
|
r.$$.dirty[0] & /*shape*/
|
|
4730
4730
|
1 && e(5, i = a.geometry), r.$$.dirty[0] & /*geom, viewportScale*/
|
|
4731
|
-
40 && e(10, n =
|
|
4731
|
+
40 && e(10, n = De ? [] : V0(i, c)), r.$$.dirty[0] & /*geom, viewportScale*/
|
|
4732
4732
|
40 && e(9, s = No(i.bounds, es / c));
|
|
4733
4733
|
}, [
|
|
4734
4734
|
a,
|
|
@@ -5149,7 +5149,7 @@ function Mc(r) {
|
|
|
5149
5149
|
);
|
|
5150
5150
|
return {
|
|
5151
5151
|
c() {
|
|
5152
|
-
t = Y("defs"), e = Y("mask"), i = Y("rect"), l = Y("polygon"), c = Y("polygon"), d = Y("polygon"), g && g.c(), p =
|
|
5152
|
+
t = Y("defs"), e = Y("mask"), i = Y("rect"), l = Y("polygon"), c = Y("polygon"), d = Y("polygon"), g && g.c(), p = Fe(), b(i, "x", n = /*mask*/
|
|
5153
5153
|
r[3].x), b(i, "y", s = /*mask*/
|
|
5154
5154
|
r[3].y), b(i, "width", o = /*mask*/
|
|
5155
5155
|
r[3].w), b(i, "height", a = /*mask*/
|
|
@@ -5942,7 +5942,7 @@ const I_ = (r) => ({
|
|
|
5942
5942
|
let i;
|
|
5943
5943
|
return { onPointerDown: () => i = performance.now(), onPointerUp: (n) => {
|
|
5944
5944
|
if (performance.now() - i < P_) {
|
|
5945
|
-
const { x: s, y: o } = Kf(n, r), a =
|
|
5945
|
+
const { x: s, y: o } = Kf(n, r), a = De ? 10 : 2, l = t.getAt(s, o, void 0, a);
|
|
5946
5946
|
l ? e("click", { originalEvent: n, annotation: l }) : e("click", { originalEvent: n });
|
|
5947
5947
|
}
|
|
5948
5948
|
} };
|
|
@@ -5972,7 +5972,7 @@ function Fc(r) {
|
|
|
5972
5972
|
), e, i, n = kc(r);
|
|
5973
5973
|
return {
|
|
5974
5974
|
c() {
|
|
5975
|
-
n.c(), e =
|
|
5975
|
+
n.c(), e = Fe();
|
|
5976
5976
|
},
|
|
5977
5977
|
m(s, o) {
|
|
5978
5978
|
n.m(s, o), rt(s, e, o), i = !0;
|
|
@@ -6299,7 +6299,7 @@ function kc(r) {
|
|
|
6299
6299
|
}
|
|
6300
6300
|
return ~(t = a(r)) && (e = o[t] = s[t](r)), {
|
|
6301
6301
|
c() {
|
|
6302
|
-
e && e.c(), i =
|
|
6302
|
+
e && e.c(), i = Fe();
|
|
6303
6303
|
},
|
|
6304
6304
|
m(l, h) {
|
|
6305
6305
|
~t && o[t].m(l, h), rt(l, i, h), n = !0;
|
|
@@ -6322,7 +6322,7 @@ function kc(r) {
|
|
|
6322
6322
|
};
|
|
6323
6323
|
}
|
|
6324
6324
|
function Uc(r) {
|
|
6325
|
-
let t =
|
|
6325
|
+
let t = Ue(
|
|
6326
6326
|
/*annotation*/
|
|
6327
6327
|
r[42]
|
|
6328
6328
|
) && !/*isEditable*/
|
|
@@ -6332,14 +6332,14 @@ function Uc(r) {
|
|
|
6332
6332
|
), e, i, n = t && Fc(pa(r));
|
|
6333
6333
|
return {
|
|
6334
6334
|
c() {
|
|
6335
|
-
n && n.c(), e =
|
|
6335
|
+
n && n.c(), e = Fe();
|
|
6336
6336
|
},
|
|
6337
6337
|
m(s, o) {
|
|
6338
6338
|
n && n.m(s, o), rt(s, e, o), i = !0;
|
|
6339
6339
|
},
|
|
6340
6340
|
p(s, o) {
|
|
6341
6341
|
o[0] & /*$store, isEditable*/
|
|
6342
|
-
132096 && (t =
|
|
6342
|
+
132096 && (t = Ue(
|
|
6343
6343
|
/*annotation*/
|
|
6344
6344
|
s[42]
|
|
6345
6345
|
) && !/*isEditable*/
|
|
@@ -6377,7 +6377,7 @@ function Gc(r) {
|
|
|
6377
6377
|
}
|
|
6378
6378
|
return ~(t = a(r)) && (e = o[t] = s[t](r)), {
|
|
6379
6379
|
c() {
|
|
6380
|
-
e && e.c(), i =
|
|
6380
|
+
e && e.c(), i = Fe();
|
|
6381
6381
|
},
|
|
6382
6382
|
m(l, h) {
|
|
6383
6383
|
~t && o[t].m(l, h), rt(l, i, h), n = !0;
|
|
@@ -6405,7 +6405,7 @@ function F_(r) {
|
|
|
6405
6405
|
r[7]}`, e, i, n = $c(r);
|
|
6406
6406
|
return {
|
|
6407
6407
|
c() {
|
|
6408
|
-
n.c(), e =
|
|
6408
|
+
n.c(), e = Fe();
|
|
6409
6409
|
},
|
|
6410
6410
|
m(s, o) {
|
|
6411
6411
|
n.m(s, o), rt(s, e, o), i = !0;
|
|
@@ -6441,7 +6441,7 @@ function k_(r) {
|
|
|
6441
6441
|
c() {
|
|
6442
6442
|
for (let o = 0; o < n.length; o += 1)
|
|
6443
6443
|
n[o].c();
|
|
6444
|
-
t =
|
|
6444
|
+
t = Fe();
|
|
6445
6445
|
},
|
|
6446
6446
|
m(o, a) {
|
|
6447
6447
|
for (let l = 0; l < n.length; l += 1)
|
|
@@ -6626,7 +6626,7 @@ function Vc(r) {
|
|
|
6626
6626
|
), e, i, n = Hc(r);
|
|
6627
6627
|
return {
|
|
6628
6628
|
c() {
|
|
6629
|
-
n.c(), e =
|
|
6629
|
+
n.c(), e = Fe();
|
|
6630
6630
|
},
|
|
6631
6631
|
m(s, o) {
|
|
6632
6632
|
n.m(s, o), rt(s, e, o), i = !0;
|
|
@@ -6770,7 +6770,7 @@ function U_(r) {
|
|
|
6770
6770
|
yt(c), n = !1;
|
|
6771
6771
|
},
|
|
6772
6772
|
d(u) {
|
|
6773
|
-
u && et(t), Ri(l, u), c && c.d(), r[35](null), r[36](null), s = !1,
|
|
6773
|
+
u && et(t), Ri(l, u), c && c.d(), r[35](null), r[36](null), s = !1, Ne(o);
|
|
6774
6774
|
}
|
|
6775
6775
|
};
|
|
6776
6776
|
}
|
|
@@ -6787,7 +6787,7 @@ function G_(r, t, e) {
|
|
|
6787
6787
|
const N = (X) => {
|
|
6788
6788
|
$ && D.unobserve($);
|
|
6789
6789
|
const gt = X.filter(({ editable: at }) => at).map(({ id: at }) => at);
|
|
6790
|
-
gt.length > 0 ? (e(5, B = gt.map((at) => D.getAnnotation(at)).filter((at) => at &&
|
|
6790
|
+
gt.length > 0 ? (e(5, B = gt.map((at) => D.getAnnotation(at)).filter((at) => at && Ue(at))), $ = (at) => {
|
|
6791
6791
|
const { updated: ft } = at.changes;
|
|
6792
6792
|
e(5, B = ft == null ? void 0 : ft.map((ht) => ht.newValue));
|
|
6793
6793
|
}, D.observe($, { annotations: gt })) : e(5, B = void 0);
|
|
@@ -6816,7 +6816,7 @@ function G_(r, t, e) {
|
|
|
6816
6816
|
}, j = (X) => {
|
|
6817
6817
|
const { x: gt, y: at } = Kf(X, w), ft = D.getAt(gt, at, void 0, 2);
|
|
6818
6818
|
ft ? u !== ft.id && L.set(ft.id) : L.set(void 0);
|
|
6819
|
-
}, it = (X) =>
|
|
6819
|
+
}, it = (X) => Ue(X);
|
|
6820
6820
|
function H(X) {
|
|
6821
6821
|
co[X ? "unshift" : "push"](() => {
|
|
6822
6822
|
T = X, e(8, T);
|
|
@@ -10746,7 +10746,7 @@ class u1 extends zt {
|
|
|
10746
10746
|
}
|
|
10747
10747
|
}
|
|
10748
10748
|
typeof navigator > "u" ? !1 : navigator.userAgent.indexOf("Mac OS X") !== -1;
|
|
10749
|
-
var Oi = /* @__PURE__ */ ((r) => (r[r.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", r[r.WEBGL = 1] = "WEBGL", r[r.WEBGL2 = 2] = "WEBGL2", r))(Oi || {}), yp = /* @__PURE__ */ ((r) => (r[r.UNKNOWN = 0] = "UNKNOWN", r[r.WEBGL = 1] = "WEBGL", r[r.CANVAS = 2] = "CANVAS", r))(yp || {}), Cl = /* @__PURE__ */ ((r) => (r[r.COLOR = 16384] = "COLOR", r[r.DEPTH = 256] = "DEPTH", r[r.STENCIL = 1024] = "STENCIL", r))(Cl || {}), _t = /* @__PURE__ */ ((r) => (r[r.NORMAL = 0] = "NORMAL", r[r.ADD = 1] = "ADD", r[r.MULTIPLY = 2] = "MULTIPLY", r[r.SCREEN = 3] = "SCREEN", r[r.OVERLAY = 4] = "OVERLAY", r[r.DARKEN = 5] = "DARKEN", r[r.LIGHTEN = 6] = "LIGHTEN", r[r.COLOR_DODGE = 7] = "COLOR_DODGE", r[r.COLOR_BURN = 8] = "COLOR_BURN", r[r.HARD_LIGHT = 9] = "HARD_LIGHT", r[r.SOFT_LIGHT = 10] = "SOFT_LIGHT", r[r.DIFFERENCE = 11] = "DIFFERENCE", r[r.EXCLUSION = 12] = "EXCLUSION", r[r.HUE = 13] = "HUE", r[r.SATURATION = 14] = "SATURATION", r[r.COLOR = 15] = "COLOR", r[r.LUMINOSITY = 16] = "LUMINOSITY", r[r.NORMAL_NPM = 17] = "NORMAL_NPM", r[r.ADD_NPM = 18] = "ADD_NPM", r[r.SCREEN_NPM = 19] = "SCREEN_NPM", r[r.NONE = 20] = "NONE", r[r.SRC_OVER = 0] = "SRC_OVER", r[r.SRC_IN = 21] = "SRC_IN", r[r.SRC_OUT = 22] = "SRC_OUT", r[r.SRC_ATOP = 23] = "SRC_ATOP", r[r.DST_OVER = 24] = "DST_OVER", r[r.DST_IN = 25] = "DST_IN", r[r.DST_OUT = 26] = "DST_OUT", r[r.DST_ATOP = 27] = "DST_ATOP", r[r.ERASE = 26] = "ERASE", r[r.SUBTRACT = 28] = "SUBTRACT", r[r.XOR = 29] = "XOR", r))(_t || {}), ur = /* @__PURE__ */ ((r) => (r[r.POINTS = 0] = "POINTS", r[r.LINES = 1] = "LINES", r[r.LINE_LOOP = 2] = "LINE_LOOP", r[r.LINE_STRIP = 3] = "LINE_STRIP", r[r.TRIANGLES = 4] = "TRIANGLES", r[r.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", r[r.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", r))(ur || {}), W = /* @__PURE__ */ ((r) => (r[r.RGBA = 6408] = "RGBA", r[r.RGB = 6407] = "RGB", r[r.RG = 33319] = "RG", r[r.RED = 6403] = "RED", r[r.RGBA_INTEGER = 36249] = "RGBA_INTEGER", r[r.RGB_INTEGER = 36248] = "RGB_INTEGER", r[r.RG_INTEGER = 33320] = "RG_INTEGER", r[r.RED_INTEGER = 36244] = "RED_INTEGER", r[r.ALPHA = 6406] = "ALPHA", r[r.LUMINANCE = 6409] = "LUMINANCE", r[r.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", r[r.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", r[r.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", r))(W || {}), hn = /* @__PURE__ */ ((r) => (r[r.TEXTURE_2D = 3553] = "TEXTURE_2D", r[r.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", r[r.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", r[r.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", r[r.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", r[r.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", r[r.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", r))(hn || {}), mt = /* @__PURE__ */ ((r) => (r[r.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", r[r.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", r[r.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", r[r.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", r[r.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", r[r.UNSIGNED_INT = 5125] = "UNSIGNED_INT", r[r.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", r[r.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", r[r.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", r[r.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", r[r.BYTE = 5120] = "BYTE", r[r.SHORT = 5122] = "SHORT", r[r.INT = 5124] = "INT", r[r.FLOAT = 5126] = "FLOAT", r[r.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", r[r.HALF_FLOAT = 36193] = "HALF_FLOAT", r))(mt || {}), Q = /* @__PURE__ */ ((r) => (r[r.FLOAT = 0] = "FLOAT", r[r.INT = 1] = "INT", r[r.UINT = 2] = "UINT", r))(Q || {}), Cr = /* @__PURE__ */ ((r) => (r[r.NEAREST = 0] = "NEAREST", r[r.LINEAR = 1] = "LINEAR", r))(Cr || {}), zr = /* @__PURE__ */ ((r) => (r[r.CLAMP = 33071] = "CLAMP", r[r.REPEAT = 10497] = "REPEAT", r[r.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", r))(zr || {}), gr = /* @__PURE__ */ ((r) => (r[r.OFF = 0] = "OFF", r[r.POW2 = 1] = "POW2", r[r.ON = 2] = "ON", r[r.ON_MANUAL = 3] = "ON_MANUAL", r))(gr || {}), Re = /* @__PURE__ */ ((r) => (r[r.NPM = 0] = "NPM", r[r.UNPACK = 1] = "UNPACK", r[r.PMA = 2] = "PMA", r[r.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", r[r.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", r[r.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", r))(Re || {}), hr = /* @__PURE__ */ ((r) => (r[r.NO = 0] = "NO", r[r.YES = 1] = "YES", r[r.AUTO = 2] = "AUTO", r[r.BLEND = 0] = "BLEND", r[r.CLEAR = 1] = "CLEAR", r[r.BLIT = 2] = "BLIT", r))(hr || {}), Nh = /* @__PURE__ */ ((r) => (r[r.AUTO = 0] = "AUTO", r[r.MANUAL = 1] = "MANUAL", r))(Nh || {}),
|
|
10749
|
+
var Oi = /* @__PURE__ */ ((r) => (r[r.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", r[r.WEBGL = 1] = "WEBGL", r[r.WEBGL2 = 2] = "WEBGL2", r))(Oi || {}), yp = /* @__PURE__ */ ((r) => (r[r.UNKNOWN = 0] = "UNKNOWN", r[r.WEBGL = 1] = "WEBGL", r[r.CANVAS = 2] = "CANVAS", r))(yp || {}), Cl = /* @__PURE__ */ ((r) => (r[r.COLOR = 16384] = "COLOR", r[r.DEPTH = 256] = "DEPTH", r[r.STENCIL = 1024] = "STENCIL", r))(Cl || {}), _t = /* @__PURE__ */ ((r) => (r[r.NORMAL = 0] = "NORMAL", r[r.ADD = 1] = "ADD", r[r.MULTIPLY = 2] = "MULTIPLY", r[r.SCREEN = 3] = "SCREEN", r[r.OVERLAY = 4] = "OVERLAY", r[r.DARKEN = 5] = "DARKEN", r[r.LIGHTEN = 6] = "LIGHTEN", r[r.COLOR_DODGE = 7] = "COLOR_DODGE", r[r.COLOR_BURN = 8] = "COLOR_BURN", r[r.HARD_LIGHT = 9] = "HARD_LIGHT", r[r.SOFT_LIGHT = 10] = "SOFT_LIGHT", r[r.DIFFERENCE = 11] = "DIFFERENCE", r[r.EXCLUSION = 12] = "EXCLUSION", r[r.HUE = 13] = "HUE", r[r.SATURATION = 14] = "SATURATION", r[r.COLOR = 15] = "COLOR", r[r.LUMINOSITY = 16] = "LUMINOSITY", r[r.NORMAL_NPM = 17] = "NORMAL_NPM", r[r.ADD_NPM = 18] = "ADD_NPM", r[r.SCREEN_NPM = 19] = "SCREEN_NPM", r[r.NONE = 20] = "NONE", r[r.SRC_OVER = 0] = "SRC_OVER", r[r.SRC_IN = 21] = "SRC_IN", r[r.SRC_OUT = 22] = "SRC_OUT", r[r.SRC_ATOP = 23] = "SRC_ATOP", r[r.DST_OVER = 24] = "DST_OVER", r[r.DST_IN = 25] = "DST_IN", r[r.DST_OUT = 26] = "DST_OUT", r[r.DST_ATOP = 27] = "DST_ATOP", r[r.ERASE = 26] = "ERASE", r[r.SUBTRACT = 28] = "SUBTRACT", r[r.XOR = 29] = "XOR", r))(_t || {}), ur = /* @__PURE__ */ ((r) => (r[r.POINTS = 0] = "POINTS", r[r.LINES = 1] = "LINES", r[r.LINE_LOOP = 2] = "LINE_LOOP", r[r.LINE_STRIP = 3] = "LINE_STRIP", r[r.TRIANGLES = 4] = "TRIANGLES", r[r.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", r[r.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", r))(ur || {}), W = /* @__PURE__ */ ((r) => (r[r.RGBA = 6408] = "RGBA", r[r.RGB = 6407] = "RGB", r[r.RG = 33319] = "RG", r[r.RED = 6403] = "RED", r[r.RGBA_INTEGER = 36249] = "RGBA_INTEGER", r[r.RGB_INTEGER = 36248] = "RGB_INTEGER", r[r.RG_INTEGER = 33320] = "RG_INTEGER", r[r.RED_INTEGER = 36244] = "RED_INTEGER", r[r.ALPHA = 6406] = "ALPHA", r[r.LUMINANCE = 6409] = "LUMINANCE", r[r.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", r[r.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", r[r.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", r))(W || {}), hn = /* @__PURE__ */ ((r) => (r[r.TEXTURE_2D = 3553] = "TEXTURE_2D", r[r.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", r[r.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", r[r.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", r[r.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", r[r.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", r[r.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", r))(hn || {}), mt = /* @__PURE__ */ ((r) => (r[r.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", r[r.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", r[r.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", r[r.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", r[r.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", r[r.UNSIGNED_INT = 5125] = "UNSIGNED_INT", r[r.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", r[r.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", r[r.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", r[r.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", r[r.BYTE = 5120] = "BYTE", r[r.SHORT = 5122] = "SHORT", r[r.INT = 5124] = "INT", r[r.FLOAT = 5126] = "FLOAT", r[r.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", r[r.HALF_FLOAT = 36193] = "HALF_FLOAT", r))(mt || {}), Q = /* @__PURE__ */ ((r) => (r[r.FLOAT = 0] = "FLOAT", r[r.INT = 1] = "INT", r[r.UINT = 2] = "UINT", r))(Q || {}), Cr = /* @__PURE__ */ ((r) => (r[r.NEAREST = 0] = "NEAREST", r[r.LINEAR = 1] = "LINEAR", r))(Cr || {}), zr = /* @__PURE__ */ ((r) => (r[r.CLAMP = 33071] = "CLAMP", r[r.REPEAT = 10497] = "REPEAT", r[r.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", r))(zr || {}), gr = /* @__PURE__ */ ((r) => (r[r.OFF = 0] = "OFF", r[r.POW2 = 1] = "POW2", r[r.ON = 2] = "ON", r[r.ON_MANUAL = 3] = "ON_MANUAL", r))(gr || {}), Re = /* @__PURE__ */ ((r) => (r[r.NPM = 0] = "NPM", r[r.UNPACK = 1] = "UNPACK", r[r.PMA = 2] = "PMA", r[r.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", r[r.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", r[r.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", r))(Re || {}), hr = /* @__PURE__ */ ((r) => (r[r.NO = 0] = "NO", r[r.YES = 1] = "YES", r[r.AUTO = 2] = "AUTO", r[r.BLEND = 0] = "BLEND", r[r.CLEAR = 1] = "CLEAR", r[r.BLIT = 2] = "BLIT", r))(hr || {}), Nh = /* @__PURE__ */ ((r) => (r[r.AUTO = 0] = "AUTO", r[r.MANUAL = 1] = "MANUAL", r))(Nh || {}), Ge = /* @__PURE__ */ ((r) => (r.LOW = "lowp", r.MEDIUM = "mediump", r.HIGH = "highp", r))(Ge || {}), ie = /* @__PURE__ */ ((r) => (r[r.NONE = 0] = "NONE", r[r.SCISSOR = 1] = "SCISSOR", r[r.STENCIL = 2] = "STENCIL", r[r.SPRITE = 3] = "SPRITE", r[r.COLOR = 4] = "COLOR", r))(ie || {}), te = /* @__PURE__ */ ((r) => (r[r.NONE = 0] = "NONE", r[r.LOW = 2] = "LOW", r[r.MEDIUM = 4] = "MEDIUM", r[r.HIGH = 8] = "HIGH", r))(te || {}), fr = /* @__PURE__ */ ((r) => (r[r.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", r[r.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", r[r.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", r))(fr || {});
|
|
10750
10750
|
const d1 = {
|
|
10751
10751
|
/**
|
|
10752
10752
|
* Creates a canvas element of the given size.
|
|
@@ -13357,12 +13357,12 @@ var qw = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ar = function(r) {
|
|
|
13357
13357
|
return typeof r == "string" ? r.length > 0 : typeof r == "number";
|
|
13358
13358
|
}, ae = function(r, t, e) {
|
|
13359
13359
|
return t === void 0 && (t = 0), e === void 0 && (e = Math.pow(10, t)), Math.round(e * r) / e + 0;
|
|
13360
|
-
},
|
|
13360
|
+
}, $e = function(r, t, e) {
|
|
13361
13361
|
return t === void 0 && (t = 0), e === void 0 && (e = 1), r > e ? e : r > t ? r : t;
|
|
13362
13362
|
}, Yp = function(r) {
|
|
13363
13363
|
return (r = isFinite(r) ? r % 360 : 0) > 0 ? r : r + 360;
|
|
13364
13364
|
}, ud = function(r) {
|
|
13365
|
-
return { r:
|
|
13365
|
+
return { r: $e(r.r, 0, 255), g: $e(r.g, 0, 255), b: $e(r.b, 0, 255), a: $e(r.a) };
|
|
13366
13366
|
}, Ya = function(r) {
|
|
13367
13367
|
return { r: ae(r.r), g: ae(r.g), b: ae(r.b), a: ae(r.a, 3) };
|
|
13368
13368
|
}, Kw = /^#([0-9a-f]{3,8})$/i, Is = function(r) {
|
|
@@ -13377,7 +13377,7 @@ var qw = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ar = function(r) {
|
|
|
13377
13377
|
var s = Math.floor(t), o = i * (1 - e), a = i * (1 - (t - s) * e), l = i * (1 - (1 - t + s) * e), h = s % 6;
|
|
13378
13378
|
return { r: 255 * [i, a, o, o, l, i][h], g: 255 * [l, i, i, a, o, o][h], b: 255 * [o, o, l, i, i, a][h], a: n };
|
|
13379
13379
|
}, dd = function(r) {
|
|
13380
|
-
return { h: Yp(r.h), s:
|
|
13380
|
+
return { h: Yp(r.h), s: $e(r.s, 0, 100), l: $e(r.l, 0, 100), a: $e(r.a) };
|
|
13381
13381
|
}, fd = function(r) {
|
|
13382
13382
|
return { h: ae(r.h), s: ae(r.s), l: ae(r.l), a: ae(r.a, 3) };
|
|
13383
13383
|
}, pd = function(r) {
|
|
@@ -13409,7 +13409,7 @@ var qw = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ar = function(r) {
|
|
|
13409
13409
|
var t = r.h, e = r.s, i = r.v, n = r.a, s = n === void 0 ? 1 : n;
|
|
13410
13410
|
if (!Ar(t) || !Ar(e) || !Ar(i)) return null;
|
|
13411
13411
|
var o = function(a) {
|
|
13412
|
-
return { h: Yp(a.h), s:
|
|
13412
|
+
return { h: Yp(a.h), s: $e(a.s, 0, 100), v: $e(a.v, 0, 100), a: $e(a.a) };
|
|
13413
13413
|
}({ h: Number(t), s: Number(e), v: Number(i), a: Number(s) });
|
|
13414
13414
|
return qp(o);
|
|
13415
13415
|
}, "hsv"]] }, md = function(r, t) {
|
|
@@ -13422,12 +13422,12 @@ var qw = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ar = function(r) {
|
|
|
13422
13422
|
return typeof r == "string" ? md(r.trim(), Gl.string) : typeof r == "object" && r !== null ? md(r, Gl.object) : [null, void 0];
|
|
13423
13423
|
}, za = function(r, t) {
|
|
13424
13424
|
var e = Jn(r);
|
|
13425
|
-
return { h: e.h, s:
|
|
13425
|
+
return { h: e.h, s: $e(e.s + 100 * t, 0, 100), l: e.l, a: e.a };
|
|
13426
13426
|
}, qa = function(r) {
|
|
13427
13427
|
return (299 * r.r + 587 * r.g + 114 * r.b) / 1e3 / 255;
|
|
13428
13428
|
}, gd = function(r, t) {
|
|
13429
13429
|
var e = Jn(r);
|
|
13430
|
-
return { h: e.h, s: e.s, l:
|
|
13430
|
+
return { h: e.h, s: e.s, l: $e(e.l + 100 * t, 0, 100), a: e.a };
|
|
13431
13431
|
}, $l = function() {
|
|
13432
13432
|
function r(t) {
|
|
13433
13433
|
this.parsed = eE(t)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
|
|
@@ -16538,11 +16538,11 @@ function RE() {
|
|
|
16538
16538
|
let Ms;
|
|
16539
16539
|
function ME() {
|
|
16540
16540
|
if (!Ms) {
|
|
16541
|
-
Ms =
|
|
16541
|
+
Ms = Ge.MEDIUM;
|
|
16542
16542
|
const r = RE();
|
|
16543
16543
|
if (r && r.getShaderPrecisionFormat) {
|
|
16544
16544
|
const t = r.getShaderPrecisionFormat(r.FRAGMENT_SHADER, r.HIGH_FLOAT);
|
|
16545
|
-
t && (Ms = t.precision ?
|
|
16545
|
+
t && (Ms = t.precision ? Ge.HIGH : Ge.MEDIUM);
|
|
16546
16546
|
}
|
|
16547
16547
|
}
|
|
16548
16548
|
return Ms;
|
|
@@ -16631,9 +16631,9 @@ function sm(r, t) {
|
|
|
16631
16631
|
function Pd(r, t, e) {
|
|
16632
16632
|
if (r.substring(0, 9) !== "precision") {
|
|
16633
16633
|
let i = t;
|
|
16634
|
-
return t ===
|
|
16634
|
+
return t === Ge.HIGH && e !== Ge.HIGH && (i = Ge.MEDIUM), `precision ${i} float;
|
|
16635
16635
|
${r}`;
|
|
16636
|
-
} else if (e !==
|
|
16636
|
+
} else if (e !== Ge.HIGH && r.substring(0, 15) === "precision highp")
|
|
16637
16637
|
return r.replace("precision highp", "precision mediump");
|
|
16638
16638
|
return r;
|
|
16639
16639
|
}
|
|
@@ -16662,7 +16662,7 @@ ${this.vertexSrc}`, this.fragmentSrc = `#define SHADER_NAME ${i}
|
|
|
16662
16662
|
${this.fragmentSrc}`, this.vertexSrc = Pd(
|
|
16663
16663
|
this.vertexSrc,
|
|
16664
16664
|
Zi.defaultVertexPrecision,
|
|
16665
|
-
|
|
16665
|
+
Ge.HIGH
|
|
16666
16666
|
), this.fragmentSrc = Pd(
|
|
16667
16667
|
this.fragmentSrc,
|
|
16668
16668
|
Zi.defaultFragmentPrecision,
|
|
@@ -16698,14 +16698,14 @@ ${this.fragmentSrc}`, this.vertexSrc = Pd(
|
|
|
16698
16698
|
return s || (xd[n] = s = new Zi(t, e, i)), s;
|
|
16699
16699
|
}
|
|
16700
16700
|
};
|
|
16701
|
-
Kl.defaultVertexPrecision =
|
|
16701
|
+
Kl.defaultVertexPrecision = Ge.HIGH, /**
|
|
16702
16702
|
* Default specify float precision in fragment shader.
|
|
16703
16703
|
* iOS is best set at highp due to https://github.com/pixijs/pixijs/issues/3742
|
|
16704
16704
|
* @static
|
|
16705
16705
|
* @type {PIXI.PRECISION}
|
|
16706
16706
|
* @default PIXI.PRECISION.MEDIUM
|
|
16707
16707
|
*/
|
|
16708
|
-
Kl.defaultFragmentPrecision = Ir.apple.device ?
|
|
16708
|
+
Kl.defaultFragmentPrecision = Ir.apple.device ? Ge.HIGH : Ge.MEDIUM;
|
|
16709
16709
|
let Rr = Kl, NE = 0;
|
|
16710
16710
|
class Je {
|
|
16711
16711
|
/**
|
|
@@ -29568,7 +29568,7 @@ const zm = {
|
|
|
29568
29568
|
Bo.triangulate(r, t);
|
|
29569
29569
|
}
|
|
29570
29570
|
};
|
|
29571
|
-
var
|
|
29571
|
+
var ke = /* @__PURE__ */ ((r) => (r.MITER = "miter", r.BEVEL = "bevel", r.ROUND = "round", r))(ke || {}), jr = /* @__PURE__ */ ((r) => (r.BUTT = "butt", r.ROUND = "round", r.SQUARE = "square", r))(jr || {});
|
|
29572
29572
|
const vn = {
|
|
29573
29573
|
adaptive: !0,
|
|
29574
29574
|
maxLength: 10,
|
|
@@ -29816,7 +29816,7 @@ function LS(r, t) {
|
|
|
29816
29816
|
x - I * T,
|
|
29817
29817
|
m + C * w,
|
|
29818
29818
|
x + I * w
|
|
29819
|
-
), k >= 0 && (s.join ===
|
|
29819
|
+
), k >= 0 && (s.join === ke.ROUND ? d += li(
|
|
29820
29820
|
m,
|
|
29821
29821
|
x,
|
|
29822
29822
|
m - C * T,
|
|
@@ -29835,9 +29835,9 @@ function LS(r, t) {
|
|
|
29835
29835
|
}
|
|
29836
29836
|
const it = (-C + _) * (-I + x) - (-C + m) * (-I + v), H = (-M + S) * (-F + x) - (-M + m) * (-F + R), ot = (D * H - B * it) / V, X = (N * it - $ * H) / V, gt = (ot - m) * (ot - m) + (X - x) * (X - x), at = m + (ot - m) * T, ft = x + (X - x) * T, ht = m - (ot - m) * w, Et = x - (X - x) * w, qt = Math.min(D * D + $ * $, B * B + N * N), kt = j ? T : w, Te = qt + kt * kt * g, _r = gt <= Te;
|
|
29837
29837
|
let jt = s.join;
|
|
29838
|
-
if (jt ===
|
|
29838
|
+
if (jt === ke.MITER && gt / g > y && (jt = ke.BEVEL), _r)
|
|
29839
29839
|
switch (jt) {
|
|
29840
|
-
case
|
|
29840
|
+
case ke.MITER: {
|
|
29841
29841
|
c.push(
|
|
29842
29842
|
at,
|
|
29843
29843
|
ft,
|
|
@@ -29846,7 +29846,7 @@ function LS(r, t) {
|
|
|
29846
29846
|
);
|
|
29847
29847
|
break;
|
|
29848
29848
|
}
|
|
29849
|
-
case
|
|
29849
|
+
case ke.BEVEL: {
|
|
29850
29850
|
j ? c.push(
|
|
29851
29851
|
at,
|
|
29852
29852
|
ft,
|
|
@@ -29874,7 +29874,7 @@ function LS(r, t) {
|
|
|
29874
29874
|
), d += 2;
|
|
29875
29875
|
break;
|
|
29876
29876
|
}
|
|
29877
|
-
case
|
|
29877
|
+
case ke.ROUND: {
|
|
29878
29878
|
j ? (c.push(
|
|
29879
29879
|
at,
|
|
29880
29880
|
ft,
|
|
@@ -29925,7 +29925,7 @@ function LS(r, t) {
|
|
|
29925
29925
|
m + C * w,
|
|
29926
29926
|
x + I * w
|
|
29927
29927
|
), jt) {
|
|
29928
|
-
case
|
|
29928
|
+
case ke.MITER: {
|
|
29929
29929
|
j ? c.push(
|
|
29930
29930
|
ht,
|
|
29931
29931
|
Et,
|
|
@@ -29941,7 +29941,7 @@ function LS(r, t) {
|
|
|
29941
29941
|
), d += 2;
|
|
29942
29942
|
break;
|
|
29943
29943
|
}
|
|
29944
|
-
case
|
|
29944
|
+
case ke.ROUND: {
|
|
29945
29945
|
j ? d += li(
|
|
29946
29946
|
m,
|
|
29947
29947
|
x,
|
|
@@ -30410,7 +30410,7 @@ class Jo {
|
|
|
30410
30410
|
}
|
|
30411
30411
|
class Kh extends Jo {
|
|
30412
30412
|
constructor() {
|
|
30413
|
-
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = jr.BUTT, this.join =
|
|
30413
|
+
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = jr.BUTT, this.join = ke.MITER, this.miterLimit = 10;
|
|
30414
30414
|
}
|
|
30415
30415
|
/** Clones the object. */
|
|
30416
30416
|
clone() {
|
|
@@ -30419,7 +30419,7 @@ class Kh extends Jo {
|
|
|
30419
30419
|
}
|
|
30420
30420
|
/** Reset the line style to default. */
|
|
30421
30421
|
reset() {
|
|
30422
|
-
super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap = jr.BUTT, this.join =
|
|
30422
|
+
super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap = jr.BUTT, this.join = ke.MITER, this.miterLimit = 10;
|
|
30423
30423
|
}
|
|
30424
30424
|
}
|
|
30425
30425
|
const ul = {}, gh = class ao extends Qe {
|
|
@@ -30514,7 +30514,7 @@ const ul = {}, gh = class ao extends Qe {
|
|
|
30514
30514
|
alignment: 0.5,
|
|
30515
30515
|
native: !1,
|
|
30516
30516
|
cap: jr.BUTT,
|
|
30517
|
-
join:
|
|
30517
|
+
join: ke.MITER,
|
|
30518
30518
|
miterLimit: 10
|
|
30519
30519
|
};
|
|
30520
30520
|
t = Object.assign(e, t), this.normalizeColor(t), this.currentPath && this.startPoly();
|
|
@@ -34823,7 +34823,7 @@ function P2(r, t, e) {
|
|
|
34823
34823
|
let i, n, { filter: s } = t, { state: o } = t, { style: a } = t, { viewer: l } = t, { visible: h = !0 } = t;
|
|
34824
34824
|
const { store: c, hover: u, selection: d, viewport: f } = o;
|
|
34825
34825
|
rs(r, u, (I) => e(11, i = I)), rs(r, d, (I) => e(8, n = I));
|
|
34826
|
-
const p = xn(), g =
|
|
34826
|
+
const p = xn(), g = De ? 10 : 2;
|
|
34827
34827
|
let y, _;
|
|
34828
34828
|
const v = (I) => {
|
|
34829
34829
|
const M = new on.Point(I.x, I.y), { x: F, y: U } = l.viewport.pointFromPixel(M);
|
|
@@ -34866,7 +34866,7 @@ function P2(r, t, e) {
|
|
|
34866
34866
|
f.set(j.map((it) => it.id));
|
|
34867
34867
|
};
|
|
34868
34868
|
l.addHandler("canvas-press", x), l.addHandler("canvas-release", R), l.addHandler("update-viewport", y.redraw), l.addHandler("animation-finish", T);
|
|
34869
|
-
const w = ($) => $.filter((B) =>
|
|
34869
|
+
const w = ($) => $.filter((B) => Ue(B)), A = ($) => Ue($.oldValue) && Ue($.newValue), L = ($) => {
|
|
34870
34870
|
const { selector: B } = $.target;
|
|
34871
34871
|
if (B.type === vt.POLYGON) {
|
|
34872
34872
|
const N = bv(B);
|
|
@@ -34883,7 +34883,7 @@ function P2(r, t, e) {
|
|
|
34883
34883
|
} else
|
|
34884
34884
|
return $;
|
|
34885
34885
|
}, O = ($) => {
|
|
34886
|
-
const { created: B, updated: N, deleted: k } = $.changes, V = (B || []).filter((j) =>
|
|
34886
|
+
const { created: B, updated: N, deleted: k } = $.changes, V = (B || []).filter((j) => Ue(j)).map(L);
|
|
34887
34887
|
if (w(k || []).forEach((j) => y.removeAnnotation(j)), V.forEach((j) => y.addAnnotation(j)), (N || []).filter((j) => A(j)).map(({ oldValue: j, newValue: it }) => ({ oldValue: j, newValue: L(it) })).forEach(({ oldValue: j, newValue: it }) => y.updateAnnotation(j, it)), C) {
|
|
34888
34888
|
const { x: j, y: it, width: H, height: ot } = C, X = c.getIntersecting(j, it, H, ot);
|
|
34889
34889
|
f.set(X.map((gt) => gt.id));
|
|
@@ -35520,7 +35520,7 @@ function G2(r) {
|
|
|
35520
35520
|
}
|
|
35521
35521
|
function $2(r, t, e) {
|
|
35522
35522
|
let i, n, s, o, a, { drawingEnabled: l } = t, { filter: h } = t, { multiSelect: c } = t, { preferredDrawingMode: u } = t, { state: d } = t, { style: f = void 0 } = t, { toolName: p = Fo()[0] } = t, { user: g } = t, { viewer: y } = t;
|
|
35523
|
-
const _ =
|
|
35523
|
+
const _ = De ? 10 : 2;
|
|
35524
35524
|
let v = !1, m = 0;
|
|
35525
35525
|
const x = () => e(7, m += 1), S = () => p, R = () => l;
|
|
35526
35526
|
let C;
|
|
@@ -35588,7 +35588,7 @@ function $2(r, t, e) {
|
|
|
35588
35588
|
(ot = y.element) == null || ot.removeEventListener("pointermove", H);
|
|
35589
35589
|
};
|
|
35590
35590
|
});
|
|
35591
|
-
const j = (H) =>
|
|
35591
|
+
const j = (H) => Ue(H);
|
|
35592
35592
|
function it(H) {
|
|
35593
35593
|
po[H ? "unshift" : "push"](() => {
|
|
35594
35594
|
C = H, e(8, C);
|
|
@@ -36980,12 +36980,12 @@ function MC(r, t, e) {
|
|
|
36980
36980
|
rs(r, h, (d) => e(5, s = d));
|
|
36981
36981
|
const c = (d) => {
|
|
36982
36982
|
let f = -1 / 0, p = -1 / 0, g = 1 / 0, y = 1 / 0;
|
|
36983
|
-
for (let _ of d.filter((v) =>
|
|
36983
|
+
for (let _ of d.filter((v) => Ue(v))) {
|
|
36984
36984
|
const { bounds: v } = _.target.selector.geometry;
|
|
36985
36985
|
v.maxX > f && (f = v.maxX), v.maxY > p && (p = v.maxY), v.minX < g && (g = v.minX), v.minY < y && (y = v.minY);
|
|
36986
36986
|
}
|
|
36987
36987
|
return a.forceRedraw(), { maxX: f, maxY: p, minX: g, minY: y };
|
|
36988
|
-
}, u = (d) =>
|
|
36988
|
+
}, u = (d) => Ue(d);
|
|
36989
36989
|
return r.$$set = (d) => {
|
|
36990
36990
|
"state" in d && e(4, o = d.state), "viewer" in d && e(0, a = d.viewer);
|
|
36991
36991
|
}, r.$$.update = () => {
|
|
@@ -37012,7 +37012,7 @@ const Cf = (r, t) => {
|
|
|
37012
37012
|
}) : r.element.setAttribute("data-theme", t);
|
|
37013
37013
|
}, pg = (r, t, e) => (i, n = {}) => {
|
|
37014
37014
|
const s = typeof i == "string" ? i : i.id, o = t.getAnnotation(s);
|
|
37015
|
-
if (!o || !
|
|
37015
|
+
if (!o || !Ue(o)) return;
|
|
37016
37016
|
const a = r.container.getBoundingClientRect(), { padding: l } = n;
|
|
37017
37017
|
let [h, c, u, d] = l ? Array.isArray(l) ? l : [l, l, l, l] : [0, 0, 0, 0];
|
|
37018
37018
|
h = h / a.height, c = c / a.width, u = u / a.height, d = d / a.width;
|
|
@@ -37021,7 +37021,7 @@ const Cf = (r, t) => {
|
|
|
37021
37021
|
}, BC = (r, t) => pg(r, t, "fitBounds"), LC = (r, t) => pg(r, t, "fitBoundsWithConstraints"), XC = (r, t = {}) => {
|
|
37022
37022
|
const e = tp(t, {
|
|
37023
37023
|
drawingEnabled: !1,
|
|
37024
|
-
drawingMode:
|
|
37024
|
+
drawingMode: De ? "drag" : "click",
|
|
37025
37025
|
userSelectAction: If.EDIT,
|
|
37026
37026
|
theme: "light"
|
|
37027
37027
|
}), i = Jf(e), { hover: n, selection: s, store: o } = i, a = Rg(o, e.initialHistory), l = Mg(
|
|
@@ -37083,7 +37083,7 @@ const Cf = (r, t) => {
|
|
|
37083
37083
|
}, T = (k) => {
|
|
37084
37084
|
c = k, y.$set({ drawingEnabled: k });
|
|
37085
37085
|
}, w = (k) => {
|
|
37086
|
-
u = k, y.$set({ preferredDrawingMode:
|
|
37086
|
+
u = k || (De ? "drag" : "click"), y.$set({ preferredDrawingMode: u });
|
|
37087
37087
|
}, A = (k) => {
|
|
37088
37088
|
p.$set({ filter: k }), y.$set({ filter: k });
|
|
37089
37089
|
}, L = (k) => d = k, O = (k) => {
|