vue-chrts 2.1.0-beta-2 → 2.1.0-beta-3

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 (159) hide show
  1. package/dist/components/AreaChart/AreaChart.js +127 -107
  2. package/dist/components/AreaChart/types.d.ts +34 -1
  3. package/dist/components/BarChart/BarChart.js +76 -65
  4. package/dist/components/BarChart/types.d.ts +9 -1
  5. package/dist/components/BubbleChart/BubbleChart.js +55 -45
  6. package/dist/components/BubbleChart/types.d.ts +9 -1
  7. package/dist/components/DagreGraph/DagreGraph.js +33 -24
  8. package/dist/components/DagreGraph/types.d.ts +5 -1
  9. package/dist/components/DonutChart/DonutChart.js +69 -59
  10. package/dist/components/DonutChart/types.d.ts +14 -2
  11. package/dist/components/DualChart/DualChart.js +56 -46
  12. package/dist/components/DualChart/types.d.ts +10 -1
  13. package/dist/components/GanttChart/GanttChart.js +58 -48
  14. package/dist/components/GanttChart/types.d.ts +9 -1
  15. package/dist/components/LineChart/LineChart.js +17 -9
  16. package/dist/components/Maps/DottedMap/DottedMap.js +170 -0
  17. package/dist/components/Maps/DottedMap/DottedMap.vue.d.ts +52 -0
  18. package/dist/components/Maps/DottedMap/DottedMap2.js +4 -0
  19. package/dist/components/Maps/DottedMap/MapLegend.vue.d.ts +6 -0
  20. package/dist/components/Maps/DottedMap/MapZoomControls.js +44 -0
  21. package/dist/components/Maps/DottedMap/MapZoomControls.vue.d.ts +13 -0
  22. package/dist/components/Maps/DottedMap/MapZoomControls2.js +4 -0
  23. package/dist/components/Maps/DottedMap/core.js +122 -0
  24. package/dist/components/Maps/DottedMap/core.vue.d.ts +36 -0
  25. package/dist/components/Maps/DottedMap/core2.js +4 -0
  26. package/dist/components/Maps/DottedMap/mapUtils.d.ts +49 -0
  27. package/dist/components/Maps/DottedMap/mapUtils.js +130 -0
  28. package/dist/components/Maps/DottedMap/pins.d.ts +9 -0
  29. package/dist/components/Maps/DottedMap/pins.js +58 -0
  30. package/dist/components/Maps/DottedMap/regions.d.ts +4 -0
  31. package/dist/components/Maps/DottedMap/regions.js +66 -0
  32. package/dist/components/Maps/DottedMap/types.d.ts +127 -0
  33. package/dist/components/Maps/DottedMap/useMapPanZoom.d.ts +22 -0
  34. package/dist/components/Maps/DottedMap/useMapPanZoom.js +41 -0
  35. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.js +170 -0
  36. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.vue.d.ts +30 -0
  37. package/dist/components/Maps/TopoJSONMap/TopoJSONMap2.js +4 -0
  38. package/dist/components/Maps/TopoJSONMap/data.d.ts +13 -0
  39. package/dist/components/Maps/TopoJSONMap/types.d.ts +40 -0
  40. package/dist/components/Maps/types.d.ts +48 -0
  41. package/dist/components/SankeyChart/SankeyChart.js +50 -40
  42. package/dist/components/SankeyChart/SankeyChart.vue.d.ts +1 -1
  43. package/dist/components/SankeyChart/types.d.ts +14 -1
  44. package/dist/components/Tooltip.js +32 -27
  45. package/dist/data/countries.geo.json.js +9 -0
  46. package/dist/index.d.ts +6 -3
  47. package/dist/index.js +27 -23
  48. package/dist/node_modules/.pnpm/@turf_boolean-point-in-polygon@7.3.1/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +28 -0
  49. package/dist/node_modules/.pnpm/@turf_invariant@7.3.1/node_modules/@turf/invariant/dist/esm/index.js +20 -0
  50. package/dist/node_modules/.pnpm/mgrs@1.0.0/node_modules/mgrs/mgrs.js +222 -0
  51. package/dist/node_modules/.pnpm/point-in-polygon-hao@1.2.4/node_modules/point-in-polygon-hao/dist/esm/index.js +25 -0
  52. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Point.js +24 -0
  53. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Proj.js +46 -0
  54. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/adjust_axis.js +31 -0
  55. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/checkSanity.js +15 -0
  56. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lat.js +8 -0
  57. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lon.js +8 -0
  58. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_zone.js +13 -0
  59. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinhy.js +9 -0
  60. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinz.js +6 -0
  61. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens.js +8 -0
  62. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens_cmplx.js +10 -0
  63. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/cosh.js +7 -0
  64. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e0fn.js +6 -0
  65. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e1fn.js +6 -0
  66. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e2fn.js +6 -0
  67. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e3fn.js +6 -0
  68. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gN.js +7 -0
  69. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gatg.js +8 -0
  70. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/hypot.js +8 -0
  71. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/imlfn.js +11 -0
  72. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/iqsfnz.js +13 -0
  73. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/log1py.js +7 -0
  74. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/mlfn.js +6 -0
  75. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/msfnz.js +7 -0
  76. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/phi2z.js +10 -0
  77. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_enfn.js +10 -0
  78. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_inv_mlfn.js +14 -0
  79. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_mlfn.js +6 -0
  80. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/qsfnz.js +7 -0
  81. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sign.js +6 -0
  82. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sinh.js +7 -0
  83. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/srat.js +6 -0
  84. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/toPoint.js +10 -0
  85. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/tsfnz.js +8 -0
  86. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/vincenty.js +33 -0
  87. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Datum.js +1278 -0
  88. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Ellipsoid.js +226 -0
  89. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/PrimeMeridian.js +17 -0
  90. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/units.js +25 -0
  91. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/values.js +22 -0
  92. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/core.js +65 -0
  93. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum.js +8 -0
  94. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datumUtils.js +82 -0
  95. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum_transform.js +94 -0
  96. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/defs.js +39 -0
  97. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/deriveConstants.js +30 -0
  98. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/extend.js +12 -0
  99. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/global.js +9 -0
  100. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/index.js +25 -0
  101. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/match.js +11 -0
  102. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/nadgrid.js +128 -0
  103. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/parseCode.js +47 -0
  104. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projString.js +119 -0
  105. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aea.js +43 -0
  106. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aeqd.js +36 -0
  107. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/bonne.js +55 -0
  108. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cass.js +52 -0
  109. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cea.js +36 -0
  110. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqc.js +27 -0
  111. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqdc.js +48 -0
  112. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqearth.js +30 -0
  113. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/etmerc.js +54 -0
  114. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gauss.js +27 -0
  115. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geocent.js +26 -0
  116. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geos.js +49 -0
  117. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gnom.js +28 -0
  118. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/krovak.js +31 -0
  119. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/laea.js +134 -0
  120. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/lcc.js +61 -0
  121. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/longlat.js +19 -0
  122. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/merc.js +49 -0
  123. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/mill.js +26 -0
  124. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/moll.js +37 -0
  125. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/nzmg.js +48 -0
  126. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ob_tran.js +173 -0
  127. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/omerc.js +58 -0
  128. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ortho.js +28 -0
  129. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/poly.js +68 -0
  130. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/qsc.js +67 -0
  131. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/robin.js +104 -0
  132. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sinu.js +47 -0
  133. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/somerc.js +34 -0
  134. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/stere.js +46 -0
  135. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sterea.js +33 -0
  136. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tmerc.js +60 -0
  137. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tpers.js +110 -0
  138. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/utm.js +22 -0
  139. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/vandg.js +34 -0
  140. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections.js +34 -0
  141. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/transform.js +49 -0
  142. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/projs.js +38 -0
  143. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/orient2d.js +23 -0
  144. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/util.js +30 -0
  145. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2015.js +9 -0
  146. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2019.js +20 -0
  147. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilderBase.js +171 -0
  148. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/buildPROJJSON.js +11 -0
  149. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/detectWKTVersion.js +7 -0
  150. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/index.js +104 -0
  151. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/parser.js +117 -0
  152. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/process.js +89 -0
  153. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/transformPROJJSON.js +73 -0
  154. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/util.js +12 -0
  155. package/dist/types.d.ts +60 -13
  156. package/dist/types.js +4 -6
  157. package/dist/utils/geoJsonToGrid.d.ts +14 -0
  158. package/dist/utils/index.d.ts +1 -0
  159. package/package.json +8 -2
@@ -0,0 +1,54 @@
1
+ import c from "./tmerc.js";
2
+ import M from "../common/sinh.js";
3
+ import v from "../common/hypot.js";
4
+ import b from "../common/asinhy.js";
5
+ import u from "../common/gatg.js";
6
+ import l from "../common/clens.js";
7
+ import f from "../common/clens_cmplx.js";
8
+ import m from "../common/adjust_lon.js";
9
+ function d() {
10
+ if (!this.approx && (isNaN(this.es) || this.es <= 0))
11
+ throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
12
+ this.approx && (c.init.apply(this), this.forward = c.forward, this.inverse = c.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
13
+ var s = this.es / (1 + Math.sqrt(1 - this.es)), t = s / (2 - s), i = t;
14
+ this.cgb[0] = t * (2 + t * (-2 / 3 + t * (-2 + t * (116 / 45 + t * (26 / 45 + t * (-2854 / 675)))))), this.cbg[0] = t * (-2 + t * (2 / 3 + t * (4 / 3 + t * (-82 / 45 + t * (32 / 45 + t * (4642 / 4725)))))), i = i * t, this.cgb[1] = i * (7 / 3 + t * (-8 / 5 + t * (-227 / 45 + t * (2704 / 315 + t * (2323 / 945))))), this.cbg[1] = i * (5 / 3 + t * (-16 / 15 + t * (-13 / 9 + t * (904 / 315 + t * (-1522 / 945))))), i = i * t, this.cgb[2] = i * (56 / 15 + t * (-136 / 35 + t * (-1262 / 105 + t * (73814 / 2835)))), this.cbg[2] = i * (-26 / 15 + t * (34 / 21 + t * (8 / 5 + t * (-12686 / 2835)))), i = i * t, this.cgb[3] = i * (4279 / 630 + t * (-332 / 35 + t * (-399572 / 14175))), this.cbg[3] = i * (1237 / 630 + t * (-12 / 5 + t * (-24832 / 14175))), i = i * t, this.cgb[4] = i * (4174 / 315 + t * (-144838 / 6237)), this.cbg[4] = i * (-734 / 315 + t * (109598 / 31185)), i = i * t, this.cgb[5] = i * (601676 / 22275), this.cbg[5] = i * (444337 / 155925), i = Math.pow(t, 2), this.Qn = this.k0 / (1 + t) * (1 + i * (1 / 4 + i * (1 / 64 + i / 256))), this.utg[0] = t * (-0.5 + t * (2 / 3 + t * (-37 / 96 + t * (1 / 360 + t * (81 / 512 + t * (-96199 / 604800)))))), this.gtu[0] = t * (0.5 + t * (-2 / 3 + t * (5 / 16 + t * (41 / 180 + t * (-127 / 288 + t * (7891 / 37800)))))), this.utg[1] = i * (-1 / 48 + t * (-1 / 15 + t * (437 / 1440 + t * (-46 / 105 + t * (1118711 / 3870720))))), this.gtu[1] = i * (13 / 48 + t * (-3 / 5 + t * (557 / 1440 + t * (281 / 630 + t * (-1983433 / 1935360))))), i = i * t, this.utg[2] = i * (-17 / 480 + t * (37 / 840 + t * (209 / 4480 + t * (-5569 / 90720)))), this.gtu[2] = i * (61 / 240 + t * (-103 / 140 + t * (15061 / 26880 + t * (167603 / 181440)))), i = i * t, this.utg[3] = i * (-4397 / 161280 + t * (11 / 504 + t * (830251 / 7257600))), this.gtu[3] = i * (49561 / 161280 + t * (-179 / 168 + t * (6601661 / 7257600))), i = i * t, this.utg[4] = i * (-4583 / 161280 + t * (108847 / 3991680)), this.gtu[4] = i * (34729 / 80640 + t * (-3418889 / 1995840)), i = i * t, this.utg[5] = i * (-20648693 / 638668800), this.gtu[5] = i * (212378941 / 319334400);
15
+ var h = u(this.cbg, this.lat0);
16
+ this.Zb = -this.Qn * (h + l(this.gtu, 2 * h));
17
+ }
18
+ function y(s) {
19
+ var t = m(s.x - this.long0, this.over), i = s.y;
20
+ i = u(this.cbg, i);
21
+ var h = Math.sin(i), r = Math.cos(i), o = Math.sin(t), g = Math.cos(t);
22
+ i = Math.atan2(h, g * r), t = Math.atan2(o * r, v(h, r * g)), t = b(Math.tan(t));
23
+ var e = f(this.gtu, 2 * i, 2 * t);
24
+ i = i + e[0], t = t + e[1];
25
+ var n, a;
26
+ return Math.abs(t) <= 2.623395162778 ? (n = this.a * (this.Qn * t) + this.x0, a = this.a * (this.Qn * i + this.Zb) + this.y0) : (n = 1 / 0, a = 1 / 0), s.x = n, s.y = a, s;
27
+ }
28
+ function x(s) {
29
+ var t = (s.x - this.x0) * (1 / this.a), i = (s.y - this.y0) * (1 / this.a);
30
+ i = (i - this.Zb) / this.Qn, t = t / this.Qn;
31
+ var h, r;
32
+ if (Math.abs(t) <= 2.623395162778) {
33
+ var o = f(this.utg, 2 * i, 2 * t);
34
+ i = i + o[0], t = t + o[1], t = Math.atan(M(t));
35
+ var g = Math.sin(i), e = Math.cos(i), n = Math.sin(t), a = Math.cos(t);
36
+ i = Math.atan2(g * a, v(n, a * e)), t = Math.atan2(n, a * e), h = m(t + this.long0, this.over), r = u(this.cgb, i);
37
+ } else
38
+ h = 1 / 0, r = 1 / 0;
39
+ return s.x = h, s.y = r, s;
40
+ }
41
+ var p = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "Gauss Kruger", "Gauss_Kruger", "tmerc"];
42
+ const K = {
43
+ init: d,
44
+ forward: y,
45
+ inverse: x,
46
+ names: p
47
+ };
48
+ export {
49
+ K as default,
50
+ y as forward,
51
+ d as init,
52
+ x as inverse,
53
+ p as names
54
+ };
@@ -0,0 +1,27 @@
1
+ import n from "../common/srat.js";
2
+ import { FORTPI as i, HALF_PI as e } from "../constants/values.js";
3
+ var M = 20;
4
+ function v() {
5
+ var t = Math.sin(this.lat0), a = Math.cos(this.lat0);
6
+ a *= a, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * t * t), this.C = Math.sqrt(1 + this.es * a * a / (1 - this.es)), this.phic0 = Math.asin(t / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + i) / (Math.pow(Math.tan(0.5 * this.lat0 + i), this.C) * n(this.e * t, this.ratexp));
7
+ }
8
+ function f(t) {
9
+ var a = t.x, s = t.y;
10
+ return t.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * s + i), this.C) * n(this.e * Math.sin(s), this.ratexp)) - e, t.x = this.C * a, t;
11
+ }
12
+ function l(t) {
13
+ for (var a = 1e-14, s = t.x / this.C, h = t.y, o = Math.pow(Math.tan(0.5 * h + i) / this.K, 1 / this.C), r = M; r > 0 && (h = 2 * Math.atan(o * n(this.e * Math.sin(t.y), -0.5 * this.e)) - e, !(Math.abs(h - t.y) < a)); --r)
14
+ t.y = h;
15
+ return r ? (t.x = s, t.y = h, t) : null;
16
+ }
17
+ const x = {
18
+ init: v,
19
+ forward: f,
20
+ inverse: l
21
+ };
22
+ export {
23
+ x as default,
24
+ f as forward,
25
+ v as init,
26
+ l as inverse
27
+ };
@@ -0,0 +1,26 @@
1
+ import { geocentricToGeodetic as n, geodeticToGeocentric as i } from "../datumUtils.js";
2
+ function o() {
3
+ this.name = "geocent";
4
+ }
5
+ function r(e) {
6
+ var t = i(e, this.es, this.a);
7
+ return t;
8
+ }
9
+ function c(e) {
10
+ var t = n(e, this.es, this.a, this.b);
11
+ return t;
12
+ }
13
+ var s = ["Geocentric", "geocentric", "geocent", "Geocent"];
14
+ const f = {
15
+ init: o,
16
+ forward: r,
17
+ inverse: c,
18
+ names: s
19
+ };
20
+ export {
21
+ f as default,
22
+ r as forward,
23
+ o as init,
24
+ c as inverse,
25
+ s as names
26
+ };
@@ -0,0 +1,49 @@
1
+ import u from "../common/hypot.js";
2
+ function d() {
3
+ if (this.flip_axis = this.sweep === "x" ? 1 : 0, this.h = Number(this.h), this.radius_g_1 = this.h / this.a, this.radius_g_1 <= 0 || this.radius_g_1 > 1e10)
4
+ throw new Error();
5
+ if (this.radius_g = 1 + this.radius_g_1, this.C = this.radius_g * this.radius_g - 1, this.es !== 0) {
6
+ var t = 1 - this.es, s = 1 / t;
7
+ this.radius_p = Math.sqrt(t), this.radius_p2 = t, this.radius_p_inv2 = s, this.shape = "ellipse";
8
+ } else
9
+ this.radius_p = 1, this.radius_p2 = 1, this.radius_p_inv2 = 1, this.shape = "sphere";
10
+ this.title || (this.title = "Geostationary Satellite View");
11
+ }
12
+ function M(t) {
13
+ var s = t.x, i = t.y, a, _, h, r;
14
+ if (s = s - this.long0, this.shape === "ellipse") {
15
+ i = Math.atan(this.radius_p2 * Math.tan(i));
16
+ var e = this.radius_p / u(this.radius_p * Math.cos(i), Math.sin(i));
17
+ if (_ = e * Math.cos(s) * Math.cos(i), h = e * Math.sin(s) * Math.cos(i), r = e * Math.sin(i), (this.radius_g - _) * _ - h * h - r * r * this.radius_p_inv2 < 0)
18
+ return t.x = Number.NaN, t.y = Number.NaN, t;
19
+ a = this.radius_g - _, this.flip_axis ? (t.x = this.radius_g_1 * Math.atan(h / u(r, a)), t.y = this.radius_g_1 * Math.atan(r / a)) : (t.x = this.radius_g_1 * Math.atan(h / a), t.y = this.radius_g_1 * Math.atan(r / u(h, a)));
20
+ } else this.shape === "sphere" && (a = Math.cos(i), _ = Math.cos(s) * a, h = Math.sin(s) * a, r = Math.sin(i), a = this.radius_g - _, this.flip_axis ? (t.x = this.radius_g_1 * Math.atan(h / u(r, a)), t.y = this.radius_g_1 * Math.atan(r / a)) : (t.x = this.radius_g_1 * Math.atan(h / a), t.y = this.radius_g_1 * Math.atan(r / u(h, a))));
21
+ return t.x = t.x * this.a, t.y = t.y * this.a, t;
22
+ }
23
+ function g(t) {
24
+ var s = -1, i = 0, a = 0, _, h, r, e;
25
+ if (t.x = t.x / this.a, t.y = t.y / this.a, this.shape === "ellipse") {
26
+ this.flip_axis ? (a = Math.tan(t.y / this.radius_g_1), i = Math.tan(t.x / this.radius_g_1) * u(1, a)) : (i = Math.tan(t.x / this.radius_g_1), a = Math.tan(t.y / this.radius_g_1) * u(1, i));
27
+ var n = a / this.radius_p;
28
+ if (_ = i * i + n * n + s * s, h = 2 * this.radius_g * s, r = h * h - 4 * _ * this.C, r < 0)
29
+ return t.x = Number.NaN, t.y = Number.NaN, t;
30
+ e = (-h - Math.sqrt(r)) / (2 * _), s = this.radius_g + e * s, i *= e, a *= e, t.x = Math.atan2(i, s), t.y = Math.atan(a * Math.cos(t.x) / s), t.y = Math.atan(this.radius_p_inv2 * Math.tan(t.y));
31
+ } else if (this.shape === "sphere") {
32
+ if (this.flip_axis ? (a = Math.tan(t.y / this.radius_g_1), i = Math.tan(t.x / this.radius_g_1) * Math.sqrt(1 + a * a)) : (i = Math.tan(t.x / this.radius_g_1), a = Math.tan(t.y / this.radius_g_1) * Math.sqrt(1 + i * i)), _ = i * i + a * a + s * s, h = 2 * this.radius_g * s, r = h * h - 4 * _ * this.C, r < 0)
33
+ return t.x = Number.NaN, t.y = Number.NaN, t;
34
+ e = (-h - Math.sqrt(r)) / (2 * _), s = this.radius_g + e * s, i *= e, a *= e, t.x = Math.atan2(i, s), t.y = Math.atan(a * Math.cos(t.x) / s);
35
+ }
36
+ return t.x = t.x + this.long0, t;
37
+ }
38
+ var l = ["Geostationary Satellite View", "Geostationary_Satellite", "geos"];
39
+ const o = {
40
+ init: d,
41
+ forward: M,
42
+ inverse: g,
43
+ names: l
44
+ };
45
+ export {
46
+ o as default,
47
+ d as init,
48
+ l as names
49
+ };
@@ -0,0 +1,28 @@
1
+ import y from "../common/adjust_lon.js";
2
+ import _ from "../common/asinz.js";
3
+ import { EPSLN as f } from "../constants/values.js";
4
+ function l() {
5
+ this.sin_p14 = Math.sin(this.lat0), this.cos_p14 = Math.cos(this.lat0), this.infinity_dist = 1e3 * this.a, this.rc = 1;
6
+ }
7
+ function x(i) {
8
+ var t, s, n, o, h, a, r, c, e = i.x, v = i.y;
9
+ return n = y(e - this.long0, this.over), t = Math.sin(v), s = Math.cos(v), o = Math.cos(n), a = this.sin_p14 * t + this.cos_p14 * s * o, h = 1, a > 0 || Math.abs(a) <= f ? (r = this.x0 + this.a * h * s * Math.sin(n) / a, c = this.y0 + this.a * h * (this.cos_p14 * t - this.sin_p14 * s * o) / a) : (r = this.x0 + this.infinity_dist * s * Math.sin(n), c = this.y0 + this.infinity_dist * (this.cos_p14 * t - this.sin_p14 * s * o)), i.x = r, i.y = c, i;
10
+ }
11
+ function M(i) {
12
+ var t, s, n, o, h, a;
13
+ return i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, i.x /= this.k0, i.y /= this.k0, (t = Math.sqrt(i.x * i.x + i.y * i.y)) ? (o = Math.atan2(t, this.rc), s = Math.sin(o), n = Math.cos(o), a = _(n * this.sin_p14 + i.y * s * this.cos_p14 / t), h = Math.atan2(i.x * s, t * this.cos_p14 * n - i.y * this.sin_p14 * s), h = y(this.long0 + h, this.over)) : (a = this.phic0, h = 0), i.x = h, i.y = a, i;
14
+ }
15
+ var m = ["gnom"];
16
+ const k = {
17
+ init: l,
18
+ forward: x,
19
+ inverse: M,
20
+ names: m
21
+ };
22
+ export {
23
+ k as default,
24
+ x as forward,
25
+ l as init,
26
+ M as inverse,
27
+ m as names
28
+ };
@@ -0,0 +1,31 @@
1
+ import l from "../common/adjust_lon.js";
2
+ function c() {
3
+ this.a = 6377397155e-3, this.es = 0.006674372230614, this.e = Math.sqrt(this.es), this.lat0 || (this.lat0 = 0.863937979737193), this.long0 || (this.long0 = 0.7417649320975901 - 0.308341501185665), this.k0 || (this.k0 = 0.9999), this.s45 = 0.785398163397448, this.s90 = 2 * this.s45, this.fi0 = this.lat0, this.e2 = this.es, this.e = Math.sqrt(this.e2), this.alfa = Math.sqrt(1 + this.e2 * Math.pow(Math.cos(this.fi0), 4) / (1 - this.e2)), this.uq = 1.04216856380474, this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa), this.g = Math.pow((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0)), this.alfa * this.e / 2), this.k = Math.tan(this.u0 / 2 + this.s45) / Math.pow(Math.tan(this.fi0 / 2 + this.s45), this.alfa) * this.g, this.k1 = this.k0, this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.pow(Math.sin(this.fi0), 2)), this.s0 = 1.37008346281555, this.n = Math.sin(this.s0), this.ro0 = this.k1 * this.n0 / Math.tan(this.s0), this.ad = this.s90 - this.uq;
4
+ }
5
+ function v(t) {
6
+ var i, a, h, n, o, M, s, e = t.x, r = t.y, f = l(e - this.long0, this.over);
7
+ return i = Math.pow((1 + this.e * Math.sin(r)) / (1 - this.e * Math.sin(r)), this.alfa * this.e / 2), a = 2 * (Math.atan(this.k * Math.pow(Math.tan(r / 2 + this.s45), this.alfa) / i) - this.s45), h = -f * this.alfa, n = Math.asin(Math.cos(this.ad) * Math.sin(a) + Math.sin(this.ad) * Math.cos(a) * Math.cos(h)), o = Math.asin(Math.cos(a) * Math.sin(h) / Math.cos(n)), M = this.n * o, s = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(n / 2 + this.s45), this.n), t.y = s * Math.cos(M) / 1, t.x = s * Math.sin(M) / 1, this.czech || (t.y *= -1, t.x *= -1), t;
8
+ }
9
+ function d(t) {
10
+ var i, a, h, n, o, M, s, e, r = t.x;
11
+ t.x = t.y, t.y = r, this.czech || (t.y *= -1, t.x *= -1), M = Math.sqrt(t.x * t.x + t.y * t.y), o = Math.atan2(t.y, t.x), n = o / Math.sin(this.s0), h = 2 * (Math.atan(Math.pow(this.ro0 / M, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45), i = Math.asin(Math.cos(this.ad) * Math.sin(h) - Math.sin(this.ad) * Math.cos(h) * Math.cos(n)), a = Math.asin(Math.cos(h) * Math.sin(n) / Math.cos(i)), t.x = this.long0 - a / this.alfa, s = i, e = 0;
12
+ var f = 0;
13
+ do
14
+ t.y = 2 * (Math.atan(Math.pow(this.k, -1 / this.alfa) * Math.pow(Math.tan(i / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(s)) / (1 - this.e * Math.sin(s)), this.e / 2)) - this.s45), Math.abs(s - t.y) < 1e-10 && (e = 1), s = t.y, f += 1;
15
+ while (e === 0 && f < 15);
16
+ return f >= 15 ? null : t;
17
+ }
18
+ var u = ["Krovak", "krovak"];
19
+ const k = {
20
+ init: c,
21
+ forward: v,
22
+ inverse: d,
23
+ names: u
24
+ };
25
+ export {
26
+ k as default,
27
+ v as forward,
28
+ c as init,
29
+ d as inverse,
30
+ u as names
31
+ };
@@ -0,0 +1,134 @@
1
+ import { HALF_PI as l, EPSLN as f, FORTPI as v } from "../constants/values.js";
2
+ import L from "../common/qsfnz.js";
3
+ import u from "../common/adjust_lon.js";
4
+ var E = 1, q = 2, O = 3, b = 4;
5
+ function P() {
6
+ var i = Math.abs(this.lat0);
7
+ if (Math.abs(i - l) < f ? this.mode = this.lat0 < 0 ? E : q : Math.abs(i) < f ? this.mode = O : this.mode = b, this.es > 0) {
8
+ var t;
9
+ switch (this.qp = L(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = B(this.es), this.mode) {
10
+ case q:
11
+ this.dd = 1;
12
+ break;
13
+ case E:
14
+ this.dd = 1;
15
+ break;
16
+ case O:
17
+ this.rq = Math.sqrt(0.5 * this.qp), this.dd = 1 / this.rq, this.xmf = 1, this.ymf = 0.5 * this.qp;
18
+ break;
19
+ case b:
20
+ this.rq = Math.sqrt(0.5 * this.qp), t = Math.sin(this.lat0), this.sinb1 = L(this.e, t) / this.qp, this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1), this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * t * t) * this.rq * this.cosb1), this.ymf = (this.xmf = this.rq) / this.dd, this.xmf *= this.dd;
21
+ break;
22
+ }
23
+ } else
24
+ this.mode === b && (this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0));
25
+ }
26
+ function I(i) {
27
+ var t, s, e, a, M, r, m, n, h, c, o = i.x, d = i.y;
28
+ if (o = u(o - this.long0, this.over), this.sphere) {
29
+ if (M = Math.sin(d), c = Math.cos(d), e = Math.cos(o), this.mode === this.OBLIQ || this.mode === this.EQUIT) {
30
+ if (s = this.mode === this.EQUIT ? 1 + c * e : 1 + this.sinph0 * M + this.cosph0 * c * e, s <= f)
31
+ return null;
32
+ s = Math.sqrt(2 / s), t = s * c * Math.sin(o), s *= this.mode === this.EQUIT ? M : this.cosph0 * M - this.sinph0 * c * e;
33
+ } else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
34
+ if (this.mode === this.N_POLE && (e = -e), Math.abs(d + this.lat0) < f)
35
+ return null;
36
+ s = v - d * 0.5, s = 2 * (this.mode === this.S_POLE ? Math.cos(s) : Math.sin(s)), t = s * Math.sin(o), s *= e;
37
+ }
38
+ } else {
39
+ switch (m = 0, n = 0, h = 0, e = Math.cos(o), a = Math.sin(o), M = Math.sin(d), r = L(this.e, M), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (m = r / this.qp, n = Math.sqrt(1 - m * m)), this.mode) {
40
+ case this.OBLIQ:
41
+ h = 1 + this.sinb1 * m + this.cosb1 * n * e;
42
+ break;
43
+ case this.EQUIT:
44
+ h = 1 + n * e;
45
+ break;
46
+ case this.N_POLE:
47
+ h = l + d, r = this.qp - r;
48
+ break;
49
+ case this.S_POLE:
50
+ h = d - l, r = this.qp + r;
51
+ break;
52
+ }
53
+ if (Math.abs(h) < f)
54
+ return null;
55
+ switch (this.mode) {
56
+ case this.OBLIQ:
57
+ case this.EQUIT:
58
+ h = Math.sqrt(2 / h), this.mode === this.OBLIQ ? s = this.ymf * h * (this.cosb1 * m - this.sinb1 * n * e) : s = (h = Math.sqrt(2 / (1 + n * e))) * m * this.ymf, t = this.xmf * h * n * a;
59
+ break;
60
+ case this.N_POLE:
61
+ case this.S_POLE:
62
+ r >= 0 ? (t = (h = Math.sqrt(r)) * a, s = e * (this.mode === this.S_POLE ? h : -h)) : t = s = 0;
63
+ break;
64
+ }
65
+ }
66
+ return i.x = this.a * t + this.x0, i.y = this.a * s + this.y0, i;
67
+ }
68
+ function Q(i) {
69
+ i.x -= this.x0, i.y -= this.y0;
70
+ var t = i.x / this.a, s = i.y / this.a, e, a, M, r, m, n, h;
71
+ if (this.sphere) {
72
+ var c = 0, o, d = 0;
73
+ if (o = Math.sqrt(t * t + s * s), a = o * 0.5, a > 1)
74
+ return null;
75
+ switch (a = 2 * Math.asin(a), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (d = Math.sin(a), c = Math.cos(a)), this.mode) {
76
+ case this.EQUIT:
77
+ a = Math.abs(o) <= f ? 0 : Math.asin(s * d / o), t *= d, s = c * o;
78
+ break;
79
+ case this.OBLIQ:
80
+ a = Math.abs(o) <= f ? this.lat0 : Math.asin(c * this.sinph0 + s * d * this.cosph0 / o), t *= d * this.cosph0, s = (c - Math.sin(a) * this.sinph0) * o;
81
+ break;
82
+ case this.N_POLE:
83
+ s = -s, a = l - a;
84
+ break;
85
+ case this.S_POLE:
86
+ a -= l;
87
+ break;
88
+ }
89
+ e = s === 0 && (this.mode === this.EQUIT || this.mode === this.OBLIQ) ? 0 : Math.atan2(t, s);
90
+ } else {
91
+ if (h = 0, this.mode === this.OBLIQ || this.mode === this.EQUIT) {
92
+ if (t /= this.dd, s *= this.dd, n = Math.sqrt(t * t + s * s), n < f)
93
+ return i.x = this.long0, i.y = this.lat0, i;
94
+ r = 2 * Math.asin(0.5 * n / this.rq), M = Math.cos(r), t *= r = Math.sin(r), this.mode === this.OBLIQ ? (h = M * this.sinb1 + s * r * this.cosb1 / n, m = this.qp * h, s = n * this.cosb1 * M - s * this.sinb1 * r) : (h = s * r / n, m = this.qp * h, s = n * M);
95
+ } else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
96
+ if (this.mode === this.N_POLE && (s = -s), m = t * t + s * s, !m)
97
+ return i.x = this.long0, i.y = this.lat0, i;
98
+ h = 1 - m / this.qp, this.mode === this.S_POLE && (h = -h);
99
+ }
100
+ e = Math.atan2(t, s), a = U(Math.asin(h), this.apa);
101
+ }
102
+ return i.x = u(this.long0 + e, this.over), i.y = a, i;
103
+ }
104
+ var _ = 0.3333333333333333, x = 0.17222222222222222, y = 0.10257936507936508, k = 0.06388888888888888, p = 0.0664021164021164, T = 0.016415012942191543;
105
+ function B(i) {
106
+ var t, s = [];
107
+ return s[0] = i * _, t = i * i, s[0] += t * x, s[1] = t * k, t *= i, s[0] += t * y, s[1] += t * p, s[2] = t * T, s;
108
+ }
109
+ function U(i, t) {
110
+ var s = i + i;
111
+ return i + t[0] * Math.sin(s) + t[1] * Math.sin(s + s) + t[2] * Math.sin(s + s + s);
112
+ }
113
+ var S = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
114
+ const A = {
115
+ init: P,
116
+ forward: I,
117
+ inverse: Q,
118
+ names: S,
119
+ S_POLE: E,
120
+ N_POLE: q,
121
+ EQUIT: O,
122
+ OBLIQ: b
123
+ };
124
+ export {
125
+ O as EQUIT,
126
+ q as N_POLE,
127
+ b as OBLIQ,
128
+ E as S_POLE,
129
+ A as default,
130
+ I as forward,
131
+ P as init,
132
+ Q as inverse,
133
+ S as names
134
+ };
@@ -0,0 +1,61 @@
1
+ import M from "../common/msfnz.js";
2
+ import f from "../common/tsfnz.js";
3
+ import b from "../common/sign.js";
4
+ import v from "../common/adjust_lon.js";
5
+ import C from "../common/phi2z.js";
6
+ import { HALF_PI as m, EPSLN as l } from "../constants/values.js";
7
+ function u() {
8
+ if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < l)) {
9
+ var s = this.b / this.a;
10
+ this.e = Math.sqrt(1 - s * s);
11
+ var i = Math.sin(this.lat1), t = Math.cos(this.lat1), n = M(this.e, i, t), a = f(this.e, this.lat1, i), h = Math.sin(this.lat2), r = Math.cos(this.lat2), o = M(this.e, h, r), e = f(this.e, this.lat2, h), c = Math.abs(Math.abs(this.lat0) - m) < l ? 0 : f(this.e, this.lat0, Math.sin(this.lat0));
12
+ Math.abs(this.lat1 - this.lat2) > l ? this.ns = Math.log(n / o) / Math.log(a / e) : this.ns = i, isNaN(this.ns) && (this.ns = i), this.f0 = n / (this.ns * Math.pow(a, this.ns)), this.rh = this.a * this.f0 * Math.pow(c, this.ns), this.title || (this.title = "Lambert Conformal Conic");
13
+ }
14
+ }
15
+ function x(s) {
16
+ var i = s.x, t = s.y;
17
+ Math.abs(2 * Math.abs(t) - Math.PI) <= l && (t = b(t) * (m - 2 * l));
18
+ var n = Math.abs(Math.abs(t) - m), a, h;
19
+ if (n > l)
20
+ a = f(this.e, t, Math.sin(t)), h = this.a * this.f0 * Math.pow(a, this.ns);
21
+ else {
22
+ if (n = t * this.ns, n <= 0)
23
+ return null;
24
+ h = 0;
25
+ }
26
+ var r = this.ns * v(i - this.long0, this.over);
27
+ return s.x = this.k0 * (h * Math.sin(r)) + this.x0, s.y = this.k0 * (this.rh - h * Math.cos(r)) + this.y0, s;
28
+ }
29
+ function _(s) {
30
+ var i, t, n, a, h, r = (s.x - this.x0) / this.k0, o = this.rh - (s.y - this.y0) / this.k0;
31
+ this.ns > 0 ? (i = Math.sqrt(r * r + o * o), t = 1) : (i = -Math.sqrt(r * r + o * o), t = -1);
32
+ var e = 0;
33
+ if (i !== 0 && (e = Math.atan2(t * r, t * o)), i !== 0 || this.ns > 0) {
34
+ if (t = 1 / this.ns, n = Math.pow(i / (this.a * this.f0), t), a = C(this.e, n), a === -9999)
35
+ return null;
36
+ } else
37
+ a = -m;
38
+ return h = v(e / this.ns + this.long0, this.over), s.x = h, s.y = a, s;
39
+ }
40
+ var y = [
41
+ "Lambert Tangential Conformal Conic Projection",
42
+ "Lambert_Conformal_Conic",
43
+ "Lambert_Conformal_Conic_1SP",
44
+ "Lambert_Conformal_Conic_2SP",
45
+ "lcc",
46
+ "Lambert Conic Conformal (1SP)",
47
+ "Lambert Conic Conformal (2SP)"
48
+ ];
49
+ const S = {
50
+ init: u,
51
+ forward: x,
52
+ inverse: _,
53
+ names: y
54
+ };
55
+ export {
56
+ S as default,
57
+ x as forward,
58
+ u as init,
59
+ _ as inverse,
60
+ y as names
61
+ };
@@ -0,0 +1,19 @@
1
+ function i() {
2
+ }
3
+ function n(t) {
4
+ return t;
5
+ }
6
+ var a = ["longlat", "identity"];
7
+ const e = {
8
+ init: i,
9
+ forward: n,
10
+ inverse: n,
11
+ names: a
12
+ };
13
+ export {
14
+ e as default,
15
+ n as forward,
16
+ i as init,
17
+ n as inverse,
18
+ a as names
19
+ };
@@ -0,0 +1,49 @@
1
+ import f from "../common/msfnz.js";
2
+ import o from "../common/adjust_lon.js";
3
+ import M from "../common/tsfnz.js";
4
+ import u from "../common/phi2z.js";
5
+ import { HALF_PI as n, R2D as r, EPSLN as v, FORTPI as m } from "../constants/values.js";
6
+ function x() {
7
+ var t = this.b / this.a;
8
+ this.es = 1 - t * t, "x0" in this || (this.x0 = 0), "y0" in this || (this.y0 = 0), this.e = Math.sqrt(this.es), this.lat_ts ? this.sphere ? this.k0 = Math.cos(this.lat_ts) : this.k0 = f(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) : this.k0 || (this.k ? this.k0 = this.k : this.k0 = 1);
9
+ }
10
+ function c(t) {
11
+ var h = t.x, i = t.y;
12
+ if (i * r > 90 && i * r < -90 && h * r > 180 && h * r < -180)
13
+ return null;
14
+ var a, s;
15
+ if (Math.abs(Math.abs(i) - n) <= v)
16
+ return null;
17
+ if (this.sphere)
18
+ a = this.x0 + this.a * this.k0 * o(h - this.long0, this.over), s = this.y0 + this.a * this.k0 * Math.log(Math.tan(m + 0.5 * i));
19
+ else {
20
+ var e = Math.sin(i), l = M(this.e, i, e);
21
+ a = this.x0 + this.a * this.k0 * o(h - this.long0, this.over), s = this.y0 - this.a * this.k0 * Math.log(l);
22
+ }
23
+ return t.x = a, t.y = s, t;
24
+ }
25
+ function k(t) {
26
+ var h = t.x - this.x0, i = t.y - this.y0, a, s;
27
+ if (this.sphere)
28
+ s = n - 2 * Math.atan(Math.exp(-i / (this.a * this.k0)));
29
+ else {
30
+ var e = Math.exp(-i / (this.a * this.k0));
31
+ if (s = u(this.e, e), s === -9999)
32
+ return null;
33
+ }
34
+ return a = o(this.long0 + h / (this.a * this.k0), this.over), t.x = a, t.y = s, t;
35
+ }
36
+ var y = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "Mercator_Variant_A", "merc"];
37
+ const b = {
38
+ init: x,
39
+ forward: c,
40
+ inverse: k,
41
+ names: y
42
+ };
43
+ export {
44
+ b as default,
45
+ c as forward,
46
+ x as init,
47
+ k as inverse,
48
+ y as names
49
+ };
@@ -0,0 +1,26 @@
1
+ import r from "../common/adjust_lon.js";
2
+ function l() {
3
+ }
4
+ function o(t) {
5
+ var a = t.x, i = t.y, n = r(a - this.long0, this.over), s = this.x0 + this.a * n, h = this.y0 + this.a * Math.log(Math.tan(Math.PI / 4 + i / 2.5)) * 1.25;
6
+ return t.x = s, t.y = h, t;
7
+ }
8
+ function e(t) {
9
+ t.x -= this.x0, t.y -= this.y0;
10
+ var a = r(this.long0 + t.x / this.a, this.over), i = 2.5 * (Math.atan(Math.exp(0.8 * t.y / this.a)) - Math.PI / 4);
11
+ return t.x = a, t.y = i, t;
12
+ }
13
+ var v = ["Miller_Cylindrical", "mill"];
14
+ const y = {
15
+ init: l,
16
+ forward: o,
17
+ inverse: e,
18
+ names: v
19
+ };
20
+ export {
21
+ y as default,
22
+ o as forward,
23
+ l as init,
24
+ e as inverse,
25
+ v as names
26
+ };
@@ -0,0 +1,37 @@
1
+ import o from "../common/adjust_lon.js";
2
+ import { EPSLN as r } from "../constants/values.js";
3
+ function f() {
4
+ this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0;
5
+ }
6
+ function v(t) {
7
+ for (var s = t.x, a = t.y, h = o(s - this.long0, this.over), i = a, e = Math.PI * Math.sin(a); ; ) {
8
+ var n = -(i + Math.sin(i) - e) / (1 + Math.cos(i));
9
+ if (i += n, Math.abs(n) < r)
10
+ break;
11
+ }
12
+ i /= 2, Math.PI / 2 - Math.abs(a) < r && (h = 0);
13
+ var M = 0.900316316158 * this.a * h * Math.cos(i) + this.x0, l = 1.4142135623731 * this.a * Math.sin(i) + this.y0;
14
+ return t.x = M, t.y = l, t;
15
+ }
16
+ function x(t) {
17
+ var s, a;
18
+ t.x -= this.x0, t.y -= this.y0, a = t.y / (1.4142135623731 * this.a), Math.abs(a) > 0.999999999999 && (a = 0.999999999999), s = Math.asin(a);
19
+ var h = o(this.long0 + t.x / (0.900316316158 * this.a * Math.cos(s)), this.over);
20
+ h < -Math.PI && (h = -Math.PI), h > Math.PI && (h = Math.PI), a = (2 * s + Math.sin(2 * s)) / Math.PI, Math.abs(a) > 1 && (a = 1);
21
+ var i = Math.asin(a);
22
+ return t.x = h, t.y = i, t;
23
+ }
24
+ var d = ["Mollweide", "moll"];
25
+ const c = {
26
+ init: f,
27
+ forward: v,
28
+ inverse: x,
29
+ names: d
30
+ };
31
+ export {
32
+ c as default,
33
+ v as forward,
34
+ f as init,
35
+ x as inverse,
36
+ d as names
37
+ };
@@ -0,0 +1,48 @@
1
+ import { SEC_TO_RAD as p } from "../constants/values.js";
2
+ function R() {
3
+ this.A = [], this.A[1] = 0.6399175073, this.A[2] = -0.1358797613, this.A[3] = 0.063294409, this.A[4] = -0.02526853, this.A[5] = 0.0117879, this.A[6] = -55161e-7, this.A[7] = 26906e-7, this.A[8] = -1333e-6, this.A[9] = 67e-5, this.A[10] = -34e-5, this.B_re = [], this.B_im = [], this.B_re[1] = 0.7557853228, this.B_im[1] = 0, this.B_re[2] = 0.249204646, this.B_im[2] = 3371507e-9, this.B_re[3] = -1541739e-9, this.B_im[3] = 0.04105856, this.B_re[4] = -0.10162907, this.B_im[4] = 0.01727609, this.B_re[5] = -0.26623489, this.B_im[5] = -0.36249218, this.B_re[6] = -0.6870983, this.B_im[6] = -1.1651967, this.C_re = [], this.C_im = [], this.C_re[1] = 1.3231270439, this.C_im[1] = 0, this.C_re[2] = -0.577245789, this.C_im[2] = -7809598e-9, this.C_re[3] = 0.508307513, this.C_im[3] = -0.112208952, this.C_re[4] = -0.15094762, this.C_im[4] = 0.18200602, this.C_re[5] = 1.01418179, this.C_im[5] = 1.64497696, this.C_re[6] = 1.9660549, this.C_im[6] = 2.5127645, this.D = [], this.D[1] = 1.5627014243, this.D[2] = 0.5185406398, this.D[3] = -0.03333098, this.D[4] = -0.1052906, this.D[5] = -0.0368594, this.D[6] = 7317e-6, this.D[7] = 0.0122, this.D[8] = 394e-5, this.D[9] = -13e-4;
4
+ }
5
+ function S(h) {
6
+ var i, d = h.x, y = h.y, c = y - this.lat0, g = d - this.long0, C = c / p * 1e-5, l = g, v = 1, B = 0;
7
+ for (i = 1; i <= 10; i++)
8
+ v = v * C, B = B + this.A[i] * v;
9
+ var f = B, A = l, s = 1, t = 0, m, a, r = 0, e = 0;
10
+ for (i = 1; i <= 6; i++)
11
+ m = s * f - t * A, a = t * f + s * A, s = m, t = a, r = r + this.B_re[i] * s - this.B_im[i] * t, e = e + this.B_im[i] * s + this.B_re[i] * t;
12
+ return h.x = e * this.a + this.x0, h.y = r * this.a + this.y0, h;
13
+ }
14
+ function T(h) {
15
+ var i, d = h.x, y = h.y, c = d - this.x0, g = y - this.y0, C = g / this.a, l = c / this.a, v = 1, B = 0, f, A, s = 0, t = 0;
16
+ for (i = 1; i <= 6; i++)
17
+ f = v * C - B * l, A = B * C + v * l, v = f, B = A, s = s + this.C_re[i] * v - this.C_im[i] * B, t = t + this.C_im[i] * v + this.C_re[i] * B;
18
+ for (var m = 0; m < this.iterations; m++) {
19
+ var a = s, r = t, e, D, z = C, x = l;
20
+ for (i = 2; i <= 6; i++)
21
+ e = a * s - r * t, D = r * s + a * t, a = e, r = D, z = z + (i - 1) * (this.B_re[i] * a - this.B_im[i] * r), x = x + (i - 1) * (this.B_im[i] * a + this.B_re[i] * r);
22
+ a = 1, r = 0;
23
+ var o = this.B_re[1], _ = this.B_im[1];
24
+ for (i = 2; i <= 6; i++)
25
+ e = a * s - r * t, D = r * s + a * t, a = e, r = D, o = o + i * (this.B_re[i] * a - this.B_im[i] * r), _ = _ + i * (this.B_im[i] * a + this.B_re[i] * r);
26
+ var b = o * o + _ * _;
27
+ s = (z * o + x * _) / b, t = (x * o - z * _) / b;
28
+ }
29
+ var G = s, M = t, w = 1, E = 0;
30
+ for (i = 1; i <= 9; i++)
31
+ w = w * G, E = E + this.D[i] * w;
32
+ var N = this.lat0 + E * p * 1e5, O = this.long0 + M;
33
+ return h.x = O, h.y = N, h;
34
+ }
35
+ var Z = ["New_Zealand_Map_Grid", "nzmg"];
36
+ const k = {
37
+ init: R,
38
+ forward: S,
39
+ inverse: T,
40
+ names: Z
41
+ };
42
+ export {
43
+ k as default,
44
+ S as forward,
45
+ R as init,
46
+ T as inverse,
47
+ Z as names
48
+ };