@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,9 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RangeSliderState } from '../../hooks';
|
|
2
2
|
import type { ChartAxis, ChartSeries } from '../../types';
|
|
3
|
+
import type { PreparedAxis } from '../axes/types';
|
|
4
|
+
import type { PreparedSeries } from '../series';
|
|
3
5
|
export declare function createXScale(args: {
|
|
4
6
|
axis: PreparedAxis | ChartAxis;
|
|
5
7
|
boundsWidth: number;
|
|
6
8
|
series: (PreparedSeries | ChartSeries)[];
|
|
7
9
|
rangeSliderState?: RangeSliderState;
|
|
8
10
|
zoomStateX?: [number, number];
|
|
9
|
-
}): import("d3-scale").
|
|
11
|
+
}): import("d3-scale").ScaleBand<string> | import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleTime<number, number, never> | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { getDefaultMaxXAxisValue, getDefaultMinXAxisValue, getDomainDataXBySeries, getEffectiveXRange, } from '~core/utils';
|
|
5
|
+
import { getBandSize } from '../../hooks/utils/get-band-size';
|
|
6
|
+
import { DEFAULT_AXIS_TYPE, SERIES_TYPE } from '../constants';
|
|
7
7
|
import { checkIsPointDomain, filterCategoriesByVisibleSeries, getMinMaxPropsOrState, hasOnlyMarkerSeries, validateArrayData, } from './utils';
|
|
8
8
|
const X_AXIS_ZOOM_PADDING = 0.02;
|
|
9
9
|
function calculateXAxisPadding(series) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { PreparedAxis, PreparedSeries } from '../../hooks';
|
|
2
1
|
import type { ChartSeries } from '../../types';
|
|
2
|
+
import type { PreparedAxis } from '../axes/types';
|
|
3
|
+
import type { PreparedSeries } from '../series';
|
|
3
4
|
export declare function createYScale(args: {
|
|
4
5
|
axis: PreparedAxis;
|
|
5
6
|
boundsHeight: number;
|
|
@@ -7,4 +8,4 @@ export declare function createYScale(args: {
|
|
|
7
8
|
primaryAxis?: PreparedAxis;
|
|
8
9
|
primaryTicksCount?: number;
|
|
9
10
|
zoomStateY?: [number, number];
|
|
10
|
-
}): import("d3-scale").
|
|
11
|
+
}): import("d3-scale").ScaleBand<string> | import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleTime<number, number, never> | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
5
|
import { getTickValues } from '../../components/AxisY/utils';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { getBandSize } from '../utils/get-band-size';
|
|
6
|
+
import { getBandSize } from '../../hooks/utils/get-band-size';
|
|
7
|
+
import { SERIES_TYPE } from '../constants';
|
|
8
8
|
import { checkIsPointDomain, filterCategoriesByVisibleSeries, getMinMaxPropsOrState, hasOnlyMarkerSeries, validateArrayData, } from './utils';
|
|
9
9
|
// axis is validated in `validation/index.ts`, so the value of `axis.type` is definitely valid.
|
|
10
10
|
// eslint-disable-next-line consistent-return
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Halo } from '../../types';
|
|
2
|
-
import type { PointMarkerOptions } from '
|
|
2
|
+
import type { PointMarkerOptions } from '../types/chart/marker';
|
|
3
3
|
export declare const DEFAULT_LEGEND_SYMBOL_SIZE = 8;
|
|
4
4
|
export declare const DEFAULT_LEGEND_SYMBOL_PADDING = 5;
|
|
5
5
|
export declare const DEFAULT_DATALABELS_PADDING = 5;
|
|
@@ -4,7 +4,7 @@ import type { PreparedAreaSeries, PreparedLegend } from './types';
|
|
|
4
4
|
export declare const DEFAULT_LINE_WIDTH = 1;
|
|
5
5
|
export declare const DEFAULT_MARKER: {
|
|
6
6
|
enabled: boolean;
|
|
7
|
-
symbol: `${import("
|
|
7
|
+
symbol: `${import("../constants").SymbolType}`;
|
|
8
8
|
borderColor: string;
|
|
9
9
|
borderWidth: number;
|
|
10
10
|
radius: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
2
|
import merge from 'lodash/merge';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getUniqId } from '~core/utils';
|
|
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';
|
|
7
7
|
export const DEFAULT_LINE_WIDTH = 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getUniqId } from '~core/utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE, seriesRangeSliderOptionsDefaults } from '../constants';
|
|
4
4
|
import { DEFAULT_DATALABELS_PADDING } from './constants';
|
|
5
5
|
import { getSeriesStackId, prepareLegendSymbol } from './utils';
|
|
6
6
|
function prepareSeriesData(series) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { getFormattedValue } from '
|
|
2
|
+
import { getLabelsSize, getUniqId } from '~core/utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
4
|
+
import { getFormattedValue } from '../utils/format';
|
|
5
5
|
import { getSeriesStackId, prepareLegendSymbol } from './utils';
|
|
6
6
|
const DEFAULT_LABEL_PADDING = 7;
|
|
7
7
|
function prepareSeriesData(series) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { scaleOrdinal } from 'd3-scale';
|
|
2
2
|
import get from 'lodash/get';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getUniqId } from '~core/utils';
|
|
4
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
5
5
|
import { prepareLegendSymbol } from './utils';
|
|
6
6
|
export function prepareFunnelSeries(args) {
|
|
7
7
|
var _a, _b;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getUniqId } from '~core/utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
4
4
|
import { DEFAULT_DATALABELS_PADDING } from './constants';
|
|
5
5
|
import { prepareLegendSymbol } from './utils';
|
|
6
6
|
function prepareSeriesData(series) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PreparedChart } from '../../hooks/types';
|
|
1
2
|
import type { ChartData } from '../../types';
|
|
2
|
-
import type { PreparedChart } from '../types';
|
|
3
3
|
import type { LegendItem, PreparedLegend, PreparedSeries } from './types';
|
|
4
4
|
export declare function getPreparedLegend(args: {
|
|
5
5
|
legend: ChartData['legend'];
|
|
@@ -2,8 +2,8 @@ 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 {
|
|
6
|
-
import {
|
|
5
|
+
import { getDefaultColorStops, getDomainForContinuousColorScale, getLabelsSize, getTextSizeFn, getTextWithElipsis, } from '~core/utils';
|
|
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;
|
|
9
9
|
const { legend, series } = args;
|
|
@@ -6,7 +6,7 @@ export declare const DEFAULT_LINE_WIDTH = 1;
|
|
|
6
6
|
export declare const DEFAULT_DASH_STYLE: "Solid";
|
|
7
7
|
export declare const DEFAULT_MARKER: {
|
|
8
8
|
enabled: boolean;
|
|
9
|
-
symbol: `${import("
|
|
9
|
+
symbol: `${import("../constants").SymbolType}`;
|
|
10
10
|
borderColor: string;
|
|
11
11
|
borderWidth: number;
|
|
12
12
|
radius: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
2
|
import merge from 'lodash/merge';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getUniqId } from '~core/utils';
|
|
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;
|
|
7
7
|
export const DEFAULT_LINE_WIDTH = 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { scaleOrdinal } from 'd3-scale';
|
|
2
2
|
import get from 'lodash/get';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getUniqId } from '~core/utils';
|
|
4
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
5
5
|
import { DEFAULT_DATALABELS_PADDING } from './constants';
|
|
6
6
|
import { prepareLegendSymbol } from './utils';
|
|
7
7
|
function prepareSeriesData(series) {
|
|
@@ -9,7 +9,7 @@ type PrepareRadarSeriesArgs = {
|
|
|
9
9
|
export declare const DEFAULT_MARKER: {
|
|
10
10
|
enabled: boolean;
|
|
11
11
|
radius: number;
|
|
12
|
-
symbol: `${import("
|
|
12
|
+
symbol: `${import("../constants").SymbolType}`;
|
|
13
13
|
borderColor: string;
|
|
14
14
|
borderWidth: number;
|
|
15
15
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { scaleOrdinal } from 'd3-scale';
|
|
2
2
|
import get from 'lodash/get';
|
|
3
3
|
import merge from 'lodash/merge';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { getUniqId } from '~core/utils';
|
|
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';
|
|
8
8
|
export const DEFAULT_MARKER = Object.assign(Object.assign({}, DEFAULT_POINT_MARKER_OPTIONS), { enabled: true, radius: 2 });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getUniqId } from '~core/utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
4
4
|
import { prepareLegendSymbol } from './utils';
|
|
5
5
|
export function prepareSankeySeries(args) {
|
|
6
6
|
const { colorScale, legend, series } = args;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
2
|
import merge from 'lodash/merge';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getSymbolType, getUniqId } from '~core/utils';
|
|
4
|
+
import { seriesRangeSliderOptionsDefaults } from '../constants';
|
|
5
5
|
import { DEFAULT_HALO_OPTIONS, DEFAULT_POINT_MARKER_OPTIONS } from './constants';
|
|
6
6
|
import { prepareLegendSymbol } from './utils';
|
|
7
7
|
function prepareMarker(series, seriesOptions, index) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getUniqId } from '~core/utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE, LayoutAlgorithm } from '../constants';
|
|
4
4
|
import { DEFAULT_DATALABELS_PADDING } from './constants';
|
|
5
5
|
import { prepareLegendSymbol } from './utils';
|
|
6
6
|
export function prepareTreemap(args) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getUniqId } from '~core/utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
4
4
|
import { DEFAULT_DATALABELS_PADDING } from './constants';
|
|
5
5
|
import { prepareLegendSymbol } from './utils';
|
|
6
6
|
function prepareSeriesData(series) {
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import type { AreaSeries, AreaSeriesData, BarXSeries, BarXSeriesData, BarYSeries, BarYSeriesData, BaseTextStyle, ChartLegend, ChartSeries, ChartSeriesRangeSliderOptions, ConnectorCurve, ConnectorShape, FunnelSeries, FunnelSeriesData, HeatmapSeries, HeatmapSeriesData, LineSeries, LineSeriesData, LineSeriesLineBaseStyle, PathLegendSymbolOptions, PieSeries, PieSeriesData, RadarSeries, RadarSeriesCategory, RadarSeriesData, RectLegendSymbolOptions, SankeySeries, SankeySeriesData, ScatterSeries, ScatterSeriesData, SymbolLegendSymbolOptions, TreemapSeries, TreemapSeriesData, ValueFormat, WaterfallSeries, WaterfallSeriesData } from '../../types';
|
|
2
|
+
import type { DashStyle, LayoutAlgorithm, LineCap, LineJoin, SeriesOptionsDefaults, SymbolType } from '../constants';
|
|
3
|
+
export type RectLegendSymbol = {
|
|
4
|
+
shape: 'rect';
|
|
5
|
+
} & Required<RectLegendSymbolOptions>;
|
|
6
|
+
export type PathLegendSymbol = {
|
|
7
|
+
shape: 'path';
|
|
8
|
+
strokeWidth: number;
|
|
9
|
+
} & Required<PathLegendSymbolOptions>;
|
|
10
|
+
export type SymbolLegendSymbol = {
|
|
11
|
+
shape: 'symbol';
|
|
12
|
+
symbolType: `${SymbolType}`;
|
|
13
|
+
} & Required<SymbolLegendSymbolOptions>;
|
|
14
|
+
export type PreparedLegendSymbol = (RectLegendSymbol | PathLegendSymbol | SymbolLegendSymbol) & {
|
|
15
|
+
bboxWidth: number;
|
|
16
|
+
};
|
|
17
|
+
export type PreparedLegend = Required<Omit<ChartLegend, 'title' | 'colorScale'>> & {
|
|
18
|
+
height: number;
|
|
19
|
+
lineHeight: number;
|
|
20
|
+
title: {
|
|
21
|
+
enable: boolean;
|
|
22
|
+
text: string;
|
|
23
|
+
margin: number;
|
|
24
|
+
style: BaseTextStyle;
|
|
25
|
+
height: number;
|
|
26
|
+
align: Required<Required<ChartLegend>['title']>['align'];
|
|
27
|
+
};
|
|
28
|
+
ticks: {
|
|
29
|
+
labelsMargin: number;
|
|
30
|
+
labelsLineHeight: number;
|
|
31
|
+
style: BaseTextStyle;
|
|
32
|
+
};
|
|
33
|
+
colorScale: {
|
|
34
|
+
colors: string[];
|
|
35
|
+
domain: number[];
|
|
36
|
+
stops: number[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type OnLegendItemClick = (data: {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
metaKey: boolean;
|
|
43
|
+
}) => void;
|
|
44
|
+
export type LegendItem = {
|
|
45
|
+
id: string;
|
|
46
|
+
color: string;
|
|
47
|
+
height: number;
|
|
48
|
+
name: string;
|
|
49
|
+
text: string;
|
|
50
|
+
symbol: PreparedLegendSymbol;
|
|
51
|
+
textWidth: number;
|
|
52
|
+
dashStyle?: DashStyle;
|
|
53
|
+
overflowed?: boolean;
|
|
54
|
+
visible?: boolean;
|
|
55
|
+
};
|
|
56
|
+
export type PreparedHaloOptions = {
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
opacity: number;
|
|
59
|
+
size: number;
|
|
60
|
+
};
|
|
61
|
+
type BasePreparedSeries = {
|
|
62
|
+
color: string;
|
|
63
|
+
name: string;
|
|
64
|
+
id: string;
|
|
65
|
+
visible: boolean;
|
|
66
|
+
legend: {
|
|
67
|
+
groupId: string;
|
|
68
|
+
itemText: string;
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
symbol: PreparedLegendSymbol;
|
|
71
|
+
};
|
|
72
|
+
cursor: string | null;
|
|
73
|
+
tooltip: ChartSeries['tooltip'];
|
|
74
|
+
};
|
|
75
|
+
type BasePreparedAxisRelatedSeries = {
|
|
76
|
+
rangeSlider: Required<ChartSeriesRangeSliderOptions> & Partial<LineSeriesLineBaseStyle>;
|
|
77
|
+
};
|
|
78
|
+
export type PreparedScatterSeries = {
|
|
79
|
+
type: ScatterSeries['type'];
|
|
80
|
+
data: ScatterSeriesData[];
|
|
81
|
+
marker: {
|
|
82
|
+
states: {
|
|
83
|
+
normal: {
|
|
84
|
+
symbol: `${SymbolType}`;
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
radius: number;
|
|
87
|
+
borderWidth: number;
|
|
88
|
+
borderColor: string;
|
|
89
|
+
};
|
|
90
|
+
hover: {
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
radius: number;
|
|
93
|
+
borderWidth: number;
|
|
94
|
+
borderColor: string;
|
|
95
|
+
halo: PreparedHaloOptions;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
yAxis: number;
|
|
100
|
+
} & BasePreparedSeries & BasePreparedAxisRelatedSeries;
|
|
101
|
+
export type PreparedBarXSeries = {
|
|
102
|
+
type: BarXSeries['type'];
|
|
103
|
+
data: BarXSeriesData[];
|
|
104
|
+
stackId: string;
|
|
105
|
+
stacking: BarXSeries['stacking'];
|
|
106
|
+
dataLabels: {
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
inside: boolean;
|
|
109
|
+
style: BaseTextStyle;
|
|
110
|
+
allowOverlap: boolean;
|
|
111
|
+
padding: number;
|
|
112
|
+
html: boolean;
|
|
113
|
+
format?: ValueFormat;
|
|
114
|
+
};
|
|
115
|
+
borderRadius: number;
|
|
116
|
+
yAxis: number;
|
|
117
|
+
} & BasePreparedSeries & BasePreparedAxisRelatedSeries;
|
|
118
|
+
export type PreparedBarYSeries = {
|
|
119
|
+
type: BarYSeries['type'];
|
|
120
|
+
data: BarYSeriesData[];
|
|
121
|
+
stackId: string;
|
|
122
|
+
stacking: BarYSeries['stacking'];
|
|
123
|
+
dataLabels: {
|
|
124
|
+
padding: number;
|
|
125
|
+
enabled: boolean;
|
|
126
|
+
inside: boolean;
|
|
127
|
+
style: BaseTextStyle;
|
|
128
|
+
maxHeight: number;
|
|
129
|
+
maxWidth: number;
|
|
130
|
+
html: boolean;
|
|
131
|
+
format?: ValueFormat;
|
|
132
|
+
allowOverlap: boolean;
|
|
133
|
+
};
|
|
134
|
+
borderRadius: number;
|
|
135
|
+
borderWidth: number;
|
|
136
|
+
borderColor: string;
|
|
137
|
+
} & BasePreparedSeries;
|
|
138
|
+
export type PreparedHeatmapSeries = {
|
|
139
|
+
type: HeatmapSeries['type'];
|
|
140
|
+
data: HeatmapSeriesData[];
|
|
141
|
+
dataLabels: {
|
|
142
|
+
enabled: boolean;
|
|
143
|
+
style: BaseTextStyle;
|
|
144
|
+
html: boolean;
|
|
145
|
+
format?: ValueFormat;
|
|
146
|
+
};
|
|
147
|
+
borderWidth: number;
|
|
148
|
+
borderColor: string;
|
|
149
|
+
} & BasePreparedSeries;
|
|
150
|
+
export type PreparedPieSeries = {
|
|
151
|
+
type: PieSeries['type'];
|
|
152
|
+
data: PieSeriesData;
|
|
153
|
+
value: PieSeriesData['value'];
|
|
154
|
+
borderColor: string;
|
|
155
|
+
borderWidth: number;
|
|
156
|
+
borderRadius: number;
|
|
157
|
+
center?: [string | number | null, string | number | null];
|
|
158
|
+
radius?: string | number;
|
|
159
|
+
innerRadius?: string | number;
|
|
160
|
+
minRadius?: string | number;
|
|
161
|
+
stackId: string;
|
|
162
|
+
label?: PieSeriesData['label'];
|
|
163
|
+
dataLabels: {
|
|
164
|
+
enabled: boolean;
|
|
165
|
+
padding: number;
|
|
166
|
+
style: BaseTextStyle;
|
|
167
|
+
allowOverlap: boolean;
|
|
168
|
+
connectorPadding: number;
|
|
169
|
+
connectorShape: ConnectorShape;
|
|
170
|
+
distance: number;
|
|
171
|
+
connectorCurve: ConnectorCurve;
|
|
172
|
+
html: boolean;
|
|
173
|
+
format?: ValueFormat;
|
|
174
|
+
};
|
|
175
|
+
states: {
|
|
176
|
+
hover: {
|
|
177
|
+
halo: PreparedHaloOptions;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
renderCustomShape?: PieSeries['renderCustomShape'];
|
|
181
|
+
opacity: number | null;
|
|
182
|
+
} & BasePreparedSeries;
|
|
183
|
+
export type PreparedLineSeries = {
|
|
184
|
+
type: LineSeries['type'];
|
|
185
|
+
data: LineSeriesData[];
|
|
186
|
+
lineWidth: number;
|
|
187
|
+
dataLabels: {
|
|
188
|
+
enabled: boolean;
|
|
189
|
+
style: BaseTextStyle;
|
|
190
|
+
padding: number;
|
|
191
|
+
allowOverlap: boolean;
|
|
192
|
+
html: boolean;
|
|
193
|
+
format?: ValueFormat;
|
|
194
|
+
};
|
|
195
|
+
marker: {
|
|
196
|
+
states: {
|
|
197
|
+
normal: {
|
|
198
|
+
symbol: `${SymbolType}`;
|
|
199
|
+
enabled: boolean;
|
|
200
|
+
radius: number;
|
|
201
|
+
borderWidth: number;
|
|
202
|
+
borderColor: string;
|
|
203
|
+
};
|
|
204
|
+
hover: {
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
radius: number;
|
|
207
|
+
borderWidth: number;
|
|
208
|
+
borderColor: string;
|
|
209
|
+
halo: PreparedHaloOptions;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
dashStyle: DashStyle;
|
|
214
|
+
linecap: LineCap;
|
|
215
|
+
linejoin: LineJoin;
|
|
216
|
+
opacity: number | null;
|
|
217
|
+
yAxis: number;
|
|
218
|
+
} & BasePreparedSeries & BasePreparedAxisRelatedSeries;
|
|
219
|
+
export type PreparedAreaSeries = {
|
|
220
|
+
type: AreaSeries['type'];
|
|
221
|
+
data: AreaSeriesData[];
|
|
222
|
+
stacking: AreaSeries['stacking'];
|
|
223
|
+
stackId: string;
|
|
224
|
+
lineWidth: number;
|
|
225
|
+
opacity: number;
|
|
226
|
+
nullMode: AreaSeries['nullMode'];
|
|
227
|
+
dataLabels: {
|
|
228
|
+
enabled: boolean;
|
|
229
|
+
style: BaseTextStyle;
|
|
230
|
+
padding: number;
|
|
231
|
+
allowOverlap: boolean;
|
|
232
|
+
html: boolean;
|
|
233
|
+
format?: ValueFormat;
|
|
234
|
+
};
|
|
235
|
+
marker: {
|
|
236
|
+
states: {
|
|
237
|
+
normal: {
|
|
238
|
+
symbol: `${SymbolType}`;
|
|
239
|
+
enabled: boolean;
|
|
240
|
+
radius: number;
|
|
241
|
+
borderWidth: number;
|
|
242
|
+
borderColor: string;
|
|
243
|
+
};
|
|
244
|
+
hover: {
|
|
245
|
+
enabled: boolean;
|
|
246
|
+
radius: number;
|
|
247
|
+
borderWidth: number;
|
|
248
|
+
borderColor: string;
|
|
249
|
+
halo: PreparedHaloOptions;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
yAxis: number;
|
|
254
|
+
} & BasePreparedSeries & BasePreparedAxisRelatedSeries;
|
|
255
|
+
export type PreparedTreemapSeries = {
|
|
256
|
+
type: TreemapSeries['type'];
|
|
257
|
+
data: TreemapSeriesData[];
|
|
258
|
+
dataLabels: {
|
|
259
|
+
enabled: boolean;
|
|
260
|
+
style: BaseTextStyle;
|
|
261
|
+
padding: number;
|
|
262
|
+
allowOverlap: boolean;
|
|
263
|
+
html: boolean;
|
|
264
|
+
align: Required<Required<TreemapSeries>['dataLabels']>['align'];
|
|
265
|
+
format?: ValueFormat;
|
|
266
|
+
};
|
|
267
|
+
layoutAlgorithm: `${LayoutAlgorithm}`;
|
|
268
|
+
sorting: Required<TreemapSeries['sorting']>;
|
|
269
|
+
} & BasePreparedSeries & Required<Omit<TreemapSeries, keyof BasePreparedSeries>>;
|
|
270
|
+
export type PreparedWaterfallSeriesData = WaterfallSeriesData & {
|
|
271
|
+
index: number;
|
|
272
|
+
};
|
|
273
|
+
export type PreparedWaterfallSeries = {
|
|
274
|
+
type: WaterfallSeries['type'];
|
|
275
|
+
data: PreparedWaterfallSeriesData[];
|
|
276
|
+
dataLabels: {
|
|
277
|
+
enabled: boolean;
|
|
278
|
+
style: BaseTextStyle;
|
|
279
|
+
allowOverlap: boolean;
|
|
280
|
+
padding: number;
|
|
281
|
+
html: boolean;
|
|
282
|
+
format?: ValueFormat;
|
|
283
|
+
};
|
|
284
|
+
} & BasePreparedSeries;
|
|
285
|
+
export type PreparedSankeySeries = {
|
|
286
|
+
type: SankeySeries['type'];
|
|
287
|
+
data: SankeySeriesData[];
|
|
288
|
+
dataLabels: {
|
|
289
|
+
enabled: boolean;
|
|
290
|
+
style: BaseTextStyle;
|
|
291
|
+
format?: ValueFormat;
|
|
292
|
+
};
|
|
293
|
+
} & BasePreparedSeries & Omit<SankeySeries, keyof BasePreparedSeries>;
|
|
294
|
+
export type PreparedRadarSeries = {
|
|
295
|
+
type: RadarSeries['type'];
|
|
296
|
+
data: RadarSeriesData[];
|
|
297
|
+
categories: RadarSeriesCategory[];
|
|
298
|
+
borderColor: string;
|
|
299
|
+
borderWidth: number;
|
|
300
|
+
fillOpacity: number;
|
|
301
|
+
dataLabels: {
|
|
302
|
+
enabled: boolean;
|
|
303
|
+
style: BaseTextStyle;
|
|
304
|
+
padding: number;
|
|
305
|
+
allowOverlap: boolean;
|
|
306
|
+
html: boolean;
|
|
307
|
+
format?: ValueFormat;
|
|
308
|
+
};
|
|
309
|
+
marker: {
|
|
310
|
+
states: {
|
|
311
|
+
normal: {
|
|
312
|
+
symbol: `${SymbolType}`;
|
|
313
|
+
enabled: boolean;
|
|
314
|
+
radius: number;
|
|
315
|
+
borderWidth: number;
|
|
316
|
+
borderColor: string;
|
|
317
|
+
};
|
|
318
|
+
hover: {
|
|
319
|
+
enabled: boolean;
|
|
320
|
+
radius: number;
|
|
321
|
+
borderWidth: number;
|
|
322
|
+
borderColor: string;
|
|
323
|
+
halo: PreparedHaloOptions;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
} & BasePreparedSeries;
|
|
328
|
+
export type PreparedFunnelSeries = {
|
|
329
|
+
type: FunnelSeries['type'];
|
|
330
|
+
data: FunnelSeriesData;
|
|
331
|
+
dataLabels: {
|
|
332
|
+
enabled: boolean;
|
|
333
|
+
style: BaseTextStyle;
|
|
334
|
+
html: boolean;
|
|
335
|
+
format?: ValueFormat;
|
|
336
|
+
align: Required<Required<FunnelSeries>['dataLabels']>['align'];
|
|
337
|
+
};
|
|
338
|
+
connectors: Required<FunnelSeries['connectors']>;
|
|
339
|
+
} & BasePreparedSeries;
|
|
340
|
+
export type PreparedSeries = PreparedScatterSeries | PreparedBarXSeries | PreparedBarYSeries | PreparedPieSeries | PreparedLineSeries | PreparedAreaSeries | PreparedTreemapSeries | PreparedWaterfallSeries | PreparedSankeySeries | PreparedRadarSeries | PreparedHeatmapSeries | PreparedFunnelSeries;
|
|
341
|
+
export type PreparedZoomableSeries = Extract<PreparedSeries, {
|
|
342
|
+
data: Array<unknown>;
|
|
343
|
+
}>;
|
|
344
|
+
export type PreparedSeriesOptions = SeriesOptionsDefaults;
|
|
345
|
+
export type StackedSeries = BarXSeries | AreaSeries | BarYSeries;
|
|
346
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RectLegendSymbolOptions } from '../../types';
|
|
2
|
+
import { SymbolType } from '../constants';
|
|
3
|
+
import type { PathLegendSymbol, PreparedLegendSymbol, PreparedSeries, StackedSeries } from './types';
|
|
4
|
+
export declare const getActiveLegendItems: (series: PreparedSeries[]) => string[];
|
|
5
|
+
export declare const getAllLegendItems: (series: PreparedSeries[]) => string[];
|
|
6
|
+
export declare function prepareLegendSymbol(series: {
|
|
7
|
+
legend?: {
|
|
8
|
+
symbol?: RectLegendSymbolOptions | PathLegendSymbol;
|
|
9
|
+
};
|
|
10
|
+
}, symbolType?: `${SymbolType}`): PreparedLegendSymbol;
|
|
11
|
+
export declare function getSeriesStackId(series: StackedSeries): string;
|