@evergis/charts 3.1.6 → 3.1.8

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 (266) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +10 -0
  3. package/dist/charts/BarChart/draw.d.ts +2 -2
  4. package/dist/charts/BarChart/drawGrid/index.d.ts +2 -2
  5. package/dist/charts/BarChart/drawGrid/types.d.ts +8 -8
  6. package/dist/charts/BarChart/drawLines/index.d.ts +13 -13
  7. package/dist/charts/BarChart/drawLines/types.d.ts +9 -9
  8. package/dist/charts/BarChart/drawTooltip/getLabel.d.ts +2 -2
  9. package/dist/charts/BarChart/drawTooltip/getLabelY.d.ts +2 -2
  10. package/dist/charts/BarChart/drawTooltip/index.d.ts +2 -2
  11. package/dist/charts/BarChart/drawTooltip/types.d.ts +12 -13
  12. package/dist/charts/BarChart/getBars/index.d.ts +3 -3
  13. package/dist/charts/BarChart/getBars/types.d.ts +6 -6
  14. package/dist/charts/BarChart/getDomain.d.ts +5 -5
  15. package/dist/charts/BarChart/hooks/useSelection.d.ts +2 -2
  16. package/dist/charts/BarChart/index.d.ts +3 -3
  17. package/dist/charts/BarChart/marshaling.d.ts +2 -2
  18. package/dist/charts/BarChart/resizeBarWidth/index.d.ts +2 -2
  19. package/dist/charts/BarChart/resizeBarWidth/types.d.ts +5 -5
  20. package/dist/charts/BarChart/styled.d.ts +37 -37
  21. package/dist/charts/BarChart/types.d.ts +148 -148
  22. package/dist/charts/BubbleChart/bubbleChartDefaultProps.d.ts +14 -14
  23. package/dist/charts/BubbleChart/draw.d.ts +2 -2
  24. package/dist/charts/BubbleChart/drawGrid/index.d.ts +2 -2
  25. package/dist/charts/BubbleChart/drawGrid/types.d.ts +8 -8
  26. package/dist/charts/BubbleChart/drawTooltip/index.d.ts +2 -2
  27. package/dist/charts/BubbleChart/drawTooltip/styled.d.ts +1 -1
  28. package/dist/charts/BubbleChart/drawTooltip/types.d.ts +4 -4
  29. package/dist/charts/BubbleChart/index.d.ts +3 -3
  30. package/dist/charts/BubbleChart/styled.d.ts +17 -17
  31. package/dist/charts/BubbleChart/types.d.ts +55 -55
  32. package/dist/charts/BubbleChart/unmount.d.ts +1 -1
  33. package/dist/charts/CalendarChart/draw.d.ts +2 -2
  34. package/dist/charts/CalendarChart/index.d.ts +3 -3
  35. package/dist/charts/CalendarChart/styled.d.ts +18 -18
  36. package/dist/charts/CalendarChart/types.d.ts +22 -22
  37. package/dist/charts/HorizontalBarChart/Bar/index.d.ts +3 -3
  38. package/dist/charts/HorizontalBarChart/Bar/styled.d.ts +1 -1
  39. package/dist/charts/HorizontalBarChart/Bar/types.d.ts +11 -11
  40. package/dist/charts/HorizontalBarChart/Tooltip/index.d.ts +3 -3
  41. package/dist/charts/HorizontalBarChart/Tooltip/types.d.ts +5 -5
  42. package/dist/charts/HorizontalBarChart/XScale/hooks/useScale.d.ts +2 -2
  43. package/dist/charts/HorizontalBarChart/XScale/index.d.ts +3 -3
  44. package/dist/charts/HorizontalBarChart/XScale/styled.d.ts +3 -3
  45. package/dist/charts/HorizontalBarChart/hooks/useMarshaling.d.ts +5 -5
  46. package/dist/charts/HorizontalBarChart/hooks/useStackWrapper.d.ts +12 -12
  47. package/dist/charts/HorizontalBarChart/hooks/useTooltip/index.d.ts +3 -3
  48. package/dist/charts/HorizontalBarChart/hooks/useTooltip/types.d.ts +6 -3
  49. package/dist/charts/HorizontalBarChart/index.d.ts +3 -3
  50. package/dist/charts/HorizontalBarChart/styled.d.ts +30 -30
  51. package/dist/charts/HorizontalBarChart/types.d.ts +41 -41
  52. package/dist/charts/LineChart/draw.d.ts +2 -2
  53. package/dist/charts/LineChart/drawGrid/index.d.ts +2 -2
  54. package/dist/charts/LineChart/drawGrid/types.d.ts +9 -9
  55. package/dist/charts/LineChart/drawLabel/index.d.ts +3 -3
  56. package/dist/charts/LineChart/drawLabel/styled.d.ts +2 -2
  57. package/dist/charts/LineChart/drawLabel/types.d.ts +7 -7
  58. package/dist/charts/LineChart/drawTooltip/index.d.ts +2 -2
  59. package/dist/charts/LineChart/drawTooltip/types.d.ts +9 -9
  60. package/dist/charts/LineChart/index.d.ts +3 -3
  61. package/dist/charts/LineChart/styled.d.ts +27 -27
  62. package/dist/charts/LineChart/types.d.ts +78 -78
  63. package/dist/charts/PieChart/draw.d.ts +2 -2
  64. package/dist/charts/PieChart/drawRadialLabels/helpers.d.ts +3 -3
  65. package/dist/charts/PieChart/drawRadialLabels/index.d.ts +2 -2
  66. package/dist/charts/PieChart/drawRadialLabels/types.d.ts +11 -11
  67. package/dist/charts/PieChart/drawTooltips/index.d.ts +2 -2
  68. package/dist/charts/PieChart/drawTooltips/types.d.ts +8 -8
  69. package/dist/charts/PieChart/index.d.ts +3 -3
  70. package/dist/charts/PieChart/styled.d.ts +18 -18
  71. package/dist/charts/PieChart/types.d.ts +54 -54
  72. package/dist/charts/RadarChart/draw.d.ts +2 -2
  73. package/dist/charts/RadarChart/drawRadialLabels/index.d.ts +2 -2
  74. package/dist/charts/RadarChart/drawRadialLabels/styled.d.ts +2 -2
  75. package/dist/charts/RadarChart/drawRadialLabels/types.d.ts +25 -25
  76. package/dist/charts/RadarChart/helpers.d.ts +2 -2
  77. package/dist/charts/RadarChart/index.d.ts +3 -3
  78. package/dist/charts/RadarChart/styled.d.ts +13 -13
  79. package/dist/charts/RadarChart/types.d.ts +42 -42
  80. package/dist/charts.esm.js +3327 -3297
  81. package/dist/charts.esm.js.map +1 -1
  82. package/dist/common/components/SwipeScroll/animate.d.ts +6 -6
  83. package/dist/common/components/SwipeScroll/hooks/useSwipe.d.ts +2 -2
  84. package/dist/common/components/SwipeScroll/index.d.ts +3 -3
  85. package/dist/common/components/SwipeScroll/styled.d.ts +1 -1
  86. package/dist/common/components/SwipeScroll/types.d.ts +8 -8
  87. package/dist/common/components/Wrapper.d.ts +1 -1
  88. package/dist/common/components/labels/index.d.ts +7 -7
  89. package/dist/common/components/labels/types.d.ts +6 -6
  90. package/dist/common/components/tooltips/index.d.ts +14 -14
  91. package/dist/common/types/interpolator.d.ts +1 -1
  92. package/dist/common/types/margin.d.ts +6 -6
  93. package/dist/helpers/appendSvg.d.ts +2 -2
  94. package/dist/helpers/common.d.ts +2 -2
  95. package/dist/helpers/computeDimensions.d.ts +2 -2
  96. package/dist/helpers/getLegend/index.d.ts +19 -19
  97. package/dist/helpers/getLegend/types.d.ts +15 -15
  98. package/dist/helpers/getTextWidth.d.ts +1 -1
  99. package/dist/helpers/index.d.ts +1 -1
  100. package/dist/helpers/math.d.ts +2 -2
  101. package/dist/helpers/stackedData.d.ts +2 -2
  102. package/dist/helpers/textAlignCenter.d.ts +2 -2
  103. package/dist/helpers/throttle.d.ts +1 -1
  104. package/dist/hooks/index.d.ts +2 -2
  105. package/dist/hooks/useNode.d.ts +2 -2
  106. package/dist/hooks/useResize.d.ts +1 -1
  107. package/dist/index.d.ts +26 -26
  108. package/dist/index.js +3553 -5
  109. package/dist/index.js.map +1 -0
  110. package/package.json +29 -40
  111. package/dist/charts.cjs.development.js +0 -3513
  112. package/dist/charts.cjs.development.js.map +0 -1
  113. package/dist/charts.cjs.production.min.js +0 -2
  114. package/dist/charts.cjs.production.min.js.map +0 -1
  115. package/dist/jest.config.d.ts +0 -14
  116. package/dist/stories/Bar/Examples.stories.d.ts +0 -23
  117. package/dist/stories/Bar/HorizontalBar.stories.d.ts +0 -25
  118. package/dist/stories/Bar/Statistics.stories.d.ts +0 -7
  119. package/dist/stories/Bar/VerticalBar.stories.d.ts +0 -41
  120. package/dist/stories/Bubble/Bubble.stories.d.ts +0 -23
  121. package/dist/stories/Bubble/Examples.stories.d.ts +0 -4
  122. package/dist/stories/Bubble/examples/VEB/InvestBubble.d.ts +0 -5
  123. package/dist/stories/Bubble/examples/VEB/hooks/useCustomize.d.ts +0 -3
  124. package/dist/stories/Bubble/examples/VEB/hooks/useRenderTooltip/index.d.ts +0 -4
  125. package/dist/stories/Bubble/examples/VEB/hooks/useRenderTooltip/styled.d.ts +0 -8
  126. package/dist/stories/Bubble/examples/VEB/styled.d.ts +0 -1
  127. package/dist/stories/Calendar/Calendar.stories.d.ts +0 -23
  128. package/dist/stories/Calendar/ColorScheme.stories.d.ts +0 -7
  129. package/dist/stories/Calendar/Examples.stories.d.ts +0 -11
  130. package/dist/stories/Calendar/Legend.stories.d.ts +0 -30
  131. package/dist/stories/Common/SwipeScroll/SwipeScroll.stories.d.ts +0 -13
  132. package/dist/stories/Common/SwipeScroll/hooks/useSwipe.d.ts +0 -1
  133. package/dist/stories/Line/Examples.stories.d.ts +0 -7
  134. package/dist/stories/Line/Line.stories.d.ts +0 -48
  135. package/dist/stories/Line/examples/Beeline.d.ts +0 -5
  136. package/dist/stories/Line/examples/GeoVeb.d.ts +0 -5
  137. package/dist/stories/Line/examples/GeoVebInterval/data.d.ts +0 -9
  138. package/dist/stories/Line/examples/GeoVebInterval/index.d.ts +0 -5
  139. package/dist/stories/Line/examples/GeoVebInterval/styled.d.ts +0 -4
  140. package/dist/stories/Line/examples/Msp.d.ts +0 -5
  141. package/dist/stories/Pie/ColorScheme.stories.d.ts +0 -7
  142. package/dist/stories/Pie/Examples.stories.d.ts +0 -7
  143. package/dist/stories/Pie/Pie.stories.d.ts +0 -47
  144. package/dist/stories/Radar/Chart.stories.d.ts +0 -38
  145. package/dist/stories/Radar/Github.stories.d.ts +0 -7
  146. package/dist/stories/Radar/Gradient.stories.d.ts +0 -7
  147. package/dist/stories/Radar/Veb.stories.d.ts +0 -7
  148. package/dist/stories/Sankey/Examples.stories.d.ts +0 -4
  149. package/dist/stories/Sankey/examples/RelatedIndustries/data.d.ts +0 -2
  150. package/dist/stories/Sankey/examples/RelatedIndustries/index.d.ts +0 -5
  151. package/dist/stories/__internal__/colors.d.ts +0 -40
  152. package/dist/stories/__internal__/components/BeelineLineChart/hooks/useCustomize.d.ts +0 -11
  153. package/dist/stories/__internal__/components/BeelineLineChart/hooks/useLineRenderTooltip/index.d.ts +0 -5
  154. package/dist/stories/__internal__/components/BeelineLineChart/hooks/useLineRenderTooltip/styled.d.ts +0 -5
  155. package/dist/stories/__internal__/components/BeelineLineChart/index.d.ts +0 -3
  156. package/dist/stories/__internal__/components/BeelineLineChart/styled.d.ts +0 -3
  157. package/dist/stories/__internal__/components/BeelineRangeLineChart/Range/index.d.ts +0 -7
  158. package/dist/stories/__internal__/components/BeelineRangeLineChart/Range/styled.d.ts +0 -3
  159. package/dist/stories/__internal__/components/BeelineRangeLineChart/hooks/useChange.d.ts +0 -8
  160. package/dist/stories/__internal__/components/BeelineRangeLineChart/index.d.ts +0 -2
  161. package/dist/stories/__internal__/components/BeelineRangeLineChart/styled.d.ts +0 -4
  162. package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/data.d.ts +0 -5
  163. package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/hooks/useRenderDataTable.d.ts +0 -2
  164. package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/index.d.ts +0 -2
  165. package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/styled.d.ts +0 -3
  166. package/dist/stories/__internal__/components/Divider.d.ts +0 -6
  167. package/dist/stories/__internal__/components/GeoVebBarCharts.d.ts +0 -2
  168. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/data.d.ts +0 -47
  169. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/hooks/useRenderTooltip.d.ts +0 -3
  170. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/hooks/useSimpleRenderTooltip.d.ts +0 -3
  171. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/index.d.ts +0 -4
  172. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/styled.d.ts +0 -4
  173. package/dist/stories/__internal__/components/GeoYearsBarChart/index.d.ts +0 -2
  174. package/dist/stories/__internal__/components/GeoYearsBarChart/styled.d.ts +0 -4
  175. package/dist/stories/__internal__/components/MixedTableChart/Chart/index.d.ts +0 -3
  176. package/dist/stories/__internal__/components/MixedTableChart/Chart/styled.d.ts +0 -2
  177. package/dist/stories/__internal__/components/MixedTableChart/index.d.ts +0 -3
  178. package/dist/stories/__internal__/components/MixedTableChart/styled.d.ts +0 -5
  179. package/dist/stories/__internal__/components/MixedTableChart/types.d.ts +0 -21
  180. package/dist/stories/__internal__/components/MspDashboardChart/hooks/useAnimation.d.ts +0 -5
  181. package/dist/stories/__internal__/components/MspDashboardChart/index.d.ts +0 -3
  182. package/dist/stories/__internal__/components/MspDashboardChart/styled.d.ts +0 -5
  183. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useAnimationAreas.d.ts +0 -6
  184. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useAnimationBars.d.ts +0 -5
  185. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useCustomize.d.ts +0 -4
  186. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useData.d.ts +0 -8
  187. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useMarshalledMap.d.ts +0 -1
  188. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useRenderTooltip.d.ts +0 -2
  189. package/dist/stories/__internal__/components/MspPromSupplyBarChart/index.d.ts +0 -9
  190. package/dist/stories/__internal__/components/MspPromSupplyBarChart/styled.d.ts +0 -22
  191. package/dist/stories/__internal__/components/SankeyTriChart/Groups/getCSSProperties.d.ts +0 -4
  192. package/dist/stories/__internal__/components/SankeyTriChart/Groups/helpers.d.ts +0 -1
  193. package/dist/stories/__internal__/components/SankeyTriChart/Groups/index.d.ts +0 -5
  194. package/dist/stories/__internal__/components/SankeyTriChart/Groups/styled.d.ts +0 -1
  195. package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/getCSSProperties.d.ts +0 -3
  196. package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/index.d.ts +0 -5
  197. package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/styled.d.ts +0 -8
  198. package/dist/stories/__internal__/components/SankeyTriChart/draw.d.ts +0 -2
  199. package/dist/stories/__internal__/components/SankeyTriChart/helpers.d.ts +0 -9
  200. package/dist/stories/__internal__/components/SankeyTriChart/index.d.ts +0 -10
  201. package/dist/stories/__internal__/components/SankeyTriChart/marshaling.d.ts +0 -6
  202. package/dist/stories/__internal__/components/SankeyTriChart/styled.d.ts +0 -1
  203. package/dist/stories/__internal__/components/SankeyTriChart/types.d.ts +0 -40
  204. package/dist/stories/__internal__/components/SberBarMixChart/colors.d.ts +0 -3
  205. package/dist/stories/__internal__/components/SberBarMixChart/data.d.ts +0 -8
  206. package/dist/stories/__internal__/components/SberBarMixChart/hooks/styled.d.ts +0 -3
  207. package/dist/stories/__internal__/components/SberBarMixChart/hooks/useRenderTooltip.d.ts +0 -2
  208. package/dist/stories/__internal__/components/SberBarMixChart/index.d.ts +0 -2
  209. package/dist/stories/__internal__/components/SberBarMixChart/styled.d.ts +0 -1
  210. package/dist/stories/__internal__/components/StatisticsBarCharts/NumbersStatistics.d.ts +0 -2
  211. package/dist/stories/__internal__/components/StatisticsBarCharts/StringsStatistics.d.ts +0 -2
  212. package/dist/stories/__internal__/components/StatisticsBarCharts/index.d.ts +0 -2
  213. package/dist/stories/__internal__/components/StatisticsBarCharts/styled.d.ts +0 -1
  214. package/dist/stories/__internal__/components/VebEstimationBarChart/data.d.ts +0 -38
  215. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useCustomize.d.ts +0 -5
  216. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useDrawBars.d.ts +0 -4
  217. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderLabel/index.d.ts +0 -9
  218. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderLabel/styled.d.ts +0 -1
  219. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderTooltip/index.d.ts +0 -8
  220. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderTooltip/styled.d.ts +0 -13
  221. package/dist/stories/__internal__/components/VebEstimationBarChart/index.d.ts +0 -3
  222. package/dist/stories/__internal__/components/VebEstimationBarChart/styled.d.ts +0 -2
  223. package/dist/stories/__internal__/components/VebFilterBarChart/index.d.ts +0 -2
  224. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderSum/index.d.ts +0 -3
  225. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderSum/styled.d.ts +0 -1
  226. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderTooltip/index.d.ts +0 -1
  227. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderTooltip/styled.d.ts +0 -5
  228. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/index.d.ts +0 -3
  229. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/styled.d.ts +0 -5
  230. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/types.d.ts +0 -11
  231. package/dist/stories/__internal__/curves.d.ts +0 -8
  232. package/dist/stories/__internal__/data/msp.d.ts +0 -14
  233. package/dist/stories/__internal__/data/mspDashboard.d.ts +0 -1
  234. package/dist/stories/__internal__/data/mspPromSupply.d.ts +0 -11
  235. package/dist/stories/__internal__/data/population.d.ts +0 -4
  236. package/dist/stories/__internal__/data/veb.d.ts +0 -31
  237. package/dist/stories/__internal__/helpers/Path.d.ts +0 -10
  238. package/dist/stories/__internal__/helpers/Vector.d.ts +0 -9
  239. package/dist/stories/__internal__/helpers/animation.d.ts +0 -15
  240. package/dist/stories/__internal__/helpers/hexToRGB.d.ts +0 -1
  241. package/dist/stories/__internal__/helpers/random.d.ts +0 -1
  242. package/dist/stories/__internal__/helpers/randomData.d.ts +0 -14
  243. package/dist/stories/__internal__/helpers/randomHorizontalBarData.d.ts +0 -5
  244. package/dist/stories/__internal__/helpers/randomIntervalData.d.ts +0 -11
  245. package/dist/stories/__internal__/helpers/randomLineData.d.ts +0 -8
  246. package/dist/stories/__internal__/helpers/randomText.d.ts +0 -1
  247. package/dist/stories/__internal__/helpers/roundedRect.d.ts +0 -10
  248. package/dist/stories/__internal__/helpers/shuffleArray.d.ts +0 -1
  249. package/dist/stories/__internal__/hooks/useBarData.d.ts +0 -10
  250. package/dist/stories/__internal__/hooks/useLegend.d.ts +0 -1
  251. package/dist/stories/__internal__/hooks/useMinMaxValue.d.ts +0 -4
  252. package/dist/stories/__internal__/interpolates.d.ts +0 -23
  253. package/dist/storybook-static/1.05dfd83c.iframe.bundle.d.ts +0 -0
  254. package/dist/storybook-static/189.8c077122866758d3cf20.manager.bundle.d.ts +0 -0
  255. package/dist/storybook-static/190.58050c9beb344d4cefd9.manager.bundle.d.ts +0 -2
  256. package/dist/storybook-static/191.b202c06c72968435b80b.manager.bundle.d.ts +0 -0
  257. package/dist/storybook-static/192.83987c5b15f8a80893c5.manager.bundle.d.ts +0 -0
  258. package/dist/storybook-static/193.8a12aa992b466e778018.manager.bundle.d.ts +0 -2
  259. package/dist/storybook-static/2.0231c7b6.iframe.bundle.d.ts +0 -0
  260. package/dist/storybook-static/6.6185fd0d.iframe.bundle.d.ts +0 -0
  261. package/dist/storybook-static/7.0ede09e9.iframe.bundle.d.ts +0 -0
  262. package/dist/storybook-static/8.6f0230ef.iframe.bundle.d.ts +0 -2
  263. package/dist/storybook-static/main.6b7543c14993fcfcab71.manager.bundle.d.ts +0 -2
  264. package/dist/storybook-static/main.724b5942.iframe.bundle.d.ts +0 -9
  265. package/dist/storybook-static/runtime~main.92273705.iframe.bundle.d.ts +0 -1
  266. package/dist/storybook-static/runtime~main.c89e55a461c11ef29193.manager.bundle.d.ts +0 -1
@@ -1,6 +1,6 @@
1
- export declare function animate({ duration, timing, draw, }: {
2
- duration: number;
3
- timing: (n: number) => number;
4
- draw: (progress: number, requestId: number) => void;
5
- }): void;
6
- export declare const easeOutQuad: (time: number) => number;
1
+ export declare function animate({ duration, timing, draw, }: {
2
+ duration: number;
3
+ timing: (n: number) => number;
4
+ draw: (progress: number, requestId: number) => void;
5
+ }): void;
6
+ export declare const easeOutQuad: (time: number) => number;
@@ -1,2 +1,2 @@
1
- import { SwipeScrollProps } from '../types';
2
- export declare const useSwipe: (node: HTMLElement | null, { width, duration, animationFunc, onSwipe }: SwipeScrollProps) => void;
1
+ import { SwipeScrollProps } from '../types';
2
+ export declare const useSwipe: (node: HTMLElement | null, { width, duration, animationFunc, onSwipe }: SwipeScrollProps) => void;
@@ -1,3 +1,3 @@
1
- import { FC } from "react";
2
- import { SwipeScrollProps } from './types';
3
- export declare const SwipeScroll: FC<SwipeScrollProps>;
1
+ import { FC } from 'react';
2
+ import { SwipeScrollProps } from './types';
3
+ export declare const SwipeScroll: FC<SwipeScrollProps>;
@@ -1 +1 @@
1
- export declare const SwipeScrollContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const SwipeScrollContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from "react";
2
- import * as d3 from "d3";
3
- export interface SwipeScrollProps extends PropsWithChildren {
4
- width: number;
5
- duration?: number;
6
- animationFunc?: (timing: number) => number;
7
- onSwipe?: (x: number, selection: d3.Selection<HTMLElement | null, unknown, null, undefined>) => void;
8
- }
1
+ import { PropsWithChildren } from 'react';
2
+ import * as d3 from "d3";
3
+ export interface SwipeScrollProps extends PropsWithChildren {
4
+ width: number;
5
+ duration?: number;
6
+ animationFunc?: (timing: number) => number;
7
+ onSwipe?: (x: number, selection: d3.Selection<HTMLElement | null, unknown, null, undefined>) => void;
8
+ }
@@ -1 +1 @@
1
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,7 +1,7 @@
1
- import { LabelContainerProps } from "./types";
2
- export declare const getTranslate: ({ anchor, index, translateX, translateY, }: LabelContainerProps) => string;
3
- export declare const Label: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const Name: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const DefaultBadge: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const MiddleBadge: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const BadgePrefix: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ import { LabelContainerProps } from './types';
2
+ export declare const getTranslate: ({ anchor, index, translateX, translateY, }: LabelContainerProps) => string;
3
+ export declare const Label: import('styled-components').StyledComponent<"div", any, {}, never>;
4
+ export declare const Name: import('styled-components').StyledComponent<"div", any, {}, never>;
5
+ export declare const DefaultBadge: import('styled-components').StyledComponent<"div", any, {}, never>;
6
+ export declare const MiddleBadge: import('styled-components').StyledComponent<"div", any, {}, never>;
7
+ export declare const BadgePrefix: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,6 @@
1
- export interface LabelContainerProps {
2
- anchor: 'start' | 'middle' | 'end';
3
- translateX: number;
4
- translateY: number;
5
- index: number;
6
- }
1
+ export interface LabelContainerProps {
2
+ anchor: 'start' | 'middle' | 'end';
3
+ translateX: number;
4
+ translateY: number;
5
+ index: number;
6
+ }
@@ -1,14 +1,14 @@
1
- export declare const TooltipFlex: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const LabelFlex: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const LabelFlexCenter: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const TooltipContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const TooltipGroupName: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const TooltipItem: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const ColFlex: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const ColorBox: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const ColorLine: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const Name: import("styled-components").StyledComponent<"div", any, {}, never>;
11
- export declare const Value: import("styled-components").StyledComponent<"div", any, {}, never>;
12
- export declare const Label: import("styled-components").StyledComponent<"div", any, {}, never>;
13
- export declare const LabelTop: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- export declare const LabelBottom: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const TooltipFlex: import('styled-components').StyledComponent<"div", any, {}, never>;
2
+ export declare const LabelFlex: import('styled-components').StyledComponent<"div", any, {}, never>;
3
+ export declare const LabelFlexCenter: import('styled-components').StyledComponent<"div", any, {}, never>;
4
+ export declare const TooltipContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
5
+ export declare const TooltipGroupName: import('styled-components').StyledComponent<"div", any, {}, never>;
6
+ export declare const TooltipItem: import('styled-components').StyledComponent<"div", any, {}, never>;
7
+ export declare const ColFlex: import('styled-components').StyledComponent<"div", any, {}, never>;
8
+ export declare const ColorBox: import('styled-components').StyledComponent<"div", any, {}, never>;
9
+ export declare const ColorLine: import('styled-components').StyledComponent<"div", any, {}, never>;
10
+ export declare const Name: import('styled-components').StyledComponent<"div", any, {}, never>;
11
+ export declare const Value: import('styled-components').StyledComponent<"div", any, {}, never>;
12
+ export declare const Label: import('styled-components').StyledComponent<"div", any, {}, never>;
13
+ export declare const LabelTop: import('styled-components').StyledComponent<"div", any, {}, never>;
14
+ export declare const LabelBottom: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1 +1 @@
1
- export declare type Interpolator = (value: number) => string;
1
+ export type Interpolator = (value: number) => string;
@@ -1,6 +1,6 @@
1
- export declare type Margin = {
2
- top: number;
3
- right: number;
4
- bottom: number;
5
- left: number;
6
- };
1
+ export type Margin = {
2
+ top: number;
3
+ right: number;
4
+ bottom: number;
5
+ left: number;
6
+ };
@@ -1,2 +1,2 @@
1
- import * as d3 from 'd3';
2
- export declare const appendSvg: (node: HTMLElement, width: number, height: number) => d3.Selection<SVGSVGElement, unknown, null, undefined>;
1
+ import * as d3 from 'd3';
2
+ export declare const appendSvg: (node: HTMLElement, width: number, height: number) => d3.Selection<SVGSVGElement, unknown, null, undefined>;
@@ -1,2 +1,2 @@
1
- export declare function none(): void;
2
- export declare function isVoid(value: any): boolean;
1
+ export declare function none(): void;
2
+ export declare function isVoid(value: any): boolean;
@@ -1,2 +1,2 @@
1
- import * as d3 from 'd3';
2
- export declare function computeDimensions(selection: d3.Selection<any, any, any, any>): SVGRect | DOMRect;
1
+ import * as d3 from 'd3';
2
+ export declare function computeDimensions(selection: d3.Selection<any, any, any, any>): SVGRect | DOMRect;
@@ -1,19 +1,19 @@
1
- import * as d3 from 'd3';
2
- import { GetLegendProps } from './types';
3
- export declare const legendClassNames: {
4
- legendContainer: string;
5
- legendTitle: string;
6
- legendTick: string;
7
- legendTickLine: string;
8
- legendTickText: string;
9
- };
10
- export declare const legendDefaultParams: {
11
- tickSize: number;
12
- height: number;
13
- width: number;
14
- marginTop: number;
15
- marginBottom: number;
16
- ticksDivier: number;
17
- titleMarginBottom: number;
18
- };
19
- export declare const getLegend: ({ color, title, tickSize, width, height, marginTop, marginRight, marginBottom, marginLeft, ticks, tickFormat, tickValues, titleMarginBottom, }: GetLegendProps) => d3.Selection<SVGSVGElement, undefined, null, undefined>;
1
+ import { GetLegendProps } from './types';
2
+ import * as d3 from 'd3';
3
+ export declare const legendClassNames: {
4
+ legendContainer: string;
5
+ legendTitle: string;
6
+ legendTick: string;
7
+ legendTickLine: string;
8
+ legendTickText: string;
9
+ };
10
+ export declare const legendDefaultParams: {
11
+ tickSize: number;
12
+ height: number;
13
+ width: number;
14
+ marginTop: number;
15
+ marginBottom: number;
16
+ ticksDivier: number;
17
+ titleMarginBottom: number;
18
+ };
19
+ export declare const getLegend: ({ color, title, tickSize, width, height, marginTop, marginRight, marginBottom, marginLeft, ticks, tickFormat, tickValues, titleMarginBottom, }: GetLegendProps) => d3.Selection<SVGSVGElement, undefined, null, undefined>;
@@ -1,15 +1,15 @@
1
- export declare type GetLegendProps = {
2
- color?: any;
3
- title?: string;
4
- width?: number;
5
- height?: number;
6
- tickSize?: number;
7
- marginTop?: number;
8
- marginLeft?: number;
9
- marginBottom?: number;
10
- marginRight?: number;
11
- ticks?: number;
12
- tickFormat?: ((value: number, index: number, texts: SVGTextElement) => void) | string;
13
- titleMarginBottom?: number;
14
- tickValues?: (number | undefined)[];
15
- };
1
+ export type GetLegendProps = {
2
+ color?: any;
3
+ title?: string;
4
+ width?: number;
5
+ height?: number;
6
+ tickSize?: number;
7
+ marginTop?: number;
8
+ marginLeft?: number;
9
+ marginBottom?: number;
10
+ marginRight?: number;
11
+ ticks?: number;
12
+ tickFormat?: ((value: number, index: number, texts: SVGTextElement) => void) | string;
13
+ titleMarginBottom?: number;
14
+ tickValues?: (number | undefined)[];
15
+ };
@@ -1 +1 @@
1
- export declare function getTextWidth(text: string | number, font?: string): number;
1
+ export declare function getTextWidth(text: string | number, font?: string): number;
@@ -1 +1 @@
1
- export * from './appendSvg';
1
+ export * from './appendSvg';
@@ -1,2 +1,2 @@
1
- export declare function radiansToDegrees(radians: number): number;
2
- export declare function degreesToRadians(degrees: number): number;
1
+ export declare function radiansToDegrees(radians: number): number;
2
+ export declare function degreesToRadians(degrees: number): number;
@@ -1,2 +1,2 @@
1
- import { LineChartData } from '../charts/LineChart/types';
2
- export declare const stackedData: (data: LineChartData[]) => LineChartData[];
1
+ import { LineChartData } from '../charts/LineChart/types';
2
+ export declare const stackedData: (data: LineChartData[]) => LineChartData[];
@@ -1,2 +1,2 @@
1
- import * as d3 from 'd3';
2
- export declare const textAlignCenter: (texts: d3.Selection<SVGTextElement, any, any, any>) => void;
1
+ import * as d3 from 'd3';
2
+ export declare const textAlignCenter: (texts: d3.Selection<SVGTextElement, any, any, any>) => void;
@@ -1 +1 @@
1
- export declare function throttle(fn: Function, wait: number): (...args: any) => void;
1
+ export declare function throttle(fn: Function, wait: number): (...args: any) => void;
@@ -1,2 +1,2 @@
1
- export * from './useNode';
2
- export * from './useResize';
1
+ export * from './useNode';
2
+ export * from './useResize';
@@ -1,2 +1,2 @@
1
- import { PropsWithRef } from "react";
2
- export declare function useNode(): [PropsWithRef<any>, HTMLElement | null];
1
+ import { PropsWithRef } from 'react';
2
+ export declare function useNode(): [PropsWithRef<any>, HTMLElement | null];
@@ -1 +1 @@
1
- export declare const useResize: (width?: number, callback?: (...args: any) => any, delay?: number) => void;
1
+ export declare const useResize: (width?: number, callback?: (...args: any) => any, delay?: number) => void;
package/dist/index.d.ts CHANGED
@@ -1,26 +1,26 @@
1
- export { Wrapper as ChartWrapper } from "./common/components/Wrapper";
2
- export * from "./hooks";
3
- export * from "./helpers";
4
- export { SwipeScroll } from "./common/components/SwipeScroll";
5
- export * from "./common/components/SwipeScroll/types";
6
- export { RadarChart } from "./charts/RadarChart";
7
- export { radarChartclassNames } from "./charts/RadarChart/styled";
8
- export * from "./charts/RadarChart/types";
9
- export { PieChart } from "./charts/PieChart";
10
- export { pieChartclassNames } from "./charts/PieChart/styled";
11
- export * from "./charts/PieChart/types";
12
- export { CalendarChart } from "./charts/CalendarChart";
13
- export { calendarChartClassNames } from "./charts/CalendarChart/styled";
14
- export * from "./charts/CalendarChart/types";
15
- export { LineChart } from "./charts/LineChart";
16
- export { lineChartClassNames } from "./charts/LineChart/styled";
17
- export * from "./charts/LineChart/types";
18
- export { BarChart } from "./charts/BarChart";
19
- export { barChartClassNames } from "./charts/BarChart/styled";
20
- export * from "./charts/BarChart/types";
21
- export { HorizontalBarChart } from "./charts/HorizontalBarChart";
22
- export { horizontalBarChartClassNames } from "./charts/HorizontalBarChart/styled";
23
- export * from "./charts/HorizontalBarChart/types";
24
- export { BubbleChart } from "./charts/BubbleChart";
25
- export { bubbleChartClassNames } from "./charts/BubbleChart/styled";
26
- export * from "./charts/BubbleChart/types";
1
+ export { Wrapper as ChartWrapper } from './common/components/Wrapper';
2
+ export * from './hooks';
3
+ export * from './helpers';
4
+ export { SwipeScroll } from './common/components/SwipeScroll';
5
+ export * from './common/components/SwipeScroll/types';
6
+ export { RadarChart } from './charts/RadarChart';
7
+ export { radarChartclassNames } from './charts/RadarChart/styled';
8
+ export * from './charts/RadarChart/types';
9
+ export { PieChart } from './charts/PieChart';
10
+ export { pieChartclassNames } from './charts/PieChart/styled';
11
+ export * from './charts/PieChart/types';
12
+ export { CalendarChart } from './charts/CalendarChart';
13
+ export { calendarChartClassNames } from './charts/CalendarChart/styled';
14
+ export * from './charts/CalendarChart/types';
15
+ export { LineChart } from './charts/LineChart';
16
+ export { lineChartClassNames } from './charts/LineChart/styled';
17
+ export * from './charts/LineChart/types';
18
+ export { BarChart } from './charts/BarChart';
19
+ export { barChartClassNames } from './charts/BarChart/styled';
20
+ export * from './charts/BarChart/types';
21
+ export { HorizontalBarChart } from './charts/HorizontalBarChart';
22
+ export { horizontalBarChartClassNames } from './charts/HorizontalBarChart/styled';
23
+ export * from './charts/HorizontalBarChart/types';
24
+ export { BubbleChart } from './charts/BubbleChart';
25
+ export { bubbleChartClassNames } from './charts/BubbleChart/styled';
26
+ export * from './charts/BubbleChart/types';