@datagouv/components-next 1.0.2-dev.83 → 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,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, createBlock as
|
|
2
|
-
import { a as D, _ as F } from "./main-
|
|
1
|
+
import { defineComponent as E, useTemplateRef as G, ref as W, onMounted as B, createBlock as N, createElementBlock as z, openBlock as u, withCtx as U, createTextVNode as V, toDisplayString as q, unref as A } from "vue";
|
|
2
|
+
import { a as D, _ as F } from "./main-BNyfhPgX.js";
|
|
3
3
|
const Z = /* @__PURE__ */ E({
|
|
4
4
|
__name: "MapContainer.client",
|
|
5
5
|
props: {
|
|
6
6
|
resource: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const r =
|
|
8
|
+
setup(m) {
|
|
9
|
+
const r = m, { t: f } = D();
|
|
10
10
|
let e = null;
|
|
11
11
|
const a = G("mapRef"), n = W(!1);
|
|
12
|
-
async function
|
|
12
|
+
async function d() {
|
|
13
13
|
const [
|
|
14
14
|
{ default: i },
|
|
15
15
|
{ default: s },
|
|
16
|
+
{ default: w },
|
|
16
17
|
{ default: y },
|
|
17
|
-
{ default: C },
|
|
18
18
|
{ default: h },
|
|
19
|
-
|
|
19
|
+
C
|
|
20
20
|
] = await Promise.all([
|
|
21
|
-
import("./View-
|
|
22
|
-
import("./Map-
|
|
23
|
-
import("./ScaleLine-
|
|
24
|
-
import("./Tile-
|
|
25
|
-
import("./OSM-
|
|
21
|
+
import("./View-xp_P_OHw.js").then((t) => t.N),
|
|
22
|
+
import("./Map-BUtPf5GN.js").then((t) => t.U),
|
|
23
|
+
import("./ScaleLine-hJQIqcZm.js"),
|
|
24
|
+
import("./Tile-Dcl7oIVu.js").then((t) => t.d),
|
|
25
|
+
import("./OSM-D4MTdBtk.js"),
|
|
26
26
|
// @ts-expect-error no types provided
|
|
27
|
-
import("./index-
|
|
28
|
-
]), { CRS:
|
|
29
|
-
await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }),
|
|
27
|
+
import("./index-BihEb_eg.js")
|
|
28
|
+
]), { CRS: _, GeoportalAttribution: S, GeoportalFullScreen: g, GeoportalZoom: b, LayerImport: v, LayerSwitcher: L } = C;
|
|
29
|
+
await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), await Promise.resolve({ }), _.load(), e = new s({
|
|
30
30
|
target: a.value,
|
|
31
31
|
layers: [
|
|
32
|
-
new
|
|
32
|
+
new y({
|
|
33
33
|
source: new h()
|
|
34
34
|
})
|
|
35
35
|
],
|
|
@@ -39,57 +39,56 @@ const Z = /* @__PURE__ */ E({
|
|
|
39
39
|
constrainResolution: !0
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
|
-
const
|
|
42
|
+
const M = new w({
|
|
43
43
|
units: "metric",
|
|
44
44
|
bar: !1
|
|
45
45
|
});
|
|
46
|
-
e.addControl(
|
|
47
|
-
const
|
|
46
|
+
e.addControl(M);
|
|
47
|
+
const R = new g({
|
|
48
48
|
position: "top-right"
|
|
49
49
|
});
|
|
50
|
-
e.addControl(
|
|
51
|
-
const
|
|
50
|
+
e.addControl(R);
|
|
51
|
+
const T = new b({
|
|
52
52
|
position: "bottom-left"
|
|
53
53
|
});
|
|
54
|
-
e.addControl(
|
|
55
|
-
const
|
|
54
|
+
e.addControl(T);
|
|
55
|
+
const k = new L({
|
|
56
56
|
options: {
|
|
57
57
|
position: "top-right"
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
e.addControl(
|
|
61
|
-
const
|
|
62
|
-
position: "bottom-right"
|
|
63
|
-
|
|
64
|
-
// see https://github.com/IGNF/geopf-extensions-openlayers/issues/497
|
|
60
|
+
e.addControl(k);
|
|
61
|
+
const I = new S({
|
|
62
|
+
position: "bottom-right",
|
|
63
|
+
collapsed: !1
|
|
65
64
|
});
|
|
66
|
-
|
|
65
|
+
e.addControl(I);
|
|
67
66
|
const o = new v({
|
|
68
67
|
position: "bottom-left",
|
|
69
68
|
listable: !0,
|
|
70
69
|
layerTypes: ["WMS"]
|
|
71
70
|
});
|
|
72
71
|
o._serviceUrlImportInput.value = r.resource.url, o._formContainer.dispatchEvent(new CustomEvent("submit", { cancelable: !0 })), e.addControl(o);
|
|
73
|
-
const
|
|
74
|
-
let
|
|
75
|
-
function
|
|
72
|
+
const l = 500;
|
|
73
|
+
let p = 20;
|
|
74
|
+
function c() {
|
|
76
75
|
if (!o._getCapResponseWMSLayers)
|
|
77
|
-
|
|
76
|
+
p--, p > 0 ? setTimeout(c, l) : n.value = !0;
|
|
78
77
|
else {
|
|
79
78
|
const t = o._getCapResponseWMSLayers.filter((x) => x.Name == r.resource.title)[0];
|
|
80
79
|
o._addGetCapWMSLayer(t);
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
|
-
setTimeout(
|
|
82
|
+
setTimeout(c, l);
|
|
84
83
|
}
|
|
85
84
|
return B(() => {
|
|
86
|
-
|
|
87
|
-
}), (i, s) => n.value ? (
|
|
85
|
+
d();
|
|
86
|
+
}), (i, s) => n.value ? (u(), N(F, { key: 0 }, {
|
|
88
87
|
default: U(() => [
|
|
89
|
-
V(q(A(
|
|
88
|
+
V(q(A(f)("L'aperçu cartographique de ce fichier n'a pas pu être chargé.")), 1)
|
|
90
89
|
]),
|
|
91
90
|
_: 1
|
|
92
|
-
})) : (
|
|
91
|
+
})) : (u(), z("div", {
|
|
93
92
|
key: 1,
|
|
94
93
|
id: "map",
|
|
95
94
|
ref_key: "mapRef",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as u } from "./Image-
|
|
2
|
-
import { T as d, c as o, e as m, d as s } from "./TileImage-
|
|
1
|
+
import { W as u } from "./Image-BijNEG0p.js";
|
|
2
|
+
import { T as d, c as o, e as m, d as s } from "./TileImage-BJeHipMX.js";
|
|
3
3
|
class g extends d {
|
|
4
4
|
/**
|
|
5
5
|
* @param {Options} [options] XYZ options.
|
|
@@ -12,8 +12,8 @@ var sZ = (R, l, U, Z) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { defineComponent as cd, ref as td, onBeforeUnmount as Rd, createBlock as Nd, openBlock as LU, unref as sd, withCtx as bd, createElementVNode as nd, createElementBlock as bZ, Fragment as ad, renderList as hd } from "vue";
|
|
15
|
-
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as id } from "./main-
|
|
15
|
+
import { _ as md } from "./PreviewWrapper.vue_vue_type_script_setup_true_lang-BFIK58nF.js";
|
|
16
|
+
import { u as id } from "./main-BNyfhPgX.js";
|
|
17
17
|
var ZU = {};
|
|
18
18
|
ZU.d = (R, l) => {
|
|
19
19
|
for (var U in l)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ly, ref as cy, computed as dc, useTemplateRef as uy, onMounted as hy, createElementBlock as Mp, openBlock as eh, createBlock as py, withCtx as rm, createTextVNode as nm, toDisplayString as fc, unref as Gs, createCommentVNode as dy, createElementVNode as is, createVNode as fy } from "vue";
|
|
2
|
-
import { c as my, a as gy, d as _y, u as yy, e as xy, f as vy, _ as by, h as wy, i as Ty, K as Sy, t as Py } from "./main-
|
|
2
|
+
import { c as my, a as gy, d as _y, u as yy, e as xy, f as vy, _ as by, h as wy, i as Ty, K as Sy, t as Py } from "./main-BNyfhPgX.js";
|
|
3
3
|
var fn = Uint8Array, Wo = Uint16Array, Iy = Int32Array, mm = new fn([
|
|
4
4
|
0,
|
|
5
5
|
0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as g, computed as h, onMounted as S, nextTick as w, createElementBlock as k, openBlock as l, renderSlot as C, createBlock as n, createCommentVNode as b, toDisplayString as r, unref as a, withCtx as o, createTextVNode as u } from "vue";
|
|
2
|
-
import { a as B, g as E, b as L, _ as c } from "./main-
|
|
2
|
+
import { a as B, g as E, b as L, _ as c } from "./main-BNyfhPgX.js";
|
|
3
3
|
const R = { class: "text-xs" }, q = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "text-gray-medium"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as M, a as b } from "./Control-
|
|
2
|
-
import { g as E, M as T } from "./proj-
|
|
1
|
+
import { C as M, a as b } from "./Control-ZFh5ta_U.js";
|
|
2
|
+
import { g as E, M as T } from "./proj-CsNo9yH1.js";
|
|
3
3
|
const S = "units", W = [1, 2, 5], f = 25.4 / 0.28;
|
|
4
4
|
class y extends M {
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as Oe, b as Pe, d as ye, g as ee, I as Ke, R as Me } from "./tilecoord-
|
|
2
|
-
import { T, h as Te, d as
|
|
3
|
-
import {
|
|
4
|
-
import { a as ne, e as ie, p as et, g as v, d as ae, n as tt, q as nt } from "./common-
|
|
5
|
-
import { a as xe,
|
|
1
|
+
import { T as Oe, b as Pe, d as ye, g as ee, I as Ke, R as Me } from "./tilecoord-A0fLnBZr.js";
|
|
2
|
+
import { T, h as Te, d as j, l as Ae, j as ze, W as be, c as me, t as je } from "./Image-BijNEG0p.js";
|
|
3
|
+
import { aG as ke, aI as Fe, al as te, E as Ne, $ as Ze, an as we, aJ as Ue, aA as qe, aK as Ge, L as Be, F as Ve, n as We, e as He, X as Xe, a as k, aL as Ye, j as re, d as oe, a2 as Qe, i as $e, H as Je } from "./proj-CsNo9yH1.js";
|
|
4
|
+
import { a as ne, e as ie, p as et, g as v, d as ae, n as tt, q as nt } from "./common-BjQlan3k.js";
|
|
5
|
+
import { a as xe, c as it, R as X, L as st } from "./Event-DSQcW7OF.js";
|
|
6
6
|
function le(u) {
|
|
7
7
|
return u instanceof Image || u instanceof HTMLCanvasElement || u instanceof HTMLVideoElement || u instanceof ImageBitmap ? u : null;
|
|
8
8
|
}
|
|
@@ -77,7 +77,7 @@ class Ce {
|
|
|
77
77
|
}
|
|
78
78
|
deleteOldest() {
|
|
79
79
|
const e = this.pop();
|
|
80
|
-
e instanceof
|
|
80
|
+
e instanceof ke && e.dispose();
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* @return {boolean} Can expire cache.
|
|
@@ -320,7 +320,7 @@ class at {
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
const lt = 5;
|
|
323
|
-
class ct extends
|
|
323
|
+
class ct extends Fe {
|
|
324
324
|
/**
|
|
325
325
|
* @param {LayerType} layer Layer.
|
|
326
326
|
*/
|
|
@@ -408,7 +408,7 @@ class ct extends ke {
|
|
|
408
408
|
/** @type {import("../Image.js").default} */
|
|
409
409
|
e.target
|
|
410
410
|
);
|
|
411
|
-
(t.getState() ===
|
|
411
|
+
(t.getState() === j.LOADED || t.getState() === j.ERROR) && this.renderIfReadyAndVisible();
|
|
412
412
|
}
|
|
413
413
|
/**
|
|
414
414
|
* Load the image if not already loaded, and register the image change
|
|
@@ -419,7 +419,7 @@ class ct extends ke {
|
|
|
419
419
|
*/
|
|
420
420
|
loadImage(e) {
|
|
421
421
|
let t = e.getState();
|
|
422
|
-
return t !=
|
|
422
|
+
return t != j.LOADED && t != j.ERROR && e.addEventListener(Ne.CHANGE, this.boundHandleImageChange_), t == j.IDLE && (e.load(), t = e.getState()), t == j.LOADED;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @protected
|
|
@@ -442,9 +442,9 @@ class ct extends ke {
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
const Ct = [];
|
|
445
|
-
let
|
|
445
|
+
let F = null;
|
|
446
446
|
function ht() {
|
|
447
|
-
|
|
447
|
+
F = me(1, 1, void 0, {
|
|
448
448
|
willReadFrequently: !0
|
|
449
449
|
});
|
|
450
450
|
}
|
|
@@ -462,12 +462,12 @@ class dt extends ct {
|
|
|
462
462
|
* @return {Uint8ClampedArray|null} The image data.
|
|
463
463
|
*/
|
|
464
464
|
getImageData(e, t, n) {
|
|
465
|
-
|
|
465
|
+
F || ht(), F.clearRect(0, 0, 1, 1);
|
|
466
466
|
let i;
|
|
467
467
|
try {
|
|
468
|
-
|
|
468
|
+
F.drawImage(e, t, n, 1, 1, 0, 0, 1, 1), i = F.getImageData(0, 0, 1, 1).data;
|
|
469
469
|
} catch {
|
|
470
|
-
return
|
|
470
|
+
return F = null, null;
|
|
471
471
|
}
|
|
472
472
|
return i;
|
|
473
473
|
}
|
|
@@ -493,10 +493,10 @@ class dt extends ct {
|
|
|
493
493
|
xe(n)
|
|
494
494
|
))) {
|
|
495
495
|
const s = e.firstElementChild;
|
|
496
|
-
|
|
496
|
+
Ae(s) && (a = s.getContext("2d"));
|
|
497
497
|
}
|
|
498
498
|
if (a && et(a.canvas.style.transform, t) ? (this.container = e, this.context = a, this.containerReused = !0) : this.containerReused ? (this.container = null, this.context = null, this.containerReused = !1) : this.container && (this.container.style.backgroundColor = null), !this.container) {
|
|
499
|
-
r = be ?
|
|
499
|
+
r = be ? ze() : document.createElement("div"), r.className = i;
|
|
500
500
|
let s = r.style;
|
|
501
501
|
s.position = "absolute", s.width = "100%", s.height = "100%", a = me();
|
|
502
502
|
const l = (
|
|
@@ -747,7 +747,7 @@ class gt extends dt {
|
|
|
747
747
|
const h = l.getTileCoordForCoordAndZ(i, o), d = this.getTile(o, h[1], h[2], t);
|
|
748
748
|
if (!d || d.getState() !== T.LOADED)
|
|
749
749
|
continue;
|
|
750
|
-
const g = l.getOrigin(o), p =
|
|
750
|
+
const g = l.getOrigin(o), p = je(l.getTileSize(o)), S = l.getResolution(o);
|
|
751
751
|
let f;
|
|
752
752
|
if (d instanceof Ke || d instanceof Me)
|
|
753
753
|
f = d.getImage();
|
|
@@ -797,7 +797,7 @@ class gt extends dt {
|
|
|
797
797
|
* @param {number} preload Number of additional levels to load.
|
|
798
798
|
*/
|
|
799
799
|
enqueueTiles(e, t, n, i, r) {
|
|
800
|
-
const a = e.viewState, s = this.getLayer(), l = s.getRenderSource(), c = l.getTileGridForProjection(a.projection), o =
|
|
800
|
+
const a = e.viewState, s = this.getLayer(), l = s.getRenderSource(), c = l.getTileGridForProjection(a.projection), o = k(l);
|
|
801
801
|
o in e.wantedTiles || (e.wantedTiles[o] = {});
|
|
802
802
|
const h = e.wantedTiles[o], d = s.getMapInternal(), g = Math.max(
|
|
803
803
|
n - r,
|
|
@@ -862,7 +862,7 @@ class gt extends dt {
|
|
|
862
862
|
if (n.containsKey(c)) {
|
|
863
863
|
const o = n.peek(c);
|
|
864
864
|
if (o.getState() === T.LOADED)
|
|
865
|
-
return o.endTransition(
|
|
865
|
+
return o.endTransition(k(this)), se(t, o, i), !0;
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
return !1;
|
|
@@ -925,7 +925,7 @@ class gt extends dt {
|
|
|
925
925
|
S,
|
|
926
926
|
re(n.extent)
|
|
927
927
|
));
|
|
928
|
-
const I = g * m / 2 / f, L = g * K / 2 / f,
|
|
928
|
+
const I = g * m / 2 / f, L = g * K / 2 / f, A = [
|
|
929
929
|
s[0] - I,
|
|
930
930
|
s[1] - L,
|
|
931
931
|
s[0] + I,
|
|
@@ -951,7 +951,7 @@ class gt extends dt {
|
|
|
951
951
|
);
|
|
952
952
|
}, 0), !(d in y))
|
|
953
953
|
return this.container;
|
|
954
|
-
const he =
|
|
954
|
+
const he = k(this), ve = e.time;
|
|
955
955
|
for (const x of y[d]) {
|
|
956
956
|
const R = x.getState();
|
|
957
957
|
if (R === T.EMPTY)
|
|
@@ -993,20 +993,20 @@ class gt extends dt {
|
|
|
993
993
|
-K / 2
|
|
994
994
|
), n.extent && this.clipUnrotated(_, e, E), o.getInterpolate() || (_.imageSmoothingEnabled = !1), this.preRender(_, e);
|
|
995
995
|
const q = Object.keys(y).map(Number);
|
|
996
|
-
q.sort(
|
|
996
|
+
q.sort(Qe);
|
|
997
997
|
let w;
|
|
998
|
-
const
|
|
998
|
+
const Q = [], de = [];
|
|
999
999
|
for (let x = q.length - 1; x >= 0; --x) {
|
|
1000
1000
|
const R = q[x], D = o.getTilePixelSize(
|
|
1001
1001
|
R,
|
|
1002
1002
|
l,
|
|
1003
1003
|
r
|
|
1004
|
-
),
|
|
1005
|
-
we(
|
|
1004
|
+
), z = h.getResolution(R) / g, b = D[0] * z * U, M = D[1] * z * U, G = h.getTileCoordForCoordAndZ(
|
|
1005
|
+
we(A),
|
|
1006
1006
|
R
|
|
1007
1007
|
), ue = h.getTileCoordExtent(G), B = v(this.tempTransform, [
|
|
1008
|
-
f * (ue[0] -
|
|
1009
|
-
f * (
|
|
1008
|
+
f * (ue[0] - A[0]) / g,
|
|
1009
|
+
f * (A[3] - ue[3]) / g
|
|
1010
1010
|
]), Se = f * o.getGutterForProjection(r);
|
|
1011
1011
|
for (const Z of y[R]) {
|
|
1012
1012
|
if (Z.getState() !== T.LOADED)
|
|
@@ -1014,20 +1014,20 @@ class gt extends dt {
|
|
|
1014
1014
|
const ge = Z.tileCoord, fe = G[1] - ge[1], Ie = Math.round(B[0] - (fe - 1) * b), _e = G[2] - ge[2], Le = Math.round(B[1] - (_e - 1) * M), O = Math.round(B[0] - fe * b), P = Math.round(B[1] - _e * M), V = Ie - O, W = Le - P, pe = q.length === 1;
|
|
1015
1015
|
let J = !1;
|
|
1016
1016
|
w = [O, P, O + V, P, O + V, P + W, O, P + W];
|
|
1017
|
-
for (let H = 0, De =
|
|
1017
|
+
for (let H = 0, De = Q.length; H < De; ++H)
|
|
1018
1018
|
if (!pe && R < de[H]) {
|
|
1019
|
-
const C =
|
|
1020
|
-
|
|
1019
|
+
const C = Q[H];
|
|
1020
|
+
$e(
|
|
1021
1021
|
[O, P, O + V, P + W],
|
|
1022
1022
|
[C[0], C[3], C[4], C[7]]
|
|
1023
1023
|
) && (J || (_.save(), J = !0), _.beginPath(), _.moveTo(w[0], w[1]), _.lineTo(w[2], w[3]), _.lineTo(w[4], w[5]), _.lineTo(w[6], w[7]), _.moveTo(C[6], C[7]), _.lineTo(C[4], C[5]), _.lineTo(C[2], C[3]), _.lineTo(C[0], C[1]), _.clip());
|
|
1024
1024
|
}
|
|
1025
|
-
|
|
1025
|
+
Q.push(w), de.push(R), this.drawTile(Z, e, O, P, V, W, Se, pe), J && _.restore(), this.renderedTiles.unshift(Z), this.updateUsedTiles(e.usedTiles, o, Z);
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
|
-
if (this.renderedResolution = g, this.extentChanged = !this.renderedExtent_ || !Je(this.renderedExtent_,
|
|
1028
|
+
if (this.renderedResolution = g, this.extentChanged = !this.renderedExtent_ || !Je(this.renderedExtent_, A), this.renderedExtent_ = A, this.renderedPixelRatio = l, this.postRender(this.context, e), n.extent && _.restore(), _.imageSmoothingEnabled = !0, this.renderComplete) {
|
|
1029
1029
|
const x = (R, D) => {
|
|
1030
|
-
const
|
|
1030
|
+
const $ = k(o), z = D.wantedTiles[$], b = z ? Object.keys(z).length : 0;
|
|
1031
1031
|
this.updateCacheSize(b), this.tileCache_.expireCache(), this.sourceTileCache_?.expireCache();
|
|
1032
1032
|
};
|
|
1033
1033
|
e.postRenderFunctions.push(x);
|
|
@@ -1067,7 +1067,7 @@ class gt extends dt {
|
|
|
1067
1067
|
);
|
|
1068
1068
|
if (!c)
|
|
1069
1069
|
return;
|
|
1070
|
-
const o = this.getRenderContext(t), h =
|
|
1070
|
+
const o = this.getRenderContext(t), h = k(this), d = t.layerStatesArray[t.layerIndex], g = d.opacity * (l ? e.getAlpha(h, t.time) : 1), p = g !== o.globalAlpha;
|
|
1071
1071
|
p && (o.save(), o.globalAlpha = g), o.drawImage(
|
|
1072
1072
|
c,
|
|
1073
1073
|
s,
|
|
@@ -1103,7 +1103,7 @@ class gt extends dt {
|
|
|
1103
1103
|
* @protected
|
|
1104
1104
|
*/
|
|
1105
1105
|
updateUsedTiles(e, t, n) {
|
|
1106
|
-
const i =
|
|
1106
|
+
const i = k(t);
|
|
1107
1107
|
i in e || (e[i] = {}), e[i][n.getKey()] = !0;
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as Y, e as f, d as b, h as D, w as v, I as K, R as N, g as k } from "./tilecoord-
|
|
2
|
-
import { t as g, s as W, T as _, W as q } from "./Image-
|
|
3
|
-
import {
|
|
4
|
-
import { a as m, x as A, y as lt, D as at } from "./common-
|
|
1
|
+
import { b as Y, e as f, d as b, h as D, w as v, I as K, R as N, g as k } from "./tilecoord-A0fLnBZr.js";
|
|
2
|
+
import { t as g, s as W, T as _, W as q } from "./Image-BijNEG0p.js";
|
|
3
|
+
import { aS as H, an as $, q as j, N as V, a7 as B, P as F, S as x, D as E, M as J, F as Q, L as w, X as tt, aT as et, W as it, B as nt, a as R, al as rt, J as st, e as z, E as ot } from "./proj-CsNo9yH1.js";
|
|
4
|
+
import { a as m, x as A, y as lt, D as at } from "./common-BjQlan3k.js";
|
|
5
5
|
const T = [0, 0, 0], d = 5;
|
|
6
6
|
class X {
|
|
7
7
|
/**
|