@performant-software/geospatial 3.1.4 → 3.1.5-beta.2
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.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +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.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 +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +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.cjs20.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs236.js +1 -7
- 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.cjs238.js +7 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs239.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs240.js.map +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs241.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs247.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.cjs255.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs262.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs78.js +1 -743
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs80.js +743 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.es15.js +4 -4
- package/dist/index.es16.js +3 -3
- package/dist/index.es17.js +3 -3
- package/dist/index.es18.js +1 -1
- package/dist/index.es186.js +239 -144
- package/dist/index.es186.js.map +1 -1
- package/dist/index.es187.js +42 -6
- package/dist/index.es187.js.map +1 -1
- package/dist/index.es188.js +3 -5
- package/dist/index.es188.js.map +1 -1
- package/dist/index.es189.js +13 -3
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +13 -3
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +28 -33
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +16 -3
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +4 -22
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +150 -2
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +9 -3
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +7 -2
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +3 -33
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +2 -14
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +35 -13
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es200.js +3 -11
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +22 -242
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +2 -45
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +3 -5
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +2 -13
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +30 -10
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +13 -31
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +13 -13
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +8 -4
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es211.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es231.js +1 -1
- package/dist/index.es236.js +20 -7506
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +23 -2
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es238.js +7506 -20
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +2 -23
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es240.js +8 -3
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +3 -8
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es244.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es250.js +1 -1
- package/dist/index.es253.js +2 -2
- package/dist/index.es254.js +1 -1
- package/dist/index.es255.js +2 -2
- package/dist/index.es258.js +1 -1
- package/dist/index.es259.js +1 -1
- package/dist/index.es262.js +15 -4
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +69 -15
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +4 -69
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es28.js +2 -2
- package/dist/index.es29.js +2 -2
- package/dist/index.es31.js +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es34.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es68.js +1 -1
- package/dist/index.es70.js +12 -12
- package/dist/index.es78.js +104 -21350
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +10 -2
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +21350 -104
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +2 -10
- package/dist/index.es81.js.map +1 -1
- package/package.json +1 -1
- package/types/components/LocationMarker.js.flow +0 -82
package/dist/index.cjs199.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index.cjs256.js"),n=require("./index.cjs246.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.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/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,CACrC,MAAO,CAACD,EAASE,KAAKF,EAASG,EAAAA,IAAMH,EAAS,CAACE,EAAAA,GAAKF,EAASG,MAAMH,EAAQC,CAAG,CAChF,CAEAF,EAAiB,OAASA,EAEnB,SAASK,EAAcC,EAAaC,EAAUC,EAAY,CAC/D,OAAQF,GAAeF,EAAAA,KAAQG,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,CAC1C,OAAO,SAASL,EAAQC,EAAK,CAC3B,OAAOD,GAAUK,EAAa,CAACL,EAASE,EAAAA,GAAKF,EAASG,EAAAA,IAAMH,EAAS,CAACE,EAAAA,GAAKF,EAASG,EAAAA,IAAMH,EAAQC,CAAG,CACvG,CACF,CAEA,SAASQ,EAAeJ,EAAa,CACnC,IAAIO,EAAWD,EAAsBN,CAAW,EAChD,OAAAO,EAAS,OAASD,EAAsB,CAACN,CAAW,EAC7CO,CACT,CAEA,SAASF,EAAiBJ,EAAUC,EAAY,CAC9C,IAAIM,EAAcC,EAAAA,IAAIR,CAAQ,EAC1BS,EAAcC,EAAAA,IAAIV,CAAQ,EAC1BW,EAAgBH,EAAAA,IAAIP,CAAU,EAC9BW,EAAgBF,EAAAA,IAAIT,CAAU,EAElC,SAASK,EAASZ,EAAQC,EAAK,CAC7B,IAAIkB,EAASL,MAAIb,CAAG,EAChBmB,EAAIN,EAAAA,IAAId,CAAM,EAAImB,EAClBE,EAAIL,EAAAA,IAAIhB,CAAM,EAAImB,EAClBG,EAAIN,MAAIf,CAAG,EACXsB,EAAID,EAAIT,EAAcO,EAAIL,EAC9B,MAAO,CACLS,QAAMH,EAAIJ,EAAgBM,EAAIL,EAAeE,EAAIP,EAAcS,EAAIP,CAAW,EAC9EU,EAAAA,KAAKF,EAAIN,EAAgBI,EAAIH,CAAa,CAAA,CAE9C,CAEA,OAAAN,EAAS,OAAS,SAASZ,EAAQC,EAAK,CACtC,IAAIkB,EAASL,MAAIb,CAAG,EAChBmB,EAAIN,EAAAA,IAAId,CAAM,EAAImB,EAClBE,EAAIL,EAAAA,IAAIhB,CAAM,EAAImB,EAClBG,EAAIN,MAAIf,CAAG,EACXsB,EAAID,EAAIL,EAAgBI,EAAIH,EAChC,MAAO,CACLM,QAAMH,EAAIJ,EAAgBK,EAAIJ,EAAeE,EAAIP,EAAcU,EAAIR,CAAW,EAC9EU,EAAAA,KAAKF,EAAIV,EAAcO,EAAIL,CAAW,CAAA,CAE1C,EAEOH,CACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs20.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("react"),l=require("./index.
|
|
1
|
+
"use strict";const n=require("react"),l=require("./index.cjs190.js"),i=require("./index.cjs25.js");function p(t,s){const r=n.useRef({props:t}),c=i.useControl(({mapLib:u})=>{const o=new u.GeolocateControl(t),a=o._setupUI;return o._setupUI=()=>{o._container.hasChildNodes()||a()},o.on("geolocate",e=>{r.current.props.onGeolocate?.(e)}),o.on("error",e=>{r.current.props.onError?.(e)}),o.on("outofmaxbounds",e=>{r.current.props.onOutOfMaxBounds?.(e)}),o.on("trackuserlocationstart",e=>{r.current.props.onTrackUserLocationStart?.(e)}),o.on("trackuserlocationend",e=>{r.current.props.onTrackUserLocationEnd?.(e)}),o},{position:t.position});return r.current.props=t,n.useImperativeHandle(s,()=>c,[]),n.useEffect(()=>{l.applyReactStyle(c._container,t.style)},[t.style]),null}n.memo(n.forwardRef(p));
|
|
2
2
|
//# sourceMappingURL=index.cjs20.js.map
|
package/dist/index.cjs200.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const e=require("./index.cjs265.js"),r=require("./index.cjs266.js");r(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/
|
|
1
|
+
{"version":3,"file":"index.cjs200.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.cjs201.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const Q=require("./index.cjs243.js"),e=require("./index.cjs245.js"),r=require("./index.cjs246.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.cjs201.js.map
|
package/dist/index.cjs201.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs201.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/maplibre/maplibre.js"],"sourcesContent":["import { transformToViewState, applyViewStateToTransform } from \"../utils/transform.js\";\nimport { normalizeStyle } from \"../utils/style-utils.js\";\nimport { deepEqual } from \"../utils/deep-equal.js\";\nconst DEFAULT_STYLE = { version: 8, sources: {}, layers: [] };\nconst pointerEvents = {\n mousedown: 'onMouseDown',\n mouseup: 'onMouseUp',\n mouseover: 'onMouseOver',\n mousemove: 'onMouseMove',\n click: 'onClick',\n dblclick: 'onDblClick',\n mouseenter: 'onMouseEnter',\n mouseleave: 'onMouseLeave',\n mouseout: 'onMouseOut',\n contextmenu: 'onContextMenu',\n touchstart: 'onTouchStart',\n touchend: 'onTouchEnd',\n touchmove: 'onTouchMove',\n touchcancel: 'onTouchCancel'\n};\nconst cameraEvents = {\n movestart: 'onMoveStart',\n move: 'onMove',\n moveend: 'onMoveEnd',\n dragstart: 'onDragStart',\n drag: 'onDrag',\n dragend: 'onDragEnd',\n zoomstart: 'onZoomStart',\n zoom: 'onZoom',\n zoomend: 'onZoomEnd',\n rotatestart: 'onRotateStart',\n rotate: 'onRotate',\n rotateend: 'onRotateEnd',\n pitchstart: 'onPitchStart',\n pitch: 'onPitch',\n pitchend: 'onPitchEnd'\n};\nconst otherEvents = {\n wheel: 'onWheel',\n boxzoomstart: 'onBoxZoomStart',\n boxzoomend: 'onBoxZoomEnd',\n boxzoomcancel: 'onBoxZoomCancel',\n resize: 'onResize',\n load: 'onLoad',\n render: 'onRender',\n idle: 'onIdle',\n remove: 'onRemove',\n data: 'onData',\n styledata: 'onStyleData',\n sourcedata: 'onSourceData',\n error: 'onError'\n};\nconst settingNames = [\n 'minZoom',\n 'maxZoom',\n 'minPitch',\n 'maxPitch',\n 'maxBounds',\n 'projection',\n 'renderWorldCopies'\n];\nconst handlerNames = [\n 'scrollZoom',\n 'boxZoom',\n 'dragRotate',\n 'dragPan',\n 'keyboard',\n 'doubleClickZoom',\n 'touchZoomRotate',\n 'touchPitch'\n];\n/**\n * A wrapper for mapbox-gl's Map class\n */\nclass Maplibre {\n constructor(MapClass, props, container) {\n // mapboxgl.Map instance\n this._map = null;\n // Internal states\n this._internalUpdate = false;\n this._hoveredFeatures = null;\n this._propsedCameraUpdate = null;\n this._styleComponents = {};\n this._onEvent = (e) => {\n // @ts-ignore\n const cb = this.props[otherEvents[e.type]];\n if (cb) {\n cb(e);\n }\n else if (e.type === 'error') {\n console.error(e.error); // eslint-disable-line\n }\n };\n this._onCameraEvent = (e) => {\n if (this._internalUpdate) {\n return;\n }\n e.viewState = this._propsedCameraUpdate || transformToViewState(this._map.transform);\n // @ts-ignore\n const cb = this.props[cameraEvents[e.type]];\n if (cb) {\n cb(e);\n }\n };\n this._onCameraUpdate = (tr) => {\n if (this._internalUpdate) {\n return tr;\n }\n this._propsedCameraUpdate = transformToViewState(tr);\n return applyViewStateToTransform(tr, this.props);\n };\n this._onPointerEvent = (e) => {\n if (e.type === 'mousemove' || e.type === 'mouseout') {\n this._updateHover(e);\n }\n // @ts-ignore\n const cb = this.props[pointerEvents[e.type]];\n if (cb) {\n if (this.props.interactiveLayerIds && e.type !== 'mouseover' && e.type !== 'mouseout') {\n e.features = this._hoveredFeatures || this._queryRenderedFeatures(e.point);\n }\n cb(e);\n delete e.features;\n }\n };\n this._MapClass = MapClass;\n this.props = props;\n this._initialize(container);\n }\n get map() {\n return this._map;\n }\n setProps(props) {\n const oldProps = this.props;\n this.props = props;\n const settingsChanged = this._updateSettings(props, oldProps);\n const sizeChanged = this._updateSize(props);\n const viewStateChanged = this._updateViewState(props);\n this._updateStyle(props, oldProps);\n this._updateStyleComponents(props);\n this._updateHandlers(props, oldProps);\n // If 1) view state has changed to match props and\n // 2) the props change is not triggered by map events,\n // it's driven by an external state change. Redraw immediately\n if (settingsChanged || sizeChanged || (viewStateChanged && !this._map.isMoving())) {\n this.redraw();\n }\n }\n static reuse(props, container) {\n const that = Maplibre.savedMaps.pop();\n if (!that) {\n return null;\n }\n const map = that.map;\n // When reusing the saved map, we need to reparent the map(canvas) and other child nodes\n // intoto the new container from the props.\n // Step 1: reparenting child nodes from old container to new container\n const oldContainer = map.getContainer();\n container.className = oldContainer.className;\n while (oldContainer.childNodes.length > 0) {\n container.appendChild(oldContainer.childNodes[0]);\n }\n // Step 2: replace the internal container with new container from the react component\n // @ts-ignore\n map._container = container;\n // With maplibre-gl as mapLib, map uses ResizeObserver to observe when its container resizes.\n // When reusing the saved map, we need to disconnect the observer and observe the new container.\n // Step 3: telling the ResizeObserver to disconnect and observe the new container\n // @ts-ignore\n const resizeObserver = map._resizeObserver;\n if (resizeObserver) {\n resizeObserver.disconnect();\n resizeObserver.observe(container);\n }\n // Step 4: apply new props\n that.setProps({ ...props, styleDiffing: false });\n map.resize();\n const { initialViewState } = props;\n if (initialViewState) {\n if (initialViewState.bounds) {\n map.fitBounds(initialViewState.bounds, { ...initialViewState.fitBoundsOptions, duration: 0 });\n }\n else {\n that._updateViewState(initialViewState);\n }\n }\n // Simulate load event\n if (map.isStyleLoaded()) {\n map.fire('load');\n }\n else {\n map.once('style.load', () => map.fire('load'));\n }\n // Force reload\n // @ts-ignore\n map._update();\n return that;\n }\n /* eslint-disable complexity,max-statements */\n _initialize(container) {\n const { props } = this;\n const { mapStyle = DEFAULT_STYLE } = props;\n const mapOptions = {\n ...props,\n ...props.initialViewState,\n container,\n style: normalizeStyle(mapStyle)\n };\n const viewState = mapOptions.initialViewState || mapOptions.viewState || mapOptions;\n Object.assign(mapOptions, {\n center: [viewState.longitude || 0, viewState.latitude || 0],\n zoom: viewState.zoom || 0,\n pitch: viewState.pitch || 0,\n bearing: viewState.bearing || 0\n });\n if (props.gl) {\n // eslint-disable-next-line\n const getContext = HTMLCanvasElement.prototype.getContext;\n // Hijack canvas.getContext to return our own WebGLContext\n // This will be called inside the mapboxgl.Map constructor\n // @ts-expect-error\n HTMLCanvasElement.prototype.getContext = () => {\n // Unhijack immediately\n HTMLCanvasElement.prototype.getContext = getContext;\n return props.gl;\n };\n }\n const map = new this._MapClass(mapOptions);\n // Props that are not part of constructor options\n if (viewState.padding) {\n map.setPadding(viewState.padding);\n }\n if (props.cursor) {\n map.getCanvas().style.cursor = props.cursor;\n }\n // add listeners\n map.transformCameraUpdate = this._onCameraUpdate;\n map.on('style.load', () => {\n // Map style has changed, this would have wiped out all settings from props\n this._styleComponents = {\n light: map.getLight(),\n sky: map.getSky(),\n // @ts-ignore getProjection() does not exist in v4\n projection: map.getProjection?.(),\n terrain: map.getTerrain()\n };\n this._updateStyleComponents(this.props);\n });\n map.on('sourcedata', () => {\n // Some sources have loaded, we may need them to attach terrain\n this._updateStyleComponents(this.props);\n });\n for (const eventName in pointerEvents) {\n map.on(eventName, this._onPointerEvent);\n }\n for (const eventName in cameraEvents) {\n map.on(eventName, this._onCameraEvent);\n }\n for (const eventName in otherEvents) {\n map.on(eventName, this._onEvent);\n }\n this._map = map;\n }\n /* eslint-enable complexity,max-statements */\n recycle() {\n // Clean up unnecessary elements before storing for reuse.\n const container = this.map.getContainer();\n const children = container.querySelector('[mapboxgl-children]');\n children?.remove();\n Maplibre.savedMaps.push(this);\n }\n destroy() {\n this._map.remove();\n }\n // Force redraw the map now. Typically resize() and jumpTo() is reflected in the next\n // render cycle, which is managed by Mapbox's animation loop.\n // This removes the synchronization issue caused by requestAnimationFrame.\n redraw() {\n const map = this._map;\n // map._render will throw error if style does not exist\n // https://github.com/mapbox/mapbox-gl-js/blob/fb9fc316da14e99ff4368f3e4faa3888fb43c513\n // /src/ui/map.js#L1834\n if (map.style) {\n // cancel the scheduled update\n if (map._frame) {\n map._frame.cancel();\n map._frame = null;\n }\n // the order is important - render() may schedule another update\n map._render();\n }\n }\n /* Trigger map resize if size is controlled\n @param {object} nextProps\n @returns {bool} true if size has changed\n */\n _updateSize(nextProps) {\n // Check if size is controlled\n const { viewState } = nextProps;\n if (viewState) {\n const map = this._map;\n if (viewState.width !== map.transform.width || viewState.height !== map.transform.height) {\n map.resize();\n return true;\n }\n }\n return false;\n }\n // Adapted from map.jumpTo\n /* Update camera to match props\n @param {object} nextProps\n @param {bool} triggerEvents - should fire camera events\n @returns {bool} true if anything is changed\n */\n _updateViewState(nextProps) {\n const map = this._map;\n const tr = map.transform;\n const isMoving = map.isMoving();\n // Avoid manipulating the real transform when interaction/animation is ongoing\n // as it would interfere with Mapbox's handlers\n if (!isMoving) {\n const changes = applyViewStateToTransform(tr, nextProps);\n if (Object.keys(changes).length > 0) {\n this._internalUpdate = true;\n map.jumpTo(changes);\n this._internalUpdate = false;\n return true;\n }\n }\n return false;\n }\n /* Update camera constraints and projection settings to match props\n @param {object} nextProps\n @param {object} currProps\n @returns {bool} true if anything is changed\n */\n _updateSettings(nextProps, currProps) {\n const map = this._map;\n let changed = false;\n for (const propName of settingNames) {\n if (propName in nextProps && !deepEqual(nextProps[propName], currProps[propName])) {\n changed = true;\n const setter = map[`set${propName[0].toUpperCase()}${propName.slice(1)}`];\n setter?.call(map, nextProps[propName]);\n }\n }\n return changed;\n }\n /* Update map style to match props */\n _updateStyle(nextProps, currProps) {\n if (nextProps.cursor !== currProps.cursor) {\n this._map.getCanvas().style.cursor = nextProps.cursor || '';\n }\n if (nextProps.mapStyle !== currProps.mapStyle) {\n const { mapStyle = DEFAULT_STYLE, styleDiffing = true } = nextProps;\n const options = {\n diff: styleDiffing\n };\n if ('localIdeographFontFamily' in nextProps) {\n // @ts-ignore Mapbox specific prop\n options.localIdeographFontFamily = nextProps.localIdeographFontFamily;\n }\n this._map.setStyle(normalizeStyle(mapStyle), options);\n }\n }\n /* Update fog, light, projection and terrain to match props\n * These props are special because\n * 1. They can not be applied right away. Certain conditions (style loaded, source loaded, etc.) must be met\n * 2. They can be overwritten by mapStyle\n */\n _updateStyleComponents({ light, projection, sky, terrain }) {\n const map = this._map;\n const currProps = this._styleComponents;\n // We can safely manipulate map style once it's loaded\n if (map.style._loaded) {\n if (light && !deepEqual(light, currProps.light)) {\n currProps.light = light;\n map.setLight(light);\n }\n if (projection &&\n !deepEqual(projection, currProps.projection) &&\n projection !== currProps.projection?.type) {\n currProps.projection = typeof projection === 'string' ? { type: projection } : projection;\n // @ts-ignore setProjection does not exist in v4\n map.setProjection?.(currProps.projection);\n }\n if (sky && !deepEqual(sky, currProps.sky)) {\n currProps.sky = sky;\n map.setSky(sky);\n }\n if (terrain !== undefined && !deepEqual(terrain, currProps.terrain)) {\n if (!terrain || map.getSource(terrain.source)) {\n currProps.terrain = terrain;\n map.setTerrain(terrain);\n }\n }\n }\n }\n /* Update interaction handlers to match props */\n _updateHandlers(nextProps, currProps) {\n const map = this._map;\n for (const propName of handlerNames) {\n const newValue = nextProps[propName] ?? true;\n const oldValue = currProps[propName] ?? true;\n if (!deepEqual(newValue, oldValue)) {\n if (newValue) {\n map[propName].enable(newValue);\n }\n else {\n map[propName].disable();\n }\n }\n }\n }\n _queryRenderedFeatures(point) {\n const map = this._map;\n const { interactiveLayerIds = [] } = this.props;\n try {\n return map.queryRenderedFeatures(point, {\n layers: interactiveLayerIds.filter(map.getLayer.bind(map))\n });\n }\n catch {\n // May fail if style is not loaded\n return [];\n }\n }\n _updateHover(e) {\n const { props } = this;\n const shouldTrackHoveredFeatures = props.interactiveLayerIds && (props.onMouseMove || props.onMouseEnter || props.onMouseLeave);\n if (shouldTrackHoveredFeatures) {\n const eventType = e.type;\n const wasHovering = this._hoveredFeatures?.length > 0;\n const features = this._queryRenderedFeatures(e.point);\n const isHovering = features.length > 0;\n if (!isHovering && wasHovering) {\n e.type = 'mouseleave';\n this._onPointerEvent(e);\n }\n this._hoveredFeatures = features;\n if (isHovering && !wasHovering) {\n e.type = 'mouseenter';\n this._onPointerEvent(e);\n }\n e.type = eventType;\n }\n else {\n this._hoveredFeatures = null;\n }\n }\n}\nMaplibre.savedMaps = [];\nexport default Maplibre;\n//# sourceMappingURL=maplibre.js.map"],"names":["DEFAULT_STYLE","pointerEvents","cameraEvents","otherEvents","settingNames","handlerNames","Maplibre","MapClass","props","container","cb","transformToViewState","tr","applyViewStateToTransform","oldProps","settingsChanged","sizeChanged","viewStateChanged","that","map","oldContainer","resizeObserver","initialViewState","mapStyle","mapOptions","normalizeStyle","viewState","getContext","eventName","nextProps","changes","currProps","changed","propName","deepEqual","styleDiffing","options","light","projection","sky","terrain","newValue","oldValue","point","interactiveLayerIds","e","eventType","wasHovering","features","isHovering"],"mappings":"gHAGMA,EAAgB,CAAE,QAAS,EAAG,QAAS,CAAA,EAAI,OAAQ,EAAC,EACpDC,EAAgB,CAClB,UAAW,cACX,QAAS,YACT,UAAW,cACX,UAAW,cACX,MAAO,UACP,SAAU,aACV,WAAY,eACZ,WAAY,eACZ,SAAU,aACV,YAAa,gBACb,WAAY,eACZ,SAAU,aACV,UAAW,cACX,YAAa,eACjB,EACMC,EAAe,CACjB,UAAW,cACX,KAAM,SACN,QAAS,YACT,UAAW,cACX,KAAM,SACN,QAAS,YACT,UAAW,cACX,KAAM,SACN,QAAS,YACT,YAAa,gBACb,OAAQ,WACR,UAAW,cACX,WAAY,eACZ,MAAO,UACP,SAAU,YACd,EACMC,EAAc,CAChB,MAAO,UACP,aAAc,iBACd,WAAY,eACZ,cAAe,kBACf,OAAQ,WACR,KAAM,SACN,OAAQ,WACR,KAAM,SACN,OAAQ,WACR,KAAM,SACN,UAAW,cACX,WAAY,eACZ,MAAO,SACX,EACMC,EAAe,CACjB,UACA,UACA,WACA,WACA,YACA,aACA,mBACJ,EACMC,EAAe,CACjB,aACA,UACA,aACA,UACA,WACA,kBACA,kBACA,YACJ,EAIA,MAAMC,CAAS,CACX,YAAYC,EAAUC,EAA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cAClF,CAC5B,MAAMsC,EAAYD,EAAE,KACdE,EAAc,KAAK,kBAAkB,OAAS,EAC9CC,EAAW,KAAK,uBAAuBH,EAAE,KAAK,EAC9CI,EAAaD,EAAS,OAAS,EACjC,CAACC,GAAcF,IACfF,EAAE,KAAO,aACT,KAAK,gBAAgBA,CAAC,GAE1B,KAAK,iBAAmBG,EACpBC,GAAc,CAACF,IACfF,EAAE,KAAO,aACT,KAAK,gBAAgBA,CAAC,GAE1BA,EAAE,KAAOC,CACb,MAEI,KAAK,iBAAmB,IAEhC,CACJ,CACAxC,EAAS,UAAY,CAAA","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs201.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,EAAA,EAEV,SAAAC,EAAwBC,EAASC,EAAO,CACtC,IAAIC,EAASD,EAAM,CAAC,EAChBE,EAAMF,EAAM,CAAC,EACbG,EAAS,CAACC,EAAAA,IAAIH,CAAM,EAAG,CAACI,EAAAA,IAAIJ,CAAM,EAAG,CAAC,EACtCK,EAAQ,EACRC,EAAU,EAEdX,EAAI,MAAA,EAEJ,QAASY,EAAI,EAAGC,EAAIV,EAAQ,OAAQS,EAAIC,EAAG,EAAED,EAC3C,GAAME,GAAKC,EAAOZ,EAAQS,CAAC,GAAG,OAS9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GAE/C,CACF,CAcF,OAAQlB,EAAQ,CAACiC,EAAAA,SAAWjC,EAAQiC,EAAAA,SAAW3C,EAAM,CAAC2C,WAAYhC,EAAU,CAC9E","x_google_ignoreList":[0]}
|
package/dist/index.cjs202.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("./index.cjs243.js");e();
|
|
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
|
|
1
|
+
{"version":3,"file":"index.cjs202.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,EAAA","x_google_ignoreList":[0]}
|
package/dist/index.cjs203.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("
|
|
1
|
+
"use strict";const e=require("./index.cjs243.js");e();e();
|
|
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
|
|
1
|
+
{"version":3,"file":"index.cjs203.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,IACIA","x_google_ignoreList":[0]}
|
package/dist/index.cjs204.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const e=require("./index.cjs243.js");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
|
|
1
|
+
{"version":3,"file":"index.cjs204.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,EAAA","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"});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.cjs205.js.map
|
package/dist/index.cjs205.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs205.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs205.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,EAASE,EAAEE,CAAG,EAAIJ,EAAQI,CAAG,EAC7C,OAAAF,EAAE,OAASD,EACJC,CACT,CACF,CAEA,SAASC,GAAkB,CAAC,CAE5BA,EAAgB,UAAY,CAC1B,YAAaA,EACb,MAAO,SAASE,EAAGC,EAAG,CAAE,KAAK,OAAO,MAAMD,EAAGC,CAAC,CAAG,EACjD,OAAQ,UAAW,CAAE,KAAK,OAAO,OAAA,CAAU,EAC3C,UAAW,UAAW,CAAE,KAAK,OAAO,UAAA,CAAa,EACjD,QAAS,UAAW,CAAE,KAAK,OAAO,QAAA,CAAW,EAC7C,aAAc,UAAW,CAAE,KAAK,OAAO,aAAA,CAAgB,EACvD,WAAY,UAAW,CAAE,KAAK,OAAO,WAAA,CAAc,CACrD","x_google_ignoreList":[0]}
|
package/dist/index.cjs206.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.cjs246.js"),a=require("./index.cjs252.js");require("./index.cjs201.js");require("./index.cjs200.js");require("./index.cjs199.js");require("./index.cjs205.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.cjs206.js.map
|
package/dist/index.cjs206.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs206.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs206.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":"wQAIO,IAAIA,EAAwBC,EAAAA,aAAa,SAASC,EAAM,CAC7D,OAAOC,OAAK,GAAK,EAAID,EAAK,CAC5B,CAAC,EAEDF,EAAsB,OAASI,kBAAgB,SAASC,EAAG,CACzD,MAAO,GAAIC,EAAAA,KAAKD,EAAI,CAAC,CACvB,CAAC","x_google_ignoreList":[0]}
|
package/dist/index.cjs207.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.cjs246.js"),i=require("./index.cjs252.js"),u=require("./index.cjs253.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.cjs207.js.map
|
package/dist/index.cjs207.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs207.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs207.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":"+MAIO,IAAIA,EAA0BC,EAAAA,aAAa,SAASC,EAAG,CAC5D,OAAQA,EAAIC,OAAKD,CAAC,IAAMA,EAAIE,EAAAA,IAAIF,CAAC,CACnC,CAAC,EAEDF,EAAwB,OAASK,kBAAgB,SAASC,EAAG,CAC3D,OAAOA,CACT,CAAC,EAED,SAAAC,GAA0B,CACxB,OAAOC,EAAAA,QAAWR,CAAuB,EACpC,MAAM,OAAO,EACb,UAAU,IAAM,IAAI,CAC3B","x_google_ignoreList":[0]}
|
package/dist/index.cjs208.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs201.js");require("./index.cjs200.js");require("./index.cjs199.js");require("./index.cjs205.js");function e(r,u){return[r,u]}e.invert=e;exports.equirectangularRaw=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs208.js.map
|
package/dist/index.cjs208.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs208.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs208.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":"oMAEO,SAASA,EAAmBC,EAAQC,EAAK,CAC9C,MAAO,CAACD,EAAQC,CAAG,CACrB,CAEAF,EAAmB,OAASA","x_google_ignoreList":[0]}
|
package/dist/index.cjs21.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),i=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),i=require("./index.cjs190.js"),l=require("./index.cjs25.js");function r(t){const e=l.useControl(({mapLib:n})=>new n.NavigationControl(t),{position:t.position});return o.useEffect(()=>{i.applyReactStyle(e._container,t.style)},[t.style]),null}const a=o.memo(r);exports.NavigationControl=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs21.js.map
|
package/dist/index.cjs211.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs240.js"),t=require("./index.cjs213.js"),r=e(t);module.exports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs211.js.map
|
package/dist/index.cjs22.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("react"),l=require("./index.
|
|
1
|
+
"use strict";const n=require("react"),l=require("./index.cjs190.js"),a=require("./index.cjs25.js");function r(t){const e=a.useControl(({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(()=>{l.applyReactStyle(e._container,o)},[o]),null}n.memo(r);
|
|
2
2
|
//# sourceMappingURL=index.cjs22.js.map
|
package/dist/index.cjs23.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("react"),r=require("./index.
|
|
1
|
+
"use strict";const t=require("react"),r=require("./index.cjs190.js"),l=require("./index.cjs25.js");function c(e){const n=l.useControl(({mapLib:o})=>new o.TerrainControl(e),{position:e.position});return t.useEffect(()=>{r.applyReactStyle(n._container,e.style)},[e.style]),null}t.memo(c);
|
|
2
2
|
//# sourceMappingURL=index.cjs23.js.map
|
package/dist/index.cjs231.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs240.js"),r=require("./index.cjs212.js"),t=e(r);module.exports=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs231.js.map
|