vccs 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/animation/Animate.d.ts +72 -0
- package/dist/cartesian/GraphicalItemClipPath.d.ts +31 -0
- package/dist/cartesian/area/ActivePoints.d.ts +77 -0
- package/dist/cartesian/area/Area.d.ts +17 -0
- package/dist/cartesian/area/ClipRect.d.ts +1 -0
- package/dist/cartesian/area/RenderArea.d.ts +16 -0
- package/dist/cartesian/area/__stories__/config.d.ts +31 -0
- package/dist/cartesian/area/hooks/useArea.d.ts +27 -0
- package/dist/cartesian/area/index.d.ts +2 -0
- package/dist/cartesian/area/type.d.ts +173 -0
- package/dist/cartesian/area/utils.d.ts +19 -0
- package/dist/cartesian/axis/XAxis.d.ts +189 -0
- package/dist/cartesian/axis/YAxis.d.ts +192 -0
- package/dist/cartesian/axis/index.d.ts +2 -0
- package/dist/cartesian/axis/type.d.ts +57 -0
- package/dist/cartesian/bar/Bar.d.ts +2 -0
- package/dist/cartesian/bar/components/BarBackground.d.ts +1 -0
- package/dist/cartesian/bar/components/BarRectangles.d.ts +1 -0
- package/dist/cartesian/bar/hooks/useBar.d.ts +23 -0
- package/dist/cartesian/bar/index.d.ts +1 -0
- package/dist/cartesian/bar/type.d.ts +166 -0
- package/dist/cartesian/bar/utils.d.ts +31 -0
- package/dist/cartesian/brush/Brush.d.ts +2 -0
- package/dist/cartesian/brush/components/Background.d.ts +15 -0
- package/dist/cartesian/brush/components/BrushText.d.ts +27 -0
- package/dist/cartesian/brush/components/Panorama.d.ts +65 -0
- package/dist/cartesian/brush/components/Slide.d.ts +20 -0
- package/dist/cartesian/brush/components/Traveller.d.ts +13 -0
- package/dist/cartesian/brush/components/TravellerLayer.d.ts +22 -0
- package/dist/cartesian/brush/hooks/useBrushHandlers.d.ts +25 -0
- package/dist/cartesian/brush/hooks/useBrushSetting.d.ts +6 -0
- package/dist/cartesian/brush/hooks/useBrushState.d.ts +29 -0
- package/dist/cartesian/brush/index.d.ts +2 -0
- package/dist/cartesian/brush/type.d.ts +103 -0
- package/dist/cartesian/brush/utils.d.ts +15 -0
- package/dist/cartesian/cartesian-axis/CartesianAxis.d.ts +209 -0
- package/dist/cartesian/cartesian-axis/const.d.ts +24 -0
- package/dist/cartesian/cartesian-axis/index.d.ts +1 -0
- package/dist/cartesian/cartesian-axis/use-axis-line.d.ts +7 -0
- package/dist/cartesian/cartesian-grid/Background.d.ts +18 -0
- package/dist/cartesian/cartesian-grid/CartesianGrid.d.ts +75 -0
- package/dist/cartesian/cartesian-grid/HorizontalGridLines.d.ts +37 -0
- package/dist/cartesian/cartesian-grid/HorizontalStripes.d.ts +20 -0
- package/dist/cartesian/cartesian-grid/VerticalGridLines.d.ts +26 -0
- package/dist/cartesian/cartesian-grid/VerticalStripes.d.ts +20 -0
- package/dist/cartesian/cartesian-grid/const.d.ts +6 -0
- package/dist/cartesian/cartesian-grid/index.d.ts +1 -0
- package/dist/cartesian/cartesian-grid/type.d.ts +145 -0
- package/dist/cartesian/cartesian-grid/utils.d.ts +5 -0
- package/dist/cartesian/error-bar/ErrorBar.d.ts +68 -0
- package/dist/cartesian/error-bar/ErrorBarContext.d.ts +27 -0
- package/dist/cartesian/error-bar/index.d.ts +2 -0
- package/dist/cartesian/funnel/index.d.ts +0 -0
- package/dist/cartesian/funnel/type.d.ts +37 -0
- package/dist/cartesian/funnel/utils.d.ts +12 -0
- package/dist/cartesian/index.d.ts +11 -0
- package/dist/cartesian/line/ActivePoints.d.ts +77 -0
- package/dist/cartesian/line/Line.d.ts +87 -0
- package/dist/cartesian/line/StaticLine.d.ts +16 -0
- package/dist/cartesian/line/hooks/useLine.d.ts +28 -0
- package/dist/cartesian/line/index.d.ts +3 -0
- package/dist/cartesian/line/type.d.ts +180 -0
- package/dist/cartesian/line/utils.d.ts +13 -0
- package/dist/cartesian/reference-area/ReferenceArea.d.ts +191 -0
- package/dist/cartesian/reference-area/index.d.ts +1 -0
- package/dist/cartesian/reference-line/ReferenceLine.d.ts +139 -0
- package/dist/cartesian/reference-line/index.d.ts +1 -0
- package/dist/cartesian/scatter/Scatter.d.ts +165 -0
- package/dist/cartesian/scatter/hooks/useScatter.d.ts +18 -0
- package/dist/cartesian/scatter/index.d.ts +1 -0
- package/dist/cartesian/type.d.ts +21 -0
- package/dist/cartesian/useNeedsClip.d.ts +6 -0
- package/dist/cartesian/utils/get-ticks.d.ts +16 -0
- package/dist/cartesian/z-axis/ZAxis.d.ts +81 -0
- package/dist/cartesian/z-axis/index.d.ts +1 -0
- package/dist/chart/AreaChart.d.ts +1 -0
- package/dist/chart/BarChart.d.ts +1 -0
- package/dist/chart/ComposedChart.d.ts +1 -0
- package/dist/chart/LegendPortalContext.d.ts +3 -0
- package/dist/chart/LineChart.d.ts +1 -0
- package/dist/chart/PieChart.d.ts +1 -0
- package/dist/chart/RadarChart.d.ts +1 -0
- package/dist/chart/RadialBarChart.d.ts +1 -0
- package/dist/chart/RechartsWrapper.d.ts +99 -0
- package/dist/chart/ScatterChart.d.ts +1 -0
- package/dist/chart/Surface.d.ts +40 -0
- package/dist/chart/TooltipPortalContext.d.ts +2 -0
- package/dist/chart/const.d.ts +6 -0
- package/dist/chart/generateCategoricalChart.d.ts +118 -0
- package/dist/chart/index.d.ts +8 -0
- package/dist/chart/provideClipPathId.d.ts +12 -0
- package/dist/components/Cell.d.ts +18 -0
- package/dist/components/DefaultLegendContent.d.ts +18 -0
- package/dist/components/Text.d.ts +149 -0
- package/dist/components/Tooltip.d.ts +250 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/label/Label.d.ts +81 -0
- package/dist/components/label/LabelList.d.ts +63 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/types.d.ts +88 -0
- package/dist/components/label/utils.d.ts +24 -0
- package/dist/components/legend/Legend.d.ts +4 -0
- package/dist/components/legend/LegendSymbol.d.ts +27 -0
- package/dist/components/legend/hooks/useLegend.d.ts +19 -0
- package/dist/components/legend/hooks/useLegendContent.d.ts +36 -0
- package/dist/components/legend/index.d.ts +2 -0
- package/dist/components/legend/type.d.ts +54 -0
- package/dist/components/legend/utils.d.ts +18 -0
- package/dist/components/types.d.ts +9 -0
- package/dist/components/utils.d.ts +4 -0
- package/dist/container/ClipPath.d.ts +12 -0
- package/dist/container/Layer.d.ts +2 -0
- package/dist/container/ResponsiveContainer.d.ts +50 -0
- package/dist/container/RootSurface.d.ts +17 -0
- package/dist/container/Surface.d.ts +25 -0
- package/dist/container/index.d.ts +1 -0
- package/dist/container/useSizeContext.d.ts +11 -0
- package/dist/context/ChartDataContextProvider.d.ts +17 -0
- package/dist/context/PanoramaContextProvider.d.ts +22 -0
- package/dist/context/accessibilityContext.d.ts +1 -0
- package/dist/context/cartesianLabelListContext.d.ts +3 -0
- package/dist/context/chartLayoutContext.d.ts +8 -0
- package/dist/context/cursorLayerContext.d.ts +2 -0
- package/dist/context/graphicalLayerContext.d.ts +2 -0
- package/dist/context/labelLayerContext.d.ts +2 -0
- package/dist/context/polarLabelViewBoxContext.d.ts +4 -0
- package/dist/context/useTooltipAxis.d.ts +2 -0
- package/dist/es/animation/Animate.mjs +63 -0
- package/dist/es/cartesian/GraphicalItemClipPath.mjs +36 -0
- package/dist/es/cartesian/area/ActivePoints.mjs +74 -0
- package/dist/es/cartesian/area/Area.mjs +41 -0
- package/dist/es/cartesian/area/ClipRect.mjs +104 -0
- package/dist/es/cartesian/area/RenderArea.mjs +151 -0
- package/dist/es/cartesian/area/hooks/useArea.mjs +57 -0
- package/dist/es/cartesian/area/type.mjs +136 -0
- package/dist/es/cartesian/area/utils.mjs +59 -0
- package/dist/es/cartesian/axis/XAxis.mjs +189 -0
- package/dist/es/cartesian/axis/YAxis.mjs +181 -0
- package/dist/es/cartesian/bar/Bar.mjs +89 -0
- package/dist/es/cartesian/bar/components/BarBackground.mjs +29 -0
- package/dist/es/cartesian/bar/components/BarRectangles.mjs +106 -0
- package/dist/es/cartesian/bar/hooks/useBar.mjs +41 -0
- package/dist/es/cartesian/bar/type.mjs +131 -0
- package/dist/es/cartesian/bar/utils.mjs +84 -0
- package/dist/es/cartesian/cartesian-axis/CartesianAxis.mjs +246 -0
- package/dist/es/cartesian/cartesian-grid/Background.mjs +30 -0
- package/dist/es/cartesian/cartesian-grid/CartesianGrid.mjs +155 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalGridLines.mjs +49 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/VerticalGridLines.mjs +44 -0
- package/dist/es/cartesian/cartesian-grid/VerticalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/const.mjs +29 -0
- package/dist/es/cartesian/cartesian-grid/utils.mjs +17 -0
- package/dist/es/cartesian/error-bar/ErrorBar.mjs +115 -0
- package/dist/es/cartesian/error-bar/ErrorBarContext.mjs +19 -0
- package/dist/es/cartesian/line/ActivePoints.mjs +75 -0
- package/dist/es/cartesian/line/Line.mjs +46 -0
- package/dist/es/cartesian/line/StaticLine.mjs +148 -0
- package/dist/es/cartesian/line/hooks/useLine.mjs +53 -0
- package/dist/es/cartesian/line/type.mjs +112 -0
- package/dist/es/cartesian/line/utils.mjs +33 -0
- package/dist/es/cartesian/reference-area/ReferenceArea.mjs +146 -0
- package/dist/es/cartesian/reference-line/ReferenceLine.mjs +143 -0
- package/dist/es/cartesian/scatter/Scatter.mjs +252 -0
- package/dist/es/cartesian/scatter/hooks/useScatter.mjs +19 -0
- package/dist/es/cartesian/useNeedsClip.mjs +14 -0
- package/dist/es/cartesian/utils/get-ticks.mjs +83 -0
- package/dist/es/cartesian/z-axis/ZAxis.mjs +70 -0
- package/dist/es/chart/AreaChart.mjs +9 -0
- package/dist/es/chart/BarChart.mjs +10 -0
- package/dist/es/chart/ComposedChart.mjs +10 -0
- package/dist/es/chart/LegendPortalContext.mjs +5 -0
- package/dist/es/chart/LineChart.mjs +10 -0
- package/dist/es/chart/PieChart.mjs +16 -0
- package/dist/es/chart/RadarChart.mjs +16 -0
- package/dist/es/chart/RadialBarChart.mjs +16 -0
- package/dist/es/chart/RechartsWrapper.mjs +137 -0
- package/dist/es/chart/ScatterChart.mjs +10 -0
- package/dist/es/chart/Surface.mjs +5 -0
- package/dist/es/chart/Surface.vue_vue_type_script_setup_true_lang.mjs +66 -0
- package/dist/es/chart/TooltipPortalContext.mjs +5 -0
- package/dist/es/chart/const.mjs +7 -0
- package/dist/es/chart/generateCategoricalChart.mjs +166 -0
- package/dist/es/chart/provideClipPathId.mjs +10 -0
- package/dist/es/components/Cell.mjs +11 -0
- package/dist/es/components/Text.mjs +5 -0
- package/dist/es/components/Text.vue_vue_type_script_setup_true_lang.mjs +154 -0
- package/dist/es/components/Tooltip.mjs +388 -0
- package/dist/es/components/label/Label.mjs +36 -0
- package/dist/es/components/label/LabelList.mjs +49 -0
- package/dist/es/components/label/types.mjs +35 -0
- package/dist/es/components/label/utils.mjs +233 -0
- package/dist/es/components/legend/Legend.mjs +82 -0
- package/dist/es/components/legend/LegendSymbol.mjs +60 -0
- package/dist/es/components/legend/hooks/useLegend.mjs +52 -0
- package/dist/es/components/legend/hooks/useLegendContent.mjs +47 -0
- package/dist/es/components/legend/type.mjs +41 -0
- package/dist/es/components/legend/utils.mjs +17 -0
- package/dist/es/components/utils.mjs +31 -0
- package/dist/es/container/ClipPath.mjs +25 -0
- package/dist/es/container/Layer.mjs +12 -0
- package/dist/es/container/ResponsiveContainer.mjs +5 -0
- package/dist/es/container/ResponsiveContainer.vue_vue_type_script_setup_true_lang.mjs +112 -0
- package/dist/es/container/Surface.mjs +58 -0
- package/dist/es/container/useSizeContext.mjs +5 -0
- package/dist/es/context/ChartDataContextProvider.mjs +21 -0
- package/dist/es/context/PanoramaContextProvider.mjs +19 -0
- package/dist/es/context/accessibilityContext.mjs +5 -0
- package/dist/es/context/cartesianLabelListContext.mjs +5 -0
- package/dist/es/context/chartLayoutContext.mjs +46 -0
- package/dist/es/context/cursorLayerContext.mjs +5 -0
- package/dist/es/context/graphicalLayerContext.mjs +5 -0
- package/dist/es/context/labelLayerContext.mjs +5 -0
- package/dist/es/context/polarLabelViewBoxContext.mjs +8 -0
- package/dist/es/context/useTooltipAxis.mjs +15 -0
- package/dist/es/events/useChartSynchronisation.mjs +88 -0
- package/dist/es/hooks/useSetupGraphicalItem.mjs +57 -0
- package/dist/es/index.mjs +42 -0
- package/dist/es/polar/pie/Pie.mjs +145 -0
- package/dist/es/polar/pie/type.mjs +97 -0
- package/dist/es/polar/radar/PolarAngleAxis.mjs +161 -0
- package/dist/es/polar/radar/PolarGrid.mjs +102 -0
- package/dist/es/polar/radar/PolarRadiusAxis.mjs +137 -0
- package/dist/es/polar/radar/Radar.mjs +248 -0
- package/dist/es/polar/radial-bar/RadialBar.mjs +176 -0
- package/dist/es/polar/radial-bar/type.mjs +97 -0
- package/dist/es/shape/Cross.mjs +15 -0
- package/dist/es/shape/Curve.mjs +60 -0
- package/dist/es/shape/Dot.mjs +23 -0
- package/dist/es/shape/Rectangle.mjs +68 -0
- package/dist/es/shape/Sector.mjs +128 -0
- package/dist/es/shape/Symbols.mjs +41 -0
- package/dist/es/state/ReportChartProps.mjs +63 -0
- package/dist/es/state/ReportMainChartProps.mjs +41 -0
- package/dist/es/state/ReportPolarOptions.mjs +55 -0
- package/dist/es/state/SetGraphicalItem.mjs +34 -0
- package/dist/es/state/SetLegendPayload.mjs +16 -0
- package/dist/es/state/SetTooltipEntrySettings.mjs +17 -0
- package/dist/es/state/brushSlice.mjs +22 -0
- package/dist/es/state/cartesianAxisSlice.mjs +33 -0
- package/dist/es/state/chartDataSlice.mjs +28 -0
- package/dist/es/state/externalEventsMiddleware.mjs +20 -0
- package/dist/es/state/graphicalItemsSlice.mjs +43 -0
- package/dist/es/state/hooks.mjs +5 -0
- package/dist/es/state/keyboardEventsMiddleware.mjs +55 -0
- package/dist/es/state/layoutSlice.mjs +33 -0
- package/dist/es/state/legendSlice.mjs +35 -0
- package/dist/es/state/mouseEventsMiddleware.mjs +34 -0
- package/dist/es/state/optionsSlice.mjs +22 -0
- package/dist/es/state/polarAxisSlice.mjs +26 -0
- package/dist/es/state/polarOptionsSlice.mjs +11 -0
- package/dist/es/state/reduxDevtoolsJsonStringifyReplacer.mjs +6 -0
- package/dist/es/state/referenceElementsSlice.mjs +34 -0
- package/dist/es/state/rootPropsSlice.mjs +21 -0
- package/dist/es/state/selectors/areaSelectors.mjs +67 -0
- package/dist/es/state/selectors/axisSelectors.mjs +693 -0
- package/dist/es/state/selectors/barSelectors.mjs +178 -0
- package/dist/es/state/selectors/brushSelectors.mjs +17 -0
- package/dist/es/state/selectors/combiners/combineActiveLabel.mjs +8 -0
- package/dist/es/state/selectors/combiners/combineActiveTooltipIndex.mjs +34 -0
- package/dist/es/state/selectors/combiners/combineAxisRangeWithReverse.mjs +6 -0
- package/dist/es/state/selectors/combiners/combineCoordinateForDefaultIndex.mjs +19 -0
- package/dist/es/state/selectors/combiners/combineTooltipInteractionState.mjs +32 -0
- package/dist/es/state/selectors/combiners/combineTooltipPayloadConfigurations.mjs +9 -0
- package/dist/es/state/selectors/common.mjs +4 -0
- package/dist/es/state/selectors/containerSelectors.mjs +4 -0
- package/dist/es/state/selectors/dataSelectors.mjs +16 -0
- package/dist/es/state/selectors/legendSelectors.mjs +9 -0
- package/dist/es/state/selectors/lineSelectors.mjs +57 -0
- package/dist/es/state/selectors/pickAxisId.mjs +4 -0
- package/dist/es/state/selectors/pickAxisType.mjs +4 -0
- package/dist/es/state/selectors/pieSelectors.mjs +97 -0
- package/dist/es/state/selectors/polarAxisSelectors.mjs +148 -0
- package/dist/es/state/selectors/polarGridSelectors.mjs +17 -0
- package/dist/es/state/selectors/polarScaleSelectors.mjs +52 -0
- package/dist/es/state/selectors/polarSelectors.mjs +64 -0
- package/dist/es/state/selectors/radarSelectors.mjs +113 -0
- package/dist/es/state/selectors/radialBarSelectors.mjs +212 -0
- package/dist/es/state/selectors/rootPropsSelectors.mjs +8 -0
- package/dist/es/state/selectors/scatterSelectors.mjs +118 -0
- package/dist/es/state/selectors/selectActivePropsFromChartPointer.mjs +18 -0
- package/dist/es/state/selectors/selectAllAxes.mjs +5 -0
- package/dist/es/state/selectors/selectChartOffset.mjs +60 -0
- package/dist/es/state/selectors/selectChartOffsetInternal.mjs +55 -0
- package/dist/es/state/selectors/selectTooltipEventType.mjs +21 -0
- package/dist/es/state/selectors/selectTooltipPayloadSearcher.mjs +6 -0
- package/dist/es/state/selectors/selectTooltipSettings.mjs +4 -0
- package/dist/es/state/selectors/selectTooltipState.mjs +4 -0
- package/dist/es/state/selectors/selectors.mjs +85 -0
- package/dist/es/state/selectors/tooltipSelectors.mjs +220 -0
- package/dist/es/state/selectors/touchSelectors.mjs +16 -0
- package/dist/es/state/store.mjs +55 -0
- package/dist/es/state/tooltipSlice.mjs +75 -0
- package/dist/es/state/touchEventsMiddleware.mjs +38 -0
- package/dist/es/state/utils/useReportScale.mjs +16 -0
- package/dist/es/synchronisation/syncSelectors.mjs +6 -0
- package/dist/es/synchronisation/useChartSynchronisation.mjs +24 -0
- package/dist/es/types/event.mjs +4 -0
- package/dist/es/utils/ReduceCSSCalc.mjs +82 -0
- package/dist/es/utils/VueUtils.mjs +18 -0
- package/dist/es/utils/attrs.mjs +52 -0
- package/dist/es/utils/cartesian.mjs +22 -0
- package/dist/es/utils/chart.mjs +265 -0
- package/dist/es/utils/const.mjs +4 -0
- package/dist/es/utils/createContext.mjs +12 -0
- package/dist/es/utils/data-utils.mjs +12 -0
- package/dist/es/utils/data.mjs +27 -0
- package/dist/es/utils/events.mjs +5 -0
- package/dist/es/utils/getLinearRegression.mjs +17 -0
- package/dist/es/utils/grid.mjs +8 -0
- package/dist/es/utils/isDomainSpecifiedByUser.mjs +65 -0
- package/dist/es/utils/legend.mjs +18 -0
- package/dist/es/utils/log.mjs +11 -0
- package/dist/es/utils/payload/getUniqPayload.mjs +7 -0
- package/dist/es/utils/polar.mjs +52 -0
- package/dist/es/utils/props.mjs +14 -0
- package/dist/es/utils/resolveDefaultProps.mjs +7 -0
- package/dist/es/utils/scale/getNiceTickValues.mjs +59 -0
- package/dist/es/utils/scale/utils/arithmetic.mjs +24 -0
- package/dist/es/utils/scale/utils/utils.mjs +34 -0
- package/dist/es/utils/style.mjs +19 -0
- package/dist/es/utils/tick.mjs +31 -0
- package/dist/es/utils/tooltip/translate.mjs +59 -0
- package/dist/es/utils/validate.mjs +31 -0
- package/dist/events/useChartSynchronisation.d.ts +8 -0
- package/dist/hooks/useSetupGraphicalItem.d.ts +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/polar/index.d.ts +3 -0
- package/dist/polar/pie/Pie.d.ts +2 -0
- package/dist/polar/pie/index.d.ts +2 -0
- package/dist/polar/pie/type.d.ts +88 -0
- package/dist/polar/radar/PolarAngleAxis.d.ts +145 -0
- package/dist/polar/radar/PolarGrid.d.ts +77 -0
- package/dist/polar/radar/PolarRadiusAxis.d.ts +125 -0
- package/dist/polar/radar/Radar.d.ts +160 -0
- package/dist/polar/radar/index.d.ts +4 -0
- package/dist/polar/radial-bar/RadialBar.d.ts +2 -0
- package/dist/polar/radial-bar/index.d.ts +2 -0
- package/dist/polar/radial-bar/type.d.ts +96 -0
- package/dist/shape/Cross.d.ts +10 -0
- package/dist/shape/Curve.d.ts +42 -0
- package/dist/shape/Dot.d.ts +18 -0
- package/dist/shape/Rectangle.d.ts +33 -0
- package/dist/shape/Sector.d.ts +48 -0
- package/dist/shape/Symbols.d.ts +15 -0
- package/dist/shape/index.d.ts +8 -0
- package/dist/shape/types.d.ts +20 -0
- package/dist/state/ReportBar.d.ts +1 -0
- package/dist/state/ReportChartProps.d.ts +88 -0
- package/dist/state/ReportMainChartProps.d.ts +37 -0
- package/dist/state/ReportPolarOptions.d.ts +59 -0
- package/dist/state/SetGraphicalItem.d.ts +9 -0
- package/dist/state/SetLegendPayload.d.ts +3 -0
- package/dist/state/SetTooltipEntrySettings.d.ts +8 -0
- package/dist/state/brushSlice.d.ts +18 -0
- package/dist/state/cartesianAxisSlice.d.ts +88 -0
- package/dist/state/chartDataSlice.d.ts +44 -0
- package/dist/state/externalEventsMiddleware.d.ts +17 -0
- package/dist/state/graphicalItemsSlice.d.ts +108 -0
- package/dist/state/hooks.d.ts +54 -0
- package/dist/state/keyboardEventsMiddleware.d.ts +3 -0
- package/dist/state/layoutSlice.d.ts +15 -0
- package/dist/state/legendSlice.d.ts +26 -0
- package/dist/state/mouseEventsMiddleware.d.ts +5 -0
- package/dist/state/optionsSlice.d.ts +27 -0
- package/dist/state/polarAxisSlice.d.ts +10 -0
- package/dist/state/polarOptionsSlice.d.ts +10 -0
- package/dist/state/reduxDevtoolsJsonStringifyReplacer.d.ts +1 -0
- package/dist/state/referenceElementsSlice.d.ts +40 -0
- package/dist/state/rootPropsSlice.d.ts +26 -0
- package/dist/state/selectors/areaSelectors.d.ts +24 -0
- package/dist/state/selectors/axisSelectors.d.ts +1828 -0
- package/dist/state/selectors/barSelectors.d.ts +944 -0
- package/dist/state/selectors/brushSelectors.d.ts +10 -0
- package/dist/state/selectors/combiners/combineActiveLabel.d.ts +3 -0
- package/dist/state/selectors/combiners/combineActiveTooltipIndex.d.ts +5 -0
- package/dist/state/selectors/combiners/combineAxisRangeWithReverse.d.ts +3 -0
- package/dist/state/selectors/combiners/combineCoordinateForDefaultIndex.d.ts +3 -0
- package/dist/state/selectors/combiners/combineTooltipInteractionState.d.ts +3 -0
- package/dist/state/selectors/combiners/combineTooltipPayloadConfigurations.d.ts +3 -0
- package/dist/state/selectors/common.d.ts +2 -0
- package/dist/state/selectors/containerSelectors.d.ts +6 -0
- package/dist/state/selectors/dataSelectors.d.ts +23 -0
- package/dist/state/selectors/funnelSelectors.d.ts +69 -0
- package/dist/state/selectors/legendSelectors.d.ts +7 -0
- package/dist/state/selectors/lineSelectors.d.ts +123 -0
- package/dist/state/selectors/pickAxisId.d.ts +3 -0
- package/dist/state/selectors/pickAxisType.d.ts +2 -0
- package/dist/state/selectors/pieSelectors.d.ts +55 -0
- package/dist/state/selectors/polarAxisSelectors.d.ts +49 -0
- package/dist/state/selectors/polarGridSelectors.d.ts +118 -0
- package/dist/state/selectors/polarScaleSelectors.d.ts +9 -0
- package/dist/state/selectors/polarSelectors.d.ts +70 -0
- package/dist/state/selectors/radarSelectors.d.ts +76 -0
- package/dist/state/selectors/radialBarSelectors.d.ts +61 -0
- package/dist/state/selectors/rootPropsSelectors.d.ts +11 -0
- package/dist/state/selectors/scatterSelectors.d.ts +21 -0
- package/dist/state/selectors/selectActivePropsFromChartPointer.d.ts +382 -0
- package/dist/state/selectors/selectAllAxes.d.ts +4 -0
- package/dist/state/selectors/selectChartOffset.d.ts +116 -0
- package/dist/state/selectors/selectChartOffsetInternal.d.ts +9 -0
- package/dist/state/selectors/selectTooltipEventType.d.ts +8 -0
- package/dist/state/selectors/selectTooltipPayloadSearcher.d.ts +3 -0
- package/dist/state/selectors/selectTooltipSettings.d.ts +3 -0
- package/dist/state/selectors/selectTooltipState.d.ts +3 -0
- package/dist/state/selectors/selectors.d.ts +184 -0
- package/dist/state/selectors/tooltipSelectors.d.ts +581 -0
- package/dist/state/selectors/touchSelectors.d.ts +4 -0
- package/dist/state/store.d.ts +74 -0
- package/dist/state/tooltipSlice.d.ts +204 -0
- package/dist/state/touchEventsMiddleware.d.ts +2 -0
- package/dist/state/utils/useReportScale.d.ts +1 -0
- package/dist/synchronisation/syncSelectors.d.ts +3 -0
- package/dist/synchronisation/useChartSynchronisation.d.ts +11 -0
- package/dist/types/area.d.ts +8 -0
- package/dist/types/axis.d.ts +127 -0
- package/dist/types/bar.d.ts +51 -0
- package/dist/types/categorical.d.ts +36 -0
- package/dist/types/common.d.ts +129 -0
- package/dist/types/event.d.ts +16 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/legend.d.ts +1 -0
- package/dist/types/offset.d.ts +8 -0
- package/dist/types/radar.d.ts +28 -0
- package/dist/types/scale.d.ts +11 -0
- package/dist/types/tick.d.ts +55 -0
- package/dist/types/tooltip.d.ts +33 -0
- package/dist/utils/ReduceCSSCalc.d.ts +2 -0
- package/dist/utils/VueUtils.d.ts +11 -0
- package/dist/utils/attrs.d.ts +46 -0
- package/dist/utils/cartesian.d.ts +20 -0
- package/dist/utils/chart.d.ts +99 -0
- package/dist/utils/const.d.ts +30 -0
- package/dist/utils/context.d.ts +8 -0
- package/dist/utils/createContext.d.ts +8 -0
- package/dist/utils/data-utils.d.ts +4 -0
- package/dist/utils/data.d.ts +13 -0
- package/dist/utils/events.d.ts +12 -0
- package/dist/utils/getLinearRegression.d.ts +15 -0
- package/dist/utils/getRelativeCoordinate.d.ts +11 -0
- package/dist/utils/grid.d.ts +37 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/isDomainSpecifiedByUser.d.ts +47 -0
- package/dist/utils/legend.d.ts +3 -0
- package/dist/utils/log.d.ts +1 -0
- package/dist/utils/payload/getUniqPayload.d.ts +4 -0
- package/dist/utils/polar.d.ts +21 -0
- package/dist/utils/props.d.ts +15 -0
- package/dist/utils/resolveDefaultProps.d.ts +52 -0
- package/dist/utils/scale/getNiceTickValues.d.ts +61 -0
- package/dist/utils/scale/utils/arithmetic.d.ts +50 -0
- package/dist/utils/scale/utils/utils.d.ts +9 -0
- package/dist/utils/style.d.ts +12 -0
- package/dist/utils/tick.d.ts +19 -0
- package/dist/utils/tooltip/translate.d.ts +47 -0
- package/dist/utils/types.d.ts +14 -0
- package/dist/utils/validate.d.ts +25 -0
- package/package.json +27 -10
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RadialCursorPoints } from './types';
|
|
2
|
+
import { ChartCoordinate, Coordinate, LayoutType } from '../types';
|
|
3
|
+
import { ChartOffsetInternal } from '../utils/types';
|
|
4
|
+
export declare function getCursorPoints(layout: LayoutType, activeCoordinate: ChartCoordinate, offset: ChartOffsetInternal): [Coordinate, Coordinate] | RadialCursorPoints;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
clipPathId: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
clipPathId: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SVGAttributes } from 'vue';
|
|
2
|
+
export declare const Layer: import('vue').DefineComponent<SVGAttributes, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SVGAttributes> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CSSProperties, VNode } from 'vue';
|
|
2
|
+
export interface ResponsiveContainerProps {
|
|
3
|
+
aspect?: number;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
minWidth?: string | number;
|
|
7
|
+
minHeight?: string | number;
|
|
8
|
+
initialDimension?: {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
maxHeight?: number;
|
|
13
|
+
debounce?: number;
|
|
14
|
+
id?: string | number;
|
|
15
|
+
class?: string | number;
|
|
16
|
+
style?: Omit<CSSProperties, keyof ResponsiveContainerProps>;
|
|
17
|
+
onResize?: (width: number, height: number) => void;
|
|
18
|
+
}
|
|
19
|
+
declare function __VLS_template(): {
|
|
20
|
+
attrs: Partial<{}>;
|
|
21
|
+
slots: Readonly<{
|
|
22
|
+
default: () => VNode[];
|
|
23
|
+
}> & {
|
|
24
|
+
default: () => VNode[];
|
|
25
|
+
};
|
|
26
|
+
refs: {
|
|
27
|
+
containerRef: HTMLDivElement;
|
|
28
|
+
};
|
|
29
|
+
rootEl: any;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
+
declare const __VLS_component: import('vue').DefineComponent<ResponsiveContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ResponsiveContainerProps> & Readonly<{}>, {
|
|
33
|
+
width: string | number;
|
|
34
|
+
height: string | number;
|
|
35
|
+
minWidth: string | number;
|
|
36
|
+
initialDimension: {
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
};
|
|
40
|
+
debounce: number;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
42
|
+
containerRef: HTMLDivElement;
|
|
43
|
+
}, any>;
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const RootSurface: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
title: StringConstructor;
|
|
3
|
+
desc: StringConstructor;
|
|
4
|
+
otherAttributes: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
title: StringConstructor;
|
|
10
|
+
desc: StringConstructor;
|
|
11
|
+
otherAttributes: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {
|
|
16
|
+
otherAttributes: Record<string, any>;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CSSProperties, SVGAttributes } from 'vue';
|
|
2
|
+
interface ViewBox {
|
|
3
|
+
x?: number;
|
|
4
|
+
y?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const Surface: import('vue').DefineComponent<Omit<SVGAttributes, "viewBox"> & {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
viewBox?: ViewBox;
|
|
12
|
+
class?: string;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
title?: string;
|
|
15
|
+
desc?: string;
|
|
16
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Omit<SVGAttributes, "viewBox"> & {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
viewBox?: ViewBox;
|
|
20
|
+
class?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
title?: string;
|
|
23
|
+
desc?: string;
|
|
24
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default Surface;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ResponsiveContainer, type ResponsiveContainerProps } from './ResponsiveContainer';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface SizeContextValue {
|
|
3
|
+
sizes: Ref<{
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}>;
|
|
7
|
+
calculatedWidth: Ref<number>;
|
|
8
|
+
calculatedHeight: Ref<number>;
|
|
9
|
+
}
|
|
10
|
+
declare const useSizeContext: <T extends SizeContextValue = SizeContextValue>(fallback?: T) => T extends null ? SizeContextValue : SizeContextValue, provideSizeContext: (contextValue: SizeContextValue) => SizeContextValue;
|
|
11
|
+
export { provideSizeContext, useSizeContext };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ChartData } from '../state/chartDataSlice';
|
|
3
|
+
/**
|
|
4
|
+
* ChartDataContextProvider for Vue
|
|
5
|
+
* Sets chartData in store on mount/update, clears on unmount. Renders nothing.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ChartDataContextProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
|
+
chartData: {
|
|
9
|
+
type: PropType<ChartData>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
chartData: {
|
|
14
|
+
type: PropType<ChartData>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useIsPanorama composable
|
|
3
|
+
* Returns the injected isPanorama value (default: false)
|
|
4
|
+
*/
|
|
5
|
+
export declare function useIsPanorama(): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* PanoramaContextProvider for Vue
|
|
8
|
+
* Provides isPanorama to descendants via provide/inject. Renders slot.
|
|
9
|
+
*/
|
|
10
|
+
export declare const PanoramaContextProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
isPanorama: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
isPanorama: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAccessibilityLayer: () => Readonly<import('vue').ShallowRef<boolean>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Data } from '../components/label/types';
|
|
3
|
+
export declare const useCartesianLabelListData: <T extends Ref<readonly Data[], readonly Data[]> = Ref<readonly Data[], readonly Data[]>>(fallback?: T) => T extends null ? Ref<readonly Data[], readonly Data[]> : Ref<readonly Data[], readonly Data[]>, provideCartesianLabelListData: (contextValue: Ref<readonly Data[], readonly Data[]>) => Ref<readonly Data[], readonly Data[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Margin } from '../types';
|
|
2
|
+
export declare function useOffset(): Readonly<import('vue').ShallowRef<Required<import('../types').ChartOffset>>>;
|
|
3
|
+
export declare const useChartLayout: () => Readonly<import('vue').ShallowRef<import('../types').LayoutType>>;
|
|
4
|
+
export declare function useViewBox(): import('vue').ComputedRef<Required<import('../cartesian/type').CartesianViewBox>>;
|
|
5
|
+
export declare function useChartWidth(): Readonly<import('vue').ShallowRef<number>>;
|
|
6
|
+
export declare function useChartHeight(): Readonly<import('vue').ShallowRef<number>>;
|
|
7
|
+
export declare function useOffsetInternal(): Readonly<import('vue').ShallowRef<import('../utils/types').ChartOffsetInternal>>;
|
|
8
|
+
export declare function useMargin(): Readonly<import('vue').ShallowRef<Margin>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare const useCursorLayerRef: <T extends Ref<SVGGElement, SVGGElement> = Ref<SVGGElement, SVGGElement>>(fallback?: T) => T extends null ? Ref<SVGGElement, SVGGElement> : Ref<SVGGElement, SVGGElement>, provideCursorLayerRef: (contextValue: Ref<SVGGElement, SVGGElement>) => Ref<SVGGElement, SVGGElement>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare const useGraphicalLayerRef: <T extends Ref<SVGGElement, SVGGElement> = Ref<SVGGElement, SVGGElement>>(fallback?: T) => T extends null ? Ref<SVGGElement, SVGGElement> : Ref<SVGGElement, SVGGElement>, provideGraphicalLayerRef: (contextValue: Ref<SVGGElement, SVGGElement>) => Ref<SVGGElement, SVGGElement>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare const useLabelLayerRef: <T extends Ref<SVGGElement, SVGGElement> = Ref<SVGGElement, SVGGElement>>(fallback?: T) => T extends null ? Ref<SVGGElement, SVGGElement> : Ref<SVGGElement, SVGGElement>, provideLabelLayerRef: (contextValue: Ref<SVGGElement, SVGGElement>) => Ref<SVGGElement, SVGGElement>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
import { PolarViewBox } from '../cartesian/type';
|
|
3
|
+
export declare const POLAR_LABEL_VIEW_BOX_KEY: InjectionKey<ComputedRef<PolarViewBox | undefined>>;
|
|
4
|
+
export declare function usePolarLabelViewBox(): ComputedRef<PolarViewBox | undefined>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as e, onUnmounted as t, ref as n, watch as r } from "vue";
|
|
2
|
+
import { animate as i } from "motion-v";
|
|
3
|
+
import { usePreferredReducedMotion as a } from "@vueuse/core";
|
|
4
|
+
//#region src/animation/Animate.tsx
|
|
5
|
+
var o = {
|
|
6
|
+
duration: .4,
|
|
7
|
+
ease: "easeOut"
|
|
8
|
+
}, s = /* @__PURE__ */ e({
|
|
9
|
+
name: "Animate",
|
|
10
|
+
props: {
|
|
11
|
+
isActive: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !0
|
|
14
|
+
},
|
|
15
|
+
transition: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
19
|
+
onAnimationStart: {
|
|
20
|
+
type: Function,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
onAnimationEnd: {
|
|
24
|
+
type: Function,
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
onUpdate: {
|
|
28
|
+
type: Function,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
from: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 0
|
|
34
|
+
},
|
|
35
|
+
to: {
|
|
36
|
+
type: Number,
|
|
37
|
+
default: 1
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup(e, { slots: s }) {
|
|
41
|
+
let c = null, l = n(0), u = a(), d = () => {
|
|
42
|
+
c && c.stop(), e.onAnimationStart && e.onAnimationStart(), c = i(e.from, e.to, {
|
|
43
|
+
...o,
|
|
44
|
+
...e.transition,
|
|
45
|
+
onUpdate: (t) => {
|
|
46
|
+
l.value = t, e.onUpdate && e.onUpdate(t);
|
|
47
|
+
},
|
|
48
|
+
onComplete: () => {
|
|
49
|
+
l.value = 1, e.onAnimationEnd && e.onAnimationEnd();
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}, f = () => {
|
|
53
|
+
c &&= (c.stop(), null);
|
|
54
|
+
};
|
|
55
|
+
return r([() => e.isActive, u], ([t, n]) => {
|
|
56
|
+
t ? n === "reduce" ? (f(), e.onAnimationStart && e.onAnimationStart(), l.value = e.to, e.onAnimationEnd && e.onAnimationEnd()) : d() : (f(), l.value = e.to);
|
|
57
|
+
}, { immediate: !0 }), t(() => {
|
|
58
|
+
f();
|
|
59
|
+
}), () => s.default ? s.default(l.value) : null;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { s as Animate };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { useOffset as e } from "../context/chartLayoutContext.mjs";
|
|
2
|
+
import { useNeedsClip as t } from "./useNeedsClip.mjs";
|
|
3
|
+
import { createVNode as n, defineComponent as r } from "vue";
|
|
4
|
+
//#region src/cartesian/GraphicalItemClipPath.tsx
|
|
5
|
+
var i = /* @__PURE__ */ r({
|
|
6
|
+
name: "GraphicalItemClipPath",
|
|
7
|
+
props: {
|
|
8
|
+
xAxisId: {
|
|
9
|
+
type: [String, Number],
|
|
10
|
+
default: 0
|
|
11
|
+
},
|
|
12
|
+
yAxisId: {
|
|
13
|
+
type: [String, Number],
|
|
14
|
+
default: 0
|
|
15
|
+
},
|
|
16
|
+
clipPathId: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: !0
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(r) {
|
|
22
|
+
let i = e(), { needClipX: a, needClipY: o, needClip: s } = t(r.xAxisId, r.yAxisId);
|
|
23
|
+
return () => {
|
|
24
|
+
if (!s) return null;
|
|
25
|
+
let { left: e, top: t, width: c, height: l } = i.value;
|
|
26
|
+
return n("clipPath", { id: `clipPath-${r.clipPathId}` }, [n("rect", {
|
|
27
|
+
x: a ? e : e - c / 2,
|
|
28
|
+
y: o ? t : t - l / 2,
|
|
29
|
+
width: a ? c : c * 2,
|
|
30
|
+
height: o ? l : l * 2
|
|
31
|
+
}, null)]);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { i as GraphicalItemClipPath };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { isNullish as e } from "../../utils/validate.mjs";
|
|
2
|
+
import { selectActiveTooltipIndex as t } from "../../state/selectors/tooltipSelectors.mjs";
|
|
3
|
+
import { useAppSelector as n } from "../../state/hooks.mjs";
|
|
4
|
+
import { Layer as r } from "../../container/Layer.mjs";
|
|
5
|
+
import { Dot as i } from "../../shape/Dot.mjs";
|
|
6
|
+
import { createVNode as a, defineComponent as o, isVNode as s } from "vue";
|
|
7
|
+
//#region src/cartesian/area/ActivePoints.tsx
|
|
8
|
+
function c(e) {
|
|
9
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
10
|
+
}
|
|
11
|
+
var l = /* @__PURE__ */ o({
|
|
12
|
+
name: "ActivePoints",
|
|
13
|
+
props: {
|
|
14
|
+
points: {
|
|
15
|
+
type: Array,
|
|
16
|
+
required: !0
|
|
17
|
+
},
|
|
18
|
+
mainColor: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !0
|
|
21
|
+
},
|
|
22
|
+
itemDataKey: {
|
|
23
|
+
type: [
|
|
24
|
+
String,
|
|
25
|
+
Number,
|
|
26
|
+
Function
|
|
27
|
+
],
|
|
28
|
+
required: !0
|
|
29
|
+
},
|
|
30
|
+
activeDot: {
|
|
31
|
+
type: [
|
|
32
|
+
Object,
|
|
33
|
+
Boolean,
|
|
34
|
+
Function
|
|
35
|
+
],
|
|
36
|
+
required: !0
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
slots: Object,
|
|
40
|
+
setup(r, { slots: i }) {
|
|
41
|
+
let a = n(t);
|
|
42
|
+
return () => {
|
|
43
|
+
let { points: t } = r;
|
|
44
|
+
if (!t?.length || e(a.value)) return null;
|
|
45
|
+
let n = t[Number(a.value)];
|
|
46
|
+
return e(n) ? null : u({
|
|
47
|
+
point: n,
|
|
48
|
+
childIndex: Number(a.value),
|
|
49
|
+
mainColor: r.mainColor,
|
|
50
|
+
dataKey: r.itemDataKey,
|
|
51
|
+
activeDot: r.activeDot,
|
|
52
|
+
slots: i
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
function u({ point: e, childIndex: t, mainColor: n, activeDot: o, dataKey: s, slots: l }) {
|
|
58
|
+
if (o === !1) return null;
|
|
59
|
+
let u = {
|
|
60
|
+
index: t,
|
|
61
|
+
dataKey: s,
|
|
62
|
+
cx: e.x,
|
|
63
|
+
cy: e.y,
|
|
64
|
+
r: 4,
|
|
65
|
+
fill: n,
|
|
66
|
+
"stroke-width": 2,
|
|
67
|
+
stroke: "#fff",
|
|
68
|
+
payload: e.payload,
|
|
69
|
+
value: e.value
|
|
70
|
+
}, d;
|
|
71
|
+
return d = l.activeDot ? l.activeDot(u) : a(i, u, null), a(r, { class: "v-charts-active-dot" }, c(d) ? d : { default: () => [d] });
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
export { l as ActivePoints };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AreaVueProps as e } from "./type.mjs";
|
|
2
|
+
import { useArea as t } from "./hooks/useArea.mjs";
|
|
3
|
+
import { Layer as n } from "../../container/Layer.mjs";
|
|
4
|
+
import { StaticArea as r } from "./RenderArea.mjs";
|
|
5
|
+
import { ClipRect as i } from "./ClipRect.mjs";
|
|
6
|
+
import { ActivePoints as a } from "./ActivePoints.mjs";
|
|
7
|
+
import { useSetupGraphicalItem as o } from "../../hooks/useSetupGraphicalItem.mjs";
|
|
8
|
+
import { useGraphicalLayerRef as s } from "../../context/graphicalLayerContext.mjs";
|
|
9
|
+
import { Fragment as c, Teleport as l, createVNode as u, defineComponent as d, isVNode as f } from "vue";
|
|
10
|
+
//#region src/cartesian/area/Area.tsx
|
|
11
|
+
function p(e) {
|
|
12
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !f(e);
|
|
13
|
+
}
|
|
14
|
+
var m = /* @__PURE__ */ d({
|
|
15
|
+
name: "Area",
|
|
16
|
+
props: e,
|
|
17
|
+
inheritAttrs: !1,
|
|
18
|
+
slots: Object,
|
|
19
|
+
setup(e, { attrs: d, slots: f }) {
|
|
20
|
+
o(e, "area");
|
|
21
|
+
let { shouldRender: m, areaData: g, points: _, clipPathId: v, shouldShowAnimation: y } = t(e, d, f.dot), b = s(null);
|
|
22
|
+
return () => {
|
|
23
|
+
let t;
|
|
24
|
+
if (!m.value) return null;
|
|
25
|
+
let o;
|
|
26
|
+
f.activeDot && (o = { activeDot: f.activeDot });
|
|
27
|
+
let s = u(c, null, [u(n, { class: ["v-charts-area", d.class] }, p(t = y.value ? u(n, { key: "area-with-animation" }, { default: () => [u("defs", null, [u("clipPath", { id: `animationClipPath-${v.value}` }, [u(i, null, null)])]), u(n, { "clip-path": `url(#animationClipPath-${v.value})` }, { default: () => [u(r, null, null)] })] }) : u(r, { key: "static-area" }, null)) ? t : { default: () => [t] }), u(a, {
|
|
28
|
+
points: g.value?.points ?? [],
|
|
29
|
+
mainColor: h(d.stroke, e.fill),
|
|
30
|
+
itemDataKey: e.dataKey,
|
|
31
|
+
activeDot: e.activeDot
|
|
32
|
+
}, p(o) ? o : { default: () => [o] })]);
|
|
33
|
+
return b?.value ? u(l, { to: b.value }, p(s) ? s : { default: () => [s] }) : s;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
function h(e, t) {
|
|
38
|
+
return e && e !== "none" ? e : t;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { m as Area };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { isNumber as e, isWellBehavedNumber as t } from "../../utils/validate.mjs";
|
|
2
|
+
import { useAreaContext as n } from "./hooks/useArea.mjs";
|
|
3
|
+
import { Animate as r } from "../../animation/Animate.mjs";
|
|
4
|
+
import { createVNode as i, defineComponent as a, ref as o, watch as s } from "vue";
|
|
5
|
+
//#region src/cartesian/area/ClipRect.tsx
|
|
6
|
+
var c = /* @__PURE__ */ a({
|
|
7
|
+
name: "HorizontalRect",
|
|
8
|
+
props: {
|
|
9
|
+
alpha: {
|
|
10
|
+
type: Number,
|
|
11
|
+
required: !0
|
|
12
|
+
},
|
|
13
|
+
points: {
|
|
14
|
+
type: Array,
|
|
15
|
+
required: !0
|
|
16
|
+
},
|
|
17
|
+
baseLine: {
|
|
18
|
+
type: [Number, Array],
|
|
19
|
+
required: !0
|
|
20
|
+
},
|
|
21
|
+
strokeWidth: {
|
|
22
|
+
type: Number,
|
|
23
|
+
required: !0
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(t) {
|
|
27
|
+
let { points: n } = t;
|
|
28
|
+
return () => {
|
|
29
|
+
let { alpha: r, baseLine: a, strokeWidth: o } = t, s = n[0].x, c = n[n.length - 1].x, l = r * Math.abs(s - c), u = Math.max(...n.map((e) => e.y || 0));
|
|
30
|
+
return e(a) ? u = Math.max(a, u) : a && Array.isArray(a) && a.length && (u = Math.max(...a.map((e) => e.y || 0), u)), e(u) ? i("rect", {
|
|
31
|
+
x: s < c ? s : s - l,
|
|
32
|
+
y: 0,
|
|
33
|
+
width: l,
|
|
34
|
+
height: Math.floor(u + (o ? parseInt(`${o}`, 10) : 1))
|
|
35
|
+
}, null) : null;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}), l = /* @__PURE__ */ a({
|
|
39
|
+
name: "VerticalRect",
|
|
40
|
+
props: {
|
|
41
|
+
alpha: {
|
|
42
|
+
type: Number,
|
|
43
|
+
required: !0
|
|
44
|
+
},
|
|
45
|
+
points: {
|
|
46
|
+
type: Array,
|
|
47
|
+
required: !0
|
|
48
|
+
},
|
|
49
|
+
baseLine: {
|
|
50
|
+
type: [Number, Array],
|
|
51
|
+
required: !0
|
|
52
|
+
},
|
|
53
|
+
strokeWidth: {
|
|
54
|
+
type: Number,
|
|
55
|
+
required: !0
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
setup(n) {
|
|
59
|
+
let { points: r } = n;
|
|
60
|
+
return () => {
|
|
61
|
+
let { alpha: a, baseLine: o, strokeWidth: s } = n, c = r[0].y, l = r[r.length - 1].y;
|
|
62
|
+
if (!t(c) || !t(l)) return null;
|
|
63
|
+
let u = a * Math.abs(c - l), d = Math.max(...r.map((e) => e.x || 0));
|
|
64
|
+
return e(o) ? d = Math.max(o, d) : o && Array.isArray(o) && o.length && (d = Math.max(...o.map((e) => e.x || 0), d)), i("rect", {
|
|
65
|
+
x: 0,
|
|
66
|
+
y: c < l ? c : c - u,
|
|
67
|
+
width: d + (s ? parseInt(`${s}`, 10) : 1),
|
|
68
|
+
height: Math.floor(u)
|
|
69
|
+
}, null);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}), u = /* @__PURE__ */ a({
|
|
73
|
+
name: "ClipRect",
|
|
74
|
+
setup() {
|
|
75
|
+
let { points: e, props: t, areaData: a, layout: u, isClipRectAnimating: d } = n(), f = o(!1);
|
|
76
|
+
s(e, (e) => {
|
|
77
|
+
e && e.length > 0 && !f.value && (f.value = !0);
|
|
78
|
+
}, { immediate: !0 });
|
|
79
|
+
let p = () => {
|
|
80
|
+
f.value = !1, d.value = !1, t.onAnimationEnd?.();
|
|
81
|
+
};
|
|
82
|
+
return () => {
|
|
83
|
+
let n = a.value?.baseLine;
|
|
84
|
+
return !e.value || e.value.length === 0 ? null : i(r, {
|
|
85
|
+
isActive: f.value,
|
|
86
|
+
transition: t.transition,
|
|
87
|
+
onAnimationStart: t.onAnimationStart,
|
|
88
|
+
onAnimationEnd: p
|
|
89
|
+
}, { default: (r) => u.value === "horizontal" ? i(c, {
|
|
90
|
+
alpha: r,
|
|
91
|
+
points: e.value,
|
|
92
|
+
baseLine: n,
|
|
93
|
+
strokeWidth: t.strokeWidth || 2
|
|
94
|
+
}, null) : i(l, {
|
|
95
|
+
alpha: r,
|
|
96
|
+
points: e.value,
|
|
97
|
+
baseLine: n,
|
|
98
|
+
strokeWidth: t.strokeWidth || 2
|
|
99
|
+
}, null) });
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
export { u as ClipRect };
|