@performant-software/geospatial 3.0.6-beta.0 → 3.0.6-beta.10
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.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +4 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs214.js.map +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs215.js.map +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs216.js.map +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs221.js +1 -4
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs223.js.map +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs224.js.map +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs225.js.map +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs227.js.map +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs229.js.map +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs230.js.map +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs231.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs232.js.map +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs30.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.cjs35.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs5.js.map +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +9 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +19 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +1 -9
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -19
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es101.js +3 -3
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +2 -2
- package/dist/index.es104.js +1 -1
- package/dist/index.es109.js +1 -1
- package/dist/index.es110.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es115.js +2 -2
- package/dist/index.es116.js +2 -2
- package/dist/index.es117.js +1 -1
- package/dist/index.es121.js +2 -2
- package/dist/index.es124.js +1 -1
- package/dist/index.es128.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es139.js +1 -1
- package/dist/index.es14.js +2 -2
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +2 -2
- package/dist/index.es143.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es145.js +1 -1
- package/dist/index.es147.js +2 -2
- package/dist/index.es148.js +2 -2
- package/dist/index.es149.js +1 -1
- package/dist/index.es150.js +1 -1
- package/dist/index.es151.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +2 -2
- package/dist/index.es154.js +2 -2
- package/dist/index.es155.js +1 -1
- package/dist/index.es158.js +2 -2
- package/dist/index.es159.js +2 -2
- package/dist/index.es161.js +2 -2
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +2 -2
- package/dist/index.es164.js +1 -1
- package/dist/index.es165.js +2 -2
- package/dist/index.es166.js +1 -1
- package/dist/index.es167.js +1 -1
- package/dist/index.es168.js +1 -1
- package/dist/index.es17.js +3 -3
- package/dist/index.es174.js +1 -1
- package/dist/index.es175.js +2 -2
- package/dist/index.es176.js +1 -1
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es181.js +1 -1
- package/dist/index.es19.js +2 -2
- package/dist/index.es191.js +2 -8
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +7 -4
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +148 -4
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +12197 -3
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +3 -5
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +3 -11
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +34 -20
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +3 -24
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +21 -12
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es200.js +2 -19
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +3 -8
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +2 -11
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +31 -6
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +13 -22
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +13 -9
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +9 -9
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +8 -4
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +4 -10
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +4 -9
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es210.js +3 -23
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +3 -12
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +8 -18
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +22 -4
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +19 -15
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +12 -10
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +16 -3
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +5 -4
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +9 -2
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +6 -7
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es220.js +20 -146
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +9 -12196
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +11 -3
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +6 -3
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +10 -35
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +11 -3
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +22 -22
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +14 -2
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +21 -3
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +6 -2
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es230.js +16 -30
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +12 -13
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +3 -13
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +4 -8
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es236.js +1 -1
- package/dist/index.es240.js +1 -1
- package/dist/index.es243.js +1 -1
- package/dist/index.es249.js +2 -2
- package/dist/index.es25.js +1 -1
- package/dist/index.es250.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es254.js +1 -1
- package/dist/index.es255.js +1 -1
- package/dist/index.es258.js +15 -70
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es260.js +70 -15
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es27.js +2 -2
- package/dist/index.es29.js +2 -2
- package/dist/index.es30.js +2 -2
- package/dist/index.es31.js +2 -2
- package/dist/index.es33.js +1 -1
- package/dist/index.es34.js +2 -2
- package/dist/index.es35.js +2 -2
- package/dist/index.es37.js +1 -1
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es43.js +2 -2
- package/dist/index.es44.js +3 -3
- package/dist/index.es45.js +1 -1
- package/dist/index.es47.js +1 -1
- package/dist/index.es48.js +1 -1
- package/dist/index.es5.js +7 -6
- package/dist/index.es5.js.map +1 -1
- package/dist/index.es50.js +1 -1
- package/dist/index.es57.js +1 -1
- package/dist/index.es59.js +15 -15
- package/dist/index.es60.js +2 -6
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +30 -2
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +602 -2
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +5 -29
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +2 -602
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es67.js +2 -2
- package/dist/index.es80.js +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es89.js +1 -1
- package/dist/index.es90.js +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es98.js +1 -1
- package/dist/index.es99.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/LayerMenu.js +2 -1
- package/types/components/LayerMenu.js.flow +2 -1
package/dist/index.es258.js
CHANGED
|
@@ -1,74 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
polygonEnd: function() {
|
|
17
|
-
r.point = y, r.lineStart = x, r.lineEnd = s, f = G(f);
|
|
18
|
-
var o = F(a, j);
|
|
19
|
-
f.length ? (l || (n.polygonStart(), l = !0), D(f, J, o, m, n)) : o && (l || (n.polygonStart(), l = !0), n.lineStart(), m(null, null, 1, n), n.lineEnd()), l && (n.polygonEnd(), l = !1), f = a = null;
|
|
20
|
-
},
|
|
21
|
-
sphere: function() {
|
|
22
|
-
n.polygonStart(), n.lineStart(), m(null, null, 1, n), n.lineEnd(), n.polygonEnd();
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
function y(o, t) {
|
|
26
|
-
var i = g(o, t);
|
|
27
|
-
e(o = i[0], t = i[1]) && n.point(o, t);
|
|
28
|
-
}
|
|
29
|
-
function q(o, t) {
|
|
30
|
-
var i = g(o, t);
|
|
31
|
-
d.point(i[0], i[1]);
|
|
32
|
-
}
|
|
33
|
-
function x() {
|
|
34
|
-
r.point = q, d.lineStart();
|
|
35
|
-
}
|
|
36
|
-
function s() {
|
|
37
|
-
r.point = y, d.lineEnd();
|
|
38
|
-
}
|
|
39
|
-
function B(o, t) {
|
|
40
|
-
u.push([o, t]);
|
|
41
|
-
var i = g(o, t);
|
|
42
|
-
c.point(i[0], i[1]);
|
|
43
|
-
}
|
|
44
|
-
function w() {
|
|
45
|
-
c.lineStart(), u = [];
|
|
46
|
-
}
|
|
47
|
-
function z() {
|
|
48
|
-
B(u[0][0], u[0][1]), c.lineEnd();
|
|
49
|
-
var o = c.clean(), t = h.result(), i, I = t.length, P, E, C;
|
|
50
|
-
if (u.pop(), a.push(u), u = null, !!I) {
|
|
51
|
-
if (o & 1) {
|
|
52
|
-
if (E = t[0], (P = E.length - 1) > 0) {
|
|
53
|
-
for (l || (n.polygonStart(), l = !0), n.lineStart(), i = 0; i < P; ++i)
|
|
54
|
-
n.point((C = E[i])[0], C[1]);
|
|
55
|
-
n.lineEnd();
|
|
56
|
-
}
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
I > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(H));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return r;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function H(e) {
|
|
66
|
-
return e.length > 1;
|
|
67
|
-
}
|
|
68
|
-
function J(e, p) {
|
|
69
|
-
return ((e = e.x)[0] < 0 ? e[1] - S - R : S - e[1]) - ((p = p.x)[0] < 0 ? p[1] - S - R : S - p[1]);
|
|
1
|
+
import r from "./index.es257.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);
|
|
70
15
|
}
|
|
71
16
|
export {
|
|
72
|
-
|
|
17
|
+
d as default
|
|
73
18
|
};
|
|
74
19
|
//# 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/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;AACb,QAAAC,IAAS,CAAC,CAACP,GAAIC,CAAE,GAAG,CAACC,GAAIC,CAAE,CAAC;AAC3B,WAAAD,IAAAC,IAAK,EAAEF,IAAKD,IAAK,QACfO;AAAA,EACT;AACF;AAEA,SAASF,EAAYG,GAAGC,GAAG;AACzB,EAAID,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM,IACbC,IAAIR,MAASA,IAAAQ,IACbA,IAAIN,MAASA,IAAAM;AACnB;","x_google_ignoreList":[0]}
|
package/dist/index.es260.js
CHANGED
|
@@ -1,19 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var n = [[
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
|
|
1
|
+
import A from "./index.es244.js";
|
|
2
|
+
import D from "./index.es246.js";
|
|
3
|
+
import { halfPi as S, epsilon as R } from "./index.es242.js";
|
|
4
|
+
import F from "./index.es199.js";
|
|
5
|
+
import "./index.es198.js";
|
|
6
|
+
import G from "./index.es247.js";
|
|
7
|
+
function T(e, p, m, v) {
|
|
8
|
+
return function(g, n) {
|
|
9
|
+
var d = p(n), j = g.invert(v[0], v[1]), h = A(), c = p(h), l = !1, a, f, u, r = {
|
|
10
|
+
point: y,
|
|
11
|
+
lineStart: x,
|
|
12
|
+
lineEnd: s,
|
|
13
|
+
polygonStart: function() {
|
|
14
|
+
r.point = B, r.lineStart = w, r.lineEnd = z, f = [], a = [];
|
|
15
|
+
},
|
|
16
|
+
polygonEnd: function() {
|
|
17
|
+
r.point = y, r.lineStart = x, r.lineEnd = s, f = G(f);
|
|
18
|
+
var o = F(a, j);
|
|
19
|
+
f.length ? (l || (n.polygonStart(), l = !0), D(f, J, o, m, n)) : o && (l || (n.polygonStart(), l = !0), n.lineStart(), m(null, null, 1, n), n.lineEnd()), l && (n.polygonEnd(), l = !1), f = a = null;
|
|
20
|
+
},
|
|
21
|
+
sphere: function() {
|
|
22
|
+
n.polygonStart(), n.lineStart(), m(null, null, 1, n), n.lineEnd(), n.polygonEnd();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function y(o, t) {
|
|
26
|
+
var i = g(o, t);
|
|
27
|
+
e(o = i[0], t = i[1]) && n.point(o, t);
|
|
28
|
+
}
|
|
29
|
+
function q(o, t) {
|
|
30
|
+
var i = g(o, t);
|
|
31
|
+
d.point(i[0], i[1]);
|
|
32
|
+
}
|
|
33
|
+
function x() {
|
|
34
|
+
r.point = q, d.lineStart();
|
|
35
|
+
}
|
|
36
|
+
function s() {
|
|
37
|
+
r.point = y, d.lineEnd();
|
|
38
|
+
}
|
|
39
|
+
function B(o, t) {
|
|
40
|
+
u.push([o, t]);
|
|
41
|
+
var i = g(o, t);
|
|
42
|
+
c.point(i[0], i[1]);
|
|
43
|
+
}
|
|
44
|
+
function w() {
|
|
45
|
+
c.lineStart(), u = [];
|
|
46
|
+
}
|
|
47
|
+
function z() {
|
|
48
|
+
B(u[0][0], u[0][1]), c.lineEnd();
|
|
49
|
+
var o = c.clean(), t = h.result(), i, I = t.length, P, E, C;
|
|
50
|
+
if (u.pop(), a.push(u), u = null, !!I) {
|
|
51
|
+
if (o & 1) {
|
|
52
|
+
if (E = t[0], (P = E.length - 1) > 0) {
|
|
53
|
+
for (l || (n.polygonStart(), l = !0), n.lineStart(), i = 0; i < P; ++i)
|
|
54
|
+
n.point((C = E[i])[0], C[1]);
|
|
55
|
+
n.lineEnd();
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
I > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(H));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return r;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function H(e) {
|
|
66
|
+
return e.length > 1;
|
|
67
|
+
}
|
|
68
|
+
function J(e, p) {
|
|
69
|
+
return ((e = e.x)[0] < 0 ? e[1] - S - R : S - e[1]) - ((p = p.x)[0] < 0 ? p[1] - S - R : S - p[1]);
|
|
15
70
|
}
|
|
16
71
|
export {
|
|
17
|
-
|
|
72
|
+
T as default
|
|
18
73
|
};
|
|
19
74
|
//# sourceMappingURL=index.es260.js.map
|
package/dist/index.es260.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es260.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es260.js","sources":["../../../node_modules/d3-geo/src/clip/index.js"],"sourcesContent":["import clipBuffer from \"./buffer\";\nimport clipPolygon from \"./polygon\";\nimport {epsilon, halfPi} from \"../math\";\nimport polygonContains from \"../polygonContains\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(rotate, sink) {\n var line = clipLine(sink),\n rotatedStart = rotate.invert(start[0], start[1]),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, rotatedStart);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipPolygon(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n var point = rotate(lambda, phi);\n if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n var point = rotate(lambda, phi);\n line.point(point[0], point[1]);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n var point = rotate(lambda, phi);\n ringSink.point(point[0], point[1]);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n"],"names":["clip","pointVisible","clipLine","interpolate","start","rotate","sink","line","rotatedStart","ringBuffer","clipBuffer","ringSink","polygonStarted","polygon","segments","ring","point","lineStart","lineEnd","pointRing","ringStart","ringEnd","merge","startInside","polygonContains","clipPolygon","compareIntersection","lambda","phi","pointLine","clean","ringSegments","n","m","segment","validSegment","a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I2B,GAAG,EAAE;AAAQ,cAAA3B,EAAA,OAAOU,IAAQkB,EAAQ,CAAC,GAAG,CAAC,GAAGlB,EAAM,CAAC,CAAC;AACpE,YAAAV,EAAK,QAAQ;AAAA,UACf;AACA;AAAA,QACF;AAII,QAAA0B,IAAI,KAAKF,IAAQ,KAAgBC,EAAA,KAAKA,EAAa,IAAI,EAAE,OAAOA,EAAa,MAAO,CAAA,CAAC,GAEzFjB,EAAS,KAAKiB,EAAa,OAAOI,CAAY,CAAC;AAAA;AAAA,IACjD;AAEO,WAAAnC;AAAA,EAAA;AAEX;AAEA,SAASmC,EAAaD,GAAS;AAC7B,SAAOA,EAAQ,SAAS;AAC1B;AAIA,SAASR,EAAoBU,GAAGC,GAAG;AACjC,WAASD,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIE,IAASC,IAAUD,IAASF,EAAE,CAAC,OACxDC,IAAIA,EAAE,GAAG,CAAC,IAAI,IAAIA,EAAE,CAAC,IAAIC,IAASC,IAAUD,IAASD,EAAE,CAAC;AACnE;","x_google_ignoreList":[0]}
|
package/dist/index.es27.js
CHANGED
package/dist/index.es29.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import r from "./index.
|
|
1
|
+
import r from "./index.es207.js";
|
|
2
2
|
import { isIE11 as t } from "./index.es26.js";
|
|
3
|
-
import { ie11fingerprint as o, mapMethods as i } from "./index.
|
|
3
|
+
import { ie11fingerprint as o, mapMethods as i } from "./index.es213.js";
|
|
4
4
|
const a = t ? o(i) : r("Map");
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
package/dist/index.es30.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from "./index.
|
|
1
|
+
import e from "./index.es207.js";
|
|
2
2
|
import { isIE11 as r } from "./index.es26.js";
|
|
3
|
-
import { ie11fingerprint as t, weakMapMethods as a } from "./index.
|
|
3
|
+
import { ie11fingerprint as t, weakMapMethods as a } from "./index.es213.js";
|
|
4
4
|
const m = r ? t(a) : e("WeakMap");
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
package/dist/index.es31.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import t from "./index.
|
|
1
|
+
import t from "./index.es207.js";
|
|
2
2
|
import { isIE11 as e } from "./index.es26.js";
|
|
3
|
-
import { ie11fingerprint as r, setMethods as o } from "./index.
|
|
3
|
+
import { ie11fingerprint as r, setMethods as o } from "./index.es213.js";
|
|
4
4
|
const f = e ? r(o) : t("Set");
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
package/dist/index.es33.js
CHANGED
package/dist/index.es34.js
CHANGED
package/dist/index.es35.js
CHANGED
package/dist/index.es37.js
CHANGED
package/dist/index.es38.js
CHANGED
package/dist/index.es39.js
CHANGED
package/dist/index.es43.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import u from "./index.es81.js";
|
|
2
2
|
import l from "./index.es25.js";
|
|
3
3
|
import t from "./index.es148.js";
|
|
4
|
-
import s from "./index.
|
|
5
|
-
import d from "./index.
|
|
4
|
+
import s from "./index.es218.js";
|
|
5
|
+
import d from "./index.es217.js";
|
|
6
6
|
const k = u(function(f, r, m) {
|
|
7
7
|
var e, n;
|
|
8
8
|
return l(r) ? n = r : (r = d(r), e = r.slice(0, -1), r = r[r.length - 1]), t(f, function(i) {
|
package/dist/index.es44.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import l from "./index.es81.js";
|
|
2
2
|
import a from "./index.es25.js";
|
|
3
|
-
import p from "./index.
|
|
3
|
+
import p from "./index.es220.js";
|
|
4
4
|
import u from "./index.es104.js";
|
|
5
|
-
import c from "./index.
|
|
6
|
-
import g from "./index.
|
|
5
|
+
import c from "./index.es232.js";
|
|
6
|
+
import g from "./index.es226.js";
|
|
7
7
|
const z = l(function(t, r) {
|
|
8
8
|
var i = {}, f = r[0];
|
|
9
9
|
if (t == null)
|
package/dist/index.es45.js
CHANGED
|
@@ -2,7 +2,7 @@ import n from "./index.es81.js";
|
|
|
2
2
|
import f from "./index.es25.js";
|
|
3
3
|
import e from "./index.es135.js";
|
|
4
4
|
import a from "./index.es148.js";
|
|
5
|
-
import p from "./index.
|
|
5
|
+
import p from "./index.es226.js";
|
|
6
6
|
import u from "./index.es155.js";
|
|
7
7
|
import c from "./index.es44.js";
|
|
8
8
|
const F = n(function(i, t) {
|
package/dist/index.es47.js
CHANGED
package/dist/index.es48.js
CHANGED
package/dist/index.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as i } from "./index.es17.js";
|
|
2
|
-
import { useState as l, useRef as
|
|
3
|
-
import { BsStack as
|
|
2
|
+
import { useState as l, useRef as N, useCallback as c, useMemo as h, Children as k, useEffect as f } from "react";
|
|
3
|
+
import { BsStack as x } from "./index.es21.js";
|
|
4
4
|
import { IoCheckmarkOutline as C } from "./index.es22.js";
|
|
5
5
|
import s from "./index.es23.js";
|
|
6
6
|
import "./index.es24.js";
|
|
@@ -33,7 +33,7 @@ import "./index.es50.js";
|
|
|
33
33
|
import M from "./index.es7.js";
|
|
34
34
|
import "./index.es51.js";
|
|
35
35
|
const _ = 30, w = (o) => {
|
|
36
|
-
const [d, b] = l(0), [m, p] = l(), [g, j] = l(!1), a =
|
|
36
|
+
const [d, b] = l(0), [m, p] = l(), [g, j] = l(!1), a = N(), v = c((t) => o.names && o.names.length > t && o.names[t], [o.names]), r = c((t) => s.includes(m, t), [m]), n = h(() => k.toArray(o.children), [o.children]), y = h(() => s.filter(n, (t, e) => r(e)), [n, r]), u = c((t) => {
|
|
37
37
|
let e;
|
|
38
38
|
r(t) ? e = s.without(m, t) : e = [...m, t], p(e);
|
|
39
39
|
}, [r, m]);
|
|
@@ -60,7 +60,7 @@ const _ = 30, w = (o) => {
|
|
|
60
60
|
onClick: () => j((t) => !t),
|
|
61
61
|
type: "button",
|
|
62
62
|
children: /* @__PURE__ */ i.jsx(
|
|
63
|
-
|
|
63
|
+
x,
|
|
64
64
|
{
|
|
65
65
|
size: "1.25em"
|
|
66
66
|
}
|
|
@@ -83,9 +83,9 @@ const _ = 30, w = (o) => {
|
|
|
83
83
|
{
|
|
84
84
|
"aria-selected": r(e),
|
|
85
85
|
className: "option",
|
|
86
|
-
role: "option",
|
|
87
86
|
onClick: () => u(e),
|
|
88
87
|
onKeyDown: () => u(e),
|
|
88
|
+
role: "option",
|
|
89
89
|
tabIndex: e,
|
|
90
90
|
children: [
|
|
91
91
|
/* @__PURE__ */ i.jsx(
|
|
@@ -102,7 +102,8 @@ const _ = 30, w = (o) => {
|
|
|
102
102
|
),
|
|
103
103
|
v(e)
|
|
104
104
|
]
|
|
105
|
-
}
|
|
105
|
+
},
|
|
106
|
+
e
|
|
106
107
|
))
|
|
107
108
|
}
|
|
108
109
|
)
|
package/dist/index.es5.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es5.js","sources":["../src/components/LayerMenu.js"],"sourcesContent":["// @flow\n\nimport React, {\n Children,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { BsStack } from 'react-icons/bs';\nimport { IoCheckmarkOutline } from 'react-icons/io5';\nimport _ from 'underscore';\nimport MapControl from './MapControl';\nimport './LayerMenu.css';\n\ntype Props = {\n children: Node,\n className?: string,\n names: Array<string>,\n position: 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right'\n};\n\nconst MENU_PADDING = 30;\n\nconst LayerMenu = (props: Props) => {\n const [canvasHeight, setCanvasHeight] = useState(0);\n const [visible, setVisible] = useState();\n const [menuOpen, setMenuOpen] = useState(false);\n\n const mapRef = useRef();\n\n /**\n * Returns the name of the layer at the passed index.\n *\n * @type {unknown}\n */\n const getLayerName = useCallback((index) => (\n props.names && props.names.length > index && props.names[index]\n ), [props.names]);\n\n /**\n * Returns true if the child element at the passed index is visible.\n *\n * @type {function(*): *}\n */\n const isVisible = useCallback((index) => _.includes(visible, index), [visible]);\n\n /**\n * Returns a memoized array of the child elements.\n *\n * @type {Array<$NonMaybeType<unknown>>}\n */\n const children = useMemo(() => Children.toArray(props.children), [props.children]);\n\n /**\n * Returns a memoized array of visible child elements.\n */\n const visibleChildren = useMemo(() => _.filter(children, (child, index) => isVisible(index)), [children, isVisible]);\n\n /**\n * Toggles the visibility for the child element at the passed index.\n *\n * @type {(function(*): void)|*}\n */\n const toggleVisibility = useCallback((index) => {\n let value;\n\n if (isVisible(index)) {\n value = _.without(visible, index);\n } else {\n value = [...visible, index];\n }\n\n setVisible(value);\n }, [isVisible, visible]);\n\n /**\n * Sets all of the child elements to be visible when the component mounts.\n */\n useEffect(() => {\n setVisible(_.times(children.length, (index) => index));\n }, []);\n\n /**\n * Sets the map canvas height.\n */\n useEffect(() => {\n const { current: instance } = mapRef;\n\n if (instance && instance._canvas) {\n const { offsetHeight = 0 } = mapRef.current._canvas;\n setCanvasHeight(offsetHeight);\n }\n }, [mapRef.current]);\n\n if (_.isEmpty(children)) {\n return null;\n }\n\n return (\n <>\n <MapControl\n mapRef={mapRef}\n position={props.position}\n >\n <button\n aria-label='Toggle Menu'\n className={props.className || 'mapbox-gl-draw_ctrl-draw-btn layer-button'}\n onClick={() => setMenuOpen((prevMenuOpen) => !prevMenuOpen)}\n type='button'\n >\n <BsStack\n size='1.25em'\n />\n </button>\n { menuOpen && (\n <div\n className='layer-menu'\n style={{\n maxHeight: `calc(${canvasHeight}px - ${MENU_PADDING}px)`\n }}\n >\n <div\n className='menu'\n >\n { _.map(children, (child, index) => (\n <div\n aria-selected={isVisible(index)}\n className='option'\n
|
|
1
|
+
{"version":3,"file":"index.es5.js","sources":["../src/components/LayerMenu.js"],"sourcesContent":["// @flow\n\nimport React, {\n Children,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { BsStack } from 'react-icons/bs';\nimport { IoCheckmarkOutline } from 'react-icons/io5';\nimport _ from 'underscore';\nimport MapControl from './MapControl';\nimport './LayerMenu.css';\n\ntype Props = {\n children: Node,\n className?: string,\n names: Array<string>,\n position: 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right'\n};\n\nconst MENU_PADDING = 30;\n\nconst LayerMenu = (props: Props) => {\n const [canvasHeight, setCanvasHeight] = useState(0);\n const [visible, setVisible] = useState();\n const [menuOpen, setMenuOpen] = useState(false);\n\n const mapRef = useRef();\n\n /**\n * Returns the name of the layer at the passed index.\n *\n * @type {unknown}\n */\n const getLayerName = useCallback((index) => (\n props.names && props.names.length > index && props.names[index]\n ), [props.names]);\n\n /**\n * Returns true if the child element at the passed index is visible.\n *\n * @type {function(*): *}\n */\n const isVisible = useCallback((index) => _.includes(visible, index), [visible]);\n\n /**\n * Returns a memoized array of the child elements.\n *\n * @type {Array<$NonMaybeType<unknown>>}\n */\n const children = useMemo(() => Children.toArray(props.children), [props.children]);\n\n /**\n * Returns a memoized array of visible child elements.\n */\n const visibleChildren = useMemo(() => _.filter(children, (child, index) => isVisible(index)), [children, isVisible]);\n\n /**\n * Toggles the visibility for the child element at the passed index.\n *\n * @type {(function(*): void)|*}\n */\n const toggleVisibility = useCallback((index) => {\n let value;\n\n if (isVisible(index)) {\n value = _.without(visible, index);\n } else {\n value = [...visible, index];\n }\n\n setVisible(value);\n }, [isVisible, visible]);\n\n /**\n * Sets all of the child elements to be visible when the component mounts.\n */\n useEffect(() => {\n setVisible(_.times(children.length, (index) => index));\n }, []);\n\n /**\n * Sets the map canvas height.\n */\n useEffect(() => {\n const { current: instance } = mapRef;\n\n if (instance && instance._canvas) {\n const { offsetHeight = 0 } = mapRef.current._canvas;\n setCanvasHeight(offsetHeight);\n }\n }, [mapRef.current]);\n\n if (_.isEmpty(children)) {\n return null;\n }\n\n return (\n <>\n <MapControl\n mapRef={mapRef}\n position={props.position}\n >\n <button\n aria-label='Toggle Menu'\n className={props.className || 'mapbox-gl-draw_ctrl-draw-btn layer-button'}\n onClick={() => setMenuOpen((prevMenuOpen) => !prevMenuOpen)}\n type='button'\n >\n <BsStack\n size='1.25em'\n />\n </button>\n { menuOpen && (\n <div\n className='layer-menu'\n style={{\n maxHeight: `calc(${canvasHeight}px - ${MENU_PADDING}px)`\n }}\n >\n <div\n className='menu'\n >\n { _.map(children, (child, index) => (\n <div\n aria-selected={isVisible(index)}\n className='option'\n key={index}\n onClick={() => toggleVisibility(index)}\n onKeyDown={() => toggleVisibility(index)}\n role='option'\n tabIndex={index}\n >\n <div\n className='checkmark-container'\n >\n { isVisible(index) && (\n <IoCheckmarkOutline\n size='1em'\n />\n )}\n </div>\n { getLayerName(index) }\n </div>\n ))}\n </div>\n </div>\n )}\n </MapControl>\n { visibleChildren }\n </>\n );\n};\n\nLayerMenu.defaultProps = {\n position: 'top-left'\n};\n\nexport default LayerMenu;\n"],"names":["MENU_PADDING","LayerMenu","props","canvasHeight","setCanvasHeight","useState","visible","setVisible","menuOpen","setMenuOpen","mapRef","useRef","getLayerName","useCallback","index","isVisible","_","children","useMemo","Children","visibleChildren","child","toggleVisibility","value","useEffect","instance","offsetHeight","jsxs","Fragment","MapControl","jsx","prevMenuOpen","BsStack","IoCheckmarkOutline"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,IAAe,IAEfC,IAAY,CAACC,MAAiB;AAClC,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAS,CAAC,GAC5C,CAACC,GAASC,CAAU,IAAIF,EAAS,GACjC,CAACG,GAAUC,CAAW,IAAIJ,EAAS,EAAK,GAExCK,IAASC,KAOTC,IAAeC,EAAY,CAACC,MAChCZ,EAAM,SAASA,EAAM,MAAM,SAASY,KAASZ,EAAM,MAAMY,CAAK,GAC7D,CAACZ,EAAM,KAAK,CAAC,GAOVa,IAAYF,EAAY,CAACC,MAAUE,EAAE,SAASV,GAASQ,CAAK,GAAG,CAACR,CAAO,CAAC,GAOxEW,IAAWC,EAAQ,MAAMC,EAAS,QAAQjB,EAAM,QAAQ,GAAG,CAACA,EAAM,QAAQ,CAAC,GAK3EkB,IAAkBF,EAAQ,MAAM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AA;AAAA,cACC,WAAU;AAAA,cACV,OAAO;AAAA,gBACL,WAAW,QAAQ3B,CAAY,QAAQH,CAAY;AAAA,cACrD;AAAA,cAEA,UAAA8B,gBAAAA,EAAA;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,WAAU;AAAA,kBAER,UAAEd,EAAA,IAAIC,GAAU,CAACI,GAAOP,MACxBa,gBAAAA,EAAA;AAAA,oBAAC;AAAA,oBAAA;AAAA,sBACC,iBAAeZ,EAAUD,CAAK;AAAA,sBAC9B,WAAU;AAAA,sBAEV,SAAS,MAAMQ,EAAiBR,CAAK;AAAA,sBACrC,WAAW,MAAMQ,EAAiBR,CAAK;AAAA,sBACvC,MAAK;AAAA,sBACL,UAAUA;AAAA,sBAEV,UAAA;AAAA,wBAAAgB,gBAAAA,EAAA;AAAA,0BAAC;AAAA,0BAAA;AAAA,4BACC,WAAU;AAAA,4BAER,UAAAf,EAAUD,CAAK,KACfgB,gBAAAA,EAAA;AAAA,8BAACG;AAAA,8BAAA;AAAA,gCACC,MAAK;AAAA,8BAAA;AAAA,4BACP;AAAA,0BAAA;AAAA,wBAEJ;AAAA,wBACErB,EAAaE,CAAK;AAAA,sBAAA;AAAA,oBAAA;AAAA,oBAffA;AAAA,kBAAA,CAiBR;AAAA,gBAAA;AAAA,cACH;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAEJ;AAAA,IACEM;AAAA,EACJ,EAAA,CAAA;AAEJ;AAEAnB,EAAU,eAAe;AAAA,EACvB,UAAU;AACZ;"}
|
package/dist/index.es50.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i from "./index.es28.js";
|
|
2
2
|
import p from "./index.es147.js";
|
|
3
3
|
import { ArrayProto as e } from "./index.es24.js";
|
|
4
|
-
import s from "./index.
|
|
4
|
+
import s from "./index.es233.js";
|
|
5
5
|
p(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(r) {
|
|
6
6
|
var o = e[r];
|
|
7
7
|
i.prototype[r] = function() {
|
package/dist/index.es57.js
CHANGED
package/dist/index.es59.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import O from "./index.
|
|
2
|
-
import { GeoJSONReader as q, BufferOp as A, GeoJSONWriter as F } from "./index.
|
|
3
|
-
import { featureEach as v, geomEach as d } from "./index.
|
|
4
|
-
import "./index.
|
|
5
|
-
import "./index.
|
|
6
|
-
import "./index.
|
|
7
|
-
import "./index.
|
|
8
|
-
import "./index.
|
|
9
|
-
import "./index.
|
|
10
|
-
import "./index.
|
|
11
|
-
import "./index.
|
|
12
|
-
import "./index.
|
|
13
|
-
import "./index.
|
|
14
|
-
import R from "./index.
|
|
15
|
-
import "./index.
|
|
1
|
+
import O from "./index.es192.js";
|
|
2
|
+
import { GeoJSONReader as q, BufferOp as A, GeoJSONWriter as F } from "./index.es194.js";
|
|
3
|
+
import { featureEach as v, geomEach as d } from "./index.es193.js";
|
|
4
|
+
import "./index.es195.js";
|
|
5
|
+
import "./index.es196.js";
|
|
6
|
+
import "./index.es197.js";
|
|
7
|
+
import "./index.es198.js";
|
|
8
|
+
import "./index.es199.js";
|
|
9
|
+
import "./index.es200.js";
|
|
10
|
+
import "./index.es201.js";
|
|
11
|
+
import "./index.es202.js";
|
|
12
|
+
import "./index.es203.js";
|
|
13
|
+
import "./index.es204.js";
|
|
14
|
+
import R from "./index.es205.js";
|
|
15
|
+
import "./index.es206.js";
|
|
16
16
|
import { featureCollection as c, radiansToLength as g, lengthToRadians as B, feature as J, earthRadius as S } from "./index.es55.js";
|
|
17
17
|
function Y(r, e, t) {
|
|
18
18
|
t = t || {};
|
package/dist/index.es60.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
function l(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
7
|
-
l as getDefaultExportFromCjs
|
|
3
|
+
e as __module
|
|
8
4
|
};
|
|
9
5
|
//# sourceMappingURL=index.es60.js.map
|
package/dist/index.es60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es60.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es60.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.es61.js
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as t } from "./index.es77.js";
|
|
2
|
+
import R from "react";
|
|
3
|
+
var p;
|
|
4
|
+
function v() {
|
|
5
|
+
if (p)
|
|
6
|
+
return t;
|
|
7
|
+
p = 1;
|
|
8
|
+
/**
|
|
9
|
+
* @license React
|
|
10
|
+
* react-jsx-runtime.production.min.js
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function u(o, r, i) {
|
|
19
|
+
var e, n = {}, _ = null, f = null;
|
|
20
|
+
i !== void 0 && (_ = "" + i), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
|
|
21
|
+
for (e in r)
|
|
22
|
+
c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]);
|
|
23
|
+
if (o && o.defaultProps)
|
|
24
|
+
for (e in r = o.defaultProps, r)
|
|
25
|
+
n[e] === void 0 && (n[e] = r[e]);
|
|
26
|
+
return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current };
|
|
27
|
+
}
|
|
28
|
+
return t.Fragment = l, t.jsx = u, t.jsxs = u, t;
|
|
29
|
+
}
|
|
2
30
|
export {
|
|
3
|
-
|
|
31
|
+
v as __require
|
|
4
32
|
};
|
|
5
33
|
//# sourceMappingURL=index.es61.js.map
|
package/dist/index.es61.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es61.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index.es61.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":["f","require$$0","k","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min"],"mappings":";;;;;;;EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASa,MAAIA,IAAEC,GAAiBC,IAAE,OAAO,IAAI,eAAe,GAAE,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEJ,EAAE,mDAAmD,mBAAkBK,IAAE,EAAC,KAAI,IAAG,KAAI,IAAG,QAAO,IAAG,UAAS,GAAE;AAClP,WAASC,EAAEC,GAAEC,GAAEC,GAAE;AAAC,QAAIC,GAAEC,IAAE,CAAG,GAAAC,IAAE,MAAKC,IAAE;AAAc,IAAAJ,MAAA,WAAIG,IAAE,KAAGH,IAAYD,EAAE,QAAX,WAAiBI,IAAE,KAAGJ,EAAE,MAAcA,EAAE,QAAF,WAAQK,IAAEL,EAAE;AAAK,SAAIE,KAAKF;AAAE,MAAAL,EAAE,KAAKK,GAAEE,CAAC,KAAG,CAACL,EAAE,eAAeK,CAAC,MAAIC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,QAAGH,KAAGA,EAAE;AAAiB,WAAAG,KAAKF,IAAED,EAAE,cAAaC;AAAE,QAASG,EAAED,CAAC,MAAZ,WAAgBC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,WAAM,EAAC,UAASR,GAAE,MAAKK,GAAE,KAAIK,GAAE,KAAIC,GAAE,OAAMF,GAAE,QAAOP,EAAE,QAAO;AAAA,EAAC;AAAkB,SAAAU,EAAA,WAAA,GAAcA,EAAA,MAAAR,GAAEQ,EAAA,OAAaR;;","x_google_ignoreList":[0]}
|