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,70 @@
|
|
|
1
|
+
import { implicitZAxis as e } from "../../state/selectors/axisSelectors.mjs";
|
|
2
|
+
import { useAppDispatch as t } from "../../state/hooks.mjs";
|
|
3
|
+
import { addZAxis as n, removeZAxis as r } from "../../state/cartesianAxisSlice.mjs";
|
|
4
|
+
import { defineComponent as i, watchEffect as a } from "vue";
|
|
5
|
+
//#region src/cartesian/z-axis/ZAxis.tsx
|
|
6
|
+
var o = /* @__PURE__ */ i({
|
|
7
|
+
name: "ZAxis",
|
|
8
|
+
props: {
|
|
9
|
+
zAxisId: {
|
|
10
|
+
type: [String, Number],
|
|
11
|
+
default: 0
|
|
12
|
+
},
|
|
13
|
+
dataKey: {
|
|
14
|
+
type: [
|
|
15
|
+
String,
|
|
16
|
+
Number,
|
|
17
|
+
Function
|
|
18
|
+
],
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
type: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: e.type
|
|
24
|
+
},
|
|
25
|
+
range: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default: () => e.range
|
|
28
|
+
},
|
|
29
|
+
domain: {
|
|
30
|
+
type: [Array, String],
|
|
31
|
+
default: void 0
|
|
32
|
+
},
|
|
33
|
+
scale: {
|
|
34
|
+
type: [String, Function],
|
|
35
|
+
default: e.scale
|
|
36
|
+
},
|
|
37
|
+
name: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: void 0
|
|
40
|
+
},
|
|
41
|
+
unit: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: void 0
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
setup(i) {
|
|
47
|
+
let o = t();
|
|
48
|
+
return a((t) => {
|
|
49
|
+
let a = {
|
|
50
|
+
id: i.zAxisId,
|
|
51
|
+
dataKey: i.dataKey,
|
|
52
|
+
type: i.type,
|
|
53
|
+
range: i.range,
|
|
54
|
+
domain: i.domain,
|
|
55
|
+
scale: i.scale,
|
|
56
|
+
name: i.name,
|
|
57
|
+
unit: i.unit,
|
|
58
|
+
allowDuplicatedCategory: e.allowDuplicatedCategory,
|
|
59
|
+
allowDataOverflow: e.allowDataOverflow,
|
|
60
|
+
reversed: e.reversed,
|
|
61
|
+
includeHidden: e.includeHidden
|
|
62
|
+
};
|
|
63
|
+
o(n(a)), t(() => {
|
|
64
|
+
o(r(a));
|
|
65
|
+
});
|
|
66
|
+
}), () => null;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
export { o as ZAxis };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { arrayTooltipSearcher as e } from "../state/optionsSlice.mjs";
|
|
2
|
+
import { generateCategoricalChart as t } from "./generateCategoricalChart.mjs";
|
|
3
|
+
//#region src/chart/AreaChart.ts
|
|
4
|
+
var n = t({
|
|
5
|
+
chartName: "AreaChart",
|
|
6
|
+
tooltipPayloadSearcher: e
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as AreaChart };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { arrayTooltipSearcher as e } from "../state/optionsSlice.mjs";
|
|
2
|
+
import { generateCategoricalChart as t } from "./generateCategoricalChart.mjs";
|
|
3
|
+
var n = t({
|
|
4
|
+
chartName: "BarChart",
|
|
5
|
+
defaultTooltipEventType: "axis",
|
|
6
|
+
tooltipPayloadSearcher: e,
|
|
7
|
+
validateTooltipEventTypes: ["axis", "item"]
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as BarChart };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { arrayTooltipSearcher as e } from "../state/optionsSlice.mjs";
|
|
2
|
+
import { generateCategoricalChart as t } from "./generateCategoricalChart.mjs";
|
|
3
|
+
var n = t({
|
|
4
|
+
chartName: "ComposedChart",
|
|
5
|
+
defaultTooltipEventType: "axis",
|
|
6
|
+
tooltipPayloadSearcher: e,
|
|
7
|
+
validateTooltipEventTypes: ["axis"]
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as ComposedChart };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { arrayTooltipSearcher as e } from "../state/optionsSlice.mjs";
|
|
2
|
+
import { generateCategoricalChart as t } from "./generateCategoricalChart.mjs";
|
|
3
|
+
var n = t({
|
|
4
|
+
chartName: "LineChart",
|
|
5
|
+
defaultTooltipEventType: "axis",
|
|
6
|
+
tooltipPayloadSearcher: e,
|
|
7
|
+
validateTooltipEventTypes: ["axis", "item"]
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as LineChart };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { arrayTooltipSearcher as e } from "../state/optionsSlice.mjs";
|
|
2
|
+
import { generateCategoricalChart as t } from "./generateCategoricalChart.mjs";
|
|
3
|
+
//#region src/chart/PieChart.ts
|
|
4
|
+
var n = t({
|
|
5
|
+
chartName: "PieChart",
|
|
6
|
+
defaultProps: {
|
|
7
|
+
layout: "centric",
|
|
8
|
+
startAngle: 0,
|
|
9
|
+
endAngle: 360
|
|
10
|
+
},
|
|
11
|
+
defaultTooltipEventType: "item",
|
|
12
|
+
validateTooltipEventTypes: ["item"],
|
|
13
|
+
tooltipPayloadSearcher: e
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as PieChart };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { arrayTooltipSearcher as e } from "../state/optionsSlice.mjs";
|
|
2
|
+
import { generateCategoricalChart as t } from "./generateCategoricalChart.mjs";
|
|
3
|
+
//#region src/chart/RadarChart.ts
|
|
4
|
+
var n = t({
|
|
5
|
+
chartName: "RadarChart",
|
|
6
|
+
defaultProps: {
|
|
7
|
+
layout: "centric",
|
|
8
|
+
startAngle: 90,
|
|
9
|
+
endAngle: -270
|
|
10
|
+
},
|
|
11
|
+
defaultTooltipEventType: "axis",
|
|
12
|
+
validateTooltipEventTypes: ["axis"],
|
|
13
|
+
tooltipPayloadSearcher: e
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as RadarChart };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { arrayTooltipSearcher as e } from "../state/optionsSlice.mjs";
|
|
2
|
+
import { generateCategoricalChart as t } from "./generateCategoricalChart.mjs";
|
|
3
|
+
//#region src/chart/RadialBarChart.ts
|
|
4
|
+
var n = t({
|
|
5
|
+
chartName: "RadialBarChart",
|
|
6
|
+
defaultProps: {
|
|
7
|
+
layout: "radial",
|
|
8
|
+
startAngle: 0,
|
|
9
|
+
endAngle: 360
|
|
10
|
+
},
|
|
11
|
+
defaultTooltipEventType: "axis",
|
|
12
|
+
validateTooltipEventTypes: ["axis", "item"],
|
|
13
|
+
tooltipPayloadSearcher: e
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as RadialBarChart };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { getChartPointer as e } from "../utils/chart.mjs";
|
|
2
|
+
import { mouseLeaveChart as t } from "../state/tooltipSlice.mjs";
|
|
3
|
+
import { useAppDispatch as n } from "../state/hooks.mjs";
|
|
4
|
+
import { mouseClickAction as r, mouseMoveAction as i } from "../state/mouseEventsMiddleware.mjs";
|
|
5
|
+
import { focusAction as a, keyDownAction as o } from "../state/keyboardEventsMiddleware.mjs";
|
|
6
|
+
import { externalEventAction as s } from "../state/externalEventsMiddleware.mjs";
|
|
7
|
+
import { touchEventAction as c } from "../state/touchEventsMiddleware.mjs";
|
|
8
|
+
import { useSynchronisedEventsFromOtherCharts as l } from "../events/useChartSynchronisation.mjs";
|
|
9
|
+
import { useReportScale as u } from "../state/utils/useReportScale.mjs";
|
|
10
|
+
import { providePortalRaw as d } from "./TooltipPortalContext.mjs";
|
|
11
|
+
import { provideLegendPortalRaw as f } from "./LegendPortalContext.mjs";
|
|
12
|
+
import { createVNode as p, defineComponent as m, ref as h } from "vue";
|
|
13
|
+
//#region src/chart/RechartsWrapper.tsx
|
|
14
|
+
var g = /* @__PURE__ */ m({
|
|
15
|
+
name: "RechartsWrapper",
|
|
16
|
+
props: {
|
|
17
|
+
class: { type: String },
|
|
18
|
+
height: {
|
|
19
|
+
type: Number,
|
|
20
|
+
required: !0
|
|
21
|
+
},
|
|
22
|
+
onClick: { type: Function },
|
|
23
|
+
onContextMenu: { type: Function },
|
|
24
|
+
onDoubleClick: { type: Function },
|
|
25
|
+
onMouseDown: { type: Function },
|
|
26
|
+
onMouseEnter: { type: Function },
|
|
27
|
+
onMouseLeave: { type: Function },
|
|
28
|
+
onMouseMove: { type: Function },
|
|
29
|
+
onMouseUp: { type: Function },
|
|
30
|
+
onTouchEnd: { type: Function },
|
|
31
|
+
onTouchMove: { type: Function },
|
|
32
|
+
onTouchStart: { type: Function },
|
|
33
|
+
style: { type: Object },
|
|
34
|
+
width: {
|
|
35
|
+
type: Number,
|
|
36
|
+
required: !0
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
setup(m, { slots: g }) {
|
|
40
|
+
let _ = n();
|
|
41
|
+
l();
|
|
42
|
+
let v = u(), y = h(null), b = h(null);
|
|
43
|
+
d(y), f(b);
|
|
44
|
+
let x = (e) => {
|
|
45
|
+
v.value = e, y.value = e, b.value = e;
|
|
46
|
+
}, S = (t) => {
|
|
47
|
+
let n = e(t);
|
|
48
|
+
n && _(r(n)), _(s({
|
|
49
|
+
handler: m.onClick,
|
|
50
|
+
event: t
|
|
51
|
+
}));
|
|
52
|
+
}, C = (t) => {
|
|
53
|
+
let n = e(t);
|
|
54
|
+
n && _(i(n)), _(s({
|
|
55
|
+
handler: m.onMouseEnter,
|
|
56
|
+
event: t
|
|
57
|
+
}));
|
|
58
|
+
}, w = (e) => {
|
|
59
|
+
_(t()), _(s({
|
|
60
|
+
handler: m.onMouseLeave,
|
|
61
|
+
event: e
|
|
62
|
+
}));
|
|
63
|
+
}, T = (t) => {
|
|
64
|
+
let n = e(t);
|
|
65
|
+
n && _(i(n)), _(s({
|
|
66
|
+
handler: m.onMouseMove,
|
|
67
|
+
event: t
|
|
68
|
+
}));
|
|
69
|
+
}, E = () => {
|
|
70
|
+
_(a());
|
|
71
|
+
}, D = (e) => {
|
|
72
|
+
_(o(e.key));
|
|
73
|
+
}, O = (e) => {
|
|
74
|
+
_(s({
|
|
75
|
+
handler: m.onContextMenu,
|
|
76
|
+
event: e
|
|
77
|
+
}));
|
|
78
|
+
}, k = (e) => {
|
|
79
|
+
_(s({
|
|
80
|
+
handler: m.onDoubleClick,
|
|
81
|
+
event: e
|
|
82
|
+
}));
|
|
83
|
+
}, A = (e) => {
|
|
84
|
+
_(s({
|
|
85
|
+
handler: m.onMouseDown,
|
|
86
|
+
event: e
|
|
87
|
+
}));
|
|
88
|
+
}, j = (e) => {
|
|
89
|
+
_(s({
|
|
90
|
+
handler: m.onMouseUp,
|
|
91
|
+
event: e
|
|
92
|
+
}));
|
|
93
|
+
}, M = (e) => {
|
|
94
|
+
_(s({
|
|
95
|
+
handler: m.onTouchStart,
|
|
96
|
+
event: e
|
|
97
|
+
}));
|
|
98
|
+
}, N = (e) => {
|
|
99
|
+
_(c(e)), _(s({
|
|
100
|
+
handler: m.onTouchMove,
|
|
101
|
+
event: e
|
|
102
|
+
}));
|
|
103
|
+
}, P = (e) => {
|
|
104
|
+
_(s({
|
|
105
|
+
handler: m.onTouchEnd,
|
|
106
|
+
event: e
|
|
107
|
+
}));
|
|
108
|
+
};
|
|
109
|
+
return () => p("div", {
|
|
110
|
+
class: ["v-charts-wrapper", m.class],
|
|
111
|
+
style: {
|
|
112
|
+
position: "relative",
|
|
113
|
+
cursor: "default",
|
|
114
|
+
width: `${m.width}px`,
|
|
115
|
+
height: `${m.height}px`,
|
|
116
|
+
...m.style
|
|
117
|
+
},
|
|
118
|
+
role: "application",
|
|
119
|
+
onClick: S,
|
|
120
|
+
onContextmenu: O,
|
|
121
|
+
onDblclick: k,
|
|
122
|
+
onFocus: E,
|
|
123
|
+
onKeydown: D,
|
|
124
|
+
onMousedown: A,
|
|
125
|
+
onMouseenter: C,
|
|
126
|
+
onMouseleave: w,
|
|
127
|
+
onMousemove: T,
|
|
128
|
+
onMouseup: j,
|
|
129
|
+
onTouchend: P,
|
|
130
|
+
onTouchmove: N,
|
|
131
|
+
onTouchstart: M,
|
|
132
|
+
ref: x
|
|
133
|
+
}, [g.default?.()]);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
//#endregion
|
|
137
|
+
export { g as RechartsWrapper };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { arrayTooltipSearcher as e } from "../state/optionsSlice.mjs";
|
|
2
|
+
import { generateCategoricalChart as t } from "./generateCategoricalChart.mjs";
|
|
3
|
+
var n = t({
|
|
4
|
+
chartName: "ScatterChart",
|
|
5
|
+
defaultTooltipEventType: "item",
|
|
6
|
+
tooltipPayloadSearcher: e,
|
|
7
|
+
validateTooltipEventTypes: ["axis", "item"]
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as ScatterChart };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { provideLabelLayerRef as e } from "../context/labelLayerContext.mjs";
|
|
2
|
+
import { provideGraphicalLayerRef as t } from "../context/graphicalLayerContext.mjs";
|
|
3
|
+
import { provideCursorLayerRef as n } from "../context/cursorLayerContext.mjs";
|
|
4
|
+
import { computed as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeProps as s, openBlock as c, ref as l, renderSlot as u, toDisplayString as d } from "vue";
|
|
5
|
+
//#region src/chart/Surface.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var f = [
|
|
7
|
+
"width",
|
|
8
|
+
"height",
|
|
9
|
+
"viewBox"
|
|
10
|
+
], p = /* @__PURE__ */ o({
|
|
11
|
+
name: "ChartsSurface",
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
__name: "Surface",
|
|
14
|
+
props: {
|
|
15
|
+
width: {},
|
|
16
|
+
height: {},
|
|
17
|
+
viewBox: {},
|
|
18
|
+
class: {},
|
|
19
|
+
style: {},
|
|
20
|
+
title: {},
|
|
21
|
+
desc: {}
|
|
22
|
+
},
|
|
23
|
+
setup(o) {
|
|
24
|
+
let p = o, m = r(() => {
|
|
25
|
+
let e = p.viewBox || {
|
|
26
|
+
width: p.width,
|
|
27
|
+
height: p.height,
|
|
28
|
+
x: 0,
|
|
29
|
+
y: 0
|
|
30
|
+
};
|
|
31
|
+
return `${e.x} ${e.y} ${e.width} ${e.height}`;
|
|
32
|
+
}), h = l(null);
|
|
33
|
+
n(h);
|
|
34
|
+
let g = l(null);
|
|
35
|
+
t(g);
|
|
36
|
+
let _ = l(null);
|
|
37
|
+
return e(_), (e, t) => (c(), i("svg", s(e.$attrs, {
|
|
38
|
+
class: ["vcharts-surface", [p.class]],
|
|
39
|
+
width: e.width,
|
|
40
|
+
height: e.height,
|
|
41
|
+
style: e.style,
|
|
42
|
+
viewBox: m.value
|
|
43
|
+
}), [
|
|
44
|
+
a("title", null, d(e.title), 1),
|
|
45
|
+
a("desc", null, d(e.desc), 1),
|
|
46
|
+
u(e.$slots, "default"),
|
|
47
|
+
a("g", {
|
|
48
|
+
ref_key: "cursorLayerRef",
|
|
49
|
+
ref: h,
|
|
50
|
+
class: "v-charts-cursor-layer"
|
|
51
|
+
}, null, 512),
|
|
52
|
+
a("g", {
|
|
53
|
+
ref_key: "graphicalLayerRef",
|
|
54
|
+
ref: g,
|
|
55
|
+
class: "v-charts-graphical-layer"
|
|
56
|
+
}, null, 512),
|
|
57
|
+
a("g", {
|
|
58
|
+
ref_key: "labelLayerRef",
|
|
59
|
+
ref: _,
|
|
60
|
+
class: "v-charts-label-layer"
|
|
61
|
+
}, null, 512)
|
|
62
|
+
], 16, f));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
export { p as default };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { validateWidthHeight as e } from "../utils/validate.mjs";
|
|
2
|
+
import { provideClipPathId as t } from "./provideClipPathId.mjs";
|
|
3
|
+
import { createRechartsStore as n } from "../state/store.mjs";
|
|
4
|
+
import r from "./Surface.mjs";
|
|
5
|
+
import { ChartDataContextProvider as i } from "../context/ChartDataContextProvider.mjs";
|
|
6
|
+
import a from "../container/ClipPath.mjs";
|
|
7
|
+
import { RechartsWrapper as o } from "./RechartsWrapper.mjs";
|
|
8
|
+
import { FULL_WIDTH_AND_HEIGHT as s } from "./const.mjs";
|
|
9
|
+
import { ReportMainChartProps as c } from "../state/ReportMainChartProps.mjs";
|
|
10
|
+
import l from "../state/ReportChartProps.mjs";
|
|
11
|
+
import { applyDefaultProps as u } from "../utils/props.mjs";
|
|
12
|
+
import { ReportPolarOptions as d } from "../state/ReportPolarOptions.mjs";
|
|
13
|
+
import { Fragment as f, createVNode as p, defineComponent as m, mergeProps as h } from "vue";
|
|
14
|
+
import { provideStore as g } from "@reduxjs/vue-redux";
|
|
15
|
+
//#region src/chart/generateCategoricalChart.tsx
|
|
16
|
+
var _ = "horizontal", v = {
|
|
17
|
+
top: 5,
|
|
18
|
+
right: 5,
|
|
19
|
+
bottom: 5,
|
|
20
|
+
left: 5
|
|
21
|
+
}, y = {
|
|
22
|
+
accessibilityLayer: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !0
|
|
25
|
+
},
|
|
26
|
+
barCategoryGap: {
|
|
27
|
+
type: [Number, String],
|
|
28
|
+
default: "10%"
|
|
29
|
+
},
|
|
30
|
+
barGap: {
|
|
31
|
+
type: [Number, String],
|
|
32
|
+
default: 4
|
|
33
|
+
},
|
|
34
|
+
barSize: { type: [Number, String] },
|
|
35
|
+
class: { type: String },
|
|
36
|
+
compact: { type: Boolean },
|
|
37
|
+
cx: { type: [Number, String] },
|
|
38
|
+
cy: { type: [Number, String] },
|
|
39
|
+
data: {
|
|
40
|
+
type: Array,
|
|
41
|
+
default: () => []
|
|
42
|
+
},
|
|
43
|
+
dataKey: { type: [
|
|
44
|
+
String,
|
|
45
|
+
Number,
|
|
46
|
+
Function
|
|
47
|
+
] },
|
|
48
|
+
desc: { type: String },
|
|
49
|
+
endAngle: { type: Number },
|
|
50
|
+
height: { type: Number },
|
|
51
|
+
id: { type: String },
|
|
52
|
+
innerRadius: { type: [Number, String] },
|
|
53
|
+
layout: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: _
|
|
56
|
+
},
|
|
57
|
+
margin: {
|
|
58
|
+
type: Object,
|
|
59
|
+
default: () => v
|
|
60
|
+
},
|
|
61
|
+
maxBarSize: { type: Number },
|
|
62
|
+
outerRadius: { type: [Number, String] },
|
|
63
|
+
reverseStackOrder: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !1
|
|
66
|
+
},
|
|
67
|
+
role: { type: String },
|
|
68
|
+
stackOffset: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "none"
|
|
71
|
+
},
|
|
72
|
+
startAngle: { type: Number },
|
|
73
|
+
style: { type: Object },
|
|
74
|
+
syncId: { type: [Number, String] },
|
|
75
|
+
syncMethod: {
|
|
76
|
+
type: [String, Function],
|
|
77
|
+
default: "index"
|
|
78
|
+
},
|
|
79
|
+
tabIndex: { type: Number },
|
|
80
|
+
throttleDelay: { type: Number },
|
|
81
|
+
title: { type: String },
|
|
82
|
+
width: { type: Number },
|
|
83
|
+
to: { type: [String, Object] }
|
|
84
|
+
};
|
|
85
|
+
function b({ chartName: b, defaultProps: x = {}, defaultTooltipEventType: S = "axis", validateTooltipEventTypes: C = ["axis"], tooltipPayloadSearcher: w }) {
|
|
86
|
+
return /* @__PURE__ */ m({
|
|
87
|
+
name: b,
|
|
88
|
+
props: u(y, x),
|
|
89
|
+
setup(u, { attrs: m, slots: y }) {
|
|
90
|
+
g({ store: n({ options: {
|
|
91
|
+
chartName: b,
|
|
92
|
+
defaultTooltipEventType: S,
|
|
93
|
+
validateTooltipEventTypes: C,
|
|
94
|
+
tooltipPayloadSearcher: w,
|
|
95
|
+
eventEmitter: void 0
|
|
96
|
+
} }, u.id ?? b) });
|
|
97
|
+
let T = t(u);
|
|
98
|
+
return () => {
|
|
99
|
+
let { compact: t, width: n, height: g, title: b, desc: S, ...C } = u, w = { ...m };
|
|
100
|
+
if (!e({
|
|
101
|
+
width: n,
|
|
102
|
+
height: g
|
|
103
|
+
})) return null;
|
|
104
|
+
let E = u.layout ?? x.layout ?? _, D = E === "centric" || E === "radial";
|
|
105
|
+
if (t) return p(f, null, [
|
|
106
|
+
p(i, { chartData: u.data }, null),
|
|
107
|
+
p(c, {
|
|
108
|
+
width: n,
|
|
109
|
+
height: g,
|
|
110
|
+
layout: E,
|
|
111
|
+
margin: u.margin ?? v
|
|
112
|
+
}, null),
|
|
113
|
+
D && p(d, {
|
|
114
|
+
cx: u.cx ?? "50%",
|
|
115
|
+
cy: u.cy ?? "50%",
|
|
116
|
+
startAngle: u.startAngle ?? x.startAngle ?? 90,
|
|
117
|
+
endAngle: u.endAngle ?? x.endAngle ?? -270,
|
|
118
|
+
innerRadius: u.innerRadius ?? 0,
|
|
119
|
+
outerRadius: u.outerRadius ?? "80%"
|
|
120
|
+
}, null),
|
|
121
|
+
p(r, h(m, C, {
|
|
122
|
+
width: n,
|
|
123
|
+
height: g,
|
|
124
|
+
title: b,
|
|
125
|
+
desc: S
|
|
126
|
+
}), { default: () => [p(a, { clipPathId: T }, null), y.default?.()] })
|
|
127
|
+
]);
|
|
128
|
+
u.accessibilityLayer && (w.tabIndex = u.tabIndex ?? 0, w.role = u.role ?? "application");
|
|
129
|
+
let O = {}, k = {};
|
|
130
|
+
for (let [e, t] of Object.entries(w)) e.startsWith("on") && typeof t == "function" ? O[e] = t : k[e] = t;
|
|
131
|
+
return p(f, null, [
|
|
132
|
+
p(i, { chartData: u.data }, null),
|
|
133
|
+
p(c, {
|
|
134
|
+
width: n,
|
|
135
|
+
height: g,
|
|
136
|
+
layout: E,
|
|
137
|
+
margin: u.margin ?? v
|
|
138
|
+
}, null),
|
|
139
|
+
D && p(d, {
|
|
140
|
+
cx: u.cx ?? "50%",
|
|
141
|
+
cy: u.cy ?? "50%",
|
|
142
|
+
startAngle: u.startAngle ?? x.startAngle ?? 90,
|
|
143
|
+
endAngle: u.endAngle ?? x.endAngle ?? -270,
|
|
144
|
+
innerRadius: u.innerRadius ?? 0,
|
|
145
|
+
outerRadius: u.outerRadius ?? "80%"
|
|
146
|
+
}, null),
|
|
147
|
+
p(o, h({
|
|
148
|
+
style: u.style,
|
|
149
|
+
class: u.class,
|
|
150
|
+
width: n,
|
|
151
|
+
height: g
|
|
152
|
+
}, O), { default: () => [p(r, h(k, {
|
|
153
|
+
width: n,
|
|
154
|
+
height: g,
|
|
155
|
+
title: b,
|
|
156
|
+
desc: S,
|
|
157
|
+
style: s
|
|
158
|
+
}), { default: () => [p(a, { clipPathId: T }, null), y.default?.()] }), y.tooltip?.()] }),
|
|
159
|
+
p(l, u, null)
|
|
160
|
+
]);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
export { b as generateCategoricalChart };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { uniqueId as e } from "../utils/data-utils.mjs";
|
|
2
|
+
import { createContext as t } from "../utils/createContext.mjs";
|
|
3
|
+
//#region src/chart/provideClipPathId.ts
|
|
4
|
+
var [n, r] = t("clipPathId");
|
|
5
|
+
function i(t) {
|
|
6
|
+
let n = `${t.id ?? e("v-charts")}-clip`;
|
|
7
|
+
return r(n), n;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { i as provideClipPathId, n as useClipPathId };
|