vccs 0.0.1 → 0.1.0
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/LICENSE +21 -0
- package/dist/animation/Animate.d.ts +72 -0
- package/dist/cartesian/GraphicalItemClipPath.d.ts +31 -0
- package/dist/cartesian/area/ActivePoints.d.ts +77 -0
- package/dist/cartesian/area/Area.d.ts +17 -0
- package/dist/cartesian/area/ClipRect.d.ts +1 -0
- package/dist/cartesian/area/RenderArea.d.ts +16 -0
- package/dist/cartesian/area/__stories__/config.d.ts +31 -0
- package/dist/cartesian/area/hooks/useArea.d.ts +27 -0
- package/dist/cartesian/area/index.d.ts +2 -0
- package/dist/cartesian/area/type.d.ts +173 -0
- package/dist/cartesian/area/utils.d.ts +19 -0
- package/dist/cartesian/axis/XAxis.d.ts +189 -0
- package/dist/cartesian/axis/YAxis.d.ts +192 -0
- package/dist/cartesian/axis/index.d.ts +2 -0
- package/dist/cartesian/axis/type.d.ts +57 -0
- package/dist/cartesian/bar/Bar.d.ts +2 -0
- package/dist/cartesian/bar/components/BarBackground.d.ts +1 -0
- package/dist/cartesian/bar/components/BarRectangles.d.ts +1 -0
- package/dist/cartesian/bar/hooks/useBar.d.ts +23 -0
- package/dist/cartesian/bar/index.d.ts +1 -0
- package/dist/cartesian/bar/type.d.ts +166 -0
- package/dist/cartesian/bar/utils.d.ts +31 -0
- package/dist/cartesian/brush/Brush.d.ts +2 -0
- package/dist/cartesian/brush/components/Background.d.ts +15 -0
- package/dist/cartesian/brush/components/BrushText.d.ts +27 -0
- package/dist/cartesian/brush/components/Panorama.d.ts +65 -0
- package/dist/cartesian/brush/components/Slide.d.ts +20 -0
- package/dist/cartesian/brush/components/Traveller.d.ts +13 -0
- package/dist/cartesian/brush/components/TravellerLayer.d.ts +22 -0
- package/dist/cartesian/brush/hooks/useBrushHandlers.d.ts +25 -0
- package/dist/cartesian/brush/hooks/useBrushSetting.d.ts +6 -0
- package/dist/cartesian/brush/hooks/useBrushState.d.ts +29 -0
- package/dist/cartesian/brush/index.d.ts +2 -0
- package/dist/cartesian/brush/type.d.ts +103 -0
- package/dist/cartesian/brush/utils.d.ts +15 -0
- package/dist/cartesian/cartesian-axis/CartesianAxis.d.ts +209 -0
- package/dist/cartesian/cartesian-axis/const.d.ts +24 -0
- package/dist/cartesian/cartesian-axis/index.d.ts +1 -0
- package/dist/cartesian/cartesian-axis/use-axis-line.d.ts +7 -0
- package/dist/cartesian/cartesian-grid/Background.d.ts +18 -0
- package/dist/cartesian/cartesian-grid/CartesianGrid.d.ts +75 -0
- package/dist/cartesian/cartesian-grid/HorizontalGridLines.d.ts +37 -0
- package/dist/cartesian/cartesian-grid/HorizontalStripes.d.ts +20 -0
- package/dist/cartesian/cartesian-grid/VerticalGridLines.d.ts +26 -0
- package/dist/cartesian/cartesian-grid/VerticalStripes.d.ts +20 -0
- package/dist/cartesian/cartesian-grid/const.d.ts +6 -0
- package/dist/cartesian/cartesian-grid/index.d.ts +1 -0
- package/dist/cartesian/cartesian-grid/type.d.ts +145 -0
- package/dist/cartesian/cartesian-grid/utils.d.ts +5 -0
- package/dist/cartesian/error-bar/ErrorBar.d.ts +68 -0
- package/dist/cartesian/error-bar/ErrorBarContext.d.ts +27 -0
- package/dist/cartesian/error-bar/index.d.ts +2 -0
- package/dist/cartesian/funnel/index.d.ts +0 -0
- package/dist/cartesian/funnel/type.d.ts +37 -0
- package/dist/cartesian/funnel/utils.d.ts +12 -0
- package/dist/cartesian/index.d.ts +11 -0
- package/dist/cartesian/line/ActivePoints.d.ts +77 -0
- package/dist/cartesian/line/Line.d.ts +87 -0
- package/dist/cartesian/line/StaticLine.d.ts +16 -0
- package/dist/cartesian/line/hooks/useLine.d.ts +28 -0
- package/dist/cartesian/line/index.d.ts +3 -0
- package/dist/cartesian/line/type.d.ts +180 -0
- package/dist/cartesian/line/utils.d.ts +13 -0
- package/dist/cartesian/reference-area/ReferenceArea.d.ts +191 -0
- package/dist/cartesian/reference-area/index.d.ts +1 -0
- package/dist/cartesian/reference-line/ReferenceLine.d.ts +139 -0
- package/dist/cartesian/reference-line/index.d.ts +1 -0
- package/dist/cartesian/scatter/Scatter.d.ts +165 -0
- package/dist/cartesian/scatter/hooks/useScatter.d.ts +18 -0
- package/dist/cartesian/scatter/index.d.ts +1 -0
- package/dist/cartesian/type.d.ts +21 -0
- package/dist/cartesian/useNeedsClip.d.ts +6 -0
- package/dist/cartesian/utils/get-ticks.d.ts +16 -0
- package/dist/cartesian/z-axis/ZAxis.d.ts +81 -0
- package/dist/cartesian/z-axis/index.d.ts +1 -0
- package/dist/chart/AreaChart.d.ts +1 -0
- package/dist/chart/BarChart.d.ts +1 -0
- package/dist/chart/ComposedChart.d.ts +1 -0
- package/dist/chart/LegendPortalContext.d.ts +3 -0
- package/dist/chart/LineChart.d.ts +1 -0
- package/dist/chart/PieChart.d.ts +1 -0
- package/dist/chart/RadarChart.d.ts +1 -0
- package/dist/chart/RadialBarChart.d.ts +1 -0
- package/dist/chart/RechartsWrapper.d.ts +99 -0
- package/dist/chart/ScatterChart.d.ts +1 -0
- package/dist/chart/Surface.d.ts +40 -0
- package/dist/chart/TooltipPortalContext.d.ts +2 -0
- package/dist/chart/const.d.ts +6 -0
- package/dist/chart/generateCategoricalChart.d.ts +118 -0
- package/dist/chart/index.d.ts +8 -0
- package/dist/chart/provideClipPathId.d.ts +12 -0
- package/dist/components/Cell.d.ts +18 -0
- package/dist/components/DefaultLegendContent.d.ts +18 -0
- package/dist/components/Text.d.ts +149 -0
- package/dist/components/Tooltip.d.ts +250 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/label/Label.d.ts +81 -0
- package/dist/components/label/LabelList.d.ts +63 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/types.d.ts +88 -0
- package/dist/components/label/utils.d.ts +24 -0
- package/dist/components/legend/Legend.d.ts +4 -0
- package/dist/components/legend/LegendSymbol.d.ts +27 -0
- package/dist/components/legend/hooks/useLegend.d.ts +19 -0
- package/dist/components/legend/hooks/useLegendContent.d.ts +36 -0
- package/dist/components/legend/index.d.ts +2 -0
- package/dist/components/legend/type.d.ts +54 -0
- package/dist/components/legend/utils.d.ts +18 -0
- package/dist/components/types.d.ts +9 -0
- package/dist/components/utils.d.ts +4 -0
- package/dist/container/ClipPath.d.ts +12 -0
- package/dist/container/Layer.d.ts +2 -0
- package/dist/container/ResponsiveContainer.d.ts +50 -0
- package/dist/container/RootSurface.d.ts +17 -0
- package/dist/container/Surface.d.ts +25 -0
- package/dist/container/index.d.ts +1 -0
- package/dist/container/useSizeContext.d.ts +11 -0
- package/dist/context/ChartDataContextProvider.d.ts +17 -0
- package/dist/context/PanoramaContextProvider.d.ts +22 -0
- package/dist/context/accessibilityContext.d.ts +1 -0
- package/dist/context/cartesianLabelListContext.d.ts +3 -0
- package/dist/context/chartLayoutContext.d.ts +8 -0
- package/dist/context/cursorLayerContext.d.ts +2 -0
- package/dist/context/graphicalLayerContext.d.ts +2 -0
- package/dist/context/labelLayerContext.d.ts +2 -0
- package/dist/context/polarLabelViewBoxContext.d.ts +4 -0
- package/dist/context/useTooltipAxis.d.ts +2 -0
- package/dist/es/animation/Animate.mjs +63 -0
- package/dist/es/cartesian/GraphicalItemClipPath.mjs +36 -0
- package/dist/es/cartesian/area/ActivePoints.mjs +74 -0
- package/dist/es/cartesian/area/Area.mjs +41 -0
- package/dist/es/cartesian/area/ClipRect.mjs +104 -0
- package/dist/es/cartesian/area/RenderArea.mjs +151 -0
- package/dist/es/cartesian/area/hooks/useArea.mjs +57 -0
- package/dist/es/cartesian/area/type.mjs +136 -0
- package/dist/es/cartesian/area/utils.mjs +59 -0
- package/dist/es/cartesian/axis/XAxis.mjs +189 -0
- package/dist/es/cartesian/axis/YAxis.mjs +181 -0
- package/dist/es/cartesian/bar/Bar.mjs +89 -0
- package/dist/es/cartesian/bar/components/BarBackground.mjs +29 -0
- package/dist/es/cartesian/bar/components/BarRectangles.mjs +106 -0
- package/dist/es/cartesian/bar/hooks/useBar.mjs +41 -0
- package/dist/es/cartesian/bar/type.mjs +131 -0
- package/dist/es/cartesian/bar/utils.mjs +84 -0
- package/dist/es/cartesian/cartesian-axis/CartesianAxis.mjs +246 -0
- package/dist/es/cartesian/cartesian-grid/Background.mjs +30 -0
- package/dist/es/cartesian/cartesian-grid/CartesianGrid.mjs +155 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalGridLines.mjs +49 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/VerticalGridLines.mjs +44 -0
- package/dist/es/cartesian/cartesian-grid/VerticalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/const.mjs +29 -0
- package/dist/es/cartesian/cartesian-grid/utils.mjs +17 -0
- package/dist/es/cartesian/error-bar/ErrorBar.mjs +115 -0
- package/dist/es/cartesian/error-bar/ErrorBarContext.mjs +19 -0
- package/dist/es/cartesian/line/ActivePoints.mjs +75 -0
- package/dist/es/cartesian/line/Line.mjs +46 -0
- package/dist/es/cartesian/line/StaticLine.mjs +148 -0
- package/dist/es/cartesian/line/hooks/useLine.mjs +53 -0
- package/dist/es/cartesian/line/type.mjs +112 -0
- package/dist/es/cartesian/line/utils.mjs +33 -0
- package/dist/es/cartesian/reference-area/ReferenceArea.mjs +146 -0
- package/dist/es/cartesian/reference-line/ReferenceLine.mjs +143 -0
- package/dist/es/cartesian/scatter/Scatter.mjs +252 -0
- package/dist/es/cartesian/scatter/hooks/useScatter.mjs +19 -0
- package/dist/es/cartesian/useNeedsClip.mjs +14 -0
- package/dist/es/cartesian/utils/get-ticks.mjs +83 -0
- package/dist/es/cartesian/z-axis/ZAxis.mjs +70 -0
- package/dist/es/chart/AreaChart.mjs +9 -0
- package/dist/es/chart/BarChart.mjs +10 -0
- package/dist/es/chart/ComposedChart.mjs +10 -0
- package/dist/es/chart/LegendPortalContext.mjs +5 -0
- package/dist/es/chart/LineChart.mjs +10 -0
- package/dist/es/chart/PieChart.mjs +16 -0
- package/dist/es/chart/RadarChart.mjs +16 -0
- package/dist/es/chart/RadialBarChart.mjs +16 -0
- package/dist/es/chart/RechartsWrapper.mjs +137 -0
- package/dist/es/chart/ScatterChart.mjs +10 -0
- package/dist/es/chart/Surface.mjs +5 -0
- package/dist/es/chart/Surface.vue_vue_type_script_setup_true_lang.mjs +66 -0
- package/dist/es/chart/TooltipPortalContext.mjs +5 -0
- package/dist/es/chart/const.mjs +7 -0
- package/dist/es/chart/generateCategoricalChart.mjs +166 -0
- package/dist/es/chart/provideClipPathId.mjs +10 -0
- package/dist/es/components/Cell.mjs +11 -0
- package/dist/es/components/Text.mjs +5 -0
- package/dist/es/components/Text.vue_vue_type_script_setup_true_lang.mjs +154 -0
- package/dist/es/components/Tooltip.mjs +388 -0
- package/dist/es/components/label/Label.mjs +36 -0
- package/dist/es/components/label/LabelList.mjs +49 -0
- package/dist/es/components/label/types.mjs +35 -0
- package/dist/es/components/label/utils.mjs +233 -0
- package/dist/es/components/legend/Legend.mjs +82 -0
- package/dist/es/components/legend/LegendSymbol.mjs +60 -0
- package/dist/es/components/legend/hooks/useLegend.mjs +52 -0
- package/dist/es/components/legend/hooks/useLegendContent.mjs +47 -0
- package/dist/es/components/legend/type.mjs +41 -0
- package/dist/es/components/legend/utils.mjs +17 -0
- package/dist/es/components/utils.mjs +31 -0
- package/dist/es/container/ClipPath.mjs +25 -0
- package/dist/es/container/Layer.mjs +12 -0
- package/dist/es/container/ResponsiveContainer.mjs +5 -0
- package/dist/es/container/ResponsiveContainer.vue_vue_type_script_setup_true_lang.mjs +112 -0
- package/dist/es/container/Surface.mjs +58 -0
- package/dist/es/container/useSizeContext.mjs +5 -0
- package/dist/es/context/ChartDataContextProvider.mjs +21 -0
- package/dist/es/context/PanoramaContextProvider.mjs +19 -0
- package/dist/es/context/accessibilityContext.mjs +5 -0
- package/dist/es/context/cartesianLabelListContext.mjs +5 -0
- package/dist/es/context/chartLayoutContext.mjs +46 -0
- package/dist/es/context/cursorLayerContext.mjs +5 -0
- package/dist/es/context/graphicalLayerContext.mjs +5 -0
- package/dist/es/context/labelLayerContext.mjs +5 -0
- package/dist/es/context/polarLabelViewBoxContext.mjs +8 -0
- package/dist/es/context/useTooltipAxis.mjs +15 -0
- package/dist/es/events/useChartSynchronisation.mjs +88 -0
- package/dist/es/hooks/useSetupGraphicalItem.mjs +57 -0
- package/dist/es/index.mjs +42 -0
- package/dist/es/polar/pie/Pie.mjs +145 -0
- package/dist/es/polar/pie/type.mjs +97 -0
- package/dist/es/polar/radar/PolarAngleAxis.mjs +161 -0
- package/dist/es/polar/radar/PolarGrid.mjs +102 -0
- package/dist/es/polar/radar/PolarRadiusAxis.mjs +137 -0
- package/dist/es/polar/radar/Radar.mjs +248 -0
- package/dist/es/polar/radial-bar/RadialBar.mjs +176 -0
- package/dist/es/polar/radial-bar/type.mjs +97 -0
- package/dist/es/shape/Cross.mjs +15 -0
- package/dist/es/shape/Curve.mjs +60 -0
- package/dist/es/shape/Dot.mjs +23 -0
- package/dist/es/shape/Rectangle.mjs +68 -0
- package/dist/es/shape/Sector.mjs +128 -0
- package/dist/es/shape/Symbols.mjs +41 -0
- package/dist/es/state/ReportChartProps.mjs +63 -0
- package/dist/es/state/ReportMainChartProps.mjs +41 -0
- package/dist/es/state/ReportPolarOptions.mjs +55 -0
- package/dist/es/state/SetGraphicalItem.mjs +34 -0
- package/dist/es/state/SetLegendPayload.mjs +16 -0
- package/dist/es/state/SetTooltipEntrySettings.mjs +17 -0
- package/dist/es/state/brushSlice.mjs +22 -0
- package/dist/es/state/cartesianAxisSlice.mjs +33 -0
- package/dist/es/state/chartDataSlice.mjs +28 -0
- package/dist/es/state/externalEventsMiddleware.mjs +20 -0
- package/dist/es/state/graphicalItemsSlice.mjs +43 -0
- package/dist/es/state/hooks.mjs +5 -0
- package/dist/es/state/keyboardEventsMiddleware.mjs +55 -0
- package/dist/es/state/layoutSlice.mjs +33 -0
- package/dist/es/state/legendSlice.mjs +35 -0
- package/dist/es/state/mouseEventsMiddleware.mjs +34 -0
- package/dist/es/state/optionsSlice.mjs +22 -0
- package/dist/es/state/polarAxisSlice.mjs +26 -0
- package/dist/es/state/polarOptionsSlice.mjs +11 -0
- package/dist/es/state/reduxDevtoolsJsonStringifyReplacer.mjs +6 -0
- package/dist/es/state/referenceElementsSlice.mjs +34 -0
- package/dist/es/state/rootPropsSlice.mjs +21 -0
- package/dist/es/state/selectors/areaSelectors.mjs +67 -0
- package/dist/es/state/selectors/axisSelectors.mjs +693 -0
- package/dist/es/state/selectors/barSelectors.mjs +178 -0
- package/dist/es/state/selectors/brushSelectors.mjs +17 -0
- package/dist/es/state/selectors/combiners/combineActiveLabel.mjs +8 -0
- package/dist/es/state/selectors/combiners/combineActiveTooltipIndex.mjs +34 -0
- package/dist/es/state/selectors/combiners/combineAxisRangeWithReverse.mjs +6 -0
- package/dist/es/state/selectors/combiners/combineCoordinateForDefaultIndex.mjs +19 -0
- package/dist/es/state/selectors/combiners/combineTooltipInteractionState.mjs +32 -0
- package/dist/es/state/selectors/combiners/combineTooltipPayloadConfigurations.mjs +9 -0
- package/dist/es/state/selectors/common.mjs +4 -0
- package/dist/es/state/selectors/containerSelectors.mjs +4 -0
- package/dist/es/state/selectors/dataSelectors.mjs +16 -0
- package/dist/es/state/selectors/legendSelectors.mjs +9 -0
- package/dist/es/state/selectors/lineSelectors.mjs +57 -0
- package/dist/es/state/selectors/pickAxisId.mjs +4 -0
- package/dist/es/state/selectors/pickAxisType.mjs +4 -0
- package/dist/es/state/selectors/pieSelectors.mjs +97 -0
- package/dist/es/state/selectors/polarAxisSelectors.mjs +148 -0
- package/dist/es/state/selectors/polarGridSelectors.mjs +17 -0
- package/dist/es/state/selectors/polarScaleSelectors.mjs +52 -0
- package/dist/es/state/selectors/polarSelectors.mjs +64 -0
- package/dist/es/state/selectors/radarSelectors.mjs +113 -0
- package/dist/es/state/selectors/radialBarSelectors.mjs +212 -0
- package/dist/es/state/selectors/rootPropsSelectors.mjs +8 -0
- package/dist/es/state/selectors/scatterSelectors.mjs +118 -0
- package/dist/es/state/selectors/selectActivePropsFromChartPointer.mjs +18 -0
- package/dist/es/state/selectors/selectAllAxes.mjs +5 -0
- package/dist/es/state/selectors/selectChartOffset.mjs +60 -0
- package/dist/es/state/selectors/selectChartOffsetInternal.mjs +55 -0
- package/dist/es/state/selectors/selectTooltipEventType.mjs +21 -0
- package/dist/es/state/selectors/selectTooltipPayloadSearcher.mjs +6 -0
- package/dist/es/state/selectors/selectTooltipSettings.mjs +4 -0
- package/dist/es/state/selectors/selectTooltipState.mjs +4 -0
- package/dist/es/state/selectors/selectors.mjs +85 -0
- package/dist/es/state/selectors/tooltipSelectors.mjs +220 -0
- package/dist/es/state/selectors/touchSelectors.mjs +16 -0
- package/dist/es/state/store.mjs +55 -0
- package/dist/es/state/tooltipSlice.mjs +75 -0
- package/dist/es/state/touchEventsMiddleware.mjs +38 -0
- package/dist/es/state/utils/useReportScale.mjs +16 -0
- package/dist/es/synchronisation/syncSelectors.mjs +6 -0
- package/dist/es/synchronisation/useChartSynchronisation.mjs +24 -0
- package/dist/es/types/event.mjs +4 -0
- package/dist/es/utils/ReduceCSSCalc.mjs +82 -0
- package/dist/es/utils/VueUtils.mjs +18 -0
- package/dist/es/utils/attrs.mjs +52 -0
- package/dist/es/utils/cartesian.mjs +22 -0
- package/dist/es/utils/chart.mjs +265 -0
- package/dist/es/utils/const.mjs +4 -0
- package/dist/es/utils/createContext.mjs +12 -0
- package/dist/es/utils/data-utils.mjs +12 -0
- package/dist/es/utils/data.mjs +27 -0
- package/dist/es/utils/events.mjs +5 -0
- package/dist/es/utils/getLinearRegression.mjs +17 -0
- package/dist/es/utils/grid.mjs +8 -0
- package/dist/es/utils/isDomainSpecifiedByUser.mjs +65 -0
- package/dist/es/utils/legend.mjs +18 -0
- package/dist/es/utils/log.mjs +11 -0
- package/dist/es/utils/payload/getUniqPayload.mjs +7 -0
- package/dist/es/utils/polar.mjs +52 -0
- package/dist/es/utils/props.mjs +14 -0
- package/dist/es/utils/resolveDefaultProps.mjs +7 -0
- package/dist/es/utils/scale/getNiceTickValues.mjs +59 -0
- package/dist/es/utils/scale/utils/arithmetic.mjs +24 -0
- package/dist/es/utils/scale/utils/utils.mjs +34 -0
- package/dist/es/utils/style.mjs +19 -0
- package/dist/es/utils/tick.mjs +31 -0
- package/dist/es/utils/tooltip/translate.mjs +59 -0
- package/dist/es/utils/validate.mjs +31 -0
- package/dist/events/useChartSynchronisation.d.ts +8 -0
- package/dist/hooks/useSetupGraphicalItem.d.ts +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/polar/index.d.ts +3 -0
- package/dist/polar/pie/Pie.d.ts +2 -0
- package/dist/polar/pie/index.d.ts +2 -0
- package/dist/polar/pie/type.d.ts +88 -0
- package/dist/polar/radar/PolarAngleAxis.d.ts +145 -0
- package/dist/polar/radar/PolarGrid.d.ts +77 -0
- package/dist/polar/radar/PolarRadiusAxis.d.ts +125 -0
- package/dist/polar/radar/Radar.d.ts +160 -0
- package/dist/polar/radar/index.d.ts +4 -0
- package/dist/polar/radial-bar/RadialBar.d.ts +2 -0
- package/dist/polar/radial-bar/index.d.ts +2 -0
- package/dist/polar/radial-bar/type.d.ts +96 -0
- package/dist/shape/Cross.d.ts +10 -0
- package/dist/shape/Curve.d.ts +42 -0
- package/dist/shape/Dot.d.ts +18 -0
- package/dist/shape/Rectangle.d.ts +33 -0
- package/dist/shape/Sector.d.ts +48 -0
- package/dist/shape/Symbols.d.ts +15 -0
- package/dist/shape/index.d.ts +8 -0
- package/dist/shape/types.d.ts +20 -0
- package/dist/state/ReportBar.d.ts +1 -0
- package/dist/state/ReportChartProps.d.ts +88 -0
- package/dist/state/ReportMainChartProps.d.ts +37 -0
- package/dist/state/ReportPolarOptions.d.ts +59 -0
- package/dist/state/SetGraphicalItem.d.ts +9 -0
- package/dist/state/SetLegendPayload.d.ts +3 -0
- package/dist/state/SetTooltipEntrySettings.d.ts +8 -0
- package/dist/state/brushSlice.d.ts +18 -0
- package/dist/state/cartesianAxisSlice.d.ts +88 -0
- package/dist/state/chartDataSlice.d.ts +44 -0
- package/dist/state/externalEventsMiddleware.d.ts +17 -0
- package/dist/state/graphicalItemsSlice.d.ts +108 -0
- package/dist/state/hooks.d.ts +54 -0
- package/dist/state/keyboardEventsMiddleware.d.ts +3 -0
- package/dist/state/layoutSlice.d.ts +15 -0
- package/dist/state/legendSlice.d.ts +26 -0
- package/dist/state/mouseEventsMiddleware.d.ts +5 -0
- package/dist/state/optionsSlice.d.ts +27 -0
- package/dist/state/polarAxisSlice.d.ts +10 -0
- package/dist/state/polarOptionsSlice.d.ts +10 -0
- package/dist/state/reduxDevtoolsJsonStringifyReplacer.d.ts +1 -0
- package/dist/state/referenceElementsSlice.d.ts +40 -0
- package/dist/state/rootPropsSlice.d.ts +26 -0
- package/dist/state/selectors/areaSelectors.d.ts +24 -0
- package/dist/state/selectors/axisSelectors.d.ts +1828 -0
- package/dist/state/selectors/barSelectors.d.ts +944 -0
- package/dist/state/selectors/brushSelectors.d.ts +10 -0
- package/dist/state/selectors/combiners/combineActiveLabel.d.ts +3 -0
- package/dist/state/selectors/combiners/combineActiveTooltipIndex.d.ts +5 -0
- package/dist/state/selectors/combiners/combineAxisRangeWithReverse.d.ts +3 -0
- package/dist/state/selectors/combiners/combineCoordinateForDefaultIndex.d.ts +3 -0
- package/dist/state/selectors/combiners/combineTooltipInteractionState.d.ts +3 -0
- package/dist/state/selectors/combiners/combineTooltipPayloadConfigurations.d.ts +3 -0
- package/dist/state/selectors/common.d.ts +2 -0
- package/dist/state/selectors/containerSelectors.d.ts +6 -0
- package/dist/state/selectors/dataSelectors.d.ts +23 -0
- package/dist/state/selectors/funnelSelectors.d.ts +69 -0
- package/dist/state/selectors/legendSelectors.d.ts +7 -0
- package/dist/state/selectors/lineSelectors.d.ts +123 -0
- package/dist/state/selectors/pickAxisId.d.ts +3 -0
- package/dist/state/selectors/pickAxisType.d.ts +2 -0
- package/dist/state/selectors/pieSelectors.d.ts +55 -0
- package/dist/state/selectors/polarAxisSelectors.d.ts +49 -0
- package/dist/state/selectors/polarGridSelectors.d.ts +118 -0
- package/dist/state/selectors/polarScaleSelectors.d.ts +9 -0
- package/dist/state/selectors/polarSelectors.d.ts +70 -0
- package/dist/state/selectors/radarSelectors.d.ts +76 -0
- package/dist/state/selectors/radialBarSelectors.d.ts +61 -0
- package/dist/state/selectors/rootPropsSelectors.d.ts +11 -0
- package/dist/state/selectors/scatterSelectors.d.ts +21 -0
- package/dist/state/selectors/selectActivePropsFromChartPointer.d.ts +382 -0
- package/dist/state/selectors/selectAllAxes.d.ts +4 -0
- package/dist/state/selectors/selectChartOffset.d.ts +116 -0
- package/dist/state/selectors/selectChartOffsetInternal.d.ts +9 -0
- package/dist/state/selectors/selectTooltipEventType.d.ts +8 -0
- package/dist/state/selectors/selectTooltipPayloadSearcher.d.ts +3 -0
- package/dist/state/selectors/selectTooltipSettings.d.ts +3 -0
- package/dist/state/selectors/selectTooltipState.d.ts +3 -0
- package/dist/state/selectors/selectors.d.ts +184 -0
- package/dist/state/selectors/tooltipSelectors.d.ts +581 -0
- package/dist/state/selectors/touchSelectors.d.ts +4 -0
- package/dist/state/store.d.ts +74 -0
- package/dist/state/tooltipSlice.d.ts +204 -0
- package/dist/state/touchEventsMiddleware.d.ts +2 -0
- package/dist/state/utils/useReportScale.d.ts +1 -0
- package/dist/synchronisation/syncSelectors.d.ts +3 -0
- package/dist/synchronisation/useChartSynchronisation.d.ts +11 -0
- package/dist/types/area.d.ts +8 -0
- package/dist/types/axis.d.ts +127 -0
- package/dist/types/bar.d.ts +51 -0
- package/dist/types/categorical.d.ts +36 -0
- package/dist/types/common.d.ts +129 -0
- package/dist/types/event.d.ts +16 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/legend.d.ts +1 -0
- package/dist/types/offset.d.ts +8 -0
- package/dist/types/radar.d.ts +28 -0
- package/dist/types/scale.d.ts +11 -0
- package/dist/types/tick.d.ts +55 -0
- package/dist/types/tooltip.d.ts +33 -0
- package/dist/utils/ReduceCSSCalc.d.ts +2 -0
- package/dist/utils/VueUtils.d.ts +11 -0
- package/dist/utils/attrs.d.ts +46 -0
- package/dist/utils/cartesian.d.ts +20 -0
- package/dist/utils/chart.d.ts +99 -0
- package/dist/utils/const.d.ts +30 -0
- package/dist/utils/context.d.ts +8 -0
- package/dist/utils/createContext.d.ts +8 -0
- package/dist/utils/data-utils.d.ts +4 -0
- package/dist/utils/data.d.ts +13 -0
- package/dist/utils/events.d.ts +12 -0
- package/dist/utils/getLinearRegression.d.ts +15 -0
- package/dist/utils/getRelativeCoordinate.d.ts +11 -0
- package/dist/utils/grid.d.ts +37 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/isDomainSpecifiedByUser.d.ts +47 -0
- package/dist/utils/legend.d.ts +3 -0
- package/dist/utils/log.d.ts +1 -0
- package/dist/utils/payload/getUniqPayload.d.ts +4 -0
- package/dist/utils/polar.d.ts +21 -0
- package/dist/utils/props.d.ts +15 -0
- package/dist/utils/resolveDefaultProps.d.ts +52 -0
- package/dist/utils/scale/getNiceTickValues.d.ts +61 -0
- package/dist/utils/scale/utils/arithmetic.d.ts +50 -0
- package/dist/utils/scale/utils/utils.d.ts +9 -0
- package/dist/utils/style.d.ts +12 -0
- package/dist/utils/tick.d.ts +19 -0
- package/dist/utils/tooltip/translate.d.ts +47 -0
- package/dist/utils/types.d.ts +14 -0
- package/dist/utils/validate.d.ts +25 -0
- package/package.json +27 -10
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LayoutType } from '../types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
export declare const ReportMainChartProps: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
width: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
height: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
layout: {
|
|
13
|
+
type: PropType<LayoutType>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
margin: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
width: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
height: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
layout: {
|
|
30
|
+
type: PropType<LayoutType>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
margin: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const ReportPolarOptions: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
cx: {
|
|
4
|
+
type: PropType<number | string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
cy: {
|
|
8
|
+
type: PropType<number | string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
startAngle: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
endAngle: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
innerRadius: {
|
|
20
|
+
type: PropType<number | string>;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
outerRadius: {
|
|
24
|
+
type: PropType<number | string>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
cx: {
|
|
29
|
+
type: PropType<number | string>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
cy: {
|
|
33
|
+
type: PropType<number | string>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
startAngle: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
endAngle: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
innerRadius: {
|
|
45
|
+
type: PropType<number | string>;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
outerRadius: {
|
|
49
|
+
type: PropType<number | string>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
}>> & Readonly<{}>, {
|
|
53
|
+
cx: string | number;
|
|
54
|
+
cy: string | number;
|
|
55
|
+
startAngle: number;
|
|
56
|
+
endAngle: number;
|
|
57
|
+
innerRadius: string | number;
|
|
58
|
+
outerRadius: string | number;
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CartesianGraphicalItemSettings, PolarGraphicalItemSettings } from './graphicalItemsSlice';
|
|
2
|
+
import { StackId } from '../types/tick';
|
|
3
|
+
import { MaybeRef } from 'vue';
|
|
4
|
+
type SetCartesianGraphicalItemProps = Partial<Omit<CartesianGraphicalItemSettings, 'stackId'> & {
|
|
5
|
+
stackId: StackId | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function SetCartesianGraphicalItem(_props: MaybeRef<SetCartesianGraphicalItemProps>): void;
|
|
8
|
+
export declare function SetPolarGraphicalItem(_props: MaybeRef<Partial<PolarGraphicalItemSettings>>): void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TooltipPayloadConfiguration } from './tooltipSlice';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
type SetTooltipEntrySettingsProps<T> = {
|
|
4
|
+
args: Ref<T>;
|
|
5
|
+
fn: (input: T) => TooltipPayloadConfiguration;
|
|
6
|
+
};
|
|
7
|
+
export declare function SetTooltipEntrySettings<T>({ fn, args }: SetTooltipEntrySettingsProps<T>): void;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Padding } from '../types';
|
|
2
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
+
/**
|
|
4
|
+
* From all Brush properties, only height has a default value and will be always defined.
|
|
5
|
+
* Other properties are nullable and will be computed from offsets and margins if they are not set.
|
|
6
|
+
*/
|
|
7
|
+
export type BrushSettings = {
|
|
8
|
+
x: number | undefined;
|
|
9
|
+
y: number | undefined;
|
|
10
|
+
width: number | undefined;
|
|
11
|
+
height: number;
|
|
12
|
+
padding: Padding;
|
|
13
|
+
};
|
|
14
|
+
export declare const brushSlice: import('@reduxjs/toolkit').Slice<BrushSettings, {
|
|
15
|
+
setBrushSettings(_state: BrushSettings, action: PayloadAction<BrushSettings | null>): BrushSettings;
|
|
16
|
+
}, "brush", "brush", import('@reduxjs/toolkit').SliceSelectors<BrushSettings>>;
|
|
17
|
+
export declare const setBrushSettings: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<BrushSettings, "brush/setBrushSettings">;
|
|
18
|
+
export declare const brushReducer: import('@reduxjs/toolkit').Reducer<BrushSettings>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { AxisRange } from './selectors/axisSelectors';
|
|
2
|
+
import { SVGAttributes } from 'vue';
|
|
3
|
+
import { RechartsScale, ScaleType } from '../types/scale';
|
|
4
|
+
import { AxisDomain, AxisDomainType, AxisInterval } from '../types/axis';
|
|
5
|
+
import { DataKey } from '../types';
|
|
6
|
+
import { AxisTick, TickFormatter } from '../types/tick';
|
|
7
|
+
export type AxisId = string | number;
|
|
8
|
+
export type XAxisPadding = {
|
|
9
|
+
left?: number;
|
|
10
|
+
right?: number;
|
|
11
|
+
} | 'gap' | 'no-gap';
|
|
12
|
+
export type YAxisPadding = {
|
|
13
|
+
top?: number;
|
|
14
|
+
bottom?: number;
|
|
15
|
+
} | 'gap' | 'no-gap';
|
|
16
|
+
export type XAxisOrientation = 'top' | 'bottom';
|
|
17
|
+
export type YAxisOrientation = 'left' | 'right';
|
|
18
|
+
/**
|
|
19
|
+
* Properties shared in X, Y, and Z axes
|
|
20
|
+
*/
|
|
21
|
+
export type BaseCartesianAxis = {
|
|
22
|
+
id?: AxisId;
|
|
23
|
+
scale: ScaleType | RechartsScale | undefined;
|
|
24
|
+
type: AxisDomainType;
|
|
25
|
+
/**
|
|
26
|
+
* The axis functionality is severely restricted without a dataKey
|
|
27
|
+
* - but there is still something left, and the prop is optional
|
|
28
|
+
* so this can also be undefined even in real charts.
|
|
29
|
+
* There are no defaults.
|
|
30
|
+
*/
|
|
31
|
+
dataKey: DataKey<any> | undefined;
|
|
32
|
+
unit: string | undefined;
|
|
33
|
+
name: string | undefined;
|
|
34
|
+
allowDuplicatedCategory: boolean;
|
|
35
|
+
allowDataOverflow: boolean;
|
|
36
|
+
reversed: boolean;
|
|
37
|
+
includeHidden: boolean;
|
|
38
|
+
domain: AxisDomain | undefined;
|
|
39
|
+
};
|
|
40
|
+
export type TicksSettings = {
|
|
41
|
+
allowDecimals: boolean;
|
|
42
|
+
tickCount: number;
|
|
43
|
+
/**
|
|
44
|
+
* Ticks can be any type when the axis is the type of category
|
|
45
|
+
* Ticks must be numbers when the axis is the type of number
|
|
46
|
+
*/
|
|
47
|
+
ticks: ReadonlyArray<AxisTick> | undefined;
|
|
48
|
+
tick: SVGAttributes | boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* These are the external props, visible for users as they set them using our public API.
|
|
52
|
+
* There is all sorts of internal computed things based on these, but they will come through selectors.
|
|
53
|
+
*
|
|
54
|
+
* Properties shared between X and Y axes
|
|
55
|
+
*/
|
|
56
|
+
export type CartesianAxisSettings = BaseCartesianAxis & TicksSettings & {
|
|
57
|
+
interval: AxisInterval;
|
|
58
|
+
mirror: boolean;
|
|
59
|
+
minTickGap: number;
|
|
60
|
+
angle: number;
|
|
61
|
+
hide: boolean;
|
|
62
|
+
tickFormatter: TickFormatter | undefined;
|
|
63
|
+
};
|
|
64
|
+
export type XAxisSettings = CartesianAxisSettings & {
|
|
65
|
+
padding: XAxisPadding;
|
|
66
|
+
height: number;
|
|
67
|
+
orientation: XAxisOrientation;
|
|
68
|
+
};
|
|
69
|
+
export type YAxisSettings = CartesianAxisSettings & {
|
|
70
|
+
padding: YAxisPadding;
|
|
71
|
+
width: number;
|
|
72
|
+
orientation: YAxisOrientation;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Z axis is special because it's never displayed. It controls the size of Scatter dots,
|
|
76
|
+
* but it never displays ticks anywhere.
|
|
77
|
+
*/
|
|
78
|
+
export type ZAxisSettings = BaseCartesianAxis & {
|
|
79
|
+
range: AxisRange;
|
|
80
|
+
};
|
|
81
|
+
type AxisMapState = {
|
|
82
|
+
xAxis: Record<AxisId, XAxisSettings>;
|
|
83
|
+
yAxis: Record<AxisId, YAxisSettings>;
|
|
84
|
+
zAxis: Record<AxisId, ZAxisSettings>;
|
|
85
|
+
};
|
|
86
|
+
export declare const addXAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<XAxisSettings, "cartesianAxis/addXAxis">, removeXAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<XAxisSettings, "cartesianAxis/removeXAxis">, addYAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<YAxisSettings, "cartesianAxis/addYAxis">, removeYAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<YAxisSettings, "cartesianAxis/removeYAxis">, addZAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ZAxisSettings, "cartesianAxis/addZAxis">, removeZAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ZAxisSettings, "cartesianAxis/removeZAxis">;
|
|
87
|
+
export declare const cartesianAxisReducer: import('@reduxjs/toolkit').Reducer<AxisMapState>;
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the data that's coming through main chart `data` prop
|
|
3
|
+
* Recharts is very flexible in what it accepts so the type is very flexible too.
|
|
4
|
+
* This will typically be an object, and various components will provide various `dataKey`
|
|
5
|
+
* that dictates how to pull data from that object.
|
|
6
|
+
*
|
|
7
|
+
* TL;DR: before dataKey
|
|
8
|
+
*/
|
|
9
|
+
export type ChartData = unknown[];
|
|
10
|
+
export interface BrushStartEndIndex {
|
|
11
|
+
startIndex: number;
|
|
12
|
+
endIndex: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* So this is the same unknown type as ChartData but this is after the dataKey has been applied.
|
|
16
|
+
* We still don't know what the type is - that depends on what exactly it was before the dataKey application,
|
|
17
|
+
* and the dataKey can return whatever anyway - but let's keep it separate as a form of documentation.
|
|
18
|
+
*
|
|
19
|
+
* TL;DR: ChartData after dataKey.
|
|
20
|
+
*/
|
|
21
|
+
export type AppliedChartData = ReadonlyArray<{
|
|
22
|
+
value: unknown;
|
|
23
|
+
}>;
|
|
24
|
+
export type ChartDataState = {
|
|
25
|
+
chartData: ChartData | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* store a copy of chart data after it has been processed by each chart's specific
|
|
28
|
+
* compute functions. TODO: add other charts besides Sankey
|
|
29
|
+
*/
|
|
30
|
+
computedData: unknown | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Using Brush, users can choose where they want to zoom in.
|
|
33
|
+
* This is zero-based index of the starting data point.
|
|
34
|
+
*/
|
|
35
|
+
dataStartIndex: number;
|
|
36
|
+
/**
|
|
37
|
+
* Using Brush, users can choose where they want to zoom in.
|
|
38
|
+
* This is zero-based index of the last data point.
|
|
39
|
+
*/
|
|
40
|
+
dataEndIndex: number;
|
|
41
|
+
};
|
|
42
|
+
export declare const initialChartDataState: ChartDataState;
|
|
43
|
+
export declare const setChartData: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ChartData, "chartData/setChartData">, setDataStartEndIndexes: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<"chartData/setDataStartEndIndexes">, setComputedData: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<"chartData/setComputedData">;
|
|
44
|
+
export declare const chartDataReducer: import('@reduxjs/toolkit').Reducer<ChartDataState>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Middleware } from '@reduxjs/toolkit';
|
|
2
|
+
import { CategoricalChartFunc } from '../types';
|
|
3
|
+
type ExternalEventActionPayload = {
|
|
4
|
+
event: MouseEvent | PointerEvent | TouchEvent;
|
|
5
|
+
handler: null | CategoricalChartFunc;
|
|
6
|
+
};
|
|
7
|
+
export declare const externalEventAction: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ExternalEventActionPayload, string>;
|
|
8
|
+
/**
|
|
9
|
+
* Calls external event handlers (onMouseMove, onClick, etc.) synchronously within the dispatch
|
|
10
|
+
* call stack, while the native event's `currentTarget` is still valid.
|
|
11
|
+
*
|
|
12
|
+
* Using createListenerMiddleware would defer the call to a microtask, at which point the browser
|
|
13
|
+
* has already cleared `e.currentTarget` per the DOM spec, breaking coordinate-based handlers like
|
|
14
|
+
* DraggablePie that rely on `getRelativeCoordinate(e)`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const externalEventsMiddleware: Middleware;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ChartData } from './chartDataSlice';
|
|
2
|
+
import { AxisId } from './cartesianAxisSlice';
|
|
3
|
+
import { MaybeStackedGraphicalItem } from './selectors/barSelectors';
|
|
4
|
+
import { ErrorBarDirection } from '../types/bar';
|
|
5
|
+
import { DataKey } from '../types';
|
|
6
|
+
import { NormalizedStackId } from '../shape';
|
|
7
|
+
import { StackId } from '../types/tick';
|
|
8
|
+
/**
|
|
9
|
+
* ErrorBars have lot more settings but all the others are scoped to the component itself.
|
|
10
|
+
* Only some of them required to be reported to the global store because XAxis and YAxis need to know
|
|
11
|
+
* if the error bar is contributing to extending the axis domain.
|
|
12
|
+
*/
|
|
13
|
+
export type ErrorBarsSettings = {
|
|
14
|
+
/**
|
|
15
|
+
* The direction is only used in Scatter chart, and decided based on ChartLayout in other charts.
|
|
16
|
+
*/
|
|
17
|
+
direction: ErrorBarDirection;
|
|
18
|
+
/**
|
|
19
|
+
* The dataKey decides which property from the data will each individual ErrorBar use.
|
|
20
|
+
* If it so happens that the ErrorBar data are bigger than the axis domain,
|
|
21
|
+
* the error bar data will stretch the axis domain.
|
|
22
|
+
*/
|
|
23
|
+
dataKey: DataKey<any>;
|
|
24
|
+
};
|
|
25
|
+
export type CartesianGraphicalItemType = 'area' | 'bar' | 'line' | 'scatter';
|
|
26
|
+
export type PolarGraphicalItemType = 'pie' | 'radar' | 'radialBar';
|
|
27
|
+
export interface GraphicalItemSettings extends MaybeStackedGraphicalItem {
|
|
28
|
+
data: ChartData;
|
|
29
|
+
dataKey: DataKey<any> | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Why not just stop pushing the graphical items to state when they are hidden?
|
|
32
|
+
* Well some components decide to continue showing them anyway.
|
|
33
|
+
* Legend for example will keep showing a record for hidden graphical items.
|
|
34
|
+
* Stacks for example will ignore them.
|
|
35
|
+
*/
|
|
36
|
+
hide: boolean;
|
|
37
|
+
}
|
|
38
|
+
export type CartesianGraphicalItemSettings = GraphicalItemSettings & {
|
|
39
|
+
type: CartesianGraphicalItemType;
|
|
40
|
+
/**
|
|
41
|
+
* Graphical items that are inside Brush panorama should not interact with the main area graphical items
|
|
42
|
+
* and vice versa.
|
|
43
|
+
*/
|
|
44
|
+
isPanorama: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Each of the graphical items explicitly says which axis it uses;
|
|
47
|
+
* this property is optional for users but every graphical item must have a default,
|
|
48
|
+
* and it is required here.
|
|
49
|
+
*/
|
|
50
|
+
xAxisId: AxisId;
|
|
51
|
+
yAxisId: AxisId;
|
|
52
|
+
zAxisId: AxisId;
|
|
53
|
+
/**
|
|
54
|
+
* ErrorBars are only rendered if they are explicitly set in the React tree, otherwise this will be an empty array.
|
|
55
|
+
* One graphical item can have multiple error bars. This probably only makes sense in Scatter.
|
|
56
|
+
*/
|
|
57
|
+
errorBars: ReadonlyArray<ErrorBarsSettings> | undefined;
|
|
58
|
+
stackId: NormalizedStackId | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* This property is only used in Bar and RadialBar items
|
|
61
|
+
*/
|
|
62
|
+
barSize: number | string | undefined;
|
|
63
|
+
};
|
|
64
|
+
export type PolarGraphicalItemSettings = GraphicalItemSettings & {
|
|
65
|
+
type: PolarGraphicalItemType;
|
|
66
|
+
angleAxisId: AxisId;
|
|
67
|
+
radiusAxisId: AxisId;
|
|
68
|
+
/**
|
|
69
|
+
* Only used by RadialBar items
|
|
70
|
+
*/
|
|
71
|
+
barSize?: number | string;
|
|
72
|
+
stackId?: StackId;
|
|
73
|
+
minPointSize?: number;
|
|
74
|
+
maxBarSize?: number;
|
|
75
|
+
};
|
|
76
|
+
type ReplacePayload<T> = {
|
|
77
|
+
prev: T;
|
|
78
|
+
next: T;
|
|
79
|
+
};
|
|
80
|
+
export type GraphicalItemsState = {
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated - we can now read graphicalitems.type property instead of maintaining separate reducer. TODO replace
|
|
83
|
+
* Axis scale selector behaves differently if one of the child elements is a bar
|
|
84
|
+
* vs if it's not;
|
|
85
|
+
* So we need to track the number of bars present in the chart
|
|
86
|
+
* and then report if there is at least one.
|
|
87
|
+
*/
|
|
88
|
+
countOfBars: number;
|
|
89
|
+
/**
|
|
90
|
+
* This is an array of all cartesian graphical items and their settings.
|
|
91
|
+
* Graphical item is a visual representation of data on the chart.
|
|
92
|
+
* Some examples are: Line, Bar.
|
|
93
|
+
*
|
|
94
|
+
* The order is arbitrary; do not expect that indexes here will be the same as indexes elsewhere.
|
|
95
|
+
*/
|
|
96
|
+
cartesianItems: ReadonlyArray<CartesianGraphicalItemSettings>;
|
|
97
|
+
/**
|
|
98
|
+
* This is an array of all polar graphical items and their settings.
|
|
99
|
+
* Graphical item is a visual representation of data on the chart.
|
|
100
|
+
* Some examples are: Pie, Radar, RadialBar
|
|
101
|
+
*
|
|
102
|
+
* The order is arbitrary; do not expect that indexes here will be the same as indexes elsewhere.
|
|
103
|
+
*/
|
|
104
|
+
polarItems: ReadonlyArray<PolarGraphicalItemSettings>;
|
|
105
|
+
};
|
|
106
|
+
export declare const addBar: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"graphicalItems/addBar">, removeBar: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"graphicalItems/removeBar">, addCartesianGraphicalItem: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<CartesianGraphicalItemSettings, "graphicalItems/addCartesianGraphicalItem">, removeCartesianGraphicalItem: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<CartesianGraphicalItemSettings, "graphicalItems/removeCartesianGraphicalItem">, addPolarGraphicalItem: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<PolarGraphicalItemSettings, "graphicalItems/addPolarGraphicalItem">, replaceCartesianGraphicalItem: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReplacePayload<CartesianGraphicalItemSettings>, "graphicalItems/replaceCartesianGraphicalItem">, removePolarGraphicalItem: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<PolarGraphicalItemSettings, "graphicalItems/removePolarGraphicalItem">, replacePolarGraphicalItem: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReplacePayload<PolarGraphicalItemSettings>, "graphicalItems/replacePolarGraphicalItem">;
|
|
107
|
+
export declare const graphicalItemsReducer: import('@reduxjs/toolkit').Reducer<GraphicalItemsState>;
|
|
108
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { AppDispatch } from './store';
|
|
2
|
+
export declare const useAppDispatch: import('@reduxjs/vue-redux').UseDispatch<AppDispatch>;
|
|
3
|
+
export declare const useAppSelector: import('@reduxjs/vue-redux').UseSelector<{
|
|
4
|
+
brush: import('./brushSlice').BrushSettings;
|
|
5
|
+
cartesianAxis: {
|
|
6
|
+
xAxis: Record<import('./cartesianAxisSlice').AxisId, import('./cartesianAxisSlice').XAxisSettings>;
|
|
7
|
+
yAxis: Record<import('./cartesianAxisSlice').AxisId, import('./cartesianAxisSlice').YAxisSettings>;
|
|
8
|
+
zAxis: Record<import('./cartesianAxisSlice').AxisId, import('./cartesianAxisSlice').ZAxisSettings>;
|
|
9
|
+
};
|
|
10
|
+
chartData: import('./chartDataSlice').ChartDataState;
|
|
11
|
+
graphicalItems: import('./graphicalItemsSlice').GraphicalItemsState;
|
|
12
|
+
layout: {
|
|
13
|
+
layoutType: import('../types').LayoutType;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
margin: import('../types').Margin;
|
|
17
|
+
scale: number;
|
|
18
|
+
};
|
|
19
|
+
legend: {
|
|
20
|
+
settings: import('./legendSlice').LegendSettings;
|
|
21
|
+
size: import('../types').Size;
|
|
22
|
+
payload: ReadonlyArray<ReadonlyArray<import('../components/DefaultLegendContent').LegendPayload>>;
|
|
23
|
+
};
|
|
24
|
+
options: import('./optionsSlice').ChartOptions;
|
|
25
|
+
polarAxis: {
|
|
26
|
+
radiusAxis: Record<import('./cartesianAxisSlice').AxisId, import('./polarAxisSlice').RadiusAxisSettings>;
|
|
27
|
+
angleAxis: Record<import('./cartesianAxisSlice').AxisId, import('./polarAxisSlice').AngleAxisSettings>;
|
|
28
|
+
};
|
|
29
|
+
polarOptions: import('./polarOptionsSlice').PolarChartOptions;
|
|
30
|
+
referenceElements: {
|
|
31
|
+
dots: ReadonlyArray<import('./referenceElementsSlice').ReferenceDotSettings>;
|
|
32
|
+
areas: ReadonlyArray<import('./referenceElementsSlice').ReferenceAreaSettings>;
|
|
33
|
+
lines: ReadonlyArray<import('./referenceElementsSlice').ReferenceLineSettings>;
|
|
34
|
+
};
|
|
35
|
+
rootProps: import('./rootPropsSlice').UpdatableChartOptions;
|
|
36
|
+
tooltip: import('./tooltipSlice').TooltipState;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the currently active data points being displayed in the Tooltip.
|
|
40
|
+
* Active means that it is currently visible; this hook will return `undefined` if there is no current interaction.
|
|
41
|
+
*
|
|
42
|
+
* This follows the `<Tooltip />` props, if the Tooltip element is present in the chart.
|
|
43
|
+
* If there is no `<Tooltip />` then this hook will follow the default Tooltip props.
|
|
44
|
+
*
|
|
45
|
+
* Data point is whatever you pass as an input to the chart using the `data={}` prop.
|
|
46
|
+
*
|
|
47
|
+
* This returns an array because a chart can have multiple graphical items in it (multiple Lines for example)
|
|
48
|
+
* and tooltip with `shared={true}` will display all items at the same time.
|
|
49
|
+
*
|
|
50
|
+
* Returns undefined when used outside a chart context.
|
|
51
|
+
*
|
|
52
|
+
* @returns Data points that are currently visible in a Tooltip
|
|
53
|
+
*/
|
|
54
|
+
export declare function useActiveTooltipDataPoints(): Readonly<import('vue').ShallowRef<import('./tooltipSlice').TooltipPayloadEntry[]>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const keyDownAction: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, string>;
|
|
2
|
+
export declare const focusAction: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"focus">;
|
|
3
|
+
export declare const keyboardEventsMiddleware: import('@reduxjs/toolkit').ListenerMiddlewareInstance<unknown, import('@reduxjs/toolkit').ThunkDispatch<unknown, unknown, import('@reduxjs/toolkit').UnknownAction>, unknown>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LayoutType, Margin, Size } from '../types';
|
|
2
|
+
type ChartLayoutState = {
|
|
3
|
+
layoutType: LayoutType;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
margin: Margin;
|
|
7
|
+
/**
|
|
8
|
+
* How much is the chart zoomed in.
|
|
9
|
+
* Used for scaling the mouse coordinates to the chart coordinates.
|
|
10
|
+
*/
|
|
11
|
+
scale: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const setMargin: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<"chartLayout/setMargin">, setLayout: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<LayoutType, "chartLayout/setLayout">, setChartSize: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Size, "chartLayout/setChartSize">, setScale: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<number, "chartLayout/setScale">;
|
|
14
|
+
export declare const chartLayoutReducer: import('@reduxjs/toolkit').Reducer<ChartLayoutState>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HorizontalAlignmentType, LegendPayload, VerticalAlignmentType } from '../components/DefaultLegendContent';
|
|
2
|
+
import { LayoutType, Size } from '../types';
|
|
3
|
+
export type LegendSettings = {
|
|
4
|
+
layout: LayoutType;
|
|
5
|
+
align: HorizontalAlignmentType;
|
|
6
|
+
verticalAlign: VerticalAlignmentType;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The properties inside this state update independently of each other and quite often.
|
|
10
|
+
* When selecting, never select the whole state because you are going to get
|
|
11
|
+
* unnecessary re-renders. Select only the properties you need.
|
|
12
|
+
*
|
|
13
|
+
* This is why this state type is not exported - don't use it directly.
|
|
14
|
+
*/
|
|
15
|
+
type LegendState = {
|
|
16
|
+
settings: LegendSettings;
|
|
17
|
+
size: Size;
|
|
18
|
+
/**
|
|
19
|
+
* This is a 2D array of LegendPayloads. The first dimension is for each graphical item.
|
|
20
|
+
* Some items may have multiple legend items, so the second dimension is for each legend item.
|
|
21
|
+
*/
|
|
22
|
+
payload: ReadonlyArray<ReadonlyArray<LegendPayload>>;
|
|
23
|
+
};
|
|
24
|
+
export declare const setLegendSize: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Size, "legend/setLegendSize">, setLegendSettings: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<LegendSettings, "legend/setLegendSettings">, addLegendPayload: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<readonly LegendPayload[], "legend/addLegendPayload">, removeLegendPayload: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<readonly LegendPayload[], "legend/removeLegendPayload">;
|
|
25
|
+
export declare const legendReducer: import('@reduxjs/toolkit').Reducer<LegendState>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChartPointer } from '../types';
|
|
2
|
+
export declare const mouseClickAction: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ChartPointer, string>;
|
|
3
|
+
export declare const mouseClickMiddleware: import('@reduxjs/toolkit').ListenerMiddlewareInstance<unknown, import('@reduxjs/toolkit').ThunkDispatch<unknown, unknown, import('@reduxjs/toolkit').UnknownAction>, unknown>;
|
|
4
|
+
export declare const mouseMoveAction: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ChartPointer, string>;
|
|
5
|
+
export declare const mouseMoveMiddleware: import('@reduxjs/toolkit').ListenerMiddlewareInstance<unknown, import('@reduxjs/toolkit').ThunkDispatch<unknown, unknown, import('@reduxjs/toolkit').UnknownAction>, unknown>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TooltipIndex, TooltipPayloadSearcher } from './tooltipSlice';
|
|
2
|
+
import { TooltipEventType } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* These chart options are decided internally, by Recharts,
|
|
5
|
+
* and will not change during the lifetime of the chart.
|
|
6
|
+
*
|
|
7
|
+
* Changing these options can be done by swapping the root element
|
|
8
|
+
* which will make a brand-new Redux store.
|
|
9
|
+
*
|
|
10
|
+
* If you want to store options that can be changed by the user,
|
|
11
|
+
* use UpdatableChartOptions in rootPropsSlice.ts.
|
|
12
|
+
*/
|
|
13
|
+
export type ChartOptions = {
|
|
14
|
+
chartName: string;
|
|
15
|
+
defaultTooltipEventType: TooltipEventType;
|
|
16
|
+
validateTooltipEventTypes?: ReadonlyArray<TooltipEventType>;
|
|
17
|
+
tooltipPayloadSearcher: TooltipPayloadSearcher | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* We use this to identify which chart is sending events when synchronising.
|
|
20
|
+
* Without it, we can't tell the difference between an action that arrived from another chart
|
|
21
|
+
* and an action that was dispatched by the chart itself.
|
|
22
|
+
*/
|
|
23
|
+
eventEmitter: symbol | undefined;
|
|
24
|
+
};
|
|
25
|
+
export declare function arrayTooltipSearcher<T>(data: ReadonlyArray<T>, strIndex: TooltipIndex): T | undefined;
|
|
26
|
+
export declare const optionsReducer: import('@reduxjs/toolkit').Reducer<ChartOptions>;
|
|
27
|
+
export declare const createEventEmitter: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"options/createEventEmitter">;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxisId, BaseCartesianAxis, TicksSettings } from './cartesianAxisSlice';
|
|
2
|
+
export type RadiusAxisSettings = BaseCartesianAxis & TicksSettings;
|
|
3
|
+
export type AngleAxisSettings = BaseCartesianAxis & TicksSettings;
|
|
4
|
+
type PolarAxisState = {
|
|
5
|
+
radiusAxis: Record<AxisId, RadiusAxisSettings>;
|
|
6
|
+
angleAxis: Record<AxisId, AngleAxisSettings>;
|
|
7
|
+
};
|
|
8
|
+
export declare const addRadiusAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<RadiusAxisSettings, "polarAxis/addRadiusAxis">, removeRadiusAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<RadiusAxisSettings, "polarAxis/removeRadiusAxis">, addAngleAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<AngleAxisSettings, "polarAxis/addAngleAxis">, removeAngleAxis: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<AngleAxisSettings, "polarAxis/removeAngleAxis">;
|
|
9
|
+
export declare const polarAxisReducer: import('@reduxjs/toolkit').Reducer<PolarAxisState>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type PolarChartOptions = {
|
|
2
|
+
cx: number | string;
|
|
3
|
+
cy: number | string;
|
|
4
|
+
startAngle: number;
|
|
5
|
+
endAngle: number;
|
|
6
|
+
innerRadius: number | string;
|
|
7
|
+
outerRadius: number | string;
|
|
8
|
+
};
|
|
9
|
+
export declare const updatePolarOptions: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<PolarChartOptions, "polarOptions/updatePolarOptions">;
|
|
10
|
+
export declare const polarOptionsReducer: import('@reduxjs/toolkit').Reducer<PolarChartOptions>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function reduxDevtoolsJsonStringifyReplacer(_key: string, value: unknown): unknown;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { WritableDraft } from 'immer';
|
|
3
|
+
import { AxisId } from './cartesianAxisSlice';
|
|
4
|
+
import { IfOverflow } from '../types';
|
|
5
|
+
export type ReferenceElementSettings = {
|
|
6
|
+
yAxisId: AxisId;
|
|
7
|
+
xAxisId: AxisId;
|
|
8
|
+
ifOverflow: IfOverflow;
|
|
9
|
+
};
|
|
10
|
+
export type ReferenceDotSettings = ReferenceElementSettings & {
|
|
11
|
+
x: unknown;
|
|
12
|
+
y: unknown;
|
|
13
|
+
r: number;
|
|
14
|
+
};
|
|
15
|
+
export type ReferenceAreaSettings = ReferenceElementSettings & {
|
|
16
|
+
x1: unknown;
|
|
17
|
+
x2: unknown;
|
|
18
|
+
y1: unknown;
|
|
19
|
+
y2: unknown;
|
|
20
|
+
};
|
|
21
|
+
export type ReferenceLineSettings = ReferenceElementSettings & {
|
|
22
|
+
x: unknown;
|
|
23
|
+
y: unknown;
|
|
24
|
+
};
|
|
25
|
+
type ReferenceElementState = {
|
|
26
|
+
dots: ReadonlyArray<ReferenceDotSettings>;
|
|
27
|
+
areas: ReadonlyArray<ReferenceAreaSettings>;
|
|
28
|
+
lines: ReadonlyArray<ReferenceLineSettings>;
|
|
29
|
+
};
|
|
30
|
+
export declare const referenceElementsSlice: import('@reduxjs/toolkit').Slice<ReferenceElementState, {
|
|
31
|
+
addDot: (state: WritableDraft<ReferenceElementState>, action: PayloadAction<ReferenceDotSettings>) => void;
|
|
32
|
+
removeDot: (state: WritableDraft<ReferenceElementState>, action: PayloadAction<ReferenceDotSettings>) => void;
|
|
33
|
+
addArea: (state: WritableDraft<ReferenceElementState>, action: PayloadAction<ReferenceAreaSettings>) => void;
|
|
34
|
+
removeArea: (state: WritableDraft<ReferenceElementState>, action: PayloadAction<ReferenceAreaSettings>) => void;
|
|
35
|
+
addLine: (state: WritableDraft<ReferenceElementState>, action: PayloadAction<ReferenceLineSettings>) => void;
|
|
36
|
+
removeLine: (state: WritableDraft<ReferenceElementState>, action: PayloadAction<ReferenceLineSettings>) => void;
|
|
37
|
+
}, "referenceElements", "referenceElements", import('@reduxjs/toolkit').SliceSelectors<ReferenceElementState>>;
|
|
38
|
+
export declare const addDot: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReferenceDotSettings, "referenceElements/addDot">, removeDot: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReferenceDotSettings, "referenceElements/removeDot">, addArea: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReferenceAreaSettings, "referenceElements/addArea">, removeArea: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReferenceAreaSettings, "referenceElements/removeArea">, addLine: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReferenceLineSettings, "referenceElements/addLine">, removeLine: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReferenceLineSettings, "referenceElements/removeLine">;
|
|
39
|
+
export declare const referenceElementsReducer: import('@reduxjs/toolkit').Reducer<ReferenceElementState>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StackOffsetType, SyncMethod } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* These are chart options that users can choose - which means they can also
|
|
4
|
+
* choose to change them which should trigger a re-render.
|
|
5
|
+
*/
|
|
6
|
+
export type UpdatableChartOptions = {
|
|
7
|
+
accessibilityLayer: boolean;
|
|
8
|
+
barCategoryGap: number | string;
|
|
9
|
+
barGap: number | string;
|
|
10
|
+
barSize: string | number | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Useful for debugging which chart is which when synchronising.
|
|
13
|
+
* The className is also passed to the root element of the chart but that's done in the JSX, not through Redux.
|
|
14
|
+
*/
|
|
15
|
+
class: string | undefined;
|
|
16
|
+
maxBarSize: number | undefined;
|
|
17
|
+
stackOffset: StackOffsetType;
|
|
18
|
+
/**
|
|
19
|
+
* Charts that share the same syncId will have their Tooltip and Brush synchronised.
|
|
20
|
+
*/
|
|
21
|
+
syncId: number | string | undefined;
|
|
22
|
+
syncMethod: SyncMethod;
|
|
23
|
+
};
|
|
24
|
+
export declare const initialState: UpdatableChartOptions;
|
|
25
|
+
export declare const rootPropsReducer: import('@reduxjs/toolkit').Reducer<UpdatableChartOptions>;
|
|
26
|
+
export declare const updateOptions: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<UpdatableChartOptions, "rootProps/updateOptions">;
|