@performant-software/geospatial 3.0.6 → 3.0.7-beta.0
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.cjs15.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.cjs16.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.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.cjs182.js +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs19.js +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.cjs21.js +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.cjs22.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs221.js +1 -1
- 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.cjs236.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs254.js +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.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.cjs52.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +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.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- 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.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.es15.js +5 -5
- 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.es16.js +1 -1
- 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.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.es182.js +1 -1
- package/dist/index.es183.js +1 -1
- package/dist/index.es19.js +2 -2
- package/dist/index.es206.js +8 -2
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +4 -7
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +4 -5
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +3 -4
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +2 -2
- package/dist/index.es210.js +2 -2
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +9 -3
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +21 -8
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +20 -20
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +12 -20
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +15 -12
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +5 -16
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +8 -5
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +6 -8
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +21 -6
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es220.js +8 -20
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +9 -10
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +4 -9
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +11 -4
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +8 -10
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +22 -8
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +11 -22
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +16 -9
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +4 -19
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +18 -4
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es230.js +10 -16
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +3 -11
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +4 -3
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +2 -5
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es236.js +6 -4
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +1 -1
- package/dist/index.es238.js +4 -6
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es246.js +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es254.js +1 -1
- package/dist/index.es258.js +4 -15
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +15 -4
- package/dist/index.es259.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.es52.js +5 -5
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +106 -5
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +10 -2
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +6 -2
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +2 -107
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +2 -10
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +2 -55
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +4 -48
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +55 -37
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +47 -11
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +38 -14
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +11 -29
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +10 -10
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +29 -13
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +12 -10
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +14 -4
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +11 -2
- package/dist/index.es78.js.map +1 -1
- 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.es238.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es238.js","sources":["../../../node_modules/underscore/modules/
|
|
1
|
+
{"version":3,"file":"index.es238.js","sources":["../../../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"AACA,SAAwBA,EAAgBC,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAAOA,KAAO,OAAO,SAASA,EAAID,CAAG;AAAA,EAAA;AAEzC;","x_google_ignoreList":[0]}
|
package/dist/index.es246.js
CHANGED
package/dist/index.es25.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "./index.
|
|
1
|
+
import e from "./index.es206.js";
|
|
2
2
|
import { root as t } from "./index.es24.js";
|
|
3
3
|
var o = e("Function"), i = t.document && t.document.childNodes;
|
|
4
4
|
typeof /./ != "function" && typeof Int8Array != "object" && typeof i != "function" && (o = function(n) {
|
package/dist/index.es251.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cartesian as Q, cartesianCross as T, cartesianDot as R, cartesianScale as g, cartesianAddInPlace as y, spherical as U } from "./index.es241.js";
|
|
2
2
|
import { circleStream as $ } from "./index.es240.js";
|
|
3
3
|
import { pi as v, cos as F, epsilon as x, abs as G, sqrt as b } from "./index.es242.js";
|
|
4
|
-
import J from "./index.
|
|
4
|
+
import J from "./index.es258.js";
|
|
5
5
|
import m from "./index.es260.js";
|
|
6
6
|
function fn(S, V) {
|
|
7
7
|
var A = F(S), C = A > 0, W = G(A) > x;
|
package/dist/index.es254.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c from "./index.es256.js";
|
|
2
|
-
import n from "./index.
|
|
2
|
+
import n from "./index.es259.js";
|
|
3
3
|
function S(l, a, r) {
|
|
4
4
|
var f = a[1][0] - a[0][0], m = a[1][1] - a[0][1], i = l.clipExtent && l.clipExtent();
|
|
5
5
|
l.scale(150).translate([0, 0]), i != null && l.clipExtent(null), c(r, l.stream(n));
|
package/dist/index.es258.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.es242.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.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/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.es259.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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);
|
|
4
15
|
}
|
|
5
16
|
export {
|
|
6
|
-
|
|
17
|
+
d as default
|
|
7
18
|
};
|
|
8
19
|
//# sourceMappingURL=index.es259.js.map
|
package/dist/index.es259.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es259.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es259.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.es27.js
CHANGED
package/dist/index.es29.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import r from "./index.
|
|
1
|
+
import r from "./index.es206.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.es212.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.es206.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.es212.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.es206.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.es212.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.es217.js";
|
|
5
|
+
import d from "./index.es216.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.es219.js";
|
|
4
4
|
import u from "./index.es104.js";
|
|
5
|
-
import c from "./index.
|
|
6
|
-
import g from "./index.
|
|
5
|
+
import c from "./index.es231.js";
|
|
6
|
+
import g from "./index.es225.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.es225.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,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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.es232.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.es52.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import p from "./index.
|
|
3
|
-
import "./index.es69.js";
|
|
4
|
-
import "./index.es70.js";
|
|
2
|
+
import p from "./index.es70.js";
|
|
5
3
|
import "./index.es71.js";
|
|
6
|
-
import
|
|
4
|
+
import "./index.es72.js";
|
|
7
5
|
import "./index.es73.js";
|
|
8
|
-
import "./index.es74.js";
|
|
6
|
+
import i from "./index.es74.js";
|
|
9
7
|
import "./index.es75.js";
|
|
10
8
|
import "./index.es76.js";
|
|
9
|
+
import "./index.es77.js";
|
|
10
|
+
import "./index.es78.js";
|
|
11
11
|
const n = import("./index.es19.js").then((r) => r.o);
|
|
12
12
|
m.forwardRef(function(o, t) {
|
|
13
13
|
return p(o, t, n);
|
package/dist/index.es61.js
CHANGED
package/dist/index.es62.js
CHANGED
package/dist/index.es63.js
CHANGED
|
@@ -1,9 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import l from "react";
|
|
2
|
+
import { IconContext as s, DefaultContext as y } from "./index.es64.js";
|
|
3
|
+
var O = ["attr", "size", "title"];
|
|
4
|
+
function v(e, t) {
|
|
5
|
+
if (e == null)
|
|
6
|
+
return {};
|
|
7
|
+
var r = p(e, t), n, i;
|
|
8
|
+
if (Object.getOwnPropertySymbols) {
|
|
9
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
10
|
+
for (i = 0; i < o.length; i++)
|
|
11
|
+
n = o[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
12
|
+
}
|
|
13
|
+
return r;
|
|
14
|
+
}
|
|
15
|
+
function p(e, t) {
|
|
16
|
+
if (e == null)
|
|
17
|
+
return {};
|
|
18
|
+
var r = {}, n = Object.keys(e), i, o;
|
|
19
|
+
for (o = 0; o < n.length; o++)
|
|
20
|
+
i = n[o], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
|
|
21
|
+
return r;
|
|
22
|
+
}
|
|
23
|
+
function c() {
|
|
24
|
+
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
25
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
26
|
+
var r = arguments[t];
|
|
27
|
+
for (var n in r)
|
|
28
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
29
|
+
}
|
|
30
|
+
return e;
|
|
31
|
+
}, c.apply(this, arguments);
|
|
32
|
+
}
|
|
33
|
+
function m(e, t) {
|
|
34
|
+
var r = Object.keys(e);
|
|
35
|
+
if (Object.getOwnPropertySymbols) {
|
|
36
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
37
|
+
t && (n = n.filter(function(i) {
|
|
38
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
39
|
+
})), r.push.apply(r, n);
|
|
40
|
+
}
|
|
41
|
+
return r;
|
|
42
|
+
}
|
|
43
|
+
function u(e) {
|
|
44
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
45
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
46
|
+
t % 2 ? m(Object(r), !0).forEach(function(n) {
|
|
47
|
+
j(e, n, r[n]);
|
|
48
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : m(Object(r)).forEach(function(n) {
|
|
49
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return e;
|
|
53
|
+
}
|
|
54
|
+
function j(e, t, r) {
|
|
55
|
+
return t = P(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
56
|
+
}
|
|
57
|
+
function P(e) {
|
|
58
|
+
var t = h(e, "string");
|
|
59
|
+
return typeof t == "symbol" ? t : String(t);
|
|
60
|
+
}
|
|
61
|
+
function h(e, t) {
|
|
62
|
+
if (typeof e != "object" || e === null)
|
|
63
|
+
return e;
|
|
64
|
+
var r = e[Symbol.toPrimitive];
|
|
65
|
+
if (r !== void 0) {
|
|
66
|
+
var n = r.call(e, t || "default");
|
|
67
|
+
if (typeof n != "object")
|
|
68
|
+
return n;
|
|
69
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
|
+
}
|
|
71
|
+
return (t === "string" ? String : Number)(e);
|
|
72
|
+
}
|
|
73
|
+
function b(e) {
|
|
74
|
+
return e && e.map((t, r) => /* @__PURE__ */ l.createElement(t.tag, u({
|
|
75
|
+
key: r
|
|
76
|
+
}, t.attr), b(t.child)));
|
|
77
|
+
}
|
|
78
|
+
function _(e) {
|
|
79
|
+
return (t) => /* @__PURE__ */ l.createElement(d, c({
|
|
80
|
+
attr: u({}, e.attr)
|
|
81
|
+
}, t), b(e.child));
|
|
82
|
+
}
|
|
83
|
+
function d(e) {
|
|
84
|
+
var t = (r) => {
|
|
85
|
+
var {
|
|
86
|
+
attr: n,
|
|
87
|
+
size: i,
|
|
88
|
+
title: o
|
|
89
|
+
} = e, g = v(e, O), f = i || r.size || "1em", a;
|
|
90
|
+
return r.className && (a = r.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ l.createElement("svg", c({
|
|
91
|
+
stroke: "currentColor",
|
|
92
|
+
fill: "currentColor",
|
|
93
|
+
strokeWidth: "0"
|
|
94
|
+
}, r.attr, n, g, {
|
|
95
|
+
className: a,
|
|
96
|
+
style: u(u({
|
|
97
|
+
color: e.color || r.color
|
|
98
|
+
}, r.style), e.style),
|
|
99
|
+
height: f,
|
|
100
|
+
width: f,
|
|
101
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
102
|
+
}), o && /* @__PURE__ */ l.createElement("title", null, o), e.children);
|
|
103
|
+
};
|
|
104
|
+
return s !== void 0 ? /* @__PURE__ */ l.createElement(s.Consumer, null, (r) => t(r)) : t(y);
|
|
4
105
|
}
|
|
5
106
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
107
|
+
_ as GenIcon,
|
|
108
|
+
d as IconBase
|
|
8
109
|
};
|
|
9
110
|
//# sourceMappingURL=index.es63.js.map
|
package/dist/index.es63.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es63.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es63.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":";;AAAA,IAAIA,IAAY,CAAC,QAAQ,QAAQ,OAAO;AACxC,SAASC,EAAyBC,GAAQC,GAAU;AAAE,MAAID,KAAU;AAAM,WAAO;AAAI,MAAIE,IAASC,EAA8BH,GAAQC,CAAQ,GAAOG,GAAK;AAAG,MAAI,OAAO,uBAAuB;AAAE,QAAIC,IAAmB,OAAO,sBAAsBL,CAAM;AAAG,SAAK,IAAI,GAAG,IAAIK,EAAiB,QAAQ;AAAkC,MAA3BD,IAAMC,EAAiB,CAAC,GAAO,EAAAJ,EAAS,QAAQG,CAAG,KAAK,MAAkB,OAAO,UAAU,qBAAqB,KAAKJ,GAAQI,CAAG,MAAaF,EAAOE,CAAG,IAAIJ,EAAOI,CAAG;AAAA,EAAI;AAAG,SAAOF;AAAS;AAC5e,SAASC,EAA8BH,GAAQC,GAAU;AAAE,MAAID,KAAU;AAAM,WAAO,CAAE;AAAE,MAAIE,IAAS,CAAE,GAAMI,IAAa,OAAO,KAAKN,CAAM,GAAOI,GAAKG;AAAG,OAAKA,IAAI,GAAGA,IAAID,EAAW,QAAQC;AAA4B,IAArBH,IAAME,EAAWC,CAAC,GAAO,EAAAN,EAAS,QAAQG,CAAG,KAAK,OA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A,MACA,MAAAC;AAAA,MACA,MAAAC;AAAA,MACA,OAAAC;AAAA,IACR,IAAUN,GACJO,IAAWtC,EAAyB+B,GAAOhC,CAAS,GAClDwC,IAAeH,KAAQF,EAAK,QAAQ,OACpCM;AACJ,WAAIN,EAAK,cAAWM,IAAYN,EAAK,YACjCH,EAAM,cAAWS,KAAaA,IAAYA,IAAY,MAAM,MAAMT,EAAM,YACxDH,gBAAAA,EAAM,cAAc,OAAOnB,EAAS;AAAA,MACtD,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACd,GAAEyB,EAAK,MAAMC,GAAMG,GAAU;AAAA,MAC5B,WAAWE;AAAA,MACX,OAAO1B,EAAcA,EAAc;AAAA,QACjC,OAAOiB,EAAM,SAASG,EAAK;AAAA,MAC5B,GAAEA,EAAK,KAAK,GAAGH,EAAM,KAAK;AAAA,MAC3B,QAAQQ;AAAA,MACR,OAAOA;AAAA,MACP,OAAO;AAAA,IACb,CAAK,GAAGF,KAAsBT,gBAAAA,EAAM,cAAc,SAAS,MAAMS,CAAK,GAAGN,EAAM,QAAQ;AAAA,EACvF;AACE,SAAOU,MAAgB,SAAyBb,gBAAAA,EAAM,cAAca,EAAY,UAAU,MAAM,CAAAP,MAAQD,EAAKC,CAAI,CAAC,IAAID,EAAKS,CAAc;AAC3I;","x_google_ignoreList":[0]}
|
package/dist/index.es64.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
var t = {
|
|
3
|
+
color: void 0,
|
|
4
|
+
size: void 0,
|
|
5
|
+
className: void 0,
|
|
6
|
+
style: void 0,
|
|
7
|
+
attr: void 0
|
|
8
|
+
}, d = e.createContext && /* @__PURE__ */ e.createContext(t);
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
t as DefaultContext,
|
|
11
|
+
d as IconContext
|
|
4
12
|
};
|
|
5
13
|
//# sourceMappingURL=index.es64.js.map
|
package/dist/index.es64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es64.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index.es64.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":";AACU,IAACA,IAAiB;AAAA,EAC1B,OAAO;AAAA,EACP,MAAM;AAAA,EACN,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AACR,GACWC,IAAcC,EAAM,iBAA8BA,gBAAAA,EAAM,cAAcF,CAAc;","x_google_ignoreList":[0]}
|
package/dist/index.es65.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
4
8
|
};
|
|
5
9
|
//# sourceMappingURL=index.es65.js.map
|
package/dist/index.es65.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es65.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es65.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|