vccs 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/animation/Animate.d.ts +72 -0
- package/dist/cartesian/GraphicalItemClipPath.d.ts +31 -0
- package/dist/cartesian/area/ActivePoints.d.ts +77 -0
- package/dist/cartesian/area/Area.d.ts +17 -0
- package/dist/cartesian/area/ClipRect.d.ts +1 -0
- package/dist/cartesian/area/RenderArea.d.ts +16 -0
- package/dist/cartesian/area/__stories__/config.d.ts +31 -0
- package/dist/cartesian/area/hooks/useArea.d.ts +27 -0
- package/dist/cartesian/area/index.d.ts +2 -0
- package/dist/cartesian/area/type.d.ts +173 -0
- package/dist/cartesian/area/utils.d.ts +19 -0
- package/dist/cartesian/axis/XAxis.d.ts +189 -0
- package/dist/cartesian/axis/YAxis.d.ts +192 -0
- package/dist/cartesian/axis/index.d.ts +2 -0
- package/dist/cartesian/axis/type.d.ts +57 -0
- package/dist/cartesian/bar/Bar.d.ts +2 -0
- package/dist/cartesian/bar/components/BarBackground.d.ts +1 -0
- package/dist/cartesian/bar/components/BarRectangles.d.ts +1 -0
- package/dist/cartesian/bar/hooks/useBar.d.ts +23 -0
- package/dist/cartesian/bar/index.d.ts +1 -0
- package/dist/cartesian/bar/type.d.ts +166 -0
- package/dist/cartesian/bar/utils.d.ts +31 -0
- package/dist/cartesian/brush/Brush.d.ts +2 -0
- package/dist/cartesian/brush/components/Background.d.ts +15 -0
- package/dist/cartesian/brush/components/BrushText.d.ts +27 -0
- package/dist/cartesian/brush/components/Panorama.d.ts +65 -0
- package/dist/cartesian/brush/components/Slide.d.ts +20 -0
- package/dist/cartesian/brush/components/Traveller.d.ts +13 -0
- package/dist/cartesian/brush/components/TravellerLayer.d.ts +22 -0
- package/dist/cartesian/brush/hooks/useBrushHandlers.d.ts +25 -0
- package/dist/cartesian/brush/hooks/useBrushSetting.d.ts +6 -0
- package/dist/cartesian/brush/hooks/useBrushState.d.ts +29 -0
- package/dist/cartesian/brush/index.d.ts +2 -0
- package/dist/cartesian/brush/type.d.ts +103 -0
- package/dist/cartesian/brush/utils.d.ts +15 -0
- package/dist/cartesian/cartesian-axis/CartesianAxis.d.ts +209 -0
- package/dist/cartesian/cartesian-axis/const.d.ts +24 -0
- package/dist/cartesian/cartesian-axis/index.d.ts +1 -0
- package/dist/cartesian/cartesian-axis/use-axis-line.d.ts +7 -0
- package/dist/cartesian/cartesian-grid/Background.d.ts +18 -0
- package/dist/cartesian/cartesian-grid/CartesianGrid.d.ts +75 -0
- package/dist/cartesian/cartesian-grid/HorizontalGridLines.d.ts +37 -0
- package/dist/cartesian/cartesian-grid/HorizontalStripes.d.ts +20 -0
- package/dist/cartesian/cartesian-grid/VerticalGridLines.d.ts +26 -0
- package/dist/cartesian/cartesian-grid/VerticalStripes.d.ts +20 -0
- package/dist/cartesian/cartesian-grid/const.d.ts +6 -0
- package/dist/cartesian/cartesian-grid/index.d.ts +1 -0
- package/dist/cartesian/cartesian-grid/type.d.ts +145 -0
- package/dist/cartesian/cartesian-grid/utils.d.ts +5 -0
- package/dist/cartesian/error-bar/ErrorBar.d.ts +68 -0
- package/dist/cartesian/error-bar/ErrorBarContext.d.ts +27 -0
- package/dist/cartesian/error-bar/index.d.ts +2 -0
- package/dist/cartesian/funnel/index.d.ts +0 -0
- package/dist/cartesian/funnel/type.d.ts +37 -0
- package/dist/cartesian/funnel/utils.d.ts +12 -0
- package/dist/cartesian/index.d.ts +11 -0
- package/dist/cartesian/line/ActivePoints.d.ts +77 -0
- package/dist/cartesian/line/Line.d.ts +87 -0
- package/dist/cartesian/line/StaticLine.d.ts +16 -0
- package/dist/cartesian/line/hooks/useLine.d.ts +28 -0
- package/dist/cartesian/line/index.d.ts +3 -0
- package/dist/cartesian/line/type.d.ts +180 -0
- package/dist/cartesian/line/utils.d.ts +13 -0
- package/dist/cartesian/reference-area/ReferenceArea.d.ts +191 -0
- package/dist/cartesian/reference-area/index.d.ts +1 -0
- package/dist/cartesian/reference-line/ReferenceLine.d.ts +139 -0
- package/dist/cartesian/reference-line/index.d.ts +1 -0
- package/dist/cartesian/scatter/Scatter.d.ts +165 -0
- package/dist/cartesian/scatter/hooks/useScatter.d.ts +18 -0
- package/dist/cartesian/scatter/index.d.ts +1 -0
- package/dist/cartesian/type.d.ts +21 -0
- package/dist/cartesian/useNeedsClip.d.ts +6 -0
- package/dist/cartesian/utils/get-ticks.d.ts +16 -0
- package/dist/cartesian/z-axis/ZAxis.d.ts +81 -0
- package/dist/cartesian/z-axis/index.d.ts +1 -0
- package/dist/chart/AreaChart.d.ts +1 -0
- package/dist/chart/BarChart.d.ts +1 -0
- package/dist/chart/ComposedChart.d.ts +1 -0
- package/dist/chart/LegendPortalContext.d.ts +3 -0
- package/dist/chart/LineChart.d.ts +1 -0
- package/dist/chart/PieChart.d.ts +1 -0
- package/dist/chart/RadarChart.d.ts +1 -0
- package/dist/chart/RadialBarChart.d.ts +1 -0
- package/dist/chart/RechartsWrapper.d.ts +99 -0
- package/dist/chart/ScatterChart.d.ts +1 -0
- package/dist/chart/Surface.d.ts +40 -0
- package/dist/chart/TooltipPortalContext.d.ts +2 -0
- package/dist/chart/const.d.ts +6 -0
- package/dist/chart/generateCategoricalChart.d.ts +118 -0
- package/dist/chart/index.d.ts +8 -0
- package/dist/chart/provideClipPathId.d.ts +12 -0
- package/dist/components/Cell.d.ts +18 -0
- package/dist/components/DefaultLegendContent.d.ts +18 -0
- package/dist/components/Text.d.ts +149 -0
- package/dist/components/Tooltip.d.ts +250 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/label/Label.d.ts +81 -0
- package/dist/components/label/LabelList.d.ts +63 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/types.d.ts +88 -0
- package/dist/components/label/utils.d.ts +24 -0
- package/dist/components/legend/Legend.d.ts +4 -0
- package/dist/components/legend/LegendSymbol.d.ts +27 -0
- package/dist/components/legend/hooks/useLegend.d.ts +19 -0
- package/dist/components/legend/hooks/useLegendContent.d.ts +36 -0
- package/dist/components/legend/index.d.ts +2 -0
- package/dist/components/legend/type.d.ts +54 -0
- package/dist/components/legend/utils.d.ts +18 -0
- package/dist/components/types.d.ts +9 -0
- package/dist/components/utils.d.ts +4 -0
- package/dist/container/ClipPath.d.ts +12 -0
- package/dist/container/Layer.d.ts +2 -0
- package/dist/container/ResponsiveContainer.d.ts +50 -0
- package/dist/container/RootSurface.d.ts +17 -0
- package/dist/container/Surface.d.ts +25 -0
- package/dist/container/index.d.ts +1 -0
- package/dist/container/useSizeContext.d.ts +11 -0
- package/dist/context/ChartDataContextProvider.d.ts +17 -0
- package/dist/context/PanoramaContextProvider.d.ts +22 -0
- package/dist/context/accessibilityContext.d.ts +1 -0
- package/dist/context/cartesianLabelListContext.d.ts +3 -0
- package/dist/context/chartLayoutContext.d.ts +8 -0
- package/dist/context/cursorLayerContext.d.ts +2 -0
- package/dist/context/graphicalLayerContext.d.ts +2 -0
- package/dist/context/labelLayerContext.d.ts +2 -0
- package/dist/context/polarLabelViewBoxContext.d.ts +4 -0
- package/dist/context/useTooltipAxis.d.ts +2 -0
- package/dist/es/animation/Animate.mjs +63 -0
- package/dist/es/cartesian/GraphicalItemClipPath.mjs +36 -0
- package/dist/es/cartesian/area/ActivePoints.mjs +74 -0
- package/dist/es/cartesian/area/Area.mjs +41 -0
- package/dist/es/cartesian/area/ClipRect.mjs +104 -0
- package/dist/es/cartesian/area/RenderArea.mjs +151 -0
- package/dist/es/cartesian/area/hooks/useArea.mjs +57 -0
- package/dist/es/cartesian/area/type.mjs +136 -0
- package/dist/es/cartesian/area/utils.mjs +59 -0
- package/dist/es/cartesian/axis/XAxis.mjs +189 -0
- package/dist/es/cartesian/axis/YAxis.mjs +181 -0
- package/dist/es/cartesian/bar/Bar.mjs +89 -0
- package/dist/es/cartesian/bar/components/BarBackground.mjs +29 -0
- package/dist/es/cartesian/bar/components/BarRectangles.mjs +106 -0
- package/dist/es/cartesian/bar/hooks/useBar.mjs +41 -0
- package/dist/es/cartesian/bar/type.mjs +131 -0
- package/dist/es/cartesian/bar/utils.mjs +84 -0
- package/dist/es/cartesian/cartesian-axis/CartesianAxis.mjs +246 -0
- package/dist/es/cartesian/cartesian-grid/Background.mjs +30 -0
- package/dist/es/cartesian/cartesian-grid/CartesianGrid.mjs +155 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalGridLines.mjs +49 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/VerticalGridLines.mjs +44 -0
- package/dist/es/cartesian/cartesian-grid/VerticalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/const.mjs +29 -0
- package/dist/es/cartesian/cartesian-grid/utils.mjs +17 -0
- package/dist/es/cartesian/error-bar/ErrorBar.mjs +115 -0
- package/dist/es/cartesian/error-bar/ErrorBarContext.mjs +19 -0
- package/dist/es/cartesian/line/ActivePoints.mjs +75 -0
- package/dist/es/cartesian/line/Line.mjs +46 -0
- package/dist/es/cartesian/line/StaticLine.mjs +148 -0
- package/dist/es/cartesian/line/hooks/useLine.mjs +53 -0
- package/dist/es/cartesian/line/type.mjs +112 -0
- package/dist/es/cartesian/line/utils.mjs +33 -0
- package/dist/es/cartesian/reference-area/ReferenceArea.mjs +146 -0
- package/dist/es/cartesian/reference-line/ReferenceLine.mjs +143 -0
- package/dist/es/cartesian/scatter/Scatter.mjs +252 -0
- package/dist/es/cartesian/scatter/hooks/useScatter.mjs +19 -0
- package/dist/es/cartesian/useNeedsClip.mjs +14 -0
- package/dist/es/cartesian/utils/get-ticks.mjs +83 -0
- package/dist/es/cartesian/z-axis/ZAxis.mjs +70 -0
- package/dist/es/chart/AreaChart.mjs +9 -0
- package/dist/es/chart/BarChart.mjs +10 -0
- package/dist/es/chart/ComposedChart.mjs +10 -0
- package/dist/es/chart/LegendPortalContext.mjs +5 -0
- package/dist/es/chart/LineChart.mjs +10 -0
- package/dist/es/chart/PieChart.mjs +16 -0
- package/dist/es/chart/RadarChart.mjs +16 -0
- package/dist/es/chart/RadialBarChart.mjs +16 -0
- package/dist/es/chart/RechartsWrapper.mjs +137 -0
- package/dist/es/chart/ScatterChart.mjs +10 -0
- package/dist/es/chart/Surface.mjs +5 -0
- package/dist/es/chart/Surface.vue_vue_type_script_setup_true_lang.mjs +66 -0
- package/dist/es/chart/TooltipPortalContext.mjs +5 -0
- package/dist/es/chart/const.mjs +7 -0
- package/dist/es/chart/generateCategoricalChart.mjs +166 -0
- package/dist/es/chart/provideClipPathId.mjs +10 -0
- package/dist/es/components/Cell.mjs +11 -0
- package/dist/es/components/Text.mjs +5 -0
- package/dist/es/components/Text.vue_vue_type_script_setup_true_lang.mjs +154 -0
- package/dist/es/components/Tooltip.mjs +388 -0
- package/dist/es/components/label/Label.mjs +36 -0
- package/dist/es/components/label/LabelList.mjs +49 -0
- package/dist/es/components/label/types.mjs +35 -0
- package/dist/es/components/label/utils.mjs +233 -0
- package/dist/es/components/legend/Legend.mjs +82 -0
- package/dist/es/components/legend/LegendSymbol.mjs +60 -0
- package/dist/es/components/legend/hooks/useLegend.mjs +52 -0
- package/dist/es/components/legend/hooks/useLegendContent.mjs +47 -0
- package/dist/es/components/legend/type.mjs +41 -0
- package/dist/es/components/legend/utils.mjs +17 -0
- package/dist/es/components/utils.mjs +31 -0
- package/dist/es/container/ClipPath.mjs +25 -0
- package/dist/es/container/Layer.mjs +12 -0
- package/dist/es/container/ResponsiveContainer.mjs +5 -0
- package/dist/es/container/ResponsiveContainer.vue_vue_type_script_setup_true_lang.mjs +112 -0
- package/dist/es/container/Surface.mjs +58 -0
- package/dist/es/container/useSizeContext.mjs +5 -0
- package/dist/es/context/ChartDataContextProvider.mjs +21 -0
- package/dist/es/context/PanoramaContextProvider.mjs +19 -0
- package/dist/es/context/accessibilityContext.mjs +5 -0
- package/dist/es/context/cartesianLabelListContext.mjs +5 -0
- package/dist/es/context/chartLayoutContext.mjs +46 -0
- package/dist/es/context/cursorLayerContext.mjs +5 -0
- package/dist/es/context/graphicalLayerContext.mjs +5 -0
- package/dist/es/context/labelLayerContext.mjs +5 -0
- package/dist/es/context/polarLabelViewBoxContext.mjs +8 -0
- package/dist/es/context/useTooltipAxis.mjs +15 -0
- package/dist/es/events/useChartSynchronisation.mjs +88 -0
- package/dist/es/hooks/useSetupGraphicalItem.mjs +57 -0
- package/dist/es/index.mjs +42 -0
- package/dist/es/polar/pie/Pie.mjs +145 -0
- package/dist/es/polar/pie/type.mjs +97 -0
- package/dist/es/polar/radar/PolarAngleAxis.mjs +161 -0
- package/dist/es/polar/radar/PolarGrid.mjs +102 -0
- package/dist/es/polar/radar/PolarRadiusAxis.mjs +137 -0
- package/dist/es/polar/radar/Radar.mjs +248 -0
- package/dist/es/polar/radial-bar/RadialBar.mjs +176 -0
- package/dist/es/polar/radial-bar/type.mjs +97 -0
- package/dist/es/shape/Cross.mjs +15 -0
- package/dist/es/shape/Curve.mjs +60 -0
- package/dist/es/shape/Dot.mjs +23 -0
- package/dist/es/shape/Rectangle.mjs +68 -0
- package/dist/es/shape/Sector.mjs +128 -0
- package/dist/es/shape/Symbols.mjs +41 -0
- package/dist/es/state/ReportChartProps.mjs +63 -0
- package/dist/es/state/ReportMainChartProps.mjs +41 -0
- package/dist/es/state/ReportPolarOptions.mjs +55 -0
- package/dist/es/state/SetGraphicalItem.mjs +34 -0
- package/dist/es/state/SetLegendPayload.mjs +16 -0
- package/dist/es/state/SetTooltipEntrySettings.mjs +17 -0
- package/dist/es/state/brushSlice.mjs +22 -0
- package/dist/es/state/cartesianAxisSlice.mjs +33 -0
- package/dist/es/state/chartDataSlice.mjs +28 -0
- package/dist/es/state/externalEventsMiddleware.mjs +20 -0
- package/dist/es/state/graphicalItemsSlice.mjs +43 -0
- package/dist/es/state/hooks.mjs +5 -0
- package/dist/es/state/keyboardEventsMiddleware.mjs +55 -0
- package/dist/es/state/layoutSlice.mjs +33 -0
- package/dist/es/state/legendSlice.mjs +35 -0
- package/dist/es/state/mouseEventsMiddleware.mjs +34 -0
- package/dist/es/state/optionsSlice.mjs +22 -0
- package/dist/es/state/polarAxisSlice.mjs +26 -0
- package/dist/es/state/polarOptionsSlice.mjs +11 -0
- package/dist/es/state/reduxDevtoolsJsonStringifyReplacer.mjs +6 -0
- package/dist/es/state/referenceElementsSlice.mjs +34 -0
- package/dist/es/state/rootPropsSlice.mjs +21 -0
- package/dist/es/state/selectors/areaSelectors.mjs +67 -0
- package/dist/es/state/selectors/axisSelectors.mjs +693 -0
- package/dist/es/state/selectors/barSelectors.mjs +178 -0
- package/dist/es/state/selectors/brushSelectors.mjs +17 -0
- package/dist/es/state/selectors/combiners/combineActiveLabel.mjs +8 -0
- package/dist/es/state/selectors/combiners/combineActiveTooltipIndex.mjs +34 -0
- package/dist/es/state/selectors/combiners/combineAxisRangeWithReverse.mjs +6 -0
- package/dist/es/state/selectors/combiners/combineCoordinateForDefaultIndex.mjs +19 -0
- package/dist/es/state/selectors/combiners/combineTooltipInteractionState.mjs +32 -0
- package/dist/es/state/selectors/combiners/combineTooltipPayloadConfigurations.mjs +9 -0
- package/dist/es/state/selectors/common.mjs +4 -0
- package/dist/es/state/selectors/containerSelectors.mjs +4 -0
- package/dist/es/state/selectors/dataSelectors.mjs +16 -0
- package/dist/es/state/selectors/legendSelectors.mjs +9 -0
- package/dist/es/state/selectors/lineSelectors.mjs +57 -0
- package/dist/es/state/selectors/pickAxisId.mjs +4 -0
- package/dist/es/state/selectors/pickAxisType.mjs +4 -0
- package/dist/es/state/selectors/pieSelectors.mjs +97 -0
- package/dist/es/state/selectors/polarAxisSelectors.mjs +148 -0
- package/dist/es/state/selectors/polarGridSelectors.mjs +17 -0
- package/dist/es/state/selectors/polarScaleSelectors.mjs +52 -0
- package/dist/es/state/selectors/polarSelectors.mjs +64 -0
- package/dist/es/state/selectors/radarSelectors.mjs +113 -0
- package/dist/es/state/selectors/radialBarSelectors.mjs +212 -0
- package/dist/es/state/selectors/rootPropsSelectors.mjs +8 -0
- package/dist/es/state/selectors/scatterSelectors.mjs +118 -0
- package/dist/es/state/selectors/selectActivePropsFromChartPointer.mjs +18 -0
- package/dist/es/state/selectors/selectAllAxes.mjs +5 -0
- package/dist/es/state/selectors/selectChartOffset.mjs +60 -0
- package/dist/es/state/selectors/selectChartOffsetInternal.mjs +55 -0
- package/dist/es/state/selectors/selectTooltipEventType.mjs +21 -0
- package/dist/es/state/selectors/selectTooltipPayloadSearcher.mjs +6 -0
- package/dist/es/state/selectors/selectTooltipSettings.mjs +4 -0
- package/dist/es/state/selectors/selectTooltipState.mjs +4 -0
- package/dist/es/state/selectors/selectors.mjs +85 -0
- package/dist/es/state/selectors/tooltipSelectors.mjs +220 -0
- package/dist/es/state/selectors/touchSelectors.mjs +16 -0
- package/dist/es/state/store.mjs +55 -0
- package/dist/es/state/tooltipSlice.mjs +75 -0
- package/dist/es/state/touchEventsMiddleware.mjs +38 -0
- package/dist/es/state/utils/useReportScale.mjs +16 -0
- package/dist/es/synchronisation/syncSelectors.mjs +6 -0
- package/dist/es/synchronisation/useChartSynchronisation.mjs +24 -0
- package/dist/es/types/event.mjs +4 -0
- package/dist/es/utils/ReduceCSSCalc.mjs +82 -0
- package/dist/es/utils/VueUtils.mjs +18 -0
- package/dist/es/utils/attrs.mjs +52 -0
- package/dist/es/utils/cartesian.mjs +22 -0
- package/dist/es/utils/chart.mjs +265 -0
- package/dist/es/utils/const.mjs +4 -0
- package/dist/es/utils/createContext.mjs +12 -0
- package/dist/es/utils/data-utils.mjs +12 -0
- package/dist/es/utils/data.mjs +27 -0
- package/dist/es/utils/events.mjs +5 -0
- package/dist/es/utils/getLinearRegression.mjs +17 -0
- package/dist/es/utils/grid.mjs +8 -0
- package/dist/es/utils/isDomainSpecifiedByUser.mjs +65 -0
- package/dist/es/utils/legend.mjs +18 -0
- package/dist/es/utils/log.mjs +11 -0
- package/dist/es/utils/payload/getUniqPayload.mjs +7 -0
- package/dist/es/utils/polar.mjs +52 -0
- package/dist/es/utils/props.mjs +14 -0
- package/dist/es/utils/resolveDefaultProps.mjs +7 -0
- package/dist/es/utils/scale/getNiceTickValues.mjs +59 -0
- package/dist/es/utils/scale/utils/arithmetic.mjs +24 -0
- package/dist/es/utils/scale/utils/utils.mjs +34 -0
- package/dist/es/utils/style.mjs +19 -0
- package/dist/es/utils/tick.mjs +31 -0
- package/dist/es/utils/tooltip/translate.mjs +59 -0
- package/dist/es/utils/validate.mjs +31 -0
- package/dist/events/useChartSynchronisation.d.ts +8 -0
- package/dist/hooks/useSetupGraphicalItem.d.ts +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/polar/index.d.ts +3 -0
- package/dist/polar/pie/Pie.d.ts +2 -0
- package/dist/polar/pie/index.d.ts +2 -0
- package/dist/polar/pie/type.d.ts +88 -0
- package/dist/polar/radar/PolarAngleAxis.d.ts +145 -0
- package/dist/polar/radar/PolarGrid.d.ts +77 -0
- package/dist/polar/radar/PolarRadiusAxis.d.ts +125 -0
- package/dist/polar/radar/Radar.d.ts +160 -0
- package/dist/polar/radar/index.d.ts +4 -0
- package/dist/polar/radial-bar/RadialBar.d.ts +2 -0
- package/dist/polar/radial-bar/index.d.ts +2 -0
- package/dist/polar/radial-bar/type.d.ts +96 -0
- package/dist/shape/Cross.d.ts +10 -0
- package/dist/shape/Curve.d.ts +42 -0
- package/dist/shape/Dot.d.ts +18 -0
- package/dist/shape/Rectangle.d.ts +33 -0
- package/dist/shape/Sector.d.ts +48 -0
- package/dist/shape/Symbols.d.ts +15 -0
- package/dist/shape/index.d.ts +8 -0
- package/dist/shape/types.d.ts +20 -0
- package/dist/state/ReportBar.d.ts +1 -0
- package/dist/state/ReportChartProps.d.ts +88 -0
- package/dist/state/ReportMainChartProps.d.ts +37 -0
- package/dist/state/ReportPolarOptions.d.ts +59 -0
- package/dist/state/SetGraphicalItem.d.ts +9 -0
- package/dist/state/SetLegendPayload.d.ts +3 -0
- package/dist/state/SetTooltipEntrySettings.d.ts +8 -0
- package/dist/state/brushSlice.d.ts +18 -0
- package/dist/state/cartesianAxisSlice.d.ts +88 -0
- package/dist/state/chartDataSlice.d.ts +44 -0
- package/dist/state/externalEventsMiddleware.d.ts +17 -0
- package/dist/state/graphicalItemsSlice.d.ts +108 -0
- package/dist/state/hooks.d.ts +54 -0
- package/dist/state/keyboardEventsMiddleware.d.ts +3 -0
- package/dist/state/layoutSlice.d.ts +15 -0
- package/dist/state/legendSlice.d.ts +26 -0
- package/dist/state/mouseEventsMiddleware.d.ts +5 -0
- package/dist/state/optionsSlice.d.ts +27 -0
- package/dist/state/polarAxisSlice.d.ts +10 -0
- package/dist/state/polarOptionsSlice.d.ts +10 -0
- package/dist/state/reduxDevtoolsJsonStringifyReplacer.d.ts +1 -0
- package/dist/state/referenceElementsSlice.d.ts +40 -0
- package/dist/state/rootPropsSlice.d.ts +26 -0
- package/dist/state/selectors/areaSelectors.d.ts +24 -0
- package/dist/state/selectors/axisSelectors.d.ts +1828 -0
- package/dist/state/selectors/barSelectors.d.ts +944 -0
- package/dist/state/selectors/brushSelectors.d.ts +10 -0
- package/dist/state/selectors/combiners/combineActiveLabel.d.ts +3 -0
- package/dist/state/selectors/combiners/combineActiveTooltipIndex.d.ts +5 -0
- package/dist/state/selectors/combiners/combineAxisRangeWithReverse.d.ts +3 -0
- package/dist/state/selectors/combiners/combineCoordinateForDefaultIndex.d.ts +3 -0
- package/dist/state/selectors/combiners/combineTooltipInteractionState.d.ts +3 -0
- package/dist/state/selectors/combiners/combineTooltipPayloadConfigurations.d.ts +3 -0
- package/dist/state/selectors/common.d.ts +2 -0
- package/dist/state/selectors/containerSelectors.d.ts +6 -0
- package/dist/state/selectors/dataSelectors.d.ts +23 -0
- package/dist/state/selectors/funnelSelectors.d.ts +69 -0
- package/dist/state/selectors/legendSelectors.d.ts +7 -0
- package/dist/state/selectors/lineSelectors.d.ts +123 -0
- package/dist/state/selectors/pickAxisId.d.ts +3 -0
- package/dist/state/selectors/pickAxisType.d.ts +2 -0
- package/dist/state/selectors/pieSelectors.d.ts +55 -0
- package/dist/state/selectors/polarAxisSelectors.d.ts +49 -0
- package/dist/state/selectors/polarGridSelectors.d.ts +118 -0
- package/dist/state/selectors/polarScaleSelectors.d.ts +9 -0
- package/dist/state/selectors/polarSelectors.d.ts +70 -0
- package/dist/state/selectors/radarSelectors.d.ts +76 -0
- package/dist/state/selectors/radialBarSelectors.d.ts +61 -0
- package/dist/state/selectors/rootPropsSelectors.d.ts +11 -0
- package/dist/state/selectors/scatterSelectors.d.ts +21 -0
- package/dist/state/selectors/selectActivePropsFromChartPointer.d.ts +382 -0
- package/dist/state/selectors/selectAllAxes.d.ts +4 -0
- package/dist/state/selectors/selectChartOffset.d.ts +116 -0
- package/dist/state/selectors/selectChartOffsetInternal.d.ts +9 -0
- package/dist/state/selectors/selectTooltipEventType.d.ts +8 -0
- package/dist/state/selectors/selectTooltipPayloadSearcher.d.ts +3 -0
- package/dist/state/selectors/selectTooltipSettings.d.ts +3 -0
- package/dist/state/selectors/selectTooltipState.d.ts +3 -0
- package/dist/state/selectors/selectors.d.ts +184 -0
- package/dist/state/selectors/tooltipSelectors.d.ts +581 -0
- package/dist/state/selectors/touchSelectors.d.ts +4 -0
- package/dist/state/store.d.ts +74 -0
- package/dist/state/tooltipSlice.d.ts +204 -0
- package/dist/state/touchEventsMiddleware.d.ts +2 -0
- package/dist/state/utils/useReportScale.d.ts +1 -0
- package/dist/synchronisation/syncSelectors.d.ts +3 -0
- package/dist/synchronisation/useChartSynchronisation.d.ts +11 -0
- package/dist/types/area.d.ts +8 -0
- package/dist/types/axis.d.ts +127 -0
- package/dist/types/bar.d.ts +51 -0
- package/dist/types/categorical.d.ts +36 -0
- package/dist/types/common.d.ts +129 -0
- package/dist/types/event.d.ts +16 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/legend.d.ts +1 -0
- package/dist/types/offset.d.ts +8 -0
- package/dist/types/radar.d.ts +28 -0
- package/dist/types/scale.d.ts +11 -0
- package/dist/types/tick.d.ts +55 -0
- package/dist/types/tooltip.d.ts +33 -0
- package/dist/utils/ReduceCSSCalc.d.ts +2 -0
- package/dist/utils/VueUtils.d.ts +11 -0
- package/dist/utils/attrs.d.ts +46 -0
- package/dist/utils/cartesian.d.ts +20 -0
- package/dist/utils/chart.d.ts +99 -0
- package/dist/utils/const.d.ts +30 -0
- package/dist/utils/context.d.ts +8 -0
- package/dist/utils/createContext.d.ts +8 -0
- package/dist/utils/data-utils.d.ts +4 -0
- package/dist/utils/data.d.ts +13 -0
- package/dist/utils/events.d.ts +12 -0
- package/dist/utils/getLinearRegression.d.ts +15 -0
- package/dist/utils/getRelativeCoordinate.d.ts +11 -0
- package/dist/utils/grid.d.ts +37 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/isDomainSpecifiedByUser.d.ts +47 -0
- package/dist/utils/legend.d.ts +3 -0
- package/dist/utils/log.d.ts +1 -0
- package/dist/utils/payload/getUniqPayload.d.ts +4 -0
- package/dist/utils/polar.d.ts +21 -0
- package/dist/utils/props.d.ts +15 -0
- package/dist/utils/resolveDefaultProps.d.ts +52 -0
- package/dist/utils/scale/getNiceTickValues.d.ts +61 -0
- package/dist/utils/scale/utils/arithmetic.d.ts +50 -0
- package/dist/utils/scale/utils/utils.d.ts +9 -0
- package/dist/utils/style.d.ts +12 -0
- package/dist/utils/tick.d.ts +19 -0
- package/dist/utils/tooltip/translate.d.ts +47 -0
- package/dist/utils/types.d.ts +14 -0
- package/dist/utils/validate.d.ts +25 -0
- package/package.json +27 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Rick-hup
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AnimationOptions } from 'motion-v';
|
|
3
|
+
declare const Animate: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
isActive: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
transition: {
|
|
9
|
+
type: PropType<AnimationOptions>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
onAnimationStart: {
|
|
13
|
+
type: PropType<() => void>;
|
|
14
|
+
default: any;
|
|
15
|
+
};
|
|
16
|
+
onAnimationEnd: {
|
|
17
|
+
type: PropType<() => void>;
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
onUpdate: {
|
|
21
|
+
type: PropType<(latest: any) => void>;
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
from: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
to: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
isActive: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
transition: {
|
|
40
|
+
type: PropType<AnimationOptions>;
|
|
41
|
+
default: any;
|
|
42
|
+
};
|
|
43
|
+
onAnimationStart: {
|
|
44
|
+
type: PropType<() => void>;
|
|
45
|
+
default: any;
|
|
46
|
+
};
|
|
47
|
+
onAnimationEnd: {
|
|
48
|
+
type: PropType<() => void>;
|
|
49
|
+
default: any;
|
|
50
|
+
};
|
|
51
|
+
onUpdate: {
|
|
52
|
+
type: PropType<(latest: any) => void>;
|
|
53
|
+
default: any;
|
|
54
|
+
};
|
|
55
|
+
from: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
to: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
}>> & Readonly<{}>, {
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
onUpdate: (latest: any) => void;
|
|
67
|
+
transition: AnimationOptions;
|
|
68
|
+
onAnimationStart: () => void;
|
|
69
|
+
onAnimationEnd: () => void;
|
|
70
|
+
isActive: boolean;
|
|
71
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
export { Animate };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const GraphicalItemClipPath: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
xAxisId: {
|
|
4
|
+
type: PropType<string | number>;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
yAxisId: {
|
|
8
|
+
type: PropType<string | number>;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
clipPathId: {
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
xAxisId: {
|
|
17
|
+
type: PropType<string | number>;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
yAxisId: {
|
|
21
|
+
type: PropType<string | number>;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
clipPathId: {
|
|
25
|
+
type: PropType<string>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, {
|
|
29
|
+
yAxisId: string | number;
|
|
30
|
+
xAxisId: string | number;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -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,17 @@
|
|
|
1
|
+
import { AreaDotSlotProps, AreaPropsWithSVG } from './type';
|
|
2
|
+
import { ActivePointsSlots } from './ActivePoints';
|
|
3
|
+
export type AreaSlots = ActivePointsSlots & {
|
|
4
|
+
dot?: (props: AreaDotSlotProps) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const _Area: import('vue').DefineComponent<AreaPropsWithSVG, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AreaPropsWithSVG> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
/**
|
|
8
|
+
* Type-safe Area component with slot types preserved in .d.ts output.
|
|
9
|
+
* The `new () => { $slots }` pattern ensures Volar picks up slot types
|
|
10
|
+
* even when consuming from compiled declarations.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Area: typeof _Area & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: AreaSlots;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ClipRect: 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,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 StaticArea: 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,31 @@
|
|
|
1
|
+
export type PageDataType = {
|
|
2
|
+
name: string;
|
|
3
|
+
uv: number;
|
|
4
|
+
pv: number;
|
|
5
|
+
amt: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const rangeData: {
|
|
8
|
+
day: string;
|
|
9
|
+
temperature: number[];
|
|
10
|
+
}[];
|
|
11
|
+
declare const pageData: PageDataType[];
|
|
12
|
+
export declare const pageDataWithNegativeNumbers: PageDataType[];
|
|
13
|
+
declare const numberData: {
|
|
14
|
+
name: string;
|
|
15
|
+
uv: number;
|
|
16
|
+
pv: number;
|
|
17
|
+
}[];
|
|
18
|
+
declare const subjectData: {
|
|
19
|
+
subject: string;
|
|
20
|
+
A: number;
|
|
21
|
+
B: number;
|
|
22
|
+
fullMark: number;
|
|
23
|
+
}[];
|
|
24
|
+
declare const pageDataWithFillColor: {
|
|
25
|
+
name: string;
|
|
26
|
+
uv: number;
|
|
27
|
+
pv: number;
|
|
28
|
+
amt: number;
|
|
29
|
+
fill: string;
|
|
30
|
+
}[];
|
|
31
|
+
export { pageData, numberData, subjectData, pageDataWithFillColor };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AreaDotSlotProps, AreaProps } from '../type';
|
|
2
|
+
import { InjectionKey, Ref, SVGAttributes, ShallowRef } from 'vue';
|
|
3
|
+
import { AreaPointItem, ComputedArea } from '../../../state/selectors/areaSelectors';
|
|
4
|
+
export interface AreaContext {
|
|
5
|
+
clipPathId: Ref<string>;
|
|
6
|
+
layout: Ref<'horizontal' | 'vertical' | 'centric' | 'radial'>;
|
|
7
|
+
points: Ref<ReadonlyArray<AreaPointItem> | undefined>;
|
|
8
|
+
props: AreaProps;
|
|
9
|
+
attrs: SVGAttributes;
|
|
10
|
+
dot: any;
|
|
11
|
+
clipDot: boolean;
|
|
12
|
+
dotSize: number;
|
|
13
|
+
dotSlot?: (props: AreaDotSlotProps) => any;
|
|
14
|
+
areaData: Readonly<ShallowRef<ComputedArea | undefined>>;
|
|
15
|
+
isAnimating: Ref<boolean>;
|
|
16
|
+
isClipRectAnimating: Ref<boolean>;
|
|
17
|
+
}
|
|
18
|
+
export declare const AreaContextKey: InjectionKey<AreaContext>;
|
|
19
|
+
export declare function provideAreaContext(context: AreaContext): void;
|
|
20
|
+
export declare function useAreaContext(): AreaContext;
|
|
21
|
+
export declare function useArea(props: AreaProps, attrs?: SVGAttributes, dotSlot?: (props: AreaDotSlotProps) => any): {
|
|
22
|
+
shouldRender: import('vue').ComputedRef<boolean>;
|
|
23
|
+
areaData: Readonly<ShallowRef<ComputedArea>>;
|
|
24
|
+
points: Ref<readonly AreaPointItem[], readonly AreaPointItem[]>;
|
|
25
|
+
clipPathId: import('vue').ComputedRef<string>;
|
|
26
|
+
shouldShowAnimation: import('vue').ComputedRef<boolean>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ChartData } from '../../state/chartDataSlice';
|
|
2
|
+
import { DataKey, TooltipType, VuePropsToType, WithSVGProps } from '../../types';
|
|
3
|
+
import { AnimationOptions } from 'motion-v';
|
|
4
|
+
import { BaseValue } from '../../types/area';
|
|
5
|
+
import { AxisId } from '../../types/axis';
|
|
6
|
+
import { LegendType } from '../../types/legend';
|
|
7
|
+
import { PropType } from 'vue';
|
|
8
|
+
export declare const AreaVueProps: {
|
|
9
|
+
activeDot: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
baseValue: {
|
|
14
|
+
type: PropType<BaseValue>;
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
connectNulls: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
data: {
|
|
22
|
+
type: PropType<ChartData>;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
dataKey: {
|
|
26
|
+
type: PropType<DataKey<any>>;
|
|
27
|
+
required: boolean;
|
|
28
|
+
};
|
|
29
|
+
dot: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
fill: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
fillOpacity: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
strokeWidth: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
};
|
|
44
|
+
stroke: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
hide: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
isAnimationActive: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Label for each data point.
|
|
58
|
+
* - boolean: true for default label rendering
|
|
59
|
+
* - object: config object for label style/behavior
|
|
60
|
+
* - function: custom render function
|
|
61
|
+
* - VNode: custom Vue element
|
|
62
|
+
*/
|
|
63
|
+
label: {
|
|
64
|
+
type: PropType<boolean | Record<string, any>>;
|
|
65
|
+
default: any;
|
|
66
|
+
};
|
|
67
|
+
legendType: {
|
|
68
|
+
type: PropType<LegendType>;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
onAnimationEnd: {
|
|
72
|
+
type: PropType<() => void>;
|
|
73
|
+
default: any;
|
|
74
|
+
};
|
|
75
|
+
onAnimationStart: {
|
|
76
|
+
type: PropType<() => void>;
|
|
77
|
+
default: any;
|
|
78
|
+
};
|
|
79
|
+
transition: {
|
|
80
|
+
type: PropType<AnimationOptions>;
|
|
81
|
+
default: {
|
|
82
|
+
duration: number;
|
|
83
|
+
ease: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
needClip: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
stackId: {
|
|
91
|
+
type: PropType<string | number>;
|
|
92
|
+
default: any;
|
|
93
|
+
};
|
|
94
|
+
tooltipType: {
|
|
95
|
+
type: PropType<TooltipType>;
|
|
96
|
+
default: any;
|
|
97
|
+
};
|
|
98
|
+
unit: {
|
|
99
|
+
type: PropType<string | number>;
|
|
100
|
+
default: any;
|
|
101
|
+
};
|
|
102
|
+
xAxisId: {
|
|
103
|
+
type: PropType<AxisId>;
|
|
104
|
+
default: number;
|
|
105
|
+
};
|
|
106
|
+
yAxisId: {
|
|
107
|
+
type: PropType<AxisId>;
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
activeIndex: {
|
|
111
|
+
type: NumberConstructor;
|
|
112
|
+
default: any;
|
|
113
|
+
};
|
|
114
|
+
activePoint: {
|
|
115
|
+
type: PropType<any>;
|
|
116
|
+
default: any;
|
|
117
|
+
};
|
|
118
|
+
id: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: any;
|
|
121
|
+
};
|
|
122
|
+
left: {
|
|
123
|
+
type: NumberConstructor;
|
|
124
|
+
default: number;
|
|
125
|
+
};
|
|
126
|
+
top: {
|
|
127
|
+
type: NumberConstructor;
|
|
128
|
+
default: number;
|
|
129
|
+
};
|
|
130
|
+
width: {
|
|
131
|
+
type: NumberConstructor;
|
|
132
|
+
default: number;
|
|
133
|
+
};
|
|
134
|
+
height: {
|
|
135
|
+
type: NumberConstructor;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
138
|
+
name: {
|
|
139
|
+
type: PropType<string | number>;
|
|
140
|
+
};
|
|
141
|
+
class: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
type: {
|
|
146
|
+
type: PropType<import('../../shape/Curve').CurveType | import('victory-vendor/d3-shape').CurveFactory>;
|
|
147
|
+
};
|
|
148
|
+
layout: {
|
|
149
|
+
type: PropType<import('../../types').LayoutType>;
|
|
150
|
+
};
|
|
151
|
+
baseLine: {
|
|
152
|
+
type: PropType<number | ReadonlyArray<import('../../shape/Curve').Point>>;
|
|
153
|
+
};
|
|
154
|
+
points: {
|
|
155
|
+
type: PropType<ReadonlyArray<import('../../shape/Curve').Point>>;
|
|
156
|
+
};
|
|
157
|
+
path: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
export type AreaProps = VuePropsToType<typeof AreaVueProps>;
|
|
162
|
+
export type AreaPropsWithSVG = WithSVGProps<typeof AreaVueProps>;
|
|
163
|
+
export interface AreaDotSlotProps {
|
|
164
|
+
cx: number;
|
|
165
|
+
cy: number;
|
|
166
|
+
r: number;
|
|
167
|
+
fill?: string;
|
|
168
|
+
stroke?: string;
|
|
169
|
+
strokeWidth?: number;
|
|
170
|
+
fillOpacity?: number;
|
|
171
|
+
clipDot?: boolean;
|
|
172
|
+
class?: string;
|
|
173
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChartData } from '../../state/chartDataSlice';
|
|
2
|
+
import { AreaSettings, ComputedArea } from '../../state/selectors/areaSelectors';
|
|
3
|
+
import { BaseAxisWithScale } from '../../state/selectors/axisSelectors';
|
|
4
|
+
import { TickItem } from '../../types';
|
|
5
|
+
import { BaseValue } from '../../types/area';
|
|
6
|
+
export declare function getBaseValue(layout: 'horizontal' | 'vertical', chartBaseValue: BaseValue | undefined, itemBaseValue: BaseValue | undefined, xAxis: BaseAxisWithScale, yAxis: BaseAxisWithScale): number;
|
|
7
|
+
export declare function computeArea({ areaSettings: { connectNulls, baseValue: itemBaseValue, dataKey }, stackedData, layout, chartBaseValue, xAxis, yAxis, displayedData, dataStartIndex, xAxisTicks, yAxisTicks, bandSize, }: {
|
|
8
|
+
areaSettings: AreaSettings;
|
|
9
|
+
stackedData: number[][];
|
|
10
|
+
layout: 'horizontal' | 'vertical';
|
|
11
|
+
chartBaseValue: BaseValue | undefined;
|
|
12
|
+
xAxis: BaseAxisWithScale;
|
|
13
|
+
yAxis: BaseAxisWithScale;
|
|
14
|
+
displayedData: ChartData;
|
|
15
|
+
dataStartIndex: number;
|
|
16
|
+
xAxisTicks: TickItem[];
|
|
17
|
+
yAxisTicks: TickItem[];
|
|
18
|
+
bandSize: number;
|
|
19
|
+
}): ComputedArea;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DataKey } from '../../types';
|
|
3
|
+
import { AxisDomain, AxisInterval } from '../../types/axis';
|
|
4
|
+
import { AxisTick, TickFormatter } from '../../types/tick';
|
|
5
|
+
export declare const XAxis: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
allowDataOverflow: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
allowDecimals: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
allowDuplicatedCategory: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
height: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
hide: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
mirror: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
orientation: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: import('../../state/cartesianAxisSlice').XAxisOrientation;
|
|
33
|
+
};
|
|
34
|
+
padding: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
default: import('../../state/cartesianAxisSlice').XAxisPadding;
|
|
37
|
+
};
|
|
38
|
+
reversed: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
scale: {
|
|
43
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
44
|
+
default: import('../../types/scale').ScaleType | import('../../types/scale').RechartsScale;
|
|
45
|
+
};
|
|
46
|
+
tickCount: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
type: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: import('../../types/axis').AxisDomainType;
|
|
53
|
+
};
|
|
54
|
+
xAxisId: {
|
|
55
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
dataKey: {
|
|
59
|
+
type: PropType<DataKey<any>>;
|
|
60
|
+
default: any;
|
|
61
|
+
};
|
|
62
|
+
domain: {
|
|
63
|
+
type: PropType<AxisDomain>;
|
|
64
|
+
};
|
|
65
|
+
axisLine: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
ticks: {
|
|
70
|
+
type: PropType<AxisTick[]>;
|
|
71
|
+
};
|
|
72
|
+
interval: {
|
|
73
|
+
type: PropType<AxisInterval>;
|
|
74
|
+
};
|
|
75
|
+
unit: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
};
|
|
78
|
+
tickLine: {
|
|
79
|
+
type: (ObjectConstructor | BooleanConstructor)[];
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
tickMargin: NumberConstructor;
|
|
83
|
+
minTickGap: {
|
|
84
|
+
type: NumberConstructor;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
tickFormatter: PropType<TickFormatter>;
|
|
88
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
89
|
+
allowDataOverflow: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
allowDecimals: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
allowDuplicatedCategory: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
height: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
default: number;
|
|
104
|
+
};
|
|
105
|
+
hide: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
mirror: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
orientation: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: import('../../state/cartesianAxisSlice').XAxisOrientation;
|
|
116
|
+
};
|
|
117
|
+
padding: {
|
|
118
|
+
type: ObjectConstructor;
|
|
119
|
+
default: import('../../state/cartesianAxisSlice').XAxisPadding;
|
|
120
|
+
};
|
|
121
|
+
reversed: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
scale: {
|
|
126
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
127
|
+
default: import('../../types/scale').ScaleType | import('../../types/scale').RechartsScale;
|
|
128
|
+
};
|
|
129
|
+
tickCount: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
default: number;
|
|
132
|
+
};
|
|
133
|
+
type: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: import('../../types/axis').AxisDomainType;
|
|
136
|
+
};
|
|
137
|
+
xAxisId: {
|
|
138
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
139
|
+
default: number;
|
|
140
|
+
};
|
|
141
|
+
dataKey: {
|
|
142
|
+
type: PropType<DataKey<any>>;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
domain: {
|
|
146
|
+
type: PropType<AxisDomain>;
|
|
147
|
+
};
|
|
148
|
+
axisLine: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
ticks: {
|
|
153
|
+
type: PropType<AxisTick[]>;
|
|
154
|
+
};
|
|
155
|
+
interval: {
|
|
156
|
+
type: PropType<AxisInterval>;
|
|
157
|
+
};
|
|
158
|
+
unit: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
};
|
|
161
|
+
tickLine: {
|
|
162
|
+
type: (ObjectConstructor | BooleanConstructor)[];
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
tickMargin: NumberConstructor;
|
|
166
|
+
minTickGap: {
|
|
167
|
+
type: NumberConstructor;
|
|
168
|
+
default: number;
|
|
169
|
+
};
|
|
170
|
+
tickFormatter: PropType<TickFormatter>;
|
|
171
|
+
}>> & Readonly<{}>, {
|
|
172
|
+
height: number;
|
|
173
|
+
scale: string | Function;
|
|
174
|
+
padding: Record<string, any>;
|
|
175
|
+
xAxisId: string | number;
|
|
176
|
+
type: string;
|
|
177
|
+
dataKey: DataKey<any>;
|
|
178
|
+
orientation: string;
|
|
179
|
+
tickCount: number;
|
|
180
|
+
hide: boolean;
|
|
181
|
+
allowDuplicatedCategory: boolean;
|
|
182
|
+
allowDataOverflow: boolean;
|
|
183
|
+
reversed: boolean;
|
|
184
|
+
allowDecimals: boolean;
|
|
185
|
+
mirror: boolean;
|
|
186
|
+
minTickGap: number;
|
|
187
|
+
axisLine: boolean;
|
|
188
|
+
tickLine: boolean | Record<string, any>;
|
|
189
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|