@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,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 { getLineDashArray } from '~core/utils';
4
+ import { getLineDashArray } from '../../core/utils';
5
5
  import { HtmlLayer } from '../../hooks/useShapes/HtmlLayer';
6
6
  import { block } from '../../utils';
7
7
  import './styles.css';
@@ -1,6 +1,6 @@
1
1
  import { getUniqId } from '@gravity-ui/uikit';
2
- import { calculateSin, formatAxisTickLabel, getBandsPosition, getLabelsSize, getMinSpaceBetween, getTextSizeFn, getTextWithElipsis, } from '~core/utils';
3
- import { getXAxisTickValues } from '~core/utils/axis/x-axis';
2
+ import { calculateSin, formatAxisTickLabel, getBandsPosition, getLabelsSize, getMinSpaceBetween, getTextSizeFn, getTextWithElipsis, } from '../../core/utils';
3
+ import { getXAxisTickValues } from '../../core/utils/axis/x-axis';
4
4
  import { getMultilineTitleContentRows } from '../utils/axis-title';
5
5
  async function getSvgAxisLabel({ getTextSize, text, axis, top, left, labelMaxWidth, axisWidth, boundsOffsetLeft, boundsOffsetRight, }) {
6
6
  var _a;
@@ -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 { getLineDashArray } from '~core/utils';
4
+ import { getLineDashArray } from '../../core/utils';
5
5
  import { HtmlLayer } from '../../hooks/useShapes/HtmlLayer';
6
6
  import { block } from '../../utils';
7
7
  import './styles.css';
@@ -1,5 +1,5 @@
1
1
  import { getUniqId } from '@gravity-ui/uikit';
2
- import { calculateCos, calculateSin, formatAxisTickLabel, getBandsPosition, getLabelsSize, getMinSpaceBetween, getTextSizeFn, getTextWithElipsis, wrapText, } from '~core/utils';
2
+ import { calculateCos, calculateSin, formatAxisTickLabel, getBandsPosition, getLabelsSize, getMinSpaceBetween, getTextSizeFn, getTextWithElipsis, wrapText, } from '../../core/utils';
3
3
  import { prepareHtmlYAxisTitle, prepareSvgYAxisTitle } from './prepare-axis-title';
4
4
  import { getTickValues } from './utils';
5
5
  async function getSvgAxisLabel({ getTextSize, text, axis, top, left, labelMaxHeight, topOffset, }) {
@@ -1,4 +1,4 @@
1
- import { calculateCos, calculateSin, getLabelsSize, getTextSizeFn, getTextWithElipsis, } from '~core/utils';
1
+ import { calculateCos, calculateSin, getLabelsSize, getTextSizeFn, getTextWithElipsis, } from '../../core/utils';
2
2
  import { getMultilineTitleContentRows } from '../utils/axis-title';
3
3
  export async function prepareSvgYAxisTitle({ axis, axisTop, axisHeight, axisWidth, axisLabelsWidth, }) {
4
4
  if (!axis.title.text || axis.title.html) {
@@ -1,4 +1,4 @@
1
- import { getDomainDataYBySeries, getMinSpaceBetween, getTicksCountByPixelInterval, isBandScale, thinOut, } from '~core/utils';
1
+ import { getDomainDataYBySeries, getMinSpaceBetween, getTicksCountByPixelInterval, isBandScale, thinOut, } from '../../core/utils';
2
2
  export function getTickValues({ scale, axis, labelLineHeight, series, }) {
3
3
  if ('ticks' in scale && typeof scale.ticks === 'function') {
4
4
  const range = scale.range();
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ArrowRotateLeft } from '@gravity-ui/icons';
3
3
  import { Button, ButtonIcon, useUniqId } from '@gravity-ui/uikit';
4
- import { getPreparedRangeSlider } from '~core/axes/range-slider';
5
- import { EventType, getDispatcher, isBandScale } from '~core/utils';
4
+ import { getPreparedRangeSlider } from '../../core/axes/range-slider';
5
+ import { EventType, getDispatcher, isBandScale } from '../../core/utils';
6
6
  import { useCrosshair, usePrevious } from '../../hooks';
7
7
  import { getClipPathIdByBounds } from '../../hooks/useShapes/utils';
8
8
  import { block } from '../../utils';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Dispatch } from 'd3-dispatch';
3
- import type { ChartScale } from '~core/scales/types';
3
+ import type { ChartScale } from '../../core/scales/types';
4
4
  import type { PreparedXAxis, PreparedYAxis, ShapeData } from '../../hooks';
5
5
  import type { useChartInnerState } from './useChartInnerState';
6
6
  type ChartInnerState = ReturnType<typeof useChartInnerState>;
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  import { pointer } from 'd3-selection';
3
3
  import get from 'lodash/get';
4
4
  import throttle from 'lodash/throttle';
5
- import { IS_TOUCH_ENABLED } from '~core/constants';
6
- import { EventType } from '~core/utils';
7
- import { getClosestPoints } from '~core/utils/get-closest-data';
8
- import { getHoveredPlots } from '~core/utils/get-hovered-plots';
5
+ import { IS_TOUCH_ENABLED } from '../../core/constants';
6
+ import { EventType } from '../../core/utils';
7
+ import { getClosestPoints } from '../../core/utils/get-closest-data';
8
+ import { getHoveredPlots } from '../../core/utils/get-hovered-plots';
9
9
  export function useChartInnerHandlers(props) {
10
10
  const { boundsHeight, boundsOffsetLeft, boundsOffsetTop, boundsWidth, dispatcher, shapesData, svgContainer, togglePinTooltip, tooltipPinned, unpinTooltip, xAxis, yAxis, xScale, yScale, tooltipThrottle, } = props;
11
11
  const isOutsideBounds = React.useCallback((x, y) => {
@@ -29,7 +29,7 @@ export declare function useChartInnerProps(props: Props): {
29
29
  legendConfig?: LegendConfig | undefined;
30
30
  legendItems?: LegendItem[][] | undefined;
31
31
  preparedLegend?: PreparedLegend | undefined;
32
- preparedSeriesOptions?: import("~core/constants").SeriesOptionsDefaults | undefined;
32
+ preparedSeriesOptions?: import("../../core/constants").SeriesOptionsDefaults | undefined;
33
33
  preparedSplit?: PreparedSplit | undefined;
34
34
  shapes?: React.ReactElement<any, string | React.JSXElementConstructor<any>>[] | undefined;
35
35
  xScale?: ChartScale | undefined;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import isEqual from 'lodash/isEqual';
3
- import { DEFAULT_PALETTE, SERIES_TYPE } from '~core/constants';
4
- import { getLegendComponents, getPreparedLegend } from '~core/series/prepare-legend';
5
- import { getPreparedOptions } from '~core/series/prepare-options';
6
- import { getChartDimensions, getEffectiveXRange, getSortedSeriesData, getYAxisWidth, getZoomedSeriesData, isAxisRelatedSeries, } from '~core/utils';
3
+ import { DEFAULT_PALETTE, SERIES_TYPE } from '../../core/constants';
4
+ import { getLegendComponents, getPreparedLegend } from '../../core/series/prepare-legend';
5
+ import { getPreparedOptions } from '../../core/series/prepare-options';
6
+ import { getChartDimensions, getEffectiveXRange, getSortedSeriesData, getYAxisWidth, getZoomedSeriesData, isAxisRelatedSeries, } from '../../core/utils';
7
7
  import { createScales, getAxes, getPreparedSeries, getShapes, getSplit, getVisibleSeries, useZoom, } from '../../hooks';
8
8
  import { getActiveLegendItems, getAllLegendItems } from '../../hooks/useSeries/utils';
9
9
  import { getNormalizedXAxis, getNormalizedYAxis, recalculateYAxisLabelsWidth } from './utils';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import isEqual from 'lodash/isEqual';
3
- import { EventType, isMacintosh } from '~core/utils';
3
+ import { EventType, isMacintosh } from '../../core/utils';
4
4
  export function useChartInnerState(props) {
5
5
  var _a, _b;
6
6
  const { dispatcher, preparedRangeSlider, tooltip } = props;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Dispatch } from 'd3-dispatch';
3
- import type { ChartScale } from '~core/scales/types';
3
+ import type { ChartScale } from '../../core/scales/types';
4
4
  import type { PreparedXAxis, PreparedYAxis, ShapeData } from '../../hooks';
5
5
  type Props = {
6
6
  boundsHeight: number;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import get from 'lodash/get';
3
- import { EventType } from '~core/utils';
4
- import { getClosestPoints } from '~core/utils/get-closest-data';
5
- import { getHoveredPlots } from '~core/utils/get-hovered-plots';
6
- import { calculateNumericProperty } from '~core/utils/math';
3
+ import { EventType } from '../../core/utils';
4
+ import { getClosestPoints } from '../../core/utils/get-closest-data';
5
+ import { getHoveredPlots } from '../../core/utils/get-hovered-plots';
6
+ import { calculateNumericProperty } from '../../core/utils/math';
7
7
  export function useDefaultState(props) {
8
8
  const { boundsHeight, boundsOffsetLeft, boundsOffsetTop, boundsWidth, defaultState, dispatcher, shapesData, shapesReady, svgRef, xAxis, yAxis, xScale, yScale, } = props;
9
9
  const appliedRef = React.useRef(false);
@@ -1,5 +1,5 @@
1
- import type { ChartScale } from '~core/scales/types';
2
- import type { PreparedSeries } from '~core/series/types';
1
+ import type { ChartScale } from '../../../core/scales/types';
2
+ import type { PreparedSeries } from '../../../core/series/types';
3
3
  import type { PreparedYAxis } from '../../../hooks';
4
4
  export declare function recalculateYAxisLabelsWidth(props: {
5
5
  seriesData: PreparedSeries[];
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getYAxisLabelMaxWidth } from '~core/axes/y-axis';
2
+ import { getYAxisLabelMaxWidth } from '../../../core/axes/y-axis';
3
3
  export async function recalculateYAxisLabelsWidth(props) {
4
4
  const { seriesData, yAxis, yScale } = props;
5
5
  const axisIndexesToRecalculateMap = new Map();
@@ -1,4 +1,4 @@
1
- import { getAxisCategories } from '~core/utils';
1
+ import { getAxisCategories } from '../../../core/utils';
2
2
  export function getNormalizedXAxis(props) {
3
3
  var _a;
4
4
  let categories = (_a = props.xAxis) === null || _a === void 0 ? void 0 : _a.categories;
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getHorizontalSvgTextHeight } from '~core/utils';
2
+ import { getHorizontalSvgTextHeight } from '../../../core/utils';
3
3
  const DEFAULT_TITLE_FONT_SIZE = '15px';
4
4
  const TITLE_PADDINGS = 8 * 2;
5
5
  export const getPreparedTitle = ({ title, }) => {
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getDefaultTooltipHeaderFormat } from '~core/utils/tooltip';
2
+ import { getDefaultTooltipHeaderFormat } from '../../../core/utils/tooltip';
3
3
  export const getPreparedTooltip = (args) => {
4
4
  var _a, _b;
5
5
  const { tooltip, seriesData, yAxes, xAxis } = args;
@@ -1,4 +1,4 @@
1
- import type { ZoomType } from '~core/constants';
1
+ import type { ZoomType } from '../../../core/constants';
2
2
  import type { PreparedZoom } from '../../../hooks/types';
3
3
  import type { ChartSeries, ChartZoom } from '../../../types';
4
4
  export declare function getZoomType(args: {
@@ -1,6 +1,6 @@
1
1
  import intersection from 'lodash/intersection';
2
2
  import merge from 'lodash/merge';
3
- import { SERIES_TYPE, ZOOM_TYPE, brushDefaults } from '~core/constants';
3
+ import { SERIES_TYPE, ZOOM_TYPE, brushDefaults } from '../../../core/constants';
4
4
  function mapSeriesTypeToZoomType(seriesType) {
5
5
  switch (seriesType) {
6
6
  case SERIES_TYPE.Area: {
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import { scaleLinear } from 'd3-scale';
3
3
  import { select } from 'd3-selection';
4
4
  import { symbol } from 'd3-shape';
5
- import { CONTINUOUS_LEGEND_SIZE } from '~core/constants';
6
- import { createGradientRect, getContinuesColorFn, getLabelsSize, getSymbol, getUniqId, } from '~core/utils';
7
- import { axisBottom } from '~core/utils/axis-generators';
5
+ import { CONTINUOUS_LEGEND_SIZE } from '../../core/constants';
6
+ import { createGradientRect, getContinuesColorFn, getLabelsSize, getSymbol, getUniqId, } from '../../core/utils';
7
+ import { axisBottom } from '../../core/utils/axis-generators';
8
8
  import { formatNumber } from '../../libs';
9
9
  import { block } from '../../utils';
10
10
  import { appendLinePathElement } from '../utils';
@@ -148,6 +148,7 @@ export const Legend = (props) => {
148
148
  const svgElement = select(ref.current);
149
149
  svgElement.selectAll('*').remove();
150
150
  svgElement.style('opacity', 0);
151
+ const isMac = navigator.platform.toUpperCase().includes('MAC');
151
152
  const htmlElement = select(htmlLayout);
152
153
  htmlElement.selectAll('[data-legend]').remove();
153
154
  const htmlContainer = legend.html
@@ -173,7 +174,11 @@ export const Legend = (props) => {
173
174
  .append('g')
174
175
  .attr('class', b('item'))
175
176
  .on('click', function (e, d) {
176
- onItemClick({ id: d.id, name: d.name, metaKey: e.metaKey });
177
+ onItemClick({
178
+ id: d.id,
179
+ name: d.name,
180
+ metaKey: isMac ? e.metaKey : e.ctrlKey,
181
+ });
177
182
  onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate();
178
183
  });
179
184
  const getXPosition = (i) => {
@@ -212,7 +217,11 @@ export const Legend = (props) => {
212
217
  return '0px';
213
218
  })
214
219
  .on('click', function (e, d) {
215
- onItemClick({ id: d.id, name: d.name, metaKey: e.metaKey });
220
+ onItemClick({
221
+ id: d.id,
222
+ name: d.name,
223
+ metaKey: isMac ? e.metaKey : e.ctrlKey,
224
+ });
216
225
  onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate();
217
226
  })
218
227
  .html((d) => d.text);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PreparedPlotTitle } from '~core/layout/split-types';
2
+ import type { PreparedPlotTitle } from '../../core/layout/split-types';
3
3
  import './styles.css';
4
4
  type Props = {
5
5
  title?: PreparedPlotTitle;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useUniqId } from '@gravity-ui/uikit';
3
- import { isBandScale } from '~core/utils';
3
+ import { isBandScale } from '../../core/utils';
4
4
  import { useBrush, useRangeSlider } from '../../hooks';
5
5
  import { block } from '../../utils';
6
6
  import { getInitialRangeSliderState } from '../utils';
@@ -15,5 +15,5 @@ export function Row(props) {
15
15
  return (React.createElement("tr", { className: b('content-row', { active, striped }, className), style: style },
16
16
  colorItem && React.createElement("td", { className: b('content-row-color-cell') }, colorItem),
17
17
  React.createElement("td", { className: b('content-row-label-cell') }, label),
18
- value && React.createElement("td", { className: b('content-row-value-cell') }, value)));
18
+ value && (React.createElement("td", { className: b('content-row-value-cell') }, typeof value === 'string' ? (React.createElement("span", { dangerouslySetInnerHTML: { __html: value } })) : (value)))));
19
19
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { getFormattedValue } from '~core/utils/format';
2
+ import { getFormattedValue } from '../../../core/utils/format';
3
3
  import { block } from '../../../utils';
4
4
  import { getBuiltInAggregatedValue, getBuiltInAggregationLabel } from './utils';
5
5
  const b = block('tooltip');
@@ -3,8 +3,8 @@ import { Divider } from '@gravity-ui/uikit';
3
3
  import parse from 'html-react-parser';
4
4
  import get from 'lodash/get';
5
5
  import isEqual from 'lodash/isEqual';
6
- import { i18n } from '~core/i18n';
7
- import { getFormattedValue } from '~core/utils/format';
6
+ import { i18n } from '../../../core/i18n';
7
+ import { getFormattedValue } from '../../../core/utils/format';
8
8
  import { usePrevious } from '../../../hooks';
9
9
  import { block } from '../../../utils';
10
10
  import { Row } from './Row';
@@ -1,8 +1,8 @@
1
1
  import { create } from 'd3-selection';
2
2
  import get from 'lodash/get';
3
- import { i18n } from '~core/i18n';
4
- import { getDataCategoryValue, getDefaultDateFormat } from '~core/utils';
5
- import { getFormattedValue } from '~core/utils/format';
3
+ import { i18n } from '../../../core/i18n';
4
+ import { getDataCategoryValue, getDefaultDateFormat } from '../../../core/utils';
5
+ import { getFormattedValue } from '../../../core/utils/format';
6
6
  import { appendLinePathElement } from '../../utils';
7
7
  function getRowData(fieldName, data, axis) {
8
8
  switch (axis === null || axis === void 0 ? void 0 : axis.type) {
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { select } from 'd3-selection';
3
3
  import debounce from 'lodash/debounce';
4
- import { i18nFactory } from '~core/i18n';
5
- import { getUniqId } from '~core/utils';
6
- import { validateData } from '~core/validation';
4
+ import { i18nFactory } from '../core/i18n';
5
+ import { getUniqId } from '../core/utils';
6
+ import { validateData } from '../core/validation';
7
7
  import { ChartInner } from './ChartInner';
8
8
  export * from './Tooltip/ChartTooltipContent';
9
9
  export const Chart = React.forwardRef(function Chart(props, forwardedRef) {
@@ -1,4 +1,4 @@
1
- import { getTextSizeFn, getTextWithElipsis, wrapText } from '~core/utils';
1
+ import { getTextSizeFn, getTextWithElipsis, wrapText } from '../../core/utils';
2
2
  export async function getMultilineTitleContentRows({ axis, titleMaxWidth, }) {
3
3
  const titleContent = [];
4
4
  const getTitleTextSize = getTextSizeFn({ style: axis.title.style });
@@ -1,4 +1,4 @@
1
- import type { DashStyle } from '~core/constants';
1
+ import type { DashStyle } from '../../core/constants';
2
2
  import type { ChartScaleLinear, ChartScaleTime } from '../../hooks';
3
3
  import type { ChartAxisRangeSlider } from '../../types';
4
4
  export declare function getInitialRangeSliderState(args: {
@@ -1,7 +1,7 @@
1
1
  import { duration } from '@gravity-ui/date-utils';
2
2
  import { select } from 'd3-selection';
3
3
  import { line as lineGenerator } from 'd3-shape';
4
- import { getLineDashArray, isTimeScale } from '~core/utils';
4
+ import { getLineDashArray, isTimeScale } from '../../core/utils';
5
5
  export function getInitialRangeSliderState(args) {
6
6
  const { defaultRange, xScale } = args;
7
7
  let minRange;
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { TIME_UNITS, calculateCos, calculateNumericProperty, calculateSin, formatAxisTickLabel, getDefaultDateFormat, getHorizontalHtmlTextHeight, getHorizontalSvgTextHeight, getLabelsSize, getMinSpaceBetween, getTextSizeFn, isAxisRelatedSeries, wrapText, } from '~core/utils';
2
+ import { TIME_UNITS, calculateCos, calculateNumericProperty, calculateSin, formatAxisTickLabel, getDefaultDateFormat, getHorizontalHtmlTextHeight, getHorizontalSvgTextHeight, getLabelsSize, getMinSpaceBetween, getTextSizeFn, isAxisRelatedSeries, wrapText, } from '../utils';
3
3
  import { DASH_STYLE, DEFAULT_AXIS_LABEL_FONT_SIZE, SERIES_TYPE, axisCrosshairDefaults, axisLabelsDefaults, axisTickMarksDefaults, xAxisTitleDefaults, } from '../constants';
4
4
  import { createXScale } from '../scales/x-scale';
5
5
  import { getXAxisTickValues } from '../utils/axis/x-axis';
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { calculateNumericProperty, formatAxisTickLabel, getDefaultDateFormat, getDefaultMinYAxisValue, getHorizontalHtmlTextHeight, getHorizontalSvgTextHeight, getLabelsSize, getMinSpaceBetween, getTextSizeFn, isAxisRelatedSeries, shouldSyncAxisWithPrimary, wrapText, } from '~core/utils';
2
+ import { calculateNumericProperty, formatAxisTickLabel, getDefaultDateFormat, getDefaultMinYAxisValue, getHorizontalHtmlTextHeight, getHorizontalSvgTextHeight, getLabelsSize, getMinSpaceBetween, getTextSizeFn, isAxisRelatedSeries, shouldSyncAxisWithPrimary, wrapText, } from '../utils';
3
3
  import { getTickValues } from '../../components/AxisY/utils';
4
4
  import { DASH_STYLE, DEFAULT_AXIS_LABEL_FONT_SIZE, DEFAULT_AXIS_TYPE, SERIES_TYPE, axisCrosshairDefaults, axisLabelsDefaults, axisTickMarksDefaults, yAxisTitleDefaults, } from '../constants';
5
5
  import { createYScale } from '../scales/y-scale';
@@ -1,6 +1,6 @@
1
1
  import get from 'lodash/get';
2
2
  import isEmpty from 'lodash/isEmpty';
3
- import { calculateNumericProperty, getHorizontalSvgTextHeight } from '~core/utils';
3
+ import { calculateNumericProperty, getHorizontalSvgTextHeight } from '../utils';
4
4
  const DEFAULT_TITLE_FONT_SIZE = '15px';
5
5
  const TITLE_TOP_BOTTOM_PADDING = 8;
6
6
  function preparePlotTitle(args) {
@@ -1,4 +1,4 @@
1
- import type { AxisDirection } from '~core/utils';
1
+ import type { AxisDirection } from '../utils';
2
2
  import type { ChartAxis, ChartSeries } from '../../types';
3
3
  import type { PreparedAxis, PreparedYAxis } from '../axes/types';
4
4
  import type { PreparedSeries } from '../series';
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getDataCategoryValue, isSeriesWithCategoryValues } from '~core/utils';
2
+ import { getDataCategoryValue, isSeriesWithCategoryValues } from '../utils';
3
3
  import { SERIES_TYPE } from '../constants';
4
4
  const MARKER_SERIES_TYPES = [SERIES_TYPE.Area, SERIES_TYPE.Line, SERIES_TYPE.Scatter];
5
5
  function getNormilizedMinMax(args) {
@@ -1,7 +1,7 @@
1
1
  import { extent } from 'd3-array';
2
2
  import { scaleBand, scaleLinear, scaleLog, scaleUtc } from 'd3-scale';
3
3
  import get from 'lodash/get';
4
- import { getDefaultMaxXAxisValue, getDefaultMinXAxisValue, getDomainDataXBySeries, getEffectiveXRange, } from '~core/utils';
4
+ import { getDefaultMaxXAxisValue, getDefaultMinXAxisValue, getDomainDataXBySeries, getEffectiveXRange, } from '../utils';
5
5
  import { getBandSize } from '../../hooks/utils/get-band-size';
6
6
  import { DEFAULT_AXIS_TYPE, SERIES_TYPE } from '../constants';
7
7
  import { checkIsPointDomain, filterCategoriesByVisibleSeries, getMinMaxPropsOrState, hasOnlyMarkerSeries, validateArrayData, } from './utils';
@@ -1,7 +1,7 @@
1
1
  import { extent, tickStep, ticks } from 'd3-array';
2
2
  import { scaleBand, scaleLinear, scaleLog, scaleUtc } from 'd3-scale';
3
3
  import get from 'lodash/get';
4
- import { CHART_SERIES_WITH_VOLUME_ON_Y_AXIS, getDomainDataYBySeries, shouldSyncAxisWithPrimary, } from '~core/utils';
4
+ import { CHART_SERIES_WITH_VOLUME_ON_Y_AXIS, getDomainDataYBySeries, shouldSyncAxisWithPrimary, } from '../utils';
5
5
  import { getTickValues } from '../../components/AxisY/utils';
6
6
  import { getBandSize } from '../../hooks/utils/get-band-size';
7
7
  import { SERIES_TYPE } from '../constants';
@@ -1,6 +1,6 @@
1
1
  import get from 'lodash/get';
2
2
  import merge from 'lodash/merge';
3
- import { getUniqId } from '~core/utils';
3
+ import { getUniqId } from '../utils';
4
4
  import { DEFAULT_DATALABELS_STYLE, seriesRangeSliderOptionsDefaults } from '../constants';
5
5
  import { DEFAULT_DATALABELS_PADDING, DEFAULT_HALO_OPTIONS, DEFAULT_POINT_MARKER_OPTIONS, } from './constants';
6
6
  import { getSeriesStackId, prepareLegendSymbol } from './utils';
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getUniqId } from '~core/utils';
2
+ import { getUniqId } from '../utils';
3
3
  import { DEFAULT_DATALABELS_STYLE, seriesRangeSliderOptionsDefaults } from '../constants';
4
4
  import { DEFAULT_DATALABELS_PADDING } from './constants';
5
5
  import { getSeriesStackId, prepareLegendSymbol } from './utils';
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getLabelsSize, getUniqId } from '~core/utils';
2
+ import { getLabelsSize, getUniqId } from '../utils';
3
3
  import { DEFAULT_DATALABELS_STYLE } from '../constants';
4
4
  import { getFormattedValue } from '../utils/format';
5
5
  import { getSeriesStackId, prepareLegendSymbol } from './utils';
@@ -1,6 +1,6 @@
1
1
  import { scaleOrdinal } from 'd3-scale';
2
2
  import get from 'lodash/get';
3
- import { getUniqId } from '~core/utils';
3
+ import { getUniqId } from '../utils';
4
4
  import { DEFAULT_DATALABELS_STYLE } from '../constants';
5
5
  import { prepareLegendSymbol } from './utils';
6
6
  export function prepareFunnelSeries(args) {
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getUniqId } from '~core/utils';
2
+ import { getUniqId } from '../utils';
3
3
  import { DEFAULT_DATALABELS_STYLE } from '../constants';
4
4
  import { DEFAULT_DATALABELS_PADDING } from './constants';
5
5
  import { prepareLegendSymbol } from './utils';
@@ -2,7 +2,7 @@ import { groupBy } from 'lodash';
2
2
  import clone from 'lodash/clone';
3
3
  import get from 'lodash/get';
4
4
  import merge from 'lodash/merge';
5
- import { getDefaultColorStops, getDomainForContinuousColorScale, getLabelsSize, getTextSizeFn, getTextWithElipsis, } from '~core/utils';
5
+ import { getDefaultColorStops, getDomainForContinuousColorScale, getLabelsSize, getTextSizeFn, getTextWithElipsis, } from '../utils';
6
6
  import { CONTINUOUS_LEGEND_SIZE, legendDefaults } from '../constants';
7
7
  export async function getPreparedLegend(args) {
8
8
  var _a, _b, _c, _d, _e, _f, _g;
@@ -1,6 +1,6 @@
1
1
  import get from 'lodash/get';
2
2
  import merge from 'lodash/merge';
3
- import { getUniqId } from '~core/utils';
3
+ import { getUniqId } from '../utils';
4
4
  import { DASH_STYLE, DEFAULT_DATALABELS_STYLE, LineCap, LineJoin, seriesRangeSliderOptionsDefaults, } from '../constants';
5
5
  import { DEFAULT_DATALABELS_PADDING, DEFAULT_HALO_OPTIONS, DEFAULT_LEGEND_SYMBOL_PADDING, DEFAULT_POINT_MARKER_OPTIONS, } from './constants';
6
6
  export const DEFAULT_LEGEND_SYMBOL_SIZE = 16;
@@ -1,6 +1,6 @@
1
1
  import { scaleOrdinal } from 'd3-scale';
2
2
  import get from 'lodash/get';
3
- import { getUniqId } from '~core/utils';
3
+ import { getUniqId } from '../utils';
4
4
  import { DEFAULT_DATALABELS_STYLE } from '../constants';
5
5
  import { DEFAULT_DATALABELS_PADDING } from './constants';
6
6
  import { prepareLegendSymbol } from './utils';
@@ -1,7 +1,7 @@
1
1
  import { scaleOrdinal } from 'd3-scale';
2
2
  import get from 'lodash/get';
3
3
  import merge from 'lodash/merge';
4
- import { getUniqId } from '~core/utils';
4
+ import { getUniqId } from '../utils';
5
5
  import { DEFAULT_DATALABELS_STYLE } from '../constants';
6
6
  import { DEFAULT_DATALABELS_PADDING, DEFAULT_HALO_OPTIONS, DEFAULT_POINT_MARKER_OPTIONS, } from './constants';
7
7
  import { prepareLegendSymbol } from './utils';
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getUniqId } from '~core/utils';
2
+ import { getUniqId } from '../utils';
3
3
  import { DEFAULT_DATALABELS_STYLE } from '../constants';
4
4
  import { prepareLegendSymbol } from './utils';
5
5
  export function prepareSankeySeries(args) {
@@ -1,6 +1,6 @@
1
1
  import get from 'lodash/get';
2
2
  import merge from 'lodash/merge';
3
- import { getSymbolType, getUniqId } from '~core/utils';
3
+ import { getSymbolType, getUniqId } from '../utils';
4
4
  import { seriesRangeSliderOptionsDefaults } from '../constants';
5
5
  import { DEFAULT_HALO_OPTIONS, DEFAULT_POINT_MARKER_OPTIONS } from './constants';
6
6
  import { prepareLegendSymbol } from './utils';
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getUniqId } from '~core/utils';
2
+ import { getUniqId } from '../utils';
3
3
  import { DEFAULT_DATALABELS_STYLE, LayoutAlgorithm } from '../constants';
4
4
  import { DEFAULT_DATALABELS_PADDING } from './constants';
5
5
  import { prepareLegendSymbol } from './utils';
@@ -1,5 +1,5 @@
1
1
  import get from 'lodash/get';
2
- import { getUniqId } from '~core/utils';
2
+ import { getUniqId } from '../utils';
3
3
  import { DEFAULT_DATALABELS_STYLE } from '../constants';
4
4
  import { DEFAULT_DATALABELS_PADDING } from './constants';
5
5
  import { prepareLegendSymbol } from './utils';
@@ -1,5 +1,5 @@
1
1
  import memoize from 'lodash/memoize';
2
- import { getSymbolBBoxWidth } from '~core/utils';
2
+ import { getSymbolBBoxWidth } from '../utils';
3
3
  import { SymbolType } from '../constants';
4
4
  import { getUniqId } from '../utils/misc';
5
5
  import { DEFAULT_LEGEND_SYMBOL_PADDING, DEFAULT_LEGEND_SYMBOL_SIZE } from './constants';
@@ -1,7 +1,7 @@
1
1
  import { sort } from 'd3-array';
2
2
  import { isEmpty } from 'lodash';
3
3
  import get from 'lodash/get';
4
- import { getAxisCategories } from '~core/utils';
4
+ import { getAxisCategories } from '../../utils';
5
5
  import { SERIES_TYPE } from '../../constants';
6
6
  function applyAxisCategoriesOrder({ series, axis, key, }) {
7
7
  var _a, _b;
@@ -1,7 +1,7 @@
1
1
  export * from './useAxis';
2
- export * from '~core/axes/types';
2
+ export * from '../core/axes/types';
3
3
  export * from './useAxisScales';
4
- export * from '~core/scales/types';
4
+ export * from '../core/scales/types';
5
5
  export * from './useBrush';
6
6
  export * from './useBrush/types';
7
7
  export * from './useCrosshair';
@@ -9,10 +9,10 @@ export * from './usePrevious';
9
9
  export * from './useRangeSlider';
10
10
  export * from './useRangeSlider/types';
11
11
  export * from './useSeries';
12
- export * from '~core/series/types';
12
+ export * from '../core/series/types';
13
13
  export * from './useShapes';
14
- export * from '~core/layout/split';
15
- export * from '~core/layout/split-types';
14
+ export * from '../core/layout/split';
15
+ export * from '../core/layout/split-types';
16
16
  export * from './useTooltip';
17
17
  export * from './useZoom';
18
18
  export * from './useZoom/types';
@@ -1,7 +1,7 @@
1
1
  export * from './useAxis';
2
- export * from '~core/axes/types';
2
+ export * from '../core/axes/types';
3
3
  export * from './useAxisScales';
4
- export * from '~core/scales/types';
4
+ export * from '../core/scales/types';
5
5
  export * from './useBrush';
6
6
  export * from './useBrush/types';
7
7
  export * from './useCrosshair';
@@ -9,10 +9,10 @@ export * from './usePrevious';
9
9
  export * from './useRangeSlider';
10
10
  export * from './useRangeSlider/types';
11
11
  export * from './useSeries';
12
- export * from '~core/series/types';
12
+ export * from '../core/series/types';
13
13
  export * from './useShapes';
14
- export * from '~core/layout/split';
15
- export * from '~core/layout/split-types';
14
+ export * from '../core/layout/split';
15
+ export * from '../core/layout/split-types';
16
16
  export * from './useTooltip';
17
17
  export * from './useZoom';
18
18
  export * from './useZoom/types';