@performant-software/geospatial 3.1.7-beta.5 → 3.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs213.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.cjs242.js +1 -1
- package/dist/index.cjs242.js.map +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +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.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +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.cjs27.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.cjs71.js +1 -743
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs73.js +9 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +17 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -9
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -17
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.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.es14.js +2 -2
- package/dist/index.es188.js +1 -1
- package/dist/index.es189.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es191.js +2 -2
- package/dist/index.es193.js +3 -3
- package/dist/index.es194.js +1 -1
- package/dist/index.es195.js +1 -1
- package/dist/index.es196.js +1 -1
- package/dist/index.es198.js +2 -2
- package/dist/index.es199.js +3 -3
- package/dist/index.es201.js +2 -2
- package/dist/index.es212.js +1 -1
- package/dist/index.es213.js +1 -1
- package/dist/index.es240.js +4 -19
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +24 -22
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +16 -5
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +28 -22
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +20 -15
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +74 -30
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +20 -21
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +37 -71
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +48 -19
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +7 -40
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es250.js +19 -48
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +65 -7
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +40 -18
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +58 -60
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +8 -42
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +3 -63
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +12 -8
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +59 -3
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +48 -11
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +18 -57
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +22 -49
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +69 -2
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +4 -15
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +15 -4
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +2 -69
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es31.js +2 -2
- package/dist/index.es33.js +2 -2
- package/dist/index.es34.js +2 -2
- package/dist/index.es71.js +7 -21351
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es73.js +25 -7
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +589 -2
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +104 -24
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +10 -589
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +1991 -104
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +6 -10
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +2 -1993
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es80.js +21351 -5
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs14.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("./index.
|
|
1
|
+
"use strict";const r=require("./index.cjs78.js"),e=require("./index.cjs77.js");var o=e.__require();const s=r.getDefaultExportFromCjs(o);module.exports=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs14.js.map
|
package/dist/index.cjs188.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("./index.
|
|
1
|
+
"use strict";const s=require("./index.cjs78.js"),r=require("./index.cjs236.js");var t=r.__require();const e=s.getDefaultExportFromCjs(t);module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs188.js.map
|
package/dist/index.cjs189.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs241.js");e();e();
|
|
2
2
|
//# sourceMappingURL=index.cjs189.js.map
|
package/dist/index.cjs190.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs241.js");require("./index.cjs189.js");e();
|
|
2
2
|
//# sourceMappingURL=index.cjs190.js.map
|
package/dist/index.cjs191.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index.cjs254.js"),n=require("./index.cjs244.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.cjs191.js.map
|
package/dist/index.cjs193.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const Q=require("./index.
|
|
1
|
+
"use strict";const Q=require("./index.cjs241.js"),e=require("./index.cjs243.js"),r=require("./index.cjs244.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.cjs193.js.map
|
package/dist/index.cjs194.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs241.js");e();
|
|
2
2
|
//# sourceMappingURL=index.cjs194.js.map
|
package/dist/index.cjs195.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs241.js");e();e();
|
|
2
2
|
//# sourceMappingURL=index.cjs195.js.map
|
package/dist/index.cjs196.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs241.js");e();
|
|
2
2
|
//# sourceMappingURL=index.cjs196.js.map
|
package/dist/index.cjs198.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs244.js"),a=require("./index.cjs250.js");require("./index.cjs193.js");require("./index.cjs192.js");require("./index.cjs191.js");require("./index.cjs197.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.cjs198.js.map
|
package/dist/index.cjs199.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs244.js"),i=require("./index.cjs250.js"),u=require("./index.cjs251.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.cjs199.js.map
|
package/dist/index.cjs201.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const d=require("./index.
|
|
1
|
+
"use strict";const d=require("./index.cjs259.js"),p=require("./index.cjs260.js"),i=require("./index.cjs206.js"),c={version:8,sources:{},layers:[]},u={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},h={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},f=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class l{constructor(t,o,a){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{const s=this.props[m[e.type]];s?s(e):e.type==="error"&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||d.transformToViewState(this._map.transform);const s=this.props[h[e.type]];s&&s(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=d.transformToViewState(e),d.applyViewStateToTransform(e,this.props)),this._onPointerEvent=e=>{(e.type==="mousemove"||e.type==="mouseout")&&this._updateHover(e);const s=this.props[u[e.type]];s&&(this.props.interactiveLayerIds&&e.type!=="mouseover"&&e.type!=="mouseout"&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),s(e),delete e.features)},this._MapClass=t,this.props=o,this._initialize(a)}get map(){return this._map}setProps(t){const o=this.props;this.props=t;const a=this._updateSettings(t,o),e=this._updateSize(t),s=this._updateViewState(t);this._updateStyle(t,o),this._updateStyleComponents(t),this._updateHandlers(t,o),(a||e||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const a=l.savedMaps.pop();if(!a)return null;const e=a.map,s=e.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);e._container=o;const n=e._resizeObserver;n&&(n.disconnect(),n.observe(o)),a.setProps({...t,styleDiffing:!1}),e.resize();const{initialViewState:r}=t;return r&&(r.bounds?e.fitBounds(r.bounds,{...r.fitBoundsOptions,duration:0}):a._updateViewState(r)),e.isStyleLoaded()?e.fire("load"):e.once("style.load",()=>e.fire("load")),e._update(),a}_initialize(t){const{props:o}=this,{mapStyle:a=c}=o,e={...o,...o.initialViewState,container:t,style:p.normalizeStyle(a)},s=e.initialViewState||e.viewState||e;if(Object.assign(e,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const r=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=r,o.gl)}const n=new this._MapClass(e);s.padding&&n.setPadding(s.padding),o.cursor&&(n.getCanvas().style.cursor=o.cursor),n.transformCameraUpdate=this._onCameraUpdate,n.on("style.load",()=>{this._styleComponents={light:n.getLight(),sky:n.getSky(),projection:n.getProjection?.(),terrain:n.getTerrain()},this._updateStyleComponents(this.props)}),n.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const r in u)n.on(r,this._onPointerEvent);for(const r in h)n.on(r,this._onCameraEvent);for(const r in m)n.on(r,this._onEvent);this._map=n}recycle(){this.map.getContainer().querySelector("[mapboxgl-children]")?.remove(),l.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){const{viewState:o}=t;if(o){const a=this._map;if(o.width!==a.transform.width||o.height!==a.transform.height)return a.resize(),!0}return!1}_updateViewState(t){const o=this._map,a=o.transform;if(!o.isMoving()){const s=d.applyViewStateToTransform(a,t);if(Object.keys(s).length>0)return this._internalUpdate=!0,o.jumpTo(s),this._internalUpdate=!1,!0}return!1}_updateSettings(t,o){const a=this._map;let e=!1;for(const s of f)s in t&&!i.deepEqual(t[s],o[s])&&(e=!0,a[`set${s[0].toUpperCase()}${s.slice(1)}`]?.call(a,t[s]));return e}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:a=c,styleDiffing:e=!0}=t,s={diff:e};"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(p.normalizeStyle(a),s)}}_updateStyleComponents({light:t,projection:o,sky:a,terrain:e}){const s=this._map,n=this._styleComponents;s.style._loaded&&(t&&!i.deepEqual(t,n.light)&&(n.light=t,s.setLight(t)),o&&!i.deepEqual(o,n.projection)&&o!==n.projection?.type&&(n.projection=typeof o=="string"?{type:o}:o,s.setProjection?.(n.projection)),a&&!i.deepEqual(a,n.sky)&&(n.sky=a,s.setSky(a)),e!==void 0&&!i.deepEqual(e,n.terrain)&&(!e||s.getSource(e.source))&&(n.terrain=e,s.setTerrain(e)))}_updateHandlers(t,o){const a=this._map;for(const e of v){const s=t[e]??!0,n=o[e]??!0;i.deepEqual(s,n)||(s?a[e].enable(s):a[e].disable())}}_queryRenderedFeatures(t){const o=this._map,{interactiveLayerIds:a=[]}=this.props;try{return o.queryRenderedFeatures(t,{layers:a.filter(o.getLayer.bind(o))})}catch{return[]}}_updateHover(t){const{props:o}=this;if(o.interactiveLayerIds&&(o.onMouseMove||o.onMouseEnter||o.onMouseLeave)){const e=t.type,s=this._hoveredFeatures?.length>0,n=this._queryRenderedFeatures(t.point),r=n.length>0;!r&&s&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=n,r&&!s&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=e}else this._hoveredFeatures=null}}l.savedMaps=[];module.exports=l;
|
|
2
2
|
//# sourceMappingURL=index.cjs201.js.map
|
package/dist/index.cjs212.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs240.js"),e=t("length");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs212.js.map
|
package/dist/index.cjs213.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs240.js"),e=t("byteLength");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs213.js.map
|
package/dist/index.cjs240.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";function n(t){return function(r){return r?.[t]}}module.exports=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs240.js.map
|
package/dist/index.cjs240.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs240.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.cjs240.js","sources":["../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"aACA,SAAwBA,EAAgBC,EAAK,CAC3C,OAAO,SAASC,EAAK,CACnB,OAA8BA,IAAID,CAAG,CACvC,CACF","x_google_ignoreList":[0]}
|
package/dist/index.cjs241.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";function c(){return new i}function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(t){u(s,t,this.t),u(this,s.s,this.s),this.s?this.t+=s.t:this.s=s.t},valueOf:function(){return this.s}};var s=new i;function u(t,n,e){var r=t.s=n+e,o=r-n,h=r-o;t.t=n-h+(e-o)}module.exports=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs241.js.map
|
package/dist/index.cjs241.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs241.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs241.js","sources":["../../../node_modules/d3-geo/src/adder.js"],"sourcesContent":["// Adds floating point numbers with twice the normal precision.\n// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and\n// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)\n// 305–363 (1997).\n// Code adapted from GeographicLib by Charles F. F. Karney,\n// http://geographiclib.sourceforge.net/\n\nexport default function() {\n return new Adder;\n}\n\nfunction Adder() {\n this.reset();\n}\n\nAdder.prototype = {\n constructor: Adder,\n reset: function() {\n this.s = // rounded value\n this.t = 0; // exact error\n },\n add: function(y) {\n add(temp, y, this.t);\n add(this, temp.s, this.s);\n if (this.s) this.t += temp.t;\n else this.s = temp.t;\n },\n valueOf: function() {\n return this.s;\n }\n};\n\nvar temp = new Adder;\n\nfunction add(adder, a, b) {\n var x = adder.s = a + b,\n bv = x - a,\n av = x - bv;\n adder.t = (a - av) + (b - bv);\n}\n"],"names":["adder","Adder","y","add","temp","a","b","x","bv","av"],"mappings":"aAOA,SAAAA,GAA0B,CACxB,OAAO,IAAIC,CACb,CAEA,SAASA,GAAQ,CACf,KAAK,MAAA,CACP,CAEAA,EAAM,UAAY,CAChB,YAAaA,EACb,MAAO,UAAW,CAChB,KAAK,EACL,KAAK,EAAI,CACX,EACA,IAAK,SAASC,EAAG,CACfC,EAAIC,EAAMF,EAAG,KAAK,CAAC,EACnBC,EAAI,KAAMC,EAAK,EAAG,KAAK,CAAC,EACpB,KAAK,EAAG,KAAK,GAAKA,EAAK,EACtB,KAAK,EAAIA,EAAK,CACrB,EACA,QAAS,UAAW,CAClB,OAAO,KAAK,CACd,CACF,EAEA,IAAIA,EAAO,IAAIH,EAEf,SAASE,EAAIH,EAAOK,EAAGC,EAAG,CACxB,IAAIC,EAAIP,EAAM,EAAIK,EAAIC,EAClBE,EAAKD,EAAIF,EACTI,EAAKF,EAAIC,EACbR,EAAM,EAAKK,EAAII,GAAOH,EAAIE,EAC5B","x_google_ignoreList":[0]}
|
package/dist/index.cjs242.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs243.js"),a=require("./index.cjs244.js");require("./index.cjs191.js");function q(i,e,c,u,r,s){if(c){var n=a.cos(e),o=a.sin(e),v=u*c;r==null?(r=e+u*a.tau,s=e-v/2):(r=S(n,r),s=S(n,s),(u>0?r<s:r>s)&&(r+=u*a.tau));for(var f,l=r;u>0?l>s:l<s;l-=v)f=m.spherical([n,-o*a.cos(l),-o*a.sin(l)]),i.point(f[0],f[1])}}function S(i,e){e=m.cartesian(e),e[0]-=i,m.cartesianNormalizeInPlace(e);var c=a.acos(-e[1]);return((-e[2]<0?-c:c)+a.tau-a.epsilon)%a.tau}exports.circleStream=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs242.js.map
|
package/dist/index.cjs242.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs242.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.cjs242.js","sources":["../../../node_modules/d3-geo/src/circle.js"],"sourcesContent":["import {cartesian, cartesianNormalizeInPlace, spherical} from \"./cartesian\";\nimport constant from \"./constant\";\nimport {acos, cos, degrees, epsilon, radians, sin, tau} from \"./math\";\nimport {rotateRadians} from \"./rotation\";\n\n// Generates a circle centered at [0°, 0°], with a given radius and precision.\nexport function circleStream(stream, radius, delta, direction, t0, t1) {\n if (!delta) return;\n var cosRadius = cos(radius),\n sinRadius = sin(radius),\n step = direction * delta;\n if (t0 == null) {\n t0 = radius + direction * tau;\n t1 = radius - step / 2;\n } else {\n t0 = circleRadius(cosRadius, t0);\n t1 = circleRadius(cosRadius, t1);\n if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;\n }\n for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {\n point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);\n stream.point(point[0], point[1]);\n }\n}\n\n// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].\nfunction circleRadius(cosRadius, point) {\n point = cartesian(point), point[0] -= cosRadius;\n cartesianNormalizeInPlace(point);\n var radius = acos(-point[1]);\n return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;\n}\n\nexport default function() {\n var center = constant([0, 0]),\n radius = constant(90),\n precision = constant(6),\n ring,\n rotate,\n stream = {point: point};\n\n function point(x, y) {\n ring.push(x = rotate(x, y));\n x[0] *= degrees, x[1] *= degrees;\n }\n\n function circle() {\n var c = center.apply(this, arguments),\n r = radius.apply(this, arguments) * radians,\n p = precision.apply(this, arguments) * radians;\n ring = [];\n rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;\n circleStream(stream, r, p, 1);\n c = {type: \"Polygon\", coordinates: [ring]};\n ring = rotate = null;\n return c;\n }\n\n circle.center = function(_) {\n return arguments.length ? (center = typeof _ === \"function\" ? _ : constant([+_[0], +_[1]]), circle) : center;\n };\n\n circle.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), circle) : radius;\n };\n\n circle.precision = function(_) {\n return arguments.length ? (precision = typeof _ === \"function\" ? _ : constant(+_), circle) : precision;\n };\n\n return circle;\n}\n"],"names":["circleStream","stream","radius","delta","direction","t0","t1","cosRadius","cos","sinRadius","sin","step","tau","circleRadius","point","t","spherical","cartesian","cartesianNormalizeInPlace","acos","epsilon"],"mappings":"iLAMO,SAASA,EAAaC,EAAQC,EAAQC,EAAOC,EAAWC,EAAIC,EAAI,CACrE,GAAKH,EACL,KAAII,EAAYC,MAAIN,CAAM,EACtBO,EAAYC,EAAAA,IAAIR,CAAM,EACtBS,EAAOP,EAAYD,EACnBE,GAAM,MACRA,EAAKH,EAASE,EAAYQ,EAAAA,IAC1BN,EAAKJ,EAASS,EAAO,IAErBN,EAAKQ,EAAaN,EAAWF,CAAE,EAC/BC,EAAKO,EAAaN,EAAWD,CAAE,GAC3BF,EAAY,EAAIC,EAAKC,EAAKD,EAAKC,QAAUF,EAAYQ,EAAAA,MAE3D,QAASE,EAAOC,EAAIV,EAAID,EAAY,EAAIW,EAAIT,EAAKS,EAAIT,EAAIS,GAAKJ,EAC5DG,EAAQE,EAAAA,UAAU,CAACT,EAAW,CAACE,EAAYD,EAAAA,IAAIO,CAAC,EAAG,CAACN,EAAYC,MAAIK,CAAC,CAAC,CAAC,EACvEd,EAAO,MAAMa,EAAM,CAAC,EAAGA,EAAM,CAAC,CAAC,EAEnC,CAGA,SAASD,EAAaN,EAAWO,EAAO,CACtCA,EAAQG,EAAAA,UAAUH,CAAK,EAAGA,EAAM,CAAC,GAAKP,EACtCW,EAAAA,0BAA0BJ,CAAK,EAC/B,IAAIZ,EAASiB,EAAAA,KAAK,CAACL,EAAM,CAAC,CAAC,EAC3B,QAAS,CAACA,EAAM,CAAC,EAAI,EAAI,CAACZ,EAASA,GAAUU,MAAMQ,EAAAA,SAAWR,EAAAA,GAChE","x_google_ignoreList":[0]}
|
package/dist/index.cjs243.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs244.js");function i(n){return[t.atan2(n[1],n[0]),t.asin(n[2])]}function c(n){var r=n[0],e=n[1],a=t.cos(e);return[a*t.cos(r),a*t.sin(r),t.sin(e)]}function s(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function o(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function u(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function l(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function f(n){var r=t.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}exports.cartesian=c;exports.cartesianAddInPlace=u;exports.cartesianCross=o;exports.cartesianDot=s;exports.cartesianNormalizeInPlace=f;exports.cartesianScale=l;exports.spherical=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs243.js.map
|
package/dist/index.cjs243.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs243.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs243.js","sources":["../../../node_modules/d3-geo/src/cartesian.js"],"sourcesContent":["import {asin, atan2, cos, sin, sqrt} from \"./math\";\n\nexport function spherical(cartesian) {\n return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];\n}\n\nexport function cartesian(spherical) {\n var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);\n return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];\n}\n\nexport function cartesianDot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nexport function cartesianCross(a, b) {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\n// TODO return a\nexport function cartesianAddInPlace(a, b) {\n a[0] += b[0], a[1] += b[1], a[2] += b[2];\n}\n\nexport function cartesianScale(vector, k) {\n return [vector[0] * k, vector[1] * k, vector[2] * k];\n}\n\n// TODO return d\nexport function cartesianNormalizeInPlace(d) {\n var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\n d[0] /= l, d[1] /= l, d[2] /= l;\n}\n"],"names":["spherical","cartesian","atan2","asin","lambda","phi","cosPhi","cos","sin","cartesianDot","a","b","cartesianCross","cartesianAddInPlace","cartesianScale","vector","k","cartesianNormalizeInPlace","d","l","sqrt"],"mappings":"qHAEO,SAASA,EAAUC,EAAW,CACnC,MAAO,CAACC,EAAAA,MAAMD,EAAU,CAAC,EAAGA,EAAU,CAAC,CAAC,EAAGE,EAAAA,KAAKF,EAAU,CAAC,CAAC,CAAC,CAC/D,CAEO,SAASA,EAAUD,EAAW,CACnC,IAAII,EAASJ,EAAU,CAAC,EAAGK,EAAML,EAAU,CAAC,EAAGM,EAASC,EAAAA,IAAIF,CAAG,EAC/D,MAAO,CAACC,EAASC,MAAIH,CAAM,EAAGE,EAASE,EAAAA,IAAIJ,CAAM,EAAGI,MAAIH,CAAG,CAAC,CAC9D,CAEO,SAASI,EAAaC,EAAGC,EAAG,CACjC,OAAOD,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,CAC/C,CAEO,SAASC,EAAeF,EAAGC,EAAG,CACnC,MAAO,CAACD,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAGD,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAGD,EAAE,CAAC,EAAIC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAIC,EAAE,CAAC,CAAC,CACzF,CAGO,SAASE,EAAoBH,EAAGC,EAAG,CACxCD,EAAE,CAAC,GAAKC,EAAE,CAAC,EAAGD,EAAE,CAAC,GAAKC,EAAE,CAAC,EAAGD,EAAE,CAAC,GAAKC,EAAE,CAAC,CACzC,CAEO,SAASG,EAAeC,EAAQC,EAAG,CACxC,MAAO,CAACD,EAAO,CAAC,EAAIC,EAAGD,EAAO,CAAC,EAAIC,EAAGD,EAAO,CAAC,EAAIC,CAAC,CACrD,CAGO,SAASC,EAA0BC,EAAG,CAC3C,IAAIC,EAAIC,EAAAA,KAAKF,EAAE,CAAC,EAAIA,EAAE,CAAC,EAAIA,EAAE,CAAC,EAAIA,EAAE,CAAC,EAAIA,EAAE,CAAC,EAAIA,EAAE,CAAC,CAAC,EACpDA,EAAE,CAAC,GAAKC,EAAGD,EAAE,CAAC,GAAKC,EAAGD,EAAE,CAAC,GAAKC,CAChC","x_google_ignoreList":[0]}
|
package/dist/index.cjs244.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var s=1e-6,r=Math.PI,t=r/2,n=r/4,i=r*2,e=180/r,o=r/180,v=Math.abs,h=Math.atan,u=Math.atan2,c=Math.cos,M=Math.sin,l=Math.sqrt;function d(a){return a>1?0:a<-1?r:Math.acos(a)}function P(a){return a>1?t:a<-1?-t:Math.asin(a)}exports.abs=v;exports.acos=d;exports.asin=P;exports.atan=h;exports.atan2=u;exports.cos=c;exports.degrees=e;exports.epsilon=s;exports.halfPi=t;exports.pi=r;exports.quarterPi=n;exports.radians=o;exports.sin=M;exports.sqrt=l;exports.tau=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs244.js.map
|
package/dist/index.cjs244.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs244.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs244.js","sources":["../../../node_modules/d3-geo/src/math.js"],"sourcesContent":["export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n"],"names":["epsilon","pi","halfPi","quarterPi","tau","degrees","radians","abs","atan","atan2","cos","sin","sqrt","acos","x","asin"],"mappings":"gFAAO,IAAIA,EAAU,KAEVC,EAAK,KAAK,GACVC,EAASD,EAAK,EACdE,EAAYF,EAAK,EACjBG,EAAMH,EAAK,EAEXI,EAAU,IAAMJ,EAChBK,EAAUL,EAAK,IAEfM,EAAM,KAAK,IACXC,EAAO,KAAK,KACZC,EAAQ,KAAK,MACbC,EAAM,KAAK,IAMXC,EAAM,KAAK,IAEXC,EAAO,KAAK,KAGhB,SAASC,EAAKC,EAAG,CACtB,OAAOA,EAAI,EAAI,EAAIA,EAAI,GAAKb,EAAK,KAAK,KAAKa,CAAC,CAC9C,CAEO,SAASC,EAAKD,EAAG,CACtB,OAAOA,EAAI,EAAIZ,EAASY,EAAI,GAAK,CAACZ,EAAS,KAAK,KAAKY,CAAC,CACxD","x_google_ignoreList":[0]}
|
package/dist/index.cjs245.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index.cjs244.js"),U=require("./index.cjs246.js"),V=require("./index.cjs247.js"),W=require("./index.cjs248.js");require("./index.cjs192.js");const X=require("./index.cjs249.js");var E=1e9,O=-E;function Y(s,d,m,u){function j(i,n){return s<=i&&i<=m&&d<=n&&n<=u}function k(i,n,l,o){var r=0,p=0;if(i==null||(r=q(i,l))!==(p=q(n,l))||z(i,n)<0^l>0)do o.point(r===0||r===3?s:m,r>1?u:d);while((r=(r+l+4)%4)!==p);else o.point(n[0],n[1])}function q(i,n){return S.abs(i[0]-s)<S.epsilon?n>0?0:3:S.abs(i[0]-m)<S.epsilon?n>0?2:1:S.abs(i[1]-d)<S.epsilon?n>0?1:0:n>0?3:2}function G(i,n){return z(i.x,n.x)}function z(i,n){var l=q(i,1),o=q(n,1);return l!==o?l-o:l===0?n[1]-i[1]:l===1?i[0]-n[0]:l===2?i[1]-n[1]:n[0]-i[0]}return function(i){var n=i,l=U(),o,r,p,A,B,C,I,P,v,T,w,$={point:D,lineStart:L,lineEnd:Q,polygonStart:J,polygonEnd:K};function D(e,t){j(e,t)&&n.point(e,t)}function H(){for(var e=0,t=0,f=r.length;t<f;++t)for(var a=r[t],c=1,R=a.length,M=a[0],_,h,N=M[0],g=M[1];c<R;++c)_=N,h=g,M=a[c],N=M[0],g=M[1],h<=u?g>u&&(N-_)*(u-h)>(g-h)*(s-_)&&++e:g<=u&&(N-_)*(u-h)<(g-h)*(s-_)&&--e;return e}function J(){n=l,o=[],r=[],w=!0}function K(){var e=H(),t=w&&e,f=(o=X(o)).length;(t||f)&&(i.polygonStart(),t&&(i.lineStart(),k(null,null,1,i),i.lineEnd()),f&&W(o,G,e,k,i),i.polygonEnd()),n=i,o=r=p=null}function L(){$.point=F,r&&r.push(p=[]),T=!0,v=!1,I=P=NaN}function Q(){o&&(F(A,B),C&&v&&l.rejoin(),o.push(l.result())),$.point=D,v&&n.lineEnd()}function F(e,t){var f=j(e,t);if(r&&p.push([e,t]),T)A=e,B=t,C=f,T=!1,f&&(n.lineStart(),n.point(e,t));else if(f&&v)n.point(e,t);else{var a=[I=Math.max(O,Math.min(E,I)),P=Math.max(O,Math.min(E,P))],c=[e=Math.max(O,Math.min(E,e)),t=Math.max(O,Math.min(E,t))];V(a,c,s,d,m,u)?(v||(n.lineStart(),n.point(a[0],a[1])),n.point(c[0],c[1]),f||n.lineEnd(),w=!1):f&&(n.lineStart(),n.point(e,t),w=!1)}I=e,P=t,v=f}return $}}exports.clipExtent=Y;
|
|
2
2
|
//# sourceMappingURL=index.cjs245.js.map
|
package/dist/index.cjs245.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs245.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs245.js","sources":["../../../node_modules/d3-geo/src/clip/extent.js"],"sourcesContent":["import {abs, epsilon} from \"../math\";\nimport clipBuffer from \"./buffer\";\nimport clipLine from \"./line\";\nimport clipPolygon from \"./polygon\";\nimport {merge} from \"d3-array\";\n\nvar clipMax = 1e9, clipMin = -clipMax;\n\n// TODO Use d3-polygon’s polygonContains here for the ring check?\n// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?\n\nexport function clipExtent(x0, y0, x1, y1) {\n\n function visible(x, y) {\n return x0 <= x && x <= x1 && y0 <= y && y <= y1;\n }\n\n function interpolate(from, to, direction, stream) {\n var a = 0, a1 = 0;\n if (from == null\n || (a = corner(from, direction)) !== (a1 = corner(to, direction))\n || comparePoint(from, to) < 0 ^ direction > 0) {\n do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\n while ((a = (a + direction + 4) % 4) !== a1);\n } else {\n stream.point(to[0], to[1]);\n }\n }\n\n function corner(p, direction) {\n return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3\n : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1\n : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0\n : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon\n }\n\n function compareIntersection(a, b) {\n return comparePoint(a.x, b.x);\n }\n\n function comparePoint(a, b) {\n var ca = corner(a, 1),\n cb = corner(b, 1);\n return ca !== cb ? ca - cb\n : ca === 0 ? b[1] - a[1]\n : ca === 1 ? a[0] - b[0]\n : ca === 2 ? a[1] - b[1]\n : b[0] - a[0];\n }\n\n return function(stream) {\n var activeStream = stream,\n bufferStream = clipBuffer(),\n segments,\n polygon,\n ring,\n x__, y__, v__, // first point\n x_, y_, v_, // previous point\n first,\n clean;\n\n var clipStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: polygonStart,\n polygonEnd: polygonEnd\n };\n\n function point(x, y) {\n if (visible(x, y)) activeStream.point(x, y);\n }\n\n function polygonInside() {\n var winding = 0;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {\n a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];\n if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }\n else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }\n }\n }\n\n return winding;\n }\n\n // Buffer geometry within a polygon and then clip it en masse.\n function polygonStart() {\n activeStream = bufferStream, segments = [], polygon = [], clean = true;\n }\n\n function polygonEnd() {\n var startInside = polygonInside(),\n cleanInside = clean && startInside,\n visible = (segments = merge(segments)).length;\n if (cleanInside || visible) {\n stream.polygonStart();\n if (cleanInside) {\n stream.lineStart();\n interpolate(null, null, 1, stream);\n stream.lineEnd();\n }\n if (visible) {\n clipPolygon(segments, compareIntersection, startInside, interpolate, stream);\n }\n stream.polygonEnd();\n }\n activeStream = stream, segments = polygon = ring = null;\n }\n\n function lineStart() {\n clipStream.point = linePoint;\n if (polygon) polygon.push(ring = []);\n first = true;\n v_ = false;\n x_ = y_ = NaN;\n }\n\n // TODO rather than special-case polygons, simply handle them separately.\n // Ideally, coincident intersection points should be jittered to avoid\n // clipping issues.\n function lineEnd() {\n if (segments) {\n linePoint(x__, y__);\n if (v__ && v_) bufferStream.rejoin();\n segments.push(bufferStream.result());\n }\n clipStream.point = point;\n if (v_) activeStream.lineEnd();\n }\n\n function linePoint(x, y) {\n var v = visible(x, y);\n if (polygon) ring.push([x, y]);\n if (first) {\n x__ = x, y__ = y, v__ = v;\n first = false;\n if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n }\n } else {\n if (v && v_) activeStream.point(x, y);\n else {\n var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],\n b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];\n if (clipLine(a, b, x0, y0, x1, y1)) {\n if (!v_) {\n activeStream.lineStart();\n activeStream.point(a[0], a[1]);\n }\n activeStream.point(b[0], b[1]);\n if (!v) activeStream.lineEnd();\n clean = false;\n } else if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n clean = false;\n }\n }\n }\n x_ = x, y_ = y, v_ = v;\n }\n\n return clipStream;\n };\n}\n\nexport default function() {\n var x0 = 0,\n y0 = 0,\n x1 = 960,\n y1 = 500,\n cache,\n cacheStream,\n clip;\n\n return clip = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = clipExtent(x0, y0, x1, y1)(cacheStream = stream);\n },\n extent: function(_) {\n return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];\n }\n };\n}\n"],"names":["clipMax","clipMin","clipExtent","x0","y0","x1","y1","visible","x","y","interpolate","from","to","direction","stream","a","a1","corner","comparePoint","p","abs","epsilon","compareIntersection","b","ca","cb","activeStream","bufferStream","clipBuffer","segments","polygon","ring","x__","y__","v__","x_","y_","v_","first","clean","clipStream","point","lineStart","lineEnd","polygonStart","polygonEnd","polygonInside","winding","i","n","j","m","a0","b0","b1","startInside","cleanInside","merge","clipPolygon","linePoint","v","clipLine"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index.cjs246.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const e=require("./index.cjs264.js");function r(){var n=[],t;return{point:function(i,u){t.push([i,u])},lineStart:function(){n.push(t=[])},lineEnd:e,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],t=null,i}}}module.exports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs246.js.map
|
package/dist/index.cjs246.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs246.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs246.js","sources":["../../../node_modules/d3-geo/src/clip/buffer.js"],"sourcesContent":["import noop from \"../noop\";\n\nexport default function() {\n var lines = [],\n line;\n return {\n point: function(x, y) {\n line.push([x, y]);\n },\n lineStart: function() {\n lines.push(line = []);\n },\n lineEnd: noop,\n rejoin: function() {\n if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\n },\n result: function() {\n var result = lines;\n lines = [];\n line = null;\n return result;\n }\n };\n}\n"],"names":["clipBuffer","lines","line","x","y","noop","result"],"mappings":"kDAEA,SAAAA,GAA0B,CACxB,IAAIC,EAAQ,CAAA,EACRC,EACJ,MAAO,CACL,MAAO,SAASC,EAAGC,EAAG,CACpBF,EAAK,KAAK,CAACC,EAAGC,CAAC,CAAC,CAClB,EACA,UAAW,UAAW,CACpBH,EAAM,KAAKC,EAAO,EAAE,CACtB,EACA,QAASG,EACT,OAAQ,UAAW,CACbJ,EAAM,OAAS,GAAGA,EAAM,KAAKA,EAAM,IAAA,EAAM,OAAOA,EAAM,MAAA,CAAO,CAAC,CACpE,EACA,OAAQ,UAAW,CACjB,IAAIK,EAASL,EACb,OAAAA,EAAQ,CAAA,EACRC,EAAO,KACAI,CACT,CAAA,CAEJ","x_google_ignoreList":[0]}
|
package/dist/index.cjs247.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";function v(s,l,x,c,y,d){var n=s[0],u=s[1],o=l[0],p=l[1],f=0,r=1,e=o-n,t=p-u,i;if(i=x-n,!(!e&&i>0)){if(i/=e,e<0){if(i<f)return;i<r&&(r=i)}else if(e>0){if(i>r)return;i>f&&(f=i)}if(i=y-n,!(!e&&i<0)){if(i/=e,e<0){if(i>r)return;i>f&&(f=i)}else if(e>0){if(i<f)return;i<r&&(r=i)}if(i=c-u,!(!t&&i>0)){if(i/=t,t<0){if(i<f)return;i<r&&(r=i)}else if(t>0){if(i>r)return;i>f&&(f=i)}if(i=d-u,!(!t&&i<0)){if(i/=t,t<0){if(i>r)return;i>f&&(f=i)}else if(t>0){if(i<f)return;i<r&&(r=i)}return f>0&&(s[0]=n+f*e,s[1]=u+f*t),r<1&&(l[0]=n+r*e,l[1]=u+r*t),!0}}}}}module.exports=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs247.js.map
|
package/dist/index.cjs247.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs247.js","sources":["../../../node_modules/d3-geo/src/clip/
|
|
1
|
+
{"version":3,"file":"index.cjs247.js","sources":["../../../node_modules/d3-geo/src/clip/line.js"],"sourcesContent":["export default function(a, b, x0, y0, x1, y1) {\n var ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;\n if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;\n return true;\n}\n"],"names":["clipLine","a","b","x0","y0","x1","y1","ax","ay","bx","by","t0","t1","dx","dy","r"],"mappings":"aAAA,SAAAA,EAAwBC,EAAGC,EAAGC,EAAIC,EAAIC,EAAIC,EAAI,CAC5C,IAAIC,EAAKN,EAAE,CAAC,EACRO,EAAKP,EAAE,CAAC,EACRQ,EAAKP,EAAE,CAAC,EACRQ,EAAKR,EAAE,CAAC,EACRS,EAAK,EACLC,EAAK,EACLC,EAAKJ,EAAKF,EACVO,EAAKJ,EAAKF,EACVO,EAGJ,GADAA,EAAIZ,EAAKI,EACL,GAACM,GAAME,EAAI,GAEf,IADAA,GAAKF,EACDA,EAAK,EAAG,CACV,GAAIE,EAAIJ,EAAI,OACRI,EAAIH,IAAIA,EAAKG,EACnB,SAAWF,EAAK,EAAG,CACjB,GAAIE,EAAIH,EAAI,OACRG,EAAIJ,IAAIA,EAAKI,EACnB,CAGA,GADAA,EAAIV,EAAKE,EACL,GAACM,GAAME,EAAI,GAEf,IADAA,GAAKF,EACDA,EAAK,EAAG,CACV,GAAIE,EAAIH,EAAI,OACRG,EAAIJ,IAAIA,EAAKI,EACnB,SAAWF,EAAK,EAAG,CACjB,GAAIE,EAAIJ,EAAI,OACRI,EAAIH,IAAIA,EAAKG,EACnB,CAGA,GADAA,EAAIX,EAAKI,EACL,GAACM,GAAMC,EAAI,GAEf,IADAA,GAAKD,EACDA,EAAK,EAAG,CACV,GAAIC,EAAIJ,EAAI,OACRI,EAAIH,IAAIA,EAAKG,EACnB,SAAWD,EAAK,EAAG,CACjB,GAAIC,EAAIH,EAAI,OACRG,EAAIJ,IAAIA,EAAKI,EACnB,CAGA,GADAA,EAAIT,EAAKE,EACL,GAACM,GAAMC,EAAI,GAEf,IADAA,GAAKD,EACDA,EAAK,EAAG,CACV,GAAIC,EAAIH,EAAI,OACRG,EAAIJ,IAAIA,EAAKI,EACnB,SAAWD,EAAK,EAAG,CACjB,GAAIC,EAAIJ,EAAI,OACRI,EAAIH,IAAIA,EAAKG,EACnB,CAEA,OAAIJ,EAAK,IAAGV,EAAE,CAAC,EAAIM,EAAKI,EAAKE,EAAIZ,EAAE,CAAC,EAAIO,EAAKG,EAAKG,GAC9CF,EAAK,IAAGV,EAAE,CAAC,EAAIK,EAAKK,EAAKC,EAAIX,EAAE,CAAC,EAAIM,EAAKI,EAAKE,GAC3C,MACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs248.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const A=require("./index.cjs262.js");function d(h,v,f,o){this.x=h,this.z=v,this.o=f,this.e=o,this.v=!1,this.n=this.p=null}function B(h,v,f,o,n){var x=[],s=[],l,z;if(h.forEach(function(w){if(!((g=w.length-1)<=0)){var g,u=w[0],q=w[g],t;if(A(u,q)){for(n.lineStart(),l=0;l<g;++l)n.point((u=w[l])[0],u[1]);n.lineEnd();return}x.push(t=new d(u,w,null,!0)),s.push(t.o=new d(u,null,t,!1)),x.push(t=new d(q,w,null,!1)),s.push(t.o=new d(q,null,t,!0))}}),!!x.length){for(s.sort(v),P(x),P(s),l=0,z=s.length;l<z;++l)s[l].e=f=!f;for(var k=x[0],p,E;;){for(var i=k,e=!0;i.v;)if((i=i.n)===k)return;p=i.z,n.lineStart();do{if(i.v=i.o.v=!0,i.e){if(e)for(l=0,z=p.length;l<z;++l)n.point((E=p[l])[0],E[1]);else o(i.x,i.n.x,1,n);i=i.n}else{if(e)for(p=i.p.z,l=p.length-1;l>=0;--l)n.point((E=p[l])[0],E[1]);else o(i.x,i.p.x,-1,n);i=i.p}i=i.o,p=i.z,e=!e}while(!i.v);n.lineEnd()}}}function P(h){if(v=h.length){for(var v,f=0,o=h[0],n;++f<v;)o.n=n=h[f],n.p=o,o=n;o.n=n=h[0],n.p=o}}module.exports=B;
|
|
2
2
|
//# sourceMappingURL=index.cjs248.js.map
|
package/dist/index.cjs248.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs248.js","sources":["../../../node_modules/d3-geo/src/clip/
|
|
1
|
+
{"version":3,"file":"index.cjs248.js","sources":["../../../node_modules/d3-geo/src/clip/polygon.js"],"sourcesContent":["import pointEqual from \"../pointEqual\";\n\nfunction Intersection(point, points, other, entry) {\n this.x = point;\n this.z = points;\n this.o = other; // another intersection\n this.e = entry; // is an entry?\n this.v = false; // visited\n this.n = this.p = null; // next & previous\n}\n\n// A generalized polygon clipping algorithm: given a polygon that has been cut\n// into its visible line segments, and rejoins the segments by interpolating\n// along the clip edge.\nexport default function(segments, compareIntersection, startInside, interpolate, stream) {\n var subject = [],\n clip = [],\n i,\n n;\n\n segments.forEach(function(segment) {\n if ((n = segment.length - 1) <= 0) return;\n var n, p0 = segment[0], p1 = segment[n], x;\n\n // If the first and last points of a segment are coincident, then treat as a\n // closed ring. TODO if all rings are closed, then the winding order of the\n // exterior ring should be checked.\n if (pointEqual(p0, p1)) {\n stream.lineStart();\n for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);\n stream.lineEnd();\n return;\n }\n\n subject.push(x = new Intersection(p0, segment, null, true));\n clip.push(x.o = new Intersection(p0, null, x, false));\n subject.push(x = new Intersection(p1, segment, null, false));\n clip.push(x.o = new Intersection(p1, null, x, true));\n });\n\n if (!subject.length) return;\n\n clip.sort(compareIntersection);\n link(subject);\n link(clip);\n\n for (i = 0, n = clip.length; i < n; ++i) {\n clip[i].e = startInside = !startInside;\n }\n\n var start = subject[0],\n points,\n point;\n\n while (1) {\n // Find first unvisited intersection.\n var current = start,\n isSubject = true;\n while (current.v) if ((current = current.n) === start) return;\n points = current.z;\n stream.lineStart();\n do {\n current.v = current.o.v = true;\n if (current.e) {\n if (isSubject) {\n for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.n.x, 1, stream);\n }\n current = current.n;\n } else {\n if (isSubject) {\n points = current.p.z;\n for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.p.x, -1, stream);\n }\n current = current.p;\n }\n current = current.o;\n points = current.z;\n isSubject = !isSubject;\n } while (!current.v);\n stream.lineEnd();\n }\n}\n\nfunction link(array) {\n if (!(n = array.length)) return;\n var n,\n i = 0,\n a = array[0],\n b;\n while (++i < n) {\n a.n = b = array[i];\n b.p = a;\n a = b;\n }\n a.n = b = array[0];\n b.p = a;\n}\n"],"names":["Intersection","point","points","other","entry","clipPolygon","segments","compareIntersection","startInside","interpolate","stream","subject","clip","i","n","segment","p0","p1","x","pointEqual","link","start","current","isSubject","array","a","b"],"mappings":"kDAEA,SAASA,EAAaC,EAAOC,EAAQC,EAAOC,EAAO,CACjD,KAAK,EAAIH,EACT,KAAK,EAAIC,EACT,KAAK,EAAIC,EACT,KAAK,EAAIC,EACT,KAAK,EAAI,GACT,KAAK,EAAI,KAAK,EAAI,IACpB,CAKA,SAAAC,EAAwBC,EAAUC,EAAqBC,EAAaC,EAAaC,EAAQ,CACvF,IAAIC,EAAU,CAAA,EACVC,EAAO,CAAA,EACPC,EACAC,EAsBJ,GApBAR,EAAS,QAAQ,SAASS,EAAS,CACjC,GAAKD,GAAAA,EAAIC,EAAQ,OAAS,IAAM,GAChC,KAAID,EAAGE,EAAKD,EAAQ,CAAC,EAAGE,EAAKF,EAAQD,CAAC,EAAGI,EAKzC,GAAIC,EAAWH,EAAIC,CAAE,EAAG,CAEtB,IADAP,EAAO,UAAA,EACFG,EAAI,EAAGA,EAAIC,EAAG,EAAED,EAAGH,EAAO,OAAOM,EAAKD,EAAQF,CAAC,GAAG,CAAC,EAAGG,EAAG,CAAC,CAAC,EAChEN,EAAO,QAAA,EACP,MACF,CAEAC,EAAQ,KAAKO,EAAI,IAAIlB,EAAagB,EAAID,EAAS,KAAM,EAAI,CAAC,EAC1DH,EAAK,KAAKM,EAAE,EAAI,IAAIlB,EAAagB,EAAI,KAAME,EAAG,EAAK,CAAC,EACpDP,EAAQ,KAAKO,EAAI,IAAIlB,EAAaiB,EAAIF,EAAS,KAAM,EAAK,CAAC,EAC3DH,EAAK,KAAKM,EAAE,EAAI,IAAIlB,EAAaiB,EAAI,KAAMC,EAAG,EAAI,CAAC,EACrD,CAAC,EAEG,EAACP,EAAQ,OAMb,KAJAC,EAAK,KAAKL,CAAmB,EAC7Ba,EAAKT,CAAO,EACZS,EAAKR,CAAI,EAEJC,EAAI,EAAGC,EAAIF,EAAK,OAAQC,EAAIC,EAAG,EAAED,EACpCD,EAAKC,CAAC,EAAE,EAAIL,EAAc,CAACA,EAO7B,QAJIa,EAAQV,EAAQ,CAAC,EACjBT,EACAD,IAEM,CAIR,QAFIqB,EAAUD,EACVE,EAAY,GACTD,EAAQ,GAAG,IAAKA,EAAUA,EAAQ,KAAOD,EAAO,OACvDnB,EAASoB,EAAQ,EACjBZ,EAAO,UAAA,EACP,EAAG,CAED,GADAY,EAAQ,EAAIA,EAAQ,EAAE,EAAI,GACtBA,EAAQ,EAAG,CACb,GAAIC,EACF,IAAKV,EAAI,EAAGC,EAAIZ,EAAO,OAAQW,EAAIC,EAAG,EAAED,IAAU,OAAOZ,EAAQC,EAAOW,CAAC,GAAG,CAAC,EAAGZ,EAAM,CAAC,CAAC,OAExFQ,EAAYa,EAAQ,EAAGA,EAAQ,EAAE,EAAG,EAAGZ,CAAM,EAE/CY,EAAUA,EAAQ,CACpB,KAAO,CACL,GAAIC,EAEF,IADArB,EAASoB,EAAQ,EAAE,EACdT,EAAIX,EAAO,OAAS,EAAGW,GAAK,EAAG,EAAEA,EAAGH,EAAO,OAAOT,EAAQC,EAAOW,CAAC,GAAG,CAAC,EAAGZ,EAAM,CAAC,CAAC,OAEtFQ,EAAYa,EAAQ,EAAGA,EAAQ,EAAE,EAAG,GAAIZ,CAAM,EAEhDY,EAAUA,EAAQ,CACpB,CACAA,EAAUA,EAAQ,EAClBpB,EAASoB,EAAQ,EACjBC,EAAY,CAACA,CACf,OAAS,CAACD,EAAQ,GAClBZ,EAAO,QAAA,CACT,EACF,CAEA,SAASU,EAAKI,EAAO,CACnB,GAAMV,EAAIU,EAAM,OAKhB,SAJIV,EACAD,EAAI,EACJY,EAAID,EAAM,CAAC,EACXE,EACG,EAAEb,EAAIC,GACXW,EAAE,EAAIC,EAAIF,EAAMX,CAAC,EACjBa,EAAE,EAAID,EACNA,EAAIC,EAEND,EAAE,EAAIC,EAAIF,EAAM,CAAC,EACjBE,EAAE,EAAID,EACR","x_google_ignoreList":[0]}
|
package/dist/index.cjs249.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function g(e){for(var n=e.length,t,l=-1,r=0,h,i;++l<n;)r+=e[l].length;for(h=new Array(r);--n>=0;)for(i=e[n],t=i.length;--t>=0;)h[--r]=i[t];return h}module.exports=g;
|
|
2
2
|
//# sourceMappingURL=index.cjs249.js.map
|
package/dist/index.cjs249.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs249.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs249.js","sources":["../../../node_modules/d3-geo/node_modules/d3-array/src/merge.js"],"sourcesContent":["export default function(arrays) {\n var n = arrays.length,\n m,\n i = -1,\n j = 0,\n merged,\n array;\n\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n\n return merged;\n}\n"],"names":["merge","arrays","m","i","j","merged","array"],"mappings":"aAAA,SAAAA,EAAwBC,EAAQ,CAQ9B,QAPI,EAAIA,EAAO,OACXC,EACAC,EAAI,GACJC,EAAI,EACJC,EACAC,EAEG,EAAEH,EAAI,GAAGC,GAAKH,EAAOE,CAAC,EAAE,OAG/B,IAFAE,EAAS,IAAI,MAAMD,CAAC,EAEb,EAAE,GAAK,GAGZ,IAFAE,EAAQL,EAAO,CAAC,EAChBC,EAAII,EAAM,OACH,EAAEJ,GAAK,GACZG,EAAO,EAAED,CAAC,EAAIE,EAAMJ,CAAC,EAIzB,OAAOG,CACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs250.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs244.js");function o(u){return function(n,r){var a=t.cos(n),c=t.cos(r),i=u(a*c);return[i*c*t.sin(n),i*t.sin(r)]}}function s(u){return function(n,r){var a=t.sqrt(n*n+r*r),c=u(a),i=t.sin(c),e=t.cos(c);return[t.atan2(n*i,a*e),t.asin(a&&r*i/a)]}}exports.azimuthalInvert=s;exports.azimuthalRaw=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs250.js.map
|
package/dist/index.cjs250.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs250.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.cjs250.js","sources":["../../../node_modules/d3-geo/src/projection/azimuthal.js"],"sourcesContent":["import {asin, atan2, cos, sin, sqrt} from \"../math\";\n\nexport function azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nexport function azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n"],"names":["azimuthalRaw","scale","x","y","cx","cos","cy","k","sin","azimuthalInvert","angle","z","sqrt","sc","cc","atan2","asin"],"mappings":"qHAEO,SAASA,EAAaC,EAAO,CAClC,OAAO,SAASC,EAAGC,EAAG,CACpB,IAAIC,EAAKC,EAAAA,IAAIH,CAAC,EACVI,EAAKD,EAAAA,IAAIF,CAAC,EACVI,EAAIN,EAAMG,EAAKE,CAAE,EACrB,MAAO,CACLC,EAAID,EAAKE,EAAAA,IAAIN,CAAC,EACdK,EAAIC,EAAAA,IAAIL,CAAC,CAAA,CAEb,CACF,CAEO,SAASM,EAAgBC,EAAO,CACrC,OAAO,SAASR,EAAGC,EAAG,CACpB,IAAIQ,EAAIC,EAAAA,KAAKV,EAAIA,EAAIC,EAAIA,CAAC,EACtB,EAAIO,EAAMC,CAAC,EACXE,EAAKL,EAAAA,IAAI,CAAC,EACVM,EAAKT,EAAAA,IAAI,CAAC,EACd,MAAO,CACLU,EAAAA,MAAMb,EAAIW,EAAIF,EAAIG,CAAE,EACpBE,EAAAA,KAAKL,GAAKR,EAAIU,EAAKF,CAAC,CAAA,CAExB,CACF","x_google_ignoreList":[0]}
|
package/dist/index.cjs251.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function g(e){
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const G=require("./index.cjs252.js"),D=require("./index.cjs253.js"),F=require("./index.cjs245.js"),H=require("./index.cjs254.js"),L=require("./index.cjs255.js"),r=require("./index.cjs244.js"),I=require("./index.cjs191.js"),J=require("./index.cjs197.js"),O=require("./index.cjs256.js"),w=require("./index.cjs257.js");var K=J.transformer({point:function(u,a){this.stream.point(u*r.radians,a*r.radians)}});function N(u){return B(function(){return u})()}function B(u){var a,n=150,g=480,m=250,c,o,h=0,p=0,q=0,j=0,v=0,z,y,x=null,P=G,l=null,S,b,E,T=L,M=.5,k=w(A,M),d,R;function t(e){return e=y(e[0]*r.radians,e[1]*r.radians),[e[0]*n+c,o-e[1]*n]}function C(e){return e=y.invert((e[0]-c)/n,(o-e[1])/n),e&&[e[0]*r.degrees,e[1]*r.degrees]}function A(e,s){return e=a(e,s),[e[0]*n+c,o-e[1]*n]}t.stream=function(e){return d&&R===e?d:d=K(P(z,k(T(R=e))))},t.clipAngle=function(e){return arguments.length?(P=+e?D(x=e*r.radians,6*r.radians):(x=null,G),f()):x*r.degrees},t.clipExtent=function(e){return arguments.length?(T=e==null?(l=S=b=E=null,L):F.clipExtent(l=+e[0][0],S=+e[0][1],b=+e[1][0],E=+e[1][1]),f()):l==null?null:[[l,S],[b,E]]},t.scale=function(e){return arguments.length?(n=+e,i()):n},t.translate=function(e){return arguments.length?(g=+e[0],m=+e[1],i()):[g,m]},t.center=function(e){return arguments.length?(h=e[0]%360*r.radians,p=e[1]%360*r.radians,i()):[h*r.degrees,p*r.degrees]},t.rotate=function(e){return arguments.length?(q=e[0]%360*r.radians,j=e[1]%360*r.radians,v=e.length>2?e[2]%360*r.radians:0,i()):[q*r.degrees,j*r.degrees,v*r.degrees]},t.precision=function(e){return arguments.length?(k=w(A,M=e*e),f()):r.sqrt(M)},t.fitExtent=function(e,s){return O.fitExtent(t,e,s)},t.fitSize=function(e,s){return O.fitSize(t,e,s)};function i(){y=H(z=I.rotateRadians(q,j,v),a);var e=a(h,p);return c=g-e[0]*n,o=m+e[1]*n,f()}function f(){return d=R=null,t}return function(){return a=u.apply(this,arguments),t.invert=a.invert&&C,i()}}exports.default=N;exports.projectionMutator=B;
|
|
2
2
|
//# sourceMappingURL=index.cjs251.js.map
|