@datagouv/components-next 1.0.2-dev.208 → 1.0.2-dev.209
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/{Control-B9WQxlpJ.js → Control-DMgMzWnv.js} +1 -1
- package/dist/{Datafair.client-CZhPt853.js → Datafair.client-DpdHdQSx.js} +1 -1
- package/dist/{Event-iXDrp-fy.js → Event-CfA33G1K.js} +9 -9
- package/dist/{Image-mNMBOofs.js → Image-Dueb7njC.js} +12 -12
- package/dist/{ImagePreview.client-CTF6hyMR.js → ImagePreview.client-CtbvW_Q_.js} +1 -1
- package/dist/{JsonPreview.client-BwsgTnR7.js → JsonPreview.client-CboMjF2M.js} +2 -2
- package/dist/{Map-BfqKMw0S.js → Map-B4L0JtRr.js} +1113 -1025
- package/dist/{MapContainer.client-C95seuim.js → MapContainer.client-BPAbtzkr.js} +7 -7
- package/dist/{OSM-CcrUhItr.js → OSM-BUakwXg7.js} +1 -1
- package/dist/{PdfPreview.client-DaXPl9xc.js → PdfPreview.client-DQF8gS3o.js} +2 -2
- package/dist/{Pmtiles.client-PSLUkGmF.js → Pmtiles.client-B-X5pTXq.js} +5788 -5737
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-McCfJHd3.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-CzFj5TX2.js} +1 -1
- package/dist/{ScaleLine-VGQ7nkMS.js → ScaleLine-4id_Lp0T.js} +2 -2
- package/dist/{Tile-CSpn0Ca8.js → Tile-DI5PtNs-.js} +375 -325
- package/dist/{TileImage-CpbaEFwd.js → TileImage-DFTatxB8.js} +83 -63
- package/dist/{View-BYBpt-AU.js → View-CwG9s9BF.js} +108 -101
- package/dist/{XmlPreview.client-BOVVyHXW.js → XmlPreview.client-BvlwpV00.js} +3 -3
- package/dist/{common-BoeTUnDZ.js → common-C3bYhKiN.js} +71 -70
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +1 -1
- package/dist/components.css +2 -2
- package/dist/{index-CeH9i6IP.js → index-D2eZ5uVt.js} +5683 -5785
- package/dist/{leaflet-src-D1Cl1V-1.js → leaflet-src-CM7H_PEp.js} +1 -1
- package/dist/{main-DADRUTDs.js → main-D1VXLvop.js} +12531 -13523
- package/dist/{proj-DxGbobp7.js → proj-DQrI7bbu.js} +302 -282
- package/dist/{tilecoord-DvX7WWiA.js → tilecoord-xLae1hR5.js} +106 -106
- package/dist/{vue3-xml-viewer.common-BzsQ7xw8.js → vue3-xml-viewer.common-D8NyU_-4.js} +1 -1
- package/package.json +25 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as Wt, e as Kt, u as lt, v as
|
|
1
|
+
import { a7 as y, B as it, v as Tt, A as Ft, am as x, aa as Et, aP as St, y as vt, z as T, al as q, r as Zt, x as F, s as j, m as zt, aQ as Pt, p as st, w as Xt, q as Yt, a2 as bt, I as ot, o as rt, aR as Gt, K as at, J as G, an as Lt, aS as L, M as Ot, ae as p, j as v, S as W, aI as Vt, aT as kt, aj as K, k as Ut, N as Dt, V as Ht, ah as Y, aU as qt } from "./proj-DQrI7bbu.js";
|
|
2
|
+
import { d as Wt, e as Kt, i as $t, u as lt, v as Bt, w as Jt, a as N, j as Qt, x as te } from "./common-C3bYhKiN.js";
|
|
3
3
|
const I = {
|
|
4
4
|
ANIMATING: 0,
|
|
5
5
|
INTERACTING: 1
|
|
@@ -35,7 +35,7 @@ function $(s, t, e) {
|
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ee(s) {
|
|
39
39
|
return s;
|
|
40
40
|
}
|
|
41
41
|
function ht(s, t, e, n, i, o, r) {
|
|
@@ -49,7 +49,7 @@ function ht(s, t, e, n, i, o, r) {
|
|
|
49
49
|
}
|
|
50
50
|
return o && o.length != l && (o.length = l), o;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ne(s, t, e, n, i, o, r) {
|
|
53
53
|
r = r || [];
|
|
54
54
|
const l = Math.cos(i), a = Math.sin(i), c = o[0], h = o[1];
|
|
55
55
|
let u = 0;
|
|
@@ -61,7 +61,7 @@ function ee(s, t, e, n, i, o, r) {
|
|
|
61
61
|
}
|
|
62
62
|
return r && r.length != u && (r.length = u), r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ie(s, t, e, n, i, o, r, l) {
|
|
65
65
|
l = l || [];
|
|
66
66
|
const a = r[0], c = r[1];
|
|
67
67
|
let h = 0;
|
|
@@ -73,7 +73,7 @@ function ne(s, t, e, n, i, o, r, l) {
|
|
|
73
73
|
}
|
|
74
74
|
return l && l.length != h && (l.length = h), l;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function se(s, t, e, n, i, o, r) {
|
|
77
77
|
r = r || [];
|
|
78
78
|
let l = 0;
|
|
79
79
|
for (let a = t; a < e; a += n) {
|
|
@@ -83,10 +83,10 @@ function ie(s, t, e, n, i, o, r) {
|
|
|
83
83
|
}
|
|
84
84
|
return r && r.length != l && (r.length = l), r;
|
|
85
85
|
}
|
|
86
|
-
const B = Kt(),
|
|
87
|
-
class
|
|
86
|
+
const B = Kt(), oe = [NaN, NaN];
|
|
87
|
+
class re extends it {
|
|
88
88
|
constructor() {
|
|
89
|
-
super(), this.extent_ =
|
|
89
|
+
super(), this.extent_ = Tt(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Ft(
|
|
90
90
|
(t, e, n) => {
|
|
91
91
|
if (!n)
|
|
92
92
|
return this.getSimplifiedGeometry(e);
|
|
@@ -134,7 +134,7 @@ class oe extends it {
|
|
|
134
134
|
* @return {boolean} Contains (x, y).
|
|
135
135
|
*/
|
|
136
136
|
containsXY(t, e) {
|
|
137
|
-
return this.closestPointXY(t, e,
|
|
137
|
+
return this.closestPointXY(t, e, oe, Number.MIN_VALUE) === 0;
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* Return the closest point of the geometry to the passed point as
|
|
@@ -177,7 +177,7 @@ class oe extends it {
|
|
|
177
177
|
const e = this.computeExtent(this.extent_);
|
|
178
178
|
(isNaN(e[0]) || isNaN(e[1])) && Et(e), this.extentRevision_ = this.getRevision();
|
|
179
179
|
}
|
|
180
|
-
return
|
|
180
|
+
return St(this.extent_, t);
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Rotate the geometry around a given coordinate. This modifies the geometry
|
|
@@ -282,8 +282,8 @@ class oe extends it {
|
|
|
282
282
|
* @api
|
|
283
283
|
*/
|
|
284
284
|
transform(t, e) {
|
|
285
|
-
const n =
|
|
286
|
-
const a = n.getExtent(), c = n.getWorldExtent(), h =
|
|
285
|
+
const n = vt(t), i = n.getUnits() == "tile-pixels" ? function(o, r, l) {
|
|
286
|
+
const a = n.getExtent(), c = n.getWorldExtent(), h = T(c) / T(a);
|
|
287
287
|
Wt(
|
|
288
288
|
B,
|
|
289
289
|
c[0],
|
|
@@ -307,7 +307,7 @@ class oe extends it {
|
|
|
307
307
|
return this.applyTransform(i), this;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
class O extends
|
|
310
|
+
class O extends re {
|
|
311
311
|
constructor() {
|
|
312
312
|
super(), this.layout = "XY", this.stride = 2, this.flatCoordinates;
|
|
313
313
|
}
|
|
@@ -425,7 +425,7 @@ class O extends oe {
|
|
|
425
425
|
e = /** @type {Array<unknown>} */
|
|
426
426
|
e[0];
|
|
427
427
|
}
|
|
428
|
-
i = e.length, t =
|
|
428
|
+
i = e.length, t = ae(i);
|
|
429
429
|
}
|
|
430
430
|
this.layout = t, this.stride = i;
|
|
431
431
|
}
|
|
@@ -459,7 +459,7 @@ class O extends oe {
|
|
|
459
459
|
const n = this.getFlatCoordinates();
|
|
460
460
|
if (n) {
|
|
461
461
|
const i = this.getStride();
|
|
462
|
-
|
|
462
|
+
ne(
|
|
463
463
|
n,
|
|
464
464
|
0,
|
|
465
465
|
n.length,
|
|
@@ -481,11 +481,11 @@ class O extends oe {
|
|
|
481
481
|
* @override
|
|
482
482
|
*/
|
|
483
483
|
scale(t, e, n) {
|
|
484
|
-
e === void 0 && (e = t), n || (n =
|
|
484
|
+
e === void 0 && (e = t), n || (n = F(this.getExtent()));
|
|
485
485
|
const i = this.getFlatCoordinates();
|
|
486
486
|
if (i) {
|
|
487
487
|
const o = this.getStride();
|
|
488
|
-
|
|
488
|
+
ie(
|
|
489
489
|
i,
|
|
490
490
|
0,
|
|
491
491
|
i.length,
|
|
@@ -509,7 +509,7 @@ class O extends oe {
|
|
|
509
509
|
const n = this.getFlatCoordinates();
|
|
510
510
|
if (n) {
|
|
511
511
|
const i = this.getStride();
|
|
512
|
-
|
|
512
|
+
se(
|
|
513
513
|
n,
|
|
514
514
|
0,
|
|
515
515
|
n.length,
|
|
@@ -521,7 +521,7 @@ class O extends oe {
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function ae(s) {
|
|
525
525
|
let t;
|
|
526
526
|
return s == 2 ? t = "XY" : s == 3 ? t = "XYZ" : s == 4 && (t = "XYZM"), /** @type {import("./Geometry.js").GeometryLayout} */
|
|
527
527
|
t;
|
|
@@ -531,7 +531,7 @@ function J(s) {
|
|
|
531
531
|
return s == "XY" ? t = 2 : s == "XYZ" || s == "XYM" ? t = 3 : s == "XYZM" && (t = 4), /** @type {number} */
|
|
532
532
|
t;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function we(s, t, e) {
|
|
535
535
|
const n = s.getFlatCoordinates();
|
|
536
536
|
if (!n)
|
|
537
537
|
return null;
|
|
@@ -563,7 +563,7 @@ function ct(s, t, e, n) {
|
|
|
563
563
|
}
|
|
564
564
|
return i;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Ae(s, t, e, n) {
|
|
567
567
|
let i = 0;
|
|
568
568
|
for (let o = 0, r = e.length; o < r; ++o) {
|
|
569
569
|
const l = e[o];
|
|
@@ -611,7 +611,7 @@ function dt(s, t, e, n, i) {
|
|
|
611
611
|
}
|
|
612
612
|
return i;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Ne(s, t, e, n, i) {
|
|
615
615
|
for (let o = 0, r = e.length; o < r; ++o) {
|
|
616
616
|
const l = e[o];
|
|
617
617
|
i = dt(s, t, l, n, i), t = l[l.length - 1];
|
|
@@ -690,7 +690,7 @@ function Rt(s, t, e, n, i, o, r, l, a, c, h) {
|
|
|
690
690
|
}
|
|
691
691
|
return c;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function je(s, t, e, n, i, o, r, l, a, c, h) {
|
|
694
694
|
h = h || [NaN, NaN];
|
|
695
695
|
for (let u = 0, g = e.length; u < g; ++u) {
|
|
696
696
|
const d = e[u];
|
|
@@ -710,7 +710,7 @@ function Ne(s, t, e, n, i, o, r, l, a, c, h) {
|
|
|
710
710
|
}
|
|
711
711
|
return c;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function le(s, t, e, n) {
|
|
714
714
|
for (let i = 0, o = e.length; i < o; ++i)
|
|
715
715
|
s[t++] = e[i];
|
|
716
716
|
return t;
|
|
@@ -737,7 +737,7 @@ function mt(s, t, e, n, i) {
|
|
|
737
737
|
}
|
|
738
738
|
return i.length = o, i;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function Te(s, t, e, n, i) {
|
|
741
741
|
i = i || [];
|
|
742
742
|
let o = 0;
|
|
743
743
|
for (let r = 0, l = e.length; r < l; ++r) {
|
|
@@ -814,7 +814,7 @@ function Mt(s, t, e, n, i, o, r) {
|
|
|
814
814
|
a[u] && (o[r++] = s[t + u * n], o[r++] = s[t + u * n + 1]);
|
|
815
815
|
return r;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Ee(s, t, e, n, i, o, r, l) {
|
|
818
818
|
for (let a = 0, c = e.length; a < c; ++a) {
|
|
819
819
|
const h = e[a];
|
|
820
820
|
r = Mt(
|
|
@@ -832,7 +832,7 @@ function Te(s, t, e, n, i, o, r, l) {
|
|
|
832
832
|
function w(s, t) {
|
|
833
833
|
return t * Math.round(s / t);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function he(s, t, e, n, i, o, r) {
|
|
836
836
|
if (t == e)
|
|
837
837
|
return r;
|
|
838
838
|
let l = w(s[t], i), a = w(s[t + 1], i);
|
|
@@ -858,7 +858,7 @@ function le(s, t, e, n, i, o, r) {
|
|
|
858
858
|
function yt(s, t, e, n, i, o, r, l) {
|
|
859
859
|
for (let a = 0, c = e.length; a < c; ++a) {
|
|
860
860
|
const h = e[a];
|
|
861
|
-
r =
|
|
861
|
+
r = he(
|
|
862
862
|
s,
|
|
863
863
|
t,
|
|
864
864
|
h,
|
|
@@ -870,7 +870,7 @@ function yt(s, t, e, n, i, o, r, l) {
|
|
|
870
870
|
}
|
|
871
871
|
return r;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function Se(s, t, e, n, i, o, r, l) {
|
|
874
874
|
for (let a = 0, c = e.length; a < c; ++a) {
|
|
875
875
|
const h = e[a], u = [];
|
|
876
876
|
r = yt(
|
|
@@ -997,14 +997,21 @@ class E extends O {
|
|
|
997
997
|
return "LinearRing";
|
|
998
998
|
}
|
|
999
999
|
/**
|
|
1000
|
-
* Test if the geometry and the passed extent intersect.
|
|
1000
|
+
* Test if the geometry and the passed extent intersect. A linear ring is
|
|
1001
|
+
* treated as a line string for this test.
|
|
1001
1002
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
1002
1003
|
* @return {boolean} `true` if the geometry and the extent intersect.
|
|
1003
1004
|
* @api
|
|
1004
1005
|
* @override
|
|
1005
1006
|
*/
|
|
1006
1007
|
intersectsExtent(t) {
|
|
1007
|
-
return
|
|
1008
|
+
return $t(
|
|
1009
|
+
this.flatCoordinates,
|
|
1010
|
+
0,
|
|
1011
|
+
this.flatCoordinates.length,
|
|
1012
|
+
this.stride,
|
|
1013
|
+
t
|
|
1014
|
+
);
|
|
1008
1015
|
}
|
|
1009
1016
|
/**
|
|
1010
1017
|
* Set the coordinates of the linear ring.
|
|
@@ -1107,7 +1114,7 @@ class V extends O {
|
|
|
1107
1114
|
* @override
|
|
1108
1115
|
*/
|
|
1109
1116
|
setCoordinates(t, e) {
|
|
1110
|
-
this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length =
|
|
1117
|
+
this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = le(
|
|
1111
1118
|
this.flatCoordinates,
|
|
1112
1119
|
0,
|
|
1113
1120
|
t,
|
|
@@ -1147,7 +1154,7 @@ function ve(s, t, e, n, i) {
|
|
|
1147
1154
|
}
|
|
1148
1155
|
return o;
|
|
1149
1156
|
}
|
|
1150
|
-
function
|
|
1157
|
+
function ue(s, t, e, n) {
|
|
1151
1158
|
for (; t < e - n; ) {
|
|
1152
1159
|
for (let i = 0; i < n; ++i) {
|
|
1153
1160
|
const o = s[t + i];
|
|
@@ -1182,7 +1189,7 @@ function It(s, t, e, n, i) {
|
|
|
1182
1189
|
}
|
|
1183
1190
|
return !0;
|
|
1184
1191
|
}
|
|
1185
|
-
function
|
|
1192
|
+
function Ze(s, t, e, n, i) {
|
|
1186
1193
|
for (let o = 0, r = e.length; o < r; ++o) {
|
|
1187
1194
|
const l = e[o];
|
|
1188
1195
|
if (!It(s, t, l, n, i))
|
|
@@ -1200,11 +1207,11 @@ function b(s, t, e, n, i) {
|
|
|
1200
1207
|
l,
|
|
1201
1208
|
n
|
|
1202
1209
|
);
|
|
1203
|
-
(o === 0 ? i && a || !i && !a : i && !a || !i && a) &&
|
|
1210
|
+
(o === 0 ? i && a || !i && !a : i && !a || !i && a) && ue(s, t, l, n), t = l;
|
|
1204
1211
|
}
|
|
1205
1212
|
return t;
|
|
1206
1213
|
}
|
|
1207
|
-
function
|
|
1214
|
+
function ze(s, t, e, n, i) {
|
|
1208
1215
|
for (let o = 0, r = e.length; o < r; ++o)
|
|
1209
1216
|
t = b(
|
|
1210
1217
|
s,
|
|
@@ -1215,7 +1222,7 @@ function Ze(s, t, e, n, i) {
|
|
|
1215
1222
|
);
|
|
1216
1223
|
return t;
|
|
1217
1224
|
}
|
|
1218
|
-
function
|
|
1225
|
+
function Pe(s, t) {
|
|
1219
1226
|
const e = [];
|
|
1220
1227
|
let n = 0, i = 0, o;
|
|
1221
1228
|
for (let r = 0, l = t.length; r < l; ++r) {
|
|
@@ -1231,7 +1238,7 @@ function ze(s, t) {
|
|
|
1231
1238
|
}
|
|
1232
1239
|
return e;
|
|
1233
1240
|
}
|
|
1234
|
-
class
|
|
1241
|
+
class S extends O {
|
|
1235
1242
|
/**
|
|
1236
1243
|
* @param {!Array<Array<import("../coordinate.js").Coordinate>>|!Array<number>} coordinates
|
|
1237
1244
|
* Array of linear rings that define the polygon. The first linear ring of the
|
|
@@ -1269,7 +1276,7 @@ class v extends O {
|
|
|
1269
1276
|
* @override
|
|
1270
1277
|
*/
|
|
1271
1278
|
clone() {
|
|
1272
|
-
const t = new
|
|
1279
|
+
const t = new S(
|
|
1273
1280
|
this.flatCoordinates.slice(),
|
|
1274
1281
|
this.layout,
|
|
1275
1282
|
this.ends_.slice()
|
|
@@ -1364,7 +1371,7 @@ class v extends O {
|
|
|
1364
1371
|
*/
|
|
1365
1372
|
getFlatInteriorPoint() {
|
|
1366
1373
|
if (this.flatInteriorPointRevision_ != this.getRevision()) {
|
|
1367
|
-
const t =
|
|
1374
|
+
const t = F(this.getExtent());
|
|
1368
1375
|
this.flatInteriorPoint_ = pt(
|
|
1369
1376
|
this.getOrientedFlatCoordinates(),
|
|
1370
1377
|
0,
|
|
@@ -1469,7 +1476,7 @@ class v extends O {
|
|
|
1469
1476
|
e,
|
|
1470
1477
|
0,
|
|
1471
1478
|
n
|
|
1472
|
-
), new
|
|
1479
|
+
), new S(e, "XY", n);
|
|
1473
1480
|
}
|
|
1474
1481
|
/**
|
|
1475
1482
|
* Get the type of this geometry.
|
|
@@ -1488,7 +1495,7 @@ class v extends O {
|
|
|
1488
1495
|
* @override
|
|
1489
1496
|
*/
|
|
1490
1497
|
intersectsExtent(t) {
|
|
1491
|
-
return
|
|
1498
|
+
return Bt(
|
|
1492
1499
|
this.getOrientedFlatCoordinates(),
|
|
1493
1500
|
0,
|
|
1494
1501
|
this.ends_,
|
|
@@ -1515,7 +1522,7 @@ class v extends O {
|
|
|
1515
1522
|
this.flatCoordinates.length = n.length === 0 ? 0 : n[n.length - 1], this.changed();
|
|
1516
1523
|
}
|
|
1517
1524
|
}
|
|
1518
|
-
function
|
|
1525
|
+
function Xe(s, t, e, n) {
|
|
1519
1526
|
e = e || 32;
|
|
1520
1527
|
const i = [];
|
|
1521
1528
|
for (let o = 0; o < e; ++o)
|
|
@@ -1523,7 +1530,7 @@ function Pe(s, t, e, n) {
|
|
|
1523
1530
|
i,
|
|
1524
1531
|
Gt(s, t, 2 * Math.PI * o / e, n)
|
|
1525
1532
|
);
|
|
1526
|
-
return i.push(i[0], i[1]), new
|
|
1533
|
+
return i.push(i[0], i[1]), new S(i, "XY", [i.length]);
|
|
1527
1534
|
}
|
|
1528
1535
|
function tt(s) {
|
|
1529
1536
|
if (ot(s))
|
|
@@ -1540,10 +1547,10 @@ function tt(s) {
|
|
|
1540
1547
|
t,
|
|
1541
1548
|
e
|
|
1542
1549
|
];
|
|
1543
|
-
return new
|
|
1550
|
+
return new S(o, "XY", [o.length]);
|
|
1544
1551
|
}
|
|
1545
1552
|
function U(s, t, e, n) {
|
|
1546
|
-
const i = G(t) / e[0], o =
|
|
1553
|
+
const i = G(t) / e[0], o = T(t) / e[1];
|
|
1547
1554
|
return n ? Math.min(s, Math.max(i, o)) : Math.min(s, Math.min(i, o));
|
|
1548
1555
|
}
|
|
1549
1556
|
function D(s, t, e) {
|
|
@@ -1551,7 +1558,7 @@ function D(s, t, e) {
|
|
|
1551
1558
|
const i = 50;
|
|
1552
1559
|
return n *= Math.log(1 + i * Math.max(0, s / t - 1)) / i + 1, e && (n = Math.max(n, e), n /= Math.log(1 + i * Math.max(0, e / s - 1)) / i + 1), y(n, e / 2, t * 2);
|
|
1553
1560
|
}
|
|
1554
|
-
function
|
|
1561
|
+
function ce(s, t, e, n) {
|
|
1555
1562
|
return t = t !== void 0 ? t : !0, /**
|
|
1556
1563
|
* @param {number|undefined} resolution Resolution.
|
|
1557
1564
|
* @param {number} direction Direction.
|
|
@@ -1578,7 +1585,7 @@ function ue(s, t, e, n) {
|
|
|
1578
1585
|
}
|
|
1579
1586
|
});
|
|
1580
1587
|
}
|
|
1581
|
-
function
|
|
1588
|
+
function ge(s, t, e, n, i, o) {
|
|
1582
1589
|
return n = n !== void 0 ? n : !0, e = e !== void 0 ? e : 0, /**
|
|
1583
1590
|
* @param {number|undefined} resolution Resolution.
|
|
1584
1591
|
* @param {number} direction Direction.
|
|
@@ -1633,7 +1640,7 @@ function et(s, t, e, n, i) {
|
|
|
1633
1640
|
}
|
|
1634
1641
|
});
|
|
1635
1642
|
}
|
|
1636
|
-
function
|
|
1643
|
+
function de(s) {
|
|
1637
1644
|
if (s !== void 0)
|
|
1638
1645
|
return 0;
|
|
1639
1646
|
}
|
|
@@ -1641,7 +1648,7 @@ function nt(s) {
|
|
|
1641
1648
|
if (s !== void 0)
|
|
1642
1649
|
return s;
|
|
1643
1650
|
}
|
|
1644
|
-
function
|
|
1651
|
+
function fe(s) {
|
|
1645
1652
|
const t = 2 * Math.PI / s;
|
|
1646
1653
|
return (
|
|
1647
1654
|
/**
|
|
@@ -1657,7 +1664,7 @@ function de(s) {
|
|
|
1657
1664
|
})
|
|
1658
1665
|
);
|
|
1659
1666
|
}
|
|
1660
|
-
function
|
|
1667
|
+
function Re(s) {
|
|
1661
1668
|
const t = Lt(5);
|
|
1662
1669
|
return (
|
|
1663
1670
|
/**
|
|
@@ -1671,12 +1678,12 @@ function fe(s) {
|
|
|
1671
1678
|
);
|
|
1672
1679
|
}
|
|
1673
1680
|
const P = 0;
|
|
1674
|
-
class
|
|
1681
|
+
class _e extends it {
|
|
1675
1682
|
/**
|
|
1676
1683
|
* @param {ViewOptions} [options] View options.
|
|
1677
1684
|
*/
|
|
1678
1685
|
constructor(t) {
|
|
1679
|
-
super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = L(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && qt(), t.center && (t.center = p(t.center, this.projection_)), t.extent && (t.extent =
|
|
1686
|
+
super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = L(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && qt(), t.center && (t.center = p(t.center, this.projection_)), t.extent && (t.extent = v(t.extent, this.projection_)), this.applyOptions_(t);
|
|
1680
1687
|
}
|
|
1681
1688
|
/**
|
|
1682
1689
|
* Set up the view with the given options.
|
|
@@ -1807,7 +1814,7 @@ class Re extends it {
|
|
|
1807
1814
|
complete: !1,
|
|
1808
1815
|
anchor: h.anchor,
|
|
1809
1816
|
duration: h.duration !== void 0 ? h.duration : 1e3,
|
|
1810
|
-
easing: h.easing ||
|
|
1817
|
+
easing: h.easing || Jt,
|
|
1811
1818
|
callback: n
|
|
1812
1819
|
};
|
|
1813
1820
|
if (h.center && (u.sourceCenter = r, u.targetCenter = h.center.slice(), r = u.targetCenter), h.zoom !== void 0 ? (u.sourceResolution = l, u.targetResolution = this.getResolutionForZoom(h.zoom), l = u.targetResolution) : h.resolution && (u.sourceResolution = l, u.targetResolution = h.resolution, l = u.targetResolution), h.rotation !== void 0) {
|
|
@@ -2151,7 +2158,7 @@ class Re extends it {
|
|
|
2151
2158
|
*/
|
|
2152
2159
|
getResolutionForExtent(t, e) {
|
|
2153
2160
|
return this.getResolutionForExtentInternal(
|
|
2154
|
-
|
|
2161
|
+
v(t, this.getProjection()),
|
|
2155
2162
|
e
|
|
2156
2163
|
);
|
|
2157
2164
|
}
|
|
@@ -2164,7 +2171,7 @@ class Re extends it {
|
|
|
2164
2171
|
*/
|
|
2165
2172
|
getResolutionForExtentInternal(t, e) {
|
|
2166
2173
|
e = e || this.getViewportSizeMinusPadding_();
|
|
2167
|
-
const n = G(t) / e[0], i =
|
|
2174
|
+
const n = G(t) / e[0], i = T(t) / e[1];
|
|
2168
2175
|
return Math.max(n, i);
|
|
2169
2176
|
}
|
|
2170
2177
|
/**
|
|
@@ -2337,14 +2344,14 @@ class Re extends it {
|
|
|
2337
2344
|
!ot(t),
|
|
2338
2345
|
"Cannot fit empty extent provided as `geometry`"
|
|
2339
2346
|
);
|
|
2340
|
-
const i =
|
|
2347
|
+
const i = v(t, this.getProjection());
|
|
2341
2348
|
n = tt(i);
|
|
2342
2349
|
} else if (t.getType() === "Circle") {
|
|
2343
|
-
const i =
|
|
2350
|
+
const i = v(
|
|
2344
2351
|
t.getExtent(),
|
|
2345
2352
|
this.getProjection()
|
|
2346
2353
|
);
|
|
2347
|
-
n = tt(i), n.rotate(this.getRotation(),
|
|
2354
|
+
n = tt(i), n.rotate(this.getRotation(), F(i));
|
|
2348
2355
|
} else
|
|
2349
2356
|
n = t;
|
|
2350
2357
|
this.fitInternal(n, e);
|
|
@@ -2380,7 +2387,7 @@ class Re extends it {
|
|
|
2380
2387
|
n[1] - i[0] - i[2]
|
|
2381
2388
|
]);
|
|
2382
2389
|
a = isNaN(a) ? r : Math.max(a, r), a = this.getConstrainedResolution(a, o ? 0 : 1);
|
|
2383
|
-
const c = this.getRotation(), h = Math.sin(c), u = Math.cos(c), g =
|
|
2390
|
+
const c = this.getRotation(), h = Math.sin(c), u = Math.cos(c), g = F(l);
|
|
2384
2391
|
g[0] += (i[1] - i[3]) / 2 * a, g[1] += (i[0] - i[2]) / 2 * a;
|
|
2385
2392
|
const d = g[0] * u - g[1] * h, f = g[1] * u + g[0] * h, R = this.getConstrainedCenter([d, f], a), _ = e.callback ? e.callback : Ht;
|
|
2386
2393
|
e.duration !== void 0 ? this.animateInternal(
|
|
@@ -2653,7 +2660,7 @@ class Re extends it {
|
|
|
2653
2660
|
center: a,
|
|
2654
2661
|
resolution: l,
|
|
2655
2662
|
duration: t,
|
|
2656
|
-
easing:
|
|
2663
|
+
easing: Qt,
|
|
2657
2664
|
anchor: n
|
|
2658
2665
|
}));
|
|
2659
2666
|
}
|
|
@@ -2747,7 +2754,7 @@ function wt(s) {
|
|
|
2747
2754
|
const e = t.getExtent().slice();
|
|
2748
2755
|
return e[0] = -1 / 0, e[2] = 1 / 0, $(e, !1, !1);
|
|
2749
2756
|
}
|
|
2750
|
-
return
|
|
2757
|
+
return ee;
|
|
2751
2758
|
}
|
|
2752
2759
|
function At(s) {
|
|
2753
2760
|
let t, e, n, r = s.minZoom !== void 0 ? s.minZoom : P, l = s.maxZoom !== void 0 ? s.maxZoom : 28;
|
|
@@ -2755,7 +2762,7 @@ function At(s) {
|
|
|
2755
2762
|
let f = s.constrainOnlyCenter, R = s.extent;
|
|
2756
2763
|
if (!c && !R && g.isGlobal() && (f = !1, R = d), s.resolutions !== void 0) {
|
|
2757
2764
|
const _ = s.resolutions;
|
|
2758
|
-
e = _[r], n = _[l] !== void 0 ? _[l] : _[_.length - 1], s.constrainResolution ? t =
|
|
2765
|
+
e = _[r], n = _[l] !== void 0 ? _[l] : _[_.length - 1], s.constrainResolution ? t = ce(
|
|
2759
2766
|
_,
|
|
2760
2767
|
h,
|
|
2761
2768
|
!f && R,
|
|
@@ -2768,13 +2775,13 @@ function At(s) {
|
|
|
2768
2775
|
u
|
|
2769
2776
|
);
|
|
2770
2777
|
} else {
|
|
2771
|
-
const C = (d ? Math.max(G(d),
|
|
2778
|
+
const C = (d ? Math.max(G(d), T(d)) : (
|
|
2772
2779
|
// use an extent that can fit the whole world if need be
|
|
2773
2780
|
360 * Ot.degrees / g.getMetersPerUnit()
|
|
2774
|
-
)) /
|
|
2781
|
+
)) / te / Math.pow(2, P), m = C / Math.pow(2, 28 - P);
|
|
2775
2782
|
e = s.maxResolution, e !== void 0 ? r = 0 : e = C / Math.pow(a, r), n = s.minResolution, n === void 0 && (s.maxZoom !== void 0 ? s.maxResolution !== void 0 ? n = e / Math.pow(a, l) : n = C / Math.pow(a, l) : n = m), l = r + Math.floor(
|
|
2776
2783
|
Math.log(e / n) / Math.log(a)
|
|
2777
|
-
), n = e / Math.pow(a, l - r), s.constrainResolution ? t =
|
|
2784
|
+
), n = e / Math.pow(a, l - r), s.constrainResolution ? t = ge(
|
|
2778
2785
|
a,
|
|
2779
2786
|
e,
|
|
2780
2787
|
n,
|
|
@@ -2800,9 +2807,9 @@ function At(s) {
|
|
|
2800
2807
|
function Nt(s) {
|
|
2801
2808
|
if (s.enableRotation !== void 0 ? s.enableRotation : !0) {
|
|
2802
2809
|
const e = s.constrainRotation;
|
|
2803
|
-
return e === void 0 || e === !0 ?
|
|
2810
|
+
return e === void 0 || e === !0 ? Re() : e === !1 ? nt : typeof e == "number" ? fe(e) : nt;
|
|
2804
2811
|
}
|
|
2805
|
-
return
|
|
2812
|
+
return de;
|
|
2806
2813
|
}
|
|
2807
2814
|
function jt(s) {
|
|
2808
2815
|
return !(s.sourceCenter && s.targetCenter && !Y(s.sourceCenter, s.targetCenter) || s.sourceResolution !== s.targetResolution || s.sourceRotation !== s.targetRotation);
|
|
@@ -2814,7 +2821,7 @@ function X(s, t, e, n, i) {
|
|
|
2814
2821
|
const c = l * o - a * r, h = a * o + l * r;
|
|
2815
2822
|
return [c, h];
|
|
2816
2823
|
}
|
|
2817
|
-
function
|
|
2824
|
+
function me(s) {
|
|
2818
2825
|
return function(t) {
|
|
2819
2826
|
if (!t.resolutions)
|
|
2820
2827
|
return t;
|
|
@@ -2827,7 +2834,7 @@ function _e(s) {
|
|
|
2827
2834
|
};
|
|
2828
2835
|
};
|
|
2829
2836
|
}
|
|
2830
|
-
function
|
|
2837
|
+
function Ce(s) {
|
|
2831
2838
|
return function(t) {
|
|
2832
2839
|
if (!t.resolutions)
|
|
2833
2840
|
return t;
|
|
@@ -2840,53 +2847,53 @@ function me(s) {
|
|
|
2840
2847
|
};
|
|
2841
2848
|
};
|
|
2842
2849
|
}
|
|
2843
|
-
function
|
|
2850
|
+
function xe() {
|
|
2844
2851
|
return function(s) {
|
|
2845
2852
|
if (!s.extent)
|
|
2846
2853
|
return s;
|
|
2847
|
-
const t =
|
|
2854
|
+
const t = F(s.extent), e = { ...s, center: t };
|
|
2848
2855
|
return delete e.extent, e;
|
|
2849
2856
|
};
|
|
2850
2857
|
}
|
|
2851
|
-
function
|
|
2858
|
+
function Me(s) {
|
|
2852
2859
|
return function(t) {
|
|
2853
2860
|
return { ...t, zoom: s };
|
|
2854
2861
|
};
|
|
2855
2862
|
}
|
|
2856
|
-
async function
|
|
2863
|
+
async function ye(s, ...t) {
|
|
2857
2864
|
let e = await s.getView();
|
|
2858
2865
|
for (const n of t)
|
|
2859
2866
|
e = n(e);
|
|
2860
2867
|
return e;
|
|
2861
2868
|
}
|
|
2862
|
-
const
|
|
2869
|
+
const Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2863
2870
|
__proto__: null,
|
|
2864
2871
|
createCenterConstraint: wt,
|
|
2865
2872
|
createResolutionConstraint: At,
|
|
2866
2873
|
createRotationConstraint: Nt,
|
|
2867
|
-
default:
|
|
2868
|
-
getView:
|
|
2874
|
+
default: _e,
|
|
2875
|
+
getView: ye,
|
|
2869
2876
|
isNoopAnimation: jt,
|
|
2870
|
-
withExtentCenter:
|
|
2871
|
-
withHigherResolutions:
|
|
2872
|
-
withLowerResolutions:
|
|
2873
|
-
withZoom:
|
|
2877
|
+
withExtentCenter: xe,
|
|
2878
|
+
withHigherResolutions: me,
|
|
2879
|
+
withLowerResolutions: Ce,
|
|
2880
|
+
withZoom: Me
|
|
2874
2881
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2875
2882
|
export {
|
|
2876
2883
|
w as A,
|
|
2877
|
-
|
|
2884
|
+
we as B,
|
|
2878
2885
|
J as C,
|
|
2879
2886
|
It as D,
|
|
2880
2887
|
b as E,
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2888
|
+
ae as F,
|
|
2889
|
+
re as G,
|
|
2890
|
+
Xe as H,
|
|
2891
|
+
_e as I,
|
|
2885
2892
|
M as J,
|
|
2886
2893
|
tt as K,
|
|
2887
2894
|
E as L,
|
|
2888
|
-
|
|
2889
|
-
|
|
2895
|
+
de as M,
|
|
2896
|
+
Ye as N,
|
|
2890
2897
|
V as P,
|
|
2891
2898
|
O as S,
|
|
2892
2899
|
I as V,
|
|
@@ -2896,24 +2903,24 @@ export {
|
|
|
2896
2903
|
Mt as d,
|
|
2897
2904
|
Rt as e,
|
|
2898
2905
|
xt as f,
|
|
2899
|
-
|
|
2906
|
+
Ee as g,
|
|
2900
2907
|
mt as h,
|
|
2901
2908
|
Ct as i,
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2909
|
+
Ne as j,
|
|
2910
|
+
je as k,
|
|
2911
|
+
Ae as l,
|
|
2905
2912
|
gt as m,
|
|
2906
2913
|
Fe as n,
|
|
2907
|
-
|
|
2914
|
+
ze as o,
|
|
2908
2915
|
ve as p,
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2916
|
+
Ze as q,
|
|
2917
|
+
Se as r,
|
|
2918
|
+
S as s,
|
|
2919
|
+
Te as t,
|
|
2913
2920
|
pt as u,
|
|
2914
|
-
|
|
2921
|
+
Pe as v,
|
|
2915
2922
|
ht as w,
|
|
2916
2923
|
yt as x,
|
|
2917
|
-
|
|
2918
|
-
|
|
2924
|
+
le as y,
|
|
2925
|
+
ne as z
|
|
2919
2926
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, defineAsyncComponent as m, openBlock as u, createBlock as f, unref as t, withCtx as l, createVNode as p } from "vue";
|
|
2
|
-
import { u as x } from "./main-
|
|
3
|
-
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as x } from "./main-D1VXLvop.js";
|
|
3
|
+
import { _ as w } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-CzFj5TX2.js";
|
|
4
4
|
const X = /* @__PURE__ */ i({
|
|
5
5
|
__name: "XmlPreview.client",
|
|
6
6
|
props: {
|
|
@@ -8,7 +8,7 @@ const X = /* @__PURE__ */ i({
|
|
|
8
8
|
},
|
|
9
9
|
setup(r) {
|
|
10
10
|
const o = m(
|
|
11
|
-
() => import("./vue3-xml-viewer.common-
|
|
11
|
+
() => import("./vue3-xml-viewer.common-D8NyU_-4.js").then((e) => e.v).then((e) => e.default || e.XmlViewer)
|
|
12
12
|
), n = r, s = x(), c = async () => {
|
|
13
13
|
const e = await fetch(n.resource.url);
|
|
14
14
|
if (!e.ok) throw new Error(`HTTP error! status: ${e.status}`);
|