@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,4 +1,4 @@
|
|
|
1
|
-
import type { ZoomType } from '
|
|
1
|
+
import type { ZoomType } from '~core/constants';
|
|
2
2
|
import type { PreparedZoom } from '../../../hooks/types';
|
|
3
3
|
import type { ChartSeries, ChartZoom } from '../../../types';
|
|
4
4
|
export declare function getZoomType(args: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import intersection from 'lodash/intersection';
|
|
2
2
|
import merge from 'lodash/merge';
|
|
3
|
-
import { SERIES_TYPE, ZOOM_TYPE, brushDefaults } from '
|
|
3
|
+
import { SERIES_TYPE, ZOOM_TYPE, brushDefaults } from '~core/constants';
|
|
4
4
|
function mapSeriesTypeToZoomType(seriesType) {
|
|
5
5
|
switch (seriesType) {
|
|
6
6
|
case SERIES_TYPE.Area: {
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { scaleLinear } from 'd3-scale';
|
|
3
3
|
import { select } from 'd3-selection';
|
|
4
4
|
import { symbol } from 'd3-shape';
|
|
5
|
-
import { CONTINUOUS_LEGEND_SIZE } from '
|
|
5
|
+
import { CONTINUOUS_LEGEND_SIZE } from '~core/constants';
|
|
6
|
+
import { createGradientRect, getContinuesColorFn, getLabelsSize, getSymbol, getUniqId, } from '~core/utils';
|
|
7
|
+
import { axisBottom } from '~core/utils/axis-generators';
|
|
6
8
|
import { formatNumber } from '../../libs';
|
|
7
|
-
import { block
|
|
8
|
-
import { axisBottom } from '../../utils/chart/axis-generators';
|
|
9
|
+
import { block } from '../../utils';
|
|
9
10
|
import { appendLinePathElement } from '../utils';
|
|
10
11
|
import './styles.css';
|
|
11
12
|
const b = block('legend');
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useUniqId } from '@gravity-ui/uikit';
|
|
3
|
+
import { isBandScale } from '~core/utils';
|
|
3
4
|
import { useBrush, useRangeSlider } from '../../hooks';
|
|
4
|
-
import { block
|
|
5
|
+
import { block } from '../../utils';
|
|
5
6
|
import { getInitialRangeSliderState } from '../utils';
|
|
6
7
|
import { getFramedPath } from './utils';
|
|
7
8
|
import './styles.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { getFormattedValue } from '~core/utils/format';
|
|
2
3
|
import { block } from '../../../utils';
|
|
3
|
-
import { getFormattedValue } from '../../../utils/chart/format';
|
|
4
4
|
import { getBuiltInAggregatedValue, getBuiltInAggregationLabel } from './utils';
|
|
5
5
|
const b = block('tooltip');
|
|
6
6
|
export function RowWithAggregation(props) {
|
|
@@ -3,10 +3,10 @@ import { Divider } from '@gravity-ui/uikit';
|
|
|
3
3
|
import parse from 'html-react-parser';
|
|
4
4
|
import get from 'lodash/get';
|
|
5
5
|
import isEqual from 'lodash/isEqual';
|
|
6
|
+
import { i18n } from '~core/i18n';
|
|
7
|
+
import { getFormattedValue } from '~core/utils/format';
|
|
6
8
|
import { usePrevious } from '../../../hooks';
|
|
7
|
-
import { i18n } from '../../../i18n';
|
|
8
9
|
import { block } from '../../../utils';
|
|
9
|
-
import { getFormattedValue } from '../../../utils/chart/format';
|
|
10
10
|
import { Row } from './Row';
|
|
11
11
|
import { RowWithAggregation } from './RowWithAggregation';
|
|
12
12
|
import { getDefaultValueFormat, getHoveredValues, getMeasureValue, getPreparedAggregation, getTooltipRowColorSymbol, getXRowData, } from './utils';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { create } from 'd3-selection';
|
|
2
2
|
import get from 'lodash/get';
|
|
3
|
-
import { i18n } from '
|
|
4
|
-
import { getDataCategoryValue, getDefaultDateFormat } from '
|
|
5
|
-
import { getFormattedValue } from '
|
|
3
|
+
import { i18n } from '~core/i18n';
|
|
4
|
+
import { getDataCategoryValue, getDefaultDateFormat } from '~core/utils';
|
|
5
|
+
import { getFormattedValue } from '~core/utils/format';
|
|
6
6
|
import { appendLinePathElement } from '../../utils';
|
|
7
7
|
function getRowData(fieldName, data, axis) {
|
|
8
8
|
switch (axis === null || axis === void 0 ? void 0 : axis.type) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { select } from 'd3-selection';
|
|
3
3
|
import debounce from 'lodash/debounce';
|
|
4
|
-
import { i18nFactory } from '
|
|
5
|
-
import { getUniqId } from '
|
|
6
|
-
import { validateData } from '
|
|
4
|
+
import { i18nFactory } from '~core/i18n';
|
|
5
|
+
import { getUniqId } from '~core/utils';
|
|
6
|
+
import { validateData } from '~core/validation';
|
|
7
7
|
import { ChartInner } from './ChartInner';
|
|
8
8
|
export * from './Tooltip/ChartTooltipContent';
|
|
9
9
|
export const Chart = React.forwardRef(function Chart(props, forwardedRef) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getTextSizeFn, getTextWithElipsis, wrapText } from '
|
|
1
|
+
import { getTextSizeFn, getTextWithElipsis, wrapText } from '~core/utils';
|
|
2
2
|
export async function getMultilineTitleContentRows({ axis, titleMaxWidth, }) {
|
|
3
3
|
const titleContent = [];
|
|
4
4
|
const getTitleTextSize = getTextSizeFn({ style: axis.title.style });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DashStyle } from '
|
|
1
|
+
import type { DashStyle } from '~core/constants';
|
|
2
2
|
import type { ChartScaleLinear, ChartScaleTime } from '../../hooks';
|
|
3
3
|
import type { ChartAxisRangeSlider } from '../../types';
|
|
4
4
|
export declare function getInitialRangeSliderState(args: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { duration } from '@gravity-ui/date-utils';
|
|
2
2
|
import { select } from 'd3-selection';
|
|
3
3
|
import { line as lineGenerator } from 'd3-shape';
|
|
4
|
-
import { getLineDashArray, isTimeScale } from '
|
|
4
|
+
import { getLineDashArray, isTimeScale } from '~core/utils';
|
|
5
5
|
export function getInitialRangeSliderState(args) {
|
|
6
6
|
const { defaultRange, xScale } = args;
|
|
7
7
|
let minRange;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
|
-
import { brushDefaults } from '
|
|
2
|
+
import { brushDefaults } from '../constants';
|
|
3
3
|
const DEFAULT_RANGE_SLIDER_HEIGHT = 40;
|
|
4
4
|
const DEFAULT_RANGE_SLIDER_MARGIN = 10;
|
|
5
5
|
export function getPreparedRangeSlider({ xAxis }) {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { AxisCrosshair, AxisPlotBand, BaseTextStyle, ChartAxis, ChartAxisLabels, ChartAxisRangeSlider, ChartAxisTitleAlignment, ChartAxisTitleRotation, ChartAxisType, DeepRequired, MeaningfulAny, PlotLayerPlacement } from '../../types';
|
|
2
|
+
import type { DashStyle } from '../constants';
|
|
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,8 +1,8 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { TIME_UNITS, calculateCos, calculateNumericProperty, calculateSin, formatAxisTickLabel, getDefaultDateFormat, getHorizontalHtmlTextHeight, getHorizontalSvgTextHeight, getLabelsSize, getMinSpaceBetween, getTextSizeFn, isAxisRelatedSeries, wrapText, } from '~core/utils';
|
|
3
|
+
import { DASH_STYLE, DEFAULT_AXIS_LABEL_FONT_SIZE, SERIES_TYPE, axisCrosshairDefaults, axisLabelsDefaults, axisTickMarksDefaults, xAxisTitleDefaults, } from '../constants';
|
|
4
|
+
import { createXScale } from '../scales/x-scale';
|
|
5
|
+
import { getXAxisTickValues } from '../utils/axis/x-axis';
|
|
6
6
|
import { getPreparedRangeSlider } from './range-slider';
|
|
7
7
|
import { prepareAxisPlotLabel } from './utils';
|
|
8
8
|
async function setLabelSettings({ axis, seriesData, width, axisLabels, }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChartSeries, ChartYAxis } from '../../types';
|
|
2
|
-
import type { ChartScale } from '../
|
|
3
|
-
import type { PreparedSeries } from '../
|
|
2
|
+
import type { ChartScale } from '../scales/types';
|
|
3
|
+
import type { PreparedSeries } from '../series/types';
|
|
4
4
|
import type { PreparedYAxis } from './types';
|
|
5
5
|
export declare const getYAxisLabelMaxWidth: (args: {
|
|
6
6
|
axis: PreparedYAxis;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
+
import { calculateNumericProperty, formatAxisTickLabel, getDefaultDateFormat, getDefaultMinYAxisValue, getHorizontalHtmlTextHeight, getHorizontalSvgTextHeight, getLabelsSize, getMinSpaceBetween, getTextSizeFn, isAxisRelatedSeries, shouldSyncAxisWithPrimary, wrapText, } from '~core/utils';
|
|
2
3
|
import { getTickValues } from '../../components/AxisY/utils';
|
|
3
|
-
import { DASH_STYLE, DEFAULT_AXIS_LABEL_FONT_SIZE, DEFAULT_AXIS_TYPE, SERIES_TYPE, axisCrosshairDefaults, axisLabelsDefaults, axisTickMarksDefaults, yAxisTitleDefaults, } from '
|
|
4
|
-
import {
|
|
5
|
-
import { createYScale } from '../useAxisScales';
|
|
4
|
+
import { DASH_STYLE, DEFAULT_AXIS_LABEL_FONT_SIZE, DEFAULT_AXIS_TYPE, SERIES_TYPE, axisCrosshairDefaults, axisLabelsDefaults, axisTickMarksDefaults, yAxisTitleDefaults, } from '../constants';
|
|
5
|
+
import { createYScale } from '../scales/y-scale';
|
|
6
6
|
import { prepareAxisPlotLabel } from './utils';
|
|
7
7
|
export const getYAxisLabelMaxWidth = async (args) => {
|
|
8
8
|
const { axis, scale, seriesData } = args;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './i18n';
|
|
4
|
+
export * from './validation';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './series';
|
|
7
|
+
export * from './scales';
|
|
8
|
+
export * from './axes';
|
|
9
|
+
export * from './layout';
|
|
10
|
+
export * from './zoom';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './constants';
|
|
3
|
+
export * from './i18n';
|
|
4
|
+
export * from './validation';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './series';
|
|
7
|
+
export * from './scales';
|
|
8
|
+
export * from './axes';
|
|
9
|
+
export * from './layout';
|
|
10
|
+
export * from './zoom';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { PreparedChart
|
|
1
|
+
import type { PreparedChart } from '../../hooks/types';
|
|
2
2
|
import type { ChartMargin, LegendConfig } from '../../types';
|
|
3
|
+
import type { PreparedXAxis, PreparedYAxis } from '../axes/types';
|
|
4
|
+
import type { PreparedLegend, PreparedSeries } from '../series';
|
|
3
5
|
export declare const getBoundsWidth: (args: {
|
|
4
6
|
chartWidth: number;
|
|
5
7
|
chartMargin: PreparedChart["margin"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
2
|
import isEmpty from 'lodash/isEmpty';
|
|
3
|
-
import { calculateNumericProperty, getHorizontalSvgTextHeight } from '
|
|
3
|
+
import { calculateNumericProperty, getHorizontalSvgTextHeight } from '~core/utils';
|
|
4
4
|
const DEFAULT_TITLE_FONT_SIZE = '15px';
|
|
5
5
|
const TITLE_TOP_BOTTOM_PADDING = 8;
|
|
6
6
|
function preparePlotTitle(args) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AxisDirection } from '~core/utils';
|
|
2
2
|
import type { ChartAxis, ChartSeries } from '../../types';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PreparedAxis, PreparedYAxis } from '../axes/types';
|
|
4
|
+
import type { PreparedSeries } from '../series';
|
|
4
5
|
type OptionalNumber = number | undefined;
|
|
5
6
|
export declare function getMinMaxPropsOrState(args: {
|
|
6
7
|
axis: PreparedAxis | ChartAxis;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getDataCategoryValue, isSeriesWithCategoryValues } from '~core/utils';
|
|
3
|
+
import { SERIES_TYPE } from '../constants';
|
|
4
4
|
const MARKER_SERIES_TYPES = [SERIES_TYPE.Area, SERIES_TYPE.Line, SERIES_TYPE.Scatter];
|
|
5
5
|
function getNormilizedMinMax(args) {
|
|
6
6
|
const { maxValues, minValues } = args;
|
|
@@ -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("..").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) {
|
|
@@ -16,11 +16,11 @@ export declare function prepareBarYSeries(args: PrepareBarYSeriesArgs): Promise<
|
|
|
16
16
|
padding: number;
|
|
17
17
|
enabled: boolean;
|
|
18
18
|
inside: boolean;
|
|
19
|
-
style: import("
|
|
19
|
+
style: import("..").BaseTextStyle;
|
|
20
20
|
maxHeight: number;
|
|
21
21
|
maxWidth: number;
|
|
22
22
|
html: boolean;
|
|
23
|
-
format?: import("
|
|
23
|
+
format?: import("..").ValueFormat;
|
|
24
24
|
allowOverlap: boolean;
|
|
25
25
|
};
|
|
26
26
|
borderRadius: number;
|
|
@@ -38,6 +38,6 @@ export declare function prepareBarYSeries(args: PrepareBarYSeriesArgs): Promise<
|
|
|
38
38
|
symbol: import("./types").PreparedLegendSymbol;
|
|
39
39
|
};
|
|
40
40
|
cursor: string | null;
|
|
41
|
-
tooltip: import("
|
|
41
|
+
tooltip: import("..").ChartSeries["tooltip"];
|
|
42
42
|
})[]>;
|
|
43
43
|
export {};
|
|
@@ -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("..").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) {
|