@gravity-ui/charts 1.42.1 → 1.42.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 (241) hide show
  1. package/dist/cjs/components/AxisX/AxisX.js +1 -1
  2. package/dist/cjs/components/AxisX/prepare-axis-data.js +2 -2
  3. package/dist/cjs/components/AxisY/AxisY.js +1 -1
  4. package/dist/cjs/components/AxisY/prepare-axis-data.js +1 -1
  5. package/dist/cjs/components/AxisY/prepare-axis-title.js +1 -1
  6. package/dist/cjs/components/AxisY/utils.js +1 -1
  7. package/dist/cjs/components/ChartInner/index.js +2 -2
  8. package/dist/cjs/components/ChartInner/useChartInnerHandlers.d.ts +1 -1
  9. package/dist/cjs/components/ChartInner/useChartInnerHandlers.js +4 -4
  10. package/dist/cjs/components/ChartInner/useChartInnerProps.d.ts +1 -1
  11. package/dist/cjs/components/ChartInner/useChartInnerProps.js +4 -4
  12. package/dist/cjs/components/ChartInner/useChartInnerState.js +1 -1
  13. package/dist/cjs/components/ChartInner/useDefaultState.d.ts +1 -1
  14. package/dist/cjs/components/ChartInner/useDefaultState.js +4 -4
  15. package/dist/cjs/components/ChartInner/utils/axis.d.ts +2 -2
  16. package/dist/cjs/components/ChartInner/utils/axis.js +1 -1
  17. package/dist/cjs/components/ChartInner/utils/normalized-original-data.js +1 -1
  18. package/dist/cjs/components/ChartInner/utils/title.js +1 -1
  19. package/dist/cjs/components/ChartInner/utils/tooltip.js +1 -1
  20. package/dist/cjs/components/ChartInner/utils/zoom.d.ts +1 -1
  21. package/dist/cjs/components/ChartInner/utils/zoom.js +1 -1
  22. package/dist/cjs/components/Legend/index.js +14 -5
  23. package/dist/cjs/components/PlotTitle/index.d.ts +1 -1
  24. package/dist/cjs/components/RangeSlider/index.js +1 -1
  25. package/dist/cjs/components/Tooltip/DefaultTooltipContent/Row.js +1 -1
  26. package/dist/cjs/components/Tooltip/DefaultTooltipContent/RowWithAggregation.js +1 -1
  27. package/dist/cjs/components/Tooltip/DefaultTooltipContent/index.js +2 -2
  28. package/dist/cjs/components/Tooltip/DefaultTooltipContent/utils.js +3 -3
  29. package/dist/cjs/components/index.js +3 -3
  30. package/dist/cjs/components/utils/axis-title.js +1 -1
  31. package/dist/cjs/components/utils/index.d.ts +1 -1
  32. package/dist/cjs/components/utils/index.js +1 -1
  33. package/dist/cjs/core/axes/x-axis.js +1 -1
  34. package/dist/cjs/core/axes/y-axis.js +1 -1
  35. package/dist/cjs/core/layout/split.js +1 -1
  36. package/dist/cjs/core/scales/utils.d.ts +1 -1
  37. package/dist/cjs/core/scales/utils.js +1 -1
  38. package/dist/cjs/core/scales/x-scale.js +1 -1
  39. package/dist/cjs/core/scales/y-scale.js +1 -1
  40. package/dist/cjs/core/series/prepare-area.js +1 -1
  41. package/dist/cjs/core/series/prepare-bar-x.js +1 -1
  42. package/dist/cjs/core/series/prepare-bar-y.js +1 -1
  43. package/dist/cjs/core/series/prepare-funnel.js +1 -1
  44. package/dist/cjs/core/series/prepare-heatmap.js +1 -1
  45. package/dist/cjs/core/series/prepare-legend.js +1 -1
  46. package/dist/cjs/core/series/prepare-line.js +1 -1
  47. package/dist/cjs/core/series/prepare-pie.js +1 -1
  48. package/dist/cjs/core/series/prepare-radar.js +1 -1
  49. package/dist/cjs/core/series/prepare-sankey.js +1 -1
  50. package/dist/cjs/core/series/prepare-scatter.js +1 -1
  51. package/dist/cjs/core/series/prepare-treemap.js +1 -1
  52. package/dist/cjs/core/series/prepare-waterfall.js +1 -1
  53. package/dist/cjs/core/series/utils.js +1 -1
  54. package/dist/cjs/core/utils/series/sorting.js +1 -1
  55. package/dist/cjs/hooks/index.d.ts +5 -5
  56. package/dist/cjs/hooks/index.js +5 -5
  57. package/dist/cjs/hooks/useAxis/index.d.ts +4 -4
  58. package/dist/cjs/hooks/useAxis/index.js +3 -3
  59. package/dist/cjs/hooks/useAxis/types.d.ts +1 -1
  60. package/dist/cjs/hooks/useAxis/types.js +1 -1
  61. package/dist/cjs/hooks/useAxisScales/index.d.ts +3 -3
  62. package/dist/cjs/hooks/useAxisScales/index.js +6 -6
  63. package/dist/cjs/hooks/useBrush/types.d.ts +1 -1
  64. package/dist/cjs/hooks/useCrosshair/index.js +1 -1
  65. package/dist/cjs/hooks/useCrosshair/useCrosshairHover.js +1 -1
  66. package/dist/cjs/hooks/useRangeSlider/index.d.ts +1 -1
  67. package/dist/cjs/hooks/useRangeSlider/index.js +2 -2
  68. package/dist/cjs/hooks/useRangeSlider/types.d.ts +1 -1
  69. package/dist/cjs/hooks/useRangeSlider/utils.d.ts +1 -1
  70. package/dist/cjs/hooks/useRangeSlider/utils.js +1 -1
  71. package/dist/cjs/hooks/useSeries/index.d.ts +1 -1
  72. package/dist/cjs/hooks/useSeries/index.js +2 -2
  73. package/dist/cjs/hooks/useSeries/types.d.ts +1 -1
  74. package/dist/cjs/hooks/useSeries/types.js +1 -1
  75. package/dist/cjs/hooks/useSeries/utils.d.ts +1 -1
  76. package/dist/cjs/hooks/useSeries/utils.js +1 -1
  77. package/dist/cjs/hooks/useShapes/area/index.js +1 -1
  78. package/dist/cjs/hooks/useShapes/area/prepare-data.d.ts +2 -2
  79. package/dist/cjs/hooks/useShapes/area/prepare-data.js +2 -2
  80. package/dist/cjs/hooks/useShapes/bar-x/index.js +1 -1
  81. package/dist/cjs/hooks/useShapes/bar-x/prepare-data.d.ts +2 -2
  82. package/dist/cjs/hooks/useShapes/bar-x/prepare-data.js +2 -2
  83. package/dist/cjs/hooks/useShapes/bar-y/prepare-data.d.ts +1 -1
  84. package/dist/cjs/hooks/useShapes/bar-y/prepare-data.js +2 -2
  85. package/dist/cjs/hooks/useShapes/funnel/index.js +1 -1
  86. package/dist/cjs/hooks/useShapes/funnel/prepare-data.js +1 -1
  87. package/dist/cjs/hooks/useShapes/heatmap/prepare-data.d.ts +1 -1
  88. package/dist/cjs/hooks/useShapes/heatmap/prepare-data.js +1 -1
  89. package/dist/cjs/hooks/useShapes/index.d.ts +3 -3
  90. package/dist/cjs/hooks/useShapes/index.js +2 -2
  91. package/dist/cjs/hooks/useShapes/line/index.js +1 -1
  92. package/dist/cjs/hooks/useShapes/line/prepare-data.d.ts +2 -2
  93. package/dist/cjs/hooks/useShapes/line/prepare-data.js +2 -2
  94. package/dist/cjs/hooks/useShapes/line/types.d.ts +1 -1
  95. package/dist/cjs/hooks/useShapes/marker.d.ts +1 -1
  96. package/dist/cjs/hooks/useShapes/marker.js +2 -2
  97. package/dist/cjs/hooks/useShapes/pie/index.js +1 -1
  98. package/dist/cjs/hooks/useShapes/pie/prepare-data.js +3 -3
  99. package/dist/cjs/hooks/useShapes/radar/prepare-data.js +2 -2
  100. package/dist/cjs/hooks/useShapes/sankey/prepare-data.js +1 -1
  101. package/dist/cjs/hooks/useShapes/scatter/prepare-data.d.ts +1 -1
  102. package/dist/cjs/hooks/useShapes/scatter/prepare-data.js +1 -1
  103. package/dist/cjs/hooks/useShapes/treemap/prepare-data.js +3 -3
  104. package/dist/cjs/hooks/useShapes/utils.d.ts +1 -1
  105. package/dist/cjs/hooks/useShapes/utils.js +1 -1
  106. package/dist/cjs/hooks/useShapes/waterfall/index.js +2 -2
  107. package/dist/cjs/hooks/useShapes/waterfall/prepare-data.d.ts +1 -1
  108. package/dist/cjs/hooks/useShapes/waterfall/prepare-data.js +2 -2
  109. package/dist/cjs/hooks/useZoom/index.d.ts +2 -2
  110. package/dist/cjs/hooks/useZoom/utils.d.ts +2 -2
  111. package/dist/cjs/hooks/useZoom/utils.js +1 -1
  112. package/dist/cjs/hooks/utils/bar-y.d.ts +1 -1
  113. package/dist/cjs/hooks/utils/bar-y.js +1 -1
  114. package/dist/cjs/hooks/utils/get-band-size.js +1 -1
  115. package/dist/cjs/index.d.ts +2 -2
  116. package/dist/cjs/index.js +2 -2
  117. package/dist/cjs/types/chart-ui.d.ts +1 -1
  118. package/dist/cjs/types/index.d.ts +1 -1
  119. package/dist/cjs/types/index.js +1 -1
  120. package/dist/cjs/utils/chart-ui/pie-center-text.js +2 -2
  121. package/dist/esm/components/AxisX/AxisX.js +1 -1
  122. package/dist/esm/components/AxisX/prepare-axis-data.js +2 -2
  123. package/dist/esm/components/AxisY/AxisY.js +1 -1
  124. package/dist/esm/components/AxisY/prepare-axis-data.js +1 -1
  125. package/dist/esm/components/AxisY/prepare-axis-title.js +1 -1
  126. package/dist/esm/components/AxisY/utils.js +1 -1
  127. package/dist/esm/components/ChartInner/index.js +2 -2
  128. package/dist/esm/components/ChartInner/useChartInnerHandlers.d.ts +1 -1
  129. package/dist/esm/components/ChartInner/useChartInnerHandlers.js +4 -4
  130. package/dist/esm/components/ChartInner/useChartInnerProps.d.ts +1 -1
  131. package/dist/esm/components/ChartInner/useChartInnerProps.js +4 -4
  132. package/dist/esm/components/ChartInner/useChartInnerState.js +1 -1
  133. package/dist/esm/components/ChartInner/useDefaultState.d.ts +1 -1
  134. package/dist/esm/components/ChartInner/useDefaultState.js +4 -4
  135. package/dist/esm/components/ChartInner/utils/axis.d.ts +2 -2
  136. package/dist/esm/components/ChartInner/utils/axis.js +1 -1
  137. package/dist/esm/components/ChartInner/utils/normalized-original-data.js +1 -1
  138. package/dist/esm/components/ChartInner/utils/title.js +1 -1
  139. package/dist/esm/components/ChartInner/utils/tooltip.js +1 -1
  140. package/dist/esm/components/ChartInner/utils/zoom.d.ts +1 -1
  141. package/dist/esm/components/ChartInner/utils/zoom.js +1 -1
  142. package/dist/esm/components/Legend/index.js +14 -5
  143. package/dist/esm/components/PlotTitle/index.d.ts +1 -1
  144. package/dist/esm/components/RangeSlider/index.js +1 -1
  145. package/dist/esm/components/Tooltip/DefaultTooltipContent/Row.js +1 -1
  146. package/dist/esm/components/Tooltip/DefaultTooltipContent/RowWithAggregation.js +1 -1
  147. package/dist/esm/components/Tooltip/DefaultTooltipContent/index.js +2 -2
  148. package/dist/esm/components/Tooltip/DefaultTooltipContent/utils.js +3 -3
  149. package/dist/esm/components/index.js +3 -3
  150. package/dist/esm/components/utils/axis-title.js +1 -1
  151. package/dist/esm/components/utils/index.d.ts +1 -1
  152. package/dist/esm/components/utils/index.js +1 -1
  153. package/dist/esm/core/axes/x-axis.js +1 -1
  154. package/dist/esm/core/axes/y-axis.js +1 -1
  155. package/dist/esm/core/layout/split.js +1 -1
  156. package/dist/esm/core/scales/utils.d.ts +1 -1
  157. package/dist/esm/core/scales/utils.js +1 -1
  158. package/dist/esm/core/scales/x-scale.js +1 -1
  159. package/dist/esm/core/scales/y-scale.js +1 -1
  160. package/dist/esm/core/series/prepare-area.js +1 -1
  161. package/dist/esm/core/series/prepare-bar-x.js +1 -1
  162. package/dist/esm/core/series/prepare-bar-y.js +1 -1
  163. package/dist/esm/core/series/prepare-funnel.js +1 -1
  164. package/dist/esm/core/series/prepare-heatmap.js +1 -1
  165. package/dist/esm/core/series/prepare-legend.js +1 -1
  166. package/dist/esm/core/series/prepare-line.js +1 -1
  167. package/dist/esm/core/series/prepare-pie.js +1 -1
  168. package/dist/esm/core/series/prepare-radar.js +1 -1
  169. package/dist/esm/core/series/prepare-sankey.js +1 -1
  170. package/dist/esm/core/series/prepare-scatter.js +1 -1
  171. package/dist/esm/core/series/prepare-treemap.js +1 -1
  172. package/dist/esm/core/series/prepare-waterfall.js +1 -1
  173. package/dist/esm/core/series/utils.js +1 -1
  174. package/dist/esm/core/utils/series/sorting.js +1 -1
  175. package/dist/esm/hooks/index.d.ts +5 -5
  176. package/dist/esm/hooks/index.js +5 -5
  177. package/dist/esm/hooks/useAxis/index.d.ts +4 -4
  178. package/dist/esm/hooks/useAxis/index.js +3 -3
  179. package/dist/esm/hooks/useAxis/types.d.ts +1 -1
  180. package/dist/esm/hooks/useAxis/types.js +1 -1
  181. package/dist/esm/hooks/useAxisScales/index.d.ts +3 -3
  182. package/dist/esm/hooks/useAxisScales/index.js +6 -6
  183. package/dist/esm/hooks/useBrush/types.d.ts +1 -1
  184. package/dist/esm/hooks/useCrosshair/index.js +1 -1
  185. package/dist/esm/hooks/useCrosshair/useCrosshairHover.js +1 -1
  186. package/dist/esm/hooks/useRangeSlider/index.d.ts +1 -1
  187. package/dist/esm/hooks/useRangeSlider/index.js +2 -2
  188. package/dist/esm/hooks/useRangeSlider/types.d.ts +1 -1
  189. package/dist/esm/hooks/useRangeSlider/utils.d.ts +1 -1
  190. package/dist/esm/hooks/useRangeSlider/utils.js +1 -1
  191. package/dist/esm/hooks/useSeries/index.d.ts +1 -1
  192. package/dist/esm/hooks/useSeries/index.js +2 -2
  193. package/dist/esm/hooks/useSeries/types.d.ts +1 -1
  194. package/dist/esm/hooks/useSeries/types.js +1 -1
  195. package/dist/esm/hooks/useSeries/utils.d.ts +1 -1
  196. package/dist/esm/hooks/useSeries/utils.js +1 -1
  197. package/dist/esm/hooks/useShapes/area/index.js +1 -1
  198. package/dist/esm/hooks/useShapes/area/prepare-data.d.ts +2 -2
  199. package/dist/esm/hooks/useShapes/area/prepare-data.js +2 -2
  200. package/dist/esm/hooks/useShapes/bar-x/index.js +1 -1
  201. package/dist/esm/hooks/useShapes/bar-x/prepare-data.d.ts +2 -2
  202. package/dist/esm/hooks/useShapes/bar-x/prepare-data.js +2 -2
  203. package/dist/esm/hooks/useShapes/bar-y/prepare-data.d.ts +1 -1
  204. package/dist/esm/hooks/useShapes/bar-y/prepare-data.js +2 -2
  205. package/dist/esm/hooks/useShapes/funnel/index.js +1 -1
  206. package/dist/esm/hooks/useShapes/funnel/prepare-data.js +1 -1
  207. package/dist/esm/hooks/useShapes/heatmap/prepare-data.d.ts +1 -1
  208. package/dist/esm/hooks/useShapes/heatmap/prepare-data.js +1 -1
  209. package/dist/esm/hooks/useShapes/index.d.ts +3 -3
  210. package/dist/esm/hooks/useShapes/index.js +2 -2
  211. package/dist/esm/hooks/useShapes/line/index.js +1 -1
  212. package/dist/esm/hooks/useShapes/line/prepare-data.d.ts +2 -2
  213. package/dist/esm/hooks/useShapes/line/prepare-data.js +2 -2
  214. package/dist/esm/hooks/useShapes/line/types.d.ts +1 -1
  215. package/dist/esm/hooks/useShapes/marker.d.ts +1 -1
  216. package/dist/esm/hooks/useShapes/marker.js +2 -2
  217. package/dist/esm/hooks/useShapes/pie/index.js +1 -1
  218. package/dist/esm/hooks/useShapes/pie/prepare-data.js +3 -3
  219. package/dist/esm/hooks/useShapes/radar/prepare-data.js +2 -2
  220. package/dist/esm/hooks/useShapes/sankey/prepare-data.js +1 -1
  221. package/dist/esm/hooks/useShapes/scatter/prepare-data.d.ts +1 -1
  222. package/dist/esm/hooks/useShapes/scatter/prepare-data.js +1 -1
  223. package/dist/esm/hooks/useShapes/treemap/prepare-data.js +3 -3
  224. package/dist/esm/hooks/useShapes/utils.d.ts +1 -1
  225. package/dist/esm/hooks/useShapes/utils.js +1 -1
  226. package/dist/esm/hooks/useShapes/waterfall/index.js +2 -2
  227. package/dist/esm/hooks/useShapes/waterfall/prepare-data.d.ts +1 -1
  228. package/dist/esm/hooks/useShapes/waterfall/prepare-data.js +2 -2
  229. package/dist/esm/hooks/useZoom/index.d.ts +2 -2
  230. package/dist/esm/hooks/useZoom/utils.d.ts +2 -2
  231. package/dist/esm/hooks/useZoom/utils.js +1 -1
  232. package/dist/esm/hooks/utils/bar-y.d.ts +1 -1
  233. package/dist/esm/hooks/utils/bar-y.js +1 -1
  234. package/dist/esm/hooks/utils/get-band-size.js +1 -1
  235. package/dist/esm/index.d.ts +2 -2
  236. package/dist/esm/index.js +2 -2
  237. package/dist/esm/types/chart-ui.d.ts +1 -1
  238. package/dist/esm/types/index.d.ts +1 -1
  239. package/dist/esm/types/index.js +1 -1
  240. package/dist/esm/utils/chart-ui/pie-center-text.js +2 -2
  241. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
- import type { AxesState } from '~core/axes/types';
2
- import type { PreparedLegend, PreparedSeries, PreparedSeriesOptions } from '~core/series/types';
1
+ import type { AxesState } from '../../core/axes/types';
2
+ import type { PreparedLegend, PreparedSeries, PreparedSeriesOptions } from '../../core/series/types';
3
3
  import type { ChartXAxis, ChartYAxis, LegendConfig } from '../../types';
4
4
  import type { PreparedChart } from '../types';
5
5
  interface UseAxesProps {
@@ -15,8 +15,8 @@ interface UseAxesProps {
15
15
  yAxis?: ChartYAxis[];
16
16
  }
17
17
  export declare function getAxes(props: UseAxesProps): Promise<{
18
- xAxis: import("~core/axes/types").PreparedXAxis | null;
19
- yAxis: import("~core/axes/types").PreparedYAxis[];
18
+ xAxis: import("../../core/axes/types").PreparedXAxis | null;
19
+ yAxis: import("../../core/axes/types").PreparedYAxis[];
20
20
  }>;
21
21
  export declare function useAxis(props: UseAxesProps): AxesState;
22
22
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import isEqual from 'lodash/isEqual';
3
- import { getPreparedXAxis } from '~core/axes/x-axis';
4
- import { getPreparedYAxis } from '~core/axes/y-axis';
5
- import { getWidthOccupiedByYAxis } from '~core/utils';
3
+ import { getPreparedXAxis } from '../../core/axes/x-axis';
4
+ import { getPreparedYAxis } from '../../core/axes/y-axis';
5
+ import { getWidthOccupiedByYAxis } from '../../core/utils';
6
6
  export async function getAxes(props) {
7
7
  var _a, _b;
8
8
  const { boundsHeight, height, preparedChart, legendConfig, preparedLegend, preparedSeries, width, xAxis, yAxis, } = props;
@@ -1 +1 @@
1
- export * from '~core/axes/types';
1
+ export * from '../../core/axes/types';
@@ -1 +1 @@
1
- export * from '~core/axes/types';
1
+ export * from '../../core/axes/types';
@@ -1,7 +1,7 @@
1
- import type { ChartScale } from '~core/scales/types';
1
+ import type { ChartScale } from '../../core/scales/types';
2
2
  import type { PreparedAxis, PreparedSeries, PreparedSplit, PreparedYAxis, RangeSliderState, ZoomState } from '../../hooks';
3
- export { createXScale } from '~core/scales/x-scale';
4
- export { createYScale } from '~core/scales/y-scale';
3
+ export { createXScale } from '../../core/scales/x-scale';
4
+ export { createYScale } from '../../core/scales/y-scale';
5
5
  type Args = {
6
6
  boundsWidth: number;
7
7
  boundsHeight: number;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import get from 'lodash/get';
3
- import { clusterYAxes } from '~core/scales/utils';
4
- import { createXScale } from '~core/scales/x-scale';
5
- import { createYScale } from '~core/scales/y-scale';
6
- import { getAxisHeight, getOnlyVisibleSeries, isAxisRelatedSeries } from '~core/utils';
3
+ import { clusterYAxes } from '../../core/scales/utils';
4
+ import { createXScale } from '../../core/scales/x-scale';
5
+ import { createYScale } from '../../core/scales/y-scale';
6
+ import { getAxisHeight, getOnlyVisibleSeries, isAxisRelatedSeries } from '../../core/utils';
7
7
  import { getTickValues } from '../../components/AxisY/utils';
8
- export { createXScale } from '~core/scales/x-scale';
9
- export { createYScale } from '~core/scales/y-scale';
8
+ export { createXScale } from '../../core/scales/x-scale';
9
+ export { createYScale } from '../../core/scales/y-scale';
10
10
  export const createScales = (args) => {
11
11
  const { boundsWidth, boundsHeight, isRangeSlider, rangeSliderState, series, split, xAxis, yAxis, zoomState, } = args;
12
12
  // For range slider: always use all series regardless of visibility so the slider domain
@@ -1,5 +1,5 @@
1
1
  import type { BrushBehavior } from 'd3-brush';
2
- import type { ZoomType } from '~core/constants';
2
+ import type { ZoomType } from '../../core/constants';
3
3
  import type { ChartBrush, DeepRequired } from '../../types';
4
4
  export type BrushSelection = [number, number] | [[number, number], [number, number]];
5
5
  export interface BrushArea {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { select } from 'd3-selection';
3
3
  import { line } from 'd3-shape';
4
- import { getAxisPlotsPosition, getLineDashArray } from '~core/utils';
4
+ import { getAxisPlotsPosition, getLineDashArray } from '../../core/utils';
5
5
  import { getXValue, getYValue } from '../useShapes/utils';
6
6
  import { useCrosshairHover } from './useCrosshairHover';
7
7
  export const useCrosshair = (props) => {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { EventType } from '~core/utils';
2
+ import { EventType } from '../../core/utils';
3
3
  export const useCrosshairHover = ({ dispatcher, enabled }) => {
4
4
  const [{ hovered, pointerPosition }, setCrosshairState] = React.useState({});
5
5
  React.useEffect(() => {
@@ -1,4 +1,4 @@
1
- import type { PreparedSplit } from '~core/layout/split-types';
1
+ import type { PreparedSplit } from '../../core/layout/split-types';
2
2
  import type { PreparedRangeSliderProps, UseRangeSliderProps } from './types';
3
3
  export declare const EMPTY_PREPARED_SPLIT: PreparedSplit;
4
4
  export declare function useRangeSlider(props: UseRangeSliderProps): PreparedRangeSliderProps;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { pointer } from 'd3-selection';
3
3
  import { isEqual } from 'lodash';
4
- import { SERIES_TYPE } from '~core/constants';
5
- import { isBandScale } from '~core/utils';
4
+ import { SERIES_TYPE } from '../../core/constants';
5
+ import { isBandScale } from '../../core/utils';
6
6
  import { useAxis } from '../useAxis';
7
7
  import { useAxisScales } from '../useAxisScales';
8
8
  import { getNormalizedSelection, isOneDimensionalSelection } from '../useBrush/utils';
@@ -1,4 +1,4 @@
1
- import type { ChartScale } from '~core/scales/types';
1
+ import type { ChartScale } from '../../core/scales/types';
2
2
  import type { ChartXAxis, ChartYAxis, LegendConfig } from '../../types';
3
3
  import type { PreparedChart } from '../types';
4
4
  import type { PreparedRangeSlider, PreparedXAxis, PreparedYAxis } from '../useAxis/types';
@@ -1,4 +1,4 @@
1
- import type { ChartScale } from '~core/scales/types';
1
+ import type { ChartScale } from '../../core/scales/types';
2
2
  import type { PreparedChart } from '../types';
3
3
  import type { PreparedRangeSlider } from '../useAxis/types';
4
4
  import type { BrushSelection } from '../useBrush/types';
@@ -1,4 +1,4 @@
1
- import { isBandScale } from '~core/utils';
1
+ import { isBandScale } from '../../core/utils';
2
2
  export function getRangeSliderOffsetTop(args) {
3
3
  var _a, _b;
4
4
  const { height, preparedChart, preparedLegend, preparedRangeSlider } = args;
@@ -1,4 +1,4 @@
1
- import type { PreparedLegend, PreparedSeries } from '~core/series/types';
1
+ import type { PreparedLegend, PreparedSeries } from '../../core/series/types';
2
2
  import type { ChartData } from '../../types';
3
3
  export declare const getVisibleSeries: ({ preparedSeries, activeLegendItems, }: {
4
4
  preparedSeries: PreparedSeries[];
@@ -1,7 +1,7 @@
1
1
  import { group } from 'd3-array';
2
2
  import { scaleOrdinal } from 'd3-scale';
3
- import { prepareSeries } from '~core/series/prepareSeries';
4
- import { getSeriesNames } from '~core/utils';
3
+ import { prepareSeries } from '../../core/series/prepareSeries';
4
+ import { getSeriesNames } from '../../core/utils';
5
5
  export const getVisibleSeries = ({ preparedSeries, activeLegendItems, }) => {
6
6
  return preparedSeries.map((singleSeries) => {
7
7
  if (singleSeries.legend.enabled) {
@@ -1 +1 @@
1
- export * from '~core/series/types';
1
+ export * from '../../core/series/types';
@@ -1 +1 @@
1
- export * from '~core/series/types';
1
+ export * from '../../core/series/types';
@@ -1 +1 @@
1
- export * from '~core/series/utils';
1
+ export * from '../../core/series/utils';
@@ -1 +1 @@
1
- export * from '~core/series/utils';
1
+ export * from '../../core/series/utils';
@@ -3,7 +3,7 @@ import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import { area as areaGenerator, line as lineGenerator } from 'd3-shape';
5
5
  import get from 'lodash/get';
6
- import { filterOverlappingLabels } from '~core/utils';
6
+ import { filterOverlappingLabels } from '../../../core/utils';
7
7
  import { block } from '../../../utils';
8
8
  import { HtmlLayer } from '../HtmlLayer';
9
9
  import { getMarkerHaloVisibility, getMarkerVisibility, renderMarker, selectMarkerHalo, selectMarkerSymbol, setMarker, } from '../marker';
@@ -1,5 +1,5 @@
1
- import type { PreparedSplit } from '~core/layout/split-types';
2
- import type { ChartScale } from '~core/scales/types';
1
+ import type { PreparedSplit } from '../../../core/layout/split-types';
2
+ import type { ChartScale } from '../../../core/scales/types';
3
3
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
4
4
  import type { PreparedAreaSeries } from '../../useSeries/types';
5
5
  import type { PreparedAreaData } from './types';
@@ -1,8 +1,8 @@
1
1
  import { group } from 'd3-array';
2
2
  import isNil from 'lodash/isNil';
3
3
  import round from 'lodash/round';
4
- import { getDataCategoryValue, getLabelsSize, getTextSizeFn } from '~core/utils';
5
- import { getFormattedValue } from '~core/utils/format';
4
+ import { getDataCategoryValue, getLabelsSize, getTextSizeFn } from '../../../core/utils';
5
+ import { getFormattedValue } from '../../../core/utils/format';
6
6
  import { getXValue, getYValue } from '../utils';
7
7
  function getXValues(series, xAxis, xScale) {
8
8
  const categories = xAxis.categories || [];
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import get from 'lodash/get';
5
- import { filterOverlappingLabels } from '~core/utils';
5
+ import { filterOverlappingLabels } from '../../../core/utils';
6
6
  import { block } from '../../../utils';
7
7
  import { HtmlLayer } from '../HtmlLayer';
8
8
  import { getRectPath } from '../utils';
@@ -1,5 +1,5 @@
1
- import type { PreparedSplit } from '~core/layout/split-types';
2
- import type { ChartScale } from '~core/scales/types';
1
+ import type { PreparedSplit } from '../../../core/layout/split-types';
2
+ import type { ChartScale } from '../../../core/scales/types';
3
3
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
4
4
  import type { PreparedBarXSeries, PreparedSeriesOptions } from '../../useSeries/types';
5
5
  import type { PreparedBarXData } from './types';
@@ -1,7 +1,7 @@
1
1
  import { ascending, descending, max, reverse, sort } from 'd3-array';
2
2
  import get from 'lodash/get';
3
- import { getDataCategoryValue, getLabelsSize } from '~core/utils';
4
- import { getFormattedValue } from '~core/utils/format';
3
+ import { getDataCategoryValue, getLabelsSize } from '../../../core/utils';
4
+ import { getFormattedValue } from '../../../core/utils/format';
5
5
  import { MIN_BAR_GAP, MIN_BAR_GROUP_GAP, MIN_BAR_WIDTH } from '../../constants';
6
6
  import { getSeriesStackId } from '../../useSeries/utils';
7
7
  import { getBandSize } from '../../utils/get-band-size';
@@ -1,4 +1,4 @@
1
- import type { ChartScale } from '~core/scales/types';
1
+ import type { ChartScale } from '../../../core/scales/types';
2
2
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
3
3
  import type { PreparedBarYSeries, PreparedSeriesOptions } from '../../useSeries/types';
4
4
  import type { BarYShapesArgs } from './types';
@@ -1,7 +1,7 @@
1
1
  import { ascending, descending, sort } from 'd3-array';
2
2
  import get from 'lodash/get';
3
- import { filterOverlappingLabels, getHtmlLabelConstraintedPosition, getLabelsSize, getSvgLabelConstraintedPosition, getTextSizeFn, } from '~core/utils';
4
- import { getFormattedValue } from '~core/utils/format';
3
+ import { filterOverlappingLabels, getHtmlLabelConstraintedPosition, getLabelsSize, getSvgLabelConstraintedPosition, getTextSizeFn, } from '../../../core/utils';
4
+ import { getFormattedValue } from '../../../core/utils/format';
5
5
  import { getBarYLayout, groupBarYDataByYValue } from '../../utils';
6
6
  export async function prepareBarYData(args) {
7
7
  var _a, _b;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
- import { getLineDashArray } from '~core/utils';
4
+ import { getLineDashArray } from '../../../core/utils';
5
5
  import { block } from '../../../utils';
6
6
  export { prepareFunnelData } from './prepare-data';
7
7
  export * from './types';
@@ -1,5 +1,5 @@
1
1
  import { path } from 'd3-path';
2
- import { calculateNumericProperty, getFormattedValue, getTextSizeFn } from '~core/utils';
2
+ import { calculateNumericProperty, getFormattedValue, getTextSizeFn } from '../../../core/utils';
3
3
  function getLineConnectorPaths(args) {
4
4
  const { points } = args;
5
5
  const leftPath = path();
@@ -1,4 +1,4 @@
1
- import type { ChartScale } from '~core/scales/types';
1
+ import type { ChartScale } from '../../../core/scales/types';
2
2
  import type { PreparedXAxis, PreparedYAxis } from '../../../hooks/useAxis/types';
3
3
  import type { PreparedHeatmapSeries } from '../../useSeries/types';
4
4
  import type { PreparedHeatmapData } from './types';
@@ -1,4 +1,4 @@
1
- import { getDomainDataXBySeries, getDomainDataYBySeries, getFormattedValue, getLabelsSize, getTextSizeFn, getTextWithElipsis, isBandScale, } from '~core/utils';
1
+ import { getDomainDataXBySeries, getDomainDataYBySeries, getFormattedValue, getLabelsSize, getTextSizeFn, getTextWithElipsis, isBandScale, } from '../../../core/utils';
2
2
  import { getBandSize } from '../../../hooks/utils/get-band-size';
3
3
  export async function prepareHeatmapData({ series, xAxis, xScale, yAxis, yScale, }) {
4
4
  var _a, _b, _c, _d, _e;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { Dispatch } from 'd3-dispatch';
3
- import type { SeriesType } from '~core/constants';
4
- import type { PreparedSplit } from '~core/layout/split-types';
5
- import type { ChartScale } from '~core/scales/types';
3
+ import type { SeriesType } from '../../core/constants';
4
+ import type { PreparedSplit } from '../../core/layout/split-types';
5
+ import type { ChartScale } from '../../core/scales/types';
6
6
  import type { PreparedXAxis, PreparedYAxis } from '../useAxis/types';
7
7
  import type { PreparedSeries, PreparedSeriesOptions } from '../useSeries/types';
8
8
  import type { ZoomState } from '../useZoom/types';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { group } from 'd3-array';
3
- import { SERIES_TYPE } from '~core/constants';
4
- import { getOnlyVisibleSeries } from '~core/utils';
3
+ import { SERIES_TYPE } from '../../core/constants';
4
+ import { getOnlyVisibleSeries } from '../../core/utils';
5
5
  import { ChartError } from '../../libs';
6
6
  import { AreaSeriesShapes } from './area';
7
7
  import { prepareAreaData } from './area/prepare-data';
@@ -3,7 +3,7 @@ import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import { line as lineGenerator } from 'd3-shape';
5
5
  import get from 'lodash/get';
6
- import { filterOverlappingLabels, getLineDashArray } from '~core/utils';
6
+ import { filterOverlappingLabels, getLineDashArray } from '../../../core/utils';
7
7
  import { block } from '../../../utils';
8
8
  import { HtmlLayer } from '../HtmlLayer';
9
9
  import { getMarkerHaloVisibility, getMarkerVisibility, renderMarker, selectMarkerHalo, selectMarkerSymbol, setMarker, } from '../marker';
@@ -1,5 +1,5 @@
1
- import type { PreparedSplit } from '~core/layout/split-types';
2
- import type { ChartScale } from '~core/scales/types';
1
+ import type { PreparedSplit } from '../../../core/layout/split-types';
2
+ import type { ChartScale } from '../../../core/scales/types';
3
3
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
4
4
  import type { PreparedLineSeries } from '../../useSeries/types';
5
5
  import type { PreparedLineData } from './types';
@@ -1,5 +1,5 @@
1
- import { getLabelsSize, getTextSizeFn } from '~core/utils';
2
- import { getFormattedValue } from '~core/utils/format';
1
+ import { getLabelsSize, getTextSizeFn } from '../../../core/utils';
2
+ import { getFormattedValue } from '../../../core/utils/format';
3
3
  import { getXValue, getYValue } from '../utils';
4
4
  async function getHtmlLabel(point, series, xMax) {
5
5
  var _a;
@@ -1,4 +1,4 @@
1
- import type { DashStyle, LineCap, LineJoin } from '~core/constants';
1
+ import type { DashStyle, LineCap, LineJoin } from '../../../core/constants';
2
2
  import type { HtmlItem, LabelData, LineSeriesData, LineSeriesLineBaseStyle } from '../../../types';
3
3
  import type { PreparedLineSeries } from '../../useSeries/types';
4
4
  export type PointData = {
@@ -1,5 +1,5 @@
1
1
  import type { BaseType, Selection } from 'd3-selection';
2
- import { SymbolType } from '~core/constants';
2
+ import { SymbolType } from '../../core/constants';
3
3
  import type { MarkerData as AreaMarkerData } from './area/types';
4
4
  import type { MarkerData as LineMarkerData } from './line/types';
5
5
  import type { RadarMarkerData } from './radar/types';
@@ -1,7 +1,7 @@
1
1
  import { symbol } from 'd3-shape';
2
2
  import get from 'lodash/get';
3
- import { SymbolType } from '~core/constants';
4
- import { getSymbol } from '~core/utils';
3
+ import { SymbolType } from '../../core/constants';
4
+ import { getSymbol } from '../../core/utils';
5
5
  import { block } from '../../utils';
6
6
  const b = block('marker');
7
7
  const haloClassName = b('halo');
@@ -3,7 +3,7 @@ import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import { arc } from 'd3-shape';
5
5
  import get from 'lodash/get';
6
- import { setEllipsisForOverflowTexts } from '~core/utils';
6
+ import { setEllipsisForOverflowTexts } from '../../../core/utils';
7
7
  import { block } from '../../../utils';
8
8
  import { HtmlLayer } from '../HtmlLayer';
9
9
  import { setActiveState } from '../utils';
@@ -1,9 +1,9 @@
1
1
  import { group, max } from 'd3-array';
2
2
  import { arc, line as lineGenerator } from 'd3-shape';
3
3
  import merge from 'lodash/merge';
4
- import { DEFAULT_DATALABELS_STYLE } from '~core/constants';
5
- import { calculateNumericProperty, getLabelsSize, getLeftPosition, getTextSizeFn, isLabelsOverlapping, } from '~core/utils';
6
- import { getFormattedValue } from '~core/utils/format';
4
+ import { DEFAULT_DATALABELS_STYLE } from '../../../core/constants';
5
+ import { calculateNumericProperty, getLabelsSize, getLeftPosition, getTextSizeFn, isLabelsOverlapping, } from '../../../core/utils';
6
+ import { getFormattedValue } from '../../../core/utils/format';
7
7
  import { getCurveFactory, getInscribedAngle, pieGenerator } from './utils';
8
8
  const FULL_CIRCLE = Math.PI * 2;
9
9
  const getCenter = (boundsWidth, boundsHeight, center) => {
@@ -1,8 +1,8 @@
1
1
  import { range } from 'd3-array';
2
2
  import { scaleLinear } from 'd3-scale';
3
3
  import { curveLinearClosed, line } from 'd3-shape';
4
- import { getLabelsSize } from '~core/utils';
5
- import { getFormattedValue } from '~core/utils/format';
4
+ import { getLabelsSize } from '../../../core/utils';
5
+ import { getFormattedValue } from '../../../core/utils/format';
6
6
  export async function prepareRadarData(args) {
7
7
  const { series: preparedSeries, boundsWidth, boundsHeight } = args;
8
8
  const maxRadius = Math.min(boundsWidth, boundsHeight) / 2;
@@ -1,5 +1,5 @@
1
1
  import { sankey, sankeyLinkHorizontal } from 'd3-sankey';
2
- import { getFormattedValue } from '~core/utils/format';
2
+ import { getFormattedValue } from '../../../core/utils/format';
3
3
  export function prepareSankeyData(args) {
4
4
  const { series, width, height } = args;
5
5
  const htmlElements = [];
@@ -1,4 +1,4 @@
1
- import type { ChartScale } from '~core/scales/types';
1
+ import type { ChartScale } from '../../../core/scales/types';
2
2
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
3
3
  import type { PreparedScatterSeries } from '../../useSeries/types';
4
4
  import type { PreparedScatterData } from './types';
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getDataCategoryValue } from '~core/utils';
2
+ import { getDataCategoryValue } from '../../../core/utils';
3
3
  import { getXValue, getYValue } from '../utils';
4
4
  function getFilteredLinearScatterData(data) {
5
5
  return data.filter((d) => typeof d.x === 'number' && typeof d.y === 'number');
@@ -1,8 +1,8 @@
1
1
  import { ascending, descending, sort } from 'd3-array';
2
2
  import { stratify, treemap, treemapBinary, treemapDice, treemapSlice, treemapSliceDice, treemapSquarify, } from 'd3-hierarchy';
3
- import { LayoutAlgorithm } from '~core/constants';
4
- import { getLabelsSize, getTextSizeFn, getTextWithElipsis } from '~core/utils';
5
- import { getFormattedValue } from '~core/utils/format';
3
+ import { LayoutAlgorithm } from '../../../core/constants';
4
+ import { getLabelsSize, getTextSizeFn, getTextWithElipsis } from '../../../core/utils';
5
+ import { getFormattedValue } from '../../../core/utils/format';
6
6
  const DEFAULT_PADDING = 1;
7
7
  async function getLabels(args) {
8
8
  var _a;
@@ -1,5 +1,5 @@
1
1
  import type { BaseType } from 'd3-selection';
2
- import type { ChartScale } from '~core/scales/types';
2
+ import type { ChartScale } from '../../core/scales/types';
3
3
  import type { BasicInactiveState } from '../../types';
4
4
  import type { PreparedXAxis, PreparedYAxis } from '../useAxis/types';
5
5
  import type { ZoomState } from '../useZoom/types';
@@ -1,7 +1,7 @@
1
1
  import { path } from 'd3-path';
2
2
  import { select } from 'd3-selection';
3
3
  import get from 'lodash/get';
4
- import { getDataCategoryValue } from '~core/utils';
4
+ import { getDataCategoryValue } from '../../core/utils';
5
5
  const ONE_POINT_DOMAIN_DATA_CAPACITY = 3;
6
6
  export function getXValue(args) {
7
7
  const { point, points, xAxis, xScale } = args;
@@ -3,8 +3,8 @@ import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import { line as lineGenerator } from 'd3-shape';
5
5
  import get from 'lodash/get';
6
- import { DASH_STYLE } from '~core/constants';
7
- import { filterOverlappingLabels, getLineDashArray, getWaterfallPointColor } from '~core/utils';
6
+ import { DASH_STYLE } from '../../../core/constants';
7
+ import { filterOverlappingLabels, getLineDashArray, getWaterfallPointColor } from '../../../core/utils';
8
8
  import { block } from '../../../utils';
9
9
  import { HtmlLayer } from '../HtmlLayer';
10
10
  export { prepareWaterfallData } from './prepare-data';
@@ -1,4 +1,4 @@
1
- import type { ChartScale } from '~core/scales/types';
1
+ import type { ChartScale } from '../../../core/scales/types';
2
2
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
3
3
  import type { PreparedSeriesOptions, PreparedWaterfallSeries } from '../../useSeries/types';
4
4
  import type { PreparedWaterfallData } from './types';
@@ -1,7 +1,7 @@
1
1
  import get from 'lodash/get';
2
2
  import sortBy from 'lodash/sortBy';
3
- import { getLabelsSize } from '~core/utils';
4
- import { getFormattedValue } from '~core/utils/format';
3
+ import { getLabelsSize } from '../../../core/utils';
4
+ import { getFormattedValue } from '../../../core/utils/format';
5
5
  import { MIN_BAR_GAP, MIN_BAR_WIDTH } from '../../constants';
6
6
  import { getXValue, getYValue } from '../utils';
7
7
  async function getLabelData(d, plotHeight) {
@@ -1,5 +1,5 @@
1
- import type { PreparedSplit } from '~core/layout/split-types';
2
- import type { ChartScale } from '~core/scales/types';
1
+ import type { PreparedSplit } from '../../core/layout/split-types';
2
+ import type { ChartScale } from '../../core/scales/types';
3
3
  import type { PreparedZoom } from '../types';
4
4
  import type { PreparedXAxis, PreparedYAxis } from '../useAxis/types';
5
5
  import type { ZoomState } from './types';
@@ -1,6 +1,6 @@
1
1
  import type { BrushSelection } from 'd3-brush';
2
- import type { ZoomType } from '~core/constants';
3
- import type { ChartScale } from '~core/scales/types';
2
+ import type { ZoomType } from '../../core/constants';
3
+ import type { ChartScale } from '../../core/scales/types';
4
4
  import type { PreparedXAxis, PreparedYAxis } from '../useAxis/types';
5
5
  import type { ZoomState } from './types';
6
6
  export declare function selectionToZoomBounds(args: {
@@ -1,4 +1,4 @@
1
- import { ZOOM_TYPE } from '~core/constants';
1
+ import { ZOOM_TYPE } from '../../core/constants';
2
2
  export function selectionToZoomBounds(args) {
3
3
  const { selection, xAxis, xScale, yAxes, yScales, zoomType } = args;
4
4
  const zoomState = {};
@@ -1,4 +1,4 @@
1
- import type { ChartScale } from '~core/scales/types';
1
+ import type { ChartScale } from '../../core/scales/types';
2
2
  import type { BarYSeries, BarYSeriesData } from '../../types';
3
3
  import type { PreparedYAxis } from '../useAxis/types';
4
4
  import type { PreparedBarYSeries, PreparedSeriesOptions } from '../useSeries/types';
@@ -1,6 +1,6 @@
1
1
  import { max } from 'd3-array';
2
2
  import get from 'lodash/get';
3
- import { getDataCategoryValue } from '~core/utils';
3
+ import { getDataCategoryValue } from '../../core/utils';
4
4
  import { MIN_BAR_GAP, MIN_BAR_GROUP_GAP, MIN_BAR_WIDTH } from '../constants';
5
5
  import { getSeriesStackId } from '../useSeries/utils';
6
6
  import { getBandSize } from './get-band-size';
@@ -1,4 +1,4 @@
1
- import { isBandScale } from '~core/utils';
1
+ import { isBandScale } from '../../core/utils';
2
2
  export function getBandSize({ domain, scale, }) {
3
3
  if (!scale || !domain.length) {
4
4
  return 0;
@@ -1,5 +1,5 @@
1
1
  export { CustomShapeRenderer } from './utils';
2
- export { getFormattedValue } from '~core/utils';
3
- export { getDefaultTooltipHeaderFormat } from '~core/utils/tooltip';
2
+ export { getFormattedValue } from './core/utils';
3
+ export { getDefaultTooltipHeaderFormat } from './core/utils/tooltip';
4
4
  export * from './components';
5
5
  export * from './types';
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { CustomShapeRenderer } from './utils';
2
- export { getFormattedValue } from '~core/utils';
3
- export { getDefaultTooltipHeaderFormat } from '~core/utils/tooltip';
2
+ export { getFormattedValue } from './core/utils';
3
+ export { getDefaultTooltipHeaderFormat } from './core/utils/tooltip';
4
4
  export * from './components';
5
5
  export * from './types';
@@ -1,4 +1,4 @@
1
- import type { BaseTextStyle } from '~core/types/chart/base';
1
+ import type { BaseTextStyle } from '../core/types/chart/base';
2
2
  export interface LabelData {
3
3
  text: string;
4
4
  x: number;
@@ -1,2 +1,2 @@
1
- export * from '~core/types';
1
+ export * from '../core/types';
2
2
  export * from './chart-ui';
@@ -1,2 +1,2 @@
1
- export * from '~core/types';
1
+ export * from '../core/types';
2
2
  export * from './chart-ui';
@@ -1,7 +1,7 @@
1
1
  import { select } from 'd3-selection';
2
2
  import get from 'lodash/get';
3
- import { calculateNumericProperty } from '~core/utils/math';
4
- import { getLabelsSize, handleOverflowingText } from '~core/utils/text';
3
+ import { calculateNumericProperty } from '../../core/utils/math';
4
+ import { getLabelsSize, handleOverflowingText } from '../../core/utils/text';
5
5
  const MAX_FONT_SIZE = 64;
6
6
  const MIN_FONT_SIZE = 8;
7
7
  export function pieCenterText(text, options) {