@performant-software/geospatial 2.2.20-beta.5 → 2.2.20-beta.6
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.cjs182.js +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs183.js.map +1 -1
- package/dist/index.cjs184.js +1 -4
- package/dist/index.cjs184.js.map +1 -1
- package/dist/index.cjs185.js +1 -1
- package/dist/index.cjs185.js.map +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs186.js.map +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs187.js.map +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs188.js.map +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +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 -1
- 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.cjs207.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs227.js +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.cjs234.js +1 -1
- package/dist/index.cjs234.js.map +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.es182.js +320 -7
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es183.js +71 -144
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es184.js +3 -12197
- package/dist/index.es184.js.map +1 -1
- package/dist/index.es185.js +18 -3
- package/dist/index.es185.js.map +1 -1
- package/dist/index.es186.js +13 -3
- package/dist/index.es186.js.map +1 -1
- package/dist/index.es187.js +28 -33
- package/dist/index.es187.js.map +1 -1
- package/dist/index.es188.js +7 -3
- package/dist/index.es188.js.map +1 -1
- package/dist/index.es189.js +2 -23
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es190.js +10 -2
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +150 -3
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +12199 -2
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +3 -34
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +2 -14
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +35 -13
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +3 -11
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +21 -319
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +2 -77
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +3 -5
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es200.js +2 -18
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +31 -10
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +13 -31
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +13 -4
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +9 -2
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es207.js +1 -1
- package/dist/index.es208.js +1 -1
- package/dist/index.es209.js +1 -1
- package/dist/index.es227.js +1 -1
- package/dist/index.es232.js +46 -3
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +22 -7
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +3 -6
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +4 -44
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +7 -22
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es238.js +1 -1
- package/dist/index.es241.js +1 -1
- package/dist/index.es244.js +1 -1
- package/dist/index.es247.js +2 -2
- package/dist/index.es248.js +1 -1
- package/dist/index.es249.js +2 -2
- package/dist/index.es25.js +1 -1
- package/dist/index.es252.js +1 -1
- package/dist/index.es253.js +1 -1
- package/dist/index.es256.js +4 -15
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +15 -70
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +70 -4
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es55.js +1 -1
- package/dist/index.es57.js +12 -12
- package/dist/index.es66.js +4 -4
- package/dist/index.es67.js +2 -2
- package/dist/index.es68.js +2 -2
- package/dist/index.es69.js +1 -1
- package/dist/index.es70.js +1 -1
- package/dist/index.es71.js +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es78.js +2 -2
- package/dist/index.es79.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs248.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("./index.
|
|
1
|
+
"use strict";const s=require("./index.cjs258.js"),i=require("./index.cjs240.js"),N=s(function(){return!0},P,A,[-i.pi,-i.halfPi]);function P(p){var l=NaN,t=NaN,n=NaN,o;return{lineStart:function(){p.lineStart(),o=1},point:function(c,e){var u=c>0?i.pi:-i.pi,f=i.abs(c-l);i.abs(f-i.pi)<i.epsilon?(p.point(l,t=(t+e)/2>0?i.halfPi:-i.halfPi),p.point(n,t),p.lineEnd(),p.lineStart(),p.point(u,t),p.point(c,t),o=0):n!==u&&f>=i.pi&&(i.abs(l-n)<i.epsilon&&(l-=n*i.epsilon),i.abs(c-u)<i.epsilon&&(c-=u*i.epsilon),t=v(l,t,c,e),p.point(n,t),p.lineEnd(),p.lineStart(),p.point(u,t),o=0),p.point(l=c,t=e),n=u},lineEnd:function(){p.lineEnd(),l=t=NaN},clean:function(){return 2-o}}}function v(p,l,t,n){var o,c,e=i.sin(p-t);return i.abs(e)>i.epsilon?i.atan((i.sin(l)*(c=i.cos(n))*i.sin(t)-i.sin(n)*(o=i.cos(l))*i.sin(p))/(o*c*e)):(l+n)/2}function A(p,l,t,n){var o;if(p==null)o=t*i.halfPi,n.point(-i.pi,o),n.point(0,o),n.point(i.pi,o),n.point(i.pi,0),n.point(i.pi,-o),n.point(0,-o),n.point(-i.pi,-o),n.point(-i.pi,0),n.point(-i.pi,o);else if(i.abs(p[0]-l[0])>i.epsilon){var c=p[0]<l[0]?i.pi:-i.pi;o=t*c/2,n.point(-c,o),n.point(0,o),n.point(c,o)}else n.point(l[0],l[1])}module.exports=N;
|
|
2
2
|
//# sourceMappingURL=index.cjs248.js.map
|
package/dist/index.cjs249.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.cjs239.js"),Q=require("./index.cjs238.js"),e=require("./index.cjs240.js"),j=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs239.js"),Q=require("./index.cjs238.js"),e=require("./index.cjs240.js"),j=require("./index.cjs256.js"),T=require("./index.cjs258.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.cjs249.js.map
|
package/dist/index.cjs25.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs23.js"),e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs23.js"),e=require("./index.cjs234.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.cjs25.js.map
|
package/dist/index.cjs252.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index.cjs254.js"),s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index.cjs254.js"),s=require("./index.cjs257.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.cjs252.js.map
|
package/dist/index.cjs253.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const H=require("./index.cjs239.js"),o=require("./index.cjs240.js"),I=require("./index.
|
|
1
|
+
"use strict";const H=require("./index.cjs239.js"),o=require("./index.cjs240.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.cjs253.js.map
|
package/dist/index.cjs256.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("./index.cjs240.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.cjs256.js.map
|
package/dist/index.cjs256.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs256.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs256.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.cjs257.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("./index.cjs255.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.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/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.cjs258.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const w=require("./index.cjs242.js"),z=require("./index.cjs244.js"),g=require("./index.cjs240.js"),A=require("./index.cjs197.js");require("./index.cjs196.js");const D=require("./index.cjs245.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.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/clip/index.js"],"sourcesContent":["import clipBuffer from \"./buffer\";\nimport clipPolygon from \"./polygon\";\nimport {epsilon, halfPi} from \"../math\";\nimport polygonContains from \"../polygonContains\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(rotate, sink) {\n var line = clipLine(sink),\n rotatedStart = rotate.invert(start[0], start[1]),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, rotatedStart);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipPolygon(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n var point = rotate(lambda, phi);\n if (pointVisible(lambda = point[0], phi = point[1])) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n var point = rotate(lambda, phi);\n line.point(point[0], point[1]);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n var point = rotate(lambda, phi);\n ringSink.point(point[0], point[1]);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n"],"names":["clip","pointVisible","clipLine","interpolate","start","rotate","sink","line","rotatedStart","ringBuffer","clipBuffer","ringSink","polygonStarted","polygon","segments","ring","point","lineStart","lineEnd","pointRing","ringStart","ringEnd","merge","startInside","polygonContains","clipPolygon","compareIntersection","lambda","phi","pointLine","clean","ringSegments","n","m","segment","validSegment","a","b","halfPi","epsilon"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index.cjs55.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.cjs55.js.map
|
package/dist/index.cjs57.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.cjs53.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.cjs57.js.map
|
package/dist/index.cjs66.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),g=require("./index.cjs74.js"),m=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),g=require("./index.cjs74.js"),m=require("./index.cjs182.js"),y=require("./index.cjs183.js"),E=require("./index.cjs184.js"),x=require("./index.cjs185.js");function w(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(u,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return u.default=e,Object.freeze(u)}const c=w(a),M=c.createContext(null);function L(e,u,i){const t=a.useContext(g.MountedMapsContext),[s,b]=a.useState(null),f=a.useRef(),{current:l}=a.useRef({mapLib:null,map:null});a.useEffect(()=>{const h=e.mapLib;let d=!0,r;return Promise.resolve(h||i).then(o=>{if(!d)return;if(!o)throw new Error("Invalid mapLib");const n="Map"in o?o:o.default;if(!n.Map)throw new Error("Invalid mapLib");if(x(n,e),!n.supported||n.supported(e))e.reuseMaps&&(r=m.reuse(e,f.current)),r||(r=new m(n.Map,e,f.current)),l.map=y(r),l.mapLib=n,b(r),t==null||t.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(o=>{const{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:o}):console.error(o)}),()=>{d=!1,r&&(t==null||t.onMapUnmount(e.id),e.reuseMaps?r.recycle():r.destroy())}},[]),E(()=>{s&&s.setProps(e)}),a.useImperativeHandle(u,()=>l.map,[s]);const p=a.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),v={height:"100%"};return c.createElement("div",{id:e.id,ref:f,style:p},s&&c.createElement(M.Provider,{value:l},c.createElement("div",{"mapboxgl-children":"",style:v},e.children)))}exports.MapContext=M;exports.default=L;
|
|
2
2
|
//# sourceMappingURL=index.cjs66.js.map
|
package/dist/index.cjs67.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const o=require("react"),y=require("react-dom"),k=require("./index.
|
|
1
|
+
"use strict";const o=require("react"),y=require("react-dom"),k=require("./index.cjs186.js"),D=require("./index.cjs66.js"),P=require("./index.cjs187.js");function q(n){const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(g,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return g.default=n,Object.freeze(g)}const O=q(o);function A(n,g){const{map:c,mapLib:s}=o.useContext(D.MapContext),u=o.useRef({props:n});u.current.props=n;const t=o.useMemo(()=>{let _=!1;O.Children.forEach(n.children,r=>{r&&(_=!0)});const h={...n,element:_?document.createElement("div"):null},i=new s.Marker(h);return i.setLngLat([n.longitude,n.latitude]),i.getElement().addEventListener("click",r=>{var a,e;(e=(a=u.current.props).onClick)===null||e===void 0||e.call(a,{type:"click",target:i,originalEvent:r})}),i.on("dragstart",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragStart)===null||e===void 0||e.call(a,l)}),i.on("drag",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDrag)===null||e===void 0||e.call(a,l)}),i.on("dragend",r=>{var a,e;const l=r;l.lngLat=t.getLngLat(),(e=(a=u.current.props).onDragEnd)===null||e===void 0||e.call(a,l)}),i},[]);o.useEffect(()=>(t.addTo(c.getMap()),()=>{t.remove()}),[]);const{longitude:f,latitude:m,offset:d,style:p,draggable:v=!1,popup:L=null,rotation:b=0,rotationAlignment:E="auto",pitchAlignment:R="auto"}=n;return o.useEffect(()=>{k.applyReactStyle(t.getElement(),p)},[p]),o.useImperativeHandle(g,()=>t,[]),(t.getLngLat().lng!==f||t.getLngLat().lat!==m)&&t.setLngLat([f,m]),d&&!P.arePointsEqual(t.getOffset(),d)&&t.setOffset(d),t.isDraggable()!==v&&t.setDraggable(v),t.getRotation()!==b&&t.setRotation(b),t.getRotationAlignment()!==E&&t.setRotationAlignment(E),t.getPitchAlignment()!==R&&t.setPitchAlignment(R),t.getPopup()!==L&&t.setPopup(L),y.createPortal(n.children,t.getElement())}o.memo(o.forwardRef(A));
|
|
2
2
|
//# sourceMappingURL=index.cjs67.js.map
|
package/dist/index.cjs68.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const g=require("react-dom"),a=require("react"),h=require("./index.
|
|
1
|
+
"use strict";const g=require("react-dom"),a=require("react"),h=require("./index.cjs186.js"),L=require("./index.cjs66.js"),v=require("./index.cjs187.js");function f(e){return new Set(e?e.trim().split(/\s+/):[])}function C(e,r){const{map:m,mapLib:d}=a.useContext(L.MapContext),u=a.useMemo(()=>document.createElement("div"),[]),c=a.useRef({props:e});c.current.props=e;const t=a.useMemo(()=>{const s={...e},o=new d.Popup(s);return o.setLngLat([e.longitude,e.latitude]),o.once("open",n=>{var i,l;(l=(i=c.current.props).onOpen)===null||l===void 0||l.call(i,n)}),o},[]);if(a.useEffect(()=>{const s=o=>{var n,i;(i=(n=c.current.props).onClose)===null||i===void 0||i.call(n,o)};return t.on("close",s),t.setDOMContent(u).addTo(m.getMap()),()=>{t.off("close",s),t.isOpen()&&t.remove()}},[]),a.useEffect(()=>{h.applyReactStyle(t.getElement(),e.style)},[e.style]),a.useImperativeHandle(r,()=>t,[]),t.isOpen()&&((t.getLngLat().lng!==e.longitude||t.getLngLat().lat!==e.latitude)&&t.setLngLat([e.longitude,e.latitude]),e.offset&&!v.deepEqual(t.options.offset,e.offset)&&t.setOffset(e.offset),(t.options.anchor!==e.anchor||t.options.maxWidth!==e.maxWidth)&&(t.options.anchor=e.anchor,t.setMaxWidth(e.maxWidth)),t.options.className!==e.className)){const s=f(t.options.className),o=f(e.className);for(const n of s)o.has(n)||t.removeClassName(n);for(const n of o)s.has(n)||t.addClassName(n);t.options.className=e.className}return g.createPortal(e.children,u)}a.memo(a.forwardRef(C));
|
|
2
2
|
//# sourceMappingURL=index.cjs68.js.map
|
package/dist/index.cjs69.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react"),i=require("./index.
|
|
1
|
+
"use strict";const e=require("react"),i=require("./index.cjs186.js"),r=require("./index.cjs16.js");function c(t){const n=r(({mapLib:o})=>new o.AttributionControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(c);
|
|
2
2
|
//# sourceMappingURL=index.cjs69.js.map
|
package/dist/index.cjs70.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("react"),l=require("./index.
|
|
1
|
+
"use strict";const t=require("react"),l=require("./index.cjs186.js"),c=require("./index.cjs16.js");function r(e){const n=c(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return t.useEffect(()=>{l.applyReactStyle(n._controlContainer,e.style)},[e.style]),null}const i=t.memo(r);module.exports=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs70.js.map
|
package/dist/index.cjs71.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const c=require("react"),d=require("./index.
|
|
1
|
+
"use strict";const c=require("react"),d=require("./index.cjs186.js"),v=require("./index.cjs16.js");function _(n,u){const a=c.useRef({props:n}),l=v(({mapLib:s})=>{const r=new s.GeolocateControl(n),i=r._setupUI;return r._setupUI=t=>{r._container.hasChildNodes()||i(t)},r.on("geolocate",t=>{var e,o;(o=(e=a.current.props).onGeolocate)===null||o===void 0||o.call(e,t)}),r.on("error",t=>{var e,o;(o=(e=a.current.props).onError)===null||o===void 0||o.call(e,t)}),r.on("outofmaxbounds",t=>{var e,o;(o=(e=a.current.props).onOutOfMaxBounds)===null||o===void 0||o.call(e,t)}),r.on("trackuserlocationstart",t=>{var e,o;(o=(e=a.current.props).onTrackUserLocationStart)===null||o===void 0||o.call(e,t)}),r.on("trackuserlocationend",t=>{var e,o;(o=(e=a.current.props).onTrackUserLocationEnd)===null||o===void 0||o.call(e,t)}),r},{position:n.position});return a.current.props=n,c.useImperativeHandle(u,()=>l,[]),c.useEffect(()=>{d.applyReactStyle(l._container,n.style)},[n.style]),null}c.memo(c.forwardRef(_));
|
|
2
2
|
//# sourceMappingURL=index.cjs71.js.map
|
package/dist/index.cjs72.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react"),i=require("./index.
|
|
1
|
+
"use strict";const e=require("react"),i=require("./index.cjs186.js"),c=require("./index.cjs16.js");function l(t){const n=c(({mapLib:o})=>new o.NavigationControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}const r=e.memo(l);module.exports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs72.js.map
|
package/dist/index.cjs73.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("react"),a=require("./index.
|
|
1
|
+
"use strict";const n=require("react"),a=require("./index.cjs186.js"),l=require("./index.cjs16.js");function r(t){const e=l(({mapLib:u})=>new u.ScaleControl(t),{position:t.position}),i=n.useRef(t),c=i.current;i.current=t;const{style:o}=t;return t.maxWidth!==void 0&&t.maxWidth!==c.maxWidth&&(e.options.maxWidth=t.maxWidth),t.unit!==void 0&&t.unit!==c.unit&&e.setUnit(t.unit),n.useEffect(()=>{a.applyReactStyle(e._container,o)},[o]),null}n.memo(r);
|
|
2
2
|
//# sourceMappingURL=index.cjs73.js.map
|
package/dist/index.cjs77.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.cjs189.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.cjs77.js.map
|
package/dist/index.cjs78.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("react"),m=require("./index.cjs66.js"),L=require("./index.
|
|
1
|
+
"use strict";const u=require("react"),m=require("./index.cjs66.js"),L=require("./index.cjs188.js"),s=require("./index.cjs187.js");function q(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:l,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)s.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)s.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}s.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||l!==o.maxzoom)&&t.setLayerZoomRange(e,f,l)}function g(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let x=0;function h(t){const e=u.useContext(m.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${x++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{q(e,r,t,a.current)}catch(y){console.warn(y)}else g(e,r,t);return a.current=t,null}module.exports=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs78.js.map
|
package/dist/index.cjs79.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const l=require("react"),f=require("./index.cjs66.js"),d=require("./index.
|
|
1
|
+
"use strict";const l=require("react"),f=require("./index.cjs66.js"),d=require("./index.cjs188.js"),y=require("./index.cjs187.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const S=g(l);let m=0;function b(t,e,n){if(t.style&&t.style._loaded){const o={...n};return delete o.id,delete o.children,t.addSource(e,o),t.getSource(e)}return null}function h(t,e,n){d(e.id===n.id,"source id changed"),d(e.type===n.type,"source type changed");let o="",c=0;for(const r in e)r!=="children"&&r!=="id"&&!y.deepEqual(n[r],e[r])&&(o=r,c++);if(!c)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else if("setCoordinates"in t&&c===1&&o==="coordinates")t.setCoordinates(e.coordinates);else if("setUrl"in t)switch(o){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles);break}else console.warn(`Unable to update <Source> prop: ${o}`)}function C(t){const e=l.useContext(f.MapContext).map.getMap(),n=l.useRef(t),[,o]=l.useState(0),c=l.useMemo(()=>t.id||`jsx-source-${m++}`,[]);l.useEffect(()=>{if(e){const r=()=>setTimeout(()=>o(i=>i+1),0);return e.on("styledata",r),r(),()=>{var i;if(e.off("styledata",r),e.style&&e.style._loaded&&e.getSource(c)){const u=(i=e.getStyle())===null||i===void 0?void 0:i.layers;if(u)for(const s of u)s.source===c&&e.removeLayer(s.id);e.removeSource(c)}}}},[e]);let a=e&&e.style&&e.getSource(c);return a?h(a,t,n.current):a=b(e,c,t),n.current=t,a&&S.Children.map(t.children,r=>r&&l.cloneElement(r,{source:c}))||null}module.exports=C;
|
|
2
2
|
//# sourceMappingURL=index.cjs79.js.map
|
package/dist/index.es182.js
CHANGED
|
@@ -1,11 +1,324 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { syncProjection as f, cloneTransform as T, applyViewStateToTransform as p, transformToViewState as _ } from "./index.es232.js";
|
|
2
|
+
import { normalizeStyle as v } from "./index.es233.js";
|
|
3
|
+
import { deepEqual as h } from "./index.es187.js";
|
|
4
|
+
const g = { version: 8, sources: {}, layers: [] }, y = {
|
|
5
|
+
mousedown: "onMouseDown",
|
|
6
|
+
mouseup: "onMouseUp",
|
|
7
|
+
mouseover: "onMouseOver",
|
|
8
|
+
mousemove: "onMouseMove",
|
|
9
|
+
click: "onClick",
|
|
10
|
+
dblclick: "onDblClick",
|
|
11
|
+
mouseenter: "onMouseEnter",
|
|
12
|
+
mouseleave: "onMouseLeave",
|
|
13
|
+
mouseout: "onMouseOut",
|
|
14
|
+
contextmenu: "onContextMenu",
|
|
15
|
+
touchstart: "onTouchStart",
|
|
16
|
+
touchend: "onTouchEnd",
|
|
17
|
+
touchmove: "onTouchMove",
|
|
18
|
+
touchcancel: "onTouchCancel"
|
|
19
|
+
}, u = {
|
|
20
|
+
movestart: "onMoveStart",
|
|
21
|
+
move: "onMove",
|
|
22
|
+
moveend: "onMoveEnd",
|
|
23
|
+
dragstart: "onDragStart",
|
|
24
|
+
drag: "onDrag",
|
|
25
|
+
dragend: "onDragEnd",
|
|
26
|
+
zoomstart: "onZoomStart",
|
|
27
|
+
zoom: "onZoom",
|
|
28
|
+
zoomend: "onZoomEnd",
|
|
29
|
+
rotatestart: "onRotateStart",
|
|
30
|
+
rotate: "onRotate",
|
|
31
|
+
rotateend: "onRotateEnd",
|
|
32
|
+
pitchstart: "onPitchStart",
|
|
33
|
+
pitch: "onPitch",
|
|
34
|
+
pitchend: "onPitchEnd"
|
|
35
|
+
}, S = {
|
|
36
|
+
wheel: "onWheel",
|
|
37
|
+
boxzoomstart: "onBoxZoomStart",
|
|
38
|
+
boxzoomend: "onBoxZoomEnd",
|
|
39
|
+
boxzoomcancel: "onBoxZoomCancel",
|
|
40
|
+
resize: "onResize",
|
|
41
|
+
load: "onLoad",
|
|
42
|
+
render: "onRender",
|
|
43
|
+
idle: "onIdle",
|
|
44
|
+
remove: "onRemove",
|
|
45
|
+
data: "onData",
|
|
46
|
+
styledata: "onStyleData",
|
|
47
|
+
sourcedata: "onSourceData",
|
|
48
|
+
error: "onError"
|
|
49
|
+
}, E = [
|
|
50
|
+
"minZoom",
|
|
51
|
+
"maxZoom",
|
|
52
|
+
"minPitch",
|
|
53
|
+
"maxPitch",
|
|
54
|
+
"maxBounds",
|
|
55
|
+
"projection",
|
|
56
|
+
"renderWorldCopies"
|
|
57
|
+
], C = [
|
|
58
|
+
"scrollZoom",
|
|
59
|
+
"boxZoom",
|
|
60
|
+
"dragRotate",
|
|
61
|
+
"dragPan",
|
|
62
|
+
"keyboard",
|
|
63
|
+
"doubleClickZoom",
|
|
64
|
+
"touchZoomRotate",
|
|
65
|
+
"touchPitch"
|
|
66
|
+
];
|
|
67
|
+
class m {
|
|
68
|
+
constructor(e, o, n) {
|
|
69
|
+
this._map = null, this._internalUpdate = !1, this._inRender = !1, this._hoveredFeatures = null, this._deferredEvents = {
|
|
70
|
+
move: !1,
|
|
71
|
+
zoom: !1,
|
|
72
|
+
pitch: !1,
|
|
73
|
+
rotate: !1
|
|
74
|
+
}, this._onEvent = (t) => {
|
|
75
|
+
const r = this.props[S[t.type]];
|
|
76
|
+
r ? r(t) : t.type === "error" && console.error(t.error);
|
|
77
|
+
}, this._onPointerEvent = (t) => {
|
|
78
|
+
(t.type === "mousemove" || t.type === "mouseout") && this._updateHover(t);
|
|
79
|
+
const r = this.props[y[t.type]];
|
|
80
|
+
r && (this.props.interactiveLayerIds && t.type !== "mouseover" && t.type !== "mouseout" && (t.features = this._hoveredFeatures || this._queryRenderedFeatures(t.point)), r(t), delete t.features);
|
|
81
|
+
}, this._onCameraEvent = (t) => {
|
|
82
|
+
if (!this._internalUpdate) {
|
|
83
|
+
const r = this.props[u[t.type]];
|
|
84
|
+
r && r(t);
|
|
85
|
+
}
|
|
86
|
+
t.type in this._deferredEvents && (this._deferredEvents[t.type] = !1);
|
|
87
|
+
}, this._MapClass = e, this.props = o, this._initialize(n);
|
|
88
|
+
}
|
|
89
|
+
get map() {
|
|
90
|
+
return this._map;
|
|
91
|
+
}
|
|
92
|
+
get transform() {
|
|
93
|
+
return this._renderTransform;
|
|
94
|
+
}
|
|
95
|
+
setProps(e) {
|
|
96
|
+
const o = this.props;
|
|
97
|
+
this.props = e;
|
|
98
|
+
const n = this._updateSettings(e, o);
|
|
99
|
+
n && this._createShadowTransform(this._map);
|
|
100
|
+
const t = this._updateSize(e), r = this._updateViewState(e, !0);
|
|
101
|
+
this._updateStyle(e, o), this._updateStyleComponents(e, o), this._updateHandlers(e, o), (n || t || r && !this._map.isMoving()) && this.redraw();
|
|
102
|
+
}
|
|
103
|
+
static reuse(e, o) {
|
|
104
|
+
const n = m.savedMaps.pop();
|
|
105
|
+
if (!n)
|
|
106
|
+
return null;
|
|
107
|
+
const t = n.map, r = t.getContainer();
|
|
108
|
+
for (o.className = r.className; r.childNodes.length > 0; )
|
|
109
|
+
o.appendChild(r.childNodes[0]);
|
|
110
|
+
t._container = o;
|
|
111
|
+
const s = t._resizeObserver;
|
|
112
|
+
s && (s.disconnect(), s.observe(o)), n.setProps({ ...e, styleDiffing: !1 }), t.resize();
|
|
113
|
+
const { initialViewState: i } = e;
|
|
114
|
+
return i && (i.bounds ? t.fitBounds(i.bounds, { ...i.fitBoundsOptions, duration: 0 }) : n._updateViewState(i, !1)), t.isStyleLoaded() ? t.fire("load") : t.once("styledata", () => t.fire("load")), t._update(), n;
|
|
115
|
+
}
|
|
116
|
+
/* eslint-disable complexity,max-statements */
|
|
117
|
+
_initialize(e) {
|
|
118
|
+
const { props: o } = this, { mapStyle: n = g } = o, t = {
|
|
119
|
+
...o,
|
|
120
|
+
...o.initialViewState,
|
|
121
|
+
accessToken: o.mapboxAccessToken || M() || null,
|
|
122
|
+
container: e,
|
|
123
|
+
style: v(n)
|
|
124
|
+
}, r = t.initialViewState || t.viewState || t;
|
|
125
|
+
if (Object.assign(t, {
|
|
126
|
+
center: [r.longitude || 0, r.latitude || 0],
|
|
127
|
+
zoom: r.zoom || 0,
|
|
128
|
+
pitch: r.pitch || 0,
|
|
129
|
+
bearing: r.bearing || 0
|
|
130
|
+
}), o.gl) {
|
|
131
|
+
const a = HTMLCanvasElement.prototype.getContext;
|
|
132
|
+
HTMLCanvasElement.prototype.getContext = () => (HTMLCanvasElement.prototype.getContext = a, o.gl);
|
|
133
|
+
}
|
|
134
|
+
const s = new this._MapClass(t);
|
|
135
|
+
r.padding && s.setPadding(r.padding), o.cursor && (s.getCanvas().style.cursor = o.cursor), this._createShadowTransform(s);
|
|
136
|
+
const i = s._render;
|
|
137
|
+
s._render = (a) => {
|
|
138
|
+
this._inRender = !0, i.call(s, a), this._inRender = !1;
|
|
139
|
+
};
|
|
140
|
+
const c = s._renderTaskQueue.run;
|
|
141
|
+
s._renderTaskQueue.run = (a) => {
|
|
142
|
+
c.call(s._renderTaskQueue, a), this._onBeforeRepaint();
|
|
143
|
+
}, s.on("render", () => this._onAfterRepaint());
|
|
144
|
+
const l = s.fire;
|
|
145
|
+
s.fire = this._fireEvent.bind(this, l), s.on("resize", () => {
|
|
146
|
+
this._renderTransform.resize(s.transform.width, s.transform.height);
|
|
147
|
+
}), s.on("styledata", () => {
|
|
148
|
+
this._updateStyleComponents(this.props, {}), f(s.transform, this._renderTransform);
|
|
149
|
+
}), s.on("sourcedata", () => this._updateStyleComponents(this.props, {}));
|
|
150
|
+
for (const a in y)
|
|
151
|
+
s.on(a, this._onPointerEvent);
|
|
152
|
+
for (const a in u)
|
|
153
|
+
s.on(a, this._onCameraEvent);
|
|
154
|
+
for (const a in S)
|
|
155
|
+
s.on(a, this._onEvent);
|
|
156
|
+
this._map = s;
|
|
157
|
+
}
|
|
158
|
+
/* eslint-enable complexity,max-statements */
|
|
159
|
+
recycle() {
|
|
160
|
+
const o = this.map.getContainer().querySelector("[mapboxgl-children]");
|
|
161
|
+
o == null || o.remove(), m.savedMaps.push(this);
|
|
162
|
+
}
|
|
163
|
+
destroy() {
|
|
164
|
+
this._map.remove();
|
|
165
|
+
}
|
|
166
|
+
// Force redraw the map now. Typically resize() and jumpTo() is reflected in the next
|
|
167
|
+
// render cycle, which is managed by Mapbox's animation loop.
|
|
168
|
+
// This removes the synchronization issue caused by requestAnimationFrame.
|
|
169
|
+
redraw() {
|
|
170
|
+
const e = this._map;
|
|
171
|
+
!this._inRender && e.style && (e._frame && (e._frame.cancel(), e._frame = null), e._render());
|
|
172
|
+
}
|
|
173
|
+
_createShadowTransform(e) {
|
|
174
|
+
const o = T(e.transform);
|
|
175
|
+
e.painter.transform = o, this._renderTransform = o;
|
|
176
|
+
}
|
|
177
|
+
/* Trigger map resize if size is controlled
|
|
178
|
+
@param {object} nextProps
|
|
179
|
+
@returns {bool} true if size has changed
|
|
180
|
+
*/
|
|
181
|
+
_updateSize(e) {
|
|
182
|
+
const { viewState: o } = e;
|
|
183
|
+
if (o) {
|
|
184
|
+
const n = this._map;
|
|
185
|
+
if (o.width !== n.transform.width || o.height !== n.transform.height)
|
|
186
|
+
return n.resize(), !0;
|
|
187
|
+
}
|
|
188
|
+
return !1;
|
|
189
|
+
}
|
|
190
|
+
// Adapted from map.jumpTo
|
|
191
|
+
/* Update camera to match props
|
|
192
|
+
@param {object} nextProps
|
|
193
|
+
@param {bool} triggerEvents - should fire camera events
|
|
194
|
+
@returns {bool} true if anything is changed
|
|
195
|
+
*/
|
|
196
|
+
_updateViewState(e, o) {
|
|
197
|
+
if (this._internalUpdate)
|
|
198
|
+
return !1;
|
|
199
|
+
const n = this._map, t = this._renderTransform, { zoom: r, pitch: s, bearing: i } = t, c = n.isMoving();
|
|
200
|
+
c && (t.cameraElevationReference = "sea");
|
|
201
|
+
const l = p(t, {
|
|
202
|
+
..._(n.transform),
|
|
203
|
+
...e
|
|
204
|
+
});
|
|
205
|
+
if (c && (t.cameraElevationReference = "ground"), l && o) {
|
|
206
|
+
const a = this._deferredEvents;
|
|
207
|
+
a.move = !0, a.zoom || (a.zoom = r !== t.zoom), a.rotate || (a.rotate = i !== t.bearing), a.pitch || (a.pitch = s !== t.pitch);
|
|
208
|
+
}
|
|
209
|
+
return c || p(n.transform, e), l;
|
|
210
|
+
}
|
|
211
|
+
/* Update camera constraints and projection settings to match props
|
|
212
|
+
@param {object} nextProps
|
|
213
|
+
@param {object} currProps
|
|
214
|
+
@returns {bool} true if anything is changed
|
|
215
|
+
*/
|
|
216
|
+
_updateSettings(e, o) {
|
|
217
|
+
const n = this._map;
|
|
218
|
+
let t = !1;
|
|
219
|
+
for (const r of E)
|
|
220
|
+
if (r in e && !h(e[r], o[r])) {
|
|
221
|
+
t = !0;
|
|
222
|
+
const s = n[`set${r[0].toUpperCase()}${r.slice(1)}`];
|
|
223
|
+
s == null || s.call(n, e[r]);
|
|
224
|
+
}
|
|
225
|
+
return t;
|
|
226
|
+
}
|
|
227
|
+
/* Update map style to match props
|
|
228
|
+
@param {object} nextProps
|
|
229
|
+
@param {object} currProps
|
|
230
|
+
@returns {bool} true if style is changed
|
|
231
|
+
*/
|
|
232
|
+
_updateStyle(e, o) {
|
|
233
|
+
if (e.cursor !== o.cursor && (this._map.getCanvas().style.cursor = e.cursor || ""), e.mapStyle !== o.mapStyle) {
|
|
234
|
+
const { mapStyle: n = g, styleDiffing: t = !0 } = e, r = {
|
|
235
|
+
diff: t
|
|
236
|
+
};
|
|
237
|
+
return "localIdeographFontFamily" in e && (r.localIdeographFontFamily = e.localIdeographFontFamily), this._map.setStyle(v(n), r), !0;
|
|
238
|
+
}
|
|
239
|
+
return !1;
|
|
240
|
+
}
|
|
241
|
+
/* Update fog, light and terrain to match props
|
|
242
|
+
@param {object} nextProps
|
|
243
|
+
@param {object} currProps
|
|
244
|
+
@returns {bool} true if anything is changed
|
|
245
|
+
*/
|
|
246
|
+
_updateStyleComponents(e, o) {
|
|
247
|
+
const n = this._map;
|
|
248
|
+
let t = !1;
|
|
249
|
+
return n.isStyleLoaded() && ("light" in e && n.setLight && !h(e.light, o.light) && (t = !0, n.setLight(e.light)), "fog" in e && n.setFog && !h(e.fog, o.fog) && (t = !0, n.setFog(e.fog)), "terrain" in e && n.setTerrain && !h(e.terrain, o.terrain) && (!e.terrain || n.getSource(e.terrain.source)) && (t = !0, n.setTerrain(e.terrain))), t;
|
|
250
|
+
}
|
|
251
|
+
/* Update interaction handlers to match props
|
|
252
|
+
@param {object} nextProps
|
|
253
|
+
@param {object} currProps
|
|
254
|
+
@returns {bool} true if anything is changed
|
|
255
|
+
*/
|
|
256
|
+
_updateHandlers(e, o) {
|
|
257
|
+
var n, t;
|
|
258
|
+
const r = this._map;
|
|
259
|
+
let s = !1;
|
|
260
|
+
for (const i of C) {
|
|
261
|
+
const c = (n = e[i]) !== null && n !== void 0 ? n : !0, l = (t = o[i]) !== null && t !== void 0 ? t : !0;
|
|
262
|
+
h(c, l) || (s = !0, c ? r[i].enable(c) : r[i].disable());
|
|
263
|
+
}
|
|
264
|
+
return s;
|
|
265
|
+
}
|
|
266
|
+
_queryRenderedFeatures(e) {
|
|
267
|
+
const o = this._map, n = o.transform, { interactiveLayerIds: t = [] } = this.props;
|
|
268
|
+
try {
|
|
269
|
+
return o.transform = this._renderTransform, o.queryRenderedFeatures(e, {
|
|
270
|
+
layers: t.filter(o.getLayer.bind(o))
|
|
271
|
+
});
|
|
272
|
+
} catch {
|
|
273
|
+
return [];
|
|
274
|
+
} finally {
|
|
275
|
+
o.transform = n;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
_updateHover(e) {
|
|
279
|
+
var o;
|
|
280
|
+
const { props: n } = this;
|
|
281
|
+
if (n.interactiveLayerIds && (n.onMouseMove || n.onMouseEnter || n.onMouseLeave)) {
|
|
282
|
+
const r = e.type, s = ((o = this._hoveredFeatures) === null || o === void 0 ? void 0 : o.length) > 0, i = this._queryRenderedFeatures(e.point), c = i.length > 0;
|
|
283
|
+
!c && s && (e.type = "mouseleave", this._onPointerEvent(e)), this._hoveredFeatures = i, c && !s && (e.type = "mouseenter", this._onPointerEvent(e)), e.type = r;
|
|
284
|
+
} else
|
|
285
|
+
this._hoveredFeatures = null;
|
|
286
|
+
}
|
|
287
|
+
_fireEvent(e, o, n) {
|
|
288
|
+
const t = this._map, r = t.transform, s = typeof o == "string" ? o : o.type;
|
|
289
|
+
return s === "move" && this._updateViewState(this.props, !1), s in u && (typeof o == "object" && (o.viewState = _(r)), this._map.isMoving()) ? (t.transform = this._renderTransform, e.call(t, o, n), t.transform = r, t) : (e.call(t, o, n), t);
|
|
290
|
+
}
|
|
291
|
+
// All camera manipulations are complete, ready to repaint
|
|
292
|
+
_onBeforeRepaint() {
|
|
293
|
+
const e = this._map;
|
|
294
|
+
this._internalUpdate = !0;
|
|
295
|
+
for (const n in this._deferredEvents)
|
|
296
|
+
this._deferredEvents[n] && e.fire(n);
|
|
297
|
+
this._internalUpdate = !1;
|
|
298
|
+
const o = this._map.transform;
|
|
299
|
+
e.transform = this._renderTransform, this._onAfterRepaint = () => {
|
|
300
|
+
f(this._renderTransform, o), e.transform = o;
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
m.savedMaps = [];
|
|
305
|
+
function M() {
|
|
306
|
+
let d = null;
|
|
307
|
+
if (typeof location < "u") {
|
|
308
|
+
const e = /access_token=([^&\/]*)/.exec(location.search);
|
|
309
|
+
d = e && e[1];
|
|
310
|
+
}
|
|
311
|
+
try {
|
|
312
|
+
d = d || process.env.MapboxAccessToken;
|
|
313
|
+
} catch {
|
|
314
|
+
}
|
|
315
|
+
try {
|
|
316
|
+
d = d || process.env.REACT_APP_MAPBOX_ACCESS_TOKEN;
|
|
317
|
+
} catch {
|
|
318
|
+
}
|
|
319
|
+
return d;
|
|
7
320
|
}
|
|
8
321
|
export {
|
|
9
|
-
|
|
322
|
+
m as default
|
|
10
323
|
};
|
|
11
324
|
//# sourceMappingURL=index.es182.js.map
|