vccs 0.0.1 → 0.2.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/Funnel.d.ts +2 -0
- package/dist/cartesian/funnel/index.d.ts +2 -0
- package/dist/cartesian/funnel/type.d.ts +106 -0
- package/dist/cartesian/funnel/utils.d.ts +12 -0
- package/dist/cartesian/index.d.ts +12 -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/FunnelChart.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 +9 -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 +89 -0
- package/dist/es/cartesian/GraphicalItemClipPath.mjs +37 -0
- package/dist/es/cartesian/area/ActivePoints.mjs +78 -0
- package/dist/es/cartesian/area/Area.mjs +52 -0
- package/dist/es/cartesian/area/ClipRect.mjs +125 -0
- package/dist/es/cartesian/area/RenderArea.mjs +185 -0
- package/dist/es/cartesian/area/hooks/useArea.mjs +81 -0
- package/dist/es/cartesian/area/type.mjs +136 -0
- package/dist/es/cartesian/area/utils.mjs +79 -0
- package/dist/es/cartesian/axis/XAxis.mjs +203 -0
- package/dist/es/cartesian/axis/YAxis.mjs +192 -0
- package/dist/es/cartesian/bar/Bar.mjs +111 -0
- package/dist/es/cartesian/bar/components/BarBackground.mjs +32 -0
- package/dist/es/cartesian/bar/components/BarRectangles.mjs +143 -0
- package/dist/es/cartesian/bar/hooks/useBar.mjs +53 -0
- package/dist/es/cartesian/bar/type.mjs +131 -0
- package/dist/es/cartesian/bar/utils.mjs +111 -0
- package/dist/es/cartesian/cartesian-axis/CartesianAxis.mjs +296 -0
- package/dist/es/cartesian/cartesian-grid/Background.mjs +33 -0
- package/dist/es/cartesian/cartesian-grid/CartesianGrid.mjs +174 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalGridLines.mjs +50 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/VerticalGridLines.mjs +45 -0
- package/dist/es/cartesian/cartesian-grid/VerticalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/const.mjs +336 -0
- package/dist/es/cartesian/cartesian-grid/utils.mjs +22 -0
- package/dist/es/cartesian/error-bar/ErrorBar.mjs +143 -0
- package/dist/es/cartesian/error-bar/ErrorBarContext.mjs +20 -0
- package/dist/es/cartesian/funnel/Funnel.mjs +177 -0
- package/dist/es/cartesian/funnel/type.mjs +80 -0
- package/dist/es/cartesian/funnel/utils.mjs +102 -0
- package/dist/es/cartesian/line/ActivePoints.mjs +79 -0
- package/dist/es/cartesian/line/Line.mjs +50 -0
- package/dist/es/cartesian/line/StaticLine.mjs +217 -0
- package/dist/es/cartesian/line/hooks/useLine.mjs +69 -0
- package/dist/es/cartesian/line/type.mjs +112 -0
- package/dist/es/cartesian/line/utils.mjs +34 -0
- package/dist/es/cartesian/reference-area/ReferenceArea.mjs +163 -0
- package/dist/es/cartesian/reference-line/ReferenceLine.mjs +165 -0
- package/dist/es/cartesian/scatter/Scatter.mjs +280 -0
- package/dist/es/cartesian/scatter/hooks/useScatter.mjs +23 -0
- package/dist/es/cartesian/useNeedsClip.mjs +23 -0
- package/dist/es/cartesian/utils/get-ticks.mjs +118 -0
- package/dist/es/cartesian/z-axis/ZAxis.mjs +72 -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/FunnelChart.mjs +11 -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 +160 -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 +72 -0
- package/dist/es/chart/TooltipPortalContext.mjs +5 -0
- package/dist/es/chart/const.mjs +7 -0
- package/dist/es/chart/generateCategoricalChart.mjs +175 -0
- package/dist/es/chart/provideClipPathId.mjs +15 -0
- package/dist/es/components/Cell.mjs +23 -0
- package/dist/es/components/Text.mjs +5 -0
- package/dist/es/components/Text.vue_vue_type_script_setup_true_lang.mjs +191 -0
- package/dist/es/components/Tooltip.mjs +463 -0
- package/dist/es/components/label/Label.mjs +40 -0
- package/dist/es/components/label/LabelList.mjs +55 -0
- package/dist/es/components/label/types.mjs +38 -0
- package/dist/es/components/label/utils.mjs +265 -0
- package/dist/es/components/legend/Legend.mjs +93 -0
- package/dist/es/components/legend/LegendSymbol.mjs +62 -0
- package/dist/es/components/legend/hooks/useLegend.mjs +72 -0
- package/dist/es/components/legend/hooks/useLegendContent.mjs +68 -0
- package/dist/es/components/legend/type.mjs +41 -0
- package/dist/es/components/legend/utils.mjs +25 -0
- package/dist/es/components/utils.mjs +44 -0
- package/dist/es/container/ClipPath.mjs +25 -0
- package/dist/es/container/Layer.mjs +14 -0
- package/dist/es/container/ResponsiveContainer.mjs +5 -0
- package/dist/es/container/ResponsiveContainer.vue_vue_type_script_setup_true_lang.mjs +144 -0
- package/dist/es/container/Surface.mjs +62 -0
- package/dist/es/container/useSizeContext.mjs +5 -0
- package/dist/es/context/ChartDataContextProvider.mjs +27 -0
- package/dist/es/context/PanoramaContextProvider.mjs +24 -0
- package/dist/es/context/accessibilityContext.mjs +5 -0
- package/dist/es/context/cartesianLabelListContext.mjs +5 -0
- package/dist/es/context/chartLayoutContext.mjs +49 -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 +17 -0
- package/dist/es/events/useChartSynchronisation.mjs +113 -0
- package/dist/es/hooks/useIsAnimating.mjs +28 -0
- package/dist/es/hooks/useSetupGraphicalItem.mjs +66 -0
- package/dist/es/index.mjs +46 -0
- package/dist/es/polar/pie/Pie.mjs +161 -0
- package/dist/es/polar/pie/type.mjs +97 -0
- package/dist/es/polar/radar/PolarAngleAxis.mjs +180 -0
- package/dist/es/polar/radar/PolarGrid.mjs +115 -0
- package/dist/es/polar/radar/PolarRadiusAxis.mjs +162 -0
- package/dist/es/polar/radar/Radar.mjs +284 -0
- package/dist/es/polar/radial-bar/RadialBar.mjs +197 -0
- package/dist/es/polar/radial-bar/type.mjs +97 -0
- package/dist/es/shape/Cross.mjs +16 -0
- package/dist/es/shape/Curve.mjs +86 -0
- package/dist/es/shape/Dot.mjs +24 -0
- package/dist/es/shape/Rectangle.mjs +83 -0
- package/dist/es/shape/Sector.mjs +156 -0
- package/dist/es/shape/Symbols.mjs +52 -0
- package/dist/es/shape/Trapezoid.mjs +52 -0
- package/dist/es/state/ReportChartProps.mjs +64 -0
- package/dist/es/state/ReportMainChartProps.mjs +46 -0
- package/dist/es/state/ReportPolarOptions.mjs +56 -0
- package/dist/es/state/SetGraphicalItem.mjs +49 -0
- package/dist/es/state/SetLegendPayload.mjs +20 -0
- package/dist/es/state/SetTooltipEntrySettings.mjs +19 -0
- package/dist/es/state/brushSlice.mjs +26 -0
- package/dist/es/state/cartesianAxisSlice.mjs +39 -0
- package/dist/es/state/chartDataSlice.mjs +33 -0
- package/dist/es/state/externalEventsMiddleware.mjs +30 -0
- package/dist/es/state/graphicalItemsSlice.mjs +47 -0
- package/dist/es/state/hooks.mjs +6 -0
- package/dist/es/state/keyboardEventsMiddleware.mjs +63 -0
- package/dist/es/state/layoutSlice.mjs +39 -0
- package/dist/es/state/legendSlice.mjs +40 -0
- package/dist/es/state/mouseEventsMiddleware.mjs +41 -0
- package/dist/es/state/optionsSlice.mjs +25 -0
- package/dist/es/state/polarAxisSlice.mjs +28 -0
- package/dist/es/state/polarOptionsSlice.mjs +13 -0
- package/dist/es/state/reduxDevtoolsJsonStringifyReplacer.mjs +8 -0
- package/dist/es/state/referenceElementsSlice.mjs +36 -0
- package/dist/es/state/rootPropsSlice.mjs +32 -0
- package/dist/es/state/selectors/areaSelectors.mjs +77 -0
- package/dist/es/state/selectors/axisSelectors.mjs +879 -0
- package/dist/es/state/selectors/barSelectors.mjs +241 -0
- package/dist/es/state/selectors/brushSelectors.mjs +18 -0
- package/dist/es/state/selectors/combiners/combineActiveLabel.mjs +9 -0
- package/dist/es/state/selectors/combiners/combineActiveTooltipIndex.mjs +43 -0
- package/dist/es/state/selectors/combiners/combineAxisRangeWithReverse.mjs +8 -0
- package/dist/es/state/selectors/combiners/combineCoordinateForDefaultIndex.mjs +21 -0
- package/dist/es/state/selectors/combiners/combineTooltipInteractionState.mjs +37 -0
- package/dist/es/state/selectors/combiners/combineTooltipPayloadConfigurations.mjs +13 -0
- package/dist/es/state/selectors/common.mjs +4 -0
- package/dist/es/state/selectors/containerSelectors.mjs +7 -0
- package/dist/es/state/selectors/dataSelectors.mjs +35 -0
- package/dist/es/state/selectors/funnelSelectors.mjs +38 -0
- package/dist/es/state/selectors/legendSelectors.mjs +10 -0
- package/dist/es/state/selectors/lineSelectors.mjs +64 -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 +132 -0
- package/dist/es/state/selectors/polarAxisSelectors.mjs +167 -0
- package/dist/es/state/selectors/polarGridSelectors.mjs +19 -0
- package/dist/es/state/selectors/polarScaleSelectors.mjs +55 -0
- package/dist/es/state/selectors/polarSelectors.mjs +81 -0
- package/dist/es/state/selectors/radarSelectors.mjs +133 -0
- package/dist/es/state/selectors/radialBarSelectors.mjs +259 -0
- package/dist/es/state/selectors/rootPropsSelectors.mjs +14 -0
- package/dist/es/state/selectors/scatterSelectors.mjs +134 -0
- package/dist/es/state/selectors/selectActivePropsFromChartPointer.mjs +20 -0
- package/dist/es/state/selectors/selectAllAxes.mjs +10 -0
- package/dist/es/state/selectors/selectChartOffset.mjs +69 -0
- package/dist/es/state/selectors/selectChartOffsetInternal.mjs +66 -0
- package/dist/es/state/selectors/selectTooltipEventType.mjs +22 -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 +104 -0
- package/dist/es/state/selectors/tooltipSelectors.mjs +269 -0
- package/dist/es/state/selectors/touchSelectors.mjs +19 -0
- package/dist/es/state/store.mjs +55 -0
- package/dist/es/state/tooltipSlice.mjs +102 -0
- package/dist/es/state/touchEventsMiddleware.mjs +44 -0
- package/dist/es/state/utils/useReportScale.mjs +19 -0
- package/dist/es/synchronisation/syncSelectors.mjs +6 -0
- package/dist/es/synchronisation/useChartSynchronisation.mjs +38 -0
- package/dist/es/types/event.mjs +166 -0
- package/dist/es/utils/ReduceCSSCalc.mjs +114 -0
- package/dist/es/utils/VueUtils.mjs +39 -0
- package/dist/es/utils/attrs.mjs +69 -0
- package/dist/es/utils/cartesian.mjs +54 -0
- package/dist/es/utils/chart.mjs +366 -0
- package/dist/es/utils/const.mjs +32 -0
- package/dist/es/utils/createContext.mjs +31 -0
- package/dist/es/utils/data-utils.mjs +13 -0
- package/dist/es/utils/data.mjs +41 -0
- package/dist/es/utils/events.mjs +7 -0
- package/dist/es/utils/getLinearRegression.mjs +34 -0
- package/dist/es/utils/grid.mjs +23 -0
- package/dist/es/utils/isDomainSpecifiedByUser.mjs +116 -0
- package/dist/es/utils/legend.mjs +19 -0
- package/dist/es/utils/log.mjs +14 -0
- package/dist/es/utils/payload/getUniqPayload.mjs +9 -0
- package/dist/es/utils/polar.mjs +59 -0
- package/dist/es/utils/props.mjs +20 -0
- package/dist/es/utils/resolveDefaultProps.mjs +26 -0
- package/dist/es/utils/scale/getNiceTickValues.mjs +137 -0
- package/dist/es/utils/scale/utils/arithmetic.mjs +54 -0
- package/dist/es/utils/scale/utils/utils.mjs +53 -0
- package/dist/es/utils/style.mjs +30 -0
- package/dist/es/utils/tick.mjs +42 -0
- package/dist/es/utils/tooltip/translate.mjs +73 -0
- package/dist/es/utils/validate.mjs +42 -0
- package/dist/events/useChartSynchronisation.d.ts +8 -0
- package/dist/hooks/useIsAnimating.d.ts +14 -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/Trapezoid.d.ts +31 -0
- package/dist/shape/index.d.ts +9 -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,61 @@
|
|
|
1
|
+
import { default as Decimal } from 'decimal.js-light';
|
|
2
|
+
/**
|
|
3
|
+
* Calculate a interval of a minimum value and a maximum value
|
|
4
|
+
*
|
|
5
|
+
* @param {number} min The minimum value
|
|
6
|
+
* @param {number} max The maximum value
|
|
7
|
+
* @return {Array} An interval
|
|
8
|
+
*/
|
|
9
|
+
export declare function getValidInterval([min, max]: [number, number]): number[];
|
|
10
|
+
/**
|
|
11
|
+
* Calculate the step which is easy to understand between ticks, like 10, 20, 25
|
|
12
|
+
*
|
|
13
|
+
* @param {Decimal} roughStep The rough step calculated by dividing the
|
|
14
|
+
* difference by the tickCount
|
|
15
|
+
* @param {boolean} allowDecimals Allow the ticks to be decimals or not
|
|
16
|
+
* @param {Integer} correctionFactor A correction factor
|
|
17
|
+
* @return {Decimal} The step which is easy to understand between two ticks
|
|
18
|
+
*/
|
|
19
|
+
export declare function getFormatStep(roughStep: Decimal, allowDecimals: boolean, correctionFactor: number): Decimal;
|
|
20
|
+
/**
|
|
21
|
+
* calculate the ticks when the minimum value equals to the maximum value
|
|
22
|
+
*
|
|
23
|
+
* @param value The minimum value which is also the maximum value
|
|
24
|
+
* @param tickCount The count of ticks
|
|
25
|
+
* @param allowDecimals Allow the ticks to be decimals or not
|
|
26
|
+
* @return array of ticks
|
|
27
|
+
*/
|
|
28
|
+
export declare function getTickOfSingleValue(value: number, tickCount: number, allowDecimals: boolean): Array<number>;
|
|
29
|
+
/**
|
|
30
|
+
* Calculate the step
|
|
31
|
+
*
|
|
32
|
+
* @param {number} min The minimum value of an interval
|
|
33
|
+
* @param {number} max The maximum value of an interval
|
|
34
|
+
* @param {Integer} tickCount The count of ticks
|
|
35
|
+
* @param {boolean} allowDecimals Allow the ticks to be decimals or not
|
|
36
|
+
* @param {number} correctionFactor A correction factor
|
|
37
|
+
* @return {object} The step, minimum value of ticks, maximum value of ticks
|
|
38
|
+
*/
|
|
39
|
+
export declare function calculateStep(min: number, max: number, tickCount: number, allowDecimals: boolean, correctionFactor?: number): any;
|
|
40
|
+
/**
|
|
41
|
+
* Calculate the ticks of an interval, the count of ticks will be guaranteed
|
|
42
|
+
*
|
|
43
|
+
* @param {number} min, max min: The minimum value, max: The maximum value
|
|
44
|
+
* @param {Integer} tickCount The count of ticks
|
|
45
|
+
* @param {boolean} allowDecimals Allow the ticks to be decimals or not
|
|
46
|
+
* @return {Array} ticks
|
|
47
|
+
*/
|
|
48
|
+
declare function getNiceTickValuesFn([min, max]: [number, number], tickCount?: number, allowDecimals?: boolean): any[];
|
|
49
|
+
/**
|
|
50
|
+
* Calculate the ticks of an interval, the count of ticks won't be guraranteed,
|
|
51
|
+
* but the domain will be guaranteed
|
|
52
|
+
*
|
|
53
|
+
* @param {number} min, max min: The minimum value, max: The maximum value
|
|
54
|
+
* @param {Integer} tickCount The count of ticks
|
|
55
|
+
* @param {boolean} allowDecimals Allow the ticks to be decimals or not
|
|
56
|
+
* @return {Array} ticks
|
|
57
|
+
*/
|
|
58
|
+
declare function getTickValuesFixedDomainFn([min, max]: readonly [number, number], tickCount: number, allowDecimals?: boolean): any[];
|
|
59
|
+
export declare const getNiceTickValues: typeof getNiceTickValuesFn;
|
|
60
|
+
export declare const getTickValuesFixedDomain: typeof getTickValuesFixedDomainFn;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as Decimal } from 'decimal.js-light';
|
|
2
|
+
/**
|
|
3
|
+
* 获取数值的位数
|
|
4
|
+
* 其中绝对值属于区间[0.1, 1), 得到的值为0
|
|
5
|
+
* 绝对值属于区间[0.01, 0.1),得到的位数为 -1
|
|
6
|
+
* 绝对值属于区间[0.001, 0.01),得到的位数为 -2
|
|
7
|
+
*
|
|
8
|
+
* @param {number} value 数值
|
|
9
|
+
* @return {Integer} 位数
|
|
10
|
+
*/
|
|
11
|
+
declare function getDigitCount(value: number): any;
|
|
12
|
+
/**
|
|
13
|
+
* 按照固定的步长获取[start, end)这个区间的数据
|
|
14
|
+
* 并且需要处理js计算精度的问题
|
|
15
|
+
*
|
|
16
|
+
* @param {Decimal} start 起点
|
|
17
|
+
* @param {Decimal} end 终点,不包含该值
|
|
18
|
+
* @param {Decimal} step 步长
|
|
19
|
+
* @return {Array} 若干数值
|
|
20
|
+
*/
|
|
21
|
+
declare function rangeStep(start: Decimal, end: Decimal, step: Decimal): any[];
|
|
22
|
+
/**
|
|
23
|
+
* 对数值进行线性插值
|
|
24
|
+
*
|
|
25
|
+
* @param {number} a 定义域的极点
|
|
26
|
+
* @param {number} b 定义域的极点
|
|
27
|
+
* @param {number} t [0, 1]内的某个值
|
|
28
|
+
* @return {number} 定义域内的某个值
|
|
29
|
+
*/
|
|
30
|
+
declare const interpolateNumber: (...args: any[]) => any;
|
|
31
|
+
/**
|
|
32
|
+
* 线性插值的逆运算
|
|
33
|
+
*
|
|
34
|
+
* @param {number} a 定义域的极点
|
|
35
|
+
* @param {number} b 定义域的极点
|
|
36
|
+
* @param {number} x 可以认为是插值后的一个输出值
|
|
37
|
+
* @return {number} 当x在 a ~ b这个范围内时,返回值属于[0, 1]
|
|
38
|
+
*/
|
|
39
|
+
declare const uninterpolateNumber: (...args: any[]) => any;
|
|
40
|
+
/**
|
|
41
|
+
* 线性插值的逆运算,并且有截断的操作
|
|
42
|
+
*
|
|
43
|
+
* @param {number} a 定义域的极点
|
|
44
|
+
* @param {number} b 定义域的极点
|
|
45
|
+
* @param {number} x 可以认为是插值后的一个输出值
|
|
46
|
+
* @return {number} 当x在 a ~ b这个区间内时,返回值属于[0, 1],
|
|
47
|
+
* 当x不在 a ~ b这个区间时,会截断到 a ~ b 这个区间
|
|
48
|
+
*/
|
|
49
|
+
declare const uninterpolateTruncation: (...args: any[]) => any;
|
|
50
|
+
export { rangeStep, getDigitCount, interpolateNumber, uninterpolateNumber, uninterpolateTruncation };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const PLACE_HOLDER: {
|
|
2
|
+
'@@functional/placeholder': boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const curry: (fn: (...args: any[]) => any) => (...args: any[]) => any;
|
|
5
|
+
export declare function range(begin: number, end: number): any[];
|
|
6
|
+
export declare const map: (...args: any[]) => any;
|
|
7
|
+
export declare function compose(...args: any[]): (...composeArgs: any[]) => any;
|
|
8
|
+
export declare function reverse<T extends any[] | string>(arr: T): T;
|
|
9
|
+
export declare function memoize<F>(fn: F): F;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a style value to a string with 'px' if it's a number
|
|
3
|
+
* @param value The style value to convert
|
|
4
|
+
* @returns The converted style value
|
|
5
|
+
*/
|
|
6
|
+
export declare function toPx(value: string | number | undefined): string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Converts style object values to use 'px' for numeric height/width values
|
|
9
|
+
* @param style The style object to convert
|
|
10
|
+
* @returns A new style object with converted values
|
|
11
|
+
*/
|
|
12
|
+
export declare function normalizeStyle(style?: Record<string, any>): Record<string, any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CartesianViewBoxRequired } from '../cartesian/type';
|
|
2
|
+
import { Size } from '../types';
|
|
3
|
+
import { CartesianTickItem } from '../types/tick';
|
|
4
|
+
export declare function getNumberIntervalTicks(ticks: ReadonlyArray<CartesianTickItem>, interval: number): ReadonlyArray<CartesianTickItem> | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Given an array and a number N, return a new array which contains every nTh
|
|
7
|
+
* element of the input array. For n below 1, an empty array is returned.
|
|
8
|
+
* If isValid is provided, all candidates must suffice the condition, else undefined is returned.
|
|
9
|
+
* @param {T[]} array An input array.
|
|
10
|
+
* @param {integer} n A number
|
|
11
|
+
* @param {Function} isValid A function to evaluate a candidate form the array
|
|
12
|
+
* @returns {T[]} The result array of the same type as the input array.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getEveryNthWithCondition<Type>(array: ReadonlyArray<Type>, n: number, isValid?: (candidate: Type) => boolean): ReadonlyArray<Type> | undefined;
|
|
15
|
+
export declare function getAngledTickWidth(contentSize: Size, unitSize: Size, angle: number): number;
|
|
16
|
+
export declare function getTickBoundaries(viewBox: CartesianViewBoxRequired, sign: number, sizeKey: string): {
|
|
17
|
+
start: number;
|
|
18
|
+
end: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { AllowInDimension, Coordinate } from '../../types';
|
|
3
|
+
import { CartesianViewBox } from '../../cartesian/type';
|
|
4
|
+
export type Dimension2D = 'x' | 'y';
|
|
5
|
+
export declare function getTooltipCSSClassName({ coordinate, translateX, translateY, }: {
|
|
6
|
+
translateX: number | undefined;
|
|
7
|
+
translateY: number | undefined;
|
|
8
|
+
coordinate: Partial<Coordinate> | undefined;
|
|
9
|
+
}): (string | {
|
|
10
|
+
"v-charts-tooltip-wrapper-right": boolean;
|
|
11
|
+
"v-charts-tooltip-wrapper-left": boolean;
|
|
12
|
+
"v-charts-tooltip-wrapper-bottom": boolean;
|
|
13
|
+
"v-charts-tooltip-wrapper-top": boolean;
|
|
14
|
+
})[];
|
|
15
|
+
export declare function getTooltipTranslateXY({ allowEscapeViewBox, coordinate, key, offsetTopLeft, position, reverseDirection, tooltipDimension, viewBox, viewBoxDimension, }: {
|
|
16
|
+
allowEscapeViewBox: AllowInDimension;
|
|
17
|
+
coordinate: Coordinate;
|
|
18
|
+
key: Dimension2D;
|
|
19
|
+
offsetTopLeft: number;
|
|
20
|
+
position: Partial<Coordinate>;
|
|
21
|
+
reverseDirection: AllowInDimension;
|
|
22
|
+
tooltipDimension: number;
|
|
23
|
+
viewBox: CartesianViewBox;
|
|
24
|
+
viewBoxDimension: number | undefined;
|
|
25
|
+
}): number;
|
|
26
|
+
export declare function getTransformStyle({ translateX, translateY, useTranslate3d, }: {
|
|
27
|
+
useTranslate3d: boolean;
|
|
28
|
+
translateX: number;
|
|
29
|
+
translateY: number;
|
|
30
|
+
}): CSSProperties;
|
|
31
|
+
export declare function getTooltipTranslate({ allowEscapeViewBox, coordinate, offsetTopLeft, position, reverseDirection, tooltipBox, useTranslate3d, viewBox, }: {
|
|
32
|
+
allowEscapeViewBox: AllowInDimension;
|
|
33
|
+
coordinate: Coordinate | undefined;
|
|
34
|
+
offsetTopLeft: number;
|
|
35
|
+
position: Partial<Coordinate>;
|
|
36
|
+
reverseDirection: AllowInDimension;
|
|
37
|
+
tooltipBox: {
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
};
|
|
41
|
+
useTranslate3d: boolean;
|
|
42
|
+
viewBox: CartesianViewBox;
|
|
43
|
+
}): {
|
|
44
|
+
cssProperties: CSSProperties;
|
|
45
|
+
cssClasses: any[];
|
|
46
|
+
transform: CSSProperties | undefined;
|
|
47
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This object defines the offset of the chart area and width and height and brush and ... it's a bit too much information all in one.
|
|
3
|
+
* We use it internally but let's not expose it to the outside world.
|
|
4
|
+
* If you are looking for this information, instead import `ChartOffset` or `PlotArea` from `recharts`.
|
|
5
|
+
*/
|
|
6
|
+
export type ChartOffsetInternal = {
|
|
7
|
+
top: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
left: number;
|
|
10
|
+
right: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
brushBottom: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LayoutType } from '../types';
|
|
2
|
+
import { AxisType } from '../types/axis';
|
|
3
|
+
export declare function isNan(value: any): boolean;
|
|
4
|
+
export declare function isNumber(value: unknown): value is number;
|
|
5
|
+
/**
|
|
6
|
+
* validate the width and height props of a chart element
|
|
7
|
+
* @param {object} el A chart element
|
|
8
|
+
* @return {boolean} true If the props width and height are number, and greater than 0
|
|
9
|
+
*/
|
|
10
|
+
export declare function validateWidthHeight({ width, height }: {
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
}): boolean;
|
|
14
|
+
export declare function isWellBehavedNumber(n: unknown): n is number;
|
|
15
|
+
export declare function isPercent(value: string | number): value is `${number}%`;
|
|
16
|
+
export declare function isCategoricalAxis(layout: LayoutType, axisType: AxisType): boolean;
|
|
17
|
+
export declare function isVisible(sign: number, tickPosition: number, getSize: () => number, start: number, end: number): boolean;
|
|
18
|
+
export declare const isSsr: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Checks if the value is null or undefined
|
|
21
|
+
* @param {any} value The value to check
|
|
22
|
+
* @returns {boolean} true if the value is null or undefined
|
|
23
|
+
*/
|
|
24
|
+
export declare function isNullish(value: unknown): boolean;
|
|
25
|
+
export declare const isNumOrStr: (value: unknown) => value is number | string;
|
package/package.json
CHANGED
|
@@ -1,45 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vccs",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"description": "Composable charting components for Vue 3 — an unofficial port of Recharts",
|
|
6
|
+
"author": "rick-hup",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/rick-hup/vuecharts#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/rick-hup/vuecharts"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/rick-hup/vuecharts/issues"
|
|
15
|
+
},
|
|
7
16
|
"keywords": [
|
|
8
17
|
"charts",
|
|
9
|
-
"vue"
|
|
18
|
+
"vue",
|
|
19
|
+
"vue3",
|
|
20
|
+
"recharts",
|
|
21
|
+
"composable",
|
|
22
|
+
"typescript",
|
|
23
|
+
"svg",
|
|
24
|
+
"data-visualization",
|
|
25
|
+
"charting"
|
|
10
26
|
],
|
|
11
27
|
"sideEffects": false,
|
|
12
28
|
"exports": {
|
|
13
29
|
".": {
|
|
14
30
|
"types": "./dist/index.d.ts",
|
|
15
|
-
"import": "./dist/es/index.mjs"
|
|
16
|
-
"require": "./dist/cjs/index.js"
|
|
31
|
+
"import": "./dist/es/index.mjs"
|
|
17
32
|
}
|
|
18
33
|
},
|
|
19
|
-
"main": "./dist/cjs/index.js",
|
|
20
34
|
"module": "./dist/es/index.mjs",
|
|
21
35
|
"types": "./dist/index.d.ts",
|
|
22
36
|
"files": [
|
|
23
37
|
"./LICENSE",
|
|
38
|
+
"./README.md",
|
|
24
39
|
"./dist"
|
|
25
40
|
],
|
|
26
41
|
"typings": "./dist/index.d.ts",
|
|
27
42
|
"peerDependencies": {
|
|
43
|
+
"motion-v": ">=2.0.0",
|
|
28
44
|
"vue": ">=3.0.0"
|
|
29
45
|
},
|
|
30
46
|
"dependencies": {
|
|
31
47
|
"@reduxjs/toolkit": "^2.8.2",
|
|
32
48
|
"@reduxjs/vue-redux": "^1.0.1",
|
|
33
49
|
"@vueuse/core": "^13.1.0",
|
|
50
|
+
"decimal.js-light": "^2.5.1",
|
|
51
|
+
"es-toolkit": "^1.39.3",
|
|
34
52
|
"eventemitter3": "^5.0.1",
|
|
35
53
|
"immer": "^10.1.1",
|
|
36
54
|
"lodash-es": "^4.17.21",
|
|
37
|
-
"pinia": "^3.0.2",
|
|
38
55
|
"victory-vendor": "^37.3.6"
|
|
39
56
|
},
|
|
40
57
|
"devDependencies": {
|
|
41
58
|
"@types/lodash-es": "^4.17.12",
|
|
42
|
-
"@vitejs/plugin-vue-jsx": "^
|
|
59
|
+
"@vitejs/plugin-vue-jsx": "^5.0.0",
|
|
43
60
|
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
44
61
|
"@vue/runtime-core": "^3.5.13",
|
|
45
62
|
"vue": "^3.5.13"
|