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,145 @@
|
|
|
1
|
+
import { CartesianAxisProps } from '../cartesian-axis/CartesianAxis';
|
|
2
|
+
import { ViewBox } from '../type';
|
|
3
|
+
import { ChartOffset, DataKey } from '../../types';
|
|
4
|
+
import { AxisDomain, AxisDomainType, AxisId, AxisInterval, XAxisOrientation, YAxisOrientation } from '../../types/axis';
|
|
5
|
+
import { RechartsScale, ScaleType } from '../../types/scale';
|
|
6
|
+
import { AxisPropsNeededForTicksGenerator, GetTicksInput } from '../../types/tick';
|
|
7
|
+
import { SVGAttributes, VNode } from 'vue';
|
|
8
|
+
export type AxisPropsForCartesianGridTicksGeneration = AxisPropsNeededForTicksGenerator & Omit<GetTicksInput, 'ticks' | 'viewBox'>;
|
|
9
|
+
export type HorizontalCoordinatesGenerator = (props: {
|
|
10
|
+
yAxis: AxisPropsForCartesianGridTicksGeneration;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
offset: ChartOffset;
|
|
14
|
+
}, syncWithTicks: boolean) => number[];
|
|
15
|
+
export type VerticalCoordinatesGenerator = (props: {
|
|
16
|
+
xAxis: AxisPropsForCartesianGridTicksGeneration;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
offset: ChartOffset;
|
|
20
|
+
}, syncWithTicks: boolean) => number[];
|
|
21
|
+
interface InternalCartesianGridProps {
|
|
22
|
+
width?: number;
|
|
23
|
+
height?: number;
|
|
24
|
+
horizontalCoordinatesGenerator?: HorizontalCoordinatesGenerator;
|
|
25
|
+
verticalCoordinatesGenerator?: VerticalCoordinatesGenerator;
|
|
26
|
+
}
|
|
27
|
+
type LineItemProps = CartesianGridProps & {
|
|
28
|
+
offset: ChartOffset;
|
|
29
|
+
xAxis: null | AxisPropsForCartesianGridTicksGeneration;
|
|
30
|
+
yAxis: null | AxisPropsForCartesianGridTicksGeneration;
|
|
31
|
+
x1: number;
|
|
32
|
+
y1: number;
|
|
33
|
+
x2: number;
|
|
34
|
+
y2: number;
|
|
35
|
+
key: string;
|
|
36
|
+
index: number;
|
|
37
|
+
};
|
|
38
|
+
export type GridLineTypeFunctionProps = Omit<LineItemProps, 'key'> & {
|
|
39
|
+
key: LineItemProps['key'] | undefined;
|
|
40
|
+
offset: ChartOffset;
|
|
41
|
+
};
|
|
42
|
+
type GridLineType = SVGAttributes | VNode | ((props: GridLineTypeFunctionProps) => VNode) | boolean;
|
|
43
|
+
export interface CartesianGridProps extends InternalCartesianGridProps {
|
|
44
|
+
ticks?: CartesianAxisProps['ticks'];
|
|
45
|
+
orientation?: XAxisOrientation | YAxisOrientation;
|
|
46
|
+
viewBox?: ViewBox;
|
|
47
|
+
ry?: SVGAttributes['ry'];
|
|
48
|
+
stroke?: SVGAttributes['stroke'];
|
|
49
|
+
fill?: SVGAttributes['fill'];
|
|
50
|
+
fillOpacity?: SVGAttributes['fill-opacity'];
|
|
51
|
+
/**
|
|
52
|
+
* The x-coordinate of grid.
|
|
53
|
+
* If left undefined, it will be computed from the chart's offset and margins.
|
|
54
|
+
*/
|
|
55
|
+
x?: number;
|
|
56
|
+
/**
|
|
57
|
+
* The y-coordinate of grid.
|
|
58
|
+
* If left undefined, it will be computed from the chart's offset and margins.
|
|
59
|
+
*/
|
|
60
|
+
y?: number;
|
|
61
|
+
horizontal?: GridLineType;
|
|
62
|
+
vertical?: GridLineType;
|
|
63
|
+
/**
|
|
64
|
+
* Array of coordinates in pixels where to draw horizontal grid lines.
|
|
65
|
+
* Has priority over syncWithTicks and horizontalValues.
|
|
66
|
+
*/
|
|
67
|
+
horizontalPoints?: number[];
|
|
68
|
+
/**
|
|
69
|
+
* Array of coordinates in pixels where to draw vertical grid lines.
|
|
70
|
+
* Has priority over syncWithTicks and horizontalValues.
|
|
71
|
+
*/
|
|
72
|
+
verticalPoints?: number[];
|
|
73
|
+
/**
|
|
74
|
+
* Defines background color of stripes.
|
|
75
|
+
*
|
|
76
|
+
* The values from this array will be passed in as the `fill` property in a `rect` SVG element.
|
|
77
|
+
* For possible values see: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill#rect
|
|
78
|
+
*
|
|
79
|
+
* In case there are more stripes than colors, the colors will start from beginning.
|
|
80
|
+
* So for example: verticalFill['yellow', 'black'] produces a pattern of yellow|black|yellow|black
|
|
81
|
+
*
|
|
82
|
+
* If this is undefined, or an empty array, then there is no background fill.
|
|
83
|
+
* Note: Grid lines will be rendered above these background stripes.
|
|
84
|
+
*/
|
|
85
|
+
verticalFill?: string[];
|
|
86
|
+
/**
|
|
87
|
+
* Defines background color of stripes.
|
|
88
|
+
*
|
|
89
|
+
* The values from this array will be passed in as the `fill` property in a `rect` SVG element.
|
|
90
|
+
* For possible values see: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill#rect
|
|
91
|
+
*
|
|
92
|
+
* In case there are more stripes than colors, the colors will start from beginning.
|
|
93
|
+
* So for example: horizontalFill['yellow', 'black'] produces a pattern of yellow|black|yellow|black
|
|
94
|
+
*
|
|
95
|
+
* If this is undefined, or an empty array, then there is no background fill.
|
|
96
|
+
* Note: Grid lines will be rendered above these background stripes.
|
|
97
|
+
*/
|
|
98
|
+
horizontalFill?: string[];
|
|
99
|
+
/**
|
|
100
|
+
* If true, only the lines that correspond to the axes ticks values will be drawn.
|
|
101
|
+
* If false, extra lines could be added for each axis (at min and max coordinates), if there will not such ticks.
|
|
102
|
+
* horizontalPoints, verticalPoints, horizontalValues, verticalValues have priority over syncWithTicks.
|
|
103
|
+
*/
|
|
104
|
+
syncWithTicks?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Array of values, where horizontal lines will be drawn. Numbers or strings, in dependence on axis type.
|
|
107
|
+
* Has priority over syncWithTicks but not over horizontalValues.
|
|
108
|
+
*/
|
|
109
|
+
horizontalValues?: number[] | string[];
|
|
110
|
+
/**
|
|
111
|
+
* Array of values, where vertical lines will be drawn. Numbers or strings, in dependence on axis type.
|
|
112
|
+
* Has priority over syncWithTicks but not over verticalValues.
|
|
113
|
+
*/
|
|
114
|
+
verticalValues?: number[] | string[];
|
|
115
|
+
xAxisId?: AxisId;
|
|
116
|
+
yAxisId?: AxisId;
|
|
117
|
+
axisLine?: boolean | SVGAttributes;
|
|
118
|
+
tickLine?: boolean | SVGAttributes;
|
|
119
|
+
mirror?: boolean;
|
|
120
|
+
minTickGap?: number;
|
|
121
|
+
tickSize?: number;
|
|
122
|
+
tickMargin?: number;
|
|
123
|
+
interval?: AxisInterval;
|
|
124
|
+
}
|
|
125
|
+
export declare const defaultProps: Partial<CartesianGridProps>;
|
|
126
|
+
export type BaseCartesianAxis = {
|
|
127
|
+
id: AxisId;
|
|
128
|
+
scale: ScaleType | RechartsScale | undefined;
|
|
129
|
+
type: AxisDomainType;
|
|
130
|
+
/**
|
|
131
|
+
* The axis functionality is severely restricted without a dataKey
|
|
132
|
+
* - but there is still something left, and the prop is optional
|
|
133
|
+
* so this can also be undefined even in real charts.
|
|
134
|
+
* There are no defaults.
|
|
135
|
+
*/
|
|
136
|
+
dataKey: DataKey<any> | undefined;
|
|
137
|
+
unit: string | undefined;
|
|
138
|
+
name: string | undefined;
|
|
139
|
+
allowDuplicatedCategory: boolean;
|
|
140
|
+
allowDataOverflow: boolean;
|
|
141
|
+
reversed: boolean;
|
|
142
|
+
includeHidden: boolean;
|
|
143
|
+
domain: AxisDomain | undefined;
|
|
144
|
+
};
|
|
145
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ErrorBarDirection } from '../../types/bar';
|
|
3
|
+
export declare const ErrorBarVueProps: {
|
|
4
|
+
dataKey: {
|
|
5
|
+
type: PropType<string | number | ((obj: any) => any)>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
width: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
direction: {
|
|
13
|
+
type: PropType<ErrorBarDirection>;
|
|
14
|
+
};
|
|
15
|
+
stroke: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
strokeWidth: {
|
|
20
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const ErrorBar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
25
|
+
dataKey: {
|
|
26
|
+
type: PropType<string | number | ((obj: any) => any)>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
direction: {
|
|
34
|
+
type: PropType<ErrorBarDirection>;
|
|
35
|
+
};
|
|
36
|
+
stroke: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
strokeWidth: {
|
|
41
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
dataKey: {
|
|
46
|
+
type: PropType<string | number | ((obj: any) => any)>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
width: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
direction: {
|
|
54
|
+
type: PropType<ErrorBarDirection>;
|
|
55
|
+
};
|
|
56
|
+
stroke: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
strokeWidth: {
|
|
61
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{}>, {
|
|
65
|
+
width: number;
|
|
66
|
+
stroke: string;
|
|
67
|
+
strokeWidth: string | number;
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Ref, ShallowRef } from 'vue';
|
|
2
|
+
import { ErrorBarDirection } from '../../types/bar';
|
|
3
|
+
import { DataKey } from '../../types';
|
|
4
|
+
import { AxisId } from '../../state/cartesianAxisSlice';
|
|
5
|
+
import { ErrorBarsSettings } from '../../state/graphicalItemsSlice';
|
|
6
|
+
export interface ErrorBarDataItem {
|
|
7
|
+
x: number | undefined;
|
|
8
|
+
y: number | undefined;
|
|
9
|
+
value: number;
|
|
10
|
+
errorVal?: number[] | number;
|
|
11
|
+
}
|
|
12
|
+
export type ErrorBarDataPointFormatter<T> = (entry: T, dataKey: DataKey<any>, direction: ErrorBarDirection) => ErrorBarDataItem;
|
|
13
|
+
export interface ErrorBarContextType {
|
|
14
|
+
data: Readonly<ShallowRef<readonly any[]>>;
|
|
15
|
+
xAxisId: AxisId;
|
|
16
|
+
yAxisId: AxisId;
|
|
17
|
+
dataPointFormatter: ErrorBarDataPointFormatter<any>;
|
|
18
|
+
errorBarOffset: Ref<number>;
|
|
19
|
+
}
|
|
20
|
+
export declare const useErrorBarContext: <T extends ErrorBarContextType = ErrorBarContextType>(fallback?: T) => T extends null ? ErrorBarContextType : ErrorBarContextType, provideErrorBarContext: (contextValue: ErrorBarContextType) => ErrorBarContextType;
|
|
21
|
+
export interface ErrorBarRegistryType {
|
|
22
|
+
errorBars: ShallowRef<ReadonlyArray<ErrorBarsSettings>>;
|
|
23
|
+
register: (settings: ErrorBarsSettings) => void;
|
|
24
|
+
unregister: (settings: ErrorBarsSettings) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const useErrorBarRegistry: <T extends ErrorBarRegistryType = ErrorBarRegistryType>(fallback?: T) => T extends null ? ErrorBarRegistryType : ErrorBarRegistryType, provideErrorBarRegistry: (contextValue: ErrorBarRegistryType) => ErrorBarRegistryType;
|
|
27
|
+
export declare function createErrorBarRegistry(): ErrorBarRegistryType;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { FunnelPropsWithSVG } from './type';
|
|
2
|
+
export declare const Funnel: import('vue').DefineComponent<FunnelPropsWithSVG, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FunnelPropsWithSVG> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { AnimationOptions } from 'motion-v';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ViewBox } from '../type';
|
|
4
|
+
import { TrapezoidProps } from '../../shape';
|
|
5
|
+
import { Coordinate, DataKey, TooltipType, WithSVGProps } from '../../types';
|
|
6
|
+
import { LegendType } from '../../types/legend';
|
|
7
|
+
export interface FunnelTrapezoidItem extends TrapezoidProps {
|
|
8
|
+
value?: number | string;
|
|
9
|
+
payload?: any;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
tooltipPosition: Coordinate;
|
|
12
|
+
parentViewBox?: ViewBox;
|
|
13
|
+
labelViewBox?: ViewBox;
|
|
14
|
+
}
|
|
15
|
+
export interface FunnelProps {
|
|
16
|
+
className?: string;
|
|
17
|
+
data?: any[];
|
|
18
|
+
dataKey: DataKey<any>;
|
|
19
|
+
hide?: boolean;
|
|
20
|
+
id?: string;
|
|
21
|
+
isAnimationActive?: boolean;
|
|
22
|
+
transition?: AnimationOptions;
|
|
23
|
+
lastShapeType?: 'triangle' | 'rectangle';
|
|
24
|
+
legendType?: LegendType;
|
|
25
|
+
nameKey?: DataKey<any>;
|
|
26
|
+
onAnimationEnd?: () => void;
|
|
27
|
+
onAnimationStart?: () => void;
|
|
28
|
+
reversed?: boolean;
|
|
29
|
+
tooltipType?: TooltipType;
|
|
30
|
+
}
|
|
31
|
+
export declare const FunnelVueProps: {
|
|
32
|
+
data: {
|
|
33
|
+
type: PropType<Array<Record<string, unknown>>>;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
dataKey: {
|
|
37
|
+
type: PropType<DataKey<any>>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
nameKey: {
|
|
41
|
+
type: PropType<DataKey<any>>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
lastShapeType: {
|
|
45
|
+
type: PropType<"triangle" | "rectangle">;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
reversed: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
fill: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
stroke: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
legendType: {
|
|
61
|
+
type: PropType<LegendType>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
tooltipType: {
|
|
65
|
+
type: PropType<TooltipType>;
|
|
66
|
+
default: any;
|
|
67
|
+
};
|
|
68
|
+
hide: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
isAnimationActive: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
transition: {
|
|
77
|
+
type: PropType<AnimationOptions>;
|
|
78
|
+
default: () => {
|
|
79
|
+
duration: number;
|
|
80
|
+
ease: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
onAnimationStart: {
|
|
84
|
+
type: PropType<() => void>;
|
|
85
|
+
default: any;
|
|
86
|
+
};
|
|
87
|
+
onAnimationEnd: {
|
|
88
|
+
type: PropType<() => void>;
|
|
89
|
+
default: any;
|
|
90
|
+
};
|
|
91
|
+
className: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: any;
|
|
94
|
+
};
|
|
95
|
+
width: {
|
|
96
|
+
type: PropType<number | string>;
|
|
97
|
+
default: any;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export type FunnelPropsWithSVG = WithSVGProps<typeof FunnelVueProps>;
|
|
101
|
+
type RealFunnelData = any;
|
|
102
|
+
export type FunnelComposedData = {
|
|
103
|
+
trapezoids: ReadonlyArray<FunnelTrapezoidItem>;
|
|
104
|
+
data: RealFunnelData[];
|
|
105
|
+
};
|
|
106
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChartOffset, TooltipType } from '../../types';
|
|
2
|
+
import { FunnelComposedData, FunnelProps } from './type';
|
|
3
|
+
export declare function computeFunnelTrapezoids({ dataKey, nameKey, displayedData, tooltipType, lastShapeType, reversed, offset, customWidth, }: {
|
|
4
|
+
dataKey: FunnelProps['dataKey'];
|
|
5
|
+
nameKey: FunnelProps['nameKey'];
|
|
6
|
+
offset: ChartOffset;
|
|
7
|
+
displayedData: any[];
|
|
8
|
+
tooltipType?: TooltipType;
|
|
9
|
+
lastShapeType?: FunnelProps['lastShapeType'];
|
|
10
|
+
reversed?: boolean;
|
|
11
|
+
customWidth?: number | string;
|
|
12
|
+
}): FunnelComposedData;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './area';
|
|
2
|
+
export * from './axis';
|
|
3
|
+
export * from './bar';
|
|
4
|
+
export * from './cartesian-axis';
|
|
5
|
+
export * from './cartesian-grid';
|
|
6
|
+
export * from './error-bar';
|
|
7
|
+
export * from './line';
|
|
8
|
+
export * from './reference-area';
|
|
9
|
+
export * from './reference-line';
|
|
10
|
+
export * from './scatter';
|
|
11
|
+
export * from './z-axis';
|
|
12
|
+
export * from './funnel';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { PropType, SlotsType, VNode } from 'vue';
|
|
2
|
+
import { DataKey, VuePropsToType } from '../../types';
|
|
3
|
+
import { Point } from '../../shape/Curve';
|
|
4
|
+
export interface PointType {
|
|
5
|
+
readonly x: number;
|
|
6
|
+
readonly y: number;
|
|
7
|
+
readonly value?: any;
|
|
8
|
+
readonly payload?: any;
|
|
9
|
+
}
|
|
10
|
+
declare const ActivePointsVueProps: {
|
|
11
|
+
points: {
|
|
12
|
+
type: PropType<ReadonlyArray<Point>>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
mainColor: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
itemDataKey: {
|
|
20
|
+
type: PropType<DataKey<any>>;
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
activeDot: {
|
|
24
|
+
type: PropType<any>;
|
|
25
|
+
required: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type ActivePointsProps = VuePropsToType<typeof ActivePointsVueProps>;
|
|
29
|
+
export type ActivePointSlotProps = ActivePointsProps & {
|
|
30
|
+
'cx': number;
|
|
31
|
+
'cy': number;
|
|
32
|
+
'r': 4;
|
|
33
|
+
'fill': string;
|
|
34
|
+
'stroke-width': number;
|
|
35
|
+
'stroke': string;
|
|
36
|
+
'payload': any;
|
|
37
|
+
'value': PointType;
|
|
38
|
+
};
|
|
39
|
+
export type ActivePointsSlots = {
|
|
40
|
+
activeDot?: (props: ActivePointSlotProps) => VNode;
|
|
41
|
+
};
|
|
42
|
+
export declare const ActivePoints: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
43
|
+
points: {
|
|
44
|
+
type: PropType<ReadonlyArray<Point>>;
|
|
45
|
+
required: boolean;
|
|
46
|
+
};
|
|
47
|
+
mainColor: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
required: boolean;
|
|
50
|
+
};
|
|
51
|
+
itemDataKey: {
|
|
52
|
+
type: PropType<DataKey<any>>;
|
|
53
|
+
required: boolean;
|
|
54
|
+
};
|
|
55
|
+
activeDot: {
|
|
56
|
+
type: PropType<any>;
|
|
57
|
+
required: boolean;
|
|
58
|
+
};
|
|
59
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
points: {
|
|
61
|
+
type: PropType<ReadonlyArray<Point>>;
|
|
62
|
+
required: boolean;
|
|
63
|
+
};
|
|
64
|
+
mainColor: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: boolean;
|
|
67
|
+
};
|
|
68
|
+
itemDataKey: {
|
|
69
|
+
type: PropType<DataKey<any>>;
|
|
70
|
+
required: boolean;
|
|
71
|
+
};
|
|
72
|
+
activeDot: {
|
|
73
|
+
type: PropType<any>;
|
|
74
|
+
required: boolean;
|
|
75
|
+
};
|
|
76
|
+
}>> & Readonly<{}>, {}, SlotsType<ActivePointsSlots>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { SlotsType } from 'vue';
|
|
2
|
+
import { ActivePointsSlots } from './ActivePoints';
|
|
3
|
+
export declare const Line: import('vue').DefineComponent<{
|
|
4
|
+
activeDot?: any;
|
|
5
|
+
animateNewValues?: boolean;
|
|
6
|
+
animationBegin?: number;
|
|
7
|
+
animationDuration?: import('../../types').AnimationDuration;
|
|
8
|
+
animationEasing?: import('../../types/bar').AnimationEasing;
|
|
9
|
+
animationId?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
connectNulls?: boolean;
|
|
12
|
+
data?: any[];
|
|
13
|
+
dataKey: import('../../types').DataKey<any>;
|
|
14
|
+
dot?: any;
|
|
15
|
+
hide?: boolean;
|
|
16
|
+
id?: string;
|
|
17
|
+
isAnimationActive?: boolean;
|
|
18
|
+
label?: any;
|
|
19
|
+
legendType?: import('../../types/legend').LegendType;
|
|
20
|
+
layout?: import('../../types').LayoutType;
|
|
21
|
+
name?: string | number;
|
|
22
|
+
onAnimationEnd?: () => void;
|
|
23
|
+
onAnimationStart?: () => void;
|
|
24
|
+
stroke?: string;
|
|
25
|
+
strokeWidth?: number;
|
|
26
|
+
tooltipType?: import('../../types').TooltipType;
|
|
27
|
+
transition?: import('motion-v/es').AnimationOptions;
|
|
28
|
+
type?: import('../..').CurveType;
|
|
29
|
+
unit?: string | number;
|
|
30
|
+
xAxisId?: import('../../types/axis').AxisId;
|
|
31
|
+
yAxisId?: import('../../types/axis').AxisId;
|
|
32
|
+
needClip?: boolean;
|
|
33
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
34
|
+
activeDot?: any;
|
|
35
|
+
animateNewValues?: boolean;
|
|
36
|
+
animationBegin?: number;
|
|
37
|
+
animationDuration?: import('../../types').AnimationDuration;
|
|
38
|
+
animationEasing?: import('../../types/bar').AnimationEasing;
|
|
39
|
+
animationId?: string;
|
|
40
|
+
className?: string;
|
|
41
|
+
connectNulls?: boolean;
|
|
42
|
+
data?: any[];
|
|
43
|
+
dataKey: import('../../types').DataKey<any>;
|
|
44
|
+
dot?: any;
|
|
45
|
+
hide?: boolean;
|
|
46
|
+
id?: string;
|
|
47
|
+
isAnimationActive?: boolean;
|
|
48
|
+
label?: any;
|
|
49
|
+
legendType?: import('../../types/legend').LegendType;
|
|
50
|
+
layout?: import('../../types').LayoutType;
|
|
51
|
+
name?: string | number;
|
|
52
|
+
onAnimationEnd?: () => void;
|
|
53
|
+
onAnimationStart?: () => void;
|
|
54
|
+
stroke?: string;
|
|
55
|
+
strokeWidth?: number;
|
|
56
|
+
tooltipType?: import('../../types').TooltipType;
|
|
57
|
+
transition?: import('motion-v/es').AnimationOptions;
|
|
58
|
+
type?: import('../..').CurveType;
|
|
59
|
+
unit?: string | number;
|
|
60
|
+
xAxisId?: import('../../types/axis').AxisId;
|
|
61
|
+
yAxisId?: import('../../types/axis').AxisId;
|
|
62
|
+
needClip?: boolean;
|
|
63
|
+
}> & Readonly<{}>, {
|
|
64
|
+
top: number;
|
|
65
|
+
left: number;
|
|
66
|
+
width: number;
|
|
67
|
+
height: number;
|
|
68
|
+
yAxisId: import('../../types/axis').AxisId;
|
|
69
|
+
xAxisId: import('../../types/axis').AxisId;
|
|
70
|
+
stroke: string;
|
|
71
|
+
data: unknown[];
|
|
72
|
+
connectNulls: boolean;
|
|
73
|
+
strokeWidth: number;
|
|
74
|
+
hide: boolean;
|
|
75
|
+
transition: import('motion-v/es').AnimationOptions;
|
|
76
|
+
legendType: import('../../types/legend').LegendType;
|
|
77
|
+
isAnimationActive: boolean;
|
|
78
|
+
animationBegin: number;
|
|
79
|
+
needClip: boolean;
|
|
80
|
+
activeDot: boolean | Function | Record<string, any>;
|
|
81
|
+
dot: boolean | Function | Record<string, any>;
|
|
82
|
+
}, SlotsType<ActivePointsSlots & {
|
|
83
|
+
default?: () => any;
|
|
84
|
+
shape?: (props: any) => any;
|
|
85
|
+
dot?: (props: any) => any;
|
|
86
|
+
label?: (props: any) => any;
|
|
87
|
+
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Point } from '../../shape/Curve';
|
|
3
|
+
export declare const Dots: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
points: {
|
|
5
|
+
type: PropType<ReadonlyArray<Point>>;
|
|
6
|
+
default: () => any[];
|
|
7
|
+
};
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
points: {
|
|
10
|
+
type: PropType<ReadonlyArray<Point>>;
|
|
11
|
+
default: () => any[];
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
points: readonly Point[];
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export declare const StaticLine: import('vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LinePointItem, LinePropsInternal } from '../type';
|
|
2
|
+
import { ComputedRef, InjectionKey, Ref, SVGAttributes, ShallowRef } from 'vue';
|
|
3
|
+
export interface LineContext {
|
|
4
|
+
clipPathId: Ref<string>;
|
|
5
|
+
layout: Readonly<Ref<string>>;
|
|
6
|
+
points: Ref<ReadonlyArray<LinePointItem> | undefined>;
|
|
7
|
+
props: LinePropsInternal;
|
|
8
|
+
attrs: SVGAttributes;
|
|
9
|
+
lineData: Readonly<ShallowRef<ReadonlyArray<LinePointItem> | undefined>>;
|
|
10
|
+
isAnimating: Ref<boolean>;
|
|
11
|
+
needClip: ComputedRef<boolean>;
|
|
12
|
+
dot: any;
|
|
13
|
+
clipDot: boolean;
|
|
14
|
+
dotSize: number;
|
|
15
|
+
shapeSlot?: (props: any) => any;
|
|
16
|
+
dotSlot?: (props: any) => any;
|
|
17
|
+
labelSlot?: (props: any) => any;
|
|
18
|
+
}
|
|
19
|
+
export declare const LineContextKey: InjectionKey<LineContext>;
|
|
20
|
+
export declare function provideLineContext(context: LineContext): void;
|
|
21
|
+
export declare function useLineContext(): LineContext;
|
|
22
|
+
export declare function useLine(props: LinePropsInternal, attrs?: SVGAttributes, shapeSlot?: (props: any) => any, dotSlot?: (props: any) => any, labelSlot?: (props: any) => any): {
|
|
23
|
+
shouldRender: ComputedRef<boolean>;
|
|
24
|
+
needClip: ComputedRef<boolean>;
|
|
25
|
+
lineData: Readonly<ShallowRef<readonly LinePointItem[]>>;
|
|
26
|
+
points: Ref<readonly LinePointItem[], readonly LinePointItem[]>;
|
|
27
|
+
clipPathId: ComputedRef<string>;
|
|
28
|
+
};
|