vccs 0.0.1 → 0.2.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/Funnel.d.ts +2 -0
- package/dist/cartesian/funnel/index.d.ts +2 -0
- package/dist/cartesian/funnel/type.d.ts +106 -0
- package/dist/cartesian/funnel/utils.d.ts +12 -0
- package/dist/cartesian/index.d.ts +12 -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/FunnelChart.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 +9 -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 +89 -0
- package/dist/es/cartesian/GraphicalItemClipPath.mjs +37 -0
- package/dist/es/cartesian/area/ActivePoints.mjs +78 -0
- package/dist/es/cartesian/area/Area.mjs +52 -0
- package/dist/es/cartesian/area/ClipRect.mjs +125 -0
- package/dist/es/cartesian/area/RenderArea.mjs +185 -0
- package/dist/es/cartesian/area/hooks/useArea.mjs +81 -0
- package/dist/es/cartesian/area/type.mjs +136 -0
- package/dist/es/cartesian/area/utils.mjs +79 -0
- package/dist/es/cartesian/axis/XAxis.mjs +203 -0
- package/dist/es/cartesian/axis/YAxis.mjs +192 -0
- package/dist/es/cartesian/bar/Bar.mjs +111 -0
- package/dist/es/cartesian/bar/components/BarBackground.mjs +32 -0
- package/dist/es/cartesian/bar/components/BarRectangles.mjs +143 -0
- package/dist/es/cartesian/bar/hooks/useBar.mjs +53 -0
- package/dist/es/cartesian/bar/type.mjs +131 -0
- package/dist/es/cartesian/bar/utils.mjs +111 -0
- package/dist/es/cartesian/cartesian-axis/CartesianAxis.mjs +296 -0
- package/dist/es/cartesian/cartesian-grid/Background.mjs +33 -0
- package/dist/es/cartesian/cartesian-grid/CartesianGrid.mjs +174 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalGridLines.mjs +50 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/VerticalGridLines.mjs +45 -0
- package/dist/es/cartesian/cartesian-grid/VerticalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/const.mjs +336 -0
- package/dist/es/cartesian/cartesian-grid/utils.mjs +22 -0
- package/dist/es/cartesian/error-bar/ErrorBar.mjs +143 -0
- package/dist/es/cartesian/error-bar/ErrorBarContext.mjs +20 -0
- package/dist/es/cartesian/funnel/Funnel.mjs +177 -0
- package/dist/es/cartesian/funnel/type.mjs +80 -0
- package/dist/es/cartesian/funnel/utils.mjs +102 -0
- package/dist/es/cartesian/line/ActivePoints.mjs +79 -0
- package/dist/es/cartesian/line/Line.mjs +50 -0
- package/dist/es/cartesian/line/StaticLine.mjs +217 -0
- package/dist/es/cartesian/line/hooks/useLine.mjs +69 -0
- package/dist/es/cartesian/line/type.mjs +112 -0
- package/dist/es/cartesian/line/utils.mjs +34 -0
- package/dist/es/cartesian/reference-area/ReferenceArea.mjs +163 -0
- package/dist/es/cartesian/reference-line/ReferenceLine.mjs +165 -0
- package/dist/es/cartesian/scatter/Scatter.mjs +280 -0
- package/dist/es/cartesian/scatter/hooks/useScatter.mjs +23 -0
- package/dist/es/cartesian/useNeedsClip.mjs +23 -0
- package/dist/es/cartesian/utils/get-ticks.mjs +118 -0
- package/dist/es/cartesian/z-axis/ZAxis.mjs +72 -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/FunnelChart.mjs +11 -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 +160 -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 +72 -0
- package/dist/es/chart/TooltipPortalContext.mjs +5 -0
- package/dist/es/chart/const.mjs +7 -0
- package/dist/es/chart/generateCategoricalChart.mjs +175 -0
- package/dist/es/chart/provideClipPathId.mjs +15 -0
- package/dist/es/components/Cell.mjs +23 -0
- package/dist/es/components/Text.mjs +5 -0
- package/dist/es/components/Text.vue_vue_type_script_setup_true_lang.mjs +191 -0
- package/dist/es/components/Tooltip.mjs +463 -0
- package/dist/es/components/label/Label.mjs +40 -0
- package/dist/es/components/label/LabelList.mjs +55 -0
- package/dist/es/components/label/types.mjs +38 -0
- package/dist/es/components/label/utils.mjs +265 -0
- package/dist/es/components/legend/Legend.mjs +93 -0
- package/dist/es/components/legend/LegendSymbol.mjs +62 -0
- package/dist/es/components/legend/hooks/useLegend.mjs +72 -0
- package/dist/es/components/legend/hooks/useLegendContent.mjs +68 -0
- package/dist/es/components/legend/type.mjs +41 -0
- package/dist/es/components/legend/utils.mjs +25 -0
- package/dist/es/components/utils.mjs +44 -0
- package/dist/es/container/ClipPath.mjs +25 -0
- package/dist/es/container/Layer.mjs +14 -0
- package/dist/es/container/ResponsiveContainer.mjs +5 -0
- package/dist/es/container/ResponsiveContainer.vue_vue_type_script_setup_true_lang.mjs +144 -0
- package/dist/es/container/Surface.mjs +62 -0
- package/dist/es/container/useSizeContext.mjs +5 -0
- package/dist/es/context/ChartDataContextProvider.mjs +27 -0
- package/dist/es/context/PanoramaContextProvider.mjs +24 -0
- package/dist/es/context/accessibilityContext.mjs +5 -0
- package/dist/es/context/cartesianLabelListContext.mjs +5 -0
- package/dist/es/context/chartLayoutContext.mjs +49 -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 +17 -0
- package/dist/es/events/useChartSynchronisation.mjs +113 -0
- package/dist/es/hooks/useIsAnimating.mjs +28 -0
- package/dist/es/hooks/useSetupGraphicalItem.mjs +66 -0
- package/dist/es/index.mjs +46 -0
- package/dist/es/polar/pie/Pie.mjs +161 -0
- package/dist/es/polar/pie/type.mjs +97 -0
- package/dist/es/polar/radar/PolarAngleAxis.mjs +180 -0
- package/dist/es/polar/radar/PolarGrid.mjs +115 -0
- package/dist/es/polar/radar/PolarRadiusAxis.mjs +162 -0
- package/dist/es/polar/radar/Radar.mjs +284 -0
- package/dist/es/polar/radial-bar/RadialBar.mjs +197 -0
- package/dist/es/polar/radial-bar/type.mjs +97 -0
- package/dist/es/shape/Cross.mjs +16 -0
- package/dist/es/shape/Curve.mjs +86 -0
- package/dist/es/shape/Dot.mjs +24 -0
- package/dist/es/shape/Rectangle.mjs +83 -0
- package/dist/es/shape/Sector.mjs +156 -0
- package/dist/es/shape/Symbols.mjs +52 -0
- package/dist/es/shape/Trapezoid.mjs +52 -0
- package/dist/es/state/ReportChartProps.mjs +64 -0
- package/dist/es/state/ReportMainChartProps.mjs +46 -0
- package/dist/es/state/ReportPolarOptions.mjs +56 -0
- package/dist/es/state/SetGraphicalItem.mjs +49 -0
- package/dist/es/state/SetLegendPayload.mjs +20 -0
- package/dist/es/state/SetTooltipEntrySettings.mjs +19 -0
- package/dist/es/state/brushSlice.mjs +26 -0
- package/dist/es/state/cartesianAxisSlice.mjs +39 -0
- package/dist/es/state/chartDataSlice.mjs +33 -0
- package/dist/es/state/externalEventsMiddleware.mjs +30 -0
- package/dist/es/state/graphicalItemsSlice.mjs +47 -0
- package/dist/es/state/hooks.mjs +6 -0
- package/dist/es/state/keyboardEventsMiddleware.mjs +63 -0
- package/dist/es/state/layoutSlice.mjs +39 -0
- package/dist/es/state/legendSlice.mjs +40 -0
- package/dist/es/state/mouseEventsMiddleware.mjs +41 -0
- package/dist/es/state/optionsSlice.mjs +25 -0
- package/dist/es/state/polarAxisSlice.mjs +28 -0
- package/dist/es/state/polarOptionsSlice.mjs +13 -0
- package/dist/es/state/reduxDevtoolsJsonStringifyReplacer.mjs +8 -0
- package/dist/es/state/referenceElementsSlice.mjs +36 -0
- package/dist/es/state/rootPropsSlice.mjs +32 -0
- package/dist/es/state/selectors/areaSelectors.mjs +77 -0
- package/dist/es/state/selectors/axisSelectors.mjs +879 -0
- package/dist/es/state/selectors/barSelectors.mjs +241 -0
- package/dist/es/state/selectors/brushSelectors.mjs +18 -0
- package/dist/es/state/selectors/combiners/combineActiveLabel.mjs +9 -0
- package/dist/es/state/selectors/combiners/combineActiveTooltipIndex.mjs +43 -0
- package/dist/es/state/selectors/combiners/combineAxisRangeWithReverse.mjs +8 -0
- package/dist/es/state/selectors/combiners/combineCoordinateForDefaultIndex.mjs +21 -0
- package/dist/es/state/selectors/combiners/combineTooltipInteractionState.mjs +37 -0
- package/dist/es/state/selectors/combiners/combineTooltipPayloadConfigurations.mjs +13 -0
- package/dist/es/state/selectors/common.mjs +4 -0
- package/dist/es/state/selectors/containerSelectors.mjs +7 -0
- package/dist/es/state/selectors/dataSelectors.mjs +35 -0
- package/dist/es/state/selectors/funnelSelectors.mjs +38 -0
- package/dist/es/state/selectors/legendSelectors.mjs +10 -0
- package/dist/es/state/selectors/lineSelectors.mjs +64 -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 +132 -0
- package/dist/es/state/selectors/polarAxisSelectors.mjs +167 -0
- package/dist/es/state/selectors/polarGridSelectors.mjs +19 -0
- package/dist/es/state/selectors/polarScaleSelectors.mjs +55 -0
- package/dist/es/state/selectors/polarSelectors.mjs +81 -0
- package/dist/es/state/selectors/radarSelectors.mjs +133 -0
- package/dist/es/state/selectors/radialBarSelectors.mjs +259 -0
- package/dist/es/state/selectors/rootPropsSelectors.mjs +14 -0
- package/dist/es/state/selectors/scatterSelectors.mjs +134 -0
- package/dist/es/state/selectors/selectActivePropsFromChartPointer.mjs +20 -0
- package/dist/es/state/selectors/selectAllAxes.mjs +10 -0
- package/dist/es/state/selectors/selectChartOffset.mjs +69 -0
- package/dist/es/state/selectors/selectChartOffsetInternal.mjs +66 -0
- package/dist/es/state/selectors/selectTooltipEventType.mjs +22 -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 +104 -0
- package/dist/es/state/selectors/tooltipSelectors.mjs +269 -0
- package/dist/es/state/selectors/touchSelectors.mjs +19 -0
- package/dist/es/state/store.mjs +55 -0
- package/dist/es/state/tooltipSlice.mjs +102 -0
- package/dist/es/state/touchEventsMiddleware.mjs +44 -0
- package/dist/es/state/utils/useReportScale.mjs +19 -0
- package/dist/es/synchronisation/syncSelectors.mjs +6 -0
- package/dist/es/synchronisation/useChartSynchronisation.mjs +38 -0
- package/dist/es/types/event.mjs +166 -0
- package/dist/es/utils/ReduceCSSCalc.mjs +114 -0
- package/dist/es/utils/VueUtils.mjs +39 -0
- package/dist/es/utils/attrs.mjs +69 -0
- package/dist/es/utils/cartesian.mjs +54 -0
- package/dist/es/utils/chart.mjs +366 -0
- package/dist/es/utils/const.mjs +32 -0
- package/dist/es/utils/createContext.mjs +31 -0
- package/dist/es/utils/data-utils.mjs +13 -0
- package/dist/es/utils/data.mjs +41 -0
- package/dist/es/utils/events.mjs +7 -0
- package/dist/es/utils/getLinearRegression.mjs +34 -0
- package/dist/es/utils/grid.mjs +23 -0
- package/dist/es/utils/isDomainSpecifiedByUser.mjs +116 -0
- package/dist/es/utils/legend.mjs +19 -0
- package/dist/es/utils/log.mjs +14 -0
- package/dist/es/utils/payload/getUniqPayload.mjs +9 -0
- package/dist/es/utils/polar.mjs +59 -0
- package/dist/es/utils/props.mjs +20 -0
- package/dist/es/utils/resolveDefaultProps.mjs +26 -0
- package/dist/es/utils/scale/getNiceTickValues.mjs +137 -0
- package/dist/es/utils/scale/utils/arithmetic.mjs +54 -0
- package/dist/es/utils/scale/utils/utils.mjs +53 -0
- package/dist/es/utils/style.mjs +30 -0
- package/dist/es/utils/tick.mjs +42 -0
- package/dist/es/utils/tooltip/translate.mjs +73 -0
- package/dist/es/utils/validate.mjs +42 -0
- package/dist/events/useChartSynchronisation.d.ts +8 -0
- package/dist/hooks/useIsAnimating.d.ts +14 -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/Trapezoid.d.ts +31 -0
- package/dist/shape/index.d.ts +9 -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,10 @@
|
|
|
1
|
+
import { SVGAttributes } from 'vue';
|
|
2
|
+
export interface CrossProps {
|
|
3
|
+
x?: number;
|
|
4
|
+
y?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
top?: number;
|
|
8
|
+
left?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function Cross(props: CrossProps & SVGAttributes): import("vue/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CurveFactory } from 'victory-vendor/d3-shape';
|
|
3
|
+
import { LayoutType, VuePropsToType, WithSVGProps } from '../types';
|
|
4
|
+
export type CurveType = 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | CurveFactory;
|
|
5
|
+
export interface Point {
|
|
6
|
+
readonly x: number;
|
|
7
|
+
readonly y: number;
|
|
8
|
+
readonly payload?: any;
|
|
9
|
+
}
|
|
10
|
+
type GetPathProps = Pick<CurveProps, 'type' | 'points' | 'baseLine' | 'layout' | 'connectNulls'>;
|
|
11
|
+
/**
|
|
12
|
+
* Calculate the path of curve. Returns null if points is an empty array.
|
|
13
|
+
* @return path or null
|
|
14
|
+
*/
|
|
15
|
+
export declare function getPath({ type, points, baseLine, layout, connectNulls, }: GetPathProps): string | null;
|
|
16
|
+
export declare const CurveVueProps: {
|
|
17
|
+
type: {
|
|
18
|
+
type: PropType<CurveType | CurveFactory>;
|
|
19
|
+
};
|
|
20
|
+
layout: {
|
|
21
|
+
type: PropType<LayoutType>;
|
|
22
|
+
};
|
|
23
|
+
baseLine: {
|
|
24
|
+
type: PropType<number | ReadonlyArray<Point>>;
|
|
25
|
+
};
|
|
26
|
+
points: {
|
|
27
|
+
type: PropType<ReadonlyArray<Point>>;
|
|
28
|
+
};
|
|
29
|
+
connectNulls: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
path: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
class: {
|
|
36
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type CurvePropsWithOutSVG = VuePropsToType<typeof CurveVueProps>;
|
|
40
|
+
export type CurveProps = WithSVGProps<typeof CurveVueProps>;
|
|
41
|
+
export declare const Curve: import('vue').DefineComponent<CurveProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CurveProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WithSVGProps } from '../types';
|
|
2
|
+
declare const DotVueProps: {
|
|
3
|
+
cx: {
|
|
4
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
5
|
+
};
|
|
6
|
+
cy: {
|
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
+
};
|
|
9
|
+
r: {
|
|
10
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
};
|
|
12
|
+
clipDot: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type DotProps = WithSVGProps<typeof DotVueProps>;
|
|
17
|
+
export declare const Dot: import('vue').DefineComponent<DotProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DotProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { VuePropsToType, WithSVGProps } from '../types';
|
|
3
|
+
import { RectRadius } from '../types/bar';
|
|
4
|
+
declare const RectangleVueProps: {
|
|
5
|
+
className: {
|
|
6
|
+
type: PropType<string>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
x: {
|
|
10
|
+
type: PropType<number>;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
y: {
|
|
14
|
+
type: PropType<number>;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
width: {
|
|
18
|
+
type: PropType<number>;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
height: {
|
|
22
|
+
type: PropType<number>;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
radius: {
|
|
26
|
+
type: PropType<number | RectRadius>;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type RectangleProps = VuePropsToType<typeof RectangleVueProps>;
|
|
31
|
+
export type RectanglePropsWithSVG = WithSVGProps<typeof RectangleVueProps>;
|
|
32
|
+
export declare const Rectangle: import('vue').DefineComponent<RectanglePropsWithSVG, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RectanglePropsWithSVG> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { VuePropsToType, WithSVGProps } from '../types';
|
|
3
|
+
declare const SectorVueProps: {
|
|
4
|
+
cx: {
|
|
5
|
+
type: PropType<number>;
|
|
6
|
+
default: number;
|
|
7
|
+
};
|
|
8
|
+
cy: {
|
|
9
|
+
type: PropType<number>;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
innerRadius: {
|
|
13
|
+
type: PropType<number>;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
outerRadius: {
|
|
17
|
+
type: PropType<number>;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
startAngle: {
|
|
21
|
+
type: PropType<number>;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
endAngle: {
|
|
25
|
+
type: PropType<number>;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
cornerRadius: {
|
|
29
|
+
type: PropType<number | string>;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
forceCornerRadius: {
|
|
33
|
+
type: PropType<boolean>;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
cornerIsExternal: {
|
|
37
|
+
type: PropType<boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
className: {
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type SectorProps = VuePropsToType<typeof SectorVueProps>;
|
|
46
|
+
export type SectorPropsWithSVG = WithSVGProps<typeof SectorVueProps>;
|
|
47
|
+
export declare const Sector: import('vue').DefineComponent<SectorPropsWithSVG, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SectorPropsWithSVG> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type SymbolType = 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
2
|
+
type SizeType = 'area' | 'diameter';
|
|
3
|
+
export interface SymbolsProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
type?: SymbolType;
|
|
6
|
+
cx?: number;
|
|
7
|
+
cy?: number;
|
|
8
|
+
size?: number;
|
|
9
|
+
sizeType?: SizeType;
|
|
10
|
+
fill?: string;
|
|
11
|
+
stroke?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function Symbols(props: SymbolsProps): import("vue/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { WithSVGProps } from '../types';
|
|
3
|
+
declare const TrapezoidVueProps: {
|
|
4
|
+
className: {
|
|
5
|
+
type: PropType<string>;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
x: {
|
|
9
|
+
type: PropType<number>;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
y: {
|
|
13
|
+
type: PropType<number>;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
upperWidth: {
|
|
17
|
+
type: PropType<number>;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
lowerWidth: {
|
|
21
|
+
type: PropType<number>;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
height: {
|
|
25
|
+
type: PropType<number>;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type TrapezoidComponentProps = WithSVGProps<typeof TrapezoidVueProps>;
|
|
30
|
+
export declare const Trapezoid: import('vue').DefineComponent<TrapezoidComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TrapezoidComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './Cross';
|
|
3
|
+
export { Curve, CurveVueProps, getPath } from './Curve';
|
|
4
|
+
export type { CurveType, CurvePropsWithOutSVG, CurveProps } from './Curve';
|
|
5
|
+
export * from './Dot';
|
|
6
|
+
export * from './Rectangle';
|
|
7
|
+
export * from './Symbols';
|
|
8
|
+
export * from './Sector';
|
|
9
|
+
export * from './Trapezoid';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AnimationEasing } from '../types/bar';
|
|
2
|
+
export interface Point {
|
|
3
|
+
readonly x: number;
|
|
4
|
+
readonly y: number;
|
|
5
|
+
}
|
|
6
|
+
export type MinPointSize = number | ((value: number, index: number) => number);
|
|
7
|
+
export type NormalizedStackId = string;
|
|
8
|
+
export interface TrapezoidProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
width?: number;
|
|
13
|
+
upperWidth?: number;
|
|
14
|
+
lowerWidth?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
isUpdateAnimationActive?: boolean;
|
|
17
|
+
animationBegin?: number;
|
|
18
|
+
animationDuration?: number;
|
|
19
|
+
animationEasing?: AnimationEasing;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ReportBar(): null;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { StackOffsetType, SyncMethod } from '../types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
accessibilityLayer: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
barCategoryGap: {
|
|
9
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
barGap: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
barSize: {
|
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
class: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
maxBarSize: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
stackOffset: {
|
|
29
|
+
type: PropType<StackOffsetType>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
syncId: {
|
|
33
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
syncMethod: {
|
|
37
|
+
type: PropType<SyncMethod>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
|
+
accessibilityLayer: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
barCategoryGap: {
|
|
46
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
barGap: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
barSize: {
|
|
54
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
55
|
+
default: any;
|
|
56
|
+
};
|
|
57
|
+
class: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: any;
|
|
60
|
+
};
|
|
61
|
+
maxBarSize: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: any;
|
|
64
|
+
};
|
|
65
|
+
stackOffset: {
|
|
66
|
+
type: PropType<StackOffsetType>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
syncId: {
|
|
70
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
71
|
+
default: any;
|
|
72
|
+
};
|
|
73
|
+
syncMethod: {
|
|
74
|
+
type: PropType<SyncMethod>;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
}>> & Readonly<{}>, {
|
|
78
|
+
accessibilityLayer: boolean;
|
|
79
|
+
barCategoryGap: string | number;
|
|
80
|
+
barGap: number;
|
|
81
|
+
barSize: string | number;
|
|
82
|
+
class: string;
|
|
83
|
+
maxBarSize: number;
|
|
84
|
+
stackOffset: StackOffsetType;
|
|
85
|
+
syncId: string | number;
|
|
86
|
+
syncMethod: SyncMethod;
|
|
87
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
88
|
+
export default _default;
|
|
@@ -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 {};
|