@gravity-ui/charts 1.42.0 → 1.42.1
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.
- package/dist/cjs/components/AxisX/AxisX.js +2 -1
- package/dist/cjs/components/AxisX/prepare-axis-data.js +2 -2
- package/dist/cjs/components/AxisX/types.d.ts +1 -1
- package/dist/cjs/components/AxisY/AxisY.js +2 -1
- package/dist/cjs/components/AxisY/prepare-axis-data.js +1 -1
- package/dist/cjs/components/AxisY/prepare-axis-title.js +1 -1
- package/dist/cjs/components/AxisY/types.d.ts +1 -1
- package/dist/cjs/components/AxisY/utils.js +1 -1
- package/dist/cjs/components/ChartInner/index.js +3 -2
- package/dist/cjs/components/ChartInner/useChartInnerHandlers.d.ts +1 -1
- package/dist/cjs/components/ChartInner/useChartInnerHandlers.js +4 -4
- package/dist/cjs/components/ChartInner/useChartInnerProps.d.ts +1 -1
- package/dist/cjs/components/ChartInner/useChartInnerProps.js +4 -4
- package/dist/cjs/components/ChartInner/useChartInnerState.js +1 -1
- package/dist/cjs/components/ChartInner/useDefaultState.d.ts +1 -1
- package/dist/cjs/components/ChartInner/useDefaultState.js +4 -4
- package/dist/cjs/components/ChartInner/utils/axis.d.ts +2 -2
- package/dist/cjs/components/ChartInner/utils/axis.js +1 -1
- package/dist/cjs/components/ChartInner/utils/normalized-original-data.js +1 -1
- package/dist/cjs/components/ChartInner/utils/title.js +1 -1
- package/dist/cjs/components/ChartInner/utils/tooltip.js +1 -1
- package/dist/cjs/components/ChartInner/utils/zoom.d.ts +1 -1
- package/dist/cjs/components/ChartInner/utils/zoom.js +1 -1
- package/dist/cjs/components/Legend/index.js +4 -3
- package/dist/cjs/components/PlotTitle/index.d.ts +1 -1
- package/dist/cjs/components/RangeSlider/index.js +2 -1
- package/dist/cjs/components/Tooltip/DefaultTooltipContent/RowWithAggregation.js +1 -1
- package/dist/cjs/components/Tooltip/DefaultTooltipContent/index.js +2 -2
- package/dist/cjs/components/Tooltip/DefaultTooltipContent/utils.js +3 -3
- package/dist/cjs/components/index.js +3 -3
- package/dist/cjs/components/utils/axis-title.js +1 -1
- package/dist/cjs/components/utils/index.d.ts +1 -1
- package/dist/cjs/components/utils/index.js +1 -1
- package/dist/cjs/core/axes/index.d.ts +5 -0
- package/dist/cjs/core/axes/index.js +5 -0
- package/dist/{esm/hooks/useAxis → cjs/core/axes}/range-slider.js +1 -1
- package/dist/cjs/core/axes/types.d.ts +84 -0
- package/dist/{esm/hooks/useAxis → cjs/core/axes}/utils.js +1 -1
- package/dist/cjs/{hooks/useAxis → core/axes}/x-axis.js +4 -4
- package/dist/cjs/{hooks/useAxis → core/axes}/y-axis.d.ts +2 -2
- package/dist/cjs/{hooks/useAxis → core/axes}/y-axis.js +3 -3
- package/dist/cjs/core/index.d.ts +10 -0
- package/dist/cjs/core/index.js +10 -0
- package/dist/{esm/utils/chart → cjs/core/layout}/chart-dimensions.d.ts +3 -1
- package/dist/cjs/{utils/chart → core/layout}/chart-dimensions.js +1 -1
- package/dist/cjs/core/layout/index.d.ts +3 -0
- package/dist/cjs/core/layout/index.js +3 -0
- package/dist/cjs/{hooks/useSplit/index.d.ts → core/layout/split.d.ts} +1 -1
- package/dist/{esm/hooks/useSplit/index.js → cjs/core/layout/split.js} +1 -1
- package/dist/cjs/core/scales/index.d.ts +4 -0
- package/dist/cjs/core/scales/index.js +4 -0
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/utils.d.ts +3 -2
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/utils.js +2 -2
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/x-scale.d.ts +4 -2
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/x-scale.js +3 -3
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/y-scale.d.ts +3 -2
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/y-scale.js +3 -3
- package/dist/cjs/{hooks/useSeries → core/series}/constants.d.ts +1 -1
- package/dist/cjs/core/series/index.d.ts +4 -0
- package/dist/cjs/core/series/index.js +4 -0
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-area.d.ts +1 -1
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-area.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-bar-x.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-y.js +3 -3
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-funnel.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-heatmap.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-legend.d.ts +1 -1
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-legend.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-line.d.ts +1 -1
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-line.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-options.js +1 -1
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-pie.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-radar.d.ts +1 -1
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-radar.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-sankey.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-scatter.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-treemap.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-waterfall.js +2 -2
- package/dist/cjs/core/series/types.d.ts +346 -0
- package/dist/cjs/core/series/utils.d.ts +11 -0
- package/dist/cjs/core/series/utils.js +37 -0
- package/dist/{esm → cjs/core}/types/chart/base.d.ts +19 -0
- package/dist/{esm → cjs/core}/types/chart/tooltip.d.ts +1 -1
- package/dist/cjs/core/types/formatter.d.ts +40 -0
- package/dist/cjs/core/types/index.d.ts +96 -0
- package/dist/cjs/core/types/index.js +24 -0
- package/dist/{esm/utils/chart → cjs/core/utils}/common.js +2 -2
- package/dist/cjs/{utils/chart → core/utils}/format.d.ts +1 -1
- package/dist/cjs/{utils/chart → core/utils}/format.js +1 -1
- package/dist/cjs/{utils/chart → core/utils}/get-closest-data.js +2 -2
- package/dist/{esm/utils/chart → cjs/core/utils}/get-hovered-plots.d.ts +2 -2
- package/dist/cjs/{utils/chart → core/utils}/index.d.ts +4 -2
- package/dist/{esm/utils/chart → cjs/core/utils}/index.js +4 -2
- package/dist/cjs/{utils/chart → core/utils}/series/line.d.ts +1 -1
- package/dist/{esm/utils/chart → cjs/core/utils}/series/sorting.js +2 -2
- package/dist/cjs/{utils/chart → core/utils}/symbol.d.ts +1 -1
- package/dist/{esm/utils/chart → cjs/core/utils}/symbol.js +1 -1
- package/dist/cjs/{utils/chart → core/utils}/text.js +1 -1
- package/dist/{esm/utils/chart → cjs/core/utils}/ticks/datetime.js +1 -1
- package/dist/{esm → cjs/core}/validation/index.js +1 -1
- package/dist/cjs/{validation → core/validation}/validate-axes.js +1 -1
- package/dist/cjs/core/zoom/index.d.ts +1 -0
- package/dist/cjs/core/zoom/index.js +1 -0
- package/dist/cjs/{utils/chart → core/zoom}/zoom.d.ts +3 -1
- package/dist/cjs/{utils/chart → core/zoom}/zoom.js +1 -1
- package/dist/cjs/hooks/index.d.ts +5 -5
- package/dist/cjs/hooks/index.js +5 -5
- package/dist/cjs/hooks/useAxis/index.d.ts +4 -4
- package/dist/cjs/hooks/useAxis/index.js +3 -3
- package/dist/cjs/hooks/useAxis/types.d.ts +1 -84
- package/dist/cjs/hooks/useAxis/types.js +1 -1
- package/dist/cjs/hooks/useAxisScales/index.d.ts +4 -4
- package/dist/cjs/hooks/useAxisScales/index.js +6 -6
- package/dist/cjs/hooks/useBrush/types.d.ts +1 -1
- package/dist/cjs/hooks/useCrosshair/index.js +1 -1
- package/dist/cjs/hooks/useCrosshair/useCrosshairHover.js +1 -1
- package/dist/cjs/hooks/useRangeSlider/index.d.ts +1 -1
- package/dist/cjs/hooks/useRangeSlider/index.js +2 -2
- package/dist/cjs/hooks/useRangeSlider/types.d.ts +1 -1
- package/dist/cjs/hooks/useRangeSlider/utils.d.ts +1 -1
- package/dist/cjs/hooks/useRangeSlider/utils.js +1 -1
- package/dist/cjs/hooks/useSeries/index.d.ts +1 -1
- package/dist/cjs/hooks/useSeries/index.js +2 -2
- package/dist/cjs/hooks/useSeries/types.d.ts +1 -346
- package/dist/cjs/hooks/useSeries/types.js +1 -1
- package/dist/cjs/hooks/useSeries/utils.d.ts +1 -11
- package/dist/cjs/hooks/useSeries/utils.js +1 -37
- package/dist/cjs/hooks/useShapes/area/index.js +2 -1
- package/dist/cjs/hooks/useShapes/area/prepare-data.d.ts +2 -2
- package/dist/cjs/hooks/useShapes/area/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/bar-x/index.js +2 -1
- package/dist/cjs/hooks/useShapes/bar-x/prepare-data.d.ts +2 -2
- package/dist/cjs/hooks/useShapes/bar-x/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/bar-y/prepare-data.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/bar-y/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/funnel/index.js +2 -1
- package/dist/cjs/hooks/useShapes/funnel/prepare-data.js +1 -1
- package/dist/cjs/hooks/useShapes/funnel/types.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/heatmap/prepare-data.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/heatmap/prepare-data.js +1 -1
- package/dist/cjs/hooks/useShapes/index.d.ts +3 -3
- package/dist/cjs/hooks/useShapes/index.js +2 -2
- package/dist/cjs/hooks/useShapes/line/index.js +2 -1
- package/dist/cjs/hooks/useShapes/line/prepare-data.d.ts +2 -2
- package/dist/cjs/hooks/useShapes/line/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/line/types.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/marker.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/marker.js +3 -2
- package/dist/cjs/hooks/useShapes/pie/index.js +2 -1
- package/dist/cjs/hooks/useShapes/pie/prepare-data.js +3 -3
- package/dist/cjs/hooks/useShapes/radar/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/sankey/prepare-data.js +1 -1
- package/dist/cjs/hooks/useShapes/scatter/prepare-data.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/scatter/prepare-data.js +1 -1
- package/dist/cjs/hooks/useShapes/treemap/prepare-data.js +3 -3
- package/dist/cjs/hooks/useShapes/utils.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/utils.js +1 -1
- package/dist/cjs/hooks/useShapes/waterfall/index.js +3 -2
- package/dist/cjs/hooks/useShapes/waterfall/prepare-data.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/waterfall/prepare-data.js +2 -2
- package/dist/cjs/hooks/useZoom/index.d.ts +2 -2
- package/dist/cjs/hooks/useZoom/utils.d.ts +2 -2
- package/dist/cjs/hooks/useZoom/utils.js +1 -1
- package/dist/cjs/hooks/utils/bar-y.d.ts +1 -1
- package/dist/cjs/hooks/utils/bar-y.js +1 -1
- package/dist/cjs/hooks/utils/get-band-size.js +1 -1
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/types/chart-ui.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +1 -96
- package/dist/cjs/types/index.js +1 -24
- package/dist/cjs/utils/chart-ui/pie-center-text.js +2 -2
- package/dist/cjs/utils/index.d.ts +0 -3
- package/dist/cjs/utils/index.js +0 -3
- package/dist/esm/components/AxisX/AxisX.js +2 -1
- package/dist/esm/components/AxisX/prepare-axis-data.js +2 -2
- package/dist/esm/components/AxisX/types.d.ts +1 -1
- package/dist/esm/components/AxisY/AxisY.js +2 -1
- package/dist/esm/components/AxisY/prepare-axis-data.js +1 -1
- package/dist/esm/components/AxisY/prepare-axis-title.js +1 -1
- package/dist/esm/components/AxisY/types.d.ts +1 -1
- package/dist/esm/components/AxisY/utils.js +1 -1
- package/dist/esm/components/ChartInner/index.js +3 -2
- package/dist/esm/components/ChartInner/useChartInnerHandlers.d.ts +1 -1
- package/dist/esm/components/ChartInner/useChartInnerHandlers.js +4 -4
- package/dist/esm/components/ChartInner/useChartInnerProps.d.ts +1 -1
- package/dist/esm/components/ChartInner/useChartInnerProps.js +4 -4
- package/dist/esm/components/ChartInner/useChartInnerState.js +1 -1
- package/dist/esm/components/ChartInner/useDefaultState.d.ts +1 -1
- package/dist/esm/components/ChartInner/useDefaultState.js +4 -4
- package/dist/esm/components/ChartInner/utils/axis.d.ts +2 -2
- package/dist/esm/components/ChartInner/utils/axis.js +1 -1
- package/dist/esm/components/ChartInner/utils/normalized-original-data.js +1 -1
- package/dist/esm/components/ChartInner/utils/title.js +1 -1
- package/dist/esm/components/ChartInner/utils/tooltip.js +1 -1
- package/dist/esm/components/ChartInner/utils/zoom.d.ts +1 -1
- package/dist/esm/components/ChartInner/utils/zoom.js +1 -1
- package/dist/esm/components/Legend/index.js +4 -3
- package/dist/esm/components/PlotTitle/index.d.ts +1 -1
- package/dist/esm/components/RangeSlider/index.js +2 -1
- package/dist/esm/components/Tooltip/DefaultTooltipContent/RowWithAggregation.js +1 -1
- package/dist/esm/components/Tooltip/DefaultTooltipContent/index.js +2 -2
- package/dist/esm/components/Tooltip/DefaultTooltipContent/utils.js +3 -3
- package/dist/esm/components/index.js +3 -3
- package/dist/esm/components/utils/axis-title.js +1 -1
- package/dist/esm/components/utils/index.d.ts +1 -1
- package/dist/esm/components/utils/index.js +1 -1
- package/dist/esm/core/axes/index.d.ts +5 -0
- package/dist/esm/core/axes/index.js +5 -0
- package/dist/{cjs/hooks/useAxis → esm/core/axes}/range-slider.js +1 -1
- package/dist/esm/core/axes/types.d.ts +84 -0
- package/dist/{cjs/hooks/useAxis → esm/core/axes}/utils.js +1 -1
- package/dist/esm/{hooks/useAxis → core/axes}/x-axis.js +4 -4
- package/dist/esm/{hooks/useAxis → core/axes}/y-axis.d.ts +2 -2
- package/dist/esm/{hooks/useAxis → core/axes}/y-axis.js +3 -3
- package/dist/esm/core/index.d.ts +10 -0
- package/dist/esm/core/index.js +10 -0
- package/dist/{cjs/utils/chart → esm/core/layout}/chart-dimensions.d.ts +3 -1
- package/dist/esm/{utils/chart → core/layout}/chart-dimensions.js +1 -1
- package/dist/esm/core/layout/index.d.ts +3 -0
- package/dist/esm/core/layout/index.js +3 -0
- package/dist/esm/{hooks/useSplit/index.d.ts → core/layout/split.d.ts} +1 -1
- package/dist/{cjs/hooks/useSplit/index.js → esm/core/layout/split.js} +1 -1
- package/dist/esm/core/scales/index.d.ts +4 -0
- package/dist/esm/core/scales/index.js +4 -0
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/utils.d.ts +3 -2
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/utils.js +2 -2
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/x-scale.d.ts +4 -2
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/x-scale.js +3 -3
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/y-scale.d.ts +3 -2
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/y-scale.js +3 -3
- package/dist/esm/{hooks/useSeries → core/series}/constants.d.ts +1 -1
- package/dist/esm/core/series/index.d.ts +4 -0
- package/dist/esm/core/series/index.js +4 -0
- package/dist/esm/{hooks/useSeries → core/series}/prepare-area.d.ts +1 -1
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-area.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-bar-x.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-y.d.ts +3 -3
- package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-y.js +3 -3
- package/dist/esm/{hooks/useSeries → core/series}/prepare-funnel.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-heatmap.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-legend.d.ts +1 -1
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-legend.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-line.d.ts +1 -1
- package/dist/esm/{hooks/useSeries → core/series}/prepare-line.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-options.js +1 -1
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-pie.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-radar.d.ts +1 -1
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-radar.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-sankey.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-scatter.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-treemap.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-waterfall.js +2 -2
- package/dist/esm/core/series/types.d.ts +346 -0
- package/dist/esm/core/series/utils.d.ts +11 -0
- package/dist/esm/core/series/utils.js +37 -0
- package/dist/{cjs → esm/core}/types/chart/base.d.ts +19 -0
- package/dist/{cjs → esm/core}/types/chart/tooltip.d.ts +1 -1
- package/dist/esm/core/types/chart/zoom.js +1 -0
- package/dist/esm/core/types/formatter.d.ts +40 -0
- package/dist/esm/core/types/formatter.js +1 -0
- package/dist/esm/core/types/index.d.ts +96 -0
- package/dist/esm/core/types/index.js +24 -0
- package/dist/esm/core/types/misc.js +1 -0
- package/dist/{cjs/utils/chart → esm/core/utils}/common.js +2 -2
- package/dist/esm/{utils/chart → core/utils}/format.d.ts +1 -1
- package/dist/esm/{utils/chart → core/utils}/format.js +1 -1
- package/dist/esm/{utils/chart → core/utils}/get-closest-data.js +2 -2
- package/dist/{cjs/utils/chart → esm/core/utils}/get-hovered-plots.d.ts +2 -2
- package/dist/esm/{utils/chart → core/utils}/index.d.ts +4 -2
- package/dist/{cjs/utils/chart → esm/core/utils}/index.js +4 -2
- package/dist/esm/{utils/chart → core/utils}/series/line.d.ts +1 -1
- package/dist/{cjs/utils/chart → esm/core/utils}/series/sorting.js +2 -2
- package/dist/esm/{utils/chart → core/utils}/symbol.d.ts +1 -1
- package/dist/{cjs/utils/chart → esm/core/utils}/symbol.js +1 -1
- package/dist/esm/{utils/chart → core/utils}/text.js +1 -1
- package/dist/{cjs/utils/chart → esm/core/utils}/ticks/datetime.js +1 -1
- package/dist/esm/{utils/chart → core/utils}/tooltip.d.ts +1 -1
- package/dist/esm/core/utils/types.js +1 -0
- package/dist/{cjs → esm/core}/validation/index.js +1 -1
- package/dist/esm/{validation → core/validation}/validate-axes.js +1 -1
- package/dist/esm/core/zoom/index.d.ts +1 -0
- package/dist/esm/core/zoom/index.js +1 -0
- package/dist/esm/{utils/chart → core/zoom}/zoom.d.ts +3 -1
- package/dist/esm/{utils/chart → core/zoom}/zoom.js +1 -1
- package/dist/esm/hooks/index.d.ts +5 -5
- package/dist/esm/hooks/index.js +5 -5
- package/dist/esm/hooks/useAxis/index.d.ts +4 -4
- package/dist/esm/hooks/useAxis/index.js +3 -3
- package/dist/esm/hooks/useAxis/types.d.ts +1 -84
- package/dist/esm/hooks/useAxis/types.js +1 -1
- package/dist/esm/hooks/useAxisScales/index.d.ts +4 -4
- package/dist/esm/hooks/useAxisScales/index.js +6 -6
- package/dist/esm/hooks/useBrush/types.d.ts +1 -1
- package/dist/esm/hooks/useCrosshair/index.js +1 -1
- package/dist/esm/hooks/useCrosshair/useCrosshairHover.js +1 -1
- package/dist/esm/hooks/useRangeSlider/index.d.ts +1 -1
- package/dist/esm/hooks/useRangeSlider/index.js +2 -2
- package/dist/esm/hooks/useRangeSlider/types.d.ts +1 -1
- package/dist/esm/hooks/useRangeSlider/utils.d.ts +1 -1
- package/dist/esm/hooks/useRangeSlider/utils.js +1 -1
- package/dist/esm/hooks/useSeries/index.d.ts +1 -1
- package/dist/esm/hooks/useSeries/index.js +2 -2
- package/dist/esm/hooks/useSeries/types.d.ts +1 -346
- package/dist/esm/hooks/useSeries/types.js +1 -1
- package/dist/esm/hooks/useSeries/utils.d.ts +1 -11
- package/dist/esm/hooks/useSeries/utils.js +1 -37
- package/dist/esm/hooks/useShapes/area/index.js +2 -1
- package/dist/esm/hooks/useShapes/area/prepare-data.d.ts +2 -2
- package/dist/esm/hooks/useShapes/area/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/bar-x/index.js +2 -1
- package/dist/esm/hooks/useShapes/bar-x/prepare-data.d.ts +2 -2
- package/dist/esm/hooks/useShapes/bar-x/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/bar-y/prepare-data.d.ts +1 -1
- package/dist/esm/hooks/useShapes/bar-y/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/funnel/index.js +2 -1
- package/dist/esm/hooks/useShapes/funnel/prepare-data.js +1 -1
- package/dist/esm/hooks/useShapes/funnel/types.d.ts +1 -1
- package/dist/esm/hooks/useShapes/heatmap/prepare-data.d.ts +1 -1
- package/dist/esm/hooks/useShapes/heatmap/prepare-data.js +1 -1
- package/dist/esm/hooks/useShapes/index.d.ts +3 -3
- package/dist/esm/hooks/useShapes/index.js +2 -2
- package/dist/esm/hooks/useShapes/line/index.js +2 -1
- package/dist/esm/hooks/useShapes/line/prepare-data.d.ts +2 -2
- package/dist/esm/hooks/useShapes/line/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/line/types.d.ts +1 -1
- package/dist/esm/hooks/useShapes/marker.d.ts +1 -1
- package/dist/esm/hooks/useShapes/marker.js +3 -2
- package/dist/esm/hooks/useShapes/pie/index.js +2 -1
- package/dist/esm/hooks/useShapes/pie/prepare-data.js +3 -3
- package/dist/esm/hooks/useShapes/radar/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/sankey/prepare-data.js +1 -1
- package/dist/esm/hooks/useShapes/scatter/prepare-data.d.ts +1 -1
- package/dist/esm/hooks/useShapes/scatter/prepare-data.js +1 -1
- package/dist/esm/hooks/useShapes/treemap/prepare-data.js +3 -3
- package/dist/esm/hooks/useShapes/utils.d.ts +1 -1
- package/dist/esm/hooks/useShapes/utils.js +1 -1
- package/dist/esm/hooks/useShapes/waterfall/index.js +3 -2
- package/dist/esm/hooks/useShapes/waterfall/prepare-data.d.ts +1 -1
- package/dist/esm/hooks/useShapes/waterfall/prepare-data.js +2 -2
- package/dist/esm/hooks/useZoom/index.d.ts +2 -2
- package/dist/esm/hooks/useZoom/utils.d.ts +2 -2
- package/dist/esm/hooks/useZoom/utils.js +1 -1
- package/dist/esm/hooks/utils/bar-y.d.ts +1 -1
- package/dist/esm/hooks/utils/bar-y.js +1 -1
- package/dist/esm/hooks/utils/get-band-size.js +1 -1
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +3 -2
- package/dist/esm/types/chart-ui.d.ts +1 -1
- package/dist/esm/types/index.d.ts +1 -96
- package/dist/esm/types/index.js +1 -24
- package/dist/esm/utils/chart-ui/pie-center-text.js +2 -2
- package/dist/esm/utils/index.d.ts +0 -3
- package/dist/esm/utils/index.js +0 -3
- package/package.json +1 -1
- package/dist/cjs/types/formatter.d.ts +0 -13
- package/dist/esm/types/formatter.d.ts +0 -13
- /package/dist/cjs/{hooks/useAxis → core/axes}/range-slider.d.ts +0 -0
- /package/dist/cjs/{hooks/useAxisScales → core/axes}/types.js +0 -0
- /package/dist/cjs/{hooks/useAxis → core/axes}/utils.d.ts +0 -0
- /package/dist/cjs/{hooks/useAxis → core/axes}/x-axis.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/axis.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/axis.js +0 -0
- /package/dist/cjs/{constants → core/constants}/chart-types.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/chart-types.js +0 -0
- /package/dist/cjs/{constants → core/constants}/datetime.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/datetime.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/axis.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/axis.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/brush.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/brush.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/data-labels.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/data-labels.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/index.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/index.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/legend.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/legend.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/series-options.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/series-options.js +0 -0
- /package/dist/cjs/{constants → core/constants}/index.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/index.js +0 -0
- /package/dist/cjs/{constants → core/constants}/layout-algorithms.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/layout-algorithms.js +0 -0
- /package/dist/cjs/{constants → core/constants}/line-styles.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/line-styles.js +0 -0
- /package/dist/cjs/{constants → core/constants}/misc.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/misc.js +0 -0
- /package/dist/cjs/{constants → core/constants}/palette.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/palette.js +0 -0
- /package/dist/cjs/{constants → core/constants}/symbol-types.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/symbol-types.js +0 -0
- /package/dist/cjs/{constants → core/constants}/tooltip.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/tooltip.js +0 -0
- /package/dist/cjs/{constants → core/constants}/typography.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/typography.js +0 -0
- /package/dist/cjs/{constants → core/constants}/zoom.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/zoom.js +0 -0
- /package/dist/cjs/{i18n → core/i18n}/index.d.ts +0 -0
- /package/dist/cjs/{i18n → core/i18n}/index.js +0 -0
- /package/dist/cjs/{i18n → core/i18n}/keysets/en.json +0 -0
- /package/dist/cjs/{i18n → core/i18n}/keysets/ru.json +0 -0
- /package/dist/cjs/{hooks/useSplit/types.d.ts → core/layout/split-types.d.ts} +0 -0
- /package/dist/cjs/{hooks/useSplit/types.js → core/layout/split-types.js} +0 -0
- /package/dist/cjs/{hooks/useAxisScales → core/scales}/types.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/scales}/types.js +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/constants.js +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-x.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-y.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-funnel.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-heatmap.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-options.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-pie.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-sankey.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-scatter.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-treemap.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-waterfall.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepareSeries.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepareSeries.js +0 -0
- /package/dist/{esm/hooks/useAxisScales → cjs/core/series}/types.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/area.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/area.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/axis.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/axis.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/bar-x.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/bar-x.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/bar-y.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/bar-y.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/base.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/brush.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/brush.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/chart.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/chart.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/funnel.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/funnel.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/halo.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/halo.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/heatmap.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/heatmap.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/legend.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/legend.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/line.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/line.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/marker.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/marker.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/pie.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/pie.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/radar.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/radar.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/sankey.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/sankey.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/scatter.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/scatter.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/series.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/series.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/split.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/split.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/title.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/title.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/tooltip.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/treemap.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/treemap.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/waterfall.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/waterfall.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/zoom.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/zoom.js +0 -0
- /package/dist/cjs/{types → core/types}/formatter.js +0 -0
- /package/dist/cjs/{types → core/types}/misc.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/misc.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/array.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/array.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis/common.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis/common.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis/x-axis.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis/x-axis.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis-generators/bottom.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis-generators/bottom.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis-generators/index.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis-generators/index.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/color.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/color.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/common.d.ts +0 -0
- /package/dist/cjs/{utils → core/utils}/dispatcher.d.ts +0 -0
- /package/dist/cjs/{utils → core/utils}/dispatcher.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/get-closest-data.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/get-hovered-plots.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/labels.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/labels.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/legend.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/legend.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/math.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/math.js +0 -0
- /package/dist/cjs/{utils → core/utils}/misc.d.ts +0 -0
- /package/dist/cjs/{utils → core/utils}/misc.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/index.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/index.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/line.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/sorting.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/waterfall.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/waterfall.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series-type-guards.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series-type-guards.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/text.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/ticks/datetime.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/ticks/index.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/ticks/index.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/time.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/time.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/tooltip.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/tooltip.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/types.d.ts +0 -0
- /package/dist/{esm/hooks/useSplit → cjs/core/utils}/types.js +0 -0
- /package/dist/cjs/{validation → core/validation}/index.d.ts +0 -0
- /package/dist/cjs/{validation → core/validation}/validate-axes.d.ts +0 -0
- /package/dist/esm/{hooks/useAxis → core/axes}/range-slider.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/axes}/types.js +0 -0
- /package/dist/esm/{hooks/useAxis → core/axes}/utils.d.ts +0 -0
- /package/dist/esm/{hooks/useAxis → core/axes}/x-axis.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/axis.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/axis.js +0 -0
- /package/dist/esm/{constants → core/constants}/chart-types.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/chart-types.js +0 -0
- /package/dist/esm/{constants → core/constants}/datetime.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/datetime.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/axis.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/axis.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/brush.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/brush.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/data-labels.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/data-labels.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/index.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/index.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/legend.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/legend.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/series-options.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/series-options.js +0 -0
- /package/dist/esm/{constants → core/constants}/index.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/index.js +0 -0
- /package/dist/esm/{constants → core/constants}/layout-algorithms.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/layout-algorithms.js +0 -0
- /package/dist/esm/{constants → core/constants}/line-styles.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/line-styles.js +0 -0
- /package/dist/esm/{constants → core/constants}/misc.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/misc.js +0 -0
- /package/dist/esm/{constants → core/constants}/palette.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/palette.js +0 -0
- /package/dist/esm/{constants → core/constants}/symbol-types.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/symbol-types.js +0 -0
- /package/dist/esm/{constants → core/constants}/tooltip.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/tooltip.js +0 -0
- /package/dist/esm/{constants → core/constants}/typography.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/typography.js +0 -0
- /package/dist/esm/{constants → core/constants}/zoom.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/zoom.js +0 -0
- /package/dist/esm/{i18n → core/i18n}/index.d.ts +0 -0
- /package/dist/esm/{i18n → core/i18n}/index.js +0 -0
- /package/dist/esm/{i18n → core/i18n}/keysets/en.json +0 -0
- /package/dist/esm/{i18n → core/i18n}/keysets/ru.json +0 -0
- /package/dist/esm/{hooks/useSplit/types.d.ts → core/layout/split-types.d.ts} +0 -0
- /package/dist/esm/{types/chart/area.js → core/layout/split-types.js} +0 -0
- /package/dist/esm/{hooks/useAxisScales → core/scales}/types.d.ts +0 -0
- /package/dist/esm/{types/chart/axis.js → core/scales/types.js} +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/constants.js +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-x.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-funnel.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-heatmap.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-options.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-pie.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-sankey.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-scatter.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-treemap.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-waterfall.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepareSeries.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepareSeries.js +0 -0
- /package/dist/esm/{types/chart/bar-x.js → core/series/types.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/area.d.ts +0 -0
- /package/dist/esm/{types/chart/bar-y.js → core/types/chart/area.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/axis.d.ts +0 -0
- /package/dist/esm/{types/chart/base.js → core/types/chart/axis.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/bar-x.d.ts +0 -0
- /package/dist/esm/{types/chart/brush.js → core/types/chart/bar-x.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/bar-y.d.ts +0 -0
- /package/dist/esm/{types/chart/chart.js → core/types/chart/bar-y.js} +0 -0
- /package/dist/esm/{types/chart/funnel.js → core/types/chart/base.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/brush.d.ts +0 -0
- /package/dist/esm/{types/chart/halo.js → core/types/chart/brush.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/chart.d.ts +0 -0
- /package/dist/esm/{types/chart/heatmap.js → core/types/chart/chart.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/funnel.d.ts +0 -0
- /package/dist/esm/{types/chart/legend.js → core/types/chart/funnel.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/halo.d.ts +0 -0
- /package/dist/esm/{types/chart/line.js → core/types/chart/halo.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/heatmap.d.ts +0 -0
- /package/dist/esm/{types/chart/marker.js → core/types/chart/heatmap.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/legend.d.ts +0 -0
- /package/dist/esm/{types/chart/pie.js → core/types/chart/legend.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/line.d.ts +0 -0
- /package/dist/esm/{types/chart/radar.js → core/types/chart/line.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/marker.d.ts +0 -0
- /package/dist/esm/{types/chart/sankey.js → core/types/chart/marker.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/pie.d.ts +0 -0
- /package/dist/esm/{types/chart/scatter.js → core/types/chart/pie.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/radar.d.ts +0 -0
- /package/dist/esm/{types/chart/series.js → core/types/chart/radar.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/sankey.d.ts +0 -0
- /package/dist/esm/{types/chart/split.js → core/types/chart/sankey.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/scatter.d.ts +0 -0
- /package/dist/esm/{types/chart/title.js → core/types/chart/scatter.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/series.d.ts +0 -0
- /package/dist/esm/{types/chart/tooltip.js → core/types/chart/series.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/split.d.ts +0 -0
- /package/dist/esm/{types/chart/treemap.js → core/types/chart/split.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/title.d.ts +0 -0
- /package/dist/esm/{types/chart/waterfall.js → core/types/chart/title.js} +0 -0
- /package/dist/esm/{types/chart/zoom.js → core/types/chart/tooltip.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/treemap.d.ts +0 -0
- /package/dist/esm/{types/formatter.js → core/types/chart/treemap.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/waterfall.d.ts +0 -0
- /package/dist/esm/{types/misc.js → core/types/chart/waterfall.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/zoom.d.ts +0 -0
- /package/dist/esm/{types → core/types}/misc.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/array.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/array.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis/common.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis/common.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis/x-axis.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis/x-axis.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis-generators/bottom.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis-generators/bottom.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis-generators/index.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis-generators/index.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/color.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/color.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/common.d.ts +0 -0
- /package/dist/esm/{utils → core/utils}/dispatcher.d.ts +0 -0
- /package/dist/esm/{utils → core/utils}/dispatcher.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/get-closest-data.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/get-hovered-plots.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/labels.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/labels.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/legend.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/legend.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/math.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/math.js +0 -0
- /package/dist/esm/{utils → core/utils}/misc.d.ts +0 -0
- /package/dist/esm/{utils → core/utils}/misc.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/index.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/index.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/line.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/sorting.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/waterfall.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/waterfall.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series-type-guards.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series-type-guards.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/text.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/ticks/datetime.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/ticks/index.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/ticks/index.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/time.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/time.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/tooltip.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/types.d.ts +0 -0
- /package/dist/esm/{validation → core/validation}/index.d.ts +0 -0
- /package/dist/esm/{validation → core/validation}/validate-axes.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AxisDomain } from 'd3-axis';
|
|
2
|
-
import type { PreparedAxis } from '../../hooks';
|
|
3
2
|
import type { CustomFormat, ValueFormat } from '../../types';
|
|
3
|
+
import type { PreparedAxis } from '../axes/types';
|
|
4
4
|
export declare function getFormattedValue(args: {
|
|
5
5
|
value: string | number | undefined | null;
|
|
6
6
|
format?: ValueFormat | CustomFormat;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dateTimeUtc } from '@gravity-ui/date-utils';
|
|
2
2
|
import capitalize from 'lodash/capitalize';
|
|
3
|
-
import { DEFAULT_DATE_FORMAT } from '../../constants';
|
|
4
3
|
import { formatNumber, getDefaultUnit } from '../../libs';
|
|
4
|
+
import { DEFAULT_DATE_FORMAT } from '../constants';
|
|
5
5
|
import { DATETIME_LABEL_FORMATS, TIME_UNITS, getDefaultDateFormat, getDefaultTimeOnlyFormat, } from './time';
|
|
6
6
|
const LETTER_MOUNTH_AT_START_FORMAT_REGEXP = /^M{3,}/;
|
|
7
7
|
function getFormattedDate(args) {
|
|
@@ -28,8 +28,8 @@ function getClosestPointsByXValue(x, y, points) {
|
|
|
28
28
|
if (sorted.length === 0 || closestXIndex === -1) {
|
|
29
29
|
return [];
|
|
30
30
|
}
|
|
31
|
-
const closestX = sorted[closestXIndex].x;
|
|
32
|
-
const filtered = points.filter((p) => p.x === closestX);
|
|
31
|
+
const closestX = Math.round(sorted[closestXIndex].x);
|
|
32
|
+
const filtered = points.filter((p) => Math.round(p.x) === closestX);
|
|
33
33
|
const groupedBySeries = Object.values(groupBy(filtered, (p) => get(p.series, 'id'))).map((items) => {
|
|
34
34
|
const sortedByY = sort(items, (p) => p.y0);
|
|
35
35
|
const index = getClosestYIndex(sortedByY, y);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PreparedXAxis, PreparedYAxis } from '../../hooks';
|
|
2
|
-
import type { ChartScale } from '../../hooks/useAxisScales/types';
|
|
3
1
|
import type { AxisPlotBand, AxisPlotLine } from '../../types';
|
|
2
|
+
import type { PreparedXAxis, PreparedYAxis } from '../axes/types';
|
|
3
|
+
import type { ChartScale } from '../scales/types';
|
|
4
4
|
export declare function getHoveredPlots(args: {
|
|
5
5
|
pointerX: number;
|
|
6
6
|
pointerY: number;
|
|
@@ -10,6 +10,8 @@ export * from './series-type-guards';
|
|
|
10
10
|
export * from './symbol';
|
|
11
11
|
export * from './text';
|
|
12
12
|
export * from './time';
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
13
|
+
export * from '../zoom/zoom';
|
|
14
|
+
export * from '../layout/chart-dimensions';
|
|
15
15
|
export * from './common';
|
|
16
|
+
export * from './misc';
|
|
17
|
+
export * from './dispatcher';
|
|
@@ -10,6 +10,8 @@ export * from './series-type-guards';
|
|
|
10
10
|
export * from './symbol';
|
|
11
11
|
export * from './text';
|
|
12
12
|
export * from './time';
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
13
|
+
export * from '../zoom/zoom';
|
|
14
|
+
export * from '../layout/chart-dimensions';
|
|
15
15
|
export * from './common';
|
|
16
|
+
export * from './misc';
|
|
17
|
+
export * from './dispatcher';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DashStyle } from 'src/constants';
|
|
1
|
+
import type { DashStyle } from 'src/core/constants';
|
|
2
2
|
export declare function getLineDashArray(dashStyle: DashStyle, strokeWidth?: number): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { sort } from 'd3-array';
|
|
2
2
|
import { isEmpty } from 'lodash';
|
|
3
3
|
import get from 'lodash/get';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { getAxisCategories } from '~core/utils';
|
|
5
|
+
import { SERIES_TYPE } from '../../constants';
|
|
6
6
|
function applyAxisCategoriesOrder({ series, axis, key, }) {
|
|
7
7
|
var _a, _b;
|
|
8
8
|
const originalCategories = (_a = axis === null || axis === void 0 ? void 0 : axis.categories) !== null && _a !== void 0 ? _a : [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SymbolType } from '
|
|
1
|
+
import { SymbolType } from '../constants';
|
|
2
2
|
export declare const getSymbolType: (index: number) => SymbolType;
|
|
3
3
|
export declare const getSymbol: (symbolType: `${SymbolType}`) => import("d3-shape").SymbolType;
|
|
4
4
|
export declare function getSymbolBBoxWidth({ symbolSize, symbolType, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { symbolCircle, symbolDiamond2, symbolSquare, symbolTriangle2 } from 'd3-shape';
|
|
2
|
-
import { SymbolType } from '
|
|
2
|
+
import { SymbolType } from '../constants';
|
|
3
3
|
export const getSymbolType = (index) => {
|
|
4
4
|
const scatterStyles = Object.values(SymbolType);
|
|
5
5
|
return scatterStyles[index % scatterStyles.length];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { bisector, tickStep } from 'd3-array';
|
|
2
2
|
import { utcDay, utcHour, utcMillisecond, utcMinute, utcMonth, utcSecond, utcMonday as utcWeek, utcYear, } from 'd3-time';
|
|
3
|
-
import { DAY, HOUR, MINUTE, MONTH, SECOND, WEEK, YEAR } from '
|
|
3
|
+
import { DAY, HOUR, MINUTE, MONTH, SECOND, WEEK, YEAR } from '../../constants';
|
|
4
4
|
const tickIntervals = [
|
|
5
5
|
[utcSecond, 1, SECOND],
|
|
6
6
|
[utcSecond, 5, 5 * SECOND],
|
|
@@ -4,4 +4,4 @@ export declare function getDefaultTooltipHeaderFormat({ seriesData, yAxes, xAxis
|
|
|
4
4
|
yAxes?: ChartYAxis[];
|
|
5
5
|
xAxis?: ChartXAxis;
|
|
6
6
|
dateTimeLabelFormats?: ChartTooltip['dateTimeLabelFormats'];
|
|
7
|
-
}): import("
|
|
7
|
+
}): import("..").ValueFormat | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
2
|
import isEmpty from 'lodash/isEmpty';
|
|
3
|
+
import { CHART_ERROR_CODE, ChartError } from '../../libs';
|
|
3
4
|
import { DEFAULT_AXIS_TYPE, SERIES_TYPE, TOOLTIP_TOTALS_BUILT_IN_AGGREGATION } from '../constants';
|
|
4
5
|
import { i18n } from '../i18n';
|
|
5
|
-
import { CHART_ERROR_CODE, ChartError } from '../libs';
|
|
6
6
|
import { validateAxes } from './validate-axes';
|
|
7
7
|
function getTypeOf(value) {
|
|
8
8
|
return typeof value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CHART_ERROR_CODE, ChartError } from '../../libs';
|
|
1
2
|
import { AXIS_TYPE } from '../constants';
|
|
2
3
|
import { i18n } from '../i18n';
|
|
3
|
-
import { CHART_ERROR_CODE, ChartError } from '../libs';
|
|
4
4
|
const AVAILABLE_AXIS_TYPES = Object.values(AXIS_TYPE);
|
|
5
5
|
function validateCategories(axis) {
|
|
6
6
|
if (!axis.categories || !Array.isArray(axis.categories) || axis.categories.length === 0) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './zoom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './zoom';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RangeSliderState } from '../../hooks';
|
|
2
2
|
import type { ZoomState } from '../../hooks/useZoom/types';
|
|
3
3
|
import type { ChartXAxis, ChartYAxis } from '../../types';
|
|
4
|
+
import type { PreparedXAxis, PreparedYAxis } from '../axes/types';
|
|
5
|
+
import type { PreparedSeries } from '../series';
|
|
4
6
|
export declare function getZoomedSeriesData(args: {
|
|
5
7
|
seriesData: PreparedSeries[];
|
|
6
8
|
zoomState: Partial<ZoomState>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './useAxis';
|
|
2
|
-
export * from '
|
|
2
|
+
export * from '~core/axes/types';
|
|
3
3
|
export * from './useAxisScales';
|
|
4
|
-
export * from '
|
|
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 '
|
|
12
|
+
export * from '~core/series/types';
|
|
13
13
|
export * from './useShapes';
|
|
14
|
-
export * from '
|
|
15
|
-
export * from '
|
|
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';
|
package/dist/esm/hooks/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './useAxis';
|
|
2
|
-
export * from '
|
|
2
|
+
export * from '~core/axes/types';
|
|
3
3
|
export * from './useAxisScales';
|
|
4
|
-
export * from '
|
|
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 '
|
|
12
|
+
export * from '~core/series/types';
|
|
13
13
|
export * from './useShapes';
|
|
14
|
-
export * from '
|
|
15
|
-
export * from '
|
|
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
|
+
import type { AxesState } from '~core/axes/types';
|
|
2
|
+
import type { PreparedLegend, PreparedSeries, PreparedSeriesOptions } from '~core/series/types';
|
|
1
3
|
import type { ChartXAxis, ChartYAxis, LegendConfig } from '../../types';
|
|
2
4
|
import type { PreparedChart } from '../types';
|
|
3
|
-
import type { PreparedLegend, PreparedSeries, PreparedSeriesOptions } from '../useSeries/types';
|
|
4
|
-
import type { AxesState } from './types';
|
|
5
5
|
interface UseAxesProps {
|
|
6
6
|
height: number;
|
|
7
7
|
preparedChart: PreparedChart;
|
|
@@ -15,8 +15,8 @@ interface UseAxesProps {
|
|
|
15
15
|
yAxis?: ChartYAxis[];
|
|
16
16
|
}
|
|
17
17
|
export declare function getAxes(props: UseAxesProps): Promise<{
|
|
18
|
-
xAxis: import("
|
|
19
|
-
yAxis: import("
|
|
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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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,84 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { AxisCrosshair, AxisPlotBand, BaseTextStyle, ChartAxis, ChartAxisLabels, ChartAxisRangeSlider, ChartAxisTitleAlignment, ChartAxisTitleRotation, ChartAxisType, DeepRequired, MeaningfulAny, PlotLayerPlacement } from '../../types';
|
|
3
|
-
type PreparedAxisLabels = Omit<ChartAxisLabels, 'enabled' | 'padding' | 'style' | 'autoRotation'> & Required<Pick<ChartAxisLabels, 'enabled' | 'padding' | 'margin' | 'rotation' | 'html'>> & {
|
|
4
|
-
style: BaseTextStyle;
|
|
5
|
-
rotation: number;
|
|
6
|
-
height: number;
|
|
7
|
-
width: number;
|
|
8
|
-
lineHeight: number;
|
|
9
|
-
maxWidth: number;
|
|
10
|
-
};
|
|
11
|
-
export type PreparedAxisPlotBand = Required<AxisPlotBand> & {
|
|
12
|
-
custom?: MeaningfulAny;
|
|
13
|
-
label: {
|
|
14
|
-
text: string;
|
|
15
|
-
style: BaseTextStyle;
|
|
16
|
-
padding: number;
|
|
17
|
-
qa?: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
type PreparedAxisCrosshair = Required<AxisCrosshair>;
|
|
21
|
-
export type PreparedAxisPlotLine = {
|
|
22
|
-
value: number;
|
|
23
|
-
color: string;
|
|
24
|
-
width: number;
|
|
25
|
-
dashStyle: DashStyle;
|
|
26
|
-
opacity: number;
|
|
27
|
-
layerPlacement: PlotLayerPlacement;
|
|
28
|
-
custom?: MeaningfulAny;
|
|
29
|
-
label: {
|
|
30
|
-
text: string;
|
|
31
|
-
style: BaseTextStyle;
|
|
32
|
-
padding: number;
|
|
33
|
-
qa?: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export type PreparedRangeSlider = DeepRequired<Omit<ChartAxisRangeSlider, 'defaultRange'>> & {
|
|
37
|
-
defaultRange?: ChartAxisRangeSlider['defaultRange'];
|
|
38
|
-
};
|
|
39
|
-
export type PreparedAxisTickMarks = {
|
|
40
|
-
enabled: boolean;
|
|
41
|
-
length: number;
|
|
42
|
-
};
|
|
43
|
-
type PreparedBaseAxis = Omit<ChartAxis, 'type' | 'labels' | 'plotLines' | 'plotBands'> & {
|
|
44
|
-
type: ChartAxisType;
|
|
45
|
-
labels: PreparedAxisLabels;
|
|
46
|
-
title: {
|
|
47
|
-
height: number;
|
|
48
|
-
width: number;
|
|
49
|
-
text: string;
|
|
50
|
-
margin: number;
|
|
51
|
-
style: BaseTextStyle;
|
|
52
|
-
align: ChartAxisTitleAlignment;
|
|
53
|
-
maxRowCount: number;
|
|
54
|
-
rotation: ChartAxisTitleRotation;
|
|
55
|
-
maxWidth: number;
|
|
56
|
-
html: boolean;
|
|
57
|
-
};
|
|
58
|
-
min?: number;
|
|
59
|
-
grid: {
|
|
60
|
-
enabled: boolean;
|
|
61
|
-
};
|
|
62
|
-
maxPadding: number;
|
|
63
|
-
ticks: {
|
|
64
|
-
pixelInterval?: number;
|
|
65
|
-
};
|
|
66
|
-
tickMarks: PreparedAxisTickMarks;
|
|
67
|
-
plotIndex: number;
|
|
68
|
-
plotLines: PreparedAxisPlotLine[];
|
|
69
|
-
plotBands: PreparedAxisPlotBand[];
|
|
70
|
-
crosshair: PreparedAxisCrosshair;
|
|
71
|
-
};
|
|
72
|
-
export type PreparedXAxis = PreparedBaseAxis & {
|
|
73
|
-
rangeSlider: PreparedRangeSlider;
|
|
74
|
-
position: 'bottom';
|
|
75
|
-
};
|
|
76
|
-
export type PreparedYAxis = PreparedBaseAxis & {
|
|
77
|
-
position: 'left' | 'right';
|
|
78
|
-
};
|
|
79
|
-
export type PreparedAxis = PreparedXAxis | PreparedYAxis;
|
|
80
|
-
export type AxesState = {
|
|
81
|
-
xAxis: PreparedXAxis | null;
|
|
82
|
-
yAxis: PreparedYAxis[];
|
|
83
|
-
};
|
|
84
|
-
export {};
|
|
1
|
+
export * from '~core/axes/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '~core/axes/types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { ChartScale } from '~core/scales/types';
|
|
1
2
|
import type { PreparedAxis, PreparedSeries, PreparedSplit, PreparedYAxis, RangeSliderState, ZoomState } from '../../hooks';
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
export { createYScale } from './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;
|
|
@@ -18,7 +18,7 @@ type ReturnValue = {
|
|
|
18
18
|
yScale?: (ChartScale | undefined)[];
|
|
19
19
|
};
|
|
20
20
|
export declare const createScales: (args: Args) => {
|
|
21
|
-
xScale: import("d3-scale").
|
|
21
|
+
xScale: import("d3-scale").ScaleBand<string> | import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleTime<number, number, never> | undefined;
|
|
22
22
|
yScale: (ChartScale | undefined)[];
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
@@ -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
7
|
import { getTickValues } from '../../components/AxisY/utils';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { createXScale } from './x-scale';
|
|
7
|
-
import { createYScale } from './y-scale';
|
|
8
|
-
export { createXScale } from './x-scale';
|
|
9
|
-
export { createYScale } from './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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
5
|
-
import { isBandScale } from '
|
|
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,7 +1,7 @@
|
|
|
1
|
+
import type { ChartScale } from '~core/scales/types';
|
|
1
2
|
import type { ChartXAxis, ChartYAxis, LegendConfig } from '../../types';
|
|
2
3
|
import type { PreparedChart } from '../types';
|
|
3
4
|
import type { PreparedRangeSlider, PreparedXAxis, PreparedYAxis } from '../useAxis/types';
|
|
4
|
-
import type { ChartScale } from '../useAxisScales/types';
|
|
5
5
|
import type { BrushSelection, UseBrushProps } from '../useBrush/types';
|
|
6
6
|
import type { PreparedLegend, PreparedSeries, PreparedSeriesOptions } from '../useSeries/types';
|
|
7
7
|
export type RangeSliderState = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { ChartScale } from '~core/scales/types';
|
|
1
2
|
import type { PreparedChart } from '../types';
|
|
2
3
|
import type { PreparedRangeSlider } from '../useAxis/types';
|
|
3
|
-
import type { ChartScale } from '../useAxisScales/types';
|
|
4
4
|
import type { BrushSelection } from '../useBrush/types';
|
|
5
5
|
import type { PreparedLegend } from '../useSeries/types';
|
|
6
6
|
import type { RangeSliderState } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PreparedLegend, PreparedSeries } from '~core/series/types';
|
|
1
2
|
import type { ChartData } from '../../types';
|
|
2
|
-
import type { PreparedLegend, PreparedSeries } from './types';
|
|
3
3
|
export declare const getVisibleSeries: ({ preparedSeries, activeLegendItems, }: {
|
|
4
4
|
preparedSeries: PreparedSeries[];
|
|
5
5
|
activeLegendItems: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { group } from 'd3-array';
|
|
2
2
|
import { scaleOrdinal } from 'd3-scale';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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) {
|