@performant-software/geospatial 3.1.18-beta.10 → 3.1.18-beta.12

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.
Files changed (111) hide show
  1. package/dist/index.cjs13.js +1 -1
  2. package/dist/index.cjs13.js.map +1 -1
  3. package/dist/index.cjs15.js +1 -1
  4. package/dist/index.cjs189.js +1 -1
  5. package/dist/index.cjs189.js.map +1 -1
  6. package/dist/index.cjs190.js +1 -1
  7. package/dist/index.cjs190.js.map +1 -1
  8. package/dist/index.cjs191.js +1 -1
  9. package/dist/index.cjs191.js.map +1 -1
  10. package/dist/index.cjs192.js +1 -1
  11. package/dist/index.cjs192.js.map +1 -1
  12. package/dist/index.cjs193.js +1 -1
  13. package/dist/index.cjs193.js.map +1 -1
  14. package/dist/index.cjs194.js +1 -1
  15. package/dist/index.cjs194.js.map +1 -1
  16. package/dist/index.cjs195.js +1 -1
  17. package/dist/index.cjs195.js.map +1 -1
  18. package/dist/index.cjs196.js +1 -1
  19. package/dist/index.cjs196.js.map +1 -1
  20. package/dist/index.cjs197.js +1 -1
  21. package/dist/index.cjs197.js.map +1 -1
  22. package/dist/index.cjs198.js +1 -1
  23. package/dist/index.cjs198.js.map +1 -1
  24. package/dist/index.cjs199.js +1 -1
  25. package/dist/index.cjs199.js.map +1 -1
  26. package/dist/index.cjs200.js +1 -1
  27. package/dist/index.cjs200.js.map +1 -1
  28. package/dist/index.cjs201.js +1 -1
  29. package/dist/index.cjs201.js.map +1 -1
  30. package/dist/index.cjs202.js +1 -1
  31. package/dist/index.cjs202.js.map +1 -1
  32. package/dist/index.cjs203.js +1 -1
  33. package/dist/index.cjs203.js.map +1 -1
  34. package/dist/index.cjs204.js +1 -1
  35. package/dist/index.cjs204.js.map +1 -1
  36. package/dist/index.cjs248.js +1 -1
  37. package/dist/index.cjs251.js +1 -1
  38. package/dist/index.cjs257.js +1 -1
  39. package/dist/index.cjs263.js +1 -1
  40. package/dist/index.cjs268.js +1 -1
  41. package/dist/index.cjs32.js +1 -1
  42. package/dist/index.cjs69.js +1 -1
  43. package/dist/index.cjs71.js +1 -1
  44. package/dist/index.cjs73.js +743 -1
  45. package/dist/index.cjs73.js.map +1 -1
  46. package/dist/index.cjs75.js +1 -9
  47. package/dist/index.cjs75.js.map +1 -1
  48. package/dist/index.cjs76.js +1 -17
  49. package/dist/index.cjs76.js.map +1 -1
  50. package/dist/index.cjs77.js +9 -743
  51. package/dist/index.cjs77.js.map +1 -1
  52. package/dist/index.cjs78.js +17 -1
  53. package/dist/index.cjs78.js.map +1 -1
  54. package/dist/index.cjs84.js +1 -1
  55. package/dist/index.es13.js +34 -43
  56. package/dist/index.es13.js.map +1 -1
  57. package/dist/index.es15.js +1 -1
  58. package/dist/index.es189.js +12 -146
  59. package/dist/index.es189.js.map +1 -1
  60. package/dist/index.es190.js +147 -6
  61. package/dist/index.es190.js.map +1 -1
  62. package/dist/index.es191.js +7 -5
  63. package/dist/index.es191.js.map +1 -1
  64. package/dist/index.es192.js +7 -3
  65. package/dist/index.es192.js.map +1 -1
  66. package/dist/index.es193.js +1 -1
  67. package/dist/index.es193.js.map +1 -1
  68. package/dist/index.es194.js +3 -38
  69. package/dist/index.es194.js.map +1 -1
  70. package/dist/index.es195.js +38 -3
  71. package/dist/index.es195.js.map +1 -1
  72. package/dist/index.es196.js +3 -25
  73. package/dist/index.es196.js.map +1 -1
  74. package/dist/index.es197.js +25 -2
  75. package/dist/index.es197.js.map +1 -1
  76. package/dist/index.es198.js +0 -1
  77. package/dist/index.es198.js.map +1 -1
  78. package/dist/index.es199.js +1 -0
  79. package/dist/index.es199.js.map +1 -1
  80. package/dist/index.es200.js +2 -33
  81. package/dist/index.es200.js.map +1 -1
  82. package/dist/index.es201.js +31 -13
  83. package/dist/index.es201.js.map +1 -1
  84. package/dist/index.es202.js +11 -12
  85. package/dist/index.es202.js.map +1 -1
  86. package/dist/index.es203.js +13 -8
  87. package/dist/index.es203.js.map +1 -1
  88. package/dist/index.es204.js +8 -13
  89. package/dist/index.es204.js.map +1 -1
  90. package/dist/index.es248.js +1 -1
  91. package/dist/index.es251.js +1 -1
  92. package/dist/index.es257.js +2 -2
  93. package/dist/index.es263.js +1 -1
  94. package/dist/index.es268.js +2 -2
  95. package/dist/index.es32.js +1 -1
  96. package/dist/index.es69.js +1 -1
  97. package/dist/index.es71.js +6 -6
  98. package/dist/index.es73.js +21351 -7
  99. package/dist/index.es73.js.map +1 -1
  100. package/dist/index.es75.js +7 -25
  101. package/dist/index.es75.js.map +1 -1
  102. package/dist/index.es76.js +2 -589
  103. package/dist/index.es76.js.map +1 -1
  104. package/dist/index.es77.js +25 -21351
  105. package/dist/index.es77.js.map +1 -1
  106. package/dist/index.es78.js +589 -2
  107. package/dist/index.es78.js.map +1 -1
  108. package/dist/index.es84.js +1 -1
  109. package/package.json +1 -1
  110. package/src/utils/Map.js +5 -14
  111. package/types/utils/Map.js.flow +5 -14
@@ -1,34 +1,3 @@
1
- function e(t) {
2
- return function(n) {
3
- var r = new o();
4
- for (var i in t) r[i] = t[i];
5
- return r.stream = n, r;
6
- };
7
- }
8
- function o() {
9
- }
10
- o.prototype = {
11
- constructor: o,
12
- point: function(t, n) {
13
- this.stream.point(t, n);
14
- },
15
- sphere: function() {
16
- this.stream.sphere();
17
- },
18
- lineStart: function() {
19
- this.stream.lineStart();
20
- },
21
- lineEnd: function() {
22
- this.stream.lineEnd();
23
- },
24
- polygonStart: function() {
25
- this.stream.polygonStart();
26
- },
27
- polygonEnd: function() {
28
- this.stream.polygonEnd();
29
- }
30
- };
31
- export {
32
- e as transformer
33
- };
1
+ import r from "./index.es247.js";
2
+ r();
34
3
  //# sourceMappingURL=index.es200.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es200.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":"AAMO,SAASA,EAAYC,GAAS;AACnC,SAAO,SAASC,GAAQ;AACtB,QAAIC,IAAI,IAAIC,EAAA;AACZ,aAASC,KAAOJ,EAAS,CAAAE,EAAEE,CAAG,IAAIJ,EAAQI,CAAG;AAC7C,WAAAF,EAAE,SAASD,GACJC;AAAA,EACT;AACF;AAEA,SAASC,IAAkB;AAAC;AAE5BA,EAAgB,YAAY;AAAA,EAC1B,aAAaA;AAAA,EACb,OAAO,SAASE,GAAGC,GAAG;AAAE,SAAK,OAAO,MAAMD,GAAGC,CAAC;AAAA,EAAG;AAAA,EACjD,QAAQ,WAAW;AAAE,SAAK,OAAO,OAAA;AAAA,EAAU;AAAA,EAC3C,WAAW,WAAW;AAAE,SAAK,OAAO,UAAA;AAAA,EAAa;AAAA,EACjD,SAAS,WAAW;AAAE,SAAK,OAAO,QAAA;AAAA,EAAW;AAAA,EAC7C,cAAc,WAAW;AAAE,SAAK,OAAO,aAAA;AAAA,EAAgB;AAAA,EACvD,YAAY,WAAW;AAAE,SAAK,OAAO,WAAA;AAAA,EAAc;AACrD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es200.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":";AAIgBA,EAAA;","x_google_ignoreList":[0]}
@@ -1,16 +1,34 @@
1
- import { sqrt as t, asin as i } from "./index.es250.js";
2
- import { azimuthalInvert as a, azimuthalRaw as m } from "./index.es256.js";
3
- import "./index.es196.js";
4
- import "./index.es195.js";
5
- import "./index.es194.js";
6
- import "./index.es200.js";
7
- var o = m(function(r) {
8
- return t(2 / (1 + r));
9
- });
10
- o.invert = a(function(r) {
11
- return 2 * i(r / 2);
12
- });
1
+ function e(t) {
2
+ return function(n) {
3
+ var r = new o();
4
+ for (var i in t) r[i] = t[i];
5
+ return r.stream = n, r;
6
+ };
7
+ }
8
+ function o() {
9
+ }
10
+ o.prototype = {
11
+ constructor: o,
12
+ point: function(t, n) {
13
+ this.stream.point(t, n);
14
+ },
15
+ sphere: function() {
16
+ this.stream.sphere();
17
+ },
18
+ lineStart: function() {
19
+ this.stream.lineStart();
20
+ },
21
+ lineEnd: function() {
22
+ this.stream.lineEnd();
23
+ },
24
+ polygonStart: function() {
25
+ this.stream.polygonStart();
26
+ },
27
+ polygonEnd: function() {
28
+ this.stream.polygonEnd();
29
+ }
30
+ };
13
31
  export {
14
- o as azimuthalEqualAreaRaw
32
+ e as transformer
15
33
  };
16
34
  //# sourceMappingURL=index.es201.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es201.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":";;;;;;AAIO,IAAIA,IAAwBC,EAAa,SAASC,GAAM;AAC7D,SAAOC,EAAK,KAAK,IAAID,EAAK;AAC5B,CAAC;AAEDF,EAAsB,SAASI,EAAgB,SAASC,GAAG;AACzD,SAAO,IAAIC,EAAKD,IAAI,CAAC;AACvB,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es201.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":"AAMO,SAASA,EAAYC,GAAS;AACnC,SAAO,SAASC,GAAQ;AACtB,QAAIC,IAAI,IAAIC,EAAA;AACZ,aAASC,KAAOJ,EAAS,CAAAE,EAAEE,CAAG,IAAIJ,EAAQI,CAAG;AAC7C,WAAAF,EAAE,SAASD,GACJC;AAAA,EACT;AACF;AAEA,SAASC,IAAkB;AAAC;AAE5BA,EAAgB,YAAY;AAAA,EAC1B,aAAaA;AAAA,EACb,OAAO,SAASE,GAAGC,GAAG;AAAE,SAAK,OAAO,MAAMD,GAAGC,CAAC;AAAA,EAAG;AAAA,EACjD,QAAQ,WAAW;AAAE,SAAK,OAAO,OAAA;AAAA,EAAU;AAAA,EAC3C,WAAW,WAAW;AAAE,SAAK,OAAO,UAAA;AAAA,EAAa;AAAA,EACjD,SAAS,WAAW;AAAE,SAAK,OAAO,QAAA;AAAA,EAAW;AAAA,EAC7C,cAAc,WAAW;AAAE,SAAK,OAAO,aAAA;AAAA,EAAgB;AAAA,EACvD,YAAY,WAAW;AAAE,SAAK,OAAO,WAAA;AAAA,EAAc;AACrD;","x_google_ignoreList":[0]}
@@ -1,17 +1,16 @@
1
- import { acos as r, sin as a } from "./index.es250.js";
2
- import { azimuthalInvert as n, azimuthalRaw as o } from "./index.es256.js";
3
- import u from "./index.es257.js";
4
- var i = o(function(t) {
5
- return (t = r(t)) && t / a(t);
1
+ import { sqrt as t, asin as i } from "./index.es250.js";
2
+ import { azimuthalInvert as a, azimuthalRaw as m } from "./index.es256.js";
3
+ import "./index.es197.js";
4
+ import "./index.es196.js";
5
+ import "./index.es195.js";
6
+ import "./index.es201.js";
7
+ var o = m(function(r) {
8
+ return t(2 / (1 + r));
6
9
  });
7
- i.invert = n(function(t) {
8
- return t;
10
+ o.invert = a(function(r) {
11
+ return 2 * i(r / 2);
9
12
  });
10
- function f() {
11
- return u(i).scale(79.4188).clipAngle(180 - 1e-3);
12
- }
13
13
  export {
14
- i as azimuthalEquidistantRaw,
15
- f as default
14
+ o as azimuthalEqualAreaRaw
16
15
  };
17
16
  //# sourceMappingURL=index.es202.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es202.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":";;;AAIO,IAAIA,IAA0BC,EAAa,SAASC,GAAG;AAC5D,UAAQA,IAAIC,EAAKD,CAAC,MAAMA,IAAIE,EAAIF,CAAC;AACnC,CAAC;AAEDF,EAAwB,SAASK,EAAgB,SAASC,GAAG;AAC3D,SAAOA;AACT,CAAC;AAED,SAAAC,IAA0B;AACxB,SAAOC,EAAWR,CAAuB,EACpC,MAAM,OAAO,EACb,UAAU,MAAM,IAAI;AAC3B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es202.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":";;;;;;AAIO,IAAIA,IAAwBC,EAAa,SAASC,GAAM;AAC7D,SAAOC,EAAK,KAAK,IAAID,EAAK;AAC5B,CAAC;AAEDF,EAAsB,SAASI,EAAgB,SAASC,GAAG;AACzD,SAAO,IAAIC,EAAKD,IAAI,CAAC;AACvB,CAAC;","x_google_ignoreList":[0]}
@@ -1,12 +1,17 @@
1
- import "./index.es196.js";
2
- import "./index.es195.js";
3
- import "./index.es194.js";
4
- import "./index.es200.js";
5
- function r(t, i) {
6
- return [t, i];
1
+ import { acos as r, sin as a } from "./index.es250.js";
2
+ import { azimuthalInvert as n, azimuthalRaw as o } from "./index.es256.js";
3
+ import u from "./index.es257.js";
4
+ var i = o(function(t) {
5
+ return (t = r(t)) && t / a(t);
6
+ });
7
+ i.invert = n(function(t) {
8
+ return t;
9
+ });
10
+ function f() {
11
+ return u(i).scale(79.4188).clipAngle(180 - 1e-3);
7
12
  }
8
- r.invert = r;
9
13
  export {
10
- r as equirectangularRaw
14
+ i as azimuthalEquidistantRaw,
15
+ f as default
11
16
  };
12
17
  //# sourceMappingURL=index.es203.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es203.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":";;;;AAEO,SAASA,EAAmBC,GAAQC,GAAK;AAC9C,SAAO,CAACD,GAAQC,CAAG;AACrB;AAEAF,EAAmB,SAASA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es203.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":";;;AAIO,IAAIA,IAA0BC,EAAa,SAASC,GAAG;AAC5D,UAAQA,IAAIC,EAAKD,CAAC,MAAMA,IAAIE,EAAIF,CAAC;AACnC,CAAC;AAEDF,EAAwB,SAASK,EAAgB,SAASC,GAAG;AAC3D,SAAOA;AACT,CAAC;AAED,SAAAC,IAA0B;AACxB,SAAOC,EAAWR,CAAuB,EACpC,MAAM,OAAO,EACb,UAAU,MAAM,IAAI;AAC3B;","x_google_ignoreList":[0]}
@@ -1,17 +1,12 @@
1
- function e(r) {
2
- if (!r)
3
- throw new Error("coord is required");
4
- if (!Array.isArray(r)) {
5
- if (r.type === "Feature" && r.geometry !== null && r.geometry.type === "Point")
6
- return [...r.geometry.coordinates];
7
- if (r.type === "Point")
8
- return [...r.coordinates];
9
- }
10
- if (Array.isArray(r) && r.length >= 2 && !Array.isArray(r[0]) && !Array.isArray(r[1]))
11
- return [...r];
12
- throw new Error("coord must be GeoJSON Point or an Array of numbers");
1
+ import "./index.es197.js";
2
+ import "./index.es196.js";
3
+ import "./index.es195.js";
4
+ import "./index.es201.js";
5
+ function r(t, i) {
6
+ return [t, i];
13
7
  }
8
+ r.invert = r;
14
9
  export {
15
- e as getCoord
10
+ r as equirectangularRaw
16
11
  };
17
12
  //# sourceMappingURL=index.es204.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es204.js","sources":["../../../node_modules/@turf/invariant/dist/esm/index.js"],"sourcesContent":["// index.ts\nimport { isNumber } from \"@turf/helpers\";\nfunction getCoord(coord) {\n if (!coord) {\n throw new Error(\"coord is required\");\n }\n if (!Array.isArray(coord)) {\n if (coord.type === \"Feature\" && coord.geometry !== null && coord.geometry.type === \"Point\") {\n return [...coord.geometry.coordinates];\n }\n if (coord.type === \"Point\") {\n return [...coord.coordinates];\n }\n }\n if (Array.isArray(coord) && coord.length >= 2 && !Array.isArray(coord[0]) && !Array.isArray(coord[1])) {\n return [...coord];\n }\n throw new Error(\"coord must be GeoJSON Point or an Array of numbers\");\n}\nfunction getCoords(coords) {\n if (Array.isArray(coords)) {\n return coords;\n }\n if (coords.type === \"Feature\") {\n if (coords.geometry !== null) {\n return coords.geometry.coordinates;\n }\n } else {\n if (coords.coordinates) {\n return coords.coordinates;\n }\n }\n throw new Error(\n \"coords must be GeoJSON Feature, Geometry Object or an Array\"\n );\n}\nfunction containsNumber(coordinates) {\n if (coordinates.length > 1 && isNumber(coordinates[0]) && isNumber(coordinates[1])) {\n return true;\n }\n if (Array.isArray(coordinates[0]) && coordinates[0].length) {\n return containsNumber(coordinates[0]);\n }\n throw new Error(\"coordinates must only contain numbers\");\n}\nfunction geojsonType(value, type, name) {\n if (!type || !name) {\n throw new Error(\"type and name required\");\n }\n if (!value || value.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + value.type\n );\n }\n}\nfunction featureOf(feature, type, name) {\n if (!feature) {\n throw new Error(\"No feature passed\");\n }\n if (!name) {\n throw new Error(\".featureOf() requires a name\");\n }\n if (!feature || feature.type !== \"Feature\" || !feature.geometry) {\n throw new Error(\n \"Invalid input to \" + name + \", Feature with geometry required\"\n );\n }\n if (!feature.geometry || feature.geometry.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + feature.geometry.type\n );\n }\n}\nfunction collectionOf(featureCollection, type, name) {\n if (!featureCollection) {\n throw new Error(\"No featureCollection passed\");\n }\n if (!name) {\n throw new Error(\".collectionOf() requires a name\");\n }\n if (!featureCollection || featureCollection.type !== \"FeatureCollection\") {\n throw new Error(\n \"Invalid input to \" + name + \", FeatureCollection required\"\n );\n }\n for (const feature of featureCollection.features) {\n if (!feature || feature.type !== \"Feature\" || !feature.geometry) {\n throw new Error(\n \"Invalid input to \" + name + \", Feature with geometry required\"\n );\n }\n if (!feature.geometry || feature.geometry.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + feature.geometry.type\n );\n }\n }\n}\nfunction getGeom(geojson) {\n if (geojson.type === \"Feature\") {\n return geojson.geometry;\n }\n return geojson;\n}\nfunction getType(geojson, _name) {\n if (geojson.type === \"FeatureCollection\") {\n return \"FeatureCollection\";\n }\n if (geojson.type === \"GeometryCollection\") {\n return \"GeometryCollection\";\n }\n if (geojson.type === \"Feature\" && geojson.geometry !== null) {\n return geojson.geometry.type;\n }\n return geojson.type;\n}\nexport {\n collectionOf,\n containsNumber,\n featureOf,\n geojsonType,\n getCoord,\n getCoords,\n getGeom,\n getType\n};\n//# sourceMappingURL=index.js.map"],"names":["getCoord","coord"],"mappings":"AAEA,SAASA,EAASC,GAAO;AACvB,MAAI,CAACA;AACH,UAAM,IAAI,MAAM,mBAAmB;AAErC,MAAI,CAAC,MAAM,QAAQA,CAAK,GAAG;AACzB,QAAIA,EAAM,SAAS,aAAaA,EAAM,aAAa,QAAQA,EAAM,SAAS,SAAS;AACjF,aAAO,CAAC,GAAGA,EAAM,SAAS,WAAW;AAEvC,QAAIA,EAAM,SAAS;AACjB,aAAO,CAAC,GAAGA,EAAM,WAAW;AAAA,EAEhC;AACA,MAAI,MAAM,QAAQA,CAAK,KAAKA,EAAM,UAAU,KAAK,CAAC,MAAM,QAAQA,EAAM,CAAC,CAAC,KAAK,CAAC,MAAM,QAAQA,EAAM,CAAC,CAAC;AAClG,WAAO,CAAC,GAAGA,CAAK;AAElB,QAAM,IAAI,MAAM,oDAAoD;AACtE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es204.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":";;;;AAEO,SAASA,EAAmBC,GAAQC,GAAK;AAC9C,SAAO,CAACD,GAAQC,CAAG;AACrB;AAEAF,EAAmB,SAASA;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import { spherical as p, cartesian as x, cartesianNormalizeInPlace as z } from "./index.es249.js";
2
2
  import { tau as l, acos as I, epsilon as N, cos as v, sin as R } from "./index.es250.js";
3
- import "./index.es194.js";
3
+ import "./index.es195.js";
4
4
  function g(m, r, e, c, a, s) {
5
5
  if (e) {
6
6
  var u = v(r), o = R(r), n = c * e;
@@ -2,7 +2,7 @@ import { abs as q, epsilon as z } from "./index.es250.js";
2
2
  import X from "./index.es252.js";
3
3
  import Y from "./index.es253.js";
4
4
  import Z from "./index.es254.js";
5
- import "./index.es195.js";
5
+ import "./index.es196.js";
6
6
  import $ from "./index.es255.js";
7
7
  var S = 1e9, B = -S;
8
8
  function en(c, _, E, u) {
@@ -4,8 +4,8 @@ import { clipExtent as F } from "./index.es251.js";
4
4
  import H from "./index.es260.js";
5
5
  import T from "./index.es261.js";
6
6
  import { radians as n, degrees as i, sqrt as I } from "./index.es250.js";
7
- import { rotateRadians as J } from "./index.es194.js";
8
- import { transformer as K } from "./index.es200.js";
7
+ import { rotateRadians as J } from "./index.es195.js";
8
+ import { transformer as K } from "./index.es201.js";
9
9
  import { fitExtent as N, fitSize as O } from "./index.es262.js";
10
10
  import w from "./index.es263.js";
11
11
  var Q = K({
@@ -1,6 +1,6 @@
1
1
  import { cartesian as J } from "./index.es249.js";
2
2
  import { atan2 as K, asin as O, abs as B, sqrt as Q, cos as R, radians as U, epsilon as H } from "./index.es250.js";
3
- import { transformer as V } from "./index.es200.js";
3
+ import { transformer as V } from "./index.es201.js";
4
4
  var I = 16, W = R(30 * U);
5
5
  function h(e, t) {
6
6
  return +t ? Y(e, t) : X(e);
@@ -1,8 +1,8 @@
1
1
  import A from "./index.es252.js";
2
2
  import D from "./index.es254.js";
3
3
  import { halfPi as S, epsilon as R } from "./index.es250.js";
4
- import F from "./index.es196.js";
5
- import "./index.es195.js";
4
+ import F from "./index.es197.js";
5
+ import "./index.es196.js";
6
6
  import G from "./index.es255.js";
7
7
  function T(e, p, m, v) {
8
8
  return function(g, n) {
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as f } from "./index.es80.js";
2
- import { __require as n } from "./index.es77.js";
2
+ import { __require as n } from "./index.es73.js";
3
3
  function s(t, i) {
4
4
  for (var o = 0; o < i.length; o++) {
5
5
  const e = i[o];
@@ -1,4 +1,4 @@
1
- import { coordEach as u } from "./index.es189.js";
1
+ import { coordEach as u } from "./index.es190.js";
2
2
  function e(n, f = {}) {
3
3
  if (n.bbox != null && f.recompute !== !0)
4
4
  return n.bbox;
@@ -1,7 +1,6 @@
1
- import { center as O } from "./index.es190.js";
2
- import q from "./index.es191.js";
3
- import { featureEach as v, geomEach as d } from "./index.es189.js";
4
- import "./index.es192.js";
1
+ import { center as O } from "./index.es191.js";
2
+ import q from "./index.es192.js";
3
+ import { featureEach as v, geomEach as d } from "./index.es190.js";
5
4
  import "./index.es193.js";
6
5
  import "./index.es194.js";
7
6
  import "./index.es195.js";
@@ -11,8 +10,9 @@ import "./index.es198.js";
11
10
  import "./index.es199.js";
12
11
  import "./index.es200.js";
13
12
  import "./index.es201.js";
14
- import A from "./index.es202.js";
15
- import "./index.es203.js";
13
+ import "./index.es202.js";
14
+ import A from "./index.es203.js";
15
+ import "./index.es204.js";
16
16
  import { featureCollection as c, radiansToLength as F, lengthToRadians as R, feature as g, earthRadius as B } from "./index.es67.js";
17
17
  var { BufferOp: J, GeoJSONReader: S, GeoJSONWriter: T } = q;
18
18
  function Z(r, e, t) {