@datagouv/components-next 1.0.2-dev.84 → 1.0.2-dev.85
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-DuZJdKV_.js → Control-ZFh5ta_U.js} +1 -1
- package/dist/{Datafair.client-BzW-ctDf.js → Datafair.client-CGDQWFP2.js} +1 -1
- package/dist/{Event--kp8kMdJ.js → Event-DSQcW7OF.js} +24 -24
- package/dist/{Image-34hvypZI.js → Image-BijNEG0p.js} +6 -6
- package/dist/{JsonPreview.client-BfMSzR07.js → JsonPreview.client-CRAjVwYR.js} +2 -2
- package/dist/{Map-BjUnLyj8.js → Map-BUtPf5GN.js} +756 -756
- package/dist/{MapContainer.client-CLs-im9i.js → MapContainer.client-gmUC2Cl5.js} +37 -38
- package/dist/{OSM-s40W6sQ2.js → OSM-D4MTdBtk.js} +2 -2
- package/dist/{PdfPreview.client-C13PQCU_.js → PdfPreview.client-CRIHPiVa.js} +2 -2
- package/dist/{Pmtiles.client-CL7PXXDl.js → Pmtiles.client-DHyaqRB7.js} +1 -1
- package/dist/{PreviewWrapper.vue_vue_type_script_setup_true_lang-C6XnsZ-7.js → PreviewWrapper.vue_vue_type_script_setup_true_lang-BFIK58nF.js} +1 -1
- package/dist/{ScaleLine-KW-nXqp3.js → ScaleLine-hJQIqcZm.js} +2 -2
- package/dist/{Tile-DbNFNPfU.js → Tile-Dcl7oIVu.js} +35 -35
- package/dist/{TileImage-BsXBxMtq.js → TileImage-BJeHipMX.js} +4 -4
- package/dist/{View-BR92hTWP.js → View-xp_P_OHw.js} +412 -401
- package/dist/{XmlPreview.client-KaENrbbG.js → XmlPreview.client-D2pj4Pi-.js} +3 -3
- package/dist/{common-PJfpC179.js → common-BjQlan3k.js} +36 -36
- package/dist/components-next.css +4 -4
- package/dist/components-next.js +1 -1
- package/dist/{index-C7WVVGgD.js → index-BihEb_eg.js} +32886 -27183
- package/dist/{main-K-42Oe8-.js → main-BNyfhPgX.js} +7 -7
- package/dist/{proj-DsetBcW7.js → proj-CsNo9yH1.js} +532 -512
- package/dist/{tilecoord-Db24Px13.js → tilecoord-A0fLnBZr.js} +28 -28
- package/dist/{vue3-xml-viewer.common-sHPSE-jD.js → vue3-xml-viewer.common-MxH3AoAS.js} +1 -1
- package/package.json +2 -2
- package/src/components/ResourceAccordion/MapContainer.client.vue +1 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as _, W as nt, n as xt, c as H, b as et } from "./Image-
|
|
2
|
-
import { z as Tt, g as pt } from "./common-
|
|
3
|
-
import {
|
|
1
|
+
import { T as _, W as nt, n as xt, c as H, b as et } from "./Image-BijNEG0p.js";
|
|
2
|
+
import { z as Tt, g as pt } from "./common-BjQlan3k.js";
|
|
3
|
+
import { aD as It, E as ft, al as Xt, U as dt, g as at, X as Wt, w as Mt, F as b, n as _t, L, an as gt, aU as vt, x as Yt, r as Lt, aV as Ft, ak as wt, aJ as yt, aA as Dt, aK as Ot, aW as st, ae as ot, i as Ct, W as z, a1 as $, d as V, l as Pt, u as rt, a7 as ht, I as At, a as Rt } from "./proj-CsNo9yH1.js";
|
|
4
4
|
class mt extends It {
|
|
5
5
|
/**
|
|
6
6
|
* @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate.
|
|
@@ -339,7 +339,7 @@ function ut(a, t, e, s) {
|
|
|
339
339
|
}
|
|
340
340
|
return i;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Kt(a, t, e, s) {
|
|
343
343
|
const n = Yt(e);
|
|
344
344
|
let i = ut(
|
|
345
345
|
a,
|
|
@@ -356,7 +356,7 @@ function Nt(a, t, e, s) {
|
|
|
356
356
|
), isFinite(i) && i > 0;
|
|
357
357
|
}), i;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Nt(a, t, e, s, n, i, c, m, g, T, X, x, F, w) {
|
|
360
360
|
const r = H(
|
|
361
361
|
Math.round(e * a),
|
|
362
362
|
Math.round(e * t),
|
|
@@ -409,7 +409,7 @@ function St(a, t, e, s, n, i, c, m, g, T, X, x, F, w) {
|
|
|
409
409
|
return m.getTriangles().forEach(function(o, y, C) {
|
|
410
410
|
const p = o.source, I = o.target;
|
|
411
411
|
let v = p[0][0], Y = p[0][1], W = p[1][0], M = p[1][1], D = p[2][0], A = p[2][1];
|
|
412
|
-
const G = h((I[0][0] - u[0]) / i),
|
|
412
|
+
const G = h((I[0][0] - u[0]) / i), K = h(
|
|
413
413
|
-(I[0][1] - u[1]) / i
|
|
414
414
|
), R = h((I[1][0] - u[0]) / i), k = h(
|
|
415
415
|
-(I[1][1] - u[1]) / i
|
|
@@ -420,32 +420,32 @@ function St(a, t, e, s, n, i, c, m, g, T, X, x, F, w) {
|
|
|
420
420
|
const Et = [
|
|
421
421
|
[W, M, 0, 0, R - G],
|
|
422
422
|
[D, A, 0, 0, U - G],
|
|
423
|
-
[0, 0, W, M, k -
|
|
424
|
-
[0, 0, D, A, Q -
|
|
425
|
-
],
|
|
426
|
-
if (!
|
|
423
|
+
[0, 0, W, M, k - K],
|
|
424
|
+
[0, 0, D, A, Q - K]
|
|
425
|
+
], N = vt(Et);
|
|
426
|
+
if (!N)
|
|
427
427
|
return;
|
|
428
428
|
if (r.save(), r.beginPath(), Gt() || !x) {
|
|
429
429
|
r.moveTo(R, k);
|
|
430
|
-
const O = 4,
|
|
430
|
+
const O = 4, S = G - R, it = K - k;
|
|
431
431
|
for (let P = 0; P < O; P++)
|
|
432
432
|
r.lineTo(
|
|
433
|
-
R + h((P + 1) *
|
|
433
|
+
R + h((P + 1) * S / O),
|
|
434
434
|
k + h(P * it / (O - 1))
|
|
435
435
|
), P != O - 1 && r.lineTo(
|
|
436
|
-
R + h((P + 1) *
|
|
436
|
+
R + h((P + 1) * S / O),
|
|
437
437
|
k + h((P + 1) * it / (O - 1))
|
|
438
438
|
);
|
|
439
439
|
r.lineTo(U, Q);
|
|
440
440
|
} else
|
|
441
|
-
r.moveTo(R, k), r.lineTo(G,
|
|
441
|
+
r.moveTo(R, k), r.lineTo(G, K), r.lineTo(U, Q);
|
|
442
442
|
r.clip(), r.transform(
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
443
|
+
N[0],
|
|
444
|
+
N[2],
|
|
445
|
+
N[1],
|
|
446
|
+
N[3],
|
|
447
447
|
G,
|
|
448
|
-
|
|
448
|
+
K
|
|
449
449
|
), r.translate(
|
|
450
450
|
E[0] - j,
|
|
451
451
|
E[3] - q
|
|
@@ -454,10 +454,10 @@ function St(a, t, e, s, n, i, c, m, g, T, X, x, F, w) {
|
|
|
454
454
|
if (l)
|
|
455
455
|
Z = l.canvas, r.scale(d, -d);
|
|
456
456
|
else {
|
|
457
|
-
const O = g[0],
|
|
457
|
+
const O = g[0], S = O.extent;
|
|
458
458
|
Z = O.image, r.scale(
|
|
459
|
-
L(
|
|
460
|
-
-b(
|
|
459
|
+
L(S) / Z.width,
|
|
460
|
+
-b(S) / Z.height
|
|
461
461
|
);
|
|
462
462
|
}
|
|
463
463
|
r.drawImage(Z, 0, 0), r.restore();
|
|
@@ -467,7 +467,7 @@ function St(a, t, e, s, n, i, c, m, g, T, X, x, F, w) {
|
|
|
467
467
|
}), r.restore()), r.canvas;
|
|
468
468
|
}
|
|
469
469
|
const Zt = 10, lt = 0.25;
|
|
470
|
-
class
|
|
470
|
+
class St {
|
|
471
471
|
/**
|
|
472
472
|
* @param {import("../proj/Projection.js").default} sourceProj Source projection.
|
|
473
473
|
* @param {import("../proj/Projection.js").default} targetProj Target projection.
|
|
@@ -715,7 +715,7 @@ class Vt extends mt {
|
|
|
715
715
|
l && (h ? h = V(h, l) : h = l);
|
|
716
716
|
const f = n.getResolution(
|
|
717
717
|
this.wrappedTileCoord_[0]
|
|
718
|
-
), d =
|
|
718
|
+
), d = Kt(
|
|
719
719
|
t,
|
|
720
720
|
s,
|
|
721
721
|
E,
|
|
@@ -726,7 +726,7 @@ class Vt extends mt {
|
|
|
726
726
|
return;
|
|
727
727
|
}
|
|
728
728
|
const u = X !== void 0 ? X : bt;
|
|
729
|
-
if (this.triangulation_ = new
|
|
729
|
+
if (this.triangulation_ = new St(
|
|
730
730
|
t,
|
|
731
731
|
s,
|
|
732
732
|
E,
|
|
@@ -806,7 +806,7 @@ class Vt extends mt {
|
|
|
806
806
|
), g = this.targetTileGrid_.getTileCoordExtent(
|
|
807
807
|
this.wrappedTileCoord_
|
|
808
808
|
);
|
|
809
|
-
this.canvas_ =
|
|
809
|
+
this.canvas_ = Nt(
|
|
810
810
|
n,
|
|
811
811
|
i,
|
|
812
812
|
this.pixelRatio_,
|
|
@@ -890,13 +890,13 @@ export {
|
|
|
890
890
|
zt as I,
|
|
891
891
|
Vt as R,
|
|
892
892
|
mt as T,
|
|
893
|
-
|
|
893
|
+
St as a,
|
|
894
894
|
Bt as b,
|
|
895
895
|
ut as c,
|
|
896
896
|
Jt as d,
|
|
897
897
|
$t as e,
|
|
898
898
|
ts as g,
|
|
899
899
|
ss as h,
|
|
900
|
-
|
|
900
|
+
Nt as r,
|
|
901
901
|
es as w
|
|
902
902
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagouv/components-next",
|
|
3
|
-
"version": "1.0.2-dev.
|
|
3
|
+
"version": "1.0.2-dev.85",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"chart.js": "^4.4.8",
|
|
28
28
|
"dompurify": "^3.2.5",
|
|
29
29
|
"echarts": "^6.0.0",
|
|
30
|
-
"geopf-extensions-openlayers": "^1.0.0-beta.
|
|
30
|
+
"geopf-extensions-openlayers": "^1.0.0-beta.10",
|
|
31
31
|
"leaflet": "^1.9.4",
|
|
32
32
|
"maplibre-gl": "^5.6.2",
|
|
33
33
|
"ofetch": "^1.4.1",
|
|
@@ -89,10 +89,8 @@ async function displayMap() {
|
|
|
89
89
|
|
|
90
90
|
const attributions = new GeoportalAttribution({
|
|
91
91
|
position: 'bottom-right',
|
|
92
|
-
|
|
93
|
-
// see https://github.com/IGNF/geopf-extensions-openlayers/issues/497
|
|
92
|
+
collapsed: false,
|
|
94
93
|
})
|
|
95
|
-
attributions.setCollapsed(false)
|
|
96
94
|
map.addControl(attributions)
|
|
97
95
|
|
|
98
96
|
const layerImport = new LayerImport({
|