vue-chrts 2.1.0-beta-7 → 2.1.0-beta-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.
Files changed (165) hide show
  1. package/dist/components/AreaChart/{types.d.ts → AreaChart.d.ts} +2 -22
  2. package/dist/components/AreaChart/AreaChart.js +95 -116
  3. package/dist/components/AreaChart/AreaChart.vue.d.ts +1 -1
  4. package/dist/components/AreaChart/index.d.ts +2 -0
  5. package/dist/components/BarChart/{types.d.ts → BarChart.d.ts} +12 -11
  6. package/dist/components/BarChart/BarChart.js +9 -9
  7. package/dist/components/BarChart/BarChart.vue.d.ts +1 -1
  8. package/dist/components/BarChart/index.d.ts +2 -0
  9. package/dist/components/BubbleChart/{types.d.ts → BubbleChart.d.ts} +2 -1
  10. package/dist/components/BubbleChart/BubbleChart.js +4 -4
  11. package/dist/components/BubbleChart/BubbleChart.vue.d.ts +1 -1
  12. package/dist/components/BubbleChart/index.d.ts +2 -0
  13. package/dist/components/DagreGraph/DagreGraph.d.ts +254 -0
  14. package/dist/components/DagreGraph/DagreGraph.js +65 -62
  15. package/dist/components/DagreGraph/DagreGraph.vue.d.ts +1 -1
  16. package/dist/components/DagreGraph/index.d.ts +2 -0
  17. package/dist/components/DagreGraph/types.d.ts +2 -1
  18. package/dist/components/DonutChart/{types.d.ts → DonutChart.d.ts} +7 -7
  19. package/dist/components/DonutChart/DonutChart.js +3 -3
  20. package/dist/components/DonutChart/DonutChart.vue.d.ts +1 -1
  21. package/dist/components/DonutChart/DonutChart2.js +2 -2
  22. package/dist/components/DonutChart/DonutChart3.js +4 -0
  23. package/dist/components/DonutChart/index.d.ts +2 -0
  24. package/dist/components/DualChart/DualChart.d.ts +195 -0
  25. package/dist/components/DualChart/DualChart.js +125 -122
  26. package/dist/components/DualChart/DualChart.vue.d.ts +1 -1
  27. package/dist/components/DualChart/index.d.ts +2 -0
  28. package/dist/components/DualChart/types.d.ts +2 -2
  29. package/dist/components/GanttChart/{types.d.ts → GanttChart.d.ts} +2 -1
  30. package/dist/components/GanttChart/GanttChart.js +6 -6
  31. package/dist/components/GanttChart/GanttChart.vue.d.ts +1 -1
  32. package/dist/components/GanttChart/index.d.ts +2 -0
  33. package/dist/components/LineChart/{types.d.ts → LineChart.d.ts} +1 -1
  34. package/dist/components/LineChart/LineChart.js +7 -12
  35. package/dist/components/LineChart/LineChart.vue.d.ts +1 -1
  36. package/dist/components/LineChart/index.d.ts +2 -0
  37. package/dist/components/Maps/DottedMap/DottedMap.js +2 -2
  38. package/dist/components/Maps/DottedMap/DottedMap.vue.d.ts +2 -2
  39. package/dist/components/Maps/DottedMap/core.js +2 -2
  40. package/dist/components/Maps/DottedMap/core.vue.d.ts +2 -2
  41. package/dist/components/Maps/DottedMap/mapUtils.js +22 -22
  42. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.js +5 -5
  43. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.vue.d.ts +2 -2
  44. package/dist/components/Maps/TopoJSONMap/types.d.ts +2 -1
  45. package/dist/components/Maps/index.d.ts +5 -0
  46. package/dist/components/SankeyChart/SankeyChart.d.ts +117 -0
  47. package/dist/components/SankeyChart/SankeyChart.js +59 -56
  48. package/dist/components/SankeyChart/SankeyChart.vue.d.ts +1 -1
  49. package/dist/components/SankeyChart/index.d.ts +2 -0
  50. package/dist/components/SankeyChart/types.d.ts +2 -1
  51. package/dist/components/Tooltip.js +5 -5
  52. package/dist/enums.d.ts +32 -0
  53. package/dist/index.d.ts +12 -14
  54. package/dist/index.js +31 -31
  55. package/dist/types.d.ts +2 -46
  56. package/package.json +16 -10
  57. package/dist/components/DonutChart/types.js +0 -4
  58. package/dist/node_modules/.pnpm/@turf_boolean-point-in-polygon@7.3.1/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +0 -28
  59. package/dist/node_modules/.pnpm/@turf_invariant@7.3.1/node_modules/@turf/invariant/dist/esm/index.js +0 -20
  60. package/dist/node_modules/.pnpm/mgrs@1.0.0/node_modules/mgrs/mgrs.js +0 -222
  61. package/dist/node_modules/.pnpm/point-in-polygon-hao@1.2.4/node_modules/point-in-polygon-hao/dist/esm/index.js +0 -25
  62. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Point.js +0 -24
  63. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Proj.js +0 -46
  64. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/adjust_axis.js +0 -31
  65. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/checkSanity.js +0 -15
  66. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lat.js +0 -8
  67. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lon.js +0 -8
  68. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_zone.js +0 -13
  69. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinhy.js +0 -9
  70. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinz.js +0 -6
  71. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens.js +0 -8
  72. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens_cmplx.js +0 -10
  73. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/cosh.js +0 -7
  74. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e0fn.js +0 -6
  75. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e1fn.js +0 -6
  76. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e2fn.js +0 -6
  77. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e3fn.js +0 -6
  78. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gN.js +0 -7
  79. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gatg.js +0 -8
  80. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/hypot.js +0 -8
  81. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/imlfn.js +0 -11
  82. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/iqsfnz.js +0 -13
  83. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/log1py.js +0 -7
  84. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/mlfn.js +0 -6
  85. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/msfnz.js +0 -7
  86. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/phi2z.js +0 -10
  87. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_enfn.js +0 -10
  88. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_inv_mlfn.js +0 -14
  89. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_mlfn.js +0 -6
  90. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/qsfnz.js +0 -7
  91. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sign.js +0 -6
  92. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sinh.js +0 -7
  93. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/srat.js +0 -6
  94. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/toPoint.js +0 -10
  95. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/tsfnz.js +0 -8
  96. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/vincenty.js +0 -33
  97. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Datum.js +0 -1278
  98. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Ellipsoid.js +0 -226
  99. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/PrimeMeridian.js +0 -17
  100. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/units.js +0 -25
  101. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/values.js +0 -22
  102. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/core.js +0 -65
  103. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum.js +0 -8
  104. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datumUtils.js +0 -82
  105. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum_transform.js +0 -94
  106. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/defs.js +0 -39
  107. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/deriveConstants.js +0 -30
  108. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/extend.js +0 -12
  109. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/global.js +0 -9
  110. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/index.js +0 -25
  111. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/match.js +0 -11
  112. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/nadgrid.js +0 -128
  113. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/parseCode.js +0 -47
  114. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projString.js +0 -119
  115. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aea.js +0 -43
  116. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aeqd.js +0 -36
  117. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/bonne.js +0 -55
  118. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cass.js +0 -52
  119. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cea.js +0 -36
  120. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqc.js +0 -27
  121. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqdc.js +0 -48
  122. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqearth.js +0 -30
  123. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/etmerc.js +0 -54
  124. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gauss.js +0 -27
  125. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geocent.js +0 -26
  126. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geos.js +0 -49
  127. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gnom.js +0 -28
  128. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/krovak.js +0 -31
  129. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/laea.js +0 -134
  130. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/lcc.js +0 -61
  131. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/longlat.js +0 -19
  132. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/merc.js +0 -49
  133. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/mill.js +0 -26
  134. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/moll.js +0 -37
  135. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/nzmg.js +0 -48
  136. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ob_tran.js +0 -173
  137. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/omerc.js +0 -58
  138. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ortho.js +0 -28
  139. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/poly.js +0 -68
  140. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/qsc.js +0 -67
  141. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/robin.js +0 -104
  142. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sinu.js +0 -47
  143. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/somerc.js +0 -34
  144. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/stere.js +0 -46
  145. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sterea.js +0 -33
  146. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tmerc.js +0 -60
  147. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tpers.js +0 -110
  148. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/utm.js +0 -22
  149. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/vandg.js +0 -34
  150. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections.js +0 -34
  151. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/transform.js +0 -49
  152. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/projs.js +0 -38
  153. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/orient2d.js +0 -23
  154. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/util.js +0 -30
  155. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2015.js +0 -9
  156. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2019.js +0 -20
  157. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilderBase.js +0 -171
  158. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/buildPROJJSON.js +0 -11
  159. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/detectWKTVersion.js +0 -7
  160. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/index.js +0 -104
  161. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/parser.js +0 -117
  162. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/process.js +0 -89
  163. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/transformPROJJSON.js +0 -73
  164. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/util.js +0 -12
  165. /package/dist/{types.js → enums.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,15 +1,13 @@
1
- import { default as AreaChart } from './components/AreaChart/AreaChart.vue';
2
- import { default as LineChart } from './components/LineChart/LineChart.vue';
3
- import { default as BarChart } from './components/BarChart/BarChart.vue';
4
- import { default as DonutChart } from './components/DonutChart/DonutChart.vue';
5
- import { default as BubbleChart } from './components/BubbleChart/BubbleChart.vue';
6
- import { default as GanttChart } from './components/GanttChart/GanttChart.vue';
7
- import { default as DagreGraph } from './components/DagreGraph/DagreGraph.vue';
8
- import { default as DualChart } from './components/DualChart/DualChart.vue';
9
- import { default as SankeyChart } from './components/SankeyChart/SankeyChart.vue';
10
- import { default as TopoJSONMap } from './components/Maps/TopoJSONMap/TopoJSONMap.vue';
11
- import { default as DottedMap } from './components/Maps/DottedMap/DottedMap.vue';
12
- import { LegendPosition, CurveType, Orientation, MarkerConfig, CrosshairConfig, DonutType, BulletLegendItemInterface } from './types';
1
+ export type * from './types';
2
+ export * from './enums';
3
+ export * from './components/AreaChart';
4
+ export * from './components/LineChart';
5
+ export * from './components/BarChart';
6
+ export * from './components/DonutChart';
7
+ export * from './components/BubbleChart';
8
+ export * from './components/GanttChart';
9
+ export * from './components/DagreGraph';
10
+ export * from './components/DualChart';
11
+ export * from './components/SankeyChart';
12
+ export * from './components/Maps';
13
13
  export { getMap, getPin } from './components/Maps/DottedMap/mapUtils';
14
- export { AreaChart, LineChart, BarChart, DonutChart, BubbleChart, GanttChart, DagreGraph, DualChart, SankeyChart, TopoJSONMap, DottedMap, Orientation, CurveType, LegendPosition, DonutType };
15
- export type { BulletLegendItemInterface, MarkerConfig, CrosshairConfig };
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { default as a } from "./components/AreaChart/AreaChart.js";
2
- import { default as o } from "./components/LineChart/LineChart.js";
3
- import { default as p } from "./components/BarChart/BarChart.js";
4
- import { default as m } from "./components/DonutChart/DonutChart.js";
5
- import { default as d } from "./components/BubbleChart/BubbleChart.js";
6
- import { default as s } from "./components/GanttChart/GanttChart.js";
7
- import { default as h } from "./components/DagreGraph/DagreGraph.js";
8
- import { default as i } from "./components/DualChart/DualChart.js";
9
- import { default as g } from "./components/SankeyChart/SankeyChart.js";
10
- import { default as M } from "./components/Maps/TopoJSONMap/TopoJSONMap.js";
11
- import { default as b } from "./components/Maps/DottedMap/DottedMap.js";
12
- import { getMap as G, getPin as L } from "./components/Maps/DottedMap/mapUtils.js";
13
- import { CurveType as P, LegendPosition as S, Orientation as k } from "./types.js";
14
- import { DonutType as A } from "./components/DonutChart/types.js";
1
+ import { CurveType as a, LegendPosition as e, Orientation as o } from "./enums.js";
2
+ import { default as p } from "./components/AreaChart/AreaChart.js";
3
+ import { default as m } from "./components/LineChart/LineChart.js";
4
+ import { default as d } from "./components/BarChart/BarChart.js";
5
+ import { default as s } from "./components/DonutChart/DonutChart.js";
6
+ import { DonutType as h } from "./components/DonutChart/DonutChart2.js";
7
+ import { default as i } from "./components/BubbleChart/BubbleChart.js";
8
+ import { default as g } from "./components/GanttChart/GanttChart.js";
9
+ import { default as M } from "./components/DagreGraph/DagreGraph.js";
10
+ import { default as b } from "./components/DualChart/DualChart.js";
11
+ import { default as G } from "./components/SankeyChart/SankeyChart.js";
12
+ import { default as O } from "./components/Maps/DottedMap/DottedMap.js";
13
+ import { default as S } from "./components/Maps/TopoJSONMap/TopoJSONMap.js";
14
+ import { getMap as v, getPin as A } from "./components/Maps/DottedMap/mapUtils.js";
15
15
  export {
16
- a as AreaChart,
17
- p as BarChart,
18
- d as BubbleChart,
19
- P as CurveType,
20
- h as DagreGraph,
21
- m as DonutChart,
22
- A as DonutType,
23
- b as DottedMap,
24
- i as DualChart,
25
- s as GanttChart,
26
- S as LegendPosition,
27
- o as LineChart,
28
- k as Orientation,
29
- g as SankeyChart,
30
- M as TopoJSONMap,
31
- G as getMap,
32
- L as getPin
16
+ p as AreaChart,
17
+ d as BarChart,
18
+ i as BubbleChart,
19
+ a as CurveType,
20
+ M as DagreGraph,
21
+ s as DonutChart,
22
+ h as DonutType,
23
+ O as DottedMap,
24
+ b as DualChart,
25
+ g as GanttChart,
26
+ e as LegendPosition,
27
+ m as LineChart,
28
+ o as Orientation,
29
+ G as SankeyChart,
30
+ S as TopoJSONMap,
31
+ v as getMap,
32
+ A as getPin
33
33
  };
package/dist/types.d.ts CHANGED
@@ -1,40 +1,4 @@
1
- import { AreaChartProps } from './components/AreaChart/types';
2
- import { BarChartProps } from './components/BarChart/types';
3
- import { LineChartProps } from './components/LineChart/types';
4
- import { DonutChartProps, DonutType } from './components/DonutChart/types';
5
- import { BubbleChartProps } from './components/BubbleChart/types';
6
- import { GanttChartProps } from './components/GanttChart/types';
7
- import { DagreGraphProps, GraphNodeDatum, GraphLinkDatum, GraphData, DagreLayoutSettings, DagreRankDir, DagreAlign, DagreRanker, NodeShape, LinkArrowPosition } from './components/DagreGraph/types';
8
- import { SankeyChartProps } from './components/SankeyChart/types';
9
- declare enum LegendPosition {
10
- TopLeft = "top-left",
11
- TopCenter = "top-center",
12
- TopRight = "top-right",
13
- BottomLeft = "bottom-left",
14
- BottomCenter = "bottom-center",
15
- BottomRight = "bottom-right"
16
- }
17
- declare enum CurveType {
18
- Basis = "basis",
19
- BasisClosed = "basisClosed",
20
- BasisOpen = "basisOpen",
21
- Bundle = "bundle",
22
- Cardinal = "cardinal",
23
- CardinalClosed = "cardinalClosed",
24
- CardinalOpen = "cardinalOpen",
25
- CatmullRom = "catmullRom",
26
- CatmullRomClosed = "catmullRomClosed",
27
- CatmullRomOpen = "catmullRomOpen",
28
- Linear = "linear",
29
- LinearClosed = "linearClosed",
30
- MonotoneX = "monotoneX",
31
- MonotoneY = "monotoneY",
32
- Natural = "natural",
33
- Step = "step",
34
- StepAfter = "stepAfter",
35
- StepBefore = "stepBefore"
36
- }
37
- interface BulletLegendItemInterface {
1
+ export interface BulletLegendItemInterface {
38
2
  name: string | number;
39
3
  color?: string | Array<string>;
40
4
  className?: string;
@@ -42,11 +6,6 @@ interface BulletLegendItemInterface {
42
6
  hidden?: boolean;
43
7
  pointer?: boolean;
44
8
  }
45
- declare enum Orientation {
46
- Horizontal = "horizontal",
47
- Vertical = "vertical"
48
- }
49
- export { LegendPosition, CurveType, Orientation, DonutType, type AreaChartProps, type BarChartProps, type LineChartProps, type DonutChartProps, type BulletLegendItemInterface, type BubbleChartProps, type GanttChartProps, type DagreGraphProps, type GraphNodeDatum, type GraphLinkDatum, type GraphData, type DagreLayoutSettings, type DagreRankDir, type DagreAlign, type DagreRanker, type NodeShape, type LinkArrowPosition, type SankeyChartProps, };
50
9
  export type axisFormatter = ((tick: number, i?: number, ticks?: number[]) => string) | ((tick: Date, i?: number, ticks?: Date[]) => string);
51
10
  export interface AxisConfig {
52
11
  tickLine?: boolean;
@@ -63,10 +22,6 @@ export interface AxisConfig {
63
22
  minMaxTicksOnly?: boolean;
64
23
  minMaxTicksOnlyShowGridLines?: boolean;
65
24
  tickValues?: readonly number[] | readonly Date[];
66
- /**
67
- * Animation duration in milliseconds.
68
- */
69
- duration?: number;
70
25
  }
71
26
  export type MarkerConfig = {
72
27
  id: string;
@@ -84,6 +39,7 @@ export interface CrosshairConfig {
84
39
  color?: string;
85
40
  strokeColor?: string;
86
41
  strokeWidth?: number;
42
+ template?: (d: any) => string;
87
43
  }
88
44
  export interface TooltipConfig {
89
45
  /**
package/package.json CHANGED
@@ -1,17 +1,23 @@
1
1
  {
2
2
  "name": "vue-chrts",
3
- "version": "2.1.0-beta-7",
3
+ "version": "2.1.0-beta-9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
8
- "main": "./dist/index.umd.cjs",
9
- "module": "./dist/index.js",
8
+ "main": "./dist/index.js",
10
9
  "types": "./dist/index.d.ts",
11
10
  "exports": {
12
11
  ".": {
13
- "import": "./dist/index.js",
14
- "require": "./dist/index.umd.cjs"
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ },
15
+ "./enums": {
16
+ "types": "./dist/enums.d.ts",
17
+ "import": "./dist/enums.js"
18
+ },
19
+ "./types": {
20
+ "types": "./dist/types.d.ts"
15
21
  }
16
22
  },
17
23
  "peerDependencies": {
@@ -24,14 +30,10 @@
24
30
  "@types/node": "^22.13.11",
25
31
  "@types/proj4": "^2.19.0",
26
32
  "@types/rollup": "^0.54.0",
27
- "@unovis/ts": "^1.6.2",
28
- "@unovis/vue": "^1.6.2",
29
33
  "@vitejs/plugin-vue": "^5.2.1",
30
34
  "@vue/tsconfig": "^0.7.0",
31
35
  "@vueuse/core": "^13.0.0",
32
36
  "commit-and-tag-version": "^12.5.1",
33
- "d3-geo": "^3.1.1",
34
- "proj4": "^2.20.2",
35
37
  "rollup": "^4.46.2",
36
38
  "tailwindcss": "^4.0.15",
37
39
  "typescript": "~5.7.2",
@@ -41,7 +43,11 @@
41
43
  "vue-tsc": "^2.2.4"
42
44
  },
43
45
  "dependencies": {
44
- "@turf/boolean-point-in-polygon": "^7.3.1"
46
+ "@turf/boolean-point-in-polygon": "^7.3.1",
47
+ "@unovis/ts": "^1.6.2",
48
+ "@unovis/vue": "^1.6.2",
49
+ "d3-geo": "^3.1.1",
50
+ "proj4": "^2.20.2"
45
51
  },
46
52
  "scripts": {
47
53
  "dev": "vite",
@@ -1,4 +0,0 @@
1
- var r = /* @__PURE__ */ ((l) => (l.Half = "half", l.Full = "full", l))(r || {});
2
- export {
3
- r as DonutType
4
- };
@@ -1,28 +0,0 @@
1
- import c from "../../../../../../point-in-polygon-hao@1.2.4/node_modules/point-in-polygon-hao/dist/esm/index.js";
2
- import { getCoord as d, getGeom as g } from "../../../../../../@turf_invariant@7.3.1/node_modules/@turf/invariant/dist/esm/index.js";
3
- function y(o, e, u = {}) {
4
- if (!o)
5
- throw new Error("point is required");
6
- if (!e)
7
- throw new Error("polygon is required");
8
- const n = d(o), i = g(e), a = i.type, f = e.bbox;
9
- let r = i.coordinates;
10
- if (f && m(n, f) === !1)
11
- return !1;
12
- a === "Polygon" && (r = [r]);
13
- let l = !1;
14
- for (var t = 0; t < r.length; ++t) {
15
- const s = c(n, r[t]);
16
- if (s === 0) return !u.ignoreBoundary;
17
- s && (l = !0);
18
- }
19
- return l;
20
- }
21
- function m(o, e) {
22
- return e[0] <= o[0] && e[1] <= o[1] && e[2] >= o[0] && e[3] >= o[1];
23
- }
24
- var P = y;
25
- export {
26
- y as booleanPointInPolygon,
27
- P as default
28
- };
@@ -1,20 +0,0 @@
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");
13
- }
14
- function t(r) {
15
- return r.type === "Feature" ? r.geometry : r;
16
- }
17
- export {
18
- e as getCoord,
19
- t as getGeom
20
- };
@@ -1,222 +0,0 @@
1
- var U = 6, F = "AJSAJS", G = "AFAFAF", N = 65, d = 73, k = 79, C = 86, R = 90;
2
- const Q = {
3
- forward: _,
4
- inverse: V,
5
- toPoint: Z
6
- };
7
- function _(e, r) {
8
- return r = r || 5, B(m({
9
- lat: e[1],
10
- lon: e[0]
11
- }), r);
12
- }
13
- function V(e) {
14
- var r = E(D(e.toUpperCase()));
15
- return r.lat && r.lon ? [r.lon, r.lat, r.lon, r.lat] : [r.left, r.bottom, r.right, r.top];
16
- }
17
- function Z(e) {
18
- var r = E(D(e.toUpperCase()));
19
- return r.lat && r.lon ? [r.lon, r.lat] : [(r.left + r.right) / 2, (r.top + r.bottom) / 2];
20
- }
21
- function P(e) {
22
- return e * (Math.PI / 180);
23
- }
24
- function O(e) {
25
- return 180 * (e / Math.PI);
26
- }
27
- function m(e) {
28
- var r = e.lat, n = e.lon, v = 6378137, t = 669438e-8, f = 0.9996, i, a, c, s, l, o, u, M = P(r), h = P(n), L, b;
29
- b = Math.floor((n + 180) / 6) + 1, n === 180 && (b = 60), r >= 56 && r < 64 && n >= 3 && n < 12 && (b = 32), r >= 72 && r < 84 && (n >= 0 && n < 9 ? b = 31 : n >= 9 && n < 21 ? b = 33 : n >= 21 && n < 33 ? b = 35 : n >= 33 && n < 42 && (b = 37)), i = (b - 1) * 6 - 180 + 3, L = P(i), a = t / (1 - t), c = v / Math.sqrt(1 - t * Math.sin(M) * Math.sin(M)), s = Math.tan(M) * Math.tan(M), l = a * Math.cos(M) * Math.cos(M), o = Math.cos(M) * (h - L), u = v * ((1 - t / 4 - 3 * t * t / 64 - 5 * t * t * t / 256) * M - (3 * t / 8 + 3 * t * t / 32 + 45 * t * t * t / 1024) * Math.sin(2 * M) + (15 * t * t / 256 + 45 * t * t * t / 1024) * Math.sin(4 * M) - 35 * t * t * t / 3072 * Math.sin(6 * M));
30
- var w = f * c * (o + (1 - s + l) * o * o * o / 6 + (5 - 18 * s + s * s + 72 * l - 58 * a) * o * o * o * o * o / 120) + 5e5, g = f * (u + c * Math.tan(M) * (o * o / 2 + (5 - s + 9 * l + 4 * l * l) * o * o * o * o / 24 + (61 - 58 * s + s * s + 600 * l - 330 * a) * o * o * o * o * o * o / 720));
31
- return r < 0 && (g += 1e7), {
32
- northing: Math.round(g),
33
- easting: Math.round(w),
34
- zoneNumber: b,
35
- zoneLetter: x(r)
36
- };
37
- }
38
- function E(e) {
39
- var r = e.northing, n = e.easting, v = e.zoneLetter, t = e.zoneNumber;
40
- if (t < 0 || t > 60)
41
- return null;
42
- var f = 0.9996, i = 6378137, a = 669438e-8, c, s = (1 - Math.sqrt(1 - a)) / (1 + Math.sqrt(1 - a)), l, o, u, M, h, L, b, w, g, z = n - 5e5, I = r;
43
- v < "N" && (I -= 1e7), b = (t - 1) * 6 - 180 + 3, c = a / (1 - a), L = I / f, w = L / (i * (1 - a / 4 - 3 * a * a / 64 - 5 * a * a * a / 256)), g = w + (3 * s / 2 - 27 * s * s * s / 32) * Math.sin(2 * w) + (21 * s * s / 16 - 55 * s * s * s * s / 32) * Math.sin(4 * w) + 151 * s * s * s / 96 * Math.sin(6 * w), l = i / Math.sqrt(1 - a * Math.sin(g) * Math.sin(g)), o = Math.tan(g) * Math.tan(g), u = c * Math.cos(g) * Math.cos(g), M = i * (1 - a) / Math.pow(1 - a * Math.sin(g) * Math.sin(g), 1.5), h = z / (l * f);
44
- var A = g - l * Math.tan(g) / M * (h * h / 2 - (5 + 3 * o + 10 * u - 4 * u * u - 9 * c) * h * h * h * h / 24 + (61 + 90 * o + 298 * u + 45 * o * o - 252 * c - 3 * u * u) * h * h * h * h * h * h / 720);
45
- A = O(A);
46
- var T = (h - (1 + 2 * o + u) * h * h * h / 6 + (5 - 2 * u + 28 * o - 3 * u * u + 8 * c + 24 * o * o) * h * h * h * h * h / 120) / Math.cos(g);
47
- T = b + O(T);
48
- var p;
49
- if (e.accuracy) {
50
- var S = E({
51
- northing: e.northing + e.accuracy,
52
- easting: e.easting + e.accuracy,
53
- zoneLetter: e.zoneLetter,
54
- zoneNumber: e.zoneNumber
55
- });
56
- p = {
57
- top: S.lat,
58
- right: S.lon,
59
- bottom: A,
60
- left: T
61
- };
62
- } else
63
- p = {
64
- lat: A,
65
- lon: T
66
- };
67
- return p;
68
- }
69
- function x(e) {
70
- var r = "Z";
71
- return 84 >= e && e >= 72 ? r = "X" : 72 > e && e >= 64 ? r = "W" : 64 > e && e >= 56 ? r = "V" : 56 > e && e >= 48 ? r = "U" : 48 > e && e >= 40 ? r = "T" : 40 > e && e >= 32 ? r = "S" : 32 > e && e >= 24 ? r = "R" : 24 > e && e >= 16 ? r = "Q" : 16 > e && e >= 8 ? r = "P" : 8 > e && e >= 0 ? r = "N" : 0 > e && e >= -8 ? r = "M" : -8 > e && e >= -16 ? r = "L" : -16 > e && e >= -24 ? r = "K" : -24 > e && e >= -32 ? r = "J" : -32 > e && e >= -40 ? r = "H" : -40 > e && e >= -48 ? r = "G" : -48 > e && e >= -56 ? r = "F" : -56 > e && e >= -64 ? r = "E" : -64 > e && e >= -72 ? r = "D" : -72 > e && e >= -80 && (r = "C"), r;
72
- }
73
- function B(e, r) {
74
- var n = "00000" + e.easting, v = "00000" + e.northing;
75
- return e.zoneNumber + e.zoneLetter + J(e.easting, e.northing, e.zoneNumber) + n.substr(n.length - 5, r) + v.substr(v.length - 5, r);
76
- }
77
- function J(e, r, n) {
78
- var v = q(n), t = Math.floor(e / 1e5), f = Math.floor(r / 1e5) % 20;
79
- return K(t, f, v);
80
- }
81
- function q(e) {
82
- var r = e % U;
83
- return r === 0 && (r = U), r;
84
- }
85
- function K(e, r, n) {
86
- var v = n - 1, t = F.charCodeAt(v), f = G.charCodeAt(v), i = t + e - 1, a = f + r, c = !1;
87
- i > R && (i = i - R + N - 1, c = !0), (i === d || t < d && i > d || (i > d || t < d) && c) && i++, (i === k || t < k && i > k || (i > k || t < k) && c) && (i++, i === d && i++), i > R && (i = i - R + N - 1), a > C ? (a = a - C + N - 1, c = !0) : c = !1, (a === d || f < d && a > d || (a > d || f < d) && c) && a++, (a === k || f < k && a > k || (a > k || f < k) && c) && (a++, a === d && a++), a > C && (a = a - C + N - 1);
88
- var s = String.fromCharCode(i) + String.fromCharCode(a);
89
- return s;
90
- }
91
- function D(e) {
92
- if (e && e.length === 0)
93
- throw "MGRSPoint coverting from nothing";
94
- for (var r = e.length, n = null, v = "", t, f = 0; !/[A-Z]/.test(t = e.charAt(f)); ) {
95
- if (f >= 2)
96
- throw "MGRSPoint bad conversion from: " + e;
97
- v += t, f++;
98
- }
99
- var i = parseInt(v, 10);
100
- if (f === 0 || f + 3 > r)
101
- throw "MGRSPoint bad conversion from: " + e;
102
- var a = e.charAt(f++);
103
- if (a <= "A" || a === "B" || a === "Y" || a >= "Z" || a === "I" || a === "O")
104
- throw "MGRSPoint zone letter " + a + " not handled: " + e;
105
- n = e.substring(f, f += 2);
106
- for (var c = q(i), s = y(n.charAt(0), c), l = W(n.charAt(1), c); l < H(a); )
107
- l += 2e6;
108
- var o = r - f;
109
- if (o % 2 !== 0)
110
- throw `MGRSPoint has to have an even number
111
- of digits after the zone letter and two 100km letters - front
112
- half for easting meters, second half for
113
- northing meters` + e;
114
- var u = o / 2, M = 0, h = 0, L, b, w, g, z;
115
- return u > 0 && (L = 1e5 / Math.pow(10, u), b = e.substring(f, f + u), M = parseFloat(b) * L, w = e.substring(f + u), h = parseFloat(w) * L), g = M + s, z = h + l, {
116
- easting: g,
117
- northing: z,
118
- zoneLetter: a,
119
- zoneNumber: i,
120
- accuracy: L
121
- };
122
- }
123
- function y(e, r) {
124
- for (var n = F.charCodeAt(r - 1), v = 1e5, t = !1; n !== e.charCodeAt(0); ) {
125
- if (n++, n === d && n++, n === k && n++, n > R) {
126
- if (t)
127
- throw "Bad character: " + e;
128
- n = N, t = !0;
129
- }
130
- v += 1e5;
131
- }
132
- return v;
133
- }
134
- function W(e, r) {
135
- if (e > "V")
136
- throw "MGRSPoint given invalid Northing " + e;
137
- for (var n = G.charCodeAt(r - 1), v = 0, t = !1; n !== e.charCodeAt(0); ) {
138
- if (n++, n === d && n++, n === k && n++, n > C) {
139
- if (t)
140
- throw "Bad character: " + e;
141
- n = N, t = !0;
142
- }
143
- v += 1e5;
144
- }
145
- return v;
146
- }
147
- function H(e) {
148
- var r;
149
- switch (e) {
150
- case "C":
151
- r = 11e5;
152
- break;
153
- case "D":
154
- r = 2e6;
155
- break;
156
- case "E":
157
- r = 28e5;
158
- break;
159
- case "F":
160
- r = 37e5;
161
- break;
162
- case "G":
163
- r = 46e5;
164
- break;
165
- case "H":
166
- r = 55e5;
167
- break;
168
- case "J":
169
- r = 64e5;
170
- break;
171
- case "K":
172
- r = 73e5;
173
- break;
174
- case "L":
175
- r = 82e5;
176
- break;
177
- case "M":
178
- r = 91e5;
179
- break;
180
- case "N":
181
- r = 0;
182
- break;
183
- case "P":
184
- r = 8e5;
185
- break;
186
- case "Q":
187
- r = 17e5;
188
- break;
189
- case "R":
190
- r = 26e5;
191
- break;
192
- case "S":
193
- r = 35e5;
194
- break;
195
- case "T":
196
- r = 44e5;
197
- break;
198
- case "U":
199
- r = 53e5;
200
- break;
201
- case "V":
202
- r = 62e5;
203
- break;
204
- case "W":
205
- r = 7e6;
206
- break;
207
- case "X":
208
- r = 79e5;
209
- break;
210
- default:
211
- r = -1;
212
- }
213
- if (r >= 0)
214
- return r;
215
- throw "Invalid zone letter: " + e;
216
- }
217
- export {
218
- Q as default,
219
- _ as forward,
220
- V as inverse,
221
- Z as toPoint
222
- };
@@ -1,25 +0,0 @@
1
- import { orient2d as o } from "../../../../../robust-predicates@3.0.2/node_modules/robust-predicates/esm/orient2d.js";
2
- function b(m, d) {
3
- var n, i, h = 0, s, v, r, t, a, e, u, g = m[0], x = m[1], P = d.length;
4
- for (n = 0; n < P; n++) {
5
- i = 0;
6
- var f = d[n], l = f.length - 1;
7
- if (e = f[0], e[0] !== f[l][0] && e[1] !== f[l][1])
8
- throw new Error("First and last coordinates in a ring must be the same");
9
- for (v = e[0] - g, r = e[1] - x, i; i < l; i++) {
10
- if (u = f[i + 1], t = u[0] - g, a = u[1] - x, r === 0 && a === 0) {
11
- if (t <= 0 && v >= 0 || v <= 0 && t >= 0)
12
- return 0;
13
- } else if (a >= 0 && r <= 0 || a <= 0 && r >= 0) {
14
- if (s = o(v, t, r, a, 0, 0), s === 0)
15
- return 0;
16
- (s > 0 && a > 0 && r <= 0 || s < 0 && a <= 0 && r > 0) && h++;
17
- }
18
- e = u, r = a, v = t;
19
- }
20
- }
21
- return h % 2 !== 0;
22
- }
23
- export {
24
- b as default
25
- };
@@ -1,24 +0,0 @@
1
- import { toPoint as r, forward as n } from "../../../../mgrs@1.0.0/node_modules/mgrs/mgrs.js";
2
- function i(t, e, s) {
3
- if (!(this instanceof i))
4
- return new i(t, e, s);
5
- if (Array.isArray(t))
6
- this.x = t[0], this.y = t[1], this.z = t[2] || 0;
7
- else if (typeof t == "object")
8
- this.x = t.x, this.y = t.y, this.z = t.z || 0;
9
- else if (typeof t == "string" && typeof e > "u") {
10
- var o = t.split(",");
11
- this.x = parseFloat(o[0]), this.y = parseFloat(o[1]), this.z = parseFloat(o[2]) || 0;
12
- } else
13
- this.x = t, this.y = e, this.z = s || 0;
14
- console.warn("proj4.Point will be removed in version 3, use proj4.toPoint");
15
- }
16
- i.fromMGRS = function(t) {
17
- return new i(r(t));
18
- };
19
- i.prototype.toMGRS = function(t) {
20
- return n([this.x, this.y], t);
21
- };
22
- export {
23
- i as default
24
- };
@@ -1,46 +0,0 @@
1
- import d from "./parseCode.js";
2
- import p from "./extend.js";
3
- import f from "./projections.js";
4
- import { sphere as l, eccentricity as j } from "./deriveConstants.js";
5
- import c from "./constants/Datum.js";
6
- import g from "./datum.js";
7
- import v from "./match.js";
8
- import { getNadgrids as w } from "./nadgrid.js";
9
- function o(a, r) {
10
- if (!(this instanceof o))
11
- return new o(a);
12
- this.forward = null, this.inverse = null, this.init = null, this.name, this.names = null, this.title, r = r || function(m) {
13
- if (m)
14
- throw m;
15
- };
16
- var t = d(a);
17
- if (typeof t != "object") {
18
- r("Could not parse to valid json: " + a);
19
- return;
20
- }
21
- var n = o.projections.get(t.projName);
22
- if (!n) {
23
- r("Could not get projection name from: " + a);
24
- return;
25
- }
26
- if (t.datumCode && t.datumCode !== "none") {
27
- var e = v(c, t.datumCode);
28
- e && (t.datum_params = t.datum_params || (e.towgs84 ? e.towgs84.split(",") : null), t.ellps = e.ellipse, t.datumName = e.datumName ? e.datumName : t.datumCode);
29
- }
30
- t.k0 = t.k0 || 1, t.axis = t.axis || "enu", t.ellps = t.ellps || "wgs84", t.lat1 = t.lat1 || t.lat0;
31
- var i = l(t.a, t.b, t.rf, t.ellps, t.sphere), s = j(i.a, i.b, i.rf, t.R_A), h = w(t.nadgrids), u = t.datum || g(
32
- t.datumCode,
33
- t.datum_params,
34
- i.a,
35
- i.b,
36
- s.es,
37
- s.ep2,
38
- h
39
- );
40
- p(this, t), p(this, n), this.a = i.a, this.b = i.b, this.rf = i.rf, this.sphere = i.sphere, this.es = s.es, this.e = s.e, this.ep2 = s.ep2, this.datum = u, "init" in this && typeof this.init == "function" && this.init(), r(null, this);
41
- }
42
- o.projections = f;
43
- o.projections.start();
44
- export {
45
- o as default
46
- };
@@ -1,31 +0,0 @@
1
- function l(n, r, f) {
2
- var u = f.x, d = f.y, x = f.z || 0, a, e, i, s = {};
3
- for (i = 0; i < 3; i++)
4
- if (!(r && i === 2 && f.z === void 0))
5
- switch (i === 0 ? (a = u, "ew".indexOf(n.axis[i]) !== -1 ? e = "x" : e = "y") : i === 1 ? (a = d, "ns".indexOf(n.axis[i]) !== -1 ? e = "y" : e = "x") : (a = x, e = "z"), n.axis[i]) {
6
- case "e":
7
- s[e] = a;
8
- break;
9
- case "w":
10
- s[e] = -a;
11
- break;
12
- case "n":
13
- s[e] = a;
14
- break;
15
- case "s":
16
- s[e] = -a;
17
- break;
18
- case "u":
19
- f[e] !== void 0 && (s.z = a);
20
- break;
21
- case "d":
22
- f[e] !== void 0 && (s.z = -a);
23
- break;
24
- default:
25
- return null;
26
- }
27
- return s;
28
- }
29
- export {
30
- l as default
31
- };
@@ -1,15 +0,0 @@
1
- function r(e) {
2
- i(e.x), i(e.y);
3
- }
4
- function i(e) {
5
- if (typeof Number.isFinite == "function") {
6
- if (Number.isFinite(e))
7
- return;
8
- throw new TypeError("coordinates must be finite numbers");
9
- }
10
- if (typeof e != "number" || e !== e || !isFinite(e))
11
- throw new TypeError("coordinates must be finite numbers");
12
- }
13
- export {
14
- r as default
15
- };
@@ -1,8 +0,0 @@
1
- import { HALF_PI as a } from "../constants/values.js";
2
- import r from "./sign.js";
3
- function i(t) {
4
- return Math.abs(t) < a ? t : t - r(t) * Math.PI;
5
- }
6
- export {
7
- i as default
8
- };