@performant-software/geospatial 2.3.8 → 2.3.9-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs190.js.map +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs192.js +4 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +1 -4
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +1 -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.cjs208.js +1 -1
- package/dist/index.cjs228.js +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.cjs237.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +8 -2
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +147 -7
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +12188 -139
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +3 -12199
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +1 -1
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +38 -3
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +3 -38
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +25 -3
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +2 -25
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +1 -0
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es200.js +0 -1
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +34 -2
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +13 -32
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +12 -11
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +8 -13
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +2 -9
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es208.js +1 -1
- package/dist/index.es228.js +1 -1
- package/dist/index.es236.js +8 -3
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +3 -8
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es239.js +1 -1
- package/dist/index.es242.js +1 -1
- package/dist/index.es245.js +1 -1
- package/dist/index.es248.js +2 -2
- package/dist/index.es250.js +1 -1
- package/dist/index.es253.js +1 -1
- package/dist/index.es254.js +1 -1
- package/dist/index.es257.js +4 -15
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +15 -4
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +2 -2
- package/dist/index.es26.js +1 -1
- package/dist/index.es56.js +1 -1
- package/dist/index.es58.js +6 -6
- package/dist/index.es6.js +5 -4
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es60.js +2 -2
- package/dist/index.es61.js +2 -2
- package/dist/index.es76.js +1 -1
- package/package.json +2 -2
- package/src/components/LocationMarkers.js +6 -0
- package/types/components/LocationMarkers.js.flow +6 -0
package/dist/index.cjs194.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs238.js");
|
|
1
|
+
"use strict";const e=require("./index.cjs238.js");require("./index.cjs193.js");e();
|
|
2
2
|
//# sourceMappingURL=index.cjs194.js.map
|
package/dist/index.cjs194.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs194.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs194.js","sources":["../../../node_modules/d3-geo/src/bounds.js"],"sourcesContent":["import adder from \"./adder\";\nimport {areaStream, areaRingSum} from \"./area\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace, spherical} from \"./cartesian\";\nimport {abs, degrees, epsilon, radians} from \"./math\";\nimport stream from \"./stream\";\n\nvar lambda0, phi0, lambda1, phi1, // bounds\n lambda2, // previous lambda-coordinate\n lambda00, phi00, // first point\n p0, // previous 3D point\n deltaSum = adder(),\n ranges,\n range;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: boundsLineStart,\n lineEnd: boundsLineEnd,\n polygonStart: function() {\n boundsStream.point = boundsRingPoint;\n boundsStream.lineStart = boundsRingStart;\n boundsStream.lineEnd = boundsRingEnd;\n deltaSum.reset();\n areaStream.polygonStart();\n },\n polygonEnd: function() {\n areaStream.polygonEnd();\n boundsStream.point = boundsPoint;\n boundsStream.lineStart = boundsLineStart;\n boundsStream.lineEnd = boundsLineEnd;\n if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n else if (deltaSum > epsilon) phi1 = 90;\n else if (deltaSum < -epsilon) phi0 = -90;\n range[0] = lambda0, range[1] = lambda1;\n }\n};\n\nfunction boundsPoint(lambda, phi) {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n}\n\nfunction linePoint(lambda, phi) {\n var p = cartesian([lambda * radians, phi * radians]);\n if (p0) {\n var normal = cartesianCross(p0, p),\n equatorial = [normal[1], -normal[0], 0],\n inflection = cartesianCross(equatorial, normal);\n cartesianNormalizeInPlace(inflection);\n inflection = spherical(inflection);\n var delta = lambda - lambda2,\n sign = delta > 0 ? 1 : -1,\n lambdai = inflection[0] * degrees * sign,\n phii,\n antimeridian = abs(delta) > 180;\n if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = inflection[1] * degrees;\n if (phii > phi1) phi1 = phii;\n } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = -inflection[1] * degrees;\n if (phii < phi0) phi0 = phii;\n } else {\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n }\n if (antimeridian) {\n if (lambda < lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n } else {\n if (lambda1 >= lambda0) {\n if (lambda < lambda0) lambda0 = lambda;\n if (lambda > lambda1) lambda1 = lambda;\n } else {\n if (lambda > lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n }\n }\n } else {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n }\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n p0 = p, lambda2 = lambda;\n}\n\nfunction boundsLineStart() {\n boundsStream.point = linePoint;\n}\n\nfunction boundsLineEnd() {\n range[0] = lambda0, range[1] = lambda1;\n boundsStream.point = boundsPoint;\n p0 = null;\n}\n\nfunction boundsRingPoint(lambda, phi) {\n if (p0) {\n var delta = lambda - lambda2;\n deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);\n } else {\n lambda00 = lambda, phi00 = phi;\n }\n areaStream.point(lambda, phi);\n linePoint(lambda, phi);\n}\n\nfunction boundsRingStart() {\n areaStream.lineStart();\n}\n\nfunction boundsRingEnd() {\n boundsRingPoint(lambda00, phi00);\n areaStream.lineEnd();\n if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);\n range[0] = lambda0, range[1] = lambda1;\n p0 = null;\n}\n\n// Finds the left-right distance between two longitudes.\n// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want\n// the distance between ±180° to be 360°.\nfunction angle(lambda0, lambda1) {\n return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;\n}\n\nfunction rangeCompare(a, b) {\n return a[0] - b[0];\n}\n\nfunction rangeContains(range, x) {\n return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\n}\n\nexport default function(feature) {\n var i, n, a, b, merged, deltaMax, delta;\n\n phi1 = lambda1 = -(lambda0 = phi0 = Infinity);\n ranges = [];\n stream(feature, boundsStream);\n\n // First, sort ranges by their minimum longitudes.\n if (n = ranges.length) {\n ranges.sort(rangeCompare);\n\n // Then, merge any ranges that overlap.\n for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {\n b = ranges[i];\n if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {\n if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\n if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\n } else {\n merged.push(a = b);\n }\n }\n\n // Finally, find the largest gap between the merged ranges.\n // The final bounding box will be the inverse of this gap.\n for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {\n b = merged[i];\n if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];\n }\n }\n\n ranges = range = null;\n\n return lambda0 === Infinity || phi0 === Infinity\n ? [[NaN, NaN], [NaN, NaN]]\n : [[lambda0, phi0], [lambda1, phi1]];\n}\n"],"names":["adder"],"mappings":"+EAUeA,EAAM","x_google_ignoreList":[0]}
|
package/dist/index.cjs195.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index.cjs251.js"),n=require("./index.cjs241.js");function R(o,t){return[o>n.pi?o-n.tau:o<-n.pi?o+n.tau:o,t]}R.invert=R;function P(o,t,r){return(o%=n.tau)?t||r?z(q(o),x(t,r)):q(o):t||r?x(t,r):R}function k(o){return function(t,r){return t+=o,[t>n.pi?t-n.tau:t<-n.pi?t+n.tau:t,r]}}function q(o){var t=k(o);return t.invert=k(-o),t}function x(o,t){var r=n.cos(o),y=n.sin(o),p=n.cos(t),D=n.sin(t);function g(i,s){var u=n.cos(s),c=n.cos(i)*u,e=n.sin(i)*u,f=n.sin(s),v=f*r+c*y;return[n.atan2(e*p-v*D,c*r-f*y),n.asin(v*p+e*D)]}return g.invert=function(i,s){var u=n.cos(s),c=n.cos(i)*u,e=n.sin(i)*u,f=n.sin(s),v=f*p-e*D;return[n.atan2(e*p+f*D,c*r+v*y),n.asin(v*r-c*y)]},g}exports.rotateRadians=P;
|
|
2
2
|
//# sourceMappingURL=index.cjs195.js.map
|
package/dist/index.cjs195.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs195.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs195.js","sources":["../../../node_modules/d3-geo/src/rotation.js"],"sourcesContent":["import compose from \"./compose\";\nimport {asin, atan2, cos, degrees, pi, radians, sin, tau} from \"./math\";\n\nfunction rotationIdentity(lambda, phi) {\n return [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n}\n\nrotationIdentity.invert = rotationIdentity;\n\nexport function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {\n return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))\n : rotationLambda(deltaLambda))\n : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)\n : rotationIdentity);\n}\n\nfunction forwardRotationLambda(deltaLambda) {\n return function(lambda, phi) {\n return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n };\n}\n\nfunction rotationLambda(deltaLambda) {\n var rotation = forwardRotationLambda(deltaLambda);\n rotation.invert = forwardRotationLambda(-deltaLambda);\n return rotation;\n}\n\nfunction rotationPhiGamma(deltaPhi, deltaGamma) {\n var cosDeltaPhi = cos(deltaPhi),\n sinDeltaPhi = sin(deltaPhi),\n cosDeltaGamma = cos(deltaGamma),\n sinDeltaGamma = sin(deltaGamma);\n\n function rotation(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaPhi + x * sinDeltaPhi;\n return [\n atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),\n asin(k * cosDeltaGamma + y * sinDeltaGamma)\n ];\n }\n\n rotation.invert = function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaGamma - y * sinDeltaGamma;\n return [\n atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),\n asin(k * cosDeltaPhi - x * sinDeltaPhi)\n ];\n };\n\n return rotation;\n}\n\nexport default function(rotate) {\n rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);\n\n function forward(coordinates) {\n coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n }\n\n forward.invert = function(coordinates) {\n coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n };\n\n return forward;\n}\n"],"names":["rotationIdentity","lambda","phi","pi","tau","rotateRadians","deltaLambda","deltaPhi","deltaGamma","compose","rotationLambda","rotationPhiGamma","forwardRotationLambda","rotation","cosDeltaPhi","cos","sinDeltaPhi","sin","cosDeltaGamma","sinDeltaGamma","cosPhi","x","y","z","k","atan2","asin"],"mappings":"oJAGA,SAASA,EAAiBC,EAAQC,EAAK,CAC9B,MAAA,CAACD,EAASE,KAAKF,EAASG,EAAAA,IAAMH,EAAS,CAACE,EAAAA,GAAKF,EAASG,EAAAA,IAAMH,EAAQC,CAAG,CAChF,CAEAF,EAAiB,OAASA,EAEV,SAAAK,EAAcC,EAAaC,EAAUC,EAAY,CACvD,OAAAF,GAAeF,OAAQG,GAAYC,EAAaC,EAAQC,EAAeJ,CAAW,EAAGK,EAAiBJ,EAAUC,CAAU,CAAC,EAC/HE,EAAeJ,CAAW,EACzBC,GAAYC,EAAaG,EAAiBJ,EAAUC,CAAU,EAC/DR,CACN,CAEA,SAASY,EAAsBN,EAAa,CACnC,OAAA,SAASL,EAAQC,EAAK,CAC3B,OAAOD,GAAUK,EAAa,CAACL,EAASE,EAAAA,GAAKF,EAASG,EAAAA,IAAMH,EAAS,CAACE,EAAA,GAAKF,EAASG,EAAA,IAAMH,EAAQC,CAAG,CAAA,CAEzG,CAEA,SAASQ,EAAeJ,EAAa,CAC/B,IAAAO,EAAWD,EAAsBN,CAAW,EACvC,OAAAO,EAAA,OAASD,EAAsB,CAACN,CAAW,EAC7CO,CACT,CAEA,SAASF,EAAiBJ,EAAUC,EAAY,CAC9C,IAAIM,EAAcC,EAAAA,IAAIR,CAAQ,EAC1BS,EAAcC,EAAI,IAAAV,CAAQ,EAC1BW,EAAgBH,EAAAA,IAAIP,CAAU,EAC9BW,EAAgBF,MAAIT,CAAU,EAEzB,SAAAK,EAASZ,EAAQC,EAAK,CACzB,IAAAkB,EAASL,MAAIb,CAAG,EAChBmB,EAAIN,EAAI,IAAAd,CAAM,EAAImB,EAClBE,EAAIL,MAAIhB,CAAM,EAAImB,EAClBG,EAAIN,EAAAA,IAAIf,CAAG,EACXsB,EAAID,EAAIT,EAAcO,EAAIL,EACvB,MAAA,CACLS,QAAMH,EAAIJ,EAAgBM,EAAIL,EAAeE,EAAIP,EAAcS,EAAIP,CAAW,EAC9EU,EAAAA,KAAKF,EAAIN,EAAgBI,EAAIH,CAAa,CAAA,CAE9C,CAES,OAAAN,EAAA,OAAS,SAASZ,EAAQC,EAAK,CAClC,IAAAkB,EAASL,MAAIb,CAAG,EAChBmB,EAAIN,EAAI,IAAAd,CAAM,EAAImB,EAClBE,EAAIL,MAAIhB,CAAM,EAAImB,EAClBG,EAAIN,EAAAA,IAAIf,CAAG,EACXsB,EAAID,EAAIL,EAAgBI,EAAIH,EACzB,MAAA,CACLM,QAAMH,EAAIJ,EAAgBK,EAAIJ,EAAeE,EAAIP,EAAcU,EAAIR,CAAW,EAC9EU,EAAAA,KAAKF,EAAIV,EAAcO,EAAIL,CAAW,CAAA,CACxC,EAGKH,CACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs196.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const e=require("./index.cjs260.js"),r=require("./index.cjs261.js");r(e);
|
|
2
2
|
//# sourceMappingURL=index.cjs196.js.map
|
package/dist/index.cjs196.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs196.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs196.js","sources":["../../../node_modules/d3-geo/node_modules/d3-array/src/bisect.js"],"sourcesContent":["import ascending from \"./ascending\";\nimport bisector from \"./bisector\";\n\nvar ascendingBisect = bisector(ascending);\nexport var bisectRight = ascendingBisect.right;\nexport var bisectLeft = ascendingBisect.left;\nexport default bisectRight;\n"],"names":["bisector","ascending"],"mappings":"iFAGsBA,EAASC,CAAS","x_google_ignoreList":[0]}
|
package/dist/index.cjs197.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const Q=require("./index.cjs238.js"),e=require("./index.cjs240.js"),r=require("./index.cjs241.js");var w=Q();function R(x,g){var a=g[0],i=g[1],O=[r.sin(a),-r.cos(a),0],v=0,y=0;w.reset();for(var f=0,P=x.length;f<P;++f)if(q=(t=x[f]).length)for(var t,q,n=t[q-1],C=n[0],B=n[1]/2+r.quarterPi,E=r.sin(B),F=r.cos(B),z=0;z<q;++z,C=I,E=H,F=J,n=c){var c=t[z],I=c[0],G=c[1]/2+r.quarterPi,H=r.sin(G),J=r.cos(G),s=I-C,N=s>=0?1:-1,l=N*s,o=l>r.pi,K=E*H;if(w.add(r.atan2(K*N*r.sin(l),F*J+K*r.cos(l))),v+=o?s+N*r.tau:s,o^C>=a^I>=a){var u=e.cartesianCross(e.cartesian(n),e.cartesian(c));e.cartesianNormalizeInPlace(u);var L=e.cartesianCross(O,u);e.cartesianNormalizeInPlace(L);var M=(o^s>=0?-1:1)*r.asin(L[2]);(i>M||i===M&&(u[0]||u[1]))&&(y+=o^s>=0?1:-1)}}return(v<-r.epsilon||v<r.epsilon&&w<-r.epsilon)^y&1}module.exports=R;
|
|
2
2
|
//# sourceMappingURL=index.cjs197.js.map
|
package/dist/index.cjs197.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs197.js","sources":["../../../node_modules/d3-geo/
|
|
1
|
+
{"version":3,"file":"index.cjs197.js","sources":["../../../node_modules/d3-geo/src/polygonContains.js"],"sourcesContent":["import adder from \"./adder\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace} from \"./cartesian\";\nimport {asin, atan2, cos, epsilon, pi, quarterPi, sin, tau} from \"./math\";\n\nvar sum = adder();\n\nexport default function(polygon, point) {\n var lambda = point[0],\n phi = point[1],\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = point0[0],\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = point1[0],\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n"],"names":["sum","adder","polygonContains","polygon","point","lambda","phi","normal","sin","cos","angle","winding","i","n","m","ring","point0","lambda0","phi0","quarterPi","sinPhi0","cosPhi0","j","lambda1","sinPhi1","cosPhi1","point1","phi1","delta","sign","absDelta","antimeridian","pi","k","atan2","tau","arc","cartesianCross","cartesian","cartesianNormalizeInPlace","intersection","phiArc","asin","epsilon"],"mappings":"gHAIA,IAAIA,EAAMC,EAAM,EAEhB,SAAAC,EAAwBC,EAASC,EAAO,CAClC,IAAAC,EAASD,EAAM,CAAC,EAChBE,EAAMF,EAAM,CAAC,EACbG,EAAS,CAACC,EAAAA,IAAIH,CAAM,EAAG,CAACI,MAAIJ,CAAM,EAAG,CAAC,EACtCK,EAAQ,EACRC,EAAU,EAEdX,EAAI,MAAM,EAED,QAAAY,EAAI,EAAGC,EAAIV,EAAQ,OAAQS,EAAIC,EAAG,EAAED,EAC3C,GAAME,GAAKC,EAAOZ,EAAQS,CAAC,GAAG,OAS9B,QARIG,EACAD,EACAE,EAASD,EAAKD,EAAI,CAAC,EACnBG,EAAUD,EAAO,CAAC,EAClBE,EAAOF,EAAO,CAAC,EAAI,EAAIG,EAAAA,UACvBC,EAAUZ,MAAIU,CAAI,EAClBG,EAAUZ,EAAA,IAAIS,CAAI,EAEbI,EAAI,EAAGA,EAAIR,EAAG,EAAEQ,EAAGL,EAAUM,EAASH,EAAUI,EAASH,EAAUI,EAAST,EAASU,EAAQ,CACpG,IAAIA,EAASX,EAAKO,CAAC,EACfC,EAAUG,EAAO,CAAC,EAClBC,EAAOD,EAAO,CAAC,EAAI,EAAIP,YACvBK,EAAUhB,EAAAA,IAAImB,CAAI,EAClBF,EAAUhB,EAAA,IAAIkB,CAAI,EAClBC,EAAQL,EAAUN,EAClBY,EAAOD,GAAS,EAAI,EAAI,GACxBE,EAAWD,EAAOD,EAClBG,EAAeD,EAAWE,EAAAA,GAC1BC,EAAIb,EAAUI,EAOlB,GALAxB,EAAI,IAAIkC,EAAAA,MAAMD,EAAIJ,EAAOrB,EAAAA,IAAIsB,CAAQ,EAAGT,EAAUI,EAAUQ,EAAIxB,EAAI,IAAAqB,CAAQ,CAAC,CAAC,EACrEpB,GAAAqB,EAAeH,EAAQC,EAAOM,EAAAA,IAAMP,EAIzCG,EAAed,GAAWZ,EAASkB,GAAWlB,EAAQ,CACxD,IAAI+B,EAAMC,EAAAA,eAAeC,EAAA,UAAUtB,CAAM,EAAGsB,EAAA,UAAUZ,CAAM,CAAC,EAC7Da,EAAA,0BAA0BH,CAAG,EACzB,IAAAI,EAAeH,EAAAA,eAAe9B,EAAQ6B,CAAG,EAC7CG,EAAA,0BAA0BC,CAAY,EAClC,IAAAC,GAAUV,EAAeH,GAAS,EAAI,GAAK,GAAKc,EAAA,KAAKF,EAAa,CAAC,CAAC,GACpElC,EAAMmC,GAAUnC,IAAQmC,IAAWL,EAAI,CAAC,GAAKA,EAAI,CAAC,MACzCzB,GAAAoB,EAAeH,GAAS,EAAI,EAAI,GAE/C,CACF,CAcM,OAAAlB,EAAQ,CAACiC,EAAAA,SAAWjC,EAAQiC,WAAW3C,EAAM,CAAC2C,EAAAA,SAAYhC,EAAU,CAC9E","x_google_ignoreList":[0]}
|
package/dist/index.cjs198.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("./index.cjs238.js");e();
|
|
2
2
|
//# sourceMappingURL=index.cjs198.js.map
|
package/dist/index.cjs198.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs198.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs198.js","sources":["../../../node_modules/d3-geo/src/length.js"],"sourcesContent":["import adder from \"./adder\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math\";\nimport noop from \"./noop\";\nimport stream from \"./stream\";\n\nvar lengthSum = adder(),\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum.reset();\n stream(object, lengthStream);\n return +lengthSum;\n}\n"],"names":["adder"],"mappings":"kDAKgBA,EACZ","x_google_ignoreList":[0]}
|
package/dist/index.cjs199.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs238.js");e();
|
|
1
|
+
"use strict";const e=require("./index.cjs238.js");e();e();
|
|
2
2
|
//# sourceMappingURL=index.cjs199.js.map
|
package/dist/index.cjs199.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs199.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs199.js","sources":["../../../node_modules/d3-geo/src/path/area.js"],"sourcesContent":["import adder from \"../adder\";\nimport {abs} from \"../math\";\nimport noop from \"../noop\";\n\nvar areaSum = adder(),\n areaRingSum = adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum.reset();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum.reset();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n"],"names":["adder"],"mappings":"kDAIcA,EACV,EAAcA,EACd","x_google_ignoreList":[0]}
|
package/dist/index.cjs200.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs238.js");e();
|
|
1
|
+
"use strict";const e=require("./index.cjs238.js");e();
|
|
2
2
|
//# sourceMappingURL=index.cjs200.js.map
|
package/dist/index.cjs200.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs200.js","sources":["../../../node_modules/d3-geo/src/path/
|
|
1
|
+
{"version":3,"file":"index.cjs200.js","sources":["../../../node_modules/d3-geo/src/path/measure.js"],"sourcesContent":["import adder from \"../adder\";\nimport {sqrt} from \"../math\";\nimport noop from \"../noop\";\n\nvar lengthSum = adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n"],"names":["adder"],"mappings":"kDAIgBA,EAAM","x_google_ignoreList":[0]}
|
package/dist/index.cjs201.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(t){return function(n){var r=new o;for(var e in t)r[e]=t[e];return r.stream=n,r}}function o(){}o.prototype={constructor:o,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};exports.transformer=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs201.js.map
|
package/dist/index.cjs201.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs201.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs201.js","sources":["../../../node_modules/d3-geo/src/transform.js"],"sourcesContent":["export default function(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nexport function transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n"],"names":["transformer","methods","stream","s","TransformStream","key","x","y"],"mappings":"gFAMO,SAASA,EAAYC,EAAS,CACnC,OAAO,SAASC,EAAQ,CACtB,IAAIC,EAAI,IAAIC,EACZ,QAASC,KAAOJ,EAAWE,EAAAE,CAAG,EAAIJ,EAAQI,CAAG,EAC7C,OAAAF,EAAE,OAASD,EACJC,CAAA,CAEX,CAEA,SAASC,GAAkB,CAAC,CAE5BA,EAAgB,UAAY,CAC1B,YAAaA,EACb,MAAO,SAASE,EAAGC,EAAG,CAAO,KAAA,OAAO,MAAMD,EAAGC,CAAC,CAAG,EACjD,OAAQ,UAAW,CAAE,KAAK,OAAO,QAAU,EAC3C,UAAW,UAAW,CAAE,KAAK,OAAO,WAAa,EACjD,QAAS,UAAW,CAAE,KAAK,OAAO,SAAW,EAC7C,aAAc,UAAW,CAAE,KAAK,OAAO,cAAgB,EACvD,WAAY,UAAW,CAAE,KAAK,OAAO,YAAc,CACrD","x_google_ignoreList":[0]}
|
package/dist/index.cjs202.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs241.js"),a=require("./index.cjs247.js");require("./index.cjs197.js");require("./index.cjs196.js");require("./index.cjs195.js");require("./index.cjs201.js");var t=a.azimuthalRaw(function(r){return e.sqrt(2/(1+r))});t.invert=a.azimuthalInvert(function(r){return 2*e.asin(r/2)});exports.azimuthalEqualAreaRaw=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs202.js.map
|
package/dist/index.cjs202.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs202.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs202.js","sources":["../../../node_modules/d3-geo/src/projection/azimuthalEqualArea.js"],"sourcesContent":["import {asin, sqrt} from \"../math\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal\";\nimport projection from \"./index\";\n\nexport var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nexport default function() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n"],"names":["azimuthalEqualAreaRaw","azimuthalRaw","cxcy","sqrt","azimuthalInvert","z","asin"],"mappings":"wQAIW,IAAAA,EAAwBC,EAAAA,aAAa,SAASC,EAAM,CACtD,OAAAC,EAAA,KAAK,GAAK,EAAID,EAAK,CAC5B,CAAC,EAEDF,EAAsB,OAASI,kBAAgB,SAASC,EAAG,CAClD,MAAA,GAAIC,EAAAA,KAAKD,EAAI,CAAC,CACvB,CAAC","x_google_ignoreList":[0]}
|
package/dist/index.cjs203.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs241.js"),i=require("./index.cjs247.js"),u=require("./index.cjs248.js");var e=i.azimuthalRaw(function(t){return(t=a.acos(t))&&t/a.sin(t)});e.invert=i.azimuthalInvert(function(t){return t});function n(){return u.default(e).scale(79.4188).clipAngle(180-.001)}exports.azimuthalEquidistantRaw=e;exports.default=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs203.js.map
|
package/dist/index.cjs203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs203.js","sources":["../../../node_modules/d3-geo/src/projection/
|
|
1
|
+
{"version":3,"file":"index.cjs203.js","sources":["../../../node_modules/d3-geo/src/projection/azimuthalEquidistant.js"],"sourcesContent":["import {acos, sin} from \"../math\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal\";\nimport projection from \"./index\";\n\nexport var azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nexport default function() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n"],"names":["azimuthalEquidistantRaw","azimuthalRaw","c","acos","sin","azimuthalInvert","z","geoAzimuthalEquidistant","projection"],"mappings":"+MAIW,IAAAA,EAA0BC,EAAAA,aAAa,SAASC,EAAG,CAC5D,OAAQA,EAAIC,OAAKD,CAAC,IAAMA,EAAIE,EAAAA,IAAIF,CAAC,CACnC,CAAC,EAEDF,EAAwB,OAASK,kBAAgB,SAASC,EAAG,CACpD,OAAAA,CACT,CAAC,EAEyB,SAAAC,GAAA,CACjB,OAAAC,EAAA,QAAWR,CAAuB,EACpC,MAAM,OAAO,EACb,UAAU,IAAM,IAAI,CAC3B","x_google_ignoreList":[0]}
|
package/dist/index.cjs204.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs197.js");require("./index.cjs196.js");require("./index.cjs195.js");require("./index.cjs201.js");function e(r,u){return[r,u]}e.invert=e;exports.equirectangularRaw=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs204.js.map
|
package/dist/index.cjs204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs204.js","sources":["../../../node_modules/d3-geo/src/projection/
|
|
1
|
+
{"version":3,"file":"index.cjs204.js","sources":["../../../node_modules/d3-geo/src/projection/equirectangular.js"],"sourcesContent":["import projection from \"./index\";\n\nexport function equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nexport default function() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n"],"names":["equirectangularRaw","lambda","phi"],"mappings":"oMAEgB,SAAAA,EAAmBC,EAAQC,EAAK,CACvC,MAAA,CAACD,EAAQC,CAAG,CACrB,CAEAF,EAAmB,OAASA","x_google_ignoreList":[0]}
|
package/dist/index.cjs205.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs205.js.map
|
package/dist/index.cjs205.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs205.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs205.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs208.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs236.js"),t=require("./index.cjs210.js"),r=e(t);module.exports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs208.js.map
|
package/dist/index.cjs228.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs236.js"),r=require("./index.cjs209.js"),t=e(r);module.exports=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs228.js.map
|
package/dist/index.cjs236.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const n=require("./index.cjs24.js");function u(r){return function(t){var e=r(t);return typeof e=="number"&&e>=0&&e<=n.MAX_ARRAY_INDEX}}module.exports=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs236.js.map
|
package/dist/index.cjs236.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs236.js","sources":["../../../node_modules/underscore/modules/
|
|
1
|
+
{"version":3,"file":"index.cjs236.js","sources":["../../../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":"iDAGA,SAAwBA,EAAwBC,EAAiB,CAC/D,OAAO,SAASC,EAAY,CACtB,IAAAC,EAAeF,EAAgBC,CAAU,EAC7C,OAAO,OAAOC,GAAgB,UAAYA,GAAgB,GAAKA,GAAgBC,iBAAA,CAEnF","x_google_ignoreList":[0]}
|
package/dist/index.cjs237.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("./index.cjs206.js"),e=t("Object");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs237.js.map
|
package/dist/index.cjs237.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs237.js","sources":["../../../node_modules/underscore/modules/
|
|
1
|
+
{"version":3,"file":"index.cjs237.js","sources":["../../../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["tagTester"],"mappings":"kDAEeA,EAAAA,EAAU,QAAQ","x_google_ignoreList":[0]}
|
package/dist/index.cjs239.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs240.js"),a=require("./index.cjs241.js");require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs240.js"),a=require("./index.cjs241.js");require("./index.cjs195.js");function q(i,e,c,u,r,s){if(c){var n=a.cos(e),o=a.sin(e),v=u*c;r==null?(r=e+u*a.tau,s=e-v/2):(r=S(n,r),s=S(n,s),(u>0?r<s:r>s)&&(r+=u*a.tau));for(var f,l=r;u>0?l>s:l<s;l-=v)f=m.spherical([n,-o*a.cos(l),-o*a.sin(l)]),i.point(f[0],f[1])}}function S(i,e){e=m.cartesian(e),e[0]-=i,m.cartesianNormalizeInPlace(e);var c=a.acos(-e[1]);return((-e[2]<0?-c:c)+a.tau-a.epsilon)%a.tau}exports.circleStream=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs239.js.map
|
package/dist/index.cjs242.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index.cjs241.js"),U=require("./index.cjs243.js"),V=require("./index.cjs244.js"),W=require("./index.cjs245.js");require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index.cjs241.js"),U=require("./index.cjs243.js"),V=require("./index.cjs244.js"),W=require("./index.cjs245.js");require("./index.cjs196.js");const X=require("./index.cjs246.js");var E=1e9,O=-E;function Y(s,d,m,u){function j(i,n){return s<=i&&i<=m&&d<=n&&n<=u}function k(i,n,l,o){var r=0,p=0;if(i==null||(r=q(i,l))!==(p=q(n,l))||z(i,n)<0^l>0)do o.point(r===0||r===3?s:m,r>1?u:d);while((r=(r+l+4)%4)!==p);else o.point(n[0],n[1])}function q(i,n){return S.abs(i[0]-s)<S.epsilon?n>0?0:3:S.abs(i[0]-m)<S.epsilon?n>0?2:1:S.abs(i[1]-d)<S.epsilon?n>0?1:0:n>0?3:2}function G(i,n){return z(i.x,n.x)}function z(i,n){var l=q(i,1),o=q(n,1);return l!==o?l-o:l===0?n[1]-i[1]:l===1?i[0]-n[0]:l===2?i[1]-n[1]:n[0]-i[0]}return function(i){var n=i,l=U(),o,r,p,A,B,C,I,P,v,T,w,$={point:D,lineStart:L,lineEnd:Q,polygonStart:J,polygonEnd:K};function D(e,t){j(e,t)&&n.point(e,t)}function H(){for(var e=0,t=0,f=r.length;t<f;++t)for(var a=r[t],c=1,R=a.length,M=a[0],_,h,N=M[0],g=M[1];c<R;++c)_=N,h=g,M=a[c],N=M[0],g=M[1],h<=u?g>u&&(N-_)*(u-h)>(g-h)*(s-_)&&++e:g<=u&&(N-_)*(u-h)<(g-h)*(s-_)&&--e;return e}function J(){n=l,o=[],r=[],w=!0}function K(){var e=H(),t=w&&e,f=(o=X(o)).length;(t||f)&&(i.polygonStart(),t&&(i.lineStart(),k(null,null,1,i),i.lineEnd()),f&&W(o,G,e,k,i),i.polygonEnd()),n=i,o=r=p=null}function L(){$.point=F,r&&r.push(p=[]),T=!0,v=!1,I=P=NaN}function Q(){o&&(F(A,B),C&&v&&l.rejoin(),o.push(l.result())),$.point=D,v&&n.lineEnd()}function F(e,t){var f=j(e,t);if(r&&p.push([e,t]),T)A=e,B=t,C=f,T=!1,f&&(n.lineStart(),n.point(e,t));else if(f&&v)n.point(e,t);else{var a=[I=Math.max(O,Math.min(E,I)),P=Math.max(O,Math.min(E,P))],c=[e=Math.max(O,Math.min(E,e)),t=Math.max(O,Math.min(E,t))];V(a,c,s,d,m,u)?(v||(n.lineStart(),n.point(a[0],a[1])),n.point(c[0],c[1]),f||n.lineEnd(),w=!1):f&&(n.lineStart(),n.point(e,t),w=!1)}I=e,P=t,v=f}return $}}exports.clipExtent=Y;
|
|
2
2
|
//# sourceMappingURL=index.cjs242.js.map
|
package/dist/index.cjs245.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const A=require("./index.
|
|
1
|
+
"use strict";const A=require("./index.cjs257.js");function d(h,v,f,o){this.x=h,this.z=v,this.o=f,this.e=o,this.v=!1,this.n=this.p=null}function B(h,v,f,o,n){var x=[],s=[],l,z;if(h.forEach(function(w){if(!((g=w.length-1)<=0)){var g,u=w[0],q=w[g],t;if(A(u,q)){for(n.lineStart(),l=0;l<g;++l)n.point((u=w[l])[0],u[1]);n.lineEnd();return}x.push(t=new d(u,w,null,!0)),s.push(t.o=new d(u,null,t,!1)),x.push(t=new d(q,w,null,!1)),s.push(t.o=new d(q,null,t,!0))}}),!!x.length){for(s.sort(v),P(x),P(s),l=0,z=s.length;l<z;++l)s[l].e=f=!f;for(var k=x[0],p,E;;){for(var i=k,e=!0;i.v;)if((i=i.n)===k)return;p=i.z,n.lineStart();do{if(i.v=i.o.v=!0,i.e){if(e)for(l=0,z=p.length;l<z;++l)n.point((E=p[l])[0],E[1]);else o(i.x,i.n.x,1,n);i=i.n}else{if(e)for(p=i.p.z,l=p.length-1;l>=0;--l)n.point((E=p[l])[0],E[1]);else o(i.x,i.p.x,-1,n);i=i.p}i=i.o,p=i.z,e=!e}while(!i.v);n.lineEnd()}}}function P(h){if(v=h.length){for(var v,f=0,o=h[0],n;++f<v;)o.n=n=h[f],n.p=o,o=n;o.n=n=h[0],n.p=o}}module.exports=B;
|
|
2
2
|
//# sourceMappingURL=index.cjs245.js.map
|
package/dist/index.cjs248.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const G=require("./index.cjs249.js"),D=require("./index.cjs250.js"),F=require("./index.cjs242.js"),H=require("./index.cjs251.js"),L=require("./index.cjs252.js"),r=require("./index.cjs241.js"),I=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const G=require("./index.cjs249.js"),D=require("./index.cjs250.js"),F=require("./index.cjs242.js"),H=require("./index.cjs251.js"),L=require("./index.cjs252.js"),r=require("./index.cjs241.js"),I=require("./index.cjs195.js"),J=require("./index.cjs201.js"),O=require("./index.cjs253.js"),w=require("./index.cjs254.js");var K=J.transformer({point:function(u,a){this.stream.point(u*r.radians,a*r.radians)}});function N(u){return B(function(){return u})()}function B(u){var a,n=150,g=480,m=250,c,o,h=0,p=0,q=0,j=0,v=0,z,y,x=null,P=G,l=null,S,b,E,T=L,M=.5,k=w(A,M),d,R;function t(e){return e=y(e[0]*r.radians,e[1]*r.radians),[e[0]*n+c,o-e[1]*n]}function C(e){return e=y.invert((e[0]-c)/n,(o-e[1])/n),e&&[e[0]*r.degrees,e[1]*r.degrees]}function A(e,s){return e=a(e,s),[e[0]*n+c,o-e[1]*n]}t.stream=function(e){return d&&R===e?d:d=K(P(z,k(T(R=e))))},t.clipAngle=function(e){return arguments.length?(P=+e?D(x=e*r.radians,6*r.radians):(x=null,G),f()):x*r.degrees},t.clipExtent=function(e){return arguments.length?(T=e==null?(l=S=b=E=null,L):F.clipExtent(l=+e[0][0],S=+e[0][1],b=+e[1][0],E=+e[1][1]),f()):l==null?null:[[l,S],[b,E]]},t.scale=function(e){return arguments.length?(n=+e,i()):n},t.translate=function(e){return arguments.length?(g=+e[0],m=+e[1],i()):[g,m]},t.center=function(e){return arguments.length?(h=e[0]%360*r.radians,p=e[1]%360*r.radians,i()):[h*r.degrees,p*r.degrees]},t.rotate=function(e){return arguments.length?(q=e[0]%360*r.radians,j=e[1]%360*r.radians,v=e.length>2?e[2]%360*r.radians:0,i()):[q*r.degrees,j*r.degrees,v*r.degrees]},t.precision=function(e){return arguments.length?(k=w(A,M=e*e),f()):r.sqrt(M)},t.fitExtent=function(e,s){return O.fitExtent(t,e,s)},t.fitSize=function(e,s){return O.fitSize(t,e,s)};function i(){y=H(z=I.rotateRadians(q,j,v),a);var e=a(h,p);return c=g-e[0]*n,o=m+e[1]*n,f()}function f(){return d=R=null,t}return function(){return a=u.apply(this,arguments),t.invert=a.invert&&C,i()}}exports.default=N;exports.projectionMutator=B;
|
|
2
2
|
//# sourceMappingURL=index.cjs248.js.map
|
package/dist/index.cjs250.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.cjs240.js"),Q=require("./index.cjs239.js"),e=require("./index.cjs241.js"),j=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs240.js"),Q=require("./index.cjs239.js"),e=require("./index.cjs241.js"),j=require("./index.cjs257.js"),T=require("./index.cjs259.js");function U(d,G){var D=e.cos(d),x=D>0,J=e.abs(D)>e.epsilon;function K(n,i,o,r){Q.circleStream(r,d,G,o,n,i)}function L(n,i){return e.cos(n)*e.cos(i)>D}function M(n){var i,o,r,C,u;return{lineStart:function(){C=r=!1,u=1},point:function(s,v){var c=[s,v],a,l=L(s,v),z=x?l?0:k(s,v):l?k(s+(s<0?e.pi:-e.pi),v):0;if(!i&&(C=r=l)&&n.lineStart(),l!==r&&(a=h(i,c),(!a||j(i,a)||j(c,a))&&(c[0]+=e.epsilon,c[1]+=e.epsilon,l=L(c[0],c[1]))),l!==r)u=0,l?(n.lineStart(),a=h(c,i),n.point(a[0],a[1])):(a=h(i,c),n.point(a[0],a[1]),n.lineEnd()),i=a;else if(J&&i&&x^l){var p;!(z&o)&&(p=h(c,i,!0))&&(u=0,x?(n.lineStart(),n.point(p[0][0],p[0][1]),n.point(p[1][0],p[1][1]),n.lineEnd()):(n.point(p[1][0],p[1][1]),n.lineEnd(),n.lineStart(),n.point(p[0][0],p[0][1])))}l&&(!i||!j(i,c))&&n.point(c[0],c[1]),i=c,r=l,o=z},lineEnd:function(){r&&n.lineEnd(),i=null},clean:function(){return u|(C&&r)<<1}}}function h(n,i,o){var r=t.cartesian(n),C=t.cartesian(i),u=[1,0,0],s=t.cartesianCross(r,C),v=t.cartesianDot(s,s),c=s[0],a=v-c*c;if(!a)return!o&&n;var l=D*v/a,z=-D*c/a,p=t.cartesianCross(u,s),S=t.cartesianScale(u,l),N=t.cartesianScale(s,z);t.cartesianAddInPlace(S,N);var I=p,B=t.cartesianDot(S,I),R=t.cartesianDot(I,I),w=B*B-R*(t.cartesianDot(S,S)-1);if(!(w<0)){var y=e.sqrt(w),f=t.cartesianScale(I,(-B-y)/R);if(t.cartesianAddInPlace(f,S),f=t.spherical(f),!o)return f;var q=n[0],P=i[0],E=n[1],A=i[1],H;P<q&&(H=q,q=P,P=H);var b=P-q,g=e.abs(b-e.pi)<e.epsilon,O=g||b<e.epsilon;if(!g&&A<E&&(H=E,E=A,A=H),O?g?E+A>0^f[1]<(e.abs(f[0]-q)<e.epsilon?E:A):E<=f[1]&&f[1]<=A:b>e.pi^(q<=f[0]&&f[0]<=P)){var F=t.cartesianScale(I,(-B+y)/R);return t.cartesianAddInPlace(F,S),[f,t.spherical(F)]}}}function k(n,i){var o=x?d:e.pi-d,r=0;return n<-o?r|=1:n>o&&(r|=2),i<-o?r|=4:i>o&&(r|=8),r}return T(L,M,K,x?[0,-d]:[-e.pi,d-e.pi])}module.exports=U;
|
|
2
2
|
//# sourceMappingURL=index.cjs250.js.map
|
package/dist/index.cjs253.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index.cjs255.js"),s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index.cjs255.js"),s=require("./index.cjs258.js");function f(t,l,u){var e=l[1][0]-l[0][0],n=l[1][1]-l[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),a!=null&&t.clipExtent(null),b(u,t.stream(s));var i=s.result(),r=Math.min(e/(i[1][0]-i[0][0]),n/(i[1][1]-i[0][1])),c=+l[0][0]+(e-r*(i[1][0]+i[0][0]))/2,E=+l[0][1]+(n-r*(i[1][1]+i[0][1]))/2;return a!=null&&t.clipExtent(a),t.scale(r*150).translate([c,E])}function m(t,l,u){return f(t,[[0,0],l],u)}exports.fitExtent=f;exports.fitSize=m;
|
|
2
2
|
//# sourceMappingURL=index.cjs253.js.map
|
package/dist/index.cjs254.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const H=require("./index.cjs240.js"),o=require("./index.cjs241.js"),I=require("./index.
|
|
1
|
+
"use strict";const H=require("./index.cjs240.js"),o=require("./index.cjs241.js"),I=require("./index.cjs201.js");var G=16,J=o.cos(30*o.radians);function K(p,r){return+r?Q(p,r):O(p)}function O(p){return I.transformer({point:function(r,D){r=p(r,D),this.stream.point(r[0],r[1])}})}function Q(p,r){function D(i,P,L,M,T,$,w,h,e,s,c,l,a,n){var E=w-i,S=h-P,v=E*E+S*S;if(v>4*r&&a--){var f=M+s,q=T+c,g=$+l,y=o.sqrt(f*f+q*q+g*g),t=o.asin(g/=y),u=o.abs(o.abs(g)-1)<o.epsilon||o.abs(L-e)<o.epsilon?(L+e)/2:o.atan2(q,f),k=p(u,t),N=k[0],A=k[1],B=N-i,C=A-P,F=S*B-E*C;(F*F/v>r||o.abs((E*B+S*C)/v-.5)>.3||M*s+T*c+$*l<J)&&(D(i,P,L,M,T,$,N,A,u,f/=y,q/=y,g,a,n),n.point(N,A),D(N,A,u,f,q,g,w,h,e,s,c,l,a,n))}}return function(i){var P,L,M,T,$,w,h,e,s,c,l,a,n={point:E,lineStart:S,lineEnd:f,polygonStart:function(){i.polygonStart(),n.lineStart=q},polygonEnd:function(){i.polygonEnd(),n.lineStart=S}};function E(t,u){t=p(t,u),i.point(t[0],t[1])}function S(){e=NaN,n.point=v,i.lineStart()}function v(t,u){var k=H.cartesian([t,u]),N=p(t,u);D(e,s,h,c,l,a,e=N[0],s=N[1],h=t,c=k[0],l=k[1],a=k[2],G,i),i.point(e,s)}function f(){n.point=E,i.lineEnd()}function q(){S(),n.point=g,n.lineEnd=y}function g(t,u){v(P=t,u),L=e,M=s,T=c,$=l,w=a,n.point=v}function y(){D(e,s,h,c,l,a,L,M,P,T,$,w,G,i),n.lineEnd=f,f()}return n}}module.exports=K;
|
|
2
2
|
//# sourceMappingURL=index.cjs254.js.map
|
package/dist/index.cjs257.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("./index.cjs241.js");function n(t,e){return s.abs(t[0]-e[0])<s.epsilon&&s.abs(t[1]-e[1])<s.epsilon}module.exports=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs257.js.map
|
package/dist/index.cjs257.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs257.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs257.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":"kDAEA,SAAAA,EAAwBC,EAAGC,EAAG,CAC5B,OAAOC,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,EAAAA,SAAWD,EAAAA,IAAIF,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,EAAIE,SAC1D","x_google_ignoreList":[0]}
|
package/dist/index.cjs258.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("./index.cjs256.js");var t=1/0,e=t,i=-t,u=i,f={point:s,lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var n=[[t,e],[i,u]];return i=u=-(e=t=1/0),n}};function s(n,o){n<t&&(t=n),n>i&&(i=n),o<e&&(e=o),o>u&&(u=o)}module.exports=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs258.js.map
|
package/dist/index.cjs258.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs258.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs258.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":"kDAEA,IAAIA,EAAK,IACLC,EAAKD,EACLE,EAAK,CAACF,EACNG,EAAKD,EAELE,EAAe,CACjB,MAAOC,EACP,UAAWC,EACX,QAASA,EACT,aAAcA,EACd,WAAYA,EACZ,OAAQ,UAAW,CACb,IAAAC,EAAS,CAAC,CAACP,EAAIC,CAAE,EAAG,CAACC,EAAIC,CAAE,CAAC,EAC3B,OAAAD,EAAAC,EAAK,EAAEF,EAAKD,EAAK,KACfO,CACT,CACF,EAEA,SAASF,EAAYG,EAAGC,EAAG,CACrBD,EAAIR,IAASA,EAAAQ,GACbA,EAAIN,IAASA,EAAAM,GACbC,EAAIR,IAASA,EAAAQ,GACbA,EAAIN,IAASA,EAAAM,EACnB","x_google_ignoreList":[0]}
|
package/dist/index.cjs259.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const w=require("./index.cjs243.js"),z=require("./index.cjs245.js"),g=require("./index.cjs241.js"),A=require("./index.
|
|
1
|
+
"use strict";const w=require("./index.cjs243.js"),z=require("./index.cjs245.js"),g=require("./index.cjs241.js"),A=require("./index.cjs197.js");require("./index.cjs196.js");const D=require("./index.cjs246.js");function F(r,u,d,s){return function(c,n){var h=u(n),C=c.invert(s[0],s[1]),v=w(),a=u(v),l=!1,S,f,p,o={point:y,lineStart:q,lineEnd:m,polygonStart:function(){o.point=P,o.lineStart=$,o.lineEnd=j,f=[],S=[]},polygonEnd:function(){o.point=y,o.lineStart=q,o.lineEnd=m,f=D(f);var e=A(S,C);f.length?(l||(n.polygonStart(),l=!0),z(f,H,e,d,n)):e&&(l||(n.polygonStart(),l=!0),n.lineStart(),d(null,null,1,n),n.lineEnd()),l&&(n.polygonEnd(),l=!1),f=S=null},sphere:function(){n.polygonStart(),n.lineStart(),d(null,null,1,n),n.lineEnd(),n.polygonEnd()}};function y(e,t){var i=c(e,t);r(e=i[0],t=i[1])&&n.point(e,t)}function R(e,t){var i=c(e,t);h.point(i[0],i[1])}function q(){o.point=R,h.lineStart()}function m(){o.point=y,h.lineEnd()}function P(e,t){p.push([e,t]);var i=c(e,t);a.point(i[0],i[1])}function $(){a.lineStart(),p=[]}function j(){P(p[0][0],p[0][1]),a.lineEnd();var e=a.clean(),t=v.result(),i,x=t.length,I,E,B;if(p.pop(),S.push(p),p=null,!!x){if(e&1){if(E=t[0],(I=E.length-1)>0){for(l||(n.polygonStart(),l=!0),n.lineStart(),i=0;i<I;++i)n.point((B=E[i])[0],B[1]);n.lineEnd()}return}x>1&&e&2&&t.push(t.pop().concat(t.shift())),f.push(t.filter(G))}}return o}}function G(r){return r.length>1}function H(r,u){return((r=r.x)[0]<0?r[1]-g.halfPi-g.epsilon:g.halfPi-r[1])-((u=u.x)[0]<0?u[1]-g.halfPi-g.epsilon:g.halfPi-u[1])}module.exports=F;
|
|
2
2
|
//# sourceMappingURL=index.cjs259.js.map
|
package/dist/index.cjs26.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs24.js"),e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs24.js"),e=require("./index.cjs237.js");var t=a.supportsDataView&&e(new DataView(new ArrayBuffer(8))),r=typeof Map<"u"&&e(new Map);exports.hasStringTagBug=t;exports.isIE11=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs26.js.map
|
package/dist/index.cjs56.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs191.js");function t(f){var i=[1/0,1/0,-1/0,-1/0];return e.coordEach(f,function(n){i[0]>n[0]&&(i[0]=n[0]),i[1]>n[1]&&(i[1]=n[1]),i[2]<n[0]&&(i[2]=n[0]),i[3]<n[1]&&(i[3]=n[1])}),i}t.default=t;module.exports=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs56.js.map
|
package/dist/index.cjs58.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const x=require("./index.
|
|
1
|
+
"use strict";const x=require("./index.cjs190.js"),v=require("./index.cjs192.js"),p=require("./index.cjs191.js");require("./index.cjs193.js");require("./index.cjs194.js");require("./index.cjs195.js");require("./index.cjs196.js");require("./index.cjs197.js");require("./index.cjs198.js");require("./index.cjs199.js");require("./index.cjs200.js");require("./index.cjs201.js");require("./index.cjs202.js");const G=require("./index.cjs203.js");require("./index.cjs204.js");const a=require("./index.cjs54.js");function O(e,r,t){t=t||{};var o=t.units||"kilometers",n=t.steps||8;if(!e)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof n!="number")throw new Error("steps must be an number");if(r===void 0)throw new Error("radius is required");if(n<=0)throw new Error("steps must be greater than 0");var i=[];switch(e.type){case"GeometryCollection":return p.geomEach(e,function(f){var u=d(f,r,o,n);u&&i.push(u)}),a.featureCollection(i);case"FeatureCollection":return p.featureEach(e,function(f){var u=d(f,r,o,n);u&&p.featureEach(u,function(s){s&&i.push(s)})}),a.featureCollection(i)}return d(e,r,o,n)}function d(e,r,t,o){var n=e.properties||{},i=e.type==="Feature"?e.geometry:e;if(i.type==="GeometryCollection"){var f=[];return p.geomEach(e,function(N){var l=d(N,r,t,o);l&&f.push(l)}),a.featureCollection(f)}var u=F(i),s={type:i.type,coordinates:q(i.coordinates,u)},y=new v.GeoJSONReader,w=y.read(s),b=a.radiansToLength(a.lengthToRadians(r,t),"meters"),c=v.BufferOp.bufferOp(w,b,o),E=new v.GeoJSONWriter;if(c=E.write(c),!m(c.coordinates)){var C={type:c.type,coordinates:h(c.coordinates,u)};return a.feature(C,n)}}function m(e){return Array.isArray(e[0])?m(e[0]):isNaN(e[0])}function q(e,r){return typeof e[0]!="object"?r(e):e.map(function(t){return q(t,r)})}function h(e,r){return typeof e[0]!="object"?r.invert(e):e.map(function(t){return h(t,r)})}function F(e){var r=x(e).geometry.coordinates,t=[-r[0],-r[1]];return G.default().rotate(t).scale(a.earthRadius)}module.exports=O;
|
|
2
2
|
//# sourceMappingURL=index.cjs58.js.map
|
package/dist/index.cjs6.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("./index.cjs17.js"),u=require("@peripleo/maplibre"),l=require("react"),s=require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs28.js");require("./index.cjs29.js");require("./index.cjs30.js");require("./index.cjs31.js");require("./index.cjs32.js");require("./index.cjs33.js");require("./index.cjs34.js");require("./index.cjs35.js");require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");const n=require("./index.cjs13.js"),o=require("./index.cjs12.js"),c=2,q=e=>{const r=u.useMap(),i=l.useMemo(()=>s.isEmpty(e.data)?null:e.data,[e.data]);return l.useEffect(()=>{if(r&&i&&e.fitBoundingBox){const a=o.getBoundingBox(i,e.buffer);a&&r.fitBounds(a,e.boundingBoxOptions,e.boundingBoxData)}},[r,e.buffer,e.data,e.boundingBoxData,e.boundingBoxOptions,e.fitBoundingBox]),i?t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[e.animate&&t.jsxRuntimeExports.jsx(u.PulsingMarkerLayer,{data:e.data,id:e.layerId}),t.jsxRuntimeExports.jsx(u.GeoJSONLayer,{cluster:e.cluster,clusterMaxZoom:e.clusterMaxZoom,clusterMinPoints:e.clusterMinPoints,clusterProperties:e.clusterProperties,clusterRadius:e.clusterRadius,data:e.data,fillStyle:e.fillStyle,id:e.layerId,interactive:e.interactive,strokeStyle:e.strokeStyle,pointStyle:e.pointStyle})]}):null};q.defaultProps={buffer:c,fillStyle:n.fill,fitBoundingBox:!0,pointStyle:n.point,strokeStyle:n.stroke};module.exports=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs6.js.map
|
package/dist/index.cjs6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs6.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';\nimport React, { useEffect, useMemo } from 'react';\nimport _ from 'underscore';\nimport MapStyles from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * (Optional) data to pass to the fitToBounds function.\n */\n boundingBoxData?: any,\n\n /**\n * (Optional) options to pass to the fitToBounds function.\n * See [spec](https://maplibre.org/maplibre-gl-js/docs/API/types/FitBoundsOptions/).\n */\n boundingBoxOptions?: any,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * If true, markers will be clustered before the specified zoom level.\n */\n cluster?: boolean,\n\n /**\n * Max zoom to cluster points on.\n */\n clusterMaxZoom?: number,\n\n /**\n * Minimum number of points necessary to form a cluster.\n */\n clusterMinPoints?: number,\n\n /**\n * An object defining custom properties on the generated clusters.\n */\n clusterProperties?: any,\n\n /**\n * Radius of each cluster when clustering point.\n */\n clusterRadius?: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * If `true`, the map will fit the bounding box around the passed data.\n */\n fitBoundingBox?: boolean,\n\n /**\n * An ID value to apply to the layer.\n */\n layerId?: string,\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useMap();\n\n /**\n * Memo-izes the data prop.\n *\n * @type {{[p: string]: *}}\n */\n const data = useMemo(() => (_.isEmpty(props.data) ? null : props.data), [props.data]);\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && data && props.fitBoundingBox) {\n const bbox = MapUtils.getBoundingBox(data, props.buffer);\n\n if (bbox) {\n map.fitBounds(bbox, props.boundingBoxOptions, props.boundingBoxData);\n }\n }\n }, [map, props.buffer, props.data, props.boundingBoxData, props.boundingBoxOptions, props.fitBoundingBox]);\n\n if (!data) {\n return null;\n }\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n id={props.layerId}\n />\n )}\n <GeoJSONLayer\n cluster={props.cluster}\n clusterMaxZoom={props.clusterMaxZoom}\n clusterMinPoints={props.clusterMinPoints}\n clusterProperties={props.clusterProperties}\n clusterRadius={props.clusterRadius}\n data={props.data}\n fillStyle={props.fillStyle}\n id={props.layerId}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: MapStyles.fill,\n fitBoundingBox: true,\n pointStyle: MapStyles.point,\n strokeStyle: MapStyles.stroke\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useMap","data","useMemo","_","useEffect","bbox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","GeoJSONLayer","MapStyles"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs6.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';\nimport React, { useEffect, useMemo } from 'react';\nimport _ from 'underscore';\nimport MapStyles from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * (Optional) data to pass to the fitToBounds function.\n */\n boundingBoxData?: any,\n\n /**\n * (Optional) options to pass to the fitToBounds function.\n * See [spec](https://maplibre.org/maplibre-gl-js/docs/API/types/FitBoundsOptions/).\n */\n boundingBoxOptions?: any,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * If true, markers will be clustered before the specified zoom level.\n */\n cluster?: boolean,\n\n /**\n * Max zoom to cluster points on.\n */\n clusterMaxZoom?: number,\n\n /**\n * Minimum number of points necessary to form a cluster.\n */\n clusterMinPoints?: number,\n\n /**\n * An object defining custom properties on the generated clusters.\n */\n clusterProperties?: any,\n\n /**\n * Radius of each cluster when clustering point.\n */\n clusterRadius?: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * If `true`, the map will fit the bounding box around the passed data.\n */\n fitBoundingBox?: boolean,\n\n /**\n * If `true`, the selection and hover state will apply to the layer.\n */\n interactive?: boolean,\n\n /**\n * An ID value to apply to the layer.\n */\n layerId?: string,\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useMap();\n\n /**\n * Memo-izes the data prop.\n *\n * @type {{[p: string]: *}}\n */\n const data = useMemo(() => (_.isEmpty(props.data) ? null : props.data), [props.data]);\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && data && props.fitBoundingBox) {\n const bbox = MapUtils.getBoundingBox(data, props.buffer);\n\n if (bbox) {\n map.fitBounds(bbox, props.boundingBoxOptions, props.boundingBoxData);\n }\n }\n }, [map, props.buffer, props.data, props.boundingBoxData, props.boundingBoxOptions, props.fitBoundingBox]);\n\n if (!data) {\n return null;\n }\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n id={props.layerId}\n />\n )}\n <GeoJSONLayer\n cluster={props.cluster}\n clusterMaxZoom={props.clusterMaxZoom}\n clusterMinPoints={props.clusterMinPoints}\n clusterProperties={props.clusterProperties}\n clusterRadius={props.clusterRadius}\n data={props.data}\n fillStyle={props.fillStyle}\n id={props.layerId}\n interactive={props.interactive}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: MapStyles.fill,\n fitBoundingBox: true,\n pointStyle: MapStyles.point,\n strokeStyle: MapStyles.stroke\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useMap","data","useMemo","_","useEffect","bbox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","GeoJSONLayer","MapStyles"],"mappings":"w7BA2FMA,EAAiB,EAKjBC,EAAmBC,GAAiB,CACxC,MAAMC,EAAMC,EAAAA,SAONC,EAAOC,EAAA,QAAQ,IAAOC,EAAE,QAAQL,EAAM,IAAI,EAAI,KAAOA,EAAM,KAAO,CAACA,EAAM,IAAI,CAAC,EAepF,OAVAM,EAAAA,UAAU,IAAM,CACV,GAAAL,GAAOE,GAAQH,EAAM,eAAgB,CACvC,MAAMO,EAAOC,EAAS,eAAeL,EAAMH,EAAM,MAAM,EAEnDO,GACFN,EAAI,UAAUM,EAAMP,EAAM,mBAAoBA,EAAM,eAAe,CAEvE,CACC,EAAA,CAACC,EAAKD,EAAM,OAAQA,EAAM,KAAMA,EAAM,gBAAiBA,EAAM,mBAAoBA,EAAM,cAAc,CAAC,EAEpGG,EAMCM,EAAA,kBAAA,KAAAC,6BAAA,CAAA,SAAA,CAAAV,EAAM,SACNW,EAAA,kBAAA,IAACC,EAAA,mBAAA,CACC,KAAMZ,EAAM,KACZ,GAAIA,EAAM,OAAA,CACZ,EAEFW,EAAA,kBAAA,IAACE,EAAA,aAAA,CACC,QAASb,EAAM,QACf,eAAgBA,EAAM,eACtB,iBAAkBA,EAAM,iBACxB,kBAAmBA,EAAM,kBACzB,cAAeA,EAAM,cACrB,KAAMA,EAAM,KACZ,UAAWA,EAAM,UACjB,GAAIA,EAAM,QACV,YAAaA,EAAM,YACnB,YAAaA,EAAM,YACnB,WAAYA,EAAM,UAAA,CACpB,CACF,CAAA,CAAA,EAxBO,IA0BX,EAEAD,EAAgB,aAAe,CAC7B,OAAQD,EACR,UAAWgB,EAAU,KACrB,eAAgB,GAChB,WAAYA,EAAU,MACtB,YAAaA,EAAU,MACzB"}
|
package/dist/index.cjs76.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs205.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs76.js.map
|
package/dist/index.es14.js
CHANGED