declarative-ui-core 2.1.2 → 2.1.3
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/dist/index.js +379 -373
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as at, jsx as L } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
2
|
+
import { useRef as Sn, useState as oa, useEffect as ir, useMemo as $r } from "react";
|
|
3
3
|
import bl from "react-markdown";
|
|
4
4
|
import aa from "mermaid";
|
|
5
5
|
import { VegaLite as Ml } from "react-vega";
|
|
@@ -66,14 +66,14 @@ function Al({ componentId: n, component: t }) {
|
|
|
66
66
|
] }) })
|
|
67
67
|
] });
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Xn(n, t) {
|
|
70
70
|
if (!t) return;
|
|
71
71
|
const e = t.startsWith("data.") ? t.slice(5) : t, i = n.data?.[e];
|
|
72
72
|
if (!(!i || i.source !== "inline"))
|
|
73
73
|
return i.rows;
|
|
74
74
|
}
|
|
75
75
|
function Pl({ page: n, componentId: t, component: e }) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = Xn(n, e.dataRef) ?? [], s = e.config?.mode, r = e.config?.displayFields, o = r && r.length > 0 ? r : i.length > 0 ? Object.keys(i[0]) : [];
|
|
77
77
|
return /* @__PURE__ */ at("div", { style: b.panel, children: [
|
|
78
78
|
/* @__PURE__ */ L("div", { style: b.panelHeader, children: /* @__PURE__ */ L("div", { style: b.panelTitle, children: e.title ?? t }) }),
|
|
79
79
|
/* @__PURE__ */ L("div", { style: b.panelBody, children: s === "kv" && i.length === 1 ? /* @__PURE__ */ L("div", { style: b.kvList, children: Object.entries(i[0]).map(([a, l]) => /* @__PURE__ */ at("div", { style: b.kvRow, children: [
|
|
@@ -127,7 +127,7 @@ const wt = {
|
|
|
127
127
|
TOUCHMOVE: "touchmove",
|
|
128
128
|
WHEEL: "wheel"
|
|
129
129
|
};
|
|
130
|
-
class
|
|
130
|
+
class Yn {
|
|
131
131
|
constructor() {
|
|
132
132
|
this.disposed = !1;
|
|
133
133
|
}
|
|
@@ -223,13 +223,13 @@ function kl(n, t, e) {
|
|
|
223
223
|
return !(o > 0 || o === 0);
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Ki() {
|
|
227
227
|
return !0;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Kn() {
|
|
230
230
|
return !1;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Bi() {
|
|
233
233
|
}
|
|
234
234
|
function la(n) {
|
|
235
235
|
let t, e, i;
|
|
@@ -250,7 +250,7 @@ function Nl(n) {
|
|
|
250
250
|
}
|
|
251
251
|
return t();
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function en(n) {
|
|
254
254
|
for (const t in n)
|
|
255
255
|
delete n[t];
|
|
256
256
|
}
|
|
@@ -283,7 +283,7 @@ class de {
|
|
|
283
283
|
this.propagationStopped = !0;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
class
|
|
286
|
+
class Bn extends Yn {
|
|
287
287
|
/**
|
|
288
288
|
* @param {*} [target] Default event target for dispatched events.
|
|
289
289
|
*/
|
|
@@ -332,7 +332,7 @@ class Kn extends Xn {
|
|
|
332
332
|
if (--o[i] === 0) {
|
|
333
333
|
let c = a[i];
|
|
334
334
|
for (delete a[i]; c--; )
|
|
335
|
-
this.removeEventListener(i,
|
|
335
|
+
this.removeEventListener(i, Bi);
|
|
336
336
|
delete o[i];
|
|
337
337
|
}
|
|
338
338
|
return l;
|
|
@@ -342,7 +342,7 @@ class Kn extends Xn {
|
|
|
342
342
|
* @override
|
|
343
343
|
*/
|
|
344
344
|
disposeInternal() {
|
|
345
|
-
this.listeners_ &&
|
|
345
|
+
this.listeners_ && en(this.listeners_);
|
|
346
346
|
}
|
|
347
347
|
/**
|
|
348
348
|
* Get the listeners for a specified event type. Listeners are returned in the
|
|
@@ -373,7 +373,7 @@ class Kn extends Xn {
|
|
|
373
373
|
if (!i)
|
|
374
374
|
return;
|
|
375
375
|
const s = i.indexOf(e);
|
|
376
|
-
s !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (i[s] =
|
|
376
|
+
s !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (i[s] = Bi, ++this.pendingRemovals_[t]) : (i.splice(s, 1), i.length === 0 && delete this.listeners_[t]));
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
function H(n, t, e, i, s) {
|
|
@@ -390,13 +390,13 @@ function H(n, t, e, i, s) {
|
|
|
390
390
|
};
|
|
391
391
|
return n.addEventListener(t, e), r;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Ln(n, t, e, i) {
|
|
394
394
|
return H(n, t, e, i, !0);
|
|
395
395
|
}
|
|
396
396
|
function it(n) {
|
|
397
|
-
n && n.target && (n.target.removeEventListener(n.type, n.listener),
|
|
397
|
+
n && n.target && (n.target.removeEventListener(n.type, n.listener), en(n));
|
|
398
398
|
}
|
|
399
|
-
class
|
|
399
|
+
class nn extends Bn {
|
|
400
400
|
constructor() {
|
|
401
401
|
super(), this.on = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
|
|
402
402
|
this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
|
|
@@ -451,9 +451,9 @@ class en extends Kn {
|
|
|
451
451
|
const s = t.length;
|
|
452
452
|
i = new Array(s);
|
|
453
453
|
for (let r = 0; r < s; ++r)
|
|
454
|
-
i[r] =
|
|
454
|
+
i[r] = Ln(this, t[r], e);
|
|
455
455
|
} else
|
|
456
|
-
i =
|
|
456
|
+
i = Ln(
|
|
457
457
|
this,
|
|
458
458
|
/** @type {string} */
|
|
459
459
|
t,
|
|
@@ -481,9 +481,9 @@ class en extends Kn {
|
|
|
481
481
|
this.removeEventListener(t, e);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
484
|
+
nn.prototype.on;
|
|
485
|
+
nn.prototype.once;
|
|
486
|
+
nn.prototype.un;
|
|
487
487
|
function Gl(n) {
|
|
488
488
|
if (Array.isArray(n))
|
|
489
489
|
for (let t = 0, e = n.length; t < e; ++t)
|
|
@@ -511,7 +511,7 @@ class qr extends de {
|
|
|
511
511
|
super(t), this.key = e, this.oldValue = i;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
class te extends
|
|
514
|
+
class te extends nn {
|
|
515
515
|
/**
|
|
516
516
|
* @param {Object<string, *>} [values] An object with key-value pairs.
|
|
517
517
|
*/
|
|
@@ -630,7 +630,7 @@ class te extends en {
|
|
|
630
630
|
const Jr = {
|
|
631
631
|
LENGTH: "length"
|
|
632
632
|
};
|
|
633
|
-
class
|
|
633
|
+
class gn extends de {
|
|
634
634
|
/**
|
|
635
635
|
* @param {import("./CollectionEventType.js").default} type Type.
|
|
636
636
|
* @param {T} element Element.
|
|
@@ -722,7 +722,7 @@ class Jt extends te {
|
|
|
722
722
|
if (t < 0 || t > this.getLength())
|
|
723
723
|
throw new Error("Index out of bounds: " + t);
|
|
724
724
|
this.unique_ && this.assertUnique_(e), this.array_.splice(t, 0, e), this.updateLength_(), this.dispatchEvent(
|
|
725
|
-
new
|
|
725
|
+
new gn(wt.ADD, e, t)
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
728
|
/**
|
|
@@ -770,7 +770,7 @@ class Jt extends te {
|
|
|
770
770
|
const e = this.array_[t];
|
|
771
771
|
return this.array_.splice(t, 1), this.updateLength_(), this.dispatchEvent(
|
|
772
772
|
/** @type {CollectionEvent<T>} */
|
|
773
|
-
new
|
|
773
|
+
new gn(wt.REMOVE, e, t)
|
|
774
774
|
), e;
|
|
775
775
|
}
|
|
776
776
|
/**
|
|
@@ -791,10 +791,10 @@ class Jt extends te {
|
|
|
791
791
|
const s = this.array_[t];
|
|
792
792
|
this.array_[t] = e, this.dispatchEvent(
|
|
793
793
|
/** @type {CollectionEvent<T>} */
|
|
794
|
-
new
|
|
794
|
+
new gn(wt.REMOVE, s, t)
|
|
795
795
|
), this.dispatchEvent(
|
|
796
796
|
/** @type {CollectionEvent<T>} */
|
|
797
|
-
new
|
|
797
|
+
new gn(wt.ADD, e, t)
|
|
798
798
|
);
|
|
799
799
|
}
|
|
800
800
|
/**
|
|
@@ -936,7 +936,7 @@ const Xl = Xe.includes("webkit") && !Xe.includes("edge"), ha = Xe.includes("maci
|
|
|
936
936
|
POINTERMOVE: "pointermove",
|
|
937
937
|
POINTERDOWN: "pointerdown"
|
|
938
938
|
};
|
|
939
|
-
class Kl extends
|
|
939
|
+
class Kl extends Bn {
|
|
940
940
|
/**
|
|
941
941
|
* @param {import("./Map.js").default} map The map with the viewport to listen to events on.
|
|
942
942
|
* @param {number} [moveTolerance] The minimal distance the pointer must travel to trigger a move.
|
|
@@ -1207,7 +1207,7 @@ function J(n, t) {
|
|
|
1207
1207
|
if (!n)
|
|
1208
1208
|
throw new Error(t);
|
|
1209
1209
|
}
|
|
1210
|
-
const
|
|
1210
|
+
const bn = 1 / 0;
|
|
1211
1211
|
class Bl {
|
|
1212
1212
|
/**
|
|
1213
1213
|
* @param {function(T): number} priorityFunction Priority function.
|
|
@@ -1220,7 +1220,7 @@ class Bl {
|
|
|
1220
1220
|
* FIXME empty description for jsdoc
|
|
1221
1221
|
*/
|
|
1222
1222
|
clear() {
|
|
1223
|
-
this.elements_.length = 0, this.priorities_.length = 0,
|
|
1223
|
+
this.elements_.length = 0, this.priorities_.length = 0, en(this.queuedElements_);
|
|
1224
1224
|
}
|
|
1225
1225
|
/**
|
|
1226
1226
|
* Remove and return the highest-priority element. O(log N).
|
|
@@ -1245,7 +1245,7 @@ class Bl {
|
|
|
1245
1245
|
"Tried to enqueue an `element` that was already added to the queue"
|
|
1246
1246
|
);
|
|
1247
1247
|
const e = this.priorityFunction_(t);
|
|
1248
|
-
return e !=
|
|
1248
|
+
return e != bn ? (this.elements_.push(t), this.priorities_.push(e), this.queuedElements_[this.keyFunction_(t)] = !0, this.siftDown_(0, this.elements_.length - 1), !0) : !1;
|
|
1249
1249
|
}
|
|
1250
1250
|
/**
|
|
1251
1251
|
* @return {number} Count.
|
|
@@ -1346,7 +1346,7 @@ class Bl {
|
|
|
1346
1346
|
const r = e.length;
|
|
1347
1347
|
let o, a, l;
|
|
1348
1348
|
for (a = 0; a < r; ++a)
|
|
1349
|
-
o = e[a], l = t(o), l ==
|
|
1349
|
+
o = e[a], l = t(o), l == bn ? delete this.queuedElements_[this.keyFunction_(o)] : (i[s] = l, e[s++] = o);
|
|
1350
1350
|
e.length = s, i.length = s, this.heapify_();
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
@@ -1405,7 +1405,7 @@ class Zl extends Bl {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
function jl(n, t, e, i, s) {
|
|
1407
1407
|
if (!n || !(e in n.wantedTiles) || !n.wantedTiles[e][t.getKey()])
|
|
1408
|
-
return
|
|
1408
|
+
return bn;
|
|
1409
1409
|
const r = n.viewState.center, o = i[0] - r[0], a = i[1] - r[1];
|
|
1410
1410
|
return 65536 * Math.log(s) + Math.sqrt(o * o + a * a) / s;
|
|
1411
1411
|
}
|
|
@@ -1471,15 +1471,15 @@ function ci(n, t) {
|
|
|
1471
1471
|
function kt(n, t, e) {
|
|
1472
1472
|
return n + e * (t - n);
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Zn(n, t) {
|
|
1475
1475
|
const e = Math.pow(10, t);
|
|
1476
1476
|
return Math.round(n * e) / e;
|
|
1477
1477
|
}
|
|
1478
|
-
function gn(n, t) {
|
|
1479
|
-
return Math.floor(Bn(n, t));
|
|
1480
|
-
}
|
|
1481
1478
|
function _n(n, t) {
|
|
1482
|
-
return Math.
|
|
1479
|
+
return Math.floor(Zn(n, t));
|
|
1480
|
+
}
|
|
1481
|
+
function mn(n, t) {
|
|
1482
|
+
return Math.ceil(Zn(n, t));
|
|
1483
1483
|
}
|
|
1484
1484
|
function Xs(n, t, e) {
|
|
1485
1485
|
if (n >= t && n < e)
|
|
@@ -1528,7 +1528,7 @@ const ut = {
|
|
|
1528
1528
|
function eo(n) {
|
|
1529
1529
|
const t = Wt();
|
|
1530
1530
|
for (let e = 0, i = n.length; e < i; ++e)
|
|
1531
|
-
|
|
1531
|
+
Xi(t, n[e]);
|
|
1532
1532
|
return t;
|
|
1533
1533
|
}
|
|
1534
1534
|
function or(n, t, e) {
|
|
@@ -1549,7 +1549,7 @@ function fa(n, t, e) {
|
|
|
1549
1549
|
function mi(n, t) {
|
|
1550
1550
|
return ga(n, t[0], t[1]);
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function Di(n, t) {
|
|
1553
1553
|
return n[0] <= t[0] && t[2] <= n[2] && n[1] <= t[1] && t[3] <= n[3];
|
|
1554
1554
|
}
|
|
1555
1555
|
function ga(n, t, e) {
|
|
@@ -1566,7 +1566,7 @@ function Wt() {
|
|
|
1566
1566
|
function Se(n, t, e, i, s) {
|
|
1567
1567
|
return s ? (s[0] = n, s[1] = t, s[2] = e, s[3] = i, s) : [n, t, e, i];
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function jn(n) {
|
|
1570
1570
|
return Se(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
|
|
1571
1571
|
}
|
|
1572
1572
|
function _a(n, t) {
|
|
@@ -1574,16 +1574,16 @@ function _a(n, t) {
|
|
|
1574
1574
|
return Se(e, i, e, i, t);
|
|
1575
1575
|
}
|
|
1576
1576
|
function ar(n, t, e, i, s) {
|
|
1577
|
-
const r =
|
|
1577
|
+
const r = jn(s);
|
|
1578
1578
|
return ma(r, n, t, e, i);
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1580
|
+
function Zi(n, t) {
|
|
1581
1581
|
return n[0] == t[0] && n[2] == t[2] && n[1] == t[1] && n[3] == t[3];
|
|
1582
1582
|
}
|
|
1583
1583
|
function $l(n, t) {
|
|
1584
1584
|
return t[0] < n[0] && (n[0] = t[0]), t[2] > n[2] && (n[2] = t[2]), t[1] < n[1] && (n[1] = t[1]), t[3] > n[3] && (n[3] = t[3]), n;
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function Xi(n, t) {
|
|
1587
1587
|
t[0] < n[0] && (n[0] = t[0]), t[0] > n[2] && (n[2] = t[0]), t[1] < n[1] && (n[1] = t[1]), t[1] > n[3] && (n[3] = t[1]);
|
|
1588
1588
|
}
|
|
1589
1589
|
function ma(n, t, e, i, s) {
|
|
@@ -1596,16 +1596,16 @@ function ql(n, t, e) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
function pa(n, t) {
|
|
1598
1598
|
let e;
|
|
1599
|
-
return e = t(
|
|
1599
|
+
return e = t(Un(n)), e || (e = t(Vn(n)), e) || (e = t(Hn(n)), e) || (e = t(Be(n)), e) ? e : !1;
|
|
1600
1600
|
}
|
|
1601
1601
|
function Ks(n) {
|
|
1602
1602
|
let t = 0;
|
|
1603
|
-
return
|
|
1603
|
+
return $n(n) || (t = tt(n) * Ct(n)), t;
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function Un(n) {
|
|
1606
1606
|
return [n[0], n[1]];
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function Vn(n) {
|
|
1609
1609
|
return [n[2], n[1]];
|
|
1610
1610
|
}
|
|
1611
1611
|
function Ye(n) {
|
|
@@ -1614,13 +1614,13 @@ function Ye(n) {
|
|
|
1614
1614
|
function Jl(n, t) {
|
|
1615
1615
|
let e;
|
|
1616
1616
|
if (t === "bottom-left")
|
|
1617
|
-
e = jn(n);
|
|
1618
|
-
else if (t === "bottom-right")
|
|
1619
1617
|
e = Un(n);
|
|
1618
|
+
else if (t === "bottom-right")
|
|
1619
|
+
e = Vn(n);
|
|
1620
1620
|
else if (t === "top-left")
|
|
1621
1621
|
e = Be(n);
|
|
1622
1622
|
else if (t === "top-right")
|
|
1623
|
-
e =
|
|
1623
|
+
e = Hn(n);
|
|
1624
1624
|
else
|
|
1625
1625
|
throw new Error("Invalid corner");
|
|
1626
1626
|
return e;
|
|
@@ -1660,12 +1660,12 @@ function Ct(n) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
function We(n, t, e) {
|
|
1662
1662
|
const i = e || Wt();
|
|
1663
|
-
return Tt(n, t) ? (n[0] > t[0] ? i[0] = n[0] : i[0] = t[0], n[1] > t[1] ? i[1] = n[1] : i[1] = t[1], n[2] < t[2] ? i[2] = n[2] : i[2] = t[2], n[3] < t[3] ? i[3] = n[3] : i[3] = t[3]) :
|
|
1663
|
+
return Tt(n, t) ? (n[0] > t[0] ? i[0] = n[0] : i[0] = t[0], n[1] > t[1] ? i[1] = n[1] : i[1] = t[1], n[2] < t[2] ? i[2] = n[2] : i[2] = t[2], n[3] < t[3] ? i[3] = n[3] : i[3] = t[3]) : jn(i), i;
|
|
1664
1664
|
}
|
|
1665
1665
|
function Be(n) {
|
|
1666
1666
|
return [n[0], n[3]];
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function Hn(n) {
|
|
1669
1669
|
return [n[2], n[3]];
|
|
1670
1670
|
}
|
|
1671
1671
|
function tt(n) {
|
|
@@ -1674,7 +1674,7 @@ function tt(n) {
|
|
|
1674
1674
|
function Tt(n, t) {
|
|
1675
1675
|
return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function $n(n) {
|
|
1678
1678
|
return n[2] < n[0] || n[3] < n[1];
|
|
1679
1679
|
}
|
|
1680
1680
|
function Ql(n, t) {
|
|
@@ -1727,7 +1727,7 @@ function Ea(n, t, e) {
|
|
|
1727
1727
|
function eh(n, t) {
|
|
1728
1728
|
return n[0] += +t[0], n[1] += +t[1], n;
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function Mn(n, t) {
|
|
1731
1731
|
let e = !0;
|
|
1732
1732
|
for (let i = n.length - 1; i >= 0; --i)
|
|
1733
1733
|
if (n[i] != t[i]) {
|
|
@@ -1919,7 +1919,7 @@ class cr {
|
|
|
1919
1919
|
return this.getPointResolutionFunc_;
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
1922
|
-
const
|
|
1922
|
+
const sn = 6378137, ai = Math.PI * sn, ah = [-ai, -ai, ai, ai], lh = [-180, -85, 180, 85], pn = sn * Math.log(Math.tan(Math.PI / 2));
|
|
1923
1923
|
class $e extends cr {
|
|
1924
1924
|
/**
|
|
1925
1925
|
* @param {string} code Code.
|
|
@@ -1932,7 +1932,7 @@ class $e extends cr {
|
|
|
1932
1932
|
global: !0,
|
|
1933
1933
|
worldExtent: lh,
|
|
1934
1934
|
getPointResolution: function(e, i) {
|
|
1935
|
-
return e / Math.cosh(i[1] /
|
|
1935
|
+
return e / Math.cosh(i[1] / sn);
|
|
1936
1936
|
}
|
|
1937
1937
|
});
|
|
1938
1938
|
}
|
|
@@ -1950,8 +1950,8 @@ function hh(n, t, e, i) {
|
|
|
1950
1950
|
e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(s));
|
|
1951
1951
|
for (let r = 0; r < s; r += i) {
|
|
1952
1952
|
t[r] = ai * n[r] / 180;
|
|
1953
|
-
let o =
|
|
1954
|
-
o >
|
|
1953
|
+
let o = sn * Math.log(Math.tan(Math.PI * (+n[r + 1] + 90) / 360));
|
|
1954
|
+
o > pn ? o = pn : o < -pn && (o = -pn), t[r + 1] = o;
|
|
1955
1955
|
}
|
|
1956
1956
|
return t;
|
|
1957
1957
|
}
|
|
@@ -1959,7 +1959,7 @@ function ch(n, t, e, i) {
|
|
|
1959
1959
|
const s = n.length;
|
|
1960
1960
|
e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(s));
|
|
1961
1961
|
for (let r = 0; r < s; r += i)
|
|
1962
|
-
t[r] = 180 * n[r] / ai, t[r + 1] = 360 * Math.atan(Math.exp(n[r + 1] /
|
|
1962
|
+
t[r] = 180 * n[r] / ai, t[r + 1] = 360 * Math.atan(Math.exp(n[r + 1] / sn)) / Math.PI - 90;
|
|
1963
1963
|
return t;
|
|
1964
1964
|
}
|
|
1965
1965
|
const uh = 6378137, so = [-180, -90, 180, 90], dh = Math.PI * uh / 180;
|
|
@@ -1997,16 +1997,16 @@ function gh(n, t) {
|
|
|
1997
1997
|
Zs[n] = t;
|
|
1998
1998
|
}
|
|
1999
1999
|
let ui = {};
|
|
2000
|
-
function
|
|
2000
|
+
function ji(n, t, e) {
|
|
2001
2001
|
const i = n.getCode(), s = t.getCode();
|
|
2002
2002
|
i in ui || (ui[i] = {}), ui[i][s] = e;
|
|
2003
2003
|
}
|
|
2004
2004
|
function gs(n, t) {
|
|
2005
2005
|
return n in ui && t in ui[n] ? ui[n][t] : null;
|
|
2006
2006
|
}
|
|
2007
|
-
const
|
|
2007
|
+
const An = 0.9996, zt = 669438e-8, qn = zt * zt, Jn = qn * zt, ke = zt / (1 - zt), oo = Math.sqrt(1 - zt), pi = (1 - oo) / (1 + oo), va = pi * pi, ur = va * pi, dr = ur * pi, Ta = dr * pi, Ia = 1 - zt / 4 - 3 * qn / 64 - 5 * Jn / 256, _h = 3 * zt / 8 + 3 * qn / 32 + 45 * Jn / 1024, mh = 15 * qn / 256 + 45 * Jn / 1024, ph = 35 * Jn / 3072, yh = 3 / 2 * pi - 27 / 32 * ur + 269 / 512 * Ta, xh = 21 / 16 * va - 55 / 32 * dr, Eh = 151 / 96 * ur - 417 / 128 * Ta, Ch = 1097 / 512 * dr, Pn = 6378137;
|
|
2008
2008
|
function wh(n, t, e) {
|
|
2009
|
-
const i = n - 5e5, o = (e.north ? t : t - 1e7) /
|
|
2009
|
+
const i = n - 5e5, o = (e.north ? t : t - 1e7) / An / (Pn * Ia), a = o + yh * Math.sin(2 * o) + xh * Math.sin(4 * o) + Eh * Math.sin(6 * o) + Ch * Math.sin(8 * o), l = Math.sin(a), c = l * l, h = Math.cos(a), u = l / h, d = u * u, f = d * d, g = 1 - zt * c, m = Math.sqrt(1 - zt * c), _ = Pn / m, p = (1 - zt) / g, x = ke * h ** 2, C = x * x, y = i / (_ * An), E = y * y, R = E * y, T = R * y, v = T * y, S = v * y, M = a - u / p * (E / 2 - T / 24 * (5 + 3 * d + 10 * x - 4 * C - 9 * ke)) + S / 720 * (61 + 90 * d + 298 * x + 45 * f - 252 * ke - 3 * C);
|
|
2010
2010
|
let G = (y - R / 6 * (1 + 2 * d + x) + v / 120 * (5 - 2 * x + 28 * d - 3 * C + 8 * ke + 24 * f)) / h;
|
|
2011
2011
|
return G = Xs(
|
|
2012
2012
|
G + ve(Sa(e.number)),
|
|
@@ -2017,8 +2017,8 @@ function wh(n, t, e) {
|
|
|
2017
2017
|
const ao = -80, lo = 84, Rh = -180, vh = 180;
|
|
2018
2018
|
function Th(n, t, e) {
|
|
2019
2019
|
n = Xs(n, Rh, vh), t < ao ? t = ao : t > lo && (t = lo);
|
|
2020
|
-
const i = ve(t), s = Math.sin(i), r = Math.cos(i), o = s / r, a = o * o, l = a * a, c = ve(n), h = Sa(e.number), u = ve(h), d =
|
|
2021
|
-
let R =
|
|
2020
|
+
const i = ve(t), s = Math.sin(i), r = Math.cos(i), o = s / r, a = o * o, l = a * a, c = ve(n), h = Sa(e.number), u = ve(h), d = Pn / Math.sqrt(1 - zt * s ** 2), f = ke * r ** 2, g = r * Xs(c - u, -Math.PI, Math.PI), m = g * g, _ = m * g, p = _ * g, x = p * g, C = x * g, y = Pn * (Ia * i - _h * Math.sin(2 * i) + mh * Math.sin(4 * i) - ph * Math.sin(6 * i)), E = An * d * (g + _ / 6 * (1 - a + f) + x / 120 * (5 - 18 * a + l + 72 * f - 58 * ke)) + 5e5;
|
|
2021
|
+
let R = An * (y + d * o * (m / 2 + p / 24 * (5 - a + 9 * f + 4 * f ** 2) + C / 720 * (61 - 58 * a + l + 600 * f - 330 * ke)));
|
|
2022
2022
|
return e.north || (R += 1e7), [E, R];
|
|
2023
2023
|
}
|
|
2024
2024
|
function Sa(n) {
|
|
@@ -2079,7 +2079,7 @@ function fr(n, t) {
|
|
|
2079
2079
|
return t;
|
|
2080
2080
|
}
|
|
2081
2081
|
function Us(n) {
|
|
2082
|
-
gh(n.getCode(), n),
|
|
2082
|
+
gh(n.getCode(), n), ji(n, n, fr);
|
|
2083
2083
|
}
|
|
2084
2084
|
function Ah(n) {
|
|
2085
2085
|
n.forEach(Us);
|
|
@@ -2138,14 +2138,14 @@ function co(n, t, e, i) {
|
|
|
2138
2138
|
function uo(n) {
|
|
2139
2139
|
Ah(n), n.forEach(function(t) {
|
|
2140
2140
|
n.forEach(function(e) {
|
|
2141
|
-
t !== e &&
|
|
2141
|
+
t !== e && ji(t, e, fr);
|
|
2142
2142
|
});
|
|
2143
2143
|
});
|
|
2144
2144
|
}
|
|
2145
2145
|
function Ph(n, t, e, i) {
|
|
2146
2146
|
n.forEach(function(s) {
|
|
2147
2147
|
t.forEach(function(r) {
|
|
2148
|
-
|
|
2148
|
+
ji(s, r, e), ji(r, s, i);
|
|
2149
2149
|
});
|
|
2150
2150
|
});
|
|
2151
2151
|
}
|
|
@@ -2176,7 +2176,7 @@ function Oh(n) {
|
|
|
2176
2176
|
})
|
|
2177
2177
|
);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function yn(n, t) {
|
|
2180
2180
|
return ba(), mr(
|
|
2181
2181
|
n,
|
|
2182
2182
|
"EPSG:4326",
|
|
@@ -2220,19 +2220,19 @@ function _r(n, t) {
|
|
|
2220
2220
|
l
|
|
2221
2221
|
));
|
|
2222
2222
|
}
|
|
2223
|
-
return s && (Us(n), Us(t),
|
|
2223
|
+
return s && (Us(n), Us(t), ji(n, t, s)), s;
|
|
2224
2224
|
}
|
|
2225
2225
|
function ms(n, t) {
|
|
2226
2226
|
return function(e, i, s, r) {
|
|
2227
2227
|
return i = n(e, i, s, r), t(i, i, s, r);
|
|
2228
2228
|
};
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function On(n, t) {
|
|
2231
2231
|
const e = Lt(n), i = Lt(t);
|
|
2232
2232
|
return _r(e, i);
|
|
2233
2233
|
}
|
|
2234
2234
|
function mr(n, t, e) {
|
|
2235
|
-
const i =
|
|
2235
|
+
const i = On(t, e);
|
|
2236
2236
|
if (!i) {
|
|
2237
2237
|
const s = Lt(t).getCode(), r = Lt(e).getCode();
|
|
2238
2238
|
throw new Error(
|
|
@@ -2245,7 +2245,7 @@ function Vs(n, t) {
|
|
|
2245
2245
|
return n;
|
|
2246
2246
|
}
|
|
2247
2247
|
function oe(n, t) {
|
|
2248
|
-
return js && !
|
|
2248
|
+
return js && !Mn(n, [0, 0]) && n[0] >= -180 && n[0] <= 180 && n[1] >= -90 && n[1] <= 90 && (js = !1, Ra(
|
|
2249
2249
|
"Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates."
|
|
2250
2250
|
)), n;
|
|
2251
2251
|
}
|
|
@@ -2439,7 +2439,7 @@ class Kh extends te {
|
|
|
2439
2439
|
getExtent(t) {
|
|
2440
2440
|
if (this.extentRevision_ != this.getRevision()) {
|
|
2441
2441
|
const e = this.computeExtent(this.extent_);
|
|
2442
|
-
(isNaN(e[0]) || isNaN(e[1])) &&
|
|
2442
|
+
(isNaN(e[0]) || isNaN(e[1])) && jn(e), this.extentRevision_ = this.getRevision();
|
|
2443
2443
|
}
|
|
2444
2444
|
return Ql(this.extent_, t);
|
|
2445
2445
|
}
|
|
@@ -2565,9 +2565,9 @@ class Kh extends te {
|
|
|
2565
2565
|
a,
|
|
2566
2566
|
go,
|
|
2567
2567
|
o
|
|
2568
|
-
), d =
|
|
2568
|
+
), d = On(i, e);
|
|
2569
2569
|
return d ? d(u, u, a) : u;
|
|
2570
|
-
} :
|
|
2570
|
+
} : On(i, e);
|
|
2571
2571
|
return this.applyTransform(s), this;
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
@@ -2973,7 +2973,7 @@ function li(n, t, e, i, s) {
|
|
|
2973
2973
|
s[r++] = n.slice(o, o + i);
|
|
2974
2974
|
return s.length = r, s;
|
|
2975
2975
|
}
|
|
2976
|
-
function
|
|
2976
|
+
function Dn(n, t, e, i, s) {
|
|
2977
2977
|
s = s !== void 0 ? s : [];
|
|
2978
2978
|
let r = 0;
|
|
2979
2979
|
for (let o = 0, a = e.length; o < a; ++o) {
|
|
@@ -2993,7 +2993,7 @@ function po(n, t, e, i, s) {
|
|
|
2993
2993
|
let r = 0;
|
|
2994
2994
|
for (let o = 0, a = e.length; o < a; ++o) {
|
|
2995
2995
|
const l = e[o];
|
|
2996
|
-
s[r++] = l.length === 1 && l[0] === t ? [] :
|
|
2996
|
+
s[r++] = l.length === 1 && l[0] === t ? [] : Dn(
|
|
2997
2997
|
n,
|
|
2998
2998
|
t,
|
|
2999
2999
|
l,
|
|
@@ -3084,7 +3084,7 @@ function Na(n, t, e, i, s, r, o, a) {
|
|
|
3084
3084
|
}
|
|
3085
3085
|
return o;
|
|
3086
3086
|
}
|
|
3087
|
-
class
|
|
3087
|
+
class Ui extends pr {
|
|
3088
3088
|
/**
|
|
3089
3089
|
* @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
|
|
3090
3090
|
* For internal use, flat coordinates in combination with `layout` are also accepted.
|
|
@@ -3108,7 +3108,7 @@ class ji extends pr {
|
|
|
3108
3108
|
* @override
|
|
3109
3109
|
*/
|
|
3110
3110
|
clone() {
|
|
3111
|
-
return new
|
|
3111
|
+
return new Ui(this.flatCoordinates.slice(), this.layout);
|
|
3112
3112
|
}
|
|
3113
3113
|
/**
|
|
3114
3114
|
* @param {number} x X.
|
|
@@ -3183,7 +3183,7 @@ class ji extends pr {
|
|
|
3183
3183
|
t,
|
|
3184
3184
|
e,
|
|
3185
3185
|
0
|
|
3186
|
-
), new
|
|
3186
|
+
), new Ui(e, "XY");
|
|
3187
3187
|
}
|
|
3188
3188
|
/**
|
|
3189
3189
|
* Get the type of this geometry.
|
|
@@ -3220,7 +3220,7 @@ class ji extends pr {
|
|
|
3220
3220
|
), this.changed();
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
|
-
class
|
|
3223
|
+
class Qn extends pr {
|
|
3224
3224
|
/**
|
|
3225
3225
|
* @param {import("../coordinate.js").Coordinate} coordinates Coordinates.
|
|
3226
3226
|
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
@@ -3235,7 +3235,7 @@ class Jn extends pr {
|
|
|
3235
3235
|
* @override
|
|
3236
3236
|
*/
|
|
3237
3237
|
clone() {
|
|
3238
|
-
const t = new
|
|
3238
|
+
const t = new Qn(this.flatCoordinates.slice(), this.layout);
|
|
3239
3239
|
return t.applyProperties(this), t;
|
|
3240
3240
|
}
|
|
3241
3241
|
/**
|
|
@@ -3524,7 +3524,7 @@ function rc(n, t) {
|
|
|
3524
3524
|
}
|
|
3525
3525
|
return e;
|
|
3526
3526
|
}
|
|
3527
|
-
class
|
|
3527
|
+
class Vi extends pr {
|
|
3528
3528
|
/**
|
|
3529
3529
|
* @param {!Array<Array<import("../coordinate.js").Coordinate>>|!Array<number>} coordinates
|
|
3530
3530
|
* Array of linear rings that define the polygon. The first linear ring of the
|
|
@@ -3562,7 +3562,7 @@ class Ui extends pr {
|
|
|
3562
3562
|
* @override
|
|
3563
3563
|
*/
|
|
3564
3564
|
clone() {
|
|
3565
|
-
const t = new
|
|
3565
|
+
const t = new Vi(
|
|
3566
3566
|
this.flatCoordinates.slice(),
|
|
3567
3567
|
this.layout,
|
|
3568
3568
|
this.ends_.slice()
|
|
@@ -3644,7 +3644,7 @@ class Ui extends pr {
|
|
|
3644
3644
|
*/
|
|
3645
3645
|
getCoordinates(t) {
|
|
3646
3646
|
let e;
|
|
3647
|
-
return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), yo(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates,
|
|
3647
|
+
return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), yo(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Dn(e, 0, this.ends_, this.stride);
|
|
3648
3648
|
}
|
|
3649
3649
|
/**
|
|
3650
3650
|
* @return {Array<number>} Ends.
|
|
@@ -3679,7 +3679,7 @@ class Ui extends pr {
|
|
|
3679
3679
|
* @api
|
|
3680
3680
|
*/
|
|
3681
3681
|
getInteriorPoint() {
|
|
3682
|
-
return new
|
|
3682
|
+
return new Qn(this.getFlatInteriorPoint(), "XYM");
|
|
3683
3683
|
}
|
|
3684
3684
|
/**
|
|
3685
3685
|
* Return the number of rings of the polygon, this includes the exterior
|
|
@@ -3702,7 +3702,7 @@ class Ui extends pr {
|
|
|
3702
3702
|
* @api
|
|
3703
3703
|
*/
|
|
3704
3704
|
getLinearRing(t) {
|
|
3705
|
-
return t < 0 || this.ends_.length <= t ? null : new
|
|
3705
|
+
return t < 0 || this.ends_.length <= t ? null : new Ui(
|
|
3706
3706
|
this.flatCoordinates.slice(
|
|
3707
3707
|
t === 0 ? 0 : this.ends_[t - 1],
|
|
3708
3708
|
this.ends_[t]
|
|
@@ -3719,7 +3719,7 @@ class Ui extends pr {
|
|
|
3719
3719
|
const t = this.layout, e = this.flatCoordinates, i = this.ends_, s = [];
|
|
3720
3720
|
let r = 0;
|
|
3721
3721
|
for (let o = 0, a = i.length; o < a; ++o) {
|
|
3722
|
-
const l = i[o], c = new
|
|
3722
|
+
const l = i[o], c = new Ui(
|
|
3723
3723
|
e.slice(r, l),
|
|
3724
3724
|
t
|
|
3725
3725
|
);
|
|
@@ -3762,7 +3762,7 @@ class Ui extends pr {
|
|
|
3762
3762
|
e,
|
|
3763
3763
|
0,
|
|
3764
3764
|
i
|
|
3765
|
-
), new
|
|
3765
|
+
), new Vi(e, "XY", i);
|
|
3766
3766
|
}
|
|
3767
3767
|
/**
|
|
3768
3768
|
* Get the type of this geometry.
|
|
@@ -3809,7 +3809,7 @@ class Ui extends pr {
|
|
|
3809
3809
|
}
|
|
3810
3810
|
}
|
|
3811
3811
|
function xo(n) {
|
|
3812
|
-
if (
|
|
3812
|
+
if ($n(n))
|
|
3813
3813
|
throw new Error("Cannot create polygon from empty extent");
|
|
3814
3814
|
const t = n[0], e = n[1], i = n[2], s = n[3], r = [
|
|
3815
3815
|
t,
|
|
@@ -3823,7 +3823,7 @@ function xo(n) {
|
|
|
3823
3823
|
t,
|
|
3824
3824
|
e
|
|
3825
3825
|
];
|
|
3826
|
-
return new
|
|
3826
|
+
return new Vi(r, "XY", [r.length]);
|
|
3827
3827
|
}
|
|
3828
3828
|
function Cr(n, t, e, i) {
|
|
3829
3829
|
const s = tt(t) / e[0], r = Ct(t) / e[1];
|
|
@@ -4076,7 +4076,7 @@ class $t extends te {
|
|
|
4076
4076
|
h.center && this.setCenterInternal(h.center), h.zoom !== void 0 ? this.setZoom(h.zoom) : h.resolution && this.setResolution(h.resolution), h.rotation !== void 0 && this.setRotation(h.rotation);
|
|
4077
4077
|
}
|
|
4078
4078
|
if (s === e) {
|
|
4079
|
-
i &&
|
|
4079
|
+
i && xn(i, !0);
|
|
4080
4080
|
return;
|
|
4081
4081
|
}
|
|
4082
4082
|
let r = Date.now(), o = this.targetCenter_.slice(), a = this.targetResolution_, l = this.targetRotation_;
|
|
@@ -4127,7 +4127,7 @@ class $t extends te {
|
|
|
4127
4127
|
let t;
|
|
4128
4128
|
for (let e = 0, i = this.animations_.length; e < i; ++e) {
|
|
4129
4129
|
const s = this.animations_[e];
|
|
4130
|
-
if (s[0].callback &&
|
|
4130
|
+
if (s[0].callback && xn(s[0].callback, !1), !t)
|
|
4131
4131
|
for (let r = 0, o = s.length; r < o; ++r) {
|
|
4132
4132
|
const a = s[r];
|
|
4133
4133
|
if (!a.complete) {
|
|
@@ -4199,7 +4199,7 @@ class $t extends te {
|
|
|
4199
4199
|
if (r) {
|
|
4200
4200
|
this.animations_[i] = null, this.setHint(pt.ANIMATING, -1), this.nextCenter_ = null, this.nextResolution_ = NaN, this.nextRotation_ = NaN;
|
|
4201
4201
|
const o = s[0].callback;
|
|
4202
|
-
o &&
|
|
4202
|
+
o && xn(o, !0);
|
|
4203
4203
|
}
|
|
4204
4204
|
}
|
|
4205
4205
|
this.animations_ = this.animations_.filter(Boolean), e && this.updateAnimationKey_ === void 0 && (this.updateAnimationKey_ = requestAnimationFrame(
|
|
@@ -4617,7 +4617,7 @@ class $t extends te {
|
|
|
4617
4617
|
"Invalid extent or geometry provided as `geometry`"
|
|
4618
4618
|
), Array.isArray(t)) {
|
|
4619
4619
|
J(
|
|
4620
|
-
|
|
4620
|
+
!$n(t),
|
|
4621
4621
|
"Cannot fit empty extent provided as `geometry`"
|
|
4622
4622
|
);
|
|
4623
4623
|
const s = we(t, this.getProjection());
|
|
@@ -4665,7 +4665,7 @@ class $t extends te {
|
|
|
4665
4665
|
l = isNaN(l) ? o : Math.max(l, o), l = this.getConstrainedResolution(l, r ? 0 : 1);
|
|
4666
4666
|
const c = this.getRotation(), h = Math.sin(c), u = Math.cos(c), d = Ye(a);
|
|
4667
4667
|
d[0] += (s[1] - s[3]) / 2 * l, d[1] += (s[0] - s[2]) / 2 * l;
|
|
4668
|
-
const f = d[0] * u - d[1] * h, g = d[1] * u + d[0] * h, m = this.getConstrainedCenter([f, g], l), _ = e.callback ? e.callback :
|
|
4668
|
+
const f = d[0] * u - d[1] * h, g = d[1] * u + d[0] * h, m = this.getConstrainedCenter([f, g], l), _ = e.callback ? e.callback : Bi;
|
|
4669
4669
|
e.duration !== void 0 ? this.animateInternal(
|
|
4670
4670
|
{
|
|
4671
4671
|
resolution: l,
|
|
@@ -4674,7 +4674,7 @@ class $t extends te {
|
|
|
4674
4674
|
easing: e.easing
|
|
4675
4675
|
},
|
|
4676
4676
|
_
|
|
4677
|
-
) : (this.targetResolution_ = l, this.targetCenter_ = m, this.applyTargetState_(!1, !0),
|
|
4677
|
+
) : (this.targetResolution_ = l, this.targetCenter_ = m, this.applyTargetState_(!1, !0), xn(_, !0));
|
|
4678
4678
|
}
|
|
4679
4679
|
/**
|
|
4680
4680
|
* Center on coordinate and view position.
|
|
@@ -4898,7 +4898,7 @@ class $t extends te {
|
|
|
4898
4898
|
r
|
|
4899
4899
|
)
|
|
4900
4900
|
);
|
|
4901
|
-
this.get(Yt.ROTATION) !== s && this.set(Yt.ROTATION, s), this.get(Yt.RESOLUTION) !== o && (this.set(Yt.RESOLUTION, o), this.set("zoom", this.getZoom(), !0)), (!a || !this.get(Yt.CENTER) || !
|
|
4901
|
+
this.get(Yt.ROTATION) !== s && this.set(Yt.ROTATION, s), this.get(Yt.RESOLUTION) !== o && (this.set(Yt.RESOLUTION, o), this.set("zoom", this.getZoom(), !0)), (!a || !this.get(Yt.CENTER) || !Mn(this.get(Yt.CENTER), a)) && this.set(Yt.CENTER, a), this.getAnimating() && !t && this.cancelAnimations(), this.cancelAnchor_ = void 0;
|
|
4902
4902
|
}
|
|
4903
4903
|
/**
|
|
4904
4904
|
* If any constraints need to be applied, an animation will be triggered.
|
|
@@ -4931,7 +4931,7 @@ class $t extends te {
|
|
|
4931
4931
|
this.targetResolution_ = a, this.targetRotation_ = r, this.targetCenter_ = l, this.applyTargetState_();
|
|
4932
4932
|
return;
|
|
4933
4933
|
}
|
|
4934
|
-
i = i || (t === 0 ? this.cancelAnchor_ : void 0), this.cancelAnchor_ = void 0, (this.getResolution() !== a || this.getRotation() !== r || !this.getCenterInternal() || !
|
|
4934
|
+
i = i || (t === 0 ? this.cancelAnchor_ : void 0), this.cancelAnchor_ = void 0, (this.getResolution() !== a || this.getRotation() !== r || !this.getCenterInternal() || !Mn(this.getCenterInternal(), l)) && (this.getAnimating() && this.cancelAnimations(), this.animateInternal({
|
|
4935
4935
|
rotation: r,
|
|
4936
4936
|
center: l,
|
|
4937
4937
|
resolution: a,
|
|
@@ -5015,7 +5015,7 @@ class $t extends te {
|
|
|
5015
5015
|
return this.constraints_.resolution(t, e, i);
|
|
5016
5016
|
}
|
|
5017
5017
|
}
|
|
5018
|
-
function
|
|
5018
|
+
function xn(n, t) {
|
|
5019
5019
|
setTimeout(function() {
|
|
5020
5020
|
n(t);
|
|
5021
5021
|
}, 0);
|
|
@@ -5088,7 +5088,7 @@ function fc(n) {
|
|
|
5088
5088
|
return Rr;
|
|
5089
5089
|
}
|
|
5090
5090
|
function gc(n) {
|
|
5091
|
-
return !(n.sourceCenter && n.targetCenter && !
|
|
5091
|
+
return !(n.sourceCenter && n.targetCenter && !Mn(n.sourceCenter, n.targetCenter) || n.sourceResolution !== n.targetResolution || n.sourceRotation !== n.targetRotation);
|
|
5092
5092
|
}
|
|
5093
5093
|
function ys(n, t, e, i, s) {
|
|
5094
5094
|
const r = Math.cos(-s);
|
|
@@ -5097,7 +5097,7 @@ function ys(n, t, e, i, s) {
|
|
|
5097
5097
|
const c = a * r - l * o, h = l * r + a * o;
|
|
5098
5098
|
return [c, h];
|
|
5099
5099
|
}
|
|
5100
|
-
const
|
|
5100
|
+
const En = "ol-hidden", ts = "ol-unselectable", Tr = "ol-control", wo = "ol-collapsed", _c = new RegExp(
|
|
5101
5101
|
[
|
|
5102
5102
|
"^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)",
|
|
5103
5103
|
"(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)",
|
|
@@ -5145,10 +5145,10 @@ function ht(n, t, e, i) {
|
|
|
5145
5145
|
s.getContext("2d", i);
|
|
5146
5146
|
}
|
|
5147
5147
|
let xs;
|
|
5148
|
-
function
|
|
5148
|
+
function Fn() {
|
|
5149
5149
|
return xs || (xs = ht(1, 1)), xs;
|
|
5150
5150
|
}
|
|
5151
|
-
function
|
|
5151
|
+
function es(n) {
|
|
5152
5152
|
const t = n.canvas;
|
|
5153
5153
|
t.width = 1, t.height = 1, n.clearRect(0, 0, 1, 1);
|
|
5154
5154
|
}
|
|
@@ -5217,7 +5217,7 @@ class Ir extends te {
|
|
|
5217
5217
|
it(this.listenerKeys[e]);
|
|
5218
5218
|
if (this.listenerKeys.length = 0, this.map_ = t, t) {
|
|
5219
5219
|
const e = this.target_ ?? t.getOverlayContainerStopEvent();
|
|
5220
|
-
this.element && e.appendChild(this.element), this.render !==
|
|
5220
|
+
this.element && e.appendChild(this.element), this.render !== Bi && this.listenerKeys.push(
|
|
5221
5221
|
H(t, Ee.POSTRENDER, this.render, this)
|
|
5222
5222
|
), t.render();
|
|
5223
5223
|
}
|
|
@@ -5262,7 +5262,7 @@ class yc extends Ir {
|
|
|
5262
5262
|
this.handleClick_.bind(this),
|
|
5263
5263
|
!1
|
|
5264
5264
|
);
|
|
5265
|
-
const c = e + " " +
|
|
5265
|
+
const c = e + " " + ts + " " + Tr + (this.collapsed_ && this.collapsible_ ? " " + wo : "") + (this.collapsible_ ? "" : " ol-uncollapsible"), h = this.element;
|
|
5266
5266
|
h.className = c, h.appendChild(this.toggleButton_), h.appendChild(this.ulElement_), this.renderedAttributions_ = [], this.renderedVisible_ = !0;
|
|
5267
5267
|
}
|
|
5268
5268
|
/**
|
|
@@ -5381,8 +5381,8 @@ class xc extends Ir {
|
|
|
5381
5381
|
this.handleClick_.bind(this),
|
|
5382
5382
|
!1
|
|
5383
5383
|
);
|
|
5384
|
-
const a = e + " " +
|
|
5385
|
-
l.className = a, l.appendChild(o), this.callResetNorth_ = t.resetNorth ? t.resetNorth : void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250, this.autoHide_ = t.autoHide !== void 0 ? t.autoHide : !0, this.rotation_ = void 0, this.autoHide_ && this.element.classList.add(
|
|
5384
|
+
const a = e + " " + ts + " " + Tr, l = this.element;
|
|
5385
|
+
l.className = a, l.appendChild(o), this.callResetNorth_ = t.resetNorth ? t.resetNorth : void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250, this.autoHide_ = t.autoHide !== void 0 ? t.autoHide : !0, this.rotation_ = void 0, this.autoHide_ && this.element.classList.add(En);
|
|
5386
5386
|
}
|
|
5387
5387
|
/**
|
|
5388
5388
|
* @param {MouseEvent} event The event to handle
|
|
@@ -5418,8 +5418,8 @@ class xc extends Ir {
|
|
|
5418
5418
|
if (i != this.rotation_) {
|
|
5419
5419
|
const s = "rotate(" + i + "rad)";
|
|
5420
5420
|
if (this.autoHide_) {
|
|
5421
|
-
const r = this.element.classList.contains(
|
|
5422
|
-
!r && i === 0 ? this.element.classList.add(
|
|
5421
|
+
const r = this.element.classList.contains(En);
|
|
5422
|
+
!r && i === 0 ? this.element.classList.add(En) : r && i !== 0 && this.element.classList.remove(En);
|
|
5423
5423
|
}
|
|
5424
5424
|
this.label_.style.transform = s;
|
|
5425
5425
|
}
|
|
@@ -5451,7 +5451,7 @@ class Ec extends Ir {
|
|
|
5451
5451
|
this.handleClick_.bind(this, -i),
|
|
5452
5452
|
!1
|
|
5453
5453
|
);
|
|
5454
|
-
const d = e + " " +
|
|
5454
|
+
const d = e + " " + ts + " " + Tr, f = this.element;
|
|
5455
5455
|
f.className = d, f.appendChild(h), f.appendChild(u), this.duration_ = t.duration !== void 0 ? t.duration : 250;
|
|
5456
5456
|
}
|
|
5457
5457
|
/**
|
|
@@ -5543,7 +5543,7 @@ class wc {
|
|
|
5543
5543
|
const To = {
|
|
5544
5544
|
ACTIVE: "active"
|
|
5545
5545
|
};
|
|
5546
|
-
class
|
|
5546
|
+
class rn extends te {
|
|
5547
5547
|
/**
|
|
5548
5548
|
* @param {InteractionOptions} [options] Options.
|
|
5549
5549
|
*/
|
|
@@ -5621,7 +5621,7 @@ function Sr(n, t, e, i) {
|
|
|
5621
5621
|
easing: Ci
|
|
5622
5622
|
});
|
|
5623
5623
|
}
|
|
5624
|
-
class vc extends
|
|
5624
|
+
class vc extends rn {
|
|
5625
5625
|
/**
|
|
5626
5626
|
* @param {Options} [options] Options.
|
|
5627
5627
|
*/
|
|
@@ -5665,7 +5665,7 @@ const Tc = function(n) {
|
|
|
5665
5665
|
}, Xa = function(n) {
|
|
5666
5666
|
const t = n.map.getTargetElement(), e = t.getRootNode();
|
|
5667
5667
|
return (e instanceof ShadowRoot ? e.host : t).hasAttribute("tabindex") ? Ic(n) : !0;
|
|
5668
|
-
}, Sc =
|
|
5668
|
+
}, Sc = Ki, Ya = function(n) {
|
|
5669
5669
|
const t = n.originalEvent;
|
|
5670
5670
|
return "pointerId" in t && t.button == 0 && !(Xl && ha && t.ctrlKey);
|
|
5671
5671
|
}, Ka = function(n) {
|
|
@@ -5696,7 +5696,7 @@ const Tc = function(n) {
|
|
|
5696
5696
|
const t = n.originalEvent;
|
|
5697
5697
|
return "pointerId" in t && t.isPrimary && t.button === 0;
|
|
5698
5698
|
};
|
|
5699
|
-
class
|
|
5699
|
+
class on extends rn {
|
|
5700
5700
|
/**
|
|
5701
5701
|
* @param {Options} [options] Options.
|
|
5702
5702
|
*/
|
|
@@ -5797,13 +5797,13 @@ function Lr(n) {
|
|
|
5797
5797
|
e += n[s].clientX, i += n[s].clientY;
|
|
5798
5798
|
return { clientX: e / t, clientY: i / t };
|
|
5799
5799
|
}
|
|
5800
|
-
class Ac extends
|
|
5800
|
+
class Ac extends on {
|
|
5801
5801
|
/**
|
|
5802
5802
|
* @param {Options} [options] Options.
|
|
5803
5803
|
*/
|
|
5804
5804
|
constructor(t) {
|
|
5805
5805
|
super({
|
|
5806
|
-
stopDown:
|
|
5806
|
+
stopDown: Kn
|
|
5807
5807
|
}), t = t || {}, this.kinetic_ = t.kinetic, this.lastCentroid = null, this.lastPointersCount_, this.panning_ = !1;
|
|
5808
5808
|
const e = t.condition ? t.condition : qs(Ka, Mc);
|
|
5809
5809
|
this.condition_ = t.onFocusOnly ? qs(Xa, e) : e, this.noKinetic_ = !1;
|
|
@@ -5866,13 +5866,13 @@ class Ac extends rn {
|
|
|
5866
5866
|
return !1;
|
|
5867
5867
|
}
|
|
5868
5868
|
}
|
|
5869
|
-
class Pc extends
|
|
5869
|
+
class Pc extends on {
|
|
5870
5870
|
/**
|
|
5871
5871
|
* @param {Options} [options] Options.
|
|
5872
5872
|
*/
|
|
5873
5873
|
constructor(t) {
|
|
5874
5874
|
t = t || {}, super({
|
|
5875
|
-
stopDown:
|
|
5875
|
+
stopDown: Kn
|
|
5876
5876
|
}), this.condition_ = t.condition ? t.condition : Tc, this.lastAngle_ = void 0, this.duration_ = t.duration !== void 0 ? t.duration : 250;
|
|
5877
5877
|
}
|
|
5878
5878
|
/**
|
|
@@ -5912,7 +5912,7 @@ class Pc extends rn {
|
|
|
5912
5912
|
return Es(t) && Ya(t) && this.condition_(t) ? (t.map.getView().beginInteraction(), this.lastAngle_ = void 0, !0) : !1;
|
|
5913
5913
|
}
|
|
5914
5914
|
}
|
|
5915
|
-
class Oc extends
|
|
5915
|
+
class Oc extends Yn {
|
|
5916
5916
|
/**
|
|
5917
5917
|
* @param {string} className CSS class name.
|
|
5918
5918
|
*/
|
|
@@ -5966,7 +5966,7 @@ class Oc extends Xn {
|
|
|
5966
5966
|
this.map_.getCoordinateFromPixelInternal,
|
|
5967
5967
|
this.map_
|
|
5968
5968
|
);
|
|
5969
|
-
s[4] = s[0].slice(), this.geometry_ ? this.geometry_.setCoordinates([s]) : this.geometry_ = new
|
|
5969
|
+
s[4] = s[0].slice(), this.geometry_ ? this.geometry_.setCoordinates([s]) : this.geometry_ = new Vi([s]);
|
|
5970
5970
|
}
|
|
5971
5971
|
/**
|
|
5972
5972
|
* @return {import("../geom/Polygon.js").default} Geometry.
|
|
@@ -6001,7 +6001,7 @@ const qe = {
|
|
|
6001
6001
|
*/
|
|
6002
6002
|
BOXCANCEL: "boxcancel"
|
|
6003
6003
|
};
|
|
6004
|
-
class
|
|
6004
|
+
class bi extends de {
|
|
6005
6005
|
/**
|
|
6006
6006
|
* @param {string} type The event type.
|
|
6007
6007
|
* @param {import("../coordinate.js").Coordinate} coordinate The event coordinate.
|
|
@@ -6011,7 +6011,7 @@ class Li extends de {
|
|
|
6011
6011
|
super(t), this.coordinate = e, this.mapBrowserEvent = i;
|
|
6012
6012
|
}
|
|
6013
6013
|
}
|
|
6014
|
-
class Dc extends
|
|
6014
|
+
class Dc extends on {
|
|
6015
6015
|
/**
|
|
6016
6016
|
* @param {Options} [options] Options.
|
|
6017
6017
|
*/
|
|
@@ -6046,7 +6046,7 @@ class Dc extends rn {
|
|
|
6046
6046
|
*/
|
|
6047
6047
|
handleDragEvent(t) {
|
|
6048
6048
|
this.startPixel_ && (this.box_.setPixels(this.startPixel_, t.pixel), this.dispatchEvent(
|
|
6049
|
-
new
|
|
6049
|
+
new bi(
|
|
6050
6050
|
qe.BOXDRAG,
|
|
6051
6051
|
t.coordinate,
|
|
6052
6052
|
t
|
|
@@ -6068,7 +6068,7 @@ class Dc extends rn {
|
|
|
6068
6068
|
t.pixel
|
|
6069
6069
|
);
|
|
6070
6070
|
return e && this.onBoxEnd(t), this.dispatchEvent(
|
|
6071
|
-
new
|
|
6071
|
+
new bi(
|
|
6072
6072
|
e ? qe.BOXEND : qe.BOXCANCEL,
|
|
6073
6073
|
t.coordinate,
|
|
6074
6074
|
t
|
|
@@ -6083,7 +6083,7 @@ class Dc extends rn {
|
|
|
6083
6083
|
*/
|
|
6084
6084
|
handleDownEvent(t) {
|
|
6085
6085
|
return this.condition_(t) ? (this.startPixel_ = t.pixel, this.box_.setMap(t.map), this.box_.setPixels(this.startPixel_, this.startPixel_), this.dispatchEvent(
|
|
6086
|
-
new
|
|
6086
|
+
new bi(
|
|
6087
6087
|
qe.BOXSTART,
|
|
6088
6088
|
t.coordinate,
|
|
6089
6089
|
t
|
|
@@ -6105,7 +6105,7 @@ class Dc extends rn {
|
|
|
6105
6105
|
*/
|
|
6106
6106
|
setActive(t) {
|
|
6107
6107
|
t || (this.box_.setMap(null), this.startPixel_ && (this.dispatchEvent(
|
|
6108
|
-
new
|
|
6108
|
+
new bi(qe.BOXCANCEL, this.startPixel_, null)
|
|
6109
6109
|
), this.startPixel_ = null)), super.setActive(t);
|
|
6110
6110
|
}
|
|
6111
6111
|
/**
|
|
@@ -6114,7 +6114,7 @@ class Dc extends rn {
|
|
|
6114
6114
|
*/
|
|
6115
6115
|
setMap(t) {
|
|
6116
6116
|
this.getMap() && (this.box_.setMap(null), this.startPixel_ && (this.dispatchEvent(
|
|
6117
|
-
new
|
|
6117
|
+
new bi(qe.BOXCANCEL, this.startPixel_, null)
|
|
6118
6118
|
), this.startPixel_ = null)), super.setMap(t);
|
|
6119
6119
|
}
|
|
6120
6120
|
}
|
|
@@ -6158,7 +6158,7 @@ const Oe = {
|
|
|
6158
6158
|
RIGHT: "ArrowRight",
|
|
6159
6159
|
DOWN: "ArrowDown"
|
|
6160
6160
|
};
|
|
6161
|
-
class kc extends
|
|
6161
|
+
class kc extends rn {
|
|
6162
6162
|
/**
|
|
6163
6163
|
* @param {Options} [options] Options.
|
|
6164
6164
|
*/
|
|
@@ -6193,7 +6193,7 @@ class kc extends sn {
|
|
|
6193
6193
|
return !e;
|
|
6194
6194
|
}
|
|
6195
6195
|
}
|
|
6196
|
-
class Nc extends
|
|
6196
|
+
class Nc extends rn {
|
|
6197
6197
|
/**
|
|
6198
6198
|
* @param {Options} [options] Options.
|
|
6199
6199
|
*/
|
|
@@ -6226,7 +6226,7 @@ class Nc extends sn {
|
|
|
6226
6226
|
}
|
|
6227
6227
|
}
|
|
6228
6228
|
const Gc = 40, zc = 300;
|
|
6229
|
-
class Wc extends
|
|
6229
|
+
class Wc extends rn {
|
|
6230
6230
|
/**
|
|
6231
6231
|
* @param {Options} [options] Options.
|
|
6232
6232
|
*/
|
|
@@ -6326,7 +6326,7 @@ class Wc extends sn {
|
|
|
6326
6326
|
this.useAnchor_ = t, t || (this.lastAnchor_ = null);
|
|
6327
6327
|
}
|
|
6328
6328
|
}
|
|
6329
|
-
class Xc extends
|
|
6329
|
+
class Xc extends on {
|
|
6330
6330
|
/**
|
|
6331
6331
|
* @param {Options} [options] Options.
|
|
6332
6332
|
*/
|
|
@@ -6336,7 +6336,7 @@ class Xc extends rn {
|
|
|
6336
6336
|
/** @type {import("./Pointer.js").Options} */
|
|
6337
6337
|
t
|
|
6338
6338
|
);
|
|
6339
|
-
e.stopDown || (e.stopDown =
|
|
6339
|
+
e.stopDown || (e.stopDown = Kn), super(e), this.anchor_ = null, this.lastAngle_ = void 0, this.rotating_ = !1, this.rotationDelta_ = 0, this.threshold_ = t.threshold !== void 0 ? t.threshold : 0.3, this.duration_ = t.duration !== void 0 ? t.duration : 250;
|
|
6340
6340
|
}
|
|
6341
6341
|
/**
|
|
6342
6342
|
* Handle pointer drag events.
|
|
@@ -6382,7 +6382,7 @@ class Xc extends rn {
|
|
|
6382
6382
|
return !1;
|
|
6383
6383
|
}
|
|
6384
6384
|
}
|
|
6385
|
-
class Yc extends
|
|
6385
|
+
class Yc extends on {
|
|
6386
6386
|
/**
|
|
6387
6387
|
* @param {Options} [options] Options.
|
|
6388
6388
|
*/
|
|
@@ -6392,7 +6392,7 @@ class Yc extends rn {
|
|
|
6392
6392
|
/** @type {import("./Pointer.js").Options} */
|
|
6393
6393
|
t
|
|
6394
6394
|
);
|
|
6395
|
-
e.stopDown || (e.stopDown =
|
|
6395
|
+
e.stopDown || (e.stopDown = Kn), super(e), this.anchor_ = null, this.duration_ = t.duration !== void 0 ? t.duration : 400, this.lastDistance_ = void 0, this.lastScaleDelta_ = 1;
|
|
6396
6396
|
}
|
|
6397
6397
|
/**
|
|
6398
6398
|
* Handle pointer drag events.
|
|
@@ -6794,7 +6794,7 @@ class wi extends Za {
|
|
|
6794
6794
|
);
|
|
6795
6795
|
for (const i in this.listenerKeys_)
|
|
6796
6796
|
this.listenerKeys_[i].forEach(it);
|
|
6797
|
-
|
|
6797
|
+
en(this.listenerKeys_);
|
|
6798
6798
|
const e = t.getArray();
|
|
6799
6799
|
for (let i = 0, s = e.length; i < s; i++) {
|
|
6800
6800
|
const r = e[i];
|
|
@@ -6968,7 +6968,7 @@ const Nt = {
|
|
|
6968
6968
|
*/
|
|
6969
6969
|
RENDERCOMPLETE: "rendercomplete"
|
|
6970
6970
|
};
|
|
6971
|
-
class
|
|
6971
|
+
class is extends Za {
|
|
6972
6972
|
/**
|
|
6973
6973
|
* @param {Options<SourceType>} options Layer options.
|
|
6974
6974
|
*/
|
|
@@ -7251,14 +7251,14 @@ function ja(n, t, e = 0, i = n.length - 1, s = Bc) {
|
|
|
7251
7251
|
}
|
|
7252
7252
|
const r = n[t];
|
|
7253
7253
|
let o = e, a = i;
|
|
7254
|
-
for (
|
|
7255
|
-
for (
|
|
7254
|
+
for (Mi(n, e, t), s(n[i], r) > 0 && Mi(n, e, i); o < a; ) {
|
|
7255
|
+
for (Mi(n, o, a), o++, a--; s(n[o], r) < 0; ) o++;
|
|
7256
7256
|
for (; s(n[a], r) > 0; ) a--;
|
|
7257
7257
|
}
|
|
7258
|
-
s(n[e], r) === 0 ?
|
|
7258
|
+
s(n[e], r) === 0 ? Mi(n, e, a) : (a++, Mi(n, a, i)), a <= t && (e = a + 1), t <= a && (i = a - 1);
|
|
7259
7259
|
}
|
|
7260
7260
|
}
|
|
7261
|
-
function
|
|
7261
|
+
function Mi(n, t, e) {
|
|
7262
7262
|
const i = n[t];
|
|
7263
7263
|
n[t] = n[e], n[e] = i;
|
|
7264
7264
|
}
|
|
@@ -7275,12 +7275,12 @@ let Ua = class {
|
|
|
7275
7275
|
search(t) {
|
|
7276
7276
|
let e = this.data;
|
|
7277
7277
|
const i = [];
|
|
7278
|
-
if (!
|
|
7278
|
+
if (!wn(t, e)) return i;
|
|
7279
7279
|
const s = this.toBBox, r = [];
|
|
7280
7280
|
for (; e; ) {
|
|
7281
7281
|
for (let o = 0; o < e.children.length; o++) {
|
|
7282
7282
|
const a = e.children[o], l = e.leaf ? s(a) : a;
|
|
7283
|
-
|
|
7283
|
+
wn(t, l) && (e.leaf ? i.push(a) : Rs(t, l) ? this._all(a, i) : r.push(a));
|
|
7284
7284
|
}
|
|
7285
7285
|
e = r.pop();
|
|
7286
7286
|
}
|
|
@@ -7288,12 +7288,12 @@ let Ua = class {
|
|
|
7288
7288
|
}
|
|
7289
7289
|
collides(t) {
|
|
7290
7290
|
let e = this.data;
|
|
7291
|
-
if (!
|
|
7291
|
+
if (!wn(t, e)) return !1;
|
|
7292
7292
|
const i = [];
|
|
7293
7293
|
for (; e; ) {
|
|
7294
7294
|
for (let s = 0; s < e.children.length; s++) {
|
|
7295
7295
|
const r = e.children[s], o = e.leaf ? this.toBBox(r) : r;
|
|
7296
|
-
if (
|
|
7296
|
+
if (wn(t, o)) {
|
|
7297
7297
|
if (e.leaf || Rs(t, o)) return !0;
|
|
7298
7298
|
i.push(r);
|
|
7299
7299
|
}
|
|
@@ -7396,7 +7396,7 @@ let Ua = class {
|
|
|
7396
7396
|
}
|
|
7397
7397
|
_insert(t, e, i) {
|
|
7398
7398
|
const s = i ? t : this.toBBox(t), r = [], o = this._chooseSubtree(s, this.data, e, r);
|
|
7399
|
-
for (o.children.push(t),
|
|
7399
|
+
for (o.children.push(t), ki(o, s); e >= 0 && r[e].children.length > this._maxEntries; )
|
|
7400
7400
|
this._split(r, e), e--;
|
|
7401
7401
|
this._adjustParentBBoxes(s, r, e);
|
|
7402
7402
|
}
|
|
@@ -7413,7 +7413,7 @@ let Ua = class {
|
|
|
7413
7413
|
_chooseSplitIndex(t, e, i) {
|
|
7414
7414
|
let s, r = 1 / 0, o = 1 / 0;
|
|
7415
7415
|
for (let a = e; a <= i - e; a++) {
|
|
7416
|
-
const l =
|
|
7416
|
+
const l = Fi(t, 0, a, this.toBBox), c = Fi(t, a, i, this.toBBox), h = Hc(l, c), u = ws(l) + ws(c);
|
|
7417
7417
|
h < r ? (r = h, s = a, o = u < o ? u : o) : h === r && u < o && (o = u, s = a);
|
|
7418
7418
|
}
|
|
7419
7419
|
return s || i - e;
|
|
@@ -7426,21 +7426,21 @@ let Ua = class {
|
|
|
7426
7426
|
// total margin of all possible split distributions where each node is at least m full
|
|
7427
7427
|
_allDistMargin(t, e, i, s) {
|
|
7428
7428
|
t.children.sort(s);
|
|
7429
|
-
const r = this.toBBox, o =
|
|
7430
|
-
let l =
|
|
7429
|
+
const r = this.toBBox, o = Fi(t, 0, e, r), a = Fi(t, i - e, i, r);
|
|
7430
|
+
let l = Cn(o) + Cn(a);
|
|
7431
7431
|
for (let c = e; c < i - e; c++) {
|
|
7432
7432
|
const h = t.children[c];
|
|
7433
|
-
|
|
7433
|
+
ki(o, t.leaf ? r(h) : h), l += Cn(o);
|
|
7434
7434
|
}
|
|
7435
7435
|
for (let c = i - e - 1; c >= e; c--) {
|
|
7436
7436
|
const h = t.children[c];
|
|
7437
|
-
|
|
7437
|
+
ki(a, t.leaf ? r(h) : h), l += Cn(a);
|
|
7438
7438
|
}
|
|
7439
7439
|
return l;
|
|
7440
7440
|
}
|
|
7441
7441
|
_adjustParentBBoxes(t, e, i) {
|
|
7442
7442
|
for (let s = i; s >= 0; s--)
|
|
7443
|
-
|
|
7443
|
+
ki(e[s], t);
|
|
7444
7444
|
}
|
|
7445
7445
|
_condense(t) {
|
|
7446
7446
|
for (let e = t.length - 1, i; e >= 0; e--)
|
|
@@ -7454,17 +7454,17 @@ function Zc(n, t, e) {
|
|
|
7454
7454
|
return -1;
|
|
7455
7455
|
}
|
|
7456
7456
|
function Je(n, t) {
|
|
7457
|
-
|
|
7457
|
+
Fi(n, 0, n.children.length, t, n);
|
|
7458
7458
|
}
|
|
7459
|
-
function
|
|
7459
|
+
function Fi(n, t, e, i, s) {
|
|
7460
7460
|
s || (s = si(null)), s.minX = 1 / 0, s.minY = 1 / 0, s.maxX = -1 / 0, s.maxY = -1 / 0;
|
|
7461
7461
|
for (let r = t; r < e; r++) {
|
|
7462
7462
|
const o = n.children[r];
|
|
7463
|
-
|
|
7463
|
+
ki(s, n.leaf ? i(o) : o);
|
|
7464
7464
|
}
|
|
7465
7465
|
return s;
|
|
7466
7466
|
}
|
|
7467
|
-
function
|
|
7467
|
+
function ki(n, t) {
|
|
7468
7468
|
return n.minX = Math.min(n.minX, t.minX), n.minY = Math.min(n.minY, t.minY), n.maxX = Math.max(n.maxX, t.maxX), n.maxY = Math.max(n.maxY, t.maxY), n;
|
|
7469
7469
|
}
|
|
7470
7470
|
function jc(n, t) {
|
|
@@ -7476,7 +7476,7 @@ function Uc(n, t) {
|
|
|
7476
7476
|
function ws(n) {
|
|
7477
7477
|
return (n.maxX - n.minX) * (n.maxY - n.minY);
|
|
7478
7478
|
}
|
|
7479
|
-
function
|
|
7479
|
+
function Cn(n) {
|
|
7480
7480
|
return n.maxX - n.minX + (n.maxY - n.minY);
|
|
7481
7481
|
}
|
|
7482
7482
|
function Vc(n, t) {
|
|
@@ -7489,7 +7489,7 @@ function Hc(n, t) {
|
|
|
7489
7489
|
function Rs(n, t) {
|
|
7490
7490
|
return n.minX <= t.minX && n.minY <= t.minY && t.maxX <= n.maxX && t.maxY <= n.maxY;
|
|
7491
7491
|
}
|
|
7492
|
-
function
|
|
7492
|
+
function wn(n, t) {
|
|
7493
7493
|
return t.minX <= n.maxX && t.minY <= n.maxY && t.maxX >= n.minX && t.maxY >= n.minY;
|
|
7494
7494
|
}
|
|
7495
7495
|
function si(n) {
|
|
@@ -7520,10 +7520,10 @@ function $c() {
|
|
|
7520
7520
|
})), vs;
|
|
7521
7521
|
}
|
|
7522
7522
|
const qc = /^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Jc = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, Qc = /^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i, tu = /^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;
|
|
7523
|
-
function
|
|
7523
|
+
function Rn(n, t) {
|
|
7524
7524
|
return n.endsWith("%") ? Number(n.substring(0, n.length - 1)) / t : Number(n);
|
|
7525
7525
|
}
|
|
7526
|
-
function
|
|
7526
|
+
function Yi(n) {
|
|
7527
7527
|
throw new Error('failed to parse "' + n + '" as color');
|
|
7528
7528
|
}
|
|
7529
7529
|
function Va(n) {
|
|
@@ -7532,13 +7532,13 @@ function Va(n) {
|
|
|
7532
7532
|
if (r) {
|
|
7533
7533
|
const o = r[4], a = 100 / 255;
|
|
7534
7534
|
return [
|
|
7535
|
-
nt(
|
|
7536
|
-
nt(
|
|
7537
|
-
nt(
|
|
7538
|
-
o !== void 0 ? nt(
|
|
7535
|
+
nt(Rn(r[1], a) + 0.5 | 0, 0, 255),
|
|
7536
|
+
nt(Rn(r[2], a) + 0.5 | 0, 0, 255),
|
|
7537
|
+
nt(Rn(r[3], a) + 0.5 | 0, 0, 255),
|
|
7538
|
+
o !== void 0 ? nt(Rn(o, 100), 0, 1) : 1
|
|
7539
7539
|
];
|
|
7540
7540
|
}
|
|
7541
|
-
|
|
7541
|
+
Yi(n);
|
|
7542
7542
|
}
|
|
7543
7543
|
if (n.startsWith("#")) {
|
|
7544
7544
|
if (tu.test(n)) {
|
|
@@ -7549,23 +7549,23 @@ function Va(n) {
|
|
|
7549
7549
|
}
|
|
7550
7550
|
return a[3] = a[3] / 255, a;
|
|
7551
7551
|
}
|
|
7552
|
-
|
|
7552
|
+
Yi(n);
|
|
7553
7553
|
}
|
|
7554
7554
|
const t = $c();
|
|
7555
7555
|
t.fillStyle = "#abcdef";
|
|
7556
7556
|
let e = t.fillStyle;
|
|
7557
|
-
t.fillStyle = n, t.fillStyle === e && (t.fillStyle = "#fedcba", e = t.fillStyle, t.fillStyle = n, t.fillStyle === e &&
|
|
7557
|
+
t.fillStyle = n, t.fillStyle === e && (t.fillStyle = "#fedcba", e = t.fillStyle, t.fillStyle = n, t.fillStyle === e && Yi(n));
|
|
7558
7558
|
const i = t.fillStyle;
|
|
7559
7559
|
if (i.startsWith("#") || i.startsWith("rgba"))
|
|
7560
7560
|
return Va(i);
|
|
7561
7561
|
t.clearRect(0, 0, 1, 1), t.fillRect(0, 0, 1, 1);
|
|
7562
7562
|
const s = Array.from(t.getImageData(0, 0, 1, 1).data);
|
|
7563
|
-
return s[3] =
|
|
7563
|
+
return s[3] = Zn(s[3] / 255, 3), s;
|
|
7564
7564
|
}
|
|
7565
7565
|
function eu(n) {
|
|
7566
7566
|
return typeof n == "string" ? n : Pr(n);
|
|
7567
7567
|
}
|
|
7568
|
-
const iu = 1024,
|
|
7568
|
+
const iu = 1024, Ai = {};
|
|
7569
7569
|
let Ts = 0;
|
|
7570
7570
|
function nu(n) {
|
|
7571
7571
|
if (n.length === 4)
|
|
@@ -7606,18 +7606,18 @@ function su(n) {
|
|
|
7606
7606
|
function Ar(n) {
|
|
7607
7607
|
if (n === "none")
|
|
7608
7608
|
return Mr;
|
|
7609
|
-
if (
|
|
7610
|
-
return
|
|
7609
|
+
if (Ai.hasOwnProperty(n))
|
|
7610
|
+
return Ai[n];
|
|
7611
7611
|
if (Ts >= iu) {
|
|
7612
7612
|
let e = 0;
|
|
7613
|
-
for (const i in
|
|
7614
|
-
(e++ & 3) === 0 && (delete
|
|
7613
|
+
for (const i in Ai)
|
|
7614
|
+
(e++ & 3) === 0 && (delete Ai[i], --Ts);
|
|
7615
7615
|
}
|
|
7616
7616
|
const t = Va(n);
|
|
7617
|
-
t.length !== 4 &&
|
|
7617
|
+
t.length !== 4 && Yi(n);
|
|
7618
7618
|
for (const e of t)
|
|
7619
|
-
isNaN(e) &&
|
|
7620
|
-
return
|
|
7619
|
+
isNaN(e) && Yi(n);
|
|
7620
|
+
return Ai[n] = t, ++Ts, t;
|
|
7621
7621
|
}
|
|
7622
7622
|
function yi(n) {
|
|
7623
7623
|
return Array.isArray(n) ? n : Ar(n);
|
|
@@ -7642,24 +7642,24 @@ function St(n, t) {
|
|
|
7642
7642
|
return Array.isArray(n) ? n : (t === void 0 ? t = [n, n] : (t[0] = n, t[1] = n), t);
|
|
7643
7643
|
}
|
|
7644
7644
|
let Ze = 0;
|
|
7645
|
-
const Et = 1 << Ze++, U = 1 << Ze++, Rt = 1 << Ze++, Bt = 1 << Ze++, Ke = 1 << Ze++,
|
|
7645
|
+
const Et = 1 << Ze++, U = 1 << Ze++, Rt = 1 << Ze++, Bt = 1 << Ze++, Ke = 1 << Ze++, Ni = 1 << Ze++, vn = Math.pow(2, Ze) - 1, Or = {
|
|
7646
7646
|
[Et]: "boolean",
|
|
7647
7647
|
[U]: "number",
|
|
7648
7648
|
[Rt]: "string",
|
|
7649
7649
|
[Bt]: "color",
|
|
7650
7650
|
[Ke]: "number[]",
|
|
7651
|
-
[
|
|
7651
|
+
[Ni]: "size"
|
|
7652
7652
|
}, ou = Object.keys(Or).map(Number).sort(le);
|
|
7653
7653
|
function au(n) {
|
|
7654
7654
|
return n in Or;
|
|
7655
7655
|
}
|
|
7656
|
-
function
|
|
7656
|
+
function Gi(n) {
|
|
7657
7657
|
const t = [];
|
|
7658
7658
|
for (const e of ou)
|
|
7659
|
-
|
|
7659
|
+
zi(n, e) && t.push(Or[e]);
|
|
7660
7660
|
return t.length === 0 ? "untyped" : t.length < 3 ? t.join(" or ") : t.slice(0, -1).join(", ") + ", or " + t[t.length - 1];
|
|
7661
7661
|
}
|
|
7662
|
-
function
|
|
7662
|
+
function zi(n, t) {
|
|
7663
7663
|
return (n & t) === t;
|
|
7664
7664
|
}
|
|
7665
7665
|
function ge(n, t) {
|
|
@@ -7673,7 +7673,7 @@ class lt {
|
|
|
7673
7673
|
constructor(t, e) {
|
|
7674
7674
|
if (!au(t))
|
|
7675
7675
|
throw new Error(
|
|
7676
|
-
`literal expressions must have a specific type, got ${
|
|
7676
|
+
`literal expressions must have a specific type, got ${Gi(t)}`
|
|
7677
7677
|
);
|
|
7678
7678
|
this.type = t, this.value = e;
|
|
7679
7679
|
}
|
|
@@ -7702,21 +7702,21 @@ function ft(n, t, e) {
|
|
|
7702
7702
|
case "boolean": {
|
|
7703
7703
|
if (ge(t, Rt))
|
|
7704
7704
|
return new lt(Rt, n ? "true" : "false");
|
|
7705
|
-
if (!
|
|
7705
|
+
if (!zi(t, Et))
|
|
7706
7706
|
throw new Error(
|
|
7707
|
-
`got a boolean, but expected ${
|
|
7707
|
+
`got a boolean, but expected ${Gi(t)}`
|
|
7708
7708
|
);
|
|
7709
7709
|
return new lt(Et, n);
|
|
7710
7710
|
}
|
|
7711
7711
|
case "number": {
|
|
7712
|
-
if (ge(t,
|
|
7713
|
-
return new lt(
|
|
7712
|
+
if (ge(t, Ni))
|
|
7713
|
+
return new lt(Ni, St(n));
|
|
7714
7714
|
if (ge(t, Et))
|
|
7715
7715
|
return new lt(Et, !!n);
|
|
7716
7716
|
if (ge(t, Rt))
|
|
7717
7717
|
return new lt(Rt, n.toString());
|
|
7718
|
-
if (!
|
|
7719
|
-
throw new Error(`got a number, but expected ${
|
|
7718
|
+
if (!zi(t, U))
|
|
7719
|
+
throw new Error(`got a number, but expected ${Gi(t)}`);
|
|
7720
7720
|
return new lt(U, n);
|
|
7721
7721
|
}
|
|
7722
7722
|
case "string": {
|
|
@@ -7724,8 +7724,8 @@ function ft(n, t, e) {
|
|
|
7724
7724
|
return new lt(Bt, Ar(n));
|
|
7725
7725
|
if (ge(t, Et))
|
|
7726
7726
|
return new lt(Et, !!n);
|
|
7727
|
-
if (!
|
|
7728
|
-
throw new Error(`got a string, but expected ${
|
|
7727
|
+
if (!zi(t, Rt))
|
|
7728
|
+
throw new Error(`got a string, but expected ${Gi(t)}`);
|
|
7729
7729
|
return new lt(Rt, n);
|
|
7730
7730
|
}
|
|
7731
7731
|
}
|
|
@@ -7738,12 +7738,12 @@ function ft(n, t, e) {
|
|
|
7738
7738
|
for (const i of n)
|
|
7739
7739
|
if (typeof i != "number")
|
|
7740
7740
|
throw new Error("expected an array of numbers");
|
|
7741
|
-
if (ge(t,
|
|
7741
|
+
if (ge(t, Ni)) {
|
|
7742
7742
|
if (n.length !== 2)
|
|
7743
7743
|
throw new Error(
|
|
7744
7744
|
`expected an array of two values for a size, got ${n.length}`
|
|
7745
7745
|
);
|
|
7746
|
-
return new lt(
|
|
7746
|
+
return new lt(Ni, n);
|
|
7747
7747
|
}
|
|
7748
7748
|
if (ge(t, Bt)) {
|
|
7749
7749
|
if (n.length === 3)
|
|
@@ -7754,9 +7754,9 @@ function ft(n, t, e) {
|
|
|
7754
7754
|
`expected an array of 3 or 4 values for a color, got ${n.length}`
|
|
7755
7755
|
);
|
|
7756
7756
|
}
|
|
7757
|
-
if (!
|
|
7757
|
+
if (!zi(t, Ke))
|
|
7758
7758
|
throw new Error(
|
|
7759
|
-
`got an array of numbers, but expected ${
|
|
7759
|
+
`got an array of numbers, but expected ${Gi(t)}`
|
|
7760
7760
|
);
|
|
7761
7761
|
return new lt(Ke, n);
|
|
7762
7762
|
}
|
|
@@ -7836,11 +7836,11 @@ const w = {
|
|
|
7836
7836
|
),
|
|
7837
7837
|
[w.Equal]: z(
|
|
7838
7838
|
X(2, 2),
|
|
7839
|
-
q(
|
|
7839
|
+
q(vn)
|
|
7840
7840
|
),
|
|
7841
7841
|
[w.NotEqual]: z(
|
|
7842
7842
|
X(2, 2),
|
|
7843
|
-
q(
|
|
7843
|
+
q(vn)
|
|
7844
7844
|
),
|
|
7845
7845
|
[w.GreaterThan]: z(
|
|
7846
7846
|
X(2, 2),
|
|
@@ -7944,11 +7944,11 @@ const w = {
|
|
|
7944
7944
|
[w.In]: z(X(2, 2), pu),
|
|
7945
7945
|
[w.Number]: z(
|
|
7946
7946
|
X(1, 1 / 0),
|
|
7947
|
-
q(
|
|
7947
|
+
q(vn)
|
|
7948
7948
|
),
|
|
7949
7949
|
[w.String]: z(
|
|
7950
7950
|
X(1, 1 / 0),
|
|
7951
|
-
q(
|
|
7951
|
+
q(vn)
|
|
7952
7952
|
),
|
|
7953
7953
|
[w.Array]: z(
|
|
7954
7954
|
X(1, 1 / 0),
|
|
@@ -8582,7 +8582,7 @@ function Su(n, t) {
|
|
|
8582
8582
|
l,
|
|
8583
8583
|
h,
|
|
8584
8584
|
u
|
|
8585
|
-
) :
|
|
8585
|
+
) : Wi(
|
|
8586
8586
|
r,
|
|
8587
8587
|
o,
|
|
8588
8588
|
a,
|
|
@@ -8606,7 +8606,7 @@ function Lu(n, t) {
|
|
|
8606
8606
|
};
|
|
8607
8607
|
throw new Error(`Unsupported convert operator ${e}`);
|
|
8608
8608
|
}
|
|
8609
|
-
function
|
|
8609
|
+
function Wi(n, t, e, i, s, r) {
|
|
8610
8610
|
const o = s - e;
|
|
8611
8611
|
if (o === 0)
|
|
8612
8612
|
return i;
|
|
@@ -8620,10 +8620,10 @@ function bu(n, t, e, i, s, r) {
|
|
|
8620
8620
|
let c = l[2] - a[2];
|
|
8621
8621
|
c > 180 ? c -= 360 : c < -180 && (c += 360);
|
|
8622
8622
|
const h = [
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
a[2] +
|
|
8626
|
-
|
|
8623
|
+
Wi(n, t, e, a[0], s, l[0]),
|
|
8624
|
+
Wi(n, t, e, a[1], s, l[1]),
|
|
8625
|
+
a[2] + Wi(n, t, e, 0, s, c),
|
|
8626
|
+
Wi(n, t, e, i[3], s, r[3])
|
|
8627
8627
|
];
|
|
8628
8628
|
return su(h);
|
|
8629
8629
|
}
|
|
@@ -8640,7 +8640,7 @@ function Mu(n, t, e) {
|
|
|
8640
8640
|
);
|
|
8641
8641
|
let s = !0, r = !1, o = !1;
|
|
8642
8642
|
const a = [
|
|
8643
|
-
|
|
8643
|
+
Ln(i, Y.LOAD, function() {
|
|
8644
8644
|
o = !0, r || t();
|
|
8645
8645
|
})
|
|
8646
8646
|
];
|
|
@@ -8648,7 +8648,7 @@ function Mu(n, t, e) {
|
|
|
8648
8648
|
s && t();
|
|
8649
8649
|
}).catch(function(l) {
|
|
8650
8650
|
s && (o ? t() : e());
|
|
8651
|
-
})) : a.push(
|
|
8651
|
+
})) : a.push(Ln(i, Y.ERROR, e)), function() {
|
|
8652
8652
|
s = !1, a.forEach(it);
|
|
8653
8653
|
};
|
|
8654
8654
|
}
|
|
@@ -8731,11 +8731,11 @@ class Ou {
|
|
|
8731
8731
|
set(t, e, i, s, r) {
|
|
8732
8732
|
const o = As(t, e, i), a = o in this.cache_;
|
|
8733
8733
|
this.cache_[o] = s, r && (s.getImageState() === K.IDLE && s.load(), s.getImageState() === K.LOADING ? s.ready().then(() => {
|
|
8734
|
-
this.patternCache_[o] =
|
|
8734
|
+
this.patternCache_[o] = Fn().createPattern(
|
|
8735
8735
|
s.getImage(1),
|
|
8736
8736
|
"repeat"
|
|
8737
8737
|
);
|
|
8738
|
-
}) : this.patternCache_[o] =
|
|
8738
|
+
}) : this.patternCache_[o] = Fn().createPattern(
|
|
8739
8739
|
s.getImage(1),
|
|
8740
8740
|
"repeat"
|
|
8741
8741
|
)), a || ++this.cacheSize_;
|
|
@@ -8756,8 +8756,8 @@ function As(n, t, e) {
|
|
|
8756
8756
|
return t + ":" + n + ":" + i;
|
|
8757
8757
|
}
|
|
8758
8758
|
const Gt = new Ou();
|
|
8759
|
-
let
|
|
8760
|
-
class Ja extends
|
|
8759
|
+
let Pi = null;
|
|
8760
|
+
class Ja extends Bn {
|
|
8761
8761
|
/**
|
|
8762
8762
|
* @param {HTMLImageElement|HTMLCanvasElement|ImageBitmap|null} image Image.
|
|
8763
8763
|
* @param {string|undefined} src Src.
|
|
@@ -8780,13 +8780,13 @@ class Ja extends Kn {
|
|
|
8780
8780
|
*/
|
|
8781
8781
|
isTainted_() {
|
|
8782
8782
|
if (this.tainted_ === void 0 && this.imageState_ === K.LOADED) {
|
|
8783
|
-
|
|
8783
|
+
Pi || (Pi = ht(1, 1, void 0, {
|
|
8784
8784
|
willReadFrequently: !0
|
|
8785
|
-
})),
|
|
8785
|
+
})), Pi.drawImage(this.image_, 0, 0);
|
|
8786
8786
|
try {
|
|
8787
|
-
|
|
8787
|
+
Pi.getImageData(0, 0, 1, 1), this.tainted_ = !1;
|
|
8788
8788
|
} catch {
|
|
8789
|
-
|
|
8789
|
+
Pi = null, this.tainted_ = !0;
|
|
8790
8790
|
}
|
|
8791
8791
|
}
|
|
8792
8792
|
return this.tainted_ === !0;
|
|
@@ -8948,8 +8948,8 @@ function Du(n) {
|
|
|
8948
8948
|
!0
|
|
8949
8949
|
), Gt.getPattern(t, void 0, n.color);
|
|
8950
8950
|
}
|
|
8951
|
-
const Qa = "10px sans-serif", vt = "#000", xi = "round", he = [], ce = 0, Ei = "round",
|
|
8952
|
-
let
|
|
8951
|
+
const Qa = "10px sans-serif", vt = "#000", xi = "round", he = [], ce = 0, Ei = "round", Hi = 10, $i = "#000", qi = "center", kn = "middle", Ge = [0, 0, 0, 0], Ji = 1, ri = new te();
|
|
8952
|
+
let Oi = null, Po;
|
|
8953
8953
|
const Js = {}, Fu = /* @__PURE__ */ new Set([
|
|
8954
8954
|
"serif",
|
|
8955
8955
|
"sans-serif",
|
|
@@ -8996,7 +8996,7 @@ const Nu = /* @__PURE__ */ (function() {
|
|
|
8996
8996
|
for (let l = a.length - 1; l >= 0; --l) {
|
|
8997
8997
|
const c = a[l];
|
|
8998
8998
|
let h = o[c];
|
|
8999
|
-
h < 100 && (await i(c) ? (
|
|
8999
|
+
h < 100 && (await i(c) ? (en(Js), ri.set(c, 100)) : (h += 10, ri.set(c, h, !0), h < 100 && (r = !1)));
|
|
9000
9000
|
}
|
|
9001
9001
|
t = void 0, r || (t = setTimeout(s, 100));
|
|
9002
9002
|
}
|
|
@@ -9031,7 +9031,7 @@ const Nu = /* @__PURE__ */ (function() {
|
|
|
9031
9031
|
};
|
|
9032
9032
|
})();
|
|
9033
9033
|
function tl(n, t) {
|
|
9034
|
-
return
|
|
9034
|
+
return Oi || (Oi = ht(1, 1)), n != Po && (Oi.font = n, Po = Oi.font), Oi.measureText(t);
|
|
9035
9035
|
}
|
|
9036
9036
|
function el(n, t) {
|
|
9037
9037
|
return tl(n, t).width;
|
|
@@ -9098,7 +9098,7 @@ function Xu(n, t) {
|
|
|
9098
9098
|
e[i + 1]
|
|
9099
9099
|
) : t[e[i]] = e[i + 1];
|
|
9100
9100
|
}
|
|
9101
|
-
class
|
|
9101
|
+
class ns {
|
|
9102
9102
|
/**
|
|
9103
9103
|
* @param {Options} options Options.
|
|
9104
9104
|
*/
|
|
@@ -9112,7 +9112,7 @@ class is {
|
|
|
9112
9112
|
*/
|
|
9113
9113
|
clone() {
|
|
9114
9114
|
const t = this.getScale();
|
|
9115
|
-
return new
|
|
9115
|
+
return new ns({
|
|
9116
9116
|
opacity: this.getOpacity(),
|
|
9117
9117
|
scale: Array.isArray(t) ? t.slice() : t,
|
|
9118
9118
|
rotation: this.getRotation(),
|
|
@@ -9312,7 +9312,7 @@ class is {
|
|
|
9312
9312
|
return Promise.resolve();
|
|
9313
9313
|
}
|
|
9314
9314
|
}
|
|
9315
|
-
class
|
|
9315
|
+
class ss extends ns {
|
|
9316
9316
|
/**
|
|
9317
9317
|
* @param {Options} options Options.
|
|
9318
9318
|
*/
|
|
@@ -9333,7 +9333,7 @@ class ns extends is {
|
|
|
9333
9333
|
* @override
|
|
9334
9334
|
*/
|
|
9335
9335
|
clone() {
|
|
9336
|
-
const t = this.getScale(), e = new
|
|
9336
|
+
const t = this.getScale(), e = new ss({
|
|
9337
9337
|
fill: this.getFill() ? this.getFill().clone() : void 0,
|
|
9338
9338
|
points: this.getPoints(),
|
|
9339
9339
|
radius: this.getRadius(),
|
|
@@ -9553,7 +9553,7 @@ class ns extends is {
|
|
|
9553
9553
|
*/
|
|
9554
9554
|
createRenderOptions() {
|
|
9555
9555
|
let t = xi, e = Ei, i = 0, s = null, r = 0, o, a = 0;
|
|
9556
|
-
this.stroke_ && (o = Qt(this.stroke_.getColor() ??
|
|
9556
|
+
this.stroke_ && (o = Qt(this.stroke_.getColor() ?? $i), a = this.stroke_.getWidth() ?? Ji, s = this.stroke_.getLineDash(), r = this.stroke_.getLineDashOffset() ?? 0, e = this.stroke_.getLineJoin() ?? Ei, t = this.stroke_.getLineCap() ?? xi, i = this.stroke_.getMiterLimit() ?? Hi);
|
|
9557
9557
|
const l = this.calculateLineJoinSize_(e, a, i), c = Math.max(this.radius, this.radius2_ || 0), h = Math.ceil(2 * c + l);
|
|
9558
9558
|
return {
|
|
9559
9559
|
strokeStyle: o,
|
|
@@ -9635,7 +9635,7 @@ class ns extends is {
|
|
|
9635
9635
|
return this.fill_ ? this.fill_.ready() : Promise.resolve();
|
|
9636
9636
|
}
|
|
9637
9637
|
}
|
|
9638
|
-
class
|
|
9638
|
+
class an extends ss {
|
|
9639
9639
|
/**
|
|
9640
9640
|
* @param {Options} [options] Options.
|
|
9641
9641
|
*/
|
|
@@ -9659,7 +9659,7 @@ class ss extends ns {
|
|
|
9659
9659
|
* @override
|
|
9660
9660
|
*/
|
|
9661
9661
|
clone() {
|
|
9662
|
-
const t = this.getScale(), e = new
|
|
9662
|
+
const t = this.getScale(), e = new an({
|
|
9663
9663
|
fill: this.getFill() ? this.getFill().clone() : void 0,
|
|
9664
9664
|
stroke: this.getStroke() ? this.getStroke().clone() : void 0,
|
|
9665
9665
|
radius: this.getRadius(),
|
|
@@ -9681,7 +9681,7 @@ class ss extends ns {
|
|
|
9681
9681
|
this.radius = t, this.render();
|
|
9682
9682
|
}
|
|
9683
9683
|
}
|
|
9684
|
-
class
|
|
9684
|
+
class Ri {
|
|
9685
9685
|
/**
|
|
9686
9686
|
* @param {Options} [options] Options.
|
|
9687
9687
|
*/
|
|
@@ -9695,7 +9695,7 @@ class on {
|
|
|
9695
9695
|
*/
|
|
9696
9696
|
clone() {
|
|
9697
9697
|
const t = this.getColor();
|
|
9698
|
-
return new
|
|
9698
|
+
return new Ri({
|
|
9699
9699
|
color: Array.isArray(t) ? t.slice() : t || void 0
|
|
9700
9700
|
});
|
|
9701
9701
|
}
|
|
@@ -9752,7 +9752,7 @@ class on {
|
|
|
9752
9752
|
function Do(n, t, e, i) {
|
|
9753
9753
|
return e !== void 0 && i !== void 0 ? [e / n, i / t] : e !== void 0 ? e / n : i !== void 0 ? i / t : 1;
|
|
9754
9754
|
}
|
|
9755
|
-
class
|
|
9755
|
+
class rs extends ns {
|
|
9756
9756
|
/**
|
|
9757
9757
|
* @param {Options} [options] Options.
|
|
9758
9758
|
*/
|
|
@@ -9828,7 +9828,7 @@ class an extends is {
|
|
|
9828
9828
|
*/
|
|
9829
9829
|
clone() {
|
|
9830
9830
|
let t, e, i;
|
|
9831
|
-
return this.initialOptions_ ? (e = this.initialOptions_.width, i = this.initialOptions_.height) : (t = this.getScale(), t = Array.isArray(t) ? t.slice() : t), new
|
|
9831
|
+
return this.initialOptions_ ? (e = this.initialOptions_.width, i = this.initialOptions_.height) : (t = this.getScale(), t = Array.isArray(t) ? t.slice() : t), new rs({
|
|
9832
9832
|
anchor: this.anchor_.slice(),
|
|
9833
9833
|
anchorOrigin: this.anchorOrigin_,
|
|
9834
9834
|
anchorXUnits: this.anchorXUnits_,
|
|
@@ -10040,7 +10040,7 @@ class an extends is {
|
|
|
10040
10040
|
return this.iconImage_.ready();
|
|
10041
10041
|
}
|
|
10042
10042
|
}
|
|
10043
|
-
class
|
|
10043
|
+
class ln {
|
|
10044
10044
|
/**
|
|
10045
10045
|
* @param {Options} [options] Options.
|
|
10046
10046
|
*/
|
|
@@ -10054,7 +10054,7 @@ class rs {
|
|
|
10054
10054
|
*/
|
|
10055
10055
|
clone() {
|
|
10056
10056
|
const t = this.getColor();
|
|
10057
|
-
return new
|
|
10057
|
+
return new ln({
|
|
10058
10058
|
color: Array.isArray(t) ? t.slice() : t || void 0,
|
|
10059
10059
|
lineCap: this.getLineCap(),
|
|
10060
10060
|
lineDash: this.getLineDash() ? this.getLineDash().slice() : void 0,
|
|
@@ -10389,15 +10389,15 @@ function Yu(n) {
|
|
|
10389
10389
|
let Ps = null;
|
|
10390
10390
|
function il(n, t) {
|
|
10391
10391
|
if (!Ps) {
|
|
10392
|
-
const e = new
|
|
10392
|
+
const e = new Ri({
|
|
10393
10393
|
color: "rgba(255,255,255,0.4)"
|
|
10394
|
-
}), i = new
|
|
10394
|
+
}), i = new ln({
|
|
10395
10395
|
color: "#3399CC",
|
|
10396
10396
|
width: 1.25
|
|
10397
10397
|
});
|
|
10398
10398
|
Ps = [
|
|
10399
10399
|
new Ie({
|
|
10400
|
-
image: new
|
|
10400
|
+
image: new an({
|
|
10401
10401
|
fill: e,
|
|
10402
10402
|
stroke: i,
|
|
10403
10403
|
radius: 5
|
|
@@ -10418,7 +10418,7 @@ class Fr {
|
|
|
10418
10418
|
* @param {Options} [options] Options.
|
|
10419
10419
|
*/
|
|
10420
10420
|
constructor(t) {
|
|
10421
|
-
t = t || {}, this.font_ = t.font, this.rotation_ = t.rotation, this.rotateWithView_ = t.rotateWithView, this.keepUpright_ = t.keepUpright, this.scale_ = t.scale, this.scaleArray_ = St(t.scale !== void 0 ? t.scale : 1), this.text_ = t.text, this.textAlign_ = t.textAlign, this.justify_ = t.justify, this.repeat_ = t.repeat, this.textBaseline_ = t.textBaseline, this.fill_ = t.fill !== void 0 ? t.fill : new
|
|
10421
|
+
t = t || {}, this.font_ = t.font, this.rotation_ = t.rotation, this.rotateWithView_ = t.rotateWithView, this.keepUpright_ = t.keepUpright, this.scale_ = t.scale, this.scaleArray_ = St(t.scale !== void 0 ? t.scale : 1), this.text_ = t.text, this.textAlign_ = t.textAlign, this.justify_ = t.justify, this.repeat_ = t.repeat, this.textBaseline_ = t.textBaseline, this.fill_ = t.fill !== void 0 ? t.fill : new Ri({ color: Ku }), this.maxAngle_ = t.maxAngle !== void 0 ? t.maxAngle : Math.PI / 4, this.placement_ = t.placement !== void 0 ? t.placement : "point", this.overflow_ = !!t.overflow, this.stroke_ = t.stroke !== void 0 ? t.stroke : null, this.offsetX_ = t.offsetX !== void 0 ? t.offsetX : 0, this.offsetY_ = t.offsetY !== void 0 ? t.offsetY : 0, this.backgroundFill_ = t.backgroundFill ? t.backgroundFill : null, this.backgroundStroke_ = t.backgroundStroke ? t.backgroundStroke : null, this.padding_ = t.padding === void 0 ? null : t.padding, this.declutterMode_ = t.declutterMode;
|
|
10422
10422
|
}
|
|
10423
10423
|
/**
|
|
10424
10424
|
* Clones the style.
|
|
@@ -10870,7 +10870,7 @@ function ju(n, t) {
|
|
|
10870
10870
|
};
|
|
10871
10871
|
}
|
|
10872
10872
|
function Qs(n, t) {
|
|
10873
|
-
const e =
|
|
10873
|
+
const e = Qi(n, "", t), i = tn(n, "", t), s = Uu(n, t), r = Vu(n, t), o = It(n, "z-index", t);
|
|
10874
10874
|
if (!e && !i && !s && !r && !_i(n))
|
|
10875
10875
|
throw new Error(
|
|
10876
10876
|
"No fill, stroke, point, or text symbolizer properties in style: " + JSON.stringify(n)
|
|
@@ -10897,7 +10897,7 @@ function Qs(n, t) {
|
|
|
10897
10897
|
return o && a.setZIndex(o(l)), c ? null : a;
|
|
10898
10898
|
};
|
|
10899
10899
|
}
|
|
10900
|
-
function
|
|
10900
|
+
function Qi(n, t, e) {
|
|
10901
10901
|
let i;
|
|
10902
10902
|
if (t + "fill-pattern-src" in n)
|
|
10903
10903
|
i = Ju(n, t + "fill-", e);
|
|
@@ -10912,13 +10912,13 @@ function Ji(n, t, e) {
|
|
|
10912
10912
|
}
|
|
10913
10913
|
if (!i)
|
|
10914
10914
|
return null;
|
|
10915
|
-
const s = new
|
|
10915
|
+
const s = new Ri();
|
|
10916
10916
|
return function(r) {
|
|
10917
10917
|
const o = i(r);
|
|
10918
10918
|
return o === Mr ? null : (s.setColor(o), s);
|
|
10919
10919
|
};
|
|
10920
10920
|
}
|
|
10921
|
-
function
|
|
10921
|
+
function tn(n, t, e) {
|
|
10922
10922
|
const i = It(
|
|
10923
10923
|
n,
|
|
10924
10924
|
t + "stroke-width",
|
|
@@ -10950,7 +10950,7 @@ function Qi(n, t, e) {
|
|
|
10950
10950
|
n,
|
|
10951
10951
|
t + "stroke-miter-limit",
|
|
10952
10952
|
e
|
|
10953
|
-
), h = new
|
|
10953
|
+
), h = new ln();
|
|
10954
10954
|
return function(u) {
|
|
10955
10955
|
if (s) {
|
|
10956
10956
|
const d = s(u);
|
|
@@ -10977,11 +10977,11 @@ function Uu(n, t) {
|
|
|
10977
10977
|
const e = "text-", i = ae(n, e + "value", t);
|
|
10978
10978
|
if (!i)
|
|
10979
10979
|
return null;
|
|
10980
|
-
const s =
|
|
10980
|
+
const s = Qi(n, e, t), r = Qi(
|
|
10981
10981
|
n,
|
|
10982
10982
|
e + "background-",
|
|
10983
10983
|
t
|
|
10984
|
-
), o =
|
|
10984
|
+
), o = tn(n, e, t), a = tn(
|
|
10985
10985
|
n,
|
|
10986
10986
|
e + "background-",
|
|
10987
10987
|
t
|
|
@@ -11069,7 +11069,7 @@ function Vu(n, t) {
|
|
|
11069
11069
|
return "icon-src" in n ? Hu(n, t) : "shape-points" in n ? $u(n, t) : "circle-radius" in n ? qu(n, t) : null;
|
|
11070
11070
|
}
|
|
11071
11071
|
function Hu(n, t) {
|
|
11072
|
-
const e = "icon-", i = e + "src", s = sl(n[i], i), r =
|
|
11072
|
+
const e = "icon-", i = e + "src", s = sl(n[i], i), r = Nn(
|
|
11073
11073
|
n,
|
|
11074
11074
|
e + "anchor",
|
|
11075
11075
|
t
|
|
@@ -11077,7 +11077,7 @@ function Hu(n, t) {
|
|
|
11077
11077
|
n,
|
|
11078
11078
|
e + "opacity",
|
|
11079
11079
|
t
|
|
11080
|
-
), l =
|
|
11080
|
+
), l = Nn(
|
|
11081
11081
|
n,
|
|
11082
11082
|
e + "displacement",
|
|
11083
11083
|
t
|
|
@@ -11095,10 +11095,10 @@ function Hu(n, t) {
|
|
|
11095
11095
|
), f = zo(
|
|
11096
11096
|
n,
|
|
11097
11097
|
e + "anchor-y-units"
|
|
11098
|
-
), g = id(n, e + "color"), m = td(n, e + "cross-origin"), _ = ed(n, e + "offset"), p = Go(n, e + "offset-origin"), x =
|
|
11098
|
+
), g = id(n, e + "color"), m = td(n, e + "cross-origin"), _ = ed(n, e + "offset"), p = Go(n, e + "offset-origin"), x = Gn(n, e + "width"), C = Gn(n, e + "height"), y = Qu(n, e + "size"), E = as(
|
|
11099
11099
|
n,
|
|
11100
11100
|
e + "declutter-mode"
|
|
11101
|
-
), R = new
|
|
11101
|
+
), R = new rs({
|
|
11102
11102
|
src: s,
|
|
11103
11103
|
anchorOrigin: u,
|
|
11104
11104
|
anchorXUnits: d,
|
|
@@ -11117,7 +11117,7 @@ function Hu(n, t) {
|
|
|
11117
11117
|
};
|
|
11118
11118
|
}
|
|
11119
11119
|
function $u(n, t) {
|
|
11120
|
-
const e = "shape-", i = e + "points", s = e + "radius", r = tr(n[i], i), o = tr(n[s], s), a =
|
|
11120
|
+
const e = "shape-", i = e + "points", s = e + "radius", r = tr(n[i], i), o = tr(n[s], s), a = Qi(n, e, t), l = tn(n, e, t), c = os(n, e + "scale", t), h = Nn(
|
|
11121
11121
|
n,
|
|
11122
11122
|
e + "displacement",
|
|
11123
11123
|
t
|
|
@@ -11129,10 +11129,10 @@ function $u(n, t) {
|
|
|
11129
11129
|
n,
|
|
11130
11130
|
e + "rotate-with-view",
|
|
11131
11131
|
t
|
|
11132
|
-
), f =
|
|
11132
|
+
), f = Gn(n, e + "radius2"), g = Gn(n, e + "angle"), m = as(
|
|
11133
11133
|
n,
|
|
11134
11134
|
e + "declutter-mode"
|
|
11135
|
-
), _ = new
|
|
11135
|
+
), _ = new ss({
|
|
11136
11136
|
points: r,
|
|
11137
11137
|
radius: o,
|
|
11138
11138
|
radius2: f,
|
|
@@ -11144,7 +11144,7 @@ function $u(n, t) {
|
|
|
11144
11144
|
};
|
|
11145
11145
|
}
|
|
11146
11146
|
function qu(n, t) {
|
|
11147
|
-
const e = "circle-", i =
|
|
11147
|
+
const e = "circle-", i = Qi(n, e, t), s = tn(n, e, t), r = It(n, e + "radius", t), o = os(n, e + "scale", t), a = Nn(
|
|
11148
11148
|
n,
|
|
11149
11149
|
e + "displacement",
|
|
11150
11150
|
t
|
|
@@ -11159,7 +11159,7 @@ function qu(n, t) {
|
|
|
11159
11159
|
), h = as(
|
|
11160
11160
|
n,
|
|
11161
11161
|
e + "declutter-mode"
|
|
11162
|
-
), u = new
|
|
11162
|
+
), u = new an({
|
|
11163
11163
|
radius: 5,
|
|
11164
11164
|
// this is arbitrary, but required - the evaluated radius is used below
|
|
11165
11165
|
declutterMode: h
|
|
@@ -11235,15 +11235,15 @@ function nl(n, t, e) {
|
|
|
11235
11235
|
return null;
|
|
11236
11236
|
const i = fe(n[t], Ke, e);
|
|
11237
11237
|
return function(s) {
|
|
11238
|
-
return
|
|
11238
|
+
return hn(i(s), t);
|
|
11239
11239
|
};
|
|
11240
11240
|
}
|
|
11241
|
-
function
|
|
11241
|
+
function Nn(n, t, e) {
|
|
11242
11242
|
if (!(t in n))
|
|
11243
11243
|
return null;
|
|
11244
11244
|
const i = fe(n[t], Ke, e);
|
|
11245
11245
|
return function(s) {
|
|
11246
|
-
const r =
|
|
11246
|
+
const r = hn(i(s), t);
|
|
11247
11247
|
if (r.length !== 2)
|
|
11248
11248
|
throw new Error(`Expected two numbers for ${t}`);
|
|
11249
11249
|
return r;
|
|
@@ -11269,7 +11269,7 @@ function os(n, t, e) {
|
|
|
11269
11269
|
return nd(i(s), t);
|
|
11270
11270
|
};
|
|
11271
11271
|
}
|
|
11272
|
-
function
|
|
11272
|
+
function Gn(n, t) {
|
|
11273
11273
|
const e = n[t];
|
|
11274
11274
|
if (e !== void 0) {
|
|
11275
11275
|
if (typeof e != "number")
|
|
@@ -11318,7 +11318,7 @@ function zo(n, t) {
|
|
|
11318
11318
|
function ed(n, t) {
|
|
11319
11319
|
const e = n[t];
|
|
11320
11320
|
if (e !== void 0)
|
|
11321
|
-
return
|
|
11321
|
+
return hn(e, t);
|
|
11322
11322
|
}
|
|
11323
11323
|
function as(n, t) {
|
|
11324
11324
|
const e = n[t];
|
|
@@ -11335,7 +11335,7 @@ function id(n, t) {
|
|
|
11335
11335
|
if (e !== void 0)
|
|
11336
11336
|
return rl(e, t);
|
|
11337
11337
|
}
|
|
11338
|
-
function
|
|
11338
|
+
function hn(n, t) {
|
|
11339
11339
|
if (!Array.isArray(n))
|
|
11340
11340
|
throw new Error(`Expected an array for ${t}`);
|
|
11341
11341
|
const e = n.length;
|
|
@@ -11357,13 +11357,13 @@ function tr(n, t) {
|
|
|
11357
11357
|
function rl(n, t) {
|
|
11358
11358
|
if (typeof n == "string")
|
|
11359
11359
|
return n;
|
|
11360
|
-
const e =
|
|
11360
|
+
const e = hn(n, t), i = e.length;
|
|
11361
11361
|
if (i < 3 || i > 4)
|
|
11362
11362
|
throw new Error(`Expected a color with 3 or 4 values for ${t}`);
|
|
11363
11363
|
return e;
|
|
11364
11364
|
}
|
|
11365
11365
|
function ol(n, t) {
|
|
11366
|
-
const e =
|
|
11366
|
+
const e = hn(n, t);
|
|
11367
11367
|
if (e.length !== 2)
|
|
11368
11368
|
throw new Error(`Expected an array of two numbers for ${t}`);
|
|
11369
11369
|
return e;
|
|
@@ -11374,7 +11374,7 @@ function nd(n, t) {
|
|
|
11374
11374
|
const Wo = {
|
|
11375
11375
|
RENDER_ORDER: "renderOrder"
|
|
11376
11376
|
};
|
|
11377
|
-
class al extends
|
|
11377
|
+
class al extends is {
|
|
11378
11378
|
/**
|
|
11379
11379
|
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
11380
11380
|
*/
|
|
@@ -11554,7 +11554,7 @@ class ll extends de {
|
|
|
11554
11554
|
super(t), this.inversePixelTransform = e, this.frameState = i, this.context = s;
|
|
11555
11555
|
}
|
|
11556
11556
|
}
|
|
11557
|
-
class rd extends
|
|
11557
|
+
class rd extends Yn {
|
|
11558
11558
|
/**
|
|
11559
11559
|
* @param {import("../Map.js").default} map Map.
|
|
11560
11560
|
*/
|
|
@@ -11662,7 +11662,7 @@ class rd extends Xn {
|
|
|
11662
11662
|
e,
|
|
11663
11663
|
i,
|
|
11664
11664
|
s,
|
|
11665
|
-
|
|
11665
|
+
Ki,
|
|
11666
11666
|
this,
|
|
11667
11667
|
r,
|
|
11668
11668
|
o
|
|
@@ -11705,7 +11705,7 @@ class ad extends rd {
|
|
|
11705
11705
|
t
|
|
11706
11706
|
), this.element_ = document.createElement("div");
|
|
11707
11707
|
const e = this.element_.style;
|
|
11708
|
-
e.position = "absolute", e.width = "100%", e.height = "100%", e.zIndex = "0", this.element_.className =
|
|
11708
|
+
e.position = "absolute", e.width = "100%", e.height = "100%", e.zIndex = "0", this.element_.className = ts + " ol-layers";
|
|
11709
11709
|
const i = t.getViewport();
|
|
11710
11710
|
i.insertBefore(this.element_, i.firstChild || null), this.children_ = [], this.renderedVisible_ = !0;
|
|
11711
11711
|
}
|
|
@@ -11778,14 +11778,14 @@ class ad extends rd {
|
|
|
11778
11778
|
}
|
|
11779
11779
|
}
|
|
11780
11780
|
function hl(n) {
|
|
11781
|
-
if (n instanceof
|
|
11781
|
+
if (n instanceof is) {
|
|
11782
11782
|
n.setMapInternal(null);
|
|
11783
11783
|
return;
|
|
11784
11784
|
}
|
|
11785
11785
|
n instanceof wi && n.getLayers().forEach(hl);
|
|
11786
11786
|
}
|
|
11787
11787
|
function cl(n, t) {
|
|
11788
|
-
if (n instanceof
|
|
11788
|
+
if (n instanceof is) {
|
|
11789
11789
|
n.setMapInternal(t);
|
|
11790
11790
|
return;
|
|
11791
11791
|
}
|
|
@@ -11967,7 +11967,7 @@ class ld extends te {
|
|
|
11967
11967
|
return;
|
|
11968
11968
|
const s = this.getCoordinateFromPixelInternal(t);
|
|
11969
11969
|
i = i !== void 0 ? i : {};
|
|
11970
|
-
const r = i.hitTolerance !== void 0 ? i.hitTolerance : 0, o = i.layerFilter !== void 0 ? i.layerFilter :
|
|
11970
|
+
const r = i.hitTolerance !== void 0 ? i.hitTolerance : 0, o = i.layerFilter !== void 0 ? i.layerFilter : Ki, a = i.checkWrapped !== !1;
|
|
11971
11971
|
return this.renderer_.forEachFeatureAtCoordinate(
|
|
11972
11972
|
s,
|
|
11973
11973
|
this.frameState_,
|
|
@@ -12030,7 +12030,7 @@ class ld extends te {
|
|
|
12030
12030
|
return !1;
|
|
12031
12031
|
const i = this.getCoordinateFromPixelInternal(t);
|
|
12032
12032
|
e = e !== void 0 ? e : {};
|
|
12033
|
-
const s = e.layerFilter !== void 0 ? e.layerFilter :
|
|
12033
|
+
const s = e.layerFilter !== void 0 ? e.layerFilter : Ki, r = e.hitTolerance !== void 0 ? e.hitTolerance : 0, o = e.checkWrapped !== !1;
|
|
12034
12034
|
return this.renderer_.hasFeatureAtCoordinate(
|
|
12035
12035
|
i,
|
|
12036
12036
|
this.frameState_,
|
|
@@ -12654,9 +12654,9 @@ class ld extends te {
|
|
|
12654
12654
|
this.frameState_ = r, this.renderer_.renderFrame(r), r && (r.animate && this.render(), Array.prototype.push.apply(
|
|
12655
12655
|
this.postRenderFunctions_,
|
|
12656
12656
|
r.postRenderFunctions
|
|
12657
|
-
), s && (!this.previousExtent_ ||
|
|
12657
|
+
), s && (!this.previousExtent_ || !$n(this.previousExtent_) && !Zi(r.extent, this.previousExtent_)) && (this.dispatchEvent(
|
|
12658
12658
|
new ni(Ee.MOVESTART, this, s)
|
|
12659
|
-
), this.previousExtent_ =
|
|
12659
|
+
), this.previousExtent_ = jn(this.previousExtent_)), this.previousExtent_ && !r.viewHints[pt.ANIMATING] && !r.viewHints[pt.INTERACTING] && !Zi(r.extent, this.previousExtent_) && (this.dispatchEvent(
|
|
12660
12660
|
new ni(Ee.MOVEEND, this, r)
|
|
12661
12661
|
), da(r.extent, this.previousExtent_))), this.dispatchEvent(new ni(Ee.POSTRENDER, this, r)), this.renderComplete_ = (this.hasListener(Ee.LOADSTART) || this.hasListener(Ee.LOADEND) || this.hasListener(Nt.RENDERCOMPLETE)) && !this.tileQueue_.getTilesLoading() && !this.tileQueue_.getCount() && !this.getLoadingOrNotReady(), this.postRenderTimeoutHandle_ || (this.postRenderTimeoutHandle_ = setTimeout(() => {
|
|
12662
12662
|
this.postRenderTimeoutHandle_ = void 0, this.handlePostRender();
|
|
@@ -12780,7 +12780,7 @@ function hd(n) {
|
|
|
12780
12780
|
values: e
|
|
12781
12781
|
};
|
|
12782
12782
|
}
|
|
12783
|
-
class Nr extends
|
|
12783
|
+
class Nr extends Bn {
|
|
12784
12784
|
/**
|
|
12785
12785
|
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
12786
12786
|
* @param {import("./TileState.js").default} state State.
|
|
@@ -13149,7 +13149,7 @@ function fd() {
|
|
|
13149
13149
|
const n = ht(6, 6, fi);
|
|
13150
13150
|
n.globalCompositeOperation = "lighter", n.fillStyle = "rgba(210, 0, 0, 0.75)", Yo(n, 4, 5, 4, 0), Yo(n, 4, 5, 0, 5);
|
|
13151
13151
|
const t = n.getImageData(0, 0, 3, 3).data;
|
|
13152
|
-
Os = Ds(t, 0) || Ds(t, 4) || Ds(t, 8),
|
|
13152
|
+
Os = Ds(t, 0) || Ds(t, 4) || Ds(t, 8), es(n), fi.push(n.canvas);
|
|
13153
13153
|
}
|
|
13154
13154
|
return Os;
|
|
13155
13155
|
}
|
|
@@ -13293,7 +13293,7 @@ function _d(n, t, e, i, s, r, o, a, l, c, h, u, d, f) {
|
|
|
13293
13293
|
);
|
|
13294
13294
|
}
|
|
13295
13295
|
g.drawImage(bt, 0, 0), g.restore();
|
|
13296
|
-
}), p && (
|
|
13296
|
+
}), p && (es(p), fi.push(p.canvas)), h && (g.save(), g.globalCompositeOperation = "source-over", g.strokeStyle = "black", g.lineWidth = 1, a.getTriangles().forEach(function(E, R, T) {
|
|
13297
13297
|
const v = E.target, S = (v[0][0] - y[0]) / r, M = -(v[0][1] - y[1]) / r, G = (v[1][0] - y[0]) / r, O = -(v[1][1] - y[1]) / r, A = (v[2][0] - y[0]) / r, P = -(v[2][1] - y[1]) / r;
|
|
13298
13298
|
g.beginPath(), g.moveTo(G, O), g.lineTo(S, M), g.lineTo(A, P), g.closePath(), g.stroke();
|
|
13299
13299
|
}), g.restore()), g.canvas;
|
|
@@ -13317,12 +13317,12 @@ class pd {
|
|
|
13317
13317
|
a,
|
|
13318
13318
|
mr(C, this.targetProj_, this.sourceProj_)
|
|
13319
13319
|
)
|
|
13320
|
-
) :
|
|
13320
|
+
) : On(this.targetProj_, this.sourceProj_);
|
|
13321
13321
|
this.transformInv_ = function(C) {
|
|
13322
13322
|
const y = C[0] + "/" + C[1];
|
|
13323
13323
|
return l[y] || (l[y] = c(C)), l[y];
|
|
13324
13324
|
}, this.maxSourceExtent_ = s, this.errorThresholdSquared_ = r * r, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!s && !!this.sourceProj_.getExtent() && tt(s) >= tt(this.sourceProj_.getExtent()), this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? tt(this.sourceProj_.getExtent()) : null, this.targetWorldWidth_ = this.targetProj_.getExtent() ? tt(this.targetProj_.getExtent()) : null;
|
|
13325
|
-
const h = Be(i), u =
|
|
13325
|
+
const h = Be(i), u = Hn(i), d = Vn(i), f = Un(i), g = this.transformInv_(h), m = this.transformInv_(u), _ = this.transformInv_(d), p = this.transformInv_(f), x = md + (o ? Math.max(
|
|
13326
13326
|
0,
|
|
13327
13327
|
Math.ceil(
|
|
13328
13328
|
Math.log2(
|
|
@@ -13505,7 +13505,7 @@ class pd {
|
|
|
13505
13505
|
const t = Wt();
|
|
13506
13506
|
return this.triangles_.forEach(function(e, i, s) {
|
|
13507
13507
|
const r = e.source;
|
|
13508
|
-
|
|
13508
|
+
Xi(t, r[0]), Xi(t, r[1]), Xi(t, r[2]);
|
|
13509
13509
|
}), t;
|
|
13510
13510
|
}
|
|
13511
13511
|
/**
|
|
@@ -13689,7 +13689,7 @@ class dl extends Nr {
|
|
|
13689
13689
|
* @override
|
|
13690
13690
|
*/
|
|
13691
13691
|
release() {
|
|
13692
|
-
this.canvas_ && (
|
|
13692
|
+
this.canvas_ && (es(this.canvas_.getContext("2d")), fi.push(this.canvas_), this.canvas_ = null), super.release();
|
|
13693
13693
|
}
|
|
13694
13694
|
}
|
|
13695
13695
|
class xd {
|
|
@@ -13701,7 +13701,7 @@ class xd {
|
|
|
13701
13701
|
}
|
|
13702
13702
|
deleteOldest() {
|
|
13703
13703
|
const t = this.pop();
|
|
13704
|
-
t instanceof
|
|
13704
|
+
t instanceof Yn && t.dispose();
|
|
13705
13705
|
}
|
|
13706
13706
|
/**
|
|
13707
13707
|
* @return {boolean} Can expire cache.
|
|
@@ -13864,7 +13864,7 @@ class xd {
|
|
|
13864
13864
|
this.highWaterMark = t;
|
|
13865
13865
|
}
|
|
13866
13866
|
}
|
|
13867
|
-
function
|
|
13867
|
+
function zn(n, t, e, i) {
|
|
13868
13868
|
return i !== void 0 ? (i[0] = n, i[1] = t, i[2] = e, i) : [n, t, e];
|
|
13869
13869
|
}
|
|
13870
13870
|
function Ed(n, t, e) {
|
|
@@ -13886,10 +13886,10 @@ function Rd(n, t) {
|
|
|
13886
13886
|
class fl {
|
|
13887
13887
|
constructor() {
|
|
13888
13888
|
this.instructions_ = [], this.zIndex = 0, this.offset_ = 0, this.context_ = /** @type {ZIndexContextProxy} */
|
|
13889
|
-
new Proxy(
|
|
13889
|
+
new Proxy(Fn(), {
|
|
13890
13890
|
get: (t, e) => {
|
|
13891
13891
|
if (typeof /** @type {*} */
|
|
13892
|
-
|
|
13892
|
+
Fn()[e] == "function")
|
|
13893
13893
|
return this.push_(e), this.pushMethodArgs_;
|
|
13894
13894
|
},
|
|
13895
13895
|
set: (t, e, i) => (this.push_(e, i), !0)
|
|
@@ -13963,7 +13963,7 @@ class fl {
|
|
|
13963
13963
|
}
|
|
13964
13964
|
}
|
|
13965
13965
|
const vd = 5;
|
|
13966
|
-
class Td extends
|
|
13966
|
+
class Td extends nn {
|
|
13967
13967
|
/**
|
|
13968
13968
|
* @param {LayerType} layer Layer.
|
|
13969
13969
|
*/
|
|
@@ -14154,7 +14154,7 @@ class gl extends Td {
|
|
|
14154
14154
|
* @protected
|
|
14155
14155
|
*/
|
|
14156
14156
|
clipUnrotated(t, e, i) {
|
|
14157
|
-
const s = Be(i), r =
|
|
14157
|
+
const s = Be(i), r = Hn(i), o = Vn(i), a = Un(i);
|
|
14158
14158
|
dt(e.coordinateToPixelTransform, s), dt(e.coordinateToPixelTransform, r), dt(e.coordinateToPixelTransform, o), dt(e.coordinateToPixelTransform, a);
|
|
14159
14159
|
const l = this.inversePixelTransform;
|
|
14160
14160
|
dt(l, s), dt(l, r), dt(l, o), dt(l, a), t.save(), t.beginPath(), t.moveTo(Math.round(s[0]), Math.round(s[1])), t.lineTo(Math.round(r[0]), Math.round(r[1])), t.lineTo(Math.round(o[0]), Math.round(o[1])), t.lineTo(Math.round(a[0]), Math.round(a[1])), t.clip();
|
|
@@ -14311,7 +14311,7 @@ class Ld extends gl {
|
|
|
14311
14311
|
* @param {Options} [options] Options.
|
|
14312
14312
|
*/
|
|
14313
14313
|
constructor(t, e) {
|
|
14314
|
-
super(t), e = e || {}, this.extentChanged = !0, this.renderComplete = !1, this.renderedExtent_ = null, this.renderedPixelRatio, this.renderedProjection = null, this.renderedTiles = [], this.renderedSourceKey_, this.renderedSourceRevision_, this.tempExtent = Wt(), this.tempTileRange_ = new Gr(0, 0, 0, 0), this.tempTileCoord_ =
|
|
14314
|
+
super(t), e = e || {}, this.extentChanged = !0, this.renderComplete = !1, this.renderedExtent_ = null, this.renderedPixelRatio, this.renderedProjection = null, this.renderedTiles = [], this.renderedSourceKey_, this.renderedSourceRevision_, this.tempExtent = Wt(), this.tempTileRange_ = new Gr(0, 0, 0, 0), this.tempTileCoord_ = zn(0, 0, 0);
|
|
14315
14315
|
const i = e.cacheSize !== void 0 ? e.cacheSize : 512;
|
|
14316
14316
|
this.tileCache_ = new xd(i), this.maxStaleKeys = i * 0.5;
|
|
14317
14317
|
}
|
|
@@ -14456,7 +14456,7 @@ class Ld extends gl {
|
|
|
14456
14456
|
continue;
|
|
14457
14457
|
const T = E.getKey();
|
|
14458
14458
|
if (u[T] = !0, E.getState() === F.IDLE && !t.tileQueue.isKeyQueued(T)) {
|
|
14459
|
-
const v =
|
|
14459
|
+
const v = zn(_, C, y, this.tempTileCoord_);
|
|
14460
14460
|
t.tileQueue.enqueue([
|
|
14461
14461
|
E,
|
|
14462
14462
|
h,
|
|
@@ -14637,21 +14637,21 @@ class Ld extends gl {
|
|
|
14637
14637
|
for (const Xt of T[Z]) {
|
|
14638
14638
|
if (Xt.getState() !== F.LOADED)
|
|
14639
14639
|
continue;
|
|
14640
|
-
const Mt = Xt.tileCoord,
|
|
14640
|
+
const Mt = Xt.tileCoord, un = ot[1] - Mt[1], ls = Math.round(_t[0] - (un - 1) * gt), vi = ot[2] - Mt[2], be = Math.round(_t[1] - (vi - 1) * yt), At = Math.round(_t[0] - un * gt), Vt = Math.round(_t[1] - vi * yt), je = ls - At, Ue = be - Vt, Ti = P.length === 1;
|
|
14641
14641
|
let Me = !1;
|
|
14642
14642
|
B = [At, Vt, At + je, Vt, At + je, Vt + Ue, At, Vt + Ue];
|
|
14643
14643
|
for (let Ve = 0, He = N.length; Ve < He; ++Ve)
|
|
14644
|
-
if (!
|
|
14644
|
+
if (!Ti && Z < W[Ve]) {
|
|
14645
14645
|
const ct = N[Ve];
|
|
14646
14646
|
Tt(
|
|
14647
14647
|
[At, Vt, At + je, Vt + Ue],
|
|
14648
14648
|
[ct[0], ct[3], ct[4], ct[7]]
|
|
14649
14649
|
) && (Me || (A.save(), Me = !0), A.beginPath(), A.moveTo(B[0], B[1]), A.lineTo(B[2], B[3]), A.lineTo(B[4], B[5]), A.lineTo(B[6], B[7]), A.moveTo(ct[6], ct[7]), A.lineTo(ct[4], ct[5]), A.lineTo(ct[2], ct[3]), A.lineTo(ct[0], ct[1]), A.clip());
|
|
14650
14650
|
}
|
|
14651
|
-
N.push(B), W.push(Z), this.drawTile(Xt, t, At, Vt, je, Ue, Ut,
|
|
14651
|
+
N.push(B), W.push(Z), this.drawTile(Xt, t, At, Vt, je, Ue, Ut, Ti), Me && A.restore(), this.renderedTiles.unshift(Xt), this.updateUsedTiles(t.usedTiles, h, Xt);
|
|
14652
14652
|
}
|
|
14653
14653
|
}
|
|
14654
|
-
if (this.renderedResolution = f, this.extentChanged = !this.renderedExtent_ || !
|
|
14654
|
+
if (this.renderedResolution = f, this.extentChanged = !this.renderedExtent_ || !Zi(this.renderedExtent_, R), this.renderedExtent_ = R, this.renderedPixelRatio = l, this.postRender(this.context, t), i.extent && A.restore(), A.imageSmoothingEnabled = !0, this.renderComplete) {
|
|
14655
14655
|
const k = (Z, j) => {
|
|
14656
14656
|
const et = $(h), I = j.wantedTiles[et], gt = I ? Object.keys(I).length : 0;
|
|
14657
14657
|
this.updateCacheSize(gt), this.tileCache_.expireCache();
|
|
@@ -14733,11 +14733,11 @@ class Ld extends gl {
|
|
|
14733
14733
|
s in t || (t[s] = {}), t[s][i.getKey()] = !0;
|
|
14734
14734
|
}
|
|
14735
14735
|
}
|
|
14736
|
-
const
|
|
14736
|
+
const Tn = {
|
|
14737
14737
|
PRELOAD: "preload",
|
|
14738
14738
|
USE_INTERIM_TILES_ON_ERROR: "useInterimTilesOnError"
|
|
14739
14739
|
};
|
|
14740
|
-
class bd extends
|
|
14740
|
+
class bd extends is {
|
|
14741
14741
|
/**
|
|
14742
14742
|
* @param {Options<TileSourceType>} [options] Tile layer options.
|
|
14743
14743
|
*/
|
|
@@ -14764,7 +14764,7 @@ class bd extends es {
|
|
|
14764
14764
|
getPreload() {
|
|
14765
14765
|
return (
|
|
14766
14766
|
/** @type {number} */
|
|
14767
|
-
this.get(
|
|
14767
|
+
this.get(Tn.PRELOAD)
|
|
14768
14768
|
);
|
|
14769
14769
|
}
|
|
14770
14770
|
/**
|
|
@@ -14774,7 +14774,7 @@ class bd extends es {
|
|
|
14774
14774
|
* @api
|
|
14775
14775
|
*/
|
|
14776
14776
|
setPreload(t) {
|
|
14777
|
-
this.set(
|
|
14777
|
+
this.set(Tn.PRELOAD, t);
|
|
14778
14778
|
}
|
|
14779
14779
|
/**
|
|
14780
14780
|
* Deprecated. Whether we use interim tiles on error.
|
|
@@ -14785,7 +14785,7 @@ class bd extends es {
|
|
|
14785
14785
|
getUseInterimTilesOnError() {
|
|
14786
14786
|
return (
|
|
14787
14787
|
/** @type {boolean} */
|
|
14788
|
-
this.get(
|
|
14788
|
+
this.get(Tn.USE_INTERIM_TILES_ON_ERROR)
|
|
14789
14789
|
);
|
|
14790
14790
|
}
|
|
14791
14791
|
/**
|
|
@@ -14795,7 +14795,7 @@ class bd extends es {
|
|
|
14795
14795
|
* @api
|
|
14796
14796
|
*/
|
|
14797
14797
|
setUseInterimTilesOnError(t) {
|
|
14798
|
-
this.set(
|
|
14798
|
+
this.set(Tn.USE_INTERIM_TILES_ON_ERROR, t);
|
|
14799
14799
|
}
|
|
14800
14800
|
/**
|
|
14801
14801
|
* Get data for a pixel location. The return type depends on the source data. For image tiles,
|
|
@@ -15105,7 +15105,7 @@ class _l {
|
|
|
15105
15105
|
getTileCoordForXYAndResolution_(t, e, i, s, r) {
|
|
15106
15106
|
const o = this.getZForResolution(i), a = i / this.getResolution(o), l = this.getOrigin(o), c = St(this.getTileSize(o), this.tmpSize_);
|
|
15107
15107
|
let h = a * (t - l[0]) / i / c[0], u = a * (l[1] - e) / i / c[1];
|
|
15108
|
-
return s ? (h =
|
|
15108
|
+
return s ? (h = mn(h, _e) - 1, u = mn(u, _e) - 1) : (h = _n(h, _e), u = _n(u, _e)), zn(o, h, u, r);
|
|
15109
15109
|
}
|
|
15110
15110
|
/**
|
|
15111
15111
|
* Although there is repetition between this method and `getTileCoordForXYAndResolution_`,
|
|
@@ -15125,7 +15125,7 @@ class _l {
|
|
|
15125
15125
|
getTileCoordForXYAndZ_(t, e, i, s, r) {
|
|
15126
15126
|
const o = this.getOrigin(i), a = this.getResolution(i), l = St(this.getTileSize(i), this.tmpSize_);
|
|
15127
15127
|
let c = (t - o[0]) / a / l[0], h = (o[1] - e) / a / l[1];
|
|
15128
|
-
return s ? (c =
|
|
15128
|
+
return s ? (c = mn(c, _e) - 1, h = mn(h, _e) - 1) : (c = _n(c, _e), h = _n(h, _e)), zn(i, c, h, r);
|
|
15129
15129
|
}
|
|
15130
15130
|
/**
|
|
15131
15131
|
* Get a tile coordinate given a map coordinate and zoom level.
|
|
@@ -16244,8 +16244,8 @@ const D = {
|
|
|
16244
16244
|
SET_FILL_STYLE: 10,
|
|
16245
16245
|
SET_STROKE_STYLE: 11,
|
|
16246
16246
|
STROKE: 12
|
|
16247
|
-
},
|
|
16248
|
-
class
|
|
16247
|
+
}, In = [D.FILL], Re = [D.STROKE], ze = [D.BEGIN_PATH], Vo = [D.CLOSE_PATH];
|
|
16248
|
+
class cn extends xl {
|
|
16249
16249
|
/**
|
|
16250
16250
|
* @param {number} tolerance Tolerance.
|
|
16251
16251
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -16391,7 +16391,7 @@ class hn extends xl {
|
|
|
16391
16391
|
u,
|
|
16392
16392
|
t,
|
|
16393
16393
|
i,
|
|
16394
|
-
|
|
16394
|
+
Dn,
|
|
16395
16395
|
r
|
|
16396
16396
|
]), this.hitDetectionInstructions.push([
|
|
16397
16397
|
D.CUSTOM,
|
|
@@ -16399,7 +16399,7 @@ class hn extends xl {
|
|
|
16399
16399
|
u,
|
|
16400
16400
|
t,
|
|
16401
16401
|
s || i,
|
|
16402
|
-
|
|
16402
|
+
Dn,
|
|
16403
16403
|
r
|
|
16404
16404
|
]);
|
|
16405
16405
|
break;
|
|
@@ -16545,7 +16545,7 @@ class hn extends xl {
|
|
|
16545
16545
|
if (t) {
|
|
16546
16546
|
const i = t.getColor();
|
|
16547
16547
|
e.strokeStyle = Qt(
|
|
16548
|
-
i ||
|
|
16548
|
+
i || $i
|
|
16549
16549
|
);
|
|
16550
16550
|
const s = t.getLineCap();
|
|
16551
16551
|
e.lineCap = s !== void 0 ? s : xi;
|
|
@@ -16556,9 +16556,9 @@ class hn extends xl {
|
|
|
16556
16556
|
const a = t.getLineJoin();
|
|
16557
16557
|
e.lineJoin = a !== void 0 ? a : Ei;
|
|
16558
16558
|
const l = t.getWidth();
|
|
16559
|
-
e.lineWidth = l !== void 0 ? l :
|
|
16559
|
+
e.lineWidth = l !== void 0 ? l : Ji;
|
|
16560
16560
|
const c = t.getMiterLimit();
|
|
16561
|
-
e.miterLimit = c !== void 0 ? c :
|
|
16561
|
+
e.miterLimit = c !== void 0 ? c : Hi, e.lineWidth > this.maxLineWidth && (this.maxLineWidth = e.lineWidth, this.bufferedMaxExtent_ = null);
|
|
16562
16562
|
} else
|
|
16563
16563
|
e.strokeStyle = void 0, e.lineCap = void 0, e.lineDash = null, e.lineDashOffset = void 0, e.lineJoin = void 0, e.lineWidth = void 0, e.miterLimit = void 0;
|
|
16564
16564
|
return e;
|
|
@@ -16641,7 +16641,7 @@ class hn extends xl {
|
|
|
16641
16641
|
return this.bufferedMaxExtent_;
|
|
16642
16642
|
}
|
|
16643
16643
|
}
|
|
16644
|
-
class Jd extends
|
|
16644
|
+
class Jd extends cn {
|
|
16645
16645
|
/**
|
|
16646
16646
|
* @param {number} tolerance Tolerance.
|
|
16647
16647
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -16778,7 +16778,7 @@ class Jd extends hn {
|
|
|
16778
16778
|
this.imagePixelRatio_ = t.getPixelRatio(this.pixelRatio), this.anchorX_ = i[0], this.anchorY_ = i[1], this.hitDetectionImage_ = t.getHitDetectionImage(), this.image_ = t.getImage(this.pixelRatio), this.height_ = s[1], this.opacity_ = t.getOpacity(), this.originX_ = r[0], this.originY_ = r[1], this.rotateWithView_ = t.getRotateWithView(), this.rotation_ = t.getRotation(), this.scale_ = t.getScaleArray(), this.width_ = s[0], this.declutterMode_ = t.getDeclutterMode(), this.declutterImageWithText_ = e;
|
|
16779
16779
|
}
|
|
16780
16780
|
}
|
|
16781
|
-
class Qd extends
|
|
16781
|
+
class Qd extends cn {
|
|
16782
16782
|
/**
|
|
16783
16783
|
* @param {number} tolerance Tolerance.
|
|
16784
16784
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -16893,7 +16893,7 @@ class Qd extends hn {
|
|
|
16893
16893
|
t.lastStroke != null && t.lastStroke != this.coordinates.length && (this.instructions.push(Re), t.lastStroke = this.coordinates.length), t.lastStroke = 0, super.applyStroke(t), this.instructions.push(ze);
|
|
16894
16894
|
}
|
|
16895
16895
|
}
|
|
16896
|
-
class Ho extends
|
|
16896
|
+
class Ho extends cn {
|
|
16897
16897
|
/**
|
|
16898
16898
|
* @param {number} tolerance Tolerance.
|
|
16899
16899
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -16929,7 +16929,7 @@ class Ho extends hn {
|
|
|
16929
16929
|
];
|
|
16930
16930
|
this.instructions.push(f), this.hitDetectionInstructions.push(f), a && (this.instructions.push(Vo), this.hitDetectionInstructions.push(Vo)), e = h;
|
|
16931
16931
|
}
|
|
16932
|
-
return o && (this.instructions.push(
|
|
16932
|
+
return o && (this.instructions.push(In), this.hitDetectionInstructions.push(In)), a && (this.instructions.push(Re), this.hitDetectionInstructions.push(Re)), e;
|
|
16933
16933
|
}
|
|
16934
16934
|
/**
|
|
16935
16935
|
* @param {import("../../geom/Circle.js").default} circleGeometry Circle geometry.
|
|
@@ -16964,7 +16964,7 @@ class Ho extends hn {
|
|
|
16964
16964
|
!1
|
|
16965
16965
|
);
|
|
16966
16966
|
const h = [D.CIRCLE, c];
|
|
16967
|
-
this.instructions.push(ze, h), this.hitDetectionInstructions.push(ze, h), s.fillStyle !== void 0 && (this.instructions.push(
|
|
16967
|
+
this.instructions.push(ze, h), this.hitDetectionInstructions.push(ze, h), s.fillStyle !== void 0 && (this.instructions.push(In), this.hitDetectionInstructions.push(In)), s.strokeStyle !== void 0 && (this.instructions.push(Re), this.hitDetectionInstructions.push(Re)), this.endGeometry(e);
|
|
16968
16968
|
}
|
|
16969
16969
|
/**
|
|
16970
16970
|
* @param {import("../../geom/Polygon.js").default|import("../Feature.js").default} polygonGeometry Polygon geometry.
|
|
@@ -17084,7 +17084,7 @@ function ef(n, t, e, i, s) {
|
|
|
17084
17084
|
}
|
|
17085
17085
|
return l += f, l > a ? [c, u] : [r, o];
|
|
17086
17086
|
}
|
|
17087
|
-
const
|
|
17087
|
+
const Wn = {
|
|
17088
17088
|
left: 0,
|
|
17089
17089
|
center: 0.5,
|
|
17090
17090
|
right: 1,
|
|
@@ -17095,7 +17095,7 @@ const zn = {
|
|
|
17095
17095
|
ideographic: 0.8,
|
|
17096
17096
|
bottom: 1
|
|
17097
17097
|
};
|
|
17098
|
-
class nf extends
|
|
17098
|
+
class nf extends cn {
|
|
17099
17099
|
/**
|
|
17100
17100
|
* @param {number} tolerance Tolerance.
|
|
17101
17101
|
* @param {import("../../extent.js").Extent} maxExtent Maximum extent.
|
|
@@ -17315,9 +17315,9 @@ class nf extends hn {
|
|
|
17315
17315
|
const r = this.textKey_;
|
|
17316
17316
|
r in this.textStates || (this.textStates[r] = {
|
|
17317
17317
|
font: e.font,
|
|
17318
|
-
textAlign: e.textAlign ||
|
|
17318
|
+
textAlign: e.textAlign || qi,
|
|
17319
17319
|
justify: e.justify,
|
|
17320
|
-
textBaseline: e.textBaseline ||
|
|
17320
|
+
textBaseline: e.textBaseline || kn,
|
|
17321
17321
|
scale: e.scale
|
|
17322
17322
|
});
|
|
17323
17323
|
const o = this.fillKey_;
|
|
@@ -17333,7 +17333,7 @@ class nf extends hn {
|
|
|
17333
17333
|
drawChars_(t, e) {
|
|
17334
17334
|
const i = this.textStrokeState_, s = this.textState_, r = this.strokeKey_, o = this.textKey_, a = this.fillKey_;
|
|
17335
17335
|
this.saveTextStates_();
|
|
17336
|
-
const l = this.pixelRatio, c =
|
|
17336
|
+
const l = this.pixelRatio, c = Wn[s.textBaseline], h = this.textOffsetY_ * l, u = this.text_, d = i ? i.lineWidth * Math.abs(s.scale[0]) / 2 : 0;
|
|
17337
17337
|
this.instructions.push([
|
|
17338
17338
|
D.DRAW_CHARS,
|
|
17339
17339
|
t,
|
|
@@ -17392,15 +17392,15 @@ class nf extends hn {
|
|
|
17392
17392
|
r = this.textStrokeState_, r || (r = /** @type {import("../canvas.js").StrokeState} */
|
|
17393
17393
|
{}, this.textStrokeState_ = r);
|
|
17394
17394
|
const m = a.getLineDash(), _ = a.getLineDashOffset(), p = a.getWidth(), x = a.getMiterLimit();
|
|
17395
|
-
r.lineCap = a.getLineCap() || xi, r.lineDash = m ? m.slice() : he, r.lineDashOffset = _ === void 0 ? ce : _, r.lineJoin = a.getLineJoin() || Ei, r.lineWidth = p === void 0 ?
|
|
17396
|
-
a.getColor() ||
|
|
17395
|
+
r.lineCap = a.getLineCap() || xi, r.lineDash = m ? m.slice() : he, r.lineDashOffset = _ === void 0 ? ce : _, r.lineJoin = a.getLineJoin() || Ei, r.lineWidth = p === void 0 ? Ji : p, r.miterLimit = x === void 0 ? Hi : x, r.strokeStyle = Qt(
|
|
17396
|
+
a.getColor() || $i
|
|
17397
17397
|
);
|
|
17398
17398
|
}
|
|
17399
17399
|
i = this.textState_;
|
|
17400
17400
|
const l = t.getFont() || Qa;
|
|
17401
17401
|
Nu(l);
|
|
17402
17402
|
const c = t.getScaleArray();
|
|
17403
|
-
i.overflow = t.getOverflow(), i.font = l, i.maxAngle = t.getMaxAngle(), i.placement = t.getPlacement(), i.textAlign = t.getTextAlign(), i.repeat = t.getRepeat(), i.justify = t.getJustify(), i.textBaseline = t.getTextBaseline() ||
|
|
17403
|
+
i.overflow = t.getOverflow(), i.font = l, i.maxAngle = t.getMaxAngle(), i.placement = t.getPlacement(), i.textAlign = t.getTextAlign(), i.repeat = t.getRepeat(), i.justify = t.getJustify(), i.textBaseline = t.getTextBaseline() || kn, i.backgroundFill = t.getBackgroundFill(), i.backgroundStroke = t.getBackgroundStroke(), i.padding = t.getPadding() || Ge, i.scale = c === void 0 ? [1, 1] : c;
|
|
17404
17404
|
const h = t.getOffsetX(), u = t.getOffsetY(), d = t.getRotateWithView(), f = t.getKeepUpright(), g = t.getRotation();
|
|
17405
17405
|
this.text_ = t.getText() || "", this.textOffsetX_ = h === void 0 ? 0 : h, this.textOffsetY_ = u === void 0 ? 0 : u, this.textRotateWithView_ = d === void 0 ? !1 : d, this.textKeepUpright_ = f === void 0 ? !0 : f, this.textRotation_ = g === void 0 ? 0 : g, this.strokeKey_ = r ? (typeof r.strokeStyle == "string" ? r.strokeStyle : $(r.strokeStyle)) + r.lineCap + r.lineDashOffset + "|" + r.lineWidth + r.lineJoin + r.miterLimit + "[" + r.lineDash.join() + "]" : "", this.textKey_ = i.font + i.scale + (i.textAlign || "?") + (i.repeat || "?") + (i.justify || "?") + (i.textBaseline || "?"), this.fillKey_ = s && s.fillStyle ? typeof s.fillStyle == "string" ? s.fillStyle : "|" + $(s.fillStyle) : "";
|
|
17406
17406
|
}
|
|
@@ -17409,7 +17409,7 @@ class nf extends hn {
|
|
|
17409
17409
|
}
|
|
17410
17410
|
const sf = {
|
|
17411
17411
|
Circle: Ho,
|
|
17412
|
-
Default:
|
|
17412
|
+
Default: cn,
|
|
17413
17413
|
Image: Jd,
|
|
17414
17414
|
LineString: Qd,
|
|
17415
17415
|
Polygon: Ho,
|
|
@@ -17536,7 +17536,7 @@ const qo = new RegExp(
|
|
|
17536
17536
|
/* eslint-enable prettier/prettier */
|
|
17537
17537
|
);
|
|
17538
17538
|
function Gs(n, t) {
|
|
17539
|
-
return t === "start" ? t = qo.test(n) ? "right" : "left" : t === "end" && (t = qo.test(n) ? "left" : "right"),
|
|
17539
|
+
return t === "start" ? t = qo.test(n) ? "right" : "left" : t === "end" && (t = qo.test(n) ? "left" : "right"), Wn[t];
|
|
17540
17540
|
}
|
|
17541
17541
|
function lf(n, t, e) {
|
|
17542
17542
|
return e > 0 && n.push(`
|
|
@@ -17576,9 +17576,9 @@ class cf {
|
|
|
17576
17576
|
const o = s ? this.strokeStates[s] : null, a = i ? this.fillStates[i] : null, l = this.textStates[e], c = this.pixelRatio, h = [
|
|
17577
17577
|
l.scale[0] * c,
|
|
17578
17578
|
l.scale[1] * c
|
|
17579
|
-
], u = l.justify ?
|
|
17579
|
+
], u = l.justify ? Wn[l.justify] : Gs(
|
|
17580
17580
|
Array.isArray(t) ? t[0] : t,
|
|
17581
|
-
l.textAlign ||
|
|
17581
|
+
l.textAlign || qi
|
|
17582
17582
|
), d = s && o.lineWidth ? o.lineWidth : 0, f = Array.isArray(t) ? t : String(t).split(`
|
|
17583
17583
|
`).reduce(lf, []), { width: g, height: m, widths: _, heights: p, lineWidths: x } = zu(
|
|
17584
17584
|
l,
|
|
@@ -17771,8 +17771,8 @@ class cf {
|
|
|
17771
17771
|
drawLabelWithPointPlacement_(t, e, i, s) {
|
|
17772
17772
|
const r = this.textStates[e], o = this.createLabel(t, e, s, i), a = this.strokeStates[i], l = this.pixelRatio, c = Gs(
|
|
17773
17773
|
Array.isArray(t) ? t[0] : t,
|
|
17774
|
-
r.textAlign ||
|
|
17775
|
-
), h =
|
|
17774
|
+
r.textAlign || qi
|
|
17775
|
+
), h = Wn[r.textBaseline || kn], u = a && a.lineWidth ? a.lineWidth : 0, d = o.width / l - 2 * r.scale[0], f = c * d + 2 * (0.5 - c) * u, g = h * o.height / l + 2 * (0.5 - h) * u;
|
|
17776
17776
|
return {
|
|
17777
17777
|
label: o,
|
|
17778
17778
|
anchorX: f,
|
|
@@ -17844,13 +17844,13 @@ class cf {
|
|
|
17844
17844
|
case D.CUSTOM:
|
|
17845
17845
|
f = /** @type {number} */
|
|
17846
17846
|
I[1], g = I[2];
|
|
17847
|
-
const
|
|
17847
|
+
const un = (
|
|
17848
17848
|
/** @type {import("../../geom/SimpleGeometry.js").default} */
|
|
17849
17849
|
I[3]
|
|
17850
|
-
), ls = I[4],
|
|
17851
|
-
N.geometry =
|
|
17850
|
+
), ls = I[4], vi = I[5];
|
|
17851
|
+
N.geometry = un, N.feature = k, u in A || (A[u] = []);
|
|
17852
17852
|
const be = A[u];
|
|
17853
|
-
|
|
17853
|
+
vi ? vi(h, f, g, 2, be) : (be[0] = h[f], be[1] = h[f + 1], be.length = 2), c && (c.zIndex = I[6]), ls(be, N), ++u;
|
|
17854
17854
|
break;
|
|
17855
17855
|
case D.DRAW_IMAGE:
|
|
17856
17856
|
f = /** @type {number} */
|
|
@@ -17872,7 +17872,7 @@ class cf {
|
|
|
17872
17872
|
), Ue = (
|
|
17873
17873
|
/** @type {number} */
|
|
17874
17874
|
I[9]
|
|
17875
|
-
),
|
|
17875
|
+
), Ti = (
|
|
17876
17876
|
/** @type {boolean} */
|
|
17877
17877
|
I[10]
|
|
17878
17878
|
);
|
|
@@ -17920,11 +17920,11 @@ class cf {
|
|
|
17920
17920
|
let hs;
|
|
17921
17921
|
I.length > 25 && (hs = /** @type {number} */
|
|
17922
17922
|
I[25]);
|
|
17923
|
-
let cs,
|
|
17923
|
+
let cs, dn, fn;
|
|
17924
17924
|
I.length > 17 ? (cs = /** @type {Array<number>} */
|
|
17925
|
-
I[16],
|
|
17926
|
-
I[17],
|
|
17927
|
-
I[18]) : (cs = Ge,
|
|
17925
|
+
I[16], dn = /** @type {Array<*>} */
|
|
17926
|
+
I[17], fn = /** @type {Array<*>} */
|
|
17927
|
+
I[18]) : (cs = Ge, dn = null, fn = null), Ti && B ? Me += P : !Ti && !B && (Me -= P);
|
|
17928
17928
|
let vl = 0;
|
|
17929
17929
|
for (; f < g; f += 2) {
|
|
17930
17930
|
if (hs && hs[vl++] < He / this.pixelRatio)
|
|
@@ -17944,7 +17944,7 @@ class cf {
|
|
|
17944
17944
|
Ve,
|
|
17945
17945
|
r,
|
|
17946
17946
|
cs,
|
|
17947
|
-
!!
|
|
17947
|
+
!!dn || !!fn,
|
|
17948
17948
|
k
|
|
17949
17949
|
), Ae = [
|
|
17950
17950
|
t,
|
|
@@ -17952,8 +17952,8 @@ class cf {
|
|
|
17952
17952
|
R,
|
|
17953
17953
|
Pt,
|
|
17954
17954
|
Vt,
|
|
17955
|
-
|
|
17956
|
-
|
|
17955
|
+
dn,
|
|
17956
|
+
fn
|
|
17957
17957
|
];
|
|
17958
17958
|
if (l) {
|
|
17959
17959
|
let Ot, Ht, Dt;
|
|
@@ -18022,13 +18022,13 @@ class cf {
|
|
|
18022
18022
|
const Sl = (
|
|
18023
18023
|
/** @type {boolean} */
|
|
18024
18024
|
I[15]
|
|
18025
|
-
), fs = this.textStates[v],
|
|
18025
|
+
), fs = this.textStates[v], Ii = fs.font, Si = [
|
|
18026
18026
|
fs.scale[0] * Zr,
|
|
18027
18027
|
fs.scale[1] * Zr
|
|
18028
18028
|
];
|
|
18029
|
-
let
|
|
18030
|
-
|
|
18031
|
-
const Vr = of(h, Kr, Br, 2), Hr = Math.abs(
|
|
18029
|
+
let Li;
|
|
18030
|
+
Ii in this.widths_ ? Li = this.widths_[Ii] : (Li = {}, this.widths_[Ii] = Li);
|
|
18031
|
+
const Vr = of(h, Kr, Br, 2), Hr = Math.abs(Si[0]) * Oo(Ii, T, Li);
|
|
18032
18032
|
if (Tl || Hr <= Vr) {
|
|
18033
18033
|
const Pt = this.textStates[v].textAlign, Ae = (Vr - Hr) * Gs(T, Pt), Ot = af(
|
|
18034
18034
|
h,
|
|
@@ -18038,10 +18038,10 @@ class cf {
|
|
|
18038
18038
|
T,
|
|
18039
18039
|
Ae,
|
|
18040
18040
|
Il,
|
|
18041
|
-
Math.abs(
|
|
18041
|
+
Math.abs(Si[0]),
|
|
18042
18042
|
Oo,
|
|
18043
|
-
|
|
18044
|
-
|
|
18043
|
+
Ii,
|
|
18044
|
+
Li,
|
|
18045
18045
|
B ? 0 : this.viewRotation_,
|
|
18046
18046
|
Sl
|
|
18047
18047
|
);
|
|
@@ -18052,7 +18052,7 @@ class cf {
|
|
|
18052
18052
|
for (Dt = 0, ee = Ot.length; Dt < ee; ++Dt) {
|
|
18053
18053
|
xt = Ot[Dt], ie = /** @type {string} */
|
|
18054
18054
|
xt[4], st = this.createLabel(ie, v, "", S), m = /** @type {number} */
|
|
18055
|
-
xt[2] + (
|
|
18055
|
+
xt[2] + (Si[0] < 0 ? -ds : ds), _ = us * st.height + (0.5 - us) * 2 * ds * Si[1] / Si[0] - jr;
|
|
18056
18056
|
const ne = this.calculateImageOrLabelDimensions_(
|
|
18057
18057
|
st.width,
|
|
18058
18058
|
st.height,
|
|
@@ -18311,7 +18311,7 @@ class df {
|
|
|
18311
18311
|
const h = this.hitDetectionContext_;
|
|
18312
18312
|
h.canvas.width !== a || h.canvas.height !== a ? (h.canvas.width = a, h.canvas.height = a) : c || h.clearRect(0, 0, a, a);
|
|
18313
18313
|
let u;
|
|
18314
|
-
this.renderBuffer_ !== void 0 && (u = Wt(),
|
|
18314
|
+
this.renderBuffer_ !== void 0 && (u = Wt(), Xi(u, t), or(
|
|
18315
18315
|
u,
|
|
18316
18316
|
e * (this.renderBuffer_ + s),
|
|
18317
18317
|
u
|
|
@@ -18459,7 +18459,7 @@ class gf extends xl {
|
|
|
18459
18459
|
* @param {import("../../proj.js").TransformFunction} [userTransform] Transform from user to view projection.
|
|
18460
18460
|
*/
|
|
18461
18461
|
constructor(t, e, i, s, r, o, a) {
|
|
18462
|
-
super(), this.context_ = t, this.pixelRatio_ = e, this.extent_ = i, this.transform_ = s, this.transformRotation_ = s ?
|
|
18462
|
+
super(), this.context_ = t, this.pixelRatio_ = e, this.extent_ = i, this.transform_ = s, this.transformRotation_ = s ? Zn(Math.atan2(s[1], s[0]), 10) : 0, this.viewRotation_ = r, this.squaredTolerance_ = o, this.userTransform_ = a, this.contextFillState_ = null, this.contextStrokeState_ = null, this.contextTextState_ = null, this.fillState_ = null, this.strokeState_ = null, this.image_ = null, this.imageAnchorX_ = 0, this.imageAnchorY_ = 0, this.imageHeight_ = 0, this.imageOpacity_ = 0, this.imageOriginX_ = 0, this.imageOriginY_ = 0, this.imageRotateWithView_ = !1, this.imageRotation_ = 0, this.imageScale_ = [0, 0], this.imageWidth_ = 0, this.text_ = "", this.textOffsetX_ = 0, this.textOffsetY_ = 0, this.textRotateWithView_ = !1, this.textRotation_ = 0, this.textScale_ = [0, 0], this.textFillState_ = null, this.textStrokeState_ = null, this.textState_ = null, this.pixelCoordinates_ = [], this.tmpLocalTransform_ = Zt();
|
|
18463
18463
|
}
|
|
18464
18464
|
/**
|
|
18465
18465
|
* @param {Array<number>} flatCoordinates Flat coordinates.
|
|
@@ -18921,7 +18921,7 @@ class gf extends xl {
|
|
|
18921
18921
|
* @private
|
|
18922
18922
|
*/
|
|
18923
18923
|
setContextTextState_(t) {
|
|
18924
|
-
const e = this.context_, i = this.contextTextState_, s = t.textAlign ? t.textAlign :
|
|
18924
|
+
const e = this.context_, i = this.contextTextState_, s = t.textAlign ? t.textAlign : qi;
|
|
18925
18925
|
i ? (i.font != t.font && (i.font = t.font, e.font = t.font), i.textAlign != s && (i.textAlign = s, e.textAlign = s), i.textBaseline != t.textBaseline && (i.textBaseline = t.textBaseline, e.textBaseline = t.textBaseline)) : (e.font = t.font, e.textAlign = s, e.textBaseline = t.textBaseline, this.contextTextState_ = {
|
|
18926
18926
|
font: t.font,
|
|
18927
18927
|
textAlign: s,
|
|
@@ -18956,10 +18956,10 @@ class gf extends xl {
|
|
|
18956
18956
|
lineDash: this.pixelRatio_ === 1 ? h : h.map((u) => u * this.pixelRatio_),
|
|
18957
18957
|
lineDashOffset: (o || ce) * this.pixelRatio_,
|
|
18958
18958
|
lineJoin: a !== void 0 ? a : Ei,
|
|
18959
|
-
lineWidth: (l !== void 0 ? l :
|
|
18960
|
-
miterLimit: c !== void 0 ? c :
|
|
18959
|
+
lineWidth: (l !== void 0 ? l : Ji) * this.pixelRatio_,
|
|
18960
|
+
miterLimit: c !== void 0 ? c : Hi,
|
|
18961
18961
|
strokeStyle: Qt(
|
|
18962
|
-
i ||
|
|
18962
|
+
i || $i
|
|
18963
18963
|
)
|
|
18964
18964
|
};
|
|
18965
18965
|
}
|
|
@@ -19017,18 +19017,18 @@ class gf extends xl {
|
|
|
19017
19017
|
lineDash: m || he,
|
|
19018
19018
|
lineDashOffset: _ || ce,
|
|
19019
19019
|
lineJoin: p !== void 0 ? p : Ei,
|
|
19020
|
-
lineWidth: x !== void 0 ? x :
|
|
19021
|
-
miterLimit: C !== void 0 ? C :
|
|
19020
|
+
lineWidth: x !== void 0 ? x : Ji,
|
|
19021
|
+
miterLimit: C !== void 0 ? C : Hi,
|
|
19022
19022
|
strokeStyle: Qt(
|
|
19023
|
-
f ||
|
|
19023
|
+
f || $i
|
|
19024
19024
|
)
|
|
19025
19025
|
};
|
|
19026
19026
|
}
|
|
19027
19027
|
const s = t.getFont(), r = t.getOffsetX(), o = t.getOffsetY(), a = t.getRotateWithView(), l = t.getRotation(), c = t.getScaleArray(), h = t.getText(), u = t.getTextAlign(), d = t.getTextBaseline();
|
|
19028
19028
|
this.textState_ = {
|
|
19029
19029
|
font: s !== void 0 ? s : Qa,
|
|
19030
|
-
textAlign: u !== void 0 ? u :
|
|
19031
|
-
textBaseline: d !== void 0 ? d :
|
|
19030
|
+
textAlign: u !== void 0 ? u : qi,
|
|
19031
|
+
textBaseline: d !== void 0 ? d : kn
|
|
19032
19032
|
}, this.text_ = h !== void 0 ? Array.isArray(h) ? h.reduce((f, g, m) => f += m % 2 ? " " : g, "") : h : "", this.textOffsetX_ = r !== void 0 ? this.pixelRatio_ * r : 0, this.textOffsetY_ = o !== void 0 ? this.pixelRatio_ * o : 0, this.textRotateWithView_ = a !== void 0 ? a : !1, this.textRotation_ = l !== void 0 ? l : 0, this.textScale_ = [
|
|
19033
19033
|
this.pixelRatio_ * c[0],
|
|
19034
19034
|
this.pixelRatio_ * c[1]
|
|
@@ -19078,7 +19078,7 @@ function _f(n, t, e, i, s, r, o, a, l) {
|
|
|
19078
19078
|
{ alpha: !1 }
|
|
19079
19079
|
), I = et.canvas;
|
|
19080
19080
|
et.fillStyle = v, et.fillRect(0, 0, I.width, I.height), A.setImage(
|
|
19081
|
-
new
|
|
19081
|
+
new rs({
|
|
19082
19082
|
img: I,
|
|
19083
19083
|
anchor: N.getAnchor(),
|
|
19084
19084
|
anchorXUnits: "pixels",
|
|
@@ -19375,7 +19375,7 @@ class Lf extends gl {
|
|
|
19375
19375
|
resetDrawContext_() {
|
|
19376
19376
|
if (this.opacity_ !== 1 && this.targetContext_) {
|
|
19377
19377
|
const t = this.targetContext_.globalAlpha;
|
|
19378
|
-
this.targetContext_.globalAlpha = this.opacity_, this.targetContext_.drawImage(this.context.canvas, 0, 0), this.targetContext_.globalAlpha = t,
|
|
19378
|
+
this.targetContext_.globalAlpha = this.opacity_, this.targetContext_.drawImage(this.context.canvas, 0, 0), this.targetContext_.globalAlpha = t, es(this.context), Zo.push(this.context.canvas), this.context = this.targetContext_, this.targetContext_ = null;
|
|
19379
19379
|
}
|
|
19380
19380
|
}
|
|
19381
19381
|
/**
|
|
@@ -19411,7 +19411,7 @@ class Lf extends gl {
|
|
|
19411
19411
|
return this.container;
|
|
19412
19412
|
if (this.setDrawContext_(), this.preRender(r, t), s.projection, this.clipped_ = !1, a && i.extent && this.clipping) {
|
|
19413
19413
|
const l = we(i.extent);
|
|
19414
|
-
a = Tt(l, t.extent), this.clipped_ = a && !
|
|
19414
|
+
a = Tt(l, t.extent), this.clipped_ = a && !Di(l, t.extent), this.clipped_ && this.clipUnrotated(r, t, l);
|
|
19415
19415
|
}
|
|
19416
19416
|
return a && this.renderWorlds(
|
|
19417
19417
|
o,
|
|
@@ -19442,7 +19442,7 @@ class Lf extends gl {
|
|
|
19442
19442
|
).slice()
|
|
19443
19443
|
);
|
|
19444
19444
|
const f = c.getSource(), g = a.getExtent();
|
|
19445
|
-
if (f.getWrapX() && a.canWrapX() && !
|
|
19445
|
+
if (f.getWrapX() && a.canWrapX() && !Di(g, l)) {
|
|
19446
19446
|
let m = l[0];
|
|
19447
19447
|
const _ = tt(g);
|
|
19448
19448
|
let p = 0, x;
|
|
@@ -19568,7 +19568,7 @@ class Lf extends gl {
|
|
|
19568
19568
|
l,
|
|
19569
19569
|
g * u
|
|
19570
19570
|
), x = p.slice(), C = [p.slice()], y = h.getExtent();
|
|
19571
|
-
if (i.getWrapX() && h.canWrapX() && !
|
|
19571
|
+
if (i.getWrapX() && h.canWrapX() && !Di(y, t.extent)) {
|
|
19572
19572
|
const P = tt(y), B = Math.max(tt(p) / 2, P);
|
|
19573
19573
|
p[0] = y[0] - B, p[2] = y[2] + B, Ca(_, h);
|
|
19574
19574
|
const N = xa(C[0], h);
|
|
@@ -19584,7 +19584,7 @@ class Lf extends gl {
|
|
|
19584
19584
|
N[3]
|
|
19585
19585
|
]);
|
|
19586
19586
|
}
|
|
19587
|
-
if (this.ready && this.renderedResolution_ == u && this.renderedRevision_ == f && this.renderedRenderOrder_ == m && this.renderedFrameDeclutter_ === !!t.declutter &&
|
|
19587
|
+
if (this.ready && this.renderedResolution_ == u && this.renderedRevision_ == f && this.renderedRenderOrder_ == m && this.renderedFrameDeclutter_ === !!t.declutter && Di(this.wrappedRenderedExtent_, p))
|
|
19588
19588
|
return Le(this.renderedExtent_, x) || (this.hitDetectionImageData_ = null, this.renderedExtent_ = x), this.renderedCenter_ = _, this.replayGroupChanged = !1, !0;
|
|
19589
19589
|
this.replayGroup_ = null;
|
|
19590
19590
|
const E = new rf(
|
|
@@ -20129,7 +20129,7 @@ class na {
|
|
|
20129
20129
|
*/
|
|
20130
20130
|
update(t, e) {
|
|
20131
20131
|
const i = this.items_[$(e)], s = [i.minX, i.minY, i.maxX, i.maxY];
|
|
20132
|
-
|
|
20132
|
+
Zi(s, t) || (this.remove(e), this.insert(t, e));
|
|
20133
20133
|
}
|
|
20134
20134
|
/**
|
|
20135
20135
|
* Return all values in the RBush.
|
|
@@ -20286,7 +20286,7 @@ class Df extends yl {
|
|
|
20286
20286
|
projection: void 0,
|
|
20287
20287
|
state: "ready",
|
|
20288
20288
|
wrapX: t.wrapX !== void 0 ? t.wrapX : !0
|
|
20289
|
-
}), this.on, this.once, this.un, this.loader_ =
|
|
20289
|
+
}), this.on, this.once, this.un, this.loader_ = Bi, this.format_ = t.format || null, this.overlaps_ = t.overlaps === void 0 ? !0 : t.overlaps, this.url_ = t.url, t.loader !== void 0 ? this.loader_ = t.loader : this.url_ !== void 0 && (J(this.format_, "`format` must be set when `url` is set"), this.loader_ = ta(this.url_, this.format_)), this.strategy_ = t.strategy !== void 0 ? t.strategy : Pf;
|
|
20290
20290
|
const e = t.useSpatialIndex !== void 0 ? t.useSpatialIndex : !0;
|
|
20291
20291
|
this.featuresRtree_ = e ? new na() : null, this.loadedExtentsRtree_ = new na(), this.loadingExtentsCount_ = 0, this.nullGeometryFeatures_ = {}, this.idIndex_ = {}, this.uidIndex_ = {}, this.featureChangeKeys_ = {}, this.featuresCollection_ = null;
|
|
20292
20292
|
let i, s;
|
|
@@ -20637,7 +20637,7 @@ class Df extends yl {
|
|
|
20637
20637
|
const o = [NaN, NaN];
|
|
20638
20638
|
let a = 1 / 0;
|
|
20639
20639
|
const l = [-1 / 0, -1 / 0, 1 / 0, 1 / 0];
|
|
20640
|
-
return e = e ||
|
|
20640
|
+
return e = e || Ki, this.featuresRtree_.forEachInExtent(
|
|
20641
20641
|
l,
|
|
20642
20642
|
/**
|
|
20643
20643
|
* @param {FeatureType} feature Feature.
|
|
@@ -20777,7 +20777,7 @@ class Df extends yl {
|
|
|
20777
20777
|
* @return {boolean} Contains.
|
|
20778
20778
|
*/
|
|
20779
20779
|
function(h) {
|
|
20780
|
-
return
|
|
20780
|
+
return Di(h.extent, l);
|
|
20781
20781
|
}
|
|
20782
20782
|
) || (++this.loadingExtentsCount_, this.dispatchEvent(
|
|
20783
20783
|
new ye(Ft.FEATURESLOADSTART)
|
|
@@ -20820,7 +20820,7 @@ class Df extends yl {
|
|
|
20820
20820
|
*/
|
|
20821
20821
|
removeLoadedExtent(t) {
|
|
20822
20822
|
const e = this.loadedExtentsRtree_, i = e.forEachInExtent(t, function(s) {
|
|
20823
|
-
if (
|
|
20823
|
+
if (Zi(s.extent, t))
|
|
20824
20824
|
return s;
|
|
20825
20825
|
});
|
|
20826
20826
|
i && e.remove(i);
|
|
@@ -20908,7 +20908,7 @@ class Df extends yl {
|
|
|
20908
20908
|
}
|
|
20909
20909
|
}
|
|
20910
20910
|
function Yr() {
|
|
20911
|
-
const n =
|
|
20911
|
+
const n = Sn(null), [t, e] = oa({ width: 0, height: 0 });
|
|
20912
20912
|
return ir(() => {
|
|
20913
20913
|
const i = n.current;
|
|
20914
20914
|
if (!i) return;
|
|
@@ -20933,7 +20933,7 @@ function kf({
|
|
|
20933
20933
|
page: n,
|
|
20934
20934
|
component: t
|
|
20935
20935
|
}) {
|
|
20936
|
-
const e =
|
|
20936
|
+
const e = Sn(null), i = Sn(null), { ref: s } = Yr(), r = Ff(t.config), o = $r(() => t.dataRef ? Xn(n, t.dataRef) : [], [n, t.dataRef]), a = $r(() => o ? o.map((l) => {
|
|
20937
20937
|
const c = typeof l.longitude == "number" ? l.longitude : typeof l.lng == "number" ? l.lng : void 0, h = typeof l.latitude == "number" ? l.latitude : typeof l.lat == "number" ? l.lat : void 0;
|
|
20938
20938
|
return typeof c != "number" || typeof h != "number" || !Number.isFinite(c) || !Number.isFinite(h) ? null : {
|
|
20939
20939
|
longitude: c,
|
|
@@ -20944,7 +20944,7 @@ function kf({
|
|
|
20944
20944
|
}).filter((l) => l !== null) : [], [o]);
|
|
20945
20945
|
return ir(() => {
|
|
20946
20946
|
if (!e.current || i.current) return;
|
|
20947
|
-
const l = r.center ?
|
|
20947
|
+
const l = r.center ? yn(r.center) : a.length > 0 ? yn([a[0].longitude, a[0].latitude]) : yn([0, 0]), c = r.zoom || (a.length > 0 ? 12 : 2), h = new ld({
|
|
20948
20948
|
target: e.current,
|
|
20949
20949
|
controls: [],
|
|
20950
20950
|
// Remove all controls
|
|
@@ -20960,7 +20960,7 @@ function kf({
|
|
|
20960
20960
|
});
|
|
20961
20961
|
if (i.current = h, a.length > 0) {
|
|
20962
20962
|
const u = a.map((g) => new Xr({
|
|
20963
|
-
geometry: new
|
|
20963
|
+
geometry: new Qn(yn([g.longitude, g.latitude])),
|
|
20964
20964
|
name: g.name,
|
|
20965
20965
|
description: g.description
|
|
20966
20966
|
})), d = new Df({
|
|
@@ -20969,8 +20969,14 @@ function kf({
|
|
|
20969
20969
|
source: d,
|
|
20970
20970
|
style: new Ie({
|
|
20971
20971
|
image: new an({
|
|
20972
|
-
|
|
20973
|
-
|
|
20972
|
+
radius: 8,
|
|
20973
|
+
fill: new Ri({
|
|
20974
|
+
color: "#F46C21"
|
|
20975
|
+
}),
|
|
20976
|
+
stroke: new ln({
|
|
20977
|
+
color: "#fff",
|
|
20978
|
+
width: 2
|
|
20979
|
+
})
|
|
20974
20980
|
})
|
|
20975
20981
|
})
|
|
20976
20982
|
});
|
|
@@ -21012,7 +21018,7 @@ aa.initialize({
|
|
|
21012
21018
|
securityLevel: "loose"
|
|
21013
21019
|
});
|
|
21014
21020
|
function Gf({ page: n, componentId: t, component: e }) {
|
|
21015
|
-
const i = e.title ?? t, s = typeof e.config?.mermaid == "string" ? e.config.mermaid : "", r =
|
|
21021
|
+
const i = e.title ?? t, s = typeof e.config?.mermaid == "string" ? e.config.mermaid : "", r = Sn(null), [o, a] = oa(1);
|
|
21016
21022
|
ir(() => {
|
|
21017
21023
|
if (!s || !r.current) return;
|
|
21018
21024
|
(async () => {
|
|
@@ -21108,7 +21114,7 @@ function Gf({ page: n, componentId: t, component: e }) {
|
|
|
21108
21114
|
] });
|
|
21109
21115
|
}
|
|
21110
21116
|
function zf({ page: n, componentId: t, component: e }) {
|
|
21111
|
-
const i =
|
|
21117
|
+
const i = Xn(n, e.dataRef) ?? [], s = e.config?.columns, r = s && s.length ? s : Object.keys(i[0] ?? {}).map((o) => ({ key: o, label: o }));
|
|
21112
21118
|
return /* @__PURE__ */ at("div", { style: b.panel, children: [
|
|
21113
21119
|
/* @__PURE__ */ L("div", { style: b.panelHeader, children: /* @__PURE__ */ L("div", { style: b.panelTitle, children: e.title ?? t }) }),
|
|
21114
21120
|
/* @__PURE__ */ L("div", { style: b.panelBody, children: /* @__PURE__ */ L("div", { style: b.tableWrap, children: /* @__PURE__ */ at("table", { style: b.table, children: [
|
|
@@ -21133,7 +21139,7 @@ function Xf(n) {
|
|
|
21133
21139
|
return t(n);
|
|
21134
21140
|
}
|
|
21135
21141
|
function Yf({ page: n, componentId: t, component: e }) {
|
|
21136
|
-
const i =
|
|
21142
|
+
const i = Xn(n, e.dataRef), { ref: s, size: r } = Yr(), o = e.spec ?? {}, a = o.config ?? {}, l = {
|
|
21137
21143
|
...a,
|
|
21138
21144
|
axis: { ...a.axis, grid: !1 },
|
|
21139
21145
|
axisX: { ...a.axisX, grid: !1 },
|