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,52 @@
|
|
|
1
|
+
//#region src/utils/polar.ts
|
|
2
|
+
var e = Math.PI / 180, t = (e) => e * 180 / Math.PI;
|
|
3
|
+
function n(e, t) {
|
|
4
|
+
let { x: n, y: r } = e, { x: i, y: a } = t;
|
|
5
|
+
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
|
|
6
|
+
}
|
|
7
|
+
function r({ startAngle: e, endAngle: t }) {
|
|
8
|
+
let n = Math.floor(e / 360), r = Math.floor(t / 360), i = Math.min(n, r);
|
|
9
|
+
return {
|
|
10
|
+
startAngle: e - i * 360,
|
|
11
|
+
endAngle: t - i * 360
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function i({ x: e, y: r }, { cx: i, cy: a }) {
|
|
15
|
+
let o = n({
|
|
16
|
+
x: e,
|
|
17
|
+
y: r
|
|
18
|
+
}, {
|
|
19
|
+
x: i,
|
|
20
|
+
y: a
|
|
21
|
+
});
|
|
22
|
+
if (o <= 0) return {
|
|
23
|
+
radius: o,
|
|
24
|
+
angle: 0
|
|
25
|
+
};
|
|
26
|
+
let s = (e - i) / o, c = Math.acos(s);
|
|
27
|
+
return r > a && (c = 2 * Math.PI - c), {
|
|
28
|
+
radius: o,
|
|
29
|
+
angle: t(c),
|
|
30
|
+
angleInRadian: c
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function a(e, { startAngle: t, endAngle: n }) {
|
|
34
|
+
let r = Math.floor(t / 360), i = Math.floor(n / 360);
|
|
35
|
+
return e + Math.min(r, i) * 360;
|
|
36
|
+
}
|
|
37
|
+
function o(t, n, r, i) {
|
|
38
|
+
return {
|
|
39
|
+
x: t + Math.cos(-e * i) * r,
|
|
40
|
+
y: n + Math.sin(-e * i) * r
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function s(e, t, n = {
|
|
44
|
+
top: 0,
|
|
45
|
+
right: 0,
|
|
46
|
+
bottom: 0,
|
|
47
|
+
left: 0
|
|
48
|
+
}) {
|
|
49
|
+
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { e as RADIAN, r as formatAngleOfSector, i as getAngleOfPoint, s as getMaxRadius, o as polarToCartesian, a as reverseFormatAngleOfSector };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/utils/props.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = { ...e };
|
|
4
|
+
for (let [e, r] of Object.entries(t)) if (e in n) {
|
|
5
|
+
let t = n[e];
|
|
6
|
+
typeof t == "object" && t && "type" in t && (n[e] = {
|
|
7
|
+
...t,
|
|
8
|
+
default: r
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as applyDefaultProps };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { compose as e, map as t, memoize as n, range as r, reverse as i } from "./utils/utils.mjs";
|
|
2
|
+
import { getDigitCount as a, rangeStep as o } from "./utils/arithmetic.mjs";
|
|
3
|
+
import s from "decimal.js-light";
|
|
4
|
+
//#region src/utils/scale/getNiceTickValues.ts
|
|
5
|
+
function c([e, t]) {
|
|
6
|
+
let [n, r] = [e, t];
|
|
7
|
+
return e > t && ([n, r] = [t, e]), [n, r];
|
|
8
|
+
}
|
|
9
|
+
function l(e, t, n) {
|
|
10
|
+
if (e.lte(0)) return new s(0);
|
|
11
|
+
let r = a(e.toNumber()), i = new s(10).pow(r), o = e.div(i), c = r === 1 ? .1 : .05, l = new s(Math.ceil(o.div(c).toNumber())).add(n).mul(c).mul(i);
|
|
12
|
+
return t ? new s(l.toNumber()) : new s(Math.ceil(l.toNumber()));
|
|
13
|
+
}
|
|
14
|
+
function u(n, i, o) {
|
|
15
|
+
let c = new s(1), l = new s(n);
|
|
16
|
+
if (!l.isint() && o) {
|
|
17
|
+
let e = Math.abs(n);
|
|
18
|
+
e < 1 ? (c = new s(10).pow(a(n) - 1), l = new s(Math.floor(l.div(c).toNumber())).mul(c)) : e > 1 && (l = new s(Math.floor(n)));
|
|
19
|
+
} else n === 0 ? l = new s(Math.floor((i - 1) / 2)) : o || (l = new s(Math.floor(n)));
|
|
20
|
+
let u = Math.floor((i - 1) / 2);
|
|
21
|
+
return e(t((e) => l.add(new s(e - u).mul(c)).toNumber()), r)(0, i);
|
|
22
|
+
}
|
|
23
|
+
function d(e, t, n, r, i = 0) {
|
|
24
|
+
if (!Number.isFinite((t - e) / (n - 1))) return {
|
|
25
|
+
step: new s(0),
|
|
26
|
+
tickMin: new s(0),
|
|
27
|
+
tickMax: new s(0)
|
|
28
|
+
};
|
|
29
|
+
let a = l(new s(t).sub(e).div(n - 1), r, i), o;
|
|
30
|
+
e <= 0 && t >= 0 ? o = new s(0) : (o = new s(e).add(t).div(2), o = o.sub(new s(o).mod(a)));
|
|
31
|
+
let c = Math.ceil(o.sub(e).div(a).toNumber()), u = Math.ceil(new s(t).sub(o).div(a).toNumber()), f = c + u + 1;
|
|
32
|
+
return f > n ? d(e, t, n, r, i + 1) : (f < n && (u = t > 0 ? u + (n - f) : u, c = t > 0 ? c : c + (n - f)), {
|
|
33
|
+
step: a,
|
|
34
|
+
tickMin: o.sub(new s(c).mul(a)),
|
|
35
|
+
tickMax: o.add(new s(u).mul(a))
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function f([e, t], n = 6, a = !0) {
|
|
39
|
+
if (!Number.isFinite(e) || !Number.isFinite(t)) return [];
|
|
40
|
+
let l = Math.max(n, 2), [f, p] = c([e, t]);
|
|
41
|
+
if (f === -Infinity || p === Infinity) {
|
|
42
|
+
let a = p === Infinity ? [f, ...r(0, n - 1).map(() => Infinity)] : [...r(0, n - 1).map(() => -Infinity), p];
|
|
43
|
+
return e > t ? i(a) : a;
|
|
44
|
+
}
|
|
45
|
+
if (f === p) return u(f, n, a);
|
|
46
|
+
let { step: m, tickMin: h, tickMax: g } = d(f, p, l, a, 0), _ = o(h, g.add(new s(.1).mul(m)), m);
|
|
47
|
+
return e > t ? i(_) : _;
|
|
48
|
+
}
|
|
49
|
+
function p([e, t], n, r = !0) {
|
|
50
|
+
if (!Number.isFinite(e) || !Number.isFinite(t)) return [];
|
|
51
|
+
let [a, u] = c([e, t]);
|
|
52
|
+
if (a === -Infinity || u === Infinity) return [e, t];
|
|
53
|
+
if (a === u) return [a];
|
|
54
|
+
let d = Math.max(n, 2), f = l(new s(u).sub(a).div(d - 1), r, 0), p = [...o(new s(a), new s(u).sub(new s(.99).mul(f)), f), u];
|
|
55
|
+
return e > t ? i(p) : p;
|
|
56
|
+
}
|
|
57
|
+
var m = n(f), h = n(p);
|
|
58
|
+
//#endregion
|
|
59
|
+
export { m as getNiceTickValues, h as getTickValuesFixedDomain };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { curry as e } from "./utils.mjs";
|
|
2
|
+
import t from "decimal.js-light";
|
|
3
|
+
//#region src/utils/scale/utils/arithmetic.ts
|
|
4
|
+
function n(e) {
|
|
5
|
+
let n;
|
|
6
|
+
return n = e === 0 ? 1 : Math.floor(new t(e).abs().log(10).toNumber()) + 1, n;
|
|
7
|
+
}
|
|
8
|
+
function r(e, n, r) {
|
|
9
|
+
let i = new t(e), a = 0, o = [];
|
|
10
|
+
for (; i.lt(n) && a < 1e5;) o.push(i.toNumber()), i = i.add(r), a++;
|
|
11
|
+
return o;
|
|
12
|
+
}
|
|
13
|
+
e((e, t, n) => {
|
|
14
|
+
let r = +e;
|
|
15
|
+
return r + n * (+t - r);
|
|
16
|
+
}), e((e, t, n) => {
|
|
17
|
+
let r = t - +e;
|
|
18
|
+
return r ||= Infinity, (n - e) / r;
|
|
19
|
+
}), e((e, t, n) => {
|
|
20
|
+
let r = t - +e;
|
|
21
|
+
return r ||= Infinity, Math.max(0, Math.min(1, (n - e) / r));
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { n as getDigitCount, r as rangeStep };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/utils/scale/utils/utils.ts
|
|
2
|
+
var e = (e) => e, t = { "@@functional/placeholder": !0 }, n = (e) => e === t;
|
|
3
|
+
function r(e) {
|
|
4
|
+
return function t(...r) {
|
|
5
|
+
return r.length === 0 || r.length === 1 && n(r[0]) ? t : e(...r);
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
function i(e, a) {
|
|
9
|
+
return e === 1 ? a : r((...o) => {
|
|
10
|
+
let s = o.filter((e) => e !== t).length;
|
|
11
|
+
return s >= e ? a(...o) : i(e - s, r((...e) => a(...o.map((t) => n(t) ? e.shift() : t), ...e)));
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
var a = (e) => i(e.length, e);
|
|
15
|
+
function o(e, t) {
|
|
16
|
+
let n = [];
|
|
17
|
+
for (let r = e; r < t; ++r) n[r - e] = r;
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
var s = a((e, t) => Array.isArray(t) ? t.map(e) : Object.keys(t).map((e) => t[e]).map(e));
|
|
21
|
+
function c(...t) {
|
|
22
|
+
if (!t.length) return e;
|
|
23
|
+
let n = t.reverse(), r = n[0], i = n.slice(1);
|
|
24
|
+
return (...e) => i.reduce((e, t) => t(e), r(...e));
|
|
25
|
+
}
|
|
26
|
+
function l(e) {
|
|
27
|
+
return Array.isArray(e) ? e.reverse() : e.split("").reverse().join("");
|
|
28
|
+
}
|
|
29
|
+
function u(e) {
|
|
30
|
+
let t = null, n = null;
|
|
31
|
+
return ((...r) => t && r.every((e, n) => e === t?.[n]) ? n : (t = r, n = e(...r), n));
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { c as compose, a as curry, s as map, u as memoize, o as range, l as reverse };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isNumber as e } from "./validate.mjs";
|
|
2
|
+
//#region src/utils/style.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
if (t !== void 0) return e(t) ? `${t}px` : t;
|
|
5
|
+
}
|
|
6
|
+
function n(e = {}) {
|
|
7
|
+
let { height: n, width: r, minHeight: i, maxHeight: a, minWidth: o, maxWidth: s, ...c } = e;
|
|
8
|
+
return {
|
|
9
|
+
height: t(n),
|
|
10
|
+
width: t(r),
|
|
11
|
+
minHeight: t(i),
|
|
12
|
+
maxHeight: t(a),
|
|
13
|
+
minWidth: t(o),
|
|
14
|
+
maxWidth: t(s),
|
|
15
|
+
...c
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { n as normalizeStyle };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getAngledRectangleWidth as e } from "./cartesian.mjs";
|
|
2
|
+
//#region src/utils/tick.ts
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
return n(e, t + 1);
|
|
5
|
+
}
|
|
6
|
+
function n(e, t, n) {
|
|
7
|
+
if (t < 1) return [];
|
|
8
|
+
if (t === 1 && n === void 0) return e;
|
|
9
|
+
let r = [];
|
|
10
|
+
for (let i = 0; i < e.length; i += t) if (n === void 0 || n(e[i]) === !0) r.push(e[i]);
|
|
11
|
+
else return;
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
function r(t, n, r) {
|
|
15
|
+
return e({
|
|
16
|
+
width: t.width + n.width,
|
|
17
|
+
height: t.height + n.height
|
|
18
|
+
}, r);
|
|
19
|
+
}
|
|
20
|
+
function i(e, t, n) {
|
|
21
|
+
let r = n === "width", { x: i, y: a, width: o, height: s } = e;
|
|
22
|
+
return t === 1 ? {
|
|
23
|
+
start: r ? i : a,
|
|
24
|
+
end: r ? i + o : a + s
|
|
25
|
+
} : {
|
|
26
|
+
start: r ? i + o : a + s,
|
|
27
|
+
end: r ? i : a
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { r as getAngledTickWidth, n as getEveryNthWithCondition, t as getNumberIntervalTicks, i as getTickBoundaries };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { isNumber as e } from "../validate.mjs";
|
|
2
|
+
//#region src/utils/tooltip/translate.ts
|
|
3
|
+
var t = "v-charts-tooltip-wrapper", n = { visibility: "hidden" };
|
|
4
|
+
function r({ coordinate: n, translateX: r, translateY: i }) {
|
|
5
|
+
return [t, {
|
|
6
|
+
[`${t}-right`]: e(r) && n && e(n.x) && r >= n.x,
|
|
7
|
+
[`${t}-left`]: e(r) && n && e(n.x) && r < n.x,
|
|
8
|
+
[`${t}-bottom`]: e(i) && n && e(n.y) && i >= n.y,
|
|
9
|
+
[`${t}-top`]: e(i) && n && e(n.y) && i < n.y
|
|
10
|
+
}];
|
|
11
|
+
}
|
|
12
|
+
function i({ allowEscapeViewBox: t, coordinate: n, key: r, offsetTopLeft: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l }) {
|
|
13
|
+
if (a && e(a[r])) return a[r];
|
|
14
|
+
let u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
|
|
15
|
+
if (t[r]) return o[r] ? u : d;
|
|
16
|
+
let f = c[r];
|
|
17
|
+
return f == null ? 0 : o[r] ? u < f ? Math.max(d, f) : Math.max(u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
|
|
18
|
+
}
|
|
19
|
+
function a({ translateX: e, translateY: t, useTranslate3d: n }) {
|
|
20
|
+
return { transform: n ? `translate3d(${e}px, ${t}px, 0)` : `translate(${e}px, ${t}px)` };
|
|
21
|
+
}
|
|
22
|
+
function o({ allowEscapeViewBox: e, coordinate: t, offsetTopLeft: o, position: s, reverseDirection: c, tooltipBox: l, useTranslate3d: u, viewBox: d }) {
|
|
23
|
+
let f, p, m;
|
|
24
|
+
return l.height > 0 && l.width > 0 && t ? (p = i({
|
|
25
|
+
allowEscapeViewBox: e,
|
|
26
|
+
coordinate: t,
|
|
27
|
+
key: "x",
|
|
28
|
+
offsetTopLeft: o,
|
|
29
|
+
position: s,
|
|
30
|
+
reverseDirection: c,
|
|
31
|
+
tooltipDimension: l.width,
|
|
32
|
+
viewBox: d,
|
|
33
|
+
viewBoxDimension: d.width
|
|
34
|
+
}), m = i({
|
|
35
|
+
allowEscapeViewBox: e,
|
|
36
|
+
coordinate: t,
|
|
37
|
+
key: "y",
|
|
38
|
+
offsetTopLeft: o,
|
|
39
|
+
position: s,
|
|
40
|
+
reverseDirection: c,
|
|
41
|
+
tooltipDimension: l.height,
|
|
42
|
+
viewBox: d,
|
|
43
|
+
viewBoxDimension: d.height
|
|
44
|
+
}), f = {}) : f = n, {
|
|
45
|
+
cssProperties: f,
|
|
46
|
+
cssClasses: r({
|
|
47
|
+
translateX: p,
|
|
48
|
+
translateY: m,
|
|
49
|
+
coordinate: t
|
|
50
|
+
}),
|
|
51
|
+
transform: a({
|
|
52
|
+
translateX: p ?? 0,
|
|
53
|
+
translateY: m ?? 0,
|
|
54
|
+
useTranslate3d: u
|
|
55
|
+
})
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { o as getTooltipTranslate };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region src/utils/validate.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return typeof e == "number" && e != +e;
|
|
4
|
+
}
|
|
5
|
+
function t(t) {
|
|
6
|
+
return (typeof t == "number" || t instanceof Number) && !e(t);
|
|
7
|
+
}
|
|
8
|
+
function n({ width: e, height: n }) {
|
|
9
|
+
return !(!t(e) || e <= 0 || !t(n) || n <= 0);
|
|
10
|
+
}
|
|
11
|
+
function r(e) {
|
|
12
|
+
return Number.isFinite(e);
|
|
13
|
+
}
|
|
14
|
+
function i(e) {
|
|
15
|
+
return typeof e == "string" && e.indexOf("%") === e.length - 1;
|
|
16
|
+
}
|
|
17
|
+
function a(e, t) {
|
|
18
|
+
return e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis";
|
|
19
|
+
}
|
|
20
|
+
function o(e, t, n, r, i) {
|
|
21
|
+
if (e * t < e * r || e * t > e * i) return !1;
|
|
22
|
+
let a = n();
|
|
23
|
+
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
|
|
24
|
+
}
|
|
25
|
+
var s = typeof window > "u";
|
|
26
|
+
function c(e) {
|
|
27
|
+
return e == null;
|
|
28
|
+
}
|
|
29
|
+
var l = (e) => t(e) || typeof e == "string";
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as isCategoricalAxis, e as isNan, c as isNullish, l as isNumOrStr, t as isNumber, i as isPercent, s as isSsr, o as isVisible, r as isWellBehavedNumber, n as validateWidthHeight };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AreaProps } from '../cartesian/area/type';
|
|
2
|
+
import { CartesianGraphicalItemType, ErrorBarsSettings } from '../state/graphicalItemsSlice';
|
|
3
|
+
import { ShallowRef } from 'vue';
|
|
4
|
+
export declare function useSetupGraphicalItem(props: AreaProps | any, type: CartesianGraphicalItemType, options?: {
|
|
5
|
+
skipTooltip?: boolean;
|
|
6
|
+
errorBars?: ShallowRef<ReadonlyArray<ErrorBarsSettings>>;
|
|
7
|
+
}): void;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PiePropsWithSVG } from './type';
|
|
2
|
+
export declare const Pie: import('vue').DefineComponent<PiePropsWithSVG, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PiePropsWithSVG> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DataKey, VuePropsToType, WithSVGProps } from '../../types';
|
|
3
|
+
import { LegendType } from '../../types/legend';
|
|
4
|
+
import { TooltipType } from '../../types/tooltip';
|
|
5
|
+
export declare const PieVueProps: {
|
|
6
|
+
data: {
|
|
7
|
+
type: PropType<Array<Record<string, unknown>>>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
dataKey: {
|
|
11
|
+
type: PropType<DataKey<any>>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
nameKey: {
|
|
15
|
+
type: PropType<DataKey<any>>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
cx: {
|
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
cy: {
|
|
23
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
innerRadius: {
|
|
27
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
outerRadius: {
|
|
31
|
+
type: PropType<number | string | ((element: any) => number)>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
startAngle: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
endAngle: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
paddingAngle: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
minAngle: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
fill: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
stroke: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
legendType: {
|
|
59
|
+
type: PropType<LegendType>;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
tooltipType: {
|
|
63
|
+
type: PropType<TooltipType>;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
hide: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
activeIndex: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
isAnimationActive: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
label: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
className: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: any;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export type PieProps = VuePropsToType<typeof PieVueProps>;
|
|
88
|
+
export type PiePropsWithSVG = WithSVGProps<typeof PieVueProps>;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { PropType, SlotsType } from 'vue';
|
|
2
|
+
import { DataKey } from '../../types';
|
|
3
|
+
import { AxisDomain } from '../../types/axis';
|
|
4
|
+
import { AxisTick } from '../../types/tick';
|
|
5
|
+
export declare const PolarAngleAxis: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
angleAxisId: {
|
|
7
|
+
type: PropType<string | number>;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
dataKey: {
|
|
11
|
+
type: PropType<DataKey<any>>;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
tick: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
tickLine: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
tickSize: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
axisLine: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
axisLineType: {
|
|
31
|
+
type: PropType<"polygon" | "circle">;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
orientation: {
|
|
35
|
+
type: PropType<"inner" | "outer">;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
tickFormatter: {
|
|
39
|
+
type: PropType<(value: any, index: number) => string>;
|
|
40
|
+
default: any;
|
|
41
|
+
};
|
|
42
|
+
ticks: {
|
|
43
|
+
type: PropType<ReadonlyArray<AxisTick>>;
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
stroke: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: any;
|
|
49
|
+
};
|
|
50
|
+
type: {
|
|
51
|
+
type: PropType<"category" | "number">;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
domain: {
|
|
55
|
+
type: PropType<AxisDomain>;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
tickCount: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: any;
|
|
61
|
+
};
|
|
62
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
63
|
+
angleAxisId: {
|
|
64
|
+
type: PropType<string | number>;
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
dataKey: {
|
|
68
|
+
type: PropType<DataKey<any>>;
|
|
69
|
+
default: any;
|
|
70
|
+
};
|
|
71
|
+
tick: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
tickLine: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
tickSize: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: number;
|
|
82
|
+
};
|
|
83
|
+
axisLine: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
axisLineType: {
|
|
88
|
+
type: PropType<"polygon" | "circle">;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
orientation: {
|
|
92
|
+
type: PropType<"inner" | "outer">;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
tickFormatter: {
|
|
96
|
+
type: PropType<(value: any, index: number) => string>;
|
|
97
|
+
default: any;
|
|
98
|
+
};
|
|
99
|
+
ticks: {
|
|
100
|
+
type: PropType<ReadonlyArray<AxisTick>>;
|
|
101
|
+
default: any;
|
|
102
|
+
};
|
|
103
|
+
stroke: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: any;
|
|
106
|
+
};
|
|
107
|
+
type: {
|
|
108
|
+
type: PropType<"category" | "number">;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
domain: {
|
|
112
|
+
type: PropType<AxisDomain>;
|
|
113
|
+
default: any;
|
|
114
|
+
};
|
|
115
|
+
tickCount: {
|
|
116
|
+
type: NumberConstructor;
|
|
117
|
+
default: any;
|
|
118
|
+
};
|
|
119
|
+
}>> & Readonly<{}>, {
|
|
120
|
+
tick: boolean;
|
|
121
|
+
tickFormatter: (value: any, index: number) => string;
|
|
122
|
+
type: "number" | "category";
|
|
123
|
+
dataKey: DataKey<any>;
|
|
124
|
+
orientation: "outer" | "inner";
|
|
125
|
+
stroke: string;
|
|
126
|
+
tickCount: number;
|
|
127
|
+
ticks: readonly AxisTick[];
|
|
128
|
+
angleAxisId: string | number;
|
|
129
|
+
domain: AxisDomain;
|
|
130
|
+
axisLine: boolean;
|
|
131
|
+
tickLine: boolean;
|
|
132
|
+
tickSize: number;
|
|
133
|
+
axisLineType: "circle" | "polygon";
|
|
134
|
+
}, SlotsType<{
|
|
135
|
+
tick?: (props: {
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
value: any;
|
|
139
|
+
index: number;
|
|
140
|
+
textAnchor: string;
|
|
141
|
+
payload: any;
|
|
142
|
+
cx: number;
|
|
143
|
+
cy: number;
|
|
144
|
+
}) => any;
|
|
145
|
+
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const PolarGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
angleAxisId: {
|
|
4
|
+
type: PropType<string | number>;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
radiusAxisId: {
|
|
8
|
+
type: PropType<string | number>;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
gridType: {
|
|
12
|
+
type: PropType<"polygon" | "circle">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
radialLines: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
stroke: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
fill: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
polarRadius: {
|
|
28
|
+
type: PropType<number[]>;
|
|
29
|
+
default: any;
|
|
30
|
+
};
|
|
31
|
+
strokeWidth: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: any;
|
|
34
|
+
};
|
|
35
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
36
|
+
angleAxisId: {
|
|
37
|
+
type: PropType<string | number>;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
radiusAxisId: {
|
|
41
|
+
type: PropType<string | number>;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
gridType: {
|
|
45
|
+
type: PropType<"polygon" | "circle">;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
radialLines: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
stroke: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
fill: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
polarRadius: {
|
|
61
|
+
type: PropType<number[]>;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
strokeWidth: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
default: any;
|
|
67
|
+
};
|
|
68
|
+
}>> & Readonly<{}>, {
|
|
69
|
+
fill: string;
|
|
70
|
+
stroke: string;
|
|
71
|
+
strokeWidth: number;
|
|
72
|
+
angleAxisId: string | number;
|
|
73
|
+
radiusAxisId: string | number;
|
|
74
|
+
gridType: "circle" | "polygon";
|
|
75
|
+
radialLines: boolean;
|
|
76
|
+
polarRadius: number[];
|
|
77
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|