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,248 @@
|
|
|
1
|
+
import { interpolate as e } from "../../utils/data-utils.mjs";
|
|
2
|
+
import { useIsPanorama as t } from "../../context/PanoramaContextProvider.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 { provideCartesianLabelListData as a } from "../../context/cartesianLabelListContext.mjs";
|
|
7
|
+
import { LabelList as o } from "../../components/label/LabelList.mjs";
|
|
8
|
+
import { Animate as s } from "../../animation/Animate.mjs";
|
|
9
|
+
import { SetPolarGraphicalItem as c } from "../../state/SetGraphicalItem.mjs";
|
|
10
|
+
import { SetLegendPayload as l } from "../../state/SetLegendPayload.mjs";
|
|
11
|
+
import { SetTooltipEntrySettings as u } from "../../state/SetTooltipEntrySettings.mjs";
|
|
12
|
+
import { useGraphicalLayerRef as d } from "../../context/graphicalLayerContext.mjs";
|
|
13
|
+
import { ActivePoints as f } from "../../cartesian/line/ActivePoints.mjs";
|
|
14
|
+
import { selectRadarPoints as p } from "../../state/selectors/radarSelectors.mjs";
|
|
15
|
+
import { Fragment as m, Teleport as h, computed as g, createVNode as _, defineComponent as v, isVNode as y, mergeProps as b, ref as x } from "vue";
|
|
16
|
+
//#region src/polar/radar/Radar.tsx
|
|
17
|
+
function S(e) {
|
|
18
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !y(e);
|
|
19
|
+
}
|
|
20
|
+
function C(e, t) {
|
|
21
|
+
return e && e !== "none" ? e : t;
|
|
22
|
+
}
|
|
23
|
+
function w(e) {
|
|
24
|
+
return e.length ? `${[...e, e[0]].map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join("")}Z` : "";
|
|
25
|
+
}
|
|
26
|
+
function T(e, t) {
|
|
27
|
+
let n = w(e), r = w([...t].reverse());
|
|
28
|
+
return `${n.endsWith("Z") ? n.slice(0, -1) : n}L${r.slice(1)}`;
|
|
29
|
+
}
|
|
30
|
+
function E(t, n, r, i, a) {
|
|
31
|
+
let o = t && t[Math.floor(a * n)];
|
|
32
|
+
return o ? {
|
|
33
|
+
...i,
|
|
34
|
+
x: e(o.x, i.x, r),
|
|
35
|
+
y: e(o.y, i.y, r)
|
|
36
|
+
} : {
|
|
37
|
+
...i,
|
|
38
|
+
x: e(i.cx ?? 0, i.x, r),
|
|
39
|
+
y: e(i.cy ?? 0, i.y, r)
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
var D = /* @__PURE__ */ v({
|
|
43
|
+
name: "Radar",
|
|
44
|
+
inheritAttrs: !1,
|
|
45
|
+
props: {
|
|
46
|
+
dataKey: {
|
|
47
|
+
type: [
|
|
48
|
+
String,
|
|
49
|
+
Number,
|
|
50
|
+
Function
|
|
51
|
+
],
|
|
52
|
+
required: !0
|
|
53
|
+
},
|
|
54
|
+
name: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: void 0
|
|
57
|
+
},
|
|
58
|
+
angleAxisId: {
|
|
59
|
+
type: [String, Number],
|
|
60
|
+
default: 0
|
|
61
|
+
},
|
|
62
|
+
radiusAxisId: {
|
|
63
|
+
type: [String, Number],
|
|
64
|
+
default: 0
|
|
65
|
+
},
|
|
66
|
+
fill: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: "#808080"
|
|
69
|
+
},
|
|
70
|
+
stroke: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: void 0
|
|
73
|
+
},
|
|
74
|
+
fillOpacity: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: .6
|
|
77
|
+
},
|
|
78
|
+
strokeWidth: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: void 0
|
|
81
|
+
},
|
|
82
|
+
strokeDasharray: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: void 0
|
|
85
|
+
},
|
|
86
|
+
dot: {
|
|
87
|
+
type: [Boolean, Object],
|
|
88
|
+
default: !1
|
|
89
|
+
},
|
|
90
|
+
hide: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: !1
|
|
93
|
+
},
|
|
94
|
+
legendType: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "rect"
|
|
97
|
+
},
|
|
98
|
+
tooltipType: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: void 0
|
|
101
|
+
},
|
|
102
|
+
connectNulls: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: !1
|
|
105
|
+
},
|
|
106
|
+
label: {
|
|
107
|
+
type: [Boolean, Object],
|
|
108
|
+
default: !1
|
|
109
|
+
},
|
|
110
|
+
isAnimationActive: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !0
|
|
113
|
+
},
|
|
114
|
+
activeDot: {
|
|
115
|
+
type: [Object, Boolean],
|
|
116
|
+
default: !0
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
setup(e) {
|
|
120
|
+
let v = t();
|
|
121
|
+
c(g(() => ({
|
|
122
|
+
type: "radar",
|
|
123
|
+
data: void 0,
|
|
124
|
+
dataKey: e.dataKey,
|
|
125
|
+
hide: e.hide,
|
|
126
|
+
angleAxisId: e.angleAxisId,
|
|
127
|
+
radiusAxisId: e.radiusAxisId
|
|
128
|
+
}))), l(g(() => [{
|
|
129
|
+
dataKey: e.dataKey,
|
|
130
|
+
type: e.legendType,
|
|
131
|
+
color: C(e.stroke, e.fill),
|
|
132
|
+
value: e.name ?? String(e.dataKey ?? ""),
|
|
133
|
+
payload: { ...e },
|
|
134
|
+
inactive: e.hide
|
|
135
|
+
}])), u({
|
|
136
|
+
fn: (e) => e,
|
|
137
|
+
args: g(() => ({
|
|
138
|
+
dataDefinedOnItem: void 0,
|
|
139
|
+
positions: void 0,
|
|
140
|
+
settings: {
|
|
141
|
+
dataKey: e.dataKey,
|
|
142
|
+
nameKey: void 0,
|
|
143
|
+
name: e.name ?? String(e.dataKey ?? ""),
|
|
144
|
+
hide: e.hide,
|
|
145
|
+
type: e.tooltipType,
|
|
146
|
+
color: C(e.stroke, e.fill),
|
|
147
|
+
fill: e.fill,
|
|
148
|
+
stroke: e.stroke,
|
|
149
|
+
unit: ""
|
|
150
|
+
}
|
|
151
|
+
}))
|
|
152
|
+
});
|
|
153
|
+
let y = n((t) => p(t, e.radiusAxisId, e.angleAxisId, v, e.dataKey)), D = d(), O = x(e.isAnimationActive);
|
|
154
|
+
a(g(() => {
|
|
155
|
+
if (e.isAnimationActive && O.value) return;
|
|
156
|
+
let t = y.value;
|
|
157
|
+
if (t) return t.points.map((e) => ({
|
|
158
|
+
x: e.x,
|
|
159
|
+
y: e.y,
|
|
160
|
+
width: 0,
|
|
161
|
+
height: 0,
|
|
162
|
+
value: e.value ?? "",
|
|
163
|
+
payload: e.payload
|
|
164
|
+
}));
|
|
165
|
+
}));
|
|
166
|
+
let k = null, A = null, j = 0, M, N = (t, n, a) => {
|
|
167
|
+
let o = e.stroke ?? e.fill, s = o && o !== "none", c;
|
|
168
|
+
c = a && n.length > 0 ? T(t, n) : w(t);
|
|
169
|
+
let l = c.endsWith("Z");
|
|
170
|
+
return _(r, { class: "v-charts-radar" }, { default: () => [_("g", { class: "v-charts-radar-polygon" }, [a && n.length > 0 ? _("g", null, [
|
|
171
|
+
_("path", {
|
|
172
|
+
d: c,
|
|
173
|
+
fill: l ? e.fill : "none",
|
|
174
|
+
"fill-opacity": e.fillOpacity,
|
|
175
|
+
stroke: "none",
|
|
176
|
+
"stroke-dasharray": e.strokeDasharray
|
|
177
|
+
}, null),
|
|
178
|
+
s && _("path", {
|
|
179
|
+
d: w(t),
|
|
180
|
+
fill: "none",
|
|
181
|
+
stroke: o,
|
|
182
|
+
"stroke-width": e.strokeWidth,
|
|
183
|
+
"stroke-dasharray": e.strokeDasharray
|
|
184
|
+
}, null),
|
|
185
|
+
s && _("path", {
|
|
186
|
+
d: w(n),
|
|
187
|
+
fill: "none",
|
|
188
|
+
stroke: o,
|
|
189
|
+
"stroke-width": e.strokeWidth,
|
|
190
|
+
"stroke-dasharray": e.strokeDasharray
|
|
191
|
+
}, null)
|
|
192
|
+
]) : _("path", {
|
|
193
|
+
d: c,
|
|
194
|
+
fill: l ? e.fill : "none",
|
|
195
|
+
"fill-opacity": e.fillOpacity,
|
|
196
|
+
stroke: o,
|
|
197
|
+
"stroke-width": e.strokeWidth,
|
|
198
|
+
"stroke-dasharray": e.strokeDasharray
|
|
199
|
+
}, null)]), e.dot && _("g", { class: "v-charts-radar-dots" }, [t.map((t, n) => {
|
|
200
|
+
let r = typeof e.dot == "object" ? e.dot : {};
|
|
201
|
+
return _(i, b({
|
|
202
|
+
key: `dot-${n}`,
|
|
203
|
+
cx: t.x,
|
|
204
|
+
cy: t.y,
|
|
205
|
+
r: 3,
|
|
206
|
+
fill: e.fill,
|
|
207
|
+
stroke: o
|
|
208
|
+
}, r), null);
|
|
209
|
+
})])] });
|
|
210
|
+
};
|
|
211
|
+
return () => {
|
|
212
|
+
if (e.hide) return null;
|
|
213
|
+
let t = y.value;
|
|
214
|
+
if (t == null || t.points.length === 0) return null;
|
|
215
|
+
let { points: n, baseLinePoints: r, isRange: i } = t, a = _(f, {
|
|
216
|
+
points: n,
|
|
217
|
+
mainColor: C(e.stroke, e.fill) ?? e.fill,
|
|
218
|
+
itemDataKey: e.dataKey,
|
|
219
|
+
activeDot: e.activeDot
|
|
220
|
+
}, null), c = D?.value ? _(h, { to: D.value }, S(a) ? a : { default: () => [a] }) : a, l = !O.value && e.label ? _(o, typeof e.label == "object" ? e.label : {}, null) : null;
|
|
221
|
+
if (!e.isAnimationActive) return k = n, A = r, _(m, null, [
|
|
222
|
+
N(n, r, i),
|
|
223
|
+
l,
|
|
224
|
+
c
|
|
225
|
+
]);
|
|
226
|
+
let u = k, d = A, p = u ? u.length / n.length : 1, g = d ? d.length / r.length : 1;
|
|
227
|
+
return t !== M && (j++, M = t), _(m, null, [
|
|
228
|
+
_(s, {
|
|
229
|
+
key: j,
|
|
230
|
+
isActive: !0,
|
|
231
|
+
onAnimationStart: () => {
|
|
232
|
+
O.value = !0;
|
|
233
|
+
},
|
|
234
|
+
onAnimationEnd: () => {
|
|
235
|
+
O.value = !1;
|
|
236
|
+
}
|
|
237
|
+
}, { default: (e) => {
|
|
238
|
+
let t = e === 1 ? n : n.map((t, n) => E(u, p, e, t, n)), a = e === 1 ? r : r.map((t, n) => E(d, g, e, t, n));
|
|
239
|
+
return e > 0 && (k = t, A = a), N(t, a, i);
|
|
240
|
+
} }),
|
|
241
|
+
l,
|
|
242
|
+
c
|
|
243
|
+
]);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
//#endregion
|
|
248
|
+
export { D as Radar };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { interpolate as e } from "../../utils/data-utils.mjs";
|
|
2
|
+
import { mouseLeaveItem as t, setActiveMouseOverItemIndex as n } from "../../state/tooltipSlice.mjs";
|
|
3
|
+
import { useAppDispatch as r, useAppSelector as i } from "../../state/hooks.mjs";
|
|
4
|
+
import { Layer as a } from "../../container/Layer.mjs";
|
|
5
|
+
import { provideCartesianLabelListData as o } from "../../context/cartesianLabelListContext.mjs";
|
|
6
|
+
import { LabelList as s } from "../../components/label/LabelList.mjs";
|
|
7
|
+
import { Animate as c } from "../../animation/Animate.mjs";
|
|
8
|
+
import { SetPolarGraphicalItem as l } from "../../state/SetGraphicalItem.mjs";
|
|
9
|
+
import { SetLegendPayload as u } from "../../state/SetLegendPayload.mjs";
|
|
10
|
+
import { SetTooltipEntrySettings as d } from "../../state/SetTooltipEntrySettings.mjs";
|
|
11
|
+
import { Sector as f } from "../../shape/Sector.mjs";
|
|
12
|
+
import { selectRadialBarLegendPayload as p, selectRadialBarSectors as m } from "../../state/selectors/radialBarSelectors.mjs";
|
|
13
|
+
import { RadialBarVueProps as h } from "./type.mjs";
|
|
14
|
+
import { Fragment as g, computed as _, createVNode as v, defineComponent as y, mergeProps as b, ref as x } from "vue";
|
|
15
|
+
//#region src/polar/radial-bar/RadialBar.tsx
|
|
16
|
+
function S(e, t) {
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
var C = /* @__PURE__ */ y({
|
|
20
|
+
name: "RadialBar",
|
|
21
|
+
props: h,
|
|
22
|
+
inheritAttrs: !1,
|
|
23
|
+
setup(h, { slots: y }) {
|
|
24
|
+
let C = r(), w = _(() => ({
|
|
25
|
+
dataKey: h.dataKey,
|
|
26
|
+
minPointSize: h.minPointSize,
|
|
27
|
+
stackId: h.stackId,
|
|
28
|
+
maxBarSize: h.maxBarSize,
|
|
29
|
+
barSize: h.barSize
|
|
30
|
+
}));
|
|
31
|
+
l(_(() => ({
|
|
32
|
+
type: "radialBar",
|
|
33
|
+
data: void 0,
|
|
34
|
+
dataKey: h.dataKey,
|
|
35
|
+
hide: h.hide,
|
|
36
|
+
angleAxisId: h.angleAxisId,
|
|
37
|
+
radiusAxisId: h.radiusAxisId,
|
|
38
|
+
barSize: h.barSize,
|
|
39
|
+
stackId: h.stackId,
|
|
40
|
+
minPointSize: h.minPointSize,
|
|
41
|
+
maxBarSize: h.maxBarSize
|
|
42
|
+
})));
|
|
43
|
+
let T = i((e) => p(e, h.legendType));
|
|
44
|
+
u(_(() => T.value ?? []));
|
|
45
|
+
let E = i((e) => m(e, h.radiusAxisId, h.angleAxisId, w.value));
|
|
46
|
+
d({
|
|
47
|
+
fn: (e) => e,
|
|
48
|
+
args: _(() => ({
|
|
49
|
+
dataDefinedOnItem: void 0,
|
|
50
|
+
positions: void 0,
|
|
51
|
+
settings: {
|
|
52
|
+
dataKey: h.dataKey,
|
|
53
|
+
nameKey: void 0,
|
|
54
|
+
name: h.name ?? String(h.dataKey ?? ""),
|
|
55
|
+
hide: h.hide,
|
|
56
|
+
type: h.tooltipType,
|
|
57
|
+
color: S(h.stroke, h.fill),
|
|
58
|
+
fill: h.fill,
|
|
59
|
+
stroke: h.stroke,
|
|
60
|
+
unit: ""
|
|
61
|
+
}
|
|
62
|
+
}))
|
|
63
|
+
});
|
|
64
|
+
let D = x(h.isAnimationActive);
|
|
65
|
+
o(_(() => {
|
|
66
|
+
if (h.isAnimationActive && D.value) return;
|
|
67
|
+
let e = E.value;
|
|
68
|
+
if (!e) return;
|
|
69
|
+
let t = h.fill;
|
|
70
|
+
return e.map((e) => ({
|
|
71
|
+
value: e.value ?? "",
|
|
72
|
+
payload: e.payload,
|
|
73
|
+
parentViewBox: void 0,
|
|
74
|
+
fill: e.fill ?? t,
|
|
75
|
+
cx: e.cx,
|
|
76
|
+
cy: e.cy,
|
|
77
|
+
innerRadius: e.innerRadius,
|
|
78
|
+
outerRadius: e.outerRadius,
|
|
79
|
+
startAngle: e.startAngle,
|
|
80
|
+
endAngle: e.endAngle,
|
|
81
|
+
clockWise: !1
|
|
82
|
+
}));
|
|
83
|
+
}));
|
|
84
|
+
let O = null, k = 0, A, j = (e) => {
|
|
85
|
+
let r = h.fill, i = h.stroke, o = !!h.background, s = typeof h.background == "object" ? h.background : {};
|
|
86
|
+
return v(a, { class: "v-charts-radial-bar" }, { default: () => [o && e.map((e, t) => {
|
|
87
|
+
if (!e.background) return null;
|
|
88
|
+
let n = e.background;
|
|
89
|
+
return v(f, b({
|
|
90
|
+
key: `bg-${t}`,
|
|
91
|
+
cx: n.cx,
|
|
92
|
+
cy: n.cy,
|
|
93
|
+
innerRadius: n.innerRadius,
|
|
94
|
+
outerRadius: n.outerRadius,
|
|
95
|
+
startAngle: n.startAngle,
|
|
96
|
+
endAngle: n.endAngle,
|
|
97
|
+
cornerRadius: h.cornerRadius,
|
|
98
|
+
forceCornerRadius: h.forceCornerRadius,
|
|
99
|
+
cornerIsExternal: h.cornerIsExternal,
|
|
100
|
+
fill: "#eee",
|
|
101
|
+
"fill-opacity": .5
|
|
102
|
+
}, s), null);
|
|
103
|
+
}), e.map((e, a) => {
|
|
104
|
+
if (e.innerRadius == null || e.outerRadius == null || e.startAngle == null || e.endAngle == null) return null;
|
|
105
|
+
let o = e.fill ?? r, s = () => {
|
|
106
|
+
C(n({
|
|
107
|
+
activeIndex: String(a),
|
|
108
|
+
activeDataKey: h.dataKey
|
|
109
|
+
}));
|
|
110
|
+
}, c = () => {
|
|
111
|
+
C(t());
|
|
112
|
+
};
|
|
113
|
+
return v(f, {
|
|
114
|
+
key: `sector-${a}`,
|
|
115
|
+
cx: e.cx,
|
|
116
|
+
cy: e.cy,
|
|
117
|
+
innerRadius: e.innerRadius,
|
|
118
|
+
outerRadius: e.outerRadius,
|
|
119
|
+
startAngle: e.startAngle,
|
|
120
|
+
endAngle: e.endAngle,
|
|
121
|
+
cornerRadius: h.cornerRadius,
|
|
122
|
+
forceCornerRadius: h.forceCornerRadius,
|
|
123
|
+
cornerIsExternal: h.cornerIsExternal,
|
|
124
|
+
fill: o,
|
|
125
|
+
"fill-opacity": h.fillOpacity,
|
|
126
|
+
stroke: i ?? o,
|
|
127
|
+
"stroke-width": h.strokeWidth,
|
|
128
|
+
"stroke-dasharray": h.strokeDasharray,
|
|
129
|
+
onMouseenter: s,
|
|
130
|
+
onMouseleave: c
|
|
131
|
+
}, null);
|
|
132
|
+
})] });
|
|
133
|
+
};
|
|
134
|
+
return () => {
|
|
135
|
+
if (h.hide) return null;
|
|
136
|
+
let t = E.value;
|
|
137
|
+
if (t == null || t.length === 0) return null;
|
|
138
|
+
let n = t, r = !D.value && h.label ? v(s, typeof h.label == "object" ? h.label : {}, null) : null, i = D.value ? null : y.default?.();
|
|
139
|
+
if (!h.isAnimationActive) return O = n, v(g, null, [
|
|
140
|
+
j(n),
|
|
141
|
+
r,
|
|
142
|
+
i
|
|
143
|
+
]);
|
|
144
|
+
let a = O;
|
|
145
|
+
return t !== A && (k++, A = t), v(g, null, [
|
|
146
|
+
v(c, {
|
|
147
|
+
key: k,
|
|
148
|
+
isActive: !0,
|
|
149
|
+
onAnimationStart: () => {
|
|
150
|
+
D.value = !0;
|
|
151
|
+
},
|
|
152
|
+
onAnimationEnd: () => {
|
|
153
|
+
D.value = !1;
|
|
154
|
+
}
|
|
155
|
+
}, { default: (t) => {
|
|
156
|
+
let r = t === 1 ? n : n.map((n, r) => {
|
|
157
|
+
let i = a && a[r];
|
|
158
|
+
return i ? {
|
|
159
|
+
...n,
|
|
160
|
+
startAngle: i.startAngle != null && n.startAngle != null ? e(i.startAngle, n.startAngle, t) : n.startAngle,
|
|
161
|
+
endAngle: e(i.endAngle ?? 0, n.endAngle, t)
|
|
162
|
+
} : {
|
|
163
|
+
...n,
|
|
164
|
+
endAngle: e(n.startAngle ?? 0, n.endAngle, t)
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
return t > 0 && (O = r), j(r);
|
|
168
|
+
} }),
|
|
169
|
+
r,
|
|
170
|
+
i
|
|
171
|
+
]);
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
//#endregion
|
|
176
|
+
export { C as RadialBar };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
//#region src/polar/radial-bar/type.ts
|
|
2
|
+
var e = {
|
|
3
|
+
dataKey: {
|
|
4
|
+
type: [
|
|
5
|
+
String,
|
|
6
|
+
Number,
|
|
7
|
+
Function
|
|
8
|
+
],
|
|
9
|
+
required: !0
|
|
10
|
+
},
|
|
11
|
+
name: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
angleAxisId: {
|
|
16
|
+
type: [String, Number],
|
|
17
|
+
default: 0
|
|
18
|
+
},
|
|
19
|
+
radiusAxisId: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: 0
|
|
22
|
+
},
|
|
23
|
+
fill: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
stroke: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
fillOpacity: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: void 0
|
|
34
|
+
},
|
|
35
|
+
strokeWidth: {
|
|
36
|
+
type: Number,
|
|
37
|
+
default: void 0
|
|
38
|
+
},
|
|
39
|
+
strokeDasharray: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: void 0
|
|
42
|
+
},
|
|
43
|
+
hide: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
legendType: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "rect"
|
|
50
|
+
},
|
|
51
|
+
tooltipType: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: void 0
|
|
54
|
+
},
|
|
55
|
+
background: {
|
|
56
|
+
type: [Boolean, Object],
|
|
57
|
+
default: !1
|
|
58
|
+
},
|
|
59
|
+
label: {
|
|
60
|
+
type: [Boolean, Object],
|
|
61
|
+
default: !1
|
|
62
|
+
},
|
|
63
|
+
isAnimationActive: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !0
|
|
66
|
+
},
|
|
67
|
+
minPointSize: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
maxBarSize: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: void 0
|
|
74
|
+
},
|
|
75
|
+
barSize: {
|
|
76
|
+
type: [Number, String],
|
|
77
|
+
default: void 0
|
|
78
|
+
},
|
|
79
|
+
stackId: {
|
|
80
|
+
type: [String, Number],
|
|
81
|
+
default: void 0
|
|
82
|
+
},
|
|
83
|
+
cornerRadius: {
|
|
84
|
+
type: [Number, String],
|
|
85
|
+
default: 0
|
|
86
|
+
},
|
|
87
|
+
forceCornerRadius: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !1
|
|
90
|
+
},
|
|
91
|
+
cornerIsExternal: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !1
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
export { e as RadialBarVueProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isNumber as e } from "../utils/validate.mjs";
|
|
2
|
+
import { createVNode as t, mergeProps as n } from "vue";
|
|
3
|
+
//#region src/shape/Cross.tsx
|
|
4
|
+
function r(e, t, n, r, i, a) {
|
|
5
|
+
return `M${e},${i}v${r}M${a},${t}h${n}`;
|
|
6
|
+
}
|
|
7
|
+
function i(i) {
|
|
8
|
+
let { x: a = 0, y: o = 0, top: s = 0, left: c = 0, width: l = 0, height: u = 0, ...d } = i;
|
|
9
|
+
return !e(a) || !e(o) || !e(l) || !e(u) || !e(s) || !e(c) ? null : t("path", n(d, {
|
|
10
|
+
class: "v-charts-cross",
|
|
11
|
+
d: r(a, o, l, u, s, c)
|
|
12
|
+
}), null);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as Cross };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { isNumber as e } from "../utils/validate.mjs";
|
|
2
|
+
import { computed as t, createVNode as n, defineComponent as r, mergeProps as i } from "vue";
|
|
3
|
+
import { area as a, curveBasis as o, curveBasisClosed as s, curveBasisOpen as c, curveBumpX as l, curveBumpY as u, curveLinear as d, curveLinearClosed as f, curveMonotoneX as p, curveMonotoneY as m, curveNatural as h, curveStep as g, curveStepAfter as _, curveStepBefore as v, line as y } from "victory-vendor/d3-shape";
|
|
4
|
+
import { upperFirst as b } from "es-toolkit/compat";
|
|
5
|
+
//#region src/shape/Curve.tsx
|
|
6
|
+
var x = {
|
|
7
|
+
curveBasisClosed: s,
|
|
8
|
+
curveBasisOpen: c,
|
|
9
|
+
curveBasis: o,
|
|
10
|
+
curveBumpX: l,
|
|
11
|
+
curveBumpY: u,
|
|
12
|
+
curveLinearClosed: f,
|
|
13
|
+
curveLinear: d,
|
|
14
|
+
curveMonotoneX: p,
|
|
15
|
+
curveMonotoneY: m,
|
|
16
|
+
curveNatural: h,
|
|
17
|
+
curveStep: g,
|
|
18
|
+
curveStepAfter: _,
|
|
19
|
+
curveStepBefore: v
|
|
20
|
+
}, S = (e) => e.x === +e.x && e.y === +e.y, C = (e) => e.x, w = (e) => e.y;
|
|
21
|
+
function T(e, t) {
|
|
22
|
+
if (typeof e == "function") return e;
|
|
23
|
+
let n = `curve${b(e)}`;
|
|
24
|
+
return (n === "curveMonotone" || n === "curveBump") && t ? x[`${n}${t === "vertical" ? "Y" : "X"}`] : x[n] || d;
|
|
25
|
+
}
|
|
26
|
+
function E({ type: t = "linear", points: n = [], baseLine: r, layout: i, connectNulls: o = !1 }) {
|
|
27
|
+
let s = T(t, i), c = o ? n.filter((e) => S(e)) : n, l;
|
|
28
|
+
if (Array.isArray(r)) {
|
|
29
|
+
let e = o ? r.filter((e) => S(e)) : r, t = c.map((t, n) => ({
|
|
30
|
+
...t,
|
|
31
|
+
base: e[n]
|
|
32
|
+
}));
|
|
33
|
+
return l = i === "vertical" ? a().y(w).x1(C).x0((e) => e.base.x) : a().x(C).y1(w).y0((e) => e.base.y), l.defined(S).curve(s), l(t);
|
|
34
|
+
}
|
|
35
|
+
return l = i === "vertical" && e(r) ? a().y(w).x1(C).x0(r) : e(r) ? a().x(C).y1(w).y0(r) : y().x(C).y(w), l.defined(S).curve(s), l(c);
|
|
36
|
+
}
|
|
37
|
+
var D = {
|
|
38
|
+
type: { type: [String, Function] },
|
|
39
|
+
layout: { type: String },
|
|
40
|
+
baseLine: { type: [Number, Array] },
|
|
41
|
+
points: { type: Array },
|
|
42
|
+
connectNulls: { type: Boolean },
|
|
43
|
+
path: { type: String },
|
|
44
|
+
class: { type: [String, Array] }
|
|
45
|
+
}, O = /* @__PURE__ */ r({
|
|
46
|
+
name: "Curve",
|
|
47
|
+
props: D,
|
|
48
|
+
inheritAttrs: !1,
|
|
49
|
+
setup(e, { attrs: r }) {
|
|
50
|
+
let a = t(() => {
|
|
51
|
+
if (!((!e.points || !e.points.length) && !e.path)) return e.points && e.points.length ? E(e) : e.path;
|
|
52
|
+
});
|
|
53
|
+
return () => a.value === null && !e.path ? null : n("path", i(r, {
|
|
54
|
+
class: ["v-charts-curve", e.class],
|
|
55
|
+
d: a.value
|
|
56
|
+
}), null);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { O as Curve, D as CurveVueProps, E as getPath };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createVNode as e, defineComponent as t } from "vue";
|
|
2
|
+
var n = /* @__PURE__ */ t({
|
|
3
|
+
name: "Dot",
|
|
4
|
+
props: {
|
|
5
|
+
cx: { type: [Number, String] },
|
|
6
|
+
cy: { type: [Number, String] },
|
|
7
|
+
r: { type: [Number, String] },
|
|
8
|
+
clipDot: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(t) {
|
|
11
|
+
return () => {
|
|
12
|
+
let { cx: n, cy: r, r: i } = t;
|
|
13
|
+
return n === +n && r === +r && i === +i ? e("circle", {
|
|
14
|
+
class: ["v-charts-dot", t.class],
|
|
15
|
+
cx: n,
|
|
16
|
+
cy: r,
|
|
17
|
+
r: i
|
|
18
|
+
}, null) : null;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { n as Dot };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { createVNode as e, defineComponent as t, mergeProps as n } from "vue";
|
|
2
|
+
//#region src/shape/Rectangle.tsx
|
|
3
|
+
var r = {
|
|
4
|
+
className: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: void 0
|
|
7
|
+
},
|
|
8
|
+
x: {
|
|
9
|
+
type: Number,
|
|
10
|
+
default: 0
|
|
11
|
+
},
|
|
12
|
+
y: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 0
|
|
15
|
+
},
|
|
16
|
+
width: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 0
|
|
19
|
+
},
|
|
20
|
+
height: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 0
|
|
23
|
+
},
|
|
24
|
+
radius: {
|
|
25
|
+
type: [Number, Array],
|
|
26
|
+
default: void 0
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function i(e, t, n, r, i) {
|
|
30
|
+
let a = Math.min(Math.abs(n) / 2, Math.abs(r) / 2), o = r >= 0 ? 1 : -1, s = n >= 0 ? 1 : -1, c = r >= 0 && n >= 0 || r < 0 && n < 0 ? 1 : 0;
|
|
31
|
+
if (a > 0 && Array.isArray(i)) {
|
|
32
|
+
let l = [
|
|
33
|
+
0,
|
|
34
|
+
0,
|
|
35
|
+
0,
|
|
36
|
+
0
|
|
37
|
+
];
|
|
38
|
+
for (let e = 0; e < 4; e++) {
|
|
39
|
+
let t = i[e] ?? 0;
|
|
40
|
+
l[e] = t > a ? a : t;
|
|
41
|
+
}
|
|
42
|
+
let u = `M${e},${t + o * l[0]}`;
|
|
43
|
+
return l[0] > 0 && (u += `A ${l[0]},${l[0]},0,0,${c},${e + s * l[0]},${t}`), u += `L ${e + n - s * l[1]},${t}`, l[1] > 0 && (u += `A ${l[1]},${l[1]},0,0,${c},${e + n},${t + o * l[1]}`), u += `L ${e + n},${t + r - o * l[2]}`, l[2] > 0 && (u += `A ${l[2]},${l[2]},0,0,${c},${e + n - s * l[2]},${t + r}`), u += `L ${e + s * l[3]},${t + r}`, l[3] > 0 && (u += `A ${l[3]},${l[3]},0,0,${c},${e},${t + r - o * l[3]}`), u += "Z", u;
|
|
44
|
+
}
|
|
45
|
+
if (a > 0 && typeof i == "number" && i > 0) {
|
|
46
|
+
let l = Math.min(a, i);
|
|
47
|
+
return `M ${e},${t + o * l}A ${l},${l},0,0,${c},${e + s * l},${t}L ${e + n - s * l},${t}A ${l},${l},0,0,${c},${e + n},${t + o * l}L ${e + n},${t + r - o * l}A ${l},${l},0,0,${c},${e + n - s * l},${t + r}L ${e + s * l},${t + r}A ${l},${l},0,0,${c},${e},${t + r - o * l} Z`;
|
|
48
|
+
}
|
|
49
|
+
return `M ${e},${t} h ${n} v ${r} h ${-n} Z`;
|
|
50
|
+
}
|
|
51
|
+
var a = /* @__PURE__ */ t({
|
|
52
|
+
name: "Rectangle",
|
|
53
|
+
props: r,
|
|
54
|
+
setup(t, { attrs: r }) {
|
|
55
|
+
return () => {
|
|
56
|
+
let { x: a, y: o, width: s, height: c, radius: l } = t;
|
|
57
|
+
return a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0 ? null : e("path", n(r, {
|
|
58
|
+
x: a,
|
|
59
|
+
y: o,
|
|
60
|
+
width: s,
|
|
61
|
+
height: c,
|
|
62
|
+
d: i(a, o, s, c, l)
|
|
63
|
+
}), null);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { a as Rectangle };
|