@performant-software/geospatial 3.1.16-beta.7 → 3.1.16
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.cjs14.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs239.js.map +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs240.js.map +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs241.js.map +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs242.js.map +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs262.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +9 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +17 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +743 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -9
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -17
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs80.js +1 -743
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.es14.js +2 -2
- package/dist/index.es188.js +1 -1
- package/dist/index.es189.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es191.js +2 -2
- package/dist/index.es193.js +3 -3
- package/dist/index.es194.js +1 -1
- package/dist/index.es195.js +1 -1
- package/dist/index.es196.js +1 -1
- package/dist/index.es198.js +2 -2
- package/dist/index.es199.js +3 -3
- package/dist/index.es201.js +2 -2
- package/dist/index.es211.js +1 -1
- package/dist/index.es212.js +1 -1
- package/dist/index.es213.js +1 -1
- package/dist/index.es231.js +1 -1
- package/dist/index.es238.js +3 -21
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +5 -22
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es240.js +8 -3
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +24 -5
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +16 -7
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +28 -22
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +20 -15
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +74 -30
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +20 -21
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +37 -71
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +48 -19
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +7 -40
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es250.js +19 -48
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +65 -7
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +40 -18
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +58 -60
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +8 -42
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +3 -63
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +12 -8
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +59 -3
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +48 -11
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +18 -57
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +22 -49
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es262.js +15 -4
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +4 -15
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +4 -4
- package/dist/index.es27.js +1 -1
- package/dist/index.es31.js +2 -2
- package/dist/index.es33.js +2 -2
- package/dist/index.es34.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es71.js +7 -1992
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +2 -6
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +26 -2
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +588 -7
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +21352 -2
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +2 -26
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +1960 -556
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +5 -105
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +2 -10
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +104 -21350
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +10 -2
- package/dist/index.es81.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es258.js
CHANGED
|
@@ -1,16 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function S(l, a, r) {
|
|
4
|
-
var f = a[1][0] - a[0][0], m = a[1][1] - a[0][1], i = l.clipExtent && l.clipExtent();
|
|
5
|
-
l.scale(150).translate([0, 0]), i != null && l.clipExtent(null), c(r, l.stream(n));
|
|
6
|
-
var t = n.result(), u = Math.min(f / (t[1][0] - t[0][0]), m / (t[1][1] - t[0][1])), s = +a[0][0] + (f - u * (t[1][0] + t[0][0])) / 2, E = +a[0][1] + (m - u * (t[1][1] + t[0][1])) / 2;
|
|
7
|
-
return i != null && l.clipExtent(i), l.scale(u * 150).translate([s, E]);
|
|
1
|
+
function l(n, i) {
|
|
2
|
+
n && f.hasOwnProperty(n.type) && f[n.type](n, i);
|
|
8
3
|
}
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
var u = {
|
|
5
|
+
Feature: function(n, i) {
|
|
6
|
+
l(n.geometry, i);
|
|
7
|
+
},
|
|
8
|
+
FeatureCollection: function(n, i) {
|
|
9
|
+
for (var e = n.features, t = -1, o = e.length; ++t < o; ) l(e[t].geometry, i);
|
|
10
|
+
}
|
|
11
|
+
}, f = {
|
|
12
|
+
Sphere: function(n, i) {
|
|
13
|
+
i.sphere();
|
|
14
|
+
},
|
|
15
|
+
Point: function(n, i) {
|
|
16
|
+
n = n.coordinates, i.point(n[0], n[1], n[2]);
|
|
17
|
+
},
|
|
18
|
+
MultiPoint: function(n, i) {
|
|
19
|
+
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) n = e[t], i.point(n[0], n[1], n[2]);
|
|
20
|
+
},
|
|
21
|
+
LineString: function(n, i) {
|
|
22
|
+
a(n.coordinates, i, 0);
|
|
23
|
+
},
|
|
24
|
+
MultiLineString: function(n, i) {
|
|
25
|
+
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) a(e[t], i, 0);
|
|
26
|
+
},
|
|
27
|
+
Polygon: function(n, i) {
|
|
28
|
+
h(n.coordinates, i);
|
|
29
|
+
},
|
|
30
|
+
MultiPolygon: function(n, i) {
|
|
31
|
+
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) h(e[t], i);
|
|
32
|
+
},
|
|
33
|
+
GeometryCollection: function(n, i) {
|
|
34
|
+
for (var e = n.geometries, t = -1, o = e.length; ++t < o; ) l(e[t], i);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function a(n, i, e) {
|
|
38
|
+
var t = -1, o = n.length - e, r;
|
|
39
|
+
for (i.lineStart(); ++t < o; ) r = n[t], i.point(r[0], r[1], r[2]);
|
|
40
|
+
i.lineEnd();
|
|
41
|
+
}
|
|
42
|
+
function h(n, i) {
|
|
43
|
+
var e = -1, t = n.length;
|
|
44
|
+
for (i.polygonStart(); ++e < t; ) a(n[e], i, 1);
|
|
45
|
+
i.polygonEnd();
|
|
46
|
+
}
|
|
47
|
+
function g(n, i) {
|
|
48
|
+
n && u.hasOwnProperty(n.type) ? u[n.type](n, i) : l(n, i);
|
|
11
49
|
}
|
|
12
50
|
export {
|
|
13
|
-
|
|
14
|
-
h as fitSize
|
|
51
|
+
g as default
|
|
15
52
|
};
|
|
16
53
|
//# sourceMappingURL=index.es258.js.map
|
package/dist/index.es258.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es258.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es258.js","sources":["../../../node_modules/d3-geo/src/stream.js"],"sourcesContent":["function streamGeometry(geometry, stream) {\n if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {\n streamGeometryType[geometry.type](geometry, stream);\n }\n}\n\nvar streamObjectType = {\n Feature: function(object, stream) {\n streamGeometry(object.geometry, stream);\n },\n FeatureCollection: function(object, stream) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) streamGeometry(features[i].geometry, stream);\n }\n};\n\nvar streamGeometryType = {\n Sphere: function(object, stream) {\n stream.sphere();\n },\n Point: function(object, stream) {\n object = object.coordinates;\n stream.point(object[0], object[1], object[2]);\n },\n MultiPoint: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);\n },\n LineString: function(object, stream) {\n streamLine(object.coordinates, stream, 0);\n },\n MultiLineString: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamLine(coordinates[i], stream, 0);\n },\n Polygon: function(object, stream) {\n streamPolygon(object.coordinates, stream);\n },\n MultiPolygon: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamPolygon(coordinates[i], stream);\n },\n GeometryCollection: function(object, stream) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) streamGeometry(geometries[i], stream);\n }\n};\n\nfunction streamLine(coordinates, stream, closed) {\n var i = -1, n = coordinates.length - closed, coordinate;\n stream.lineStart();\n while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);\n stream.lineEnd();\n}\n\nfunction streamPolygon(coordinates, stream) {\n var i = -1, n = coordinates.length;\n stream.polygonStart();\n while (++i < n) streamLine(coordinates[i], stream, 1);\n stream.polygonEnd();\n}\n\nexport default function(object, stream) {\n if (object && streamObjectType.hasOwnProperty(object.type)) {\n streamObjectType[object.type](object, stream);\n } else {\n streamGeometry(object, stream);\n }\n}\n"],"names":["streamGeometry","geometry","stream","streamGeometryType","streamObjectType","object","features","i","n","coordinates","streamLine","streamPolygon","geometries","closed","coordinate","geoStream"],"mappings":"AAAA,SAASA,EAAeC,GAAUC,GAAQ;AACxC,EAAID,KAAYE,EAAmB,eAAeF,EAAS,IAAI,KAC7DE,EAAmBF,EAAS,IAAI,EAAEA,GAAUC,CAAM;AAEtD;AAEA,IAAIE,IAAmB;AAAA,EACrB,SAAS,SAASC,GAAQH,GAAQ;AAChC,IAAAF,EAAeK,EAAO,UAAUH,CAAM;AAAA,EACxC;AAAA,EACA,mBAAmB,SAASG,GAAQH,GAAQ;AAE1C,aADII,IAAWD,EAAO,UAAUE,IAAI,IAAIC,IAAIF,EAAS,QAC9C,EAAEC,IAAIC,IAAG,CAAAR,EAAeM,EAASC,CAAC,EAAE,UAAUL,CAAM;AAAA,EAC7D;AACF,GAEIC,IAAqB;AAAA,EACvB,QAAQ,SAASE,GAAQH,GAAQ;AAC/B,IAAAA,EAAO,OAAA;AAAA,EACT;AAAA,EACA,OAAO,SAASG,GAAQH,GAAQ;AAC9B,IAAAG,IAASA,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AAO,MAAMY,EAAW,CAAC,GAAGA,EAAW,CAAC,GAAGA,EAAW,CAAC,CAAC;AACrG,EAAAZ,EAAO,QAAA;AACT;AAEA,SAASS,EAAcF,GAAaP,GAAQ;AAC1C,MAAIK,IAAI,IAAIC,IAAIC,EAAY;AAE5B,OADAP,EAAO,aAAA,GACA,EAAEK,IAAIC,IAAG,CAAAE,EAAWD,EAAYF,CAAC,GAAGL,GAAQ,CAAC;AACpD,EAAAA,EAAO,WAAA;AACT;AAEA,SAAAa,EAAwBV,GAAQH,GAAQ;AACtC,EAAIG,KAAUD,EAAiB,eAAeC,EAAO,IAAI,IACvDD,EAAiBC,EAAO,IAAI,EAAEA,GAAQH,CAAM,IAE5CF,EAAeK,GAAQH,CAAM;AAEjC;","x_google_ignoreList":[0]}
|
package/dist/index.es259.js
CHANGED
|
@@ -1,63 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
t = e(t, D), this.stream.point(t[0], t[1]);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
1
|
+
import { deepEqual as a } from "./index.es206.js";
|
|
2
|
+
function g(i) {
|
|
3
|
+
return {
|
|
4
|
+
longitude: i.center.lng,
|
|
5
|
+
latitude: i.center.lat,
|
|
6
|
+
zoom: i.zoom,
|
|
7
|
+
pitch: i.pitch,
|
|
8
|
+
bearing: i.bearing,
|
|
9
|
+
padding: i.padding
|
|
10
|
+
};
|
|
14
11
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
(G * G / v > t || B((E * C + S * F) / v - 0.5) > 0.3 || L * u + M * l + T * c < W) && (D(i, P, q, L, M, T, N, A, f, p /= y, a /= y, g, s, n), n.point(N, A), D(N, A, f, p, a, g, w, $, r, u, l, c, s, n));
|
|
21
|
-
}
|
|
12
|
+
function c(i, t) {
|
|
13
|
+
const n = t.viewState || t, e = {};
|
|
14
|
+
if ("longitude" in n && "latitude" in n && (n.longitude !== i.center.lng || n.latitude !== i.center.lat)) {
|
|
15
|
+
const o = i.center.constructor;
|
|
16
|
+
e.center = new o(n.longitude, n.latitude);
|
|
22
17
|
}
|
|
23
|
-
return
|
|
24
|
-
var P, q, L, M, T, w, $, r, u, l, c, s, n = {
|
|
25
|
-
point: E,
|
|
26
|
-
lineStart: S,
|
|
27
|
-
lineEnd: p,
|
|
28
|
-
polygonStart: function() {
|
|
29
|
-
i.polygonStart(), n.lineStart = a;
|
|
30
|
-
},
|
|
31
|
-
polygonEnd: function() {
|
|
32
|
-
i.polygonEnd(), n.lineStart = S;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
function E(o, f) {
|
|
36
|
-
o = e(o, f), i.point(o[0], o[1]);
|
|
37
|
-
}
|
|
38
|
-
function S() {
|
|
39
|
-
r = NaN, n.point = v, i.lineStart();
|
|
40
|
-
}
|
|
41
|
-
function v(o, f) {
|
|
42
|
-
var k = J([o, f]), N = e(o, f);
|
|
43
|
-
D(r, u, $, l, c, s, r = N[0], u = N[1], $ = o, l = k[0], c = k[1], s = k[2], I, i), i.point(r, u);
|
|
44
|
-
}
|
|
45
|
-
function p() {
|
|
46
|
-
n.point = E, i.lineEnd();
|
|
47
|
-
}
|
|
48
|
-
function a() {
|
|
49
|
-
S(), n.point = g, n.lineEnd = y;
|
|
50
|
-
}
|
|
51
|
-
function g(o, f) {
|
|
52
|
-
v(P = o, f), q = r, L = u, M = l, T = c, w = s, n.point = v;
|
|
53
|
-
}
|
|
54
|
-
function y() {
|
|
55
|
-
D(r, u, $, l, c, s, q, L, P, M, T, w, I, i), n.lineEnd = p, p();
|
|
56
|
-
}
|
|
57
|
-
return n;
|
|
58
|
-
};
|
|
18
|
+
return "zoom" in n && n.zoom !== i.zoom && (e.zoom = n.zoom), "bearing" in n && n.bearing !== i.bearing && (e.bearing = n.bearing), "pitch" in n && n.pitch !== i.pitch && (e.pitch = n.pitch), n.padding && i.padding && !a(n.padding, i.padding) && (e.padding = n.padding), e;
|
|
59
19
|
}
|
|
60
20
|
export {
|
|
61
|
-
|
|
21
|
+
c as applyViewStateToTransform,
|
|
22
|
+
g as transformToViewState
|
|
62
23
|
};
|
|
63
24
|
//# sourceMappingURL=index.es259.js.map
|
package/dist/index.es259.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es259.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.es259.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/transform.js"],"sourcesContent":["import { deepEqual } from \"./deep-equal.js\";\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Applies requested view state to a transform\n * @returns an object containing detected changes\n */\nexport function applyViewStateToTransform(\n/** An object that describes Maplibre's camera state */\ntr, \n/** Props from Map component */\nprops) {\n const v = props.viewState || props;\n const changes = {};\n if ('longitude' in v &&\n 'latitude' in v &&\n (v.longitude !== tr.center.lng || v.latitude !== tr.center.lat)) {\n const LngLat = tr.center.constructor;\n // @ts-expect-error we should not import LngLat class from maplibre-gl because we don't know the source of mapLib\n changes.center = new LngLat(v.longitude, v.latitude);\n }\n if ('zoom' in v && v.zoom !== tr.zoom) {\n changes.zoom = v.zoom;\n }\n if ('bearing' in v && v.bearing !== tr.bearing) {\n changes.bearing = v.bearing;\n }\n if ('pitch' in v && v.pitch !== tr.pitch) {\n changes.pitch = v.pitch;\n }\n if (v.padding && tr.padding && !deepEqual(v.padding, tr.padding)) {\n changes.padding = v.padding;\n }\n return changes;\n}\n//# sourceMappingURL=transform.js.map"],"names":["transformToViewState","tr","applyViewStateToTransform","props","v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
|
24
|
-
MultiLineString: function(n, i) {
|
|
25
|
-
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) a(e[t], i, 0);
|
|
26
|
-
},
|
|
27
|
-
Polygon: function(n, i) {
|
|
28
|
-
h(n.coordinates, i);
|
|
29
|
-
},
|
|
30
|
-
MultiPolygon: function(n, i) {
|
|
31
|
-
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) h(e[t], i);
|
|
32
|
-
},
|
|
33
|
-
GeometryCollection: function(n, i) {
|
|
34
|
-
for (var e = n.geometries, t = -1, o = e.length; ++t < o; ) l(e[t], i);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
function a(n, i, e) {
|
|
38
|
-
var t = -1, o = n.length - e, r;
|
|
39
|
-
for (i.lineStart(); ++t < o; ) r = n[t], i.point(r[0], r[1], r[2]);
|
|
40
|
-
i.lineEnd();
|
|
41
|
-
}
|
|
42
|
-
function h(n, i) {
|
|
43
|
-
var e = -1, t = n.length;
|
|
44
|
-
for (i.polygonStart(); ++e < t; ) a(n[e], i, 1);
|
|
45
|
-
i.polygonEnd();
|
|
46
|
-
}
|
|
47
|
-
function g(n, i) {
|
|
48
|
-
n && u.hasOwnProperty(n.type) ? u[n.type](n, i) : l(n, i);
|
|
1
|
+
const a = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
|
|
2
|
+
function c(r) {
|
|
3
|
+
if (!r)
|
|
4
|
+
return null;
|
|
5
|
+
if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
|
|
6
|
+
return r;
|
|
7
|
+
const t = {};
|
|
8
|
+
for (const e of r.layers)
|
|
9
|
+
t[e.id] = e;
|
|
10
|
+
const f = r.layers.map((e) => {
|
|
11
|
+
let n = null;
|
|
12
|
+
"interactive" in e && (n = Object.assign({}, e), delete n.interactive);
|
|
13
|
+
const o = t[e.ref];
|
|
14
|
+
if (o) {
|
|
15
|
+
n = n || Object.assign({}, e), delete n.ref;
|
|
16
|
+
for (const i of a)
|
|
17
|
+
i in o && (n[i] = o[i]);
|
|
18
|
+
}
|
|
19
|
+
return n || e;
|
|
20
|
+
});
|
|
21
|
+
return { ...r, layers: f };
|
|
49
22
|
}
|
|
50
23
|
export {
|
|
51
|
-
|
|
24
|
+
c as normalizeStyle
|
|
52
25
|
};
|
|
53
26
|
//# sourceMappingURL=index.es260.js.map
|
package/dist/index.es260.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es260.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.es260.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"AAAA,MAAMA,IAAW,CAAC,QAAQ,UAAU,gBAAgB,WAAW,WAAW,UAAU,QAAQ;AAIrF,SAASC,EAAeC,GAAO;AAClC,MAAI,CAACA;AACD,WAAO;AAQX,MANI,OAAOA,KAAU,aAGjB,UAAUA,MACVA,IAAQA,EAAM,KAAA,IAEd,CAACA,EAAM;AACP,WAAOA;AAEX,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAASF,EAAM;AACtB,IAAAC,EAAWC,EAAM,EAAE,IAAIA;AAE3B,QAAMC,IAASH,EAAM,OAAO,IAAI,CAAAE,MAAS;AACrC,QAAIE,IAAkB;AACtB,IAAI,iBAAiBF,MACjBE,IAAkB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAGzC,OAAOE,EAAgB;AAI3B,UAAMC,IAAWJ,EAAWC,EAAM,GAAG;AACrC,QAAIG,GAAU;AACV,MAAAD,IAAkBA,KAAmB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAE5D,OAAOE,EAAgB;AAEvB,iBAAWE,KAAYR;AACnB,QAAIQ,KAAYD,MACZD,EAAgBE,CAAQ,IAAID,EAASC,CAAQ;AAAA,IAGzD;AACA,WAAOF,KAAmBF;AAAA,EAC9B,CAAC;AAED,SAAO,EAAE,GAAGF,GAAO,QAAAG,EAAA;AACvB;","x_google_ignoreList":[0]}
|
package/dist/index.es262.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import r from "./index.es261.js";
|
|
2
|
+
var o = 1 / 0, f = o, t = -o, a = t, d = {
|
|
3
|
+
point: u,
|
|
4
|
+
lineStart: r,
|
|
5
|
+
lineEnd: r,
|
|
6
|
+
polygonStart: r,
|
|
7
|
+
polygonEnd: r,
|
|
8
|
+
result: function() {
|
|
9
|
+
var n = [[o, f], [t, a]];
|
|
10
|
+
return t = a = -(f = o = 1 / 0), n;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
function u(n, i) {
|
|
14
|
+
n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
|
|
4
15
|
}
|
|
5
16
|
export {
|
|
6
|
-
|
|
17
|
+
d as default
|
|
7
18
|
};
|
|
8
19
|
//# sourceMappingURL=index.es262.js.map
|
package/dist/index.es262.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es262.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es262.js","sources":["../../../node_modules/d3-geo/src/path/bounds.js"],"sourcesContent":["import noop from \"../noop\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n"],"names":["x0","y0","x1","y1","boundsStream","boundsPoint","noop","bounds","x","y"],"mappings":";AAEA,IAAIA,IAAK,OACLC,IAAKD,GACLE,IAAK,CAACF,GACNG,IAAKD,GAELE,IAAe;AAAA,EACjB,OAAOC;AAAA,EACP,WAAWC;AAAA,EACX,SAASA;AAAA,EACT,cAAcA;AAAA,EACd,YAAYA;AAAA,EACZ,QAAQ,WAAW;AACjB,QAAIC,IAAS,CAAC,CAACP,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;AAChC,WAAAD,IAAKC,IAAK,EAAEF,IAAKD,IAAK,QACfO;AAAA,EACT;AACF;AAEA,SAASF,EAAYG,GAAGC,GAAG;AACzB,EAAID,IAAIR,MAAIA,IAAKQ,IACbA,IAAIN,MAAIA,IAAKM,IACbC,IAAIR,MAAIA,IAAKQ,IACbA,IAAIN,MAAIA,IAAKM;AACnB;","x_google_ignoreList":[0]}
|
package/dist/index.es263.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import r from "./index.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
lineStart: r,
|
|
5
|
-
lineEnd: r,
|
|
6
|
-
polygonStart: r,
|
|
7
|
-
polygonEnd: r,
|
|
8
|
-
result: function() {
|
|
9
|
-
var n = [[o, f], [t, a]];
|
|
10
|
-
return t = a = -(f = o = 1 / 0), n;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
function u(n, i) {
|
|
14
|
-
n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
|
|
1
|
+
import { abs as n, epsilon as r } from "./index.es244.js";
|
|
2
|
+
function i(o, t) {
|
|
3
|
+
return n(o[0] - t[0]) < r && n(o[1] - t[1]) < r;
|
|
15
4
|
}
|
|
16
5
|
export {
|
|
17
|
-
|
|
6
|
+
i as default
|
|
18
7
|
};
|
|
19
8
|
//# sourceMappingURL=index.es263.js.map
|
package/dist/index.es263.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es263.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es263.js","sources":["../../../node_modules/d3-geo/src/pointEqual.js"],"sourcesContent":["import {abs, epsilon} from \"./math\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n"],"names":["pointEqual","a","b","abs","epsilon"],"mappings":";AAEA,SAAAA,EAAwBC,GAAGC,GAAG;AAC5B,SAAOC,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE,KAAWD,EAAIF,EAAE,CAAC,IAAIC,EAAE,CAAC,CAAC,IAAIE;AAC1D;","x_google_ignoreList":[0]}
|
package/dist/index.es264.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import A from "./index.
|
|
2
|
-
import D from "./index.
|
|
3
|
-
import { halfPi as S, epsilon as R } from "./index.
|
|
1
|
+
import A from "./index.es246.js";
|
|
2
|
+
import D from "./index.es248.js";
|
|
3
|
+
import { halfPi as S, epsilon as R } from "./index.es244.js";
|
|
4
4
|
import F from "./index.es193.js";
|
|
5
5
|
import "./index.es192.js";
|
|
6
|
-
import G from "./index.
|
|
6
|
+
import G from "./index.es249.js";
|
|
7
7
|
function T(e, p, m, v) {
|
|
8
8
|
return function(g, n) {
|
|
9
9
|
var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
|
package/dist/index.es27.js
CHANGED
package/dist/index.es31.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as f } from "./index.
|
|
2
|
-
import { __require as n } from "./index.
|
|
1
|
+
import { getDefaultExportFromCjs as f } from "./index.es78.js";
|
|
2
|
+
import { __require as n } from "./index.es75.js";
|
|
3
3
|
function s(t, i) {
|
|
4
4
|
for (var o = 0; o < i.length; o++) {
|
|
5
5
|
const e = i[o];
|
package/dist/index.es33.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenIcon as a } from "./index.
|
|
2
|
-
import "./index.
|
|
1
|
+
import { GenIcon as a } from "./index.es80.js";
|
|
2
|
+
import "./index.es81.js";
|
|
3
3
|
function l(t) {
|
|
4
4
|
return a({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.6.6 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.6.6 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.6.6 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535z" }, child: [] }, { tag: "path", attr: { d: "m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.6.6 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0z" }, child: [] }] })(t);
|
|
5
5
|
}
|
package/dist/index.es34.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenIcon as o } from "./index.
|
|
2
|
-
import "./index.
|
|
1
|
+
import { GenIcon as o } from "./index.es80.js";
|
|
2
|
+
import "./index.es81.js";
|
|
3
3
|
function e(t) {
|
|
4
4
|
return o({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M416 128 192 384l-96-96" }, child: [] }] })(t);
|
|
5
5
|
}
|
package/dist/index.es38.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { supportsDataView as e } from "./index.es36.js";
|
|
2
|
-
import a from "./index.
|
|
2
|
+
import a from "./index.es238.js";
|
|
3
3
|
var i = e && (!/\[native code\]/.test(String(DataView)) || a(new DataView(new ArrayBuffer(8)))), o = typeof Map < "u" && a(/* @__PURE__ */ new Map());
|
|
4
4
|
export {
|
|
5
5
|
i as hasDataViewBug,
|