vccs 0.6.0 → 1.0.0-beta.2
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 +25 -0
- package/README.md +133 -112
- package/dist/animation/ActiveDot.d.ts +14 -0
- package/dist/animation/MovingLabels.d.ts +57 -0
- package/dist/animation/SweepClip.d.ts +56 -0
- package/dist/animation/gridTransition.d.ts +38 -0
- package/dist/animation/motion.d.ts +78 -0
- package/dist/animation/ridingLabels.d.ts +29 -0
- package/dist/animation/useAnimationCallbacks.d.ts +5 -0
- package/dist/animation/useKeyedTransition.d.ts +86 -0
- package/dist/animation/usePointTransition.d.ts +40 -0
- package/dist/animation/useReducedMotion.d.ts +2 -0
- package/dist/animation/useTickMotion.d.ts +22 -0
- package/dist/cartesian/ActivePoints.d.ts +71 -0
- package/dist/cartesian/GraphicalItemClipPath.d.ts +27 -2
- package/dist/cartesian/area/Area.d.ts +229 -14
- package/dist/cartesian/area/RenderArea.d.ts +1 -16
- package/dist/cartesian/area/hooks/useArea.d.ts +13 -18
- package/dist/cartesian/area/type.d.ts +32 -81
- package/dist/cartesian/axis/AxisProps.d.ts +101 -0
- package/dist/cartesian/axis/XAxis.d.ts +144 -83
- package/dist/cartesian/axis/YAxis.d.ts +152 -94
- package/dist/cartesian/bar/Bar.d.ts +229 -2
- package/dist/cartesian/bar/components/BarBackground.d.ts +1 -1
- package/dist/cartesian/bar/hooks/useBar.d.ts +31 -15
- package/dist/cartesian/bar/type.d.ts +46 -77
- package/dist/cartesian/brush/Brush.d.ts +150 -2
- package/dist/cartesian/brush/components/BrushText.d.ts +7 -7
- package/dist/cartesian/brush/components/Panorama.d.ts +7 -5
- package/dist/cartesian/brush/components/Slide.d.ts +4 -4
- package/dist/cartesian/brush/components/TravellerLayer.d.ts +21 -13
- package/dist/cartesian/brush/hooks/useBrushHandlers.d.ts +3 -4
- package/dist/cartesian/brush/hooks/useBrushState.d.ts +16 -16
- package/dist/cartesian/brush/type.d.ts +14 -33
- package/dist/cartesian/brush/utils.d.ts +5 -6
- package/dist/cartesian/cartesian-axis/CartesianAxis.d.ts +37 -63
- package/dist/cartesian/cartesian-grid/Background.d.ts +1 -1
- package/dist/cartesian/cartesian-grid/CartesianGrid.d.ts +68 -16
- package/dist/cartesian/cartesian-grid/HorizontalGridLines.d.ts +18 -11
- package/dist/cartesian/cartesian-grid/HorizontalStripes.d.ts +6 -5
- package/dist/cartesian/cartesian-grid/VerticalGridLines.d.ts +17 -10
- package/dist/cartesian/cartesian-grid/VerticalStripes.d.ts +6 -5
- package/dist/cartesian/cartesian-grid/const.d.ts +2 -6
- package/dist/cartesian/cartesian-grid/type.d.ts +21 -30
- package/dist/cartesian/cartesian-grid/utils.d.ts +3 -1
- package/dist/cartesian/cartesianPositionToCSSTranslate.d.ts +1 -1
- package/dist/cartesian/error-bar/ErrorBar.d.ts +11 -30
- package/dist/cartesian/error-bar/ErrorBarContext.d.ts +12 -15
- package/dist/cartesian/funnel/Funnel.d.ts +161 -2
- package/dist/cartesian/funnel/type.d.ts +20 -57
- package/dist/cartesian/getCartesianPosition.d.ts +1 -3
- package/dist/cartesian/line/Line.d.ts +177 -77
- package/dist/cartesian/line/StaticLine.d.ts +0 -15
- package/dist/cartesian/line/hooks/useLine.d.ts +14 -15
- package/dist/cartesian/line/type.d.ts +52 -104
- package/dist/cartesian/reference-area/ReferenceArea.d.ts +42 -90
- package/dist/cartesian/reference-dot/ReferenceDot.d.ts +21 -63
- package/dist/cartesian/reference-line/ReferenceLine.d.ts +35 -67
- package/dist/cartesian/scatter/Scatter.d.ts +72 -53
- package/dist/cartesian/scatter/hooks/useScatter.d.ts +6 -5
- package/dist/cartesian/scatter/type.d.ts +89 -0
- package/dist/cartesian/useNeedsClip.d.ts +3 -2
- package/dist/cartesian/utils/get-ticks.d.ts +5 -6
- package/dist/cartesian/z-axis/ZAxis.d.ts +20 -21
- package/dist/chart/AreaChart.d.ts +231 -1
- package/dist/chart/BarChart.d.ts +231 -1
- package/dist/chart/BarList.d.ts +172 -0
- package/dist/chart/CalendarHeatmap.d.ts +308 -0
- package/dist/chart/CellGridLayer.d.ts +136 -0
- package/dist/chart/ChartShell.d.ts +85 -0
- package/dist/chart/ChartWrapper.d.ts +167 -0
- package/dist/chart/ChartsWrapper.d.ts +75 -87
- package/dist/chart/CohortChart.d.ts +254 -0
- package/dist/chart/ComposedChart.d.ts +231 -1
- package/dist/chart/FunnelChart.d.ts +201 -1
- package/dist/chart/Heatmap.d.ts +687 -0
- package/dist/chart/JourneySankey.d.ts +261 -0
- package/dist/chart/LineChart.d.ts +231 -1
- package/dist/chart/PieChart.d.ts +243 -1
- package/dist/chart/RadarChart.d.ts +243 -1
- package/dist/chart/RadialBarChart.d.ts +273 -1
- package/dist/chart/Sankey.d.ts +85 -157
- package/dist/chart/ScatterChart.d.ts +231 -1
- package/dist/chart/Sparkline.d.ts +257 -0
- package/dist/chart/SunburstChart.d.ts +101 -132
- package/dist/chart/Tracker.d.ts +211 -0
- package/dist/chart/Treemap.d.ts +101 -147
- package/dist/chart/cellGridProps.d.ts +40 -0
- package/dist/chart/cellGridUtils.d.ts +53 -0
- package/dist/chart/chartProps.d.ts +402 -0
- package/dist/chart/chartRoot.d.ts +144 -0
- package/dist/chart/const.d.ts +0 -2
- package/dist/chart/directChartTypes.d.ts +13 -0
- package/dist/chart/journeyTypes.d.ts +99 -0
- package/dist/chart/journeyUtils.d.ts +102 -0
- package/dist/chart/sankeyUtils.d.ts +2 -2
- package/dist/chart/shell.d.ts +14 -0
- package/dist/chart/sunburstUtils.d.ts +7 -3
- package/dist/chart/treemapUtils.d.ts +8 -6
- package/dist/componentNames.d.ts +2 -0
- package/dist/components/Cell.d.ts +1 -1
- package/dist/components/Customized.d.ts +12 -7
- package/dist/components/Text.d.ts +31 -31
- package/dist/components/label/Label.d.ts +14 -26
- package/dist/components/label/LabelList.d.ts +24 -14
- package/dist/components/label/LabelListView.d.ts +23 -0
- package/dist/components/label/LabelView.d.ts +79 -0
- package/dist/components/label/types.d.ts +70 -15
- package/dist/components/label/utils.d.ts +24 -12
- package/dist/components/legend/Legend.d.ts +109 -4
- package/dist/components/legend/LegendSymbol.d.ts +2 -3
- package/dist/components/legend/hooks/useLegend.d.ts +8 -10
- package/dist/components/legend/hooks/useLegendContent.d.ts +7 -14
- package/dist/components/legend/type.d.ts +17 -25
- package/dist/components/legend/utils.d.ts +4 -4
- package/dist/components/tooltip/Cursor.d.ts +19 -0
- package/dist/components/tooltip/DefaultTooltipContent.d.ts +35 -0
- package/dist/components/{Tooltip.d.ts → tooltip/Tooltip.d.ts} +72 -100
- package/dist/components/tooltip/TooltipBoundingBox.d.ts +40 -0
- package/dist/components/tooltip/types.d.ts +59 -0
- package/dist/components/types.d.ts +6 -6
- package/dist/components/utils.d.ts +3 -3
- package/dist/container/ClipPath.d.ts +1 -1
- package/dist/container/Layer.d.ts +1 -1
- package/dist/container/ResponsiveContainer.d.ts +10 -13
- package/dist/container/Surface.d.ts +9 -1
- package/dist/container/useSizeContext.d.ts +4 -10
- package/dist/context/cartesianLabelListContext.d.ts +6 -2
- package/dist/context/polarLabelViewBoxContext.d.ts +1 -1
- package/dist/core/area.d.ts +32 -0
- package/dist/core/axis/data.d.ts +28 -0
- package/dist/core/axis/domain.d.ts +11 -0
- package/dist/core/axis/key.d.ts +7 -0
- package/dist/core/axis/polar.d.ts +11 -0
- package/dist/core/axis/polarSettings.d.ts +5 -0
- package/dist/core/axis/position.d.ts +76 -0
- package/dist/core/axis/range.d.ts +8 -0
- package/dist/core/axis/references.d.ts +6 -0
- package/dist/core/axis/scale.d.ts +21 -0
- package/dist/core/axis/settings.d.ts +4 -0
- package/dist/core/axis/stacks.d.ts +14 -0
- package/dist/core/axis/ticks.d.ts +19 -0
- package/dist/core/axis/userDomain.d.ts +48 -0
- package/dist/core/bar.d.ts +22 -0
- package/dist/core/barSizing.d.ts +43 -0
- package/dist/core/color.d.ts +21 -0
- package/dist/core/coordinates.d.ts +34 -0
- package/dist/core/data.d.ts +2 -0
- package/dist/core/errorBar.d.ts +15 -0
- package/dist/core/funnel.d.ts +17 -0
- package/dist/core/interaction.d.ts +18 -0
- package/dist/core/layout.d.ts +43 -0
- package/dist/core/line.d.ts +14 -0
- package/dist/{state/selectors/pieSelectors.d.ts → core/pie.d.ts} +14 -16
- package/dist/core/polygon.d.ts +5 -0
- package/dist/core/radar.d.ts +20 -0
- package/dist/core/radialBar.d.ts +36 -0
- package/dist/core/rectangle.d.ts +10 -0
- package/dist/core/scatter.d.ts +18 -0
- package/dist/core/tooltip.d.ts +16 -0
- package/dist/es/animation/ActiveDot.mjs +39 -0
- package/dist/es/animation/MovingLabels.mjs +61 -0
- package/dist/es/animation/SweepClip.mjs +40 -0
- package/dist/es/animation/gridTransition.mjs +112 -0
- package/dist/es/animation/motion.mjs +100 -0
- package/dist/es/animation/ridingLabels.mjs +70 -0
- package/dist/es/animation/useAnimationCallbacks.mjs +23 -0
- package/dist/es/animation/useKeyedTransition.mjs +355 -0
- package/dist/es/animation/usePointTransition.mjs +119 -0
- package/dist/es/animation/useReducedMotion.mjs +12 -0
- package/dist/es/animation/useTickMotion.mjs +62 -0
- package/dist/es/cartesian/ActivePoints.mjs +65 -0
- package/dist/es/cartesian/GraphicalItemClipPath.mjs +50 -9
- package/dist/es/cartesian/area/Area.mjs +72 -35
- package/dist/es/cartesian/area/RenderArea.mjs +112 -105
- package/dist/es/cartesian/area/hooks/useArea.mjs +44 -42
- package/dist/es/cartesian/area/type.mjs +14 -46
- package/dist/es/cartesian/axis/AxisProps.mjs +94 -0
- package/dist/es/cartesian/axis/XAxis.mjs +37 -159
- package/dist/es/cartesian/axis/YAxis.mjs +63 -167
- package/dist/es/cartesian/bar/Bar.mjs +122 -53
- package/dist/es/cartesian/bar/components/BarBackground.mjs +1 -1
- package/dist/es/cartesian/bar/components/BarRectangles.mjs +188 -126
- package/dist/es/cartesian/bar/hooks/useBar.mjs +67 -31
- package/dist/es/cartesian/bar/type.mjs +4 -22
- package/dist/es/cartesian/brush/Brush.mjs +294 -0
- package/dist/es/cartesian/brush/components/Background.mjs +25 -0
- package/dist/es/cartesian/brush/components/BrushText.mjs +55 -0
- package/dist/es/cartesian/brush/components/Panorama.mjs +54 -0
- package/dist/es/cartesian/brush/components/Slide.mjs +40 -0
- package/dist/es/cartesian/brush/components/Traveller.mjs +46 -0
- package/dist/es/cartesian/brush/components/TravellerLayer.mjs +68 -0
- package/dist/es/cartesian/brush/hooks/useBrushHandlers.mjs +158 -0
- package/dist/es/cartesian/brush/hooks/useBrushState.mjs +67 -0
- package/dist/es/cartesian/brush/type.mjs +54 -0
- package/dist/es/cartesian/brush/utils.mjs +30 -0
- package/dist/es/cartesian/cartesian-axis/CartesianAxis.mjs +27 -20
- package/dist/es/cartesian/cartesian-grid/CartesianGrid.mjs +157 -72
- package/dist/es/cartesian/cartesian-grid/HorizontalGridLines.mjs +5 -1
- package/dist/es/cartesian/cartesian-grid/VerticalGridLines.mjs +5 -1
- package/dist/es/cartesian/cartesian-grid/const.mjs +3 -320
- package/dist/es/cartesian/cartesian-grid/utils.mjs +1 -1
- package/dist/es/cartesian/error-bar/ErrorBar.mjs +65 -102
- package/dist/es/cartesian/error-bar/ErrorBarContext.mjs +21 -5
- package/dist/es/cartesian/funnel/Funnel.mjs +247 -127
- package/dist/es/cartesian/funnel/type.mjs +8 -14
- package/dist/es/cartesian/line/Line.mjs +72 -25
- package/dist/es/cartesian/line/StaticLine.mjs +129 -166
- package/dist/es/cartesian/line/hooks/useLine.mjs +38 -35
- package/dist/es/cartesian/line/type.mjs +5 -43
- package/dist/es/cartesian/reference-area/ReferenceArea.mjs +108 -88
- package/dist/es/cartesian/reference-dot/ReferenceDot.mjs +87 -67
- package/dist/es/cartesian/reference-line/ReferenceLine.mjs +99 -74
- package/dist/es/cartesian/scatter/Scatter.mjs +188 -190
- package/dist/es/cartesian/scatter/hooks/useScatter.mjs +25 -6
- package/dist/es/cartesian/scatter/type.mjs +79 -0
- package/dist/es/cartesian/useNeedsClip.mjs +6 -14
- package/dist/es/cartesian/utils/get-ticks.mjs +6 -6
- package/dist/es/cartesian/z-axis/ZAxis.mjs +7 -11
- package/dist/es/chart/AreaChart.mjs +12 -4
- package/dist/es/chart/BarChart.mjs +12 -4
- package/dist/es/chart/BarList.mjs +265 -0
- package/dist/es/chart/CalendarHeatmap.mjs +299 -0
- package/dist/es/chart/CellGridLayer.mjs +380 -0
- package/dist/es/chart/ChartShell.mjs +139 -0
- package/dist/es/chart/ChartWrapper.mjs +215 -0
- package/dist/es/chart/ChartsWrapper.mjs +21 -176
- package/dist/es/chart/CohortChart.mjs +169 -0
- package/dist/es/chart/ComposedChart.mjs +14 -4
- package/dist/es/chart/FunnelChart.mjs +11 -5
- package/dist/es/chart/Heatmap.mjs +319 -0
- package/dist/es/chart/JourneySankey.mjs +682 -0
- package/dist/es/chart/LineChart.mjs +13 -4
- package/dist/es/chart/PieChart.mjs +13 -9
- package/dist/es/chart/RadarChart.mjs +13 -9
- package/dist/es/chart/RadialBarChart.mjs +18 -10
- package/dist/es/chart/Sankey.mjs +355 -244
- package/dist/es/chart/ScatterChart.mjs +12 -4
- package/dist/es/chart/Sparkline.mjs +458 -0
- package/dist/es/chart/SunburstChart.mjs +215 -158
- package/dist/es/chart/Tracker.mjs +175 -0
- package/dist/es/chart/Treemap.mjs +357 -300
- package/dist/es/chart/cellGridProps.mjs +42 -0
- package/dist/es/chart/cellGridUtils.mjs +80 -0
- package/dist/es/chart/chartProps.mjs +88 -0
- package/dist/es/chart/chartRoot.mjs +153 -0
- package/dist/es/chart/journeyTypes.mjs +90 -0
- package/dist/es/chart/journeyUtils.mjs +223 -0
- package/dist/es/chart/sankeyUtils.mjs +52 -1
- package/dist/es/chart/shell.mjs +30 -0
- package/dist/es/chart/sunburstUtils.mjs +14 -9
- package/dist/es/chart/treemapUtils.mjs +10 -8
- package/dist/es/componentNames.mjs +84 -0
- package/dist/es/components/Cell.mjs +3 -2
- package/dist/es/components/Customized.mjs +14 -9
- package/dist/es/components/Text.vue_vue_type_script_setup_true_lang.mjs +16 -10
- package/dist/es/components/label/Label.mjs +12 -30
- package/dist/es/components/label/LabelList.mjs +13 -48
- package/dist/es/components/label/LabelListView.mjs +73 -0
- package/dist/es/components/label/LabelView.mjs +45 -0
- package/dist/es/components/label/types.mjs +10 -5
- package/dist/es/components/label/utils.mjs +39 -19
- package/dist/es/components/legend/Legend.mjs +101 -36
- package/dist/es/components/legend/LegendSymbol.mjs +2 -2
- package/dist/es/components/legend/hooks/useLegend.mjs +39 -60
- package/dist/es/components/legend/hooks/useLegendContent.mjs +1 -13
- package/dist/es/components/legend/type.mjs +11 -9
- package/dist/es/components/legend/utils.mjs +8 -4
- package/dist/es/components/tooltip/Cursor.mjs +118 -0
- package/dist/es/components/tooltip/DefaultTooltipContent.mjs +107 -0
- package/dist/es/components/tooltip/Tooltip.mjs +229 -0
- package/dist/es/components/tooltip/TooltipBoundingBox.mjs +187 -0
- package/dist/es/components/utils.mjs +26 -27
- package/dist/es/container/ClipPath.mjs +2 -2
- package/dist/es/container/Layer.mjs +2 -2
- package/dist/es/container/ResponsiveContainer.vue_vue_type_script_setup_true_lang.mjs +20 -106
- package/dist/es/container/Surface.mjs +46 -7
- package/dist/es/container/useSizeContext.mjs +12 -3
- package/dist/es/context/cartesianLabelListContext.mjs +11 -2
- package/dist/es/{cartesian/area/utils.mjs → core/area.mjs} +5 -4
- package/dist/es/core/axis/data.mjs +75 -0
- package/dist/es/core/axis/domain.mjs +63 -0
- package/dist/es/core/axis/key.mjs +13 -0
- package/dist/es/core/axis/polar.mjs +16 -0
- package/dist/es/core/axis/polarSettings.mjs +100 -0
- package/dist/es/core/axis/position.mjs +51 -0
- package/dist/es/core/axis/range.mjs +46 -0
- package/dist/es/core/axis/references.mjs +26 -0
- package/dist/es/core/axis/scale.mjs +148 -0
- package/dist/es/core/axis/settings.mjs +76 -0
- package/dist/es/core/axis/stacks.mjs +97 -0
- package/dist/es/core/axis/ticks.mjs +82 -0
- package/dist/es/{utils/isDomainSpecifiedByUser.mjs → core/axis/userDomain.mjs} +5 -4
- package/dist/es/{cartesian/bar/utils.mjs → core/bar.mjs} +19 -16
- package/dist/es/core/barSizing.mjs +108 -0
- package/dist/es/core/color.mjs +23 -0
- package/dist/es/core/coordinates.mjs +57 -0
- package/dist/es/core/data.mjs +20 -0
- package/dist/es/core/errorBar.mjs +56 -0
- package/dist/es/{cartesian/funnel/utils.mjs → core/funnel.mjs} +31 -11
- package/dist/es/core/interaction.mjs +152 -0
- package/dist/es/core/layout.mjs +91 -0
- package/dist/es/{cartesian/line/utils.mjs → core/line.mjs} +7 -6
- package/dist/es/{state/selectors/pieSelectors.mjs → core/pie.mjs} +37 -65
- package/dist/es/core/polygon.mjs +7 -0
- package/dist/es/core/radar.mjs +58 -0
- package/dist/es/core/radialBar.mjs +92 -0
- package/dist/es/core/rectangle.mjs +25 -0
- package/dist/es/core/scatter.mjs +86 -0
- package/dist/es/core/tooltip.mjs +96 -0
- package/dist/es/events/componentEvents.mjs +58 -0
- package/dist/es/events/delegateItemEvents.mjs +24 -0
- package/dist/es/events/itemEvents.mjs +34 -0
- package/dist/es/events/sync.mjs +140 -0
- package/dist/es/events/useChartCallbacks.mjs +24 -0
- package/dist/es/events/useChartInteractions.mjs +143 -0
- package/dist/es/events/useItemInteractions.mjs +58 -0
- package/dist/es/events/useItemKeyboard.mjs +45 -0
- package/dist/es/events/usePointEvents.mjs +55 -0
- package/dist/es/hooks/deferredView.mjs +19 -0
- package/dist/es/hooks/publicHooks.mjs +36 -35
- package/dist/es/hooks/useActiveTooltipDataPoints.mjs +10 -0
- package/dist/es/hooks/useChartId.mjs +8 -0
- package/dist/es/hooks/useLayerTeleport.mjs +10 -0
- package/dist/es/hooks/useResponsiveSize.mjs +72 -15
- package/dist/es/hooks/useRoundedSize.mjs +0 -3
- package/dist/es/hooks/useSeriesProps.mjs +32 -0
- package/dist/es/hooks/useSetupGraphicalItem.mjs +74 -44
- package/dist/es/hooks/useTrackedData.mjs +17 -0
- package/dist/es/index.mjs +37 -23
- package/dist/es/model/animation.mjs +11 -0
- package/dist/es/model/axis.mjs +85 -0
- package/dist/es/model/axisLayout.mjs +27 -0
- package/dist/es/model/axisScale.mjs +52 -0
- package/dist/es/model/brush.mjs +27 -0
- package/dist/es/model/chart.mjs +122 -0
- package/dist/es/model/dataRange.mjs +54 -0
- package/dist/es/model/defaults.mjs +28 -0
- package/dist/es/model/layout.mjs +33 -0
- package/dist/es/model/legend.mjs +30 -0
- package/dist/es/model/options.mjs +8 -0
- package/dist/es/model/polar.mjs +29 -0
- package/dist/es/model/polarAxis.mjs +48 -0
- package/dist/es/model/presentation.mjs +13 -0
- package/dist/es/model/registries.mjs +38 -0
- package/dist/es/model/registry.mjs +20 -0
- package/dist/es/model/runtime.mjs +156 -0
- package/dist/es/model/tooltip.mjs +383 -0
- package/dist/es/nuxt.mjs +28 -0
- package/dist/es/polar/pie/Pie.mjs +260 -112
- package/dist/es/polar/pie/type.mjs +19 -8
- package/dist/es/polar/radar/PolarAngleAxis.mjs +117 -99
- package/dist/es/polar/radar/PolarGrid.mjs +73 -50
- package/dist/es/polar/radar/PolarRadiusAxis.mjs +124 -100
- package/dist/es/polar/radar/Radar.mjs +272 -219
- package/dist/es/polar/radial-bar/RadialBar.mjs +248 -130
- package/dist/es/polar/radial-bar/type.mjs +6 -7
- package/dist/es/resolver.mjs +19 -0
- package/dist/es/shape/Cross.mjs +2 -1
- package/dist/es/shape/Curve.mjs +7 -5
- package/dist/es/shape/Dot.mjs +9 -5
- package/dist/es/shape/Polygon.mjs +4 -7
- package/dist/es/shape/Rectangle.mjs +17 -10
- package/dist/es/shape/Sector.mjs +7 -4
- package/dist/es/shape/Symbols.mjs +13 -8
- package/dist/es/shape/Trapezoid.mjs +3 -1
- package/dist/es/typed.mjs +9 -0
- package/dist/es/types/base.mjs +6 -0
- package/dist/es/utils/ReduceCSSCalc.mjs +2 -2
- package/dist/es/utils/VueUtils.mjs +89 -3
- package/dist/es/utils/attributes.mjs +18 -0
- package/dist/es/utils/attrs.mjs +38 -26
- package/dist/es/utils/cartesian.mjs +1 -21
- package/dist/es/utils/cell.mjs +13 -1
- package/dist/es/utils/chart.mjs +3 -361
- package/dist/es/utils/const.mjs +2 -25
- package/dist/es/utils/createCategoricalInverse.mjs +2 -2
- package/dist/es/utils/data-utils.mjs +2 -6
- package/dist/es/utils/data.mjs +1 -1
- package/dist/es/utils/env.mjs +10 -0
- package/dist/es/utils/events.mjs +29 -2
- package/dist/es/utils/labelColor.mjs +16 -0
- package/dist/es/utils/log.mjs +23 -5
- package/dist/es/utils/pointer.mjs +13 -0
- package/dist/es/utils/polar.mjs +7 -2
- package/dist/es/utils/scale/getNiceTickValues.mjs +8 -8
- package/dist/es/utils/scale/utils/arithmetic.mjs +0 -15
- package/dist/es/utils/scale/utils/utils.mjs +9 -44
- package/dist/es/utils/style.mjs +1 -1
- package/dist/es/utils/svg.mjs +320 -0
- package/dist/es/utils/theme.mjs +50 -0
- package/dist/es/utils/tick.mjs +4 -3
- package/dist/es/utils/validate.mjs +21 -3
- package/dist/events/componentEvents.d.ts +60 -0
- package/dist/events/delegateItemEvents.d.ts +12 -0
- package/dist/events/itemEvents.d.ts +100 -0
- package/dist/events/sync.d.ts +6 -0
- package/dist/events/useChartCallbacks.d.ts +2 -0
- package/dist/events/useChartInteractions.d.ts +8 -0
- package/dist/events/useItemInteractions.d.ts +7 -0
- package/dist/events/useItemKeyboard.d.ts +24 -0
- package/dist/events/usePointEvents.d.ts +23 -0
- package/dist/hooks/deferredView.d.ts +12 -0
- package/dist/hooks/publicHooks.d.ts +27 -29
- package/dist/hooks/useActiveTooltipDataPoints.d.ts +2 -0
- package/dist/hooks/useChartId.d.ts +2 -0
- package/dist/hooks/useLayerTeleport.d.ts +5 -0
- package/dist/hooks/useResponsiveSize.d.ts +33 -18
- package/dist/hooks/useRoundedSize.d.ts +0 -3
- package/dist/hooks/useSeriesProps.d.ts +7 -0
- package/dist/hooks/useSetupGraphicalItem.d.ts +35 -4
- package/dist/hooks/useTrackedData.d.ts +3 -0
- package/dist/index.d.ts +130 -9
- package/dist/model/animation.d.ts +7 -0
- package/dist/model/axis.d.ts +29 -0
- package/dist/model/axisLayout.d.ts +85 -0
- package/dist/model/axisScale.d.ts +41 -0
- package/dist/model/brush.d.ts +17 -0
- package/dist/model/chart.d.ts +44 -0
- package/dist/model/dataRange.d.ts +19 -0
- package/dist/model/defaults.d.ts +7 -0
- package/dist/model/layout.d.ts +38 -0
- package/dist/model/legend.d.ts +28 -0
- package/dist/model/options.d.ts +30 -0
- package/dist/model/polar.d.ts +24 -0
- package/dist/model/polarAxis.d.ts +39 -0
- package/dist/model/presentation.d.ts +19 -0
- package/dist/model/registries.d.ts +27 -0
- package/dist/model/registry.d.ts +7 -0
- package/dist/model/runtime.d.ts +76 -0
- package/dist/model/tooltip.d.ts +437 -0
- package/dist/nuxt.d.ts +7 -0
- package/dist/polar/pie/Pie.d.ts +252 -2
- package/dist/polar/pie/type.d.ts +37 -25
- package/dist/polar/radar/PolarAngleAxis.d.ts +36 -39
- package/dist/polar/radar/PolarGrid.d.ts +10 -8
- package/dist/polar/radar/PolarRadiusAxis.d.ts +30 -28
- package/dist/polar/radar/Radar.d.ts +82 -53
- package/dist/polar/radial-bar/RadialBar.d.ts +251 -2
- package/dist/polar/radial-bar/type.d.ts +26 -26
- package/dist/publicProps.d.ts +96 -0
- package/dist/resolver.d.ts +9 -0
- package/dist/shape/Cross.d.ts +2 -1
- package/dist/shape/Curve.d.ts +8 -19
- package/dist/shape/Dot.d.ts +10 -6
- package/dist/shape/Polygon.d.ts +2 -1
- package/dist/shape/Rectangle.d.ts +9 -8
- package/dist/shape/Sector.d.ts +7 -6
- package/dist/shape/Symbols.d.ts +3 -3
- package/dist/shape/Trapezoid.d.ts +5 -5
- package/dist/typed.d.ts +92 -0
- package/dist/types/area.d.ts +5 -6
- package/dist/types/axis.d.ts +9 -36
- package/dist/types/axisSettings.d.ts +20 -0
- package/dist/types/bar.d.ts +17 -7
- package/dist/types/base.d.ts +46 -0
- package/dist/types/categorical.d.ts +5 -7
- package/dist/types/chartData.d.ts +21 -0
- package/dist/types/chartLayout.d.ts +7 -0
- package/dist/{state/rootPropsSlice.d.ts → types/chartOptions.d.ts} +4 -5
- package/dist/types/common.d.ts +16 -55
- package/dist/types/event.d.ts +2 -15
- package/dist/types/funnel.d.ts +23 -0
- package/dist/types/graphical.d.ts +77 -0
- package/dist/types/index.d.ts +4 -4
- package/dist/types/legend.d.ts +17 -0
- package/dist/types/line.d.ts +6 -0
- package/dist/types/polarOptions.d.ts +8 -0
- package/dist/types/radar.d.ts +4 -4
- package/dist/types/radialBar.d.ts +15 -0
- package/dist/types/reference.d.ts +22 -0
- package/dist/types/scale.d.ts +13 -2
- package/dist/{shape/types.d.ts → types/shape.d.ts} +6 -4
- package/dist/types/tick.d.ts +18 -7
- package/dist/types/tooltip.d.ts +181 -14
- package/dist/types/typed.d.ts +16 -0
- package/dist/{cartesian/type.d.ts → types/viewBox.d.ts} +0 -2
- package/dist/utils/ReduceCSSCalc.d.ts +0 -1
- package/dist/utils/VueUtils.d.ts +6 -9
- package/dist/utils/attributes.d.ts +56 -0
- package/dist/utils/attrs.d.ts +4 -45
- package/dist/utils/cartesian.d.ts +2 -16
- package/dist/utils/cell.d.ts +7 -2
- package/dist/utils/chart.d.ts +2 -99
- package/dist/utils/const.d.ts +1 -24
- package/dist/utils/createCategoricalInverse.d.ts +2 -6
- package/dist/utils/data-utils.d.ts +0 -1
- package/dist/utils/data.d.ts +1 -2
- package/dist/utils/env.d.ts +5 -0
- package/dist/utils/events.d.ts +14 -7
- package/dist/utils/grid.d.ts +1 -28
- package/dist/utils/index.d.ts +4 -5
- package/dist/utils/isDomainSpecifiedByUser.d.ts +1 -47
- package/dist/utils/labelColor.d.ts +2 -0
- package/dist/utils/log.d.ts +2 -1
- package/dist/utils/pointer.d.ts +2 -0
- package/dist/utils/polar.d.ts +2 -4
- package/dist/utils/scale/getNiceTickValues.d.ts +2 -61
- package/dist/utils/scale/utils/arithmetic.d.ts +3 -31
- package/dist/utils/scale/utils/utils.d.ts +2 -9
- package/dist/utils/scale.d.ts +1 -1
- package/dist/utils/style.d.ts +2 -1
- package/dist/utils/svg.d.ts +4 -0
- package/dist/utils/theme.d.ts +4 -0
- package/dist/utils/tick.d.ts +3 -3
- package/dist/utils/tooltip/translate.d.ts +9 -25
- package/dist/utils/validate.d.ts +12 -4
- package/package.json +46 -29
- package/dist/animation/Animate.d.ts +0 -72
- package/dist/cartesian/area/ActivePoints.d.ts +0 -77
- package/dist/cartesian/area/ClipRect.d.ts +0 -1
- package/dist/cartesian/area/__stories__/config.d.ts +0 -31
- package/dist/cartesian/area/index.d.ts +0 -2
- package/dist/cartesian/area/utils.d.ts +0 -19
- package/dist/cartesian/axis/index.d.ts +0 -2
- package/dist/cartesian/axis/type.d.ts +0 -57
- package/dist/cartesian/bar/index.d.ts +0 -1
- package/dist/cartesian/bar/utils.d.ts +0 -31
- package/dist/cartesian/brush/hooks/useBrushSetting.d.ts +0 -6
- package/dist/cartesian/brush/index.d.ts +0 -2
- package/dist/cartesian/cartesian-axis/const.d.ts +0 -24
- package/dist/cartesian/cartesian-axis/index.d.ts +0 -1
- package/dist/cartesian/cartesian-axis/use-axis-line.d.ts +0 -7
- package/dist/cartesian/cartesian-grid/index.d.ts +0 -1
- package/dist/cartesian/error-bar/index.d.ts +0 -2
- package/dist/cartesian/funnel/index.d.ts +0 -2
- package/dist/cartesian/funnel/utils.d.ts +0 -12
- package/dist/cartesian/index.d.ts +0 -14
- package/dist/cartesian/line/ActivePoints.d.ts +0 -77
- package/dist/cartesian/line/index.d.ts +0 -3
- package/dist/cartesian/line/utils.d.ts +0 -13
- package/dist/cartesian/reference-area/index.d.ts +0 -1
- package/dist/cartesian/reference-dot/index.d.ts +0 -2
- package/dist/cartesian/reference-line/index.d.ts +0 -1
- package/dist/cartesian/scatter/index.d.ts +0 -1
- package/dist/cartesian/z-axis/index.d.ts +0 -1
- package/dist/chart/LegendPortalContext.d.ts +0 -3
- package/dist/chart/Surface.d.ts +0 -41
- package/dist/chart/TooltipPortalContext.d.ts +0 -2
- package/dist/chart/generateCategoricalChart.d.ts +0 -123
- package/dist/chart/index.d.ts +0 -12
- package/dist/chart/provideClipPathId.d.ts +0 -12
- package/dist/components/DefaultLegendContent.d.ts +0 -18
- package/dist/components/index.d.ts +0 -6
- package/dist/components/label/index.d.ts +0 -2
- package/dist/components/legend/index.d.ts +0 -2
- package/dist/container/RootSurface.d.ts +0 -17
- package/dist/container/index.d.ts +0 -1
- package/dist/context/ChartDataContextProvider.d.ts +0 -17
- package/dist/context/PanoramaContextProvider.d.ts +0 -22
- package/dist/context/accessibilityContext.d.ts +0 -1
- package/dist/context/chartLayoutContext.d.ts +0 -8
- package/dist/context/cursorLayerContext.d.ts +0 -2
- package/dist/context/graphicalLayerContext.d.ts +0 -2
- package/dist/context/labelLayerContext.d.ts +0 -2
- package/dist/context/useTooltipAxis.d.ts +0 -2
- package/dist/es/animation/Animate.mjs +0 -89
- package/dist/es/cartesian/area/ActivePoints.mjs +0 -78
- package/dist/es/cartesian/area/ClipRect.mjs +0 -125
- package/dist/es/cartesian/line/ActivePoints.mjs +0 -79
- package/dist/es/chart/LegendPortalContext.mjs +0 -5
- package/dist/es/chart/Surface.mjs +0 -5
- package/dist/es/chart/Surface.vue_vue_type_script_setup_true_lang.mjs +0 -78
- package/dist/es/chart/TooltipPortalContext.mjs +0 -5
- package/dist/es/chart/generateCategoricalChart.mjs +0 -184
- package/dist/es/chart/provideClipPathId.mjs +0 -15
- package/dist/es/components/Tooltip.mjs +0 -479
- package/dist/es/context/ChartDataContextProvider.mjs +0 -27
- package/dist/es/context/PanoramaContextProvider.mjs +0 -24
- package/dist/es/context/accessibilityContext.mjs +0 -5
- package/dist/es/context/chartLayoutContext.mjs +0 -49
- package/dist/es/context/cursorLayerContext.mjs +0 -5
- package/dist/es/context/graphicalLayerContext.mjs +0 -5
- package/dist/es/context/labelLayerContext.mjs +0 -5
- package/dist/es/context/useTooltipAxis.mjs +0 -17
- package/dist/es/events/useChartSynchronisation.mjs +0 -113
- package/dist/es/hooks/useIsAnimating.mjs +0 -28
- package/dist/es/state/ReportChartProps.mjs +0 -62
- package/dist/es/state/ReportMainChartProps.mjs +0 -46
- package/dist/es/state/ReportPolarOptions.mjs +0 -56
- package/dist/es/state/SetGraphicalItem.mjs +0 -49
- package/dist/es/state/SetLegendPayload.mjs +0 -20
- package/dist/es/state/SetTooltipEntrySettings.mjs +0 -19
- package/dist/es/state/brushSlice.mjs +0 -26
- package/dist/es/state/cartesianAxisSlice.mjs +0 -50
- package/dist/es/state/chartDataSlice.mjs +0 -33
- package/dist/es/state/externalEventsMiddleware.mjs +0 -30
- package/dist/es/state/graphicalItemsSlice.mjs +0 -47
- package/dist/es/state/hooks.mjs +0 -26
- package/dist/es/state/keyboardEventsMiddleware.mjs +0 -63
- package/dist/es/state/layoutSlice.mjs +0 -39
- package/dist/es/state/legendSlice.mjs +0 -42
- package/dist/es/state/mouseEventsMiddleware.mjs +0 -41
- package/dist/es/state/optionsSlice.mjs +0 -25
- package/dist/es/state/polarAxisSlice.mjs +0 -28
- package/dist/es/state/polarOptionsSlice.mjs +0 -13
- package/dist/es/state/reduxDevtoolsJsonStringifyReplacer.mjs +0 -8
- package/dist/es/state/referenceElementsSlice.mjs +0 -36
- package/dist/es/state/rootPropsSlice.mjs +0 -32
- package/dist/es/state/selectors/areaSelectors.mjs +0 -77
- package/dist/es/state/selectors/axisSelectors.mjs +0 -908
- package/dist/es/state/selectors/barSelectors.mjs +0 -241
- package/dist/es/state/selectors/brushSelectors.mjs +0 -18
- package/dist/es/state/selectors/combiners/combineActiveLabel.mjs +0 -9
- package/dist/es/state/selectors/combiners/combineActiveTooltipIndex.mjs +0 -43
- package/dist/es/state/selectors/combiners/combineAxisRangeWithReverse.mjs +0 -8
- package/dist/es/state/selectors/combiners/combineCoordinateForDefaultIndex.mjs +0 -21
- package/dist/es/state/selectors/combiners/combineTooltipInteractionState.mjs +0 -37
- package/dist/es/state/selectors/combiners/combineTooltipPayloadConfigurations.mjs +0 -13
- package/dist/es/state/selectors/common.mjs +0 -4
- package/dist/es/state/selectors/containerSelectors.mjs +0 -7
- package/dist/es/state/selectors/dataSelectors.mjs +0 -35
- package/dist/es/state/selectors/funnelSelectors.mjs +0 -38
- package/dist/es/state/selectors/legendSelectors.mjs +0 -10
- package/dist/es/state/selectors/lineSelectors.mjs +0 -64
- package/dist/es/state/selectors/pickAxisId.mjs +0 -4
- package/dist/es/state/selectors/pickAxisType.mjs +0 -4
- package/dist/es/state/selectors/polarAxisSelectors.mjs +0 -167
- package/dist/es/state/selectors/polarGridSelectors.mjs +0 -19
- package/dist/es/state/selectors/polarScaleSelectors.mjs +0 -55
- package/dist/es/state/selectors/polarSelectors.mjs +0 -81
- package/dist/es/state/selectors/radarSelectors.mjs +0 -133
- package/dist/es/state/selectors/radialBarSelectors.mjs +0 -259
- package/dist/es/state/selectors/rootPropsSelectors.mjs +0 -14
- package/dist/es/state/selectors/scatterSelectors.mjs +0 -134
- package/dist/es/state/selectors/selectActivePropsFromChartPointer.mjs +0 -20
- package/dist/es/state/selectors/selectAllAxes.mjs +0 -10
- package/dist/es/state/selectors/selectChartOffset.mjs +0 -72
- package/dist/es/state/selectors/selectChartOffsetInternal.mjs +0 -66
- package/dist/es/state/selectors/selectLegendArea.mjs +0 -19
- package/dist/es/state/selectors/selectTooltipEventType.mjs +0 -22
- package/dist/es/state/selectors/selectTooltipPayloadSearcher.mjs +0 -6
- package/dist/es/state/selectors/selectTooltipSettings.mjs +0 -4
- package/dist/es/state/selectors/selectTooltipState.mjs +0 -4
- package/dist/es/state/selectors/selectors.mjs +0 -104
- package/dist/es/state/selectors/tooltipSelectors.mjs +0 -269
- package/dist/es/state/selectors/touchSelectors.mjs +0 -19
- package/dist/es/state/store.mjs +0 -55
- package/dist/es/state/tooltipSlice.mjs +0 -102
- package/dist/es/state/touchEventsMiddleware.mjs +0 -44
- package/dist/es/state/utils/useReportScale.mjs +0 -19
- package/dist/es/synchronisation/syncSelectors.mjs +0 -6
- package/dist/es/synchronisation/useChartSynchronisation.mjs +0 -38
- package/dist/es/utils/Global.mjs +0 -18
- package/dist/es/utils/createContext.mjs +0 -31
- package/dist/es/utils/legend.mjs +0 -41
- package/dist/es/utils/props.mjs +0 -20
- package/dist/es/utils/resolveDefaultProps.mjs +0 -26
- package/dist/events/useChartSynchronisation.d.ts +0 -8
- package/dist/hooks/useIsAnimating.d.ts +0 -14
- package/dist/polar/index.d.ts +0 -3
- package/dist/polar/pie/index.d.ts +0 -2
- package/dist/polar/radar/index.d.ts +0 -4
- package/dist/polar/radial-bar/index.d.ts +0 -2
- package/dist/shape/index.d.ts +0 -10
- package/dist/state/ReportBar.d.ts +0 -1
- package/dist/state/ReportChartProps.d.ts +0 -88
- package/dist/state/ReportMainChartProps.d.ts +0 -37
- package/dist/state/ReportPolarOptions.d.ts +0 -59
- package/dist/state/SetGraphicalItem.d.ts +0 -9
- package/dist/state/SetLegendPayload.d.ts +0 -3
- package/dist/state/SetTooltipEntrySettings.d.ts +0 -8
- package/dist/state/brushSlice.d.ts +0 -18
- package/dist/state/cartesianAxisSlice.d.ts +0 -96
- package/dist/state/chartDataSlice.d.ts +0 -44
- package/dist/state/externalEventsMiddleware.d.ts +0 -17
- package/dist/state/graphicalItemsSlice.d.ts +0 -108
- package/dist/state/hooks.d.ts +0 -54
- package/dist/state/keyboardEventsMiddleware.d.ts +0 -3
- package/dist/state/layoutSlice.d.ts +0 -15
- package/dist/state/legendSlice.d.ts +0 -29
- package/dist/state/mouseEventsMiddleware.d.ts +0 -5
- package/dist/state/optionsSlice.d.ts +0 -27
- package/dist/state/polarAxisSlice.d.ts +0 -10
- package/dist/state/polarOptionsSlice.d.ts +0 -10
- package/dist/state/reduxDevtoolsJsonStringifyReplacer.d.ts +0 -1
- package/dist/state/referenceElementsSlice.d.ts +0 -40
- package/dist/state/selectors/areaSelectors.d.ts +0 -24
- package/dist/state/selectors/axisSelectors.d.ts +0 -1833
- package/dist/state/selectors/barSelectors.d.ts +0 -944
- package/dist/state/selectors/brushSelectors.d.ts +0 -10
- package/dist/state/selectors/combiners/combineActiveLabel.d.ts +0 -3
- package/dist/state/selectors/combiners/combineActiveTooltipIndex.d.ts +0 -5
- package/dist/state/selectors/combiners/combineAxisRangeWithReverse.d.ts +0 -3
- package/dist/state/selectors/combiners/combineCoordinateForDefaultIndex.d.ts +0 -3
- package/dist/state/selectors/combiners/combineTooltipInteractionState.d.ts +0 -3
- package/dist/state/selectors/combiners/combineTooltipPayloadConfigurations.d.ts +0 -3
- package/dist/state/selectors/common.d.ts +0 -2
- package/dist/state/selectors/containerSelectors.d.ts +0 -6
- package/dist/state/selectors/dataSelectors.d.ts +0 -23
- package/dist/state/selectors/funnelSelectors.d.ts +0 -69
- package/dist/state/selectors/legendSelectors.d.ts +0 -7
- package/dist/state/selectors/lineSelectors.d.ts +0 -123
- package/dist/state/selectors/pickAxisId.d.ts +0 -3
- package/dist/state/selectors/pickAxisType.d.ts +0 -2
- package/dist/state/selectors/polarAxisSelectors.d.ts +0 -49
- package/dist/state/selectors/polarGridSelectors.d.ts +0 -118
- package/dist/state/selectors/polarScaleSelectors.d.ts +0 -9
- package/dist/state/selectors/polarSelectors.d.ts +0 -70
- package/dist/state/selectors/radarSelectors.d.ts +0 -76
- package/dist/state/selectors/radialBarSelectors.d.ts +0 -61
- package/dist/state/selectors/rootPropsSelectors.d.ts +0 -11
- package/dist/state/selectors/scatterSelectors.d.ts +0 -21
- package/dist/state/selectors/selectActivePropsFromChartPointer.d.ts +0 -382
- package/dist/state/selectors/selectAllAxes.d.ts +0 -4
- package/dist/state/selectors/selectChartOffset.d.ts +0 -116
- package/dist/state/selectors/selectChartOffsetInternal.d.ts +0 -9
- package/dist/state/selectors/selectLegendArea.d.ts +0 -7
- package/dist/state/selectors/selectTooltipEventType.d.ts +0 -8
- package/dist/state/selectors/selectTooltipPayloadSearcher.d.ts +0 -3
- package/dist/state/selectors/selectTooltipSettings.d.ts +0 -3
- package/dist/state/selectors/selectTooltipState.d.ts +0 -3
- package/dist/state/selectors/selectors.d.ts +0 -184
- package/dist/state/selectors/tooltipSelectors.d.ts +0 -581
- package/dist/state/selectors/touchSelectors.d.ts +0 -4
- package/dist/state/store.d.ts +0 -74
- package/dist/state/tooltipSlice.d.ts +0 -204
- package/dist/state/touchEventsMiddleware.d.ts +0 -2
- package/dist/state/utils/useReportScale.d.ts +0 -1
- package/dist/synchronisation/syncSelectors.d.ts +0 -3
- package/dist/synchronisation/useChartSynchronisation.d.ts +0 -11
- package/dist/types/offset.d.ts +0 -8
- package/dist/utils/Global.d.ts +0 -9
- package/dist/utils/context.d.ts +0 -8
- package/dist/utils/createContext.d.ts +0 -8
- package/dist/utils/legend.d.ts +0 -3
- package/dist/utils/props.d.ts +0 -15
- package/dist/utils/resolveDefaultProps.d.ts +0 -52
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from './style';
|
|
2
|
-
export * from './validate';
|
|
3
|
-
export * from './data-utils';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './log';
|
|
1
|
+
export * from './style.js';
|
|
2
|
+
export * from './validate.js';
|
|
3
|
+
export * from './data-utils.js';
|
|
4
|
+
export * from './log.js';
|
|
@@ -1,47 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function isWellFormedNumberDomain(v: unknown): v is NumberDomain;
|
|
3
|
-
export declare function extendDomain(providedDomain: NumberDomain, boundaryDomain: NumberDomain, allowDataOverflow: boolean): NumberDomain;
|
|
4
|
-
/**
|
|
5
|
-
* So Recharts allows users to provide their own domains,
|
|
6
|
-
* but it also places some expectations on what the domain is.
|
|
7
|
-
* We can improve on the typescript typing, but we also need a runtime test
|
|
8
|
-
to observe that the user-provided domain is well-formed,
|
|
9
|
-
* that is: an array with exactly two numbers.
|
|
10
|
-
*
|
|
11
|
-
* This function does not accept data as an argument.
|
|
12
|
-
* This is to enable a performance optimization - if the domain is there,
|
|
13
|
-
* and we know what it is without traversing all the data,
|
|
14
|
-
* then we don't have to traverse all the data!
|
|
15
|
-
*
|
|
16
|
-
* If the user-provided domain is not well-formed,
|
|
17
|
-
* this function will return undefined - in which case we should traverse the data to calculate the real domain.
|
|
18
|
-
*
|
|
19
|
-
* This function is for parsing the numerical domain only.
|
|
20
|
-
*
|
|
21
|
-
* @param userDomain external prop, user provided, before validation. Can have various shapes: array, function, special magical strings inside too.
|
|
22
|
-
* @param allowDataOverflow boolean, provided by users. If true then the data domain wins
|
|
23
|
-
*
|
|
24
|
-
* @return [min, max] domain if it's well-formed; undefined if the domain is invalid
|
|
25
|
-
*/
|
|
26
|
-
export declare function numericalDomainSpecifiedWithoutRequiringData(userDomain: AxisDomain | undefined, allowDataOverflow: boolean): NumberDomain;
|
|
27
|
-
/**
|
|
28
|
-
* So Recharts allows users to provide their own domains,
|
|
29
|
-
* but it also places some expectations on what the domain is.
|
|
30
|
-
* We can improve on the typescript typing, but we also need a runtime test
|
|
31
|
-
* to observe that the user-provided domain is well-formed,
|
|
32
|
-
* that is: an array with exactly two numbers.
|
|
33
|
-
* If the user-provided domain is not well-formed,
|
|
34
|
-
* this function will return undefined - in which case we should traverse the data to calculate the real domain.
|
|
35
|
-
*
|
|
36
|
-
* This function is for parsing the numerical domain only.
|
|
37
|
-
*
|
|
38
|
-
* You are probably thinking, why does domain need tick count?
|
|
39
|
-
* Well it adjusts the domain based on where the "nice ticks" land, and nice ticks depend on the tick count.
|
|
40
|
-
*
|
|
41
|
-
* @param userDomain external prop, user provided, before validation. Can have various shapes: array, function, special magical strings inside too.
|
|
42
|
-
* @param dataDomain calculated from data. Can be undefined, as an option for performance optimization
|
|
43
|
-
* @param allowDataOverflow provided by users. If true then the data domain wins
|
|
44
|
-
*
|
|
45
|
-
* @return [min, max] domain if it's well-formed; undefined if the domain is invalid
|
|
46
|
-
*/
|
|
47
|
-
export declare function parseNumericalUserDomain(userDomain: AxisDomain | undefined, dataDomain: NumberDomain | undefined, allowDataOverflow: boolean): NumberDomain | undefined;
|
|
1
|
+
export { isWellFormedNumberDomain } from '../core/axis/userDomain.js';
|
package/dist/utils/log.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare function warn(condition: boolean, format: string, ...args:
|
|
1
|
+
export declare function warn(condition: boolean, format: string, ...args: unknown[]): void;
|
|
2
|
+
export declare function warnOnce(message: string): void;
|
package/dist/utils/polar.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { PolarViewBoxRequired } from '../
|
|
2
|
-
import { ChartOffset, Coordinate } from '../types';
|
|
1
|
+
import { PolarViewBoxRequired } from '../types/viewBox.js';
|
|
2
|
+
import { ChartOffset, Coordinate } from '../types/index.js';
|
|
3
3
|
export declare const RADIAN: number;
|
|
4
|
-
export declare const radianToDegree: (angleInRadian: number) => number;
|
|
5
|
-
export declare function distanceBetweenPoints(point: Coordinate, anotherPoint: Coordinate): number;
|
|
6
4
|
export declare function formatAngleOfSector({ startAngle, endAngle }: PolarViewBoxRequired): {
|
|
7
5
|
startAngle: number;
|
|
8
6
|
endAngle: number;
|
|
@@ -1,61 +1,2 @@
|
|
|
1
|
-
|
|
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 {};
|
|
1
|
+
export declare const getNiceTickValues: (args_0: [number, number], tickCount?: number | undefined, allowDecimals?: boolean | undefined) => number[];
|
|
2
|
+
export declare const getTickValuesFixedDomain: (args_0: readonly [number, number], tickCount: number, allowDecimals?: boolean | undefined) => number[];
|
|
@@ -8,7 +8,7 @@ import { default as Decimal } from 'decimal.js-light';
|
|
|
8
8
|
* @param {number} value 数值
|
|
9
9
|
* @return {Integer} 位数
|
|
10
10
|
*/
|
|
11
|
-
declare function getDigitCount(value: number):
|
|
11
|
+
declare function getDigitCount(value: number): number;
|
|
12
12
|
/**
|
|
13
13
|
* 按照固定的步长获取[start, end)这个区间的数据
|
|
14
14
|
* 并且需要处理js计算精度的问题
|
|
@@ -18,33 +18,5 @@ declare function getDigitCount(value: number): any;
|
|
|
18
18
|
* @param {Decimal} step 步长
|
|
19
19
|
* @return {Array} 若干数值
|
|
20
20
|
*/
|
|
21
|
-
declare function rangeStep(start: Decimal, end: Decimal, step: Decimal):
|
|
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 };
|
|
21
|
+
declare function rangeStep(start: Decimal, end: Decimal, step: Decimal): number[];
|
|
22
|
+
export { rangeStep, getDigitCount };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
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;
|
|
1
|
+
export declare function range(begin: number, end: number): number[];
|
|
2
|
+
export declare function memoize<Args extends unknown[], Result>(fn: (...args: Args) => Result): (...args: Args) => Result;
|
package/dist/utils/scale.d.ts
CHANGED
package/dist/utils/style.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
1
2
|
/**
|
|
2
3
|
* Converts a style value to a string with 'px' if it's a number
|
|
3
4
|
* @param value The style value to convert
|
|
@@ -9,4 +10,4 @@ export declare function toPx(value: string | number | undefined): string | undef
|
|
|
9
10
|
* @param style The style object to convert
|
|
10
11
|
* @returns A new style object with converted values
|
|
11
12
|
*/
|
|
12
|
-
export declare function normalizeStyle(style?:
|
|
13
|
+
export declare function normalizeStyle(style?: CSSProperties): CSSProperties;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type FilteredSvgElementType = 'svg' | 'polyline' | 'polygon';
|
|
2
|
+
/** map of svg element types to unique svg attributes that belong to that element */
|
|
3
|
+
export declare const FilteredElementKeyMap: Record<FilteredSvgElementType, string[]>;
|
|
4
|
+
export declare const SVGElementPropKeys: string[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const chartThemeTokens: readonly ["--v-charts-focus", "--v-charts-background", "--v-charts-grid", "--v-charts-axis", "--v-charts-text", "--v-charts-muted", "--v-charts-cursor", "--v-charts-tooltip-background", "--v-charts-tooltip-border", "--v-charts-tooltip-foreground", "--v-charts-inactive", "--v-charts-label-foreground", "--v-charts-series", "--v-charts-series-1", "--v-charts-series-2", "--v-charts-series-3", "--v-charts-series-4", "--v-charts-series-5", "--v-charts-series-6", "--v-charts-series-7", "--v-charts-series-8", "--v-charts-status-up", "--v-charts-status-degraded", "--v-charts-status-down", "--v-charts-status-maintenance"];
|
|
2
|
+
export declare function seriesColor(index: number): string;
|
|
3
|
+
/** Default palette labels; themes that replace the palette must set the label token. */
|
|
4
|
+
export declare function seriesForeground(index: number): string;
|
package/dist/utils/tick.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CartesianViewBoxRequired } from '../
|
|
2
|
-
import { Size } from '../types';
|
|
3
|
-
import { CartesianTickItem } from '../types/tick';
|
|
1
|
+
import { CartesianViewBoxRequired } from '../types/viewBox.js';
|
|
2
|
+
import { Size } from '../types/index.js';
|
|
3
|
+
import { CartesianTickItem } from '../types/tick.js';
|
|
4
4
|
export declare function getNumberIntervalTicks(ticks: ReadonlyArray<CartesianTickItem>, interval: number): ReadonlyArray<CartesianTickItem> | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* Given an array and a number N, return a new array which contains every nTh
|
|
@@ -1,33 +1,16 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
import { AllowInDimension, Coordinate } from '../../types';
|
|
3
|
-
import { CartesianViewBox } from '../../
|
|
4
|
-
|
|
5
|
-
export declare function getTooltipCSSClassName({ coordinate, translateX, translateY, }: {
|
|
2
|
+
import { AllowInDimension, Coordinate } from '../../types/index.js';
|
|
3
|
+
import { CartesianViewBox } from '../../types/viewBox.js';
|
|
4
|
+
declare function getTooltipCSSClassName({ coordinate, translateX, translateY, }: {
|
|
6
5
|
translateX: number | undefined;
|
|
7
6
|
translateY: number | undefined;
|
|
8
7
|
coordinate: Partial<Coordinate> | undefined;
|
|
9
8
|
}): (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;
|
|
9
|
+
"v-charts-tooltip-wrapper-right": boolean | undefined;
|
|
10
|
+
"v-charts-tooltip-wrapper-left": boolean | undefined;
|
|
11
|
+
"v-charts-tooltip-wrapper-bottom": boolean | undefined;
|
|
12
|
+
"v-charts-tooltip-wrapper-top": boolean | undefined;
|
|
14
13
|
})[];
|
|
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
14
|
export declare function getTooltipTranslate({ allowEscapeViewBox, coordinate, offsetTopLeft, position, reverseDirection, tooltipBox, useTranslate3d, viewBox, }: {
|
|
32
15
|
allowEscapeViewBox: AllowInDimension;
|
|
33
16
|
coordinate: Coordinate | undefined;
|
|
@@ -42,6 +25,7 @@ export declare function getTooltipTranslate({ allowEscapeViewBox, coordinate, of
|
|
|
42
25
|
viewBox: CartesianViewBox;
|
|
43
26
|
}): {
|
|
44
27
|
cssProperties: CSSProperties;
|
|
45
|
-
cssClasses:
|
|
28
|
+
cssClasses: ReturnType<typeof getTooltipCSSClassName>;
|
|
46
29
|
transform: CSSProperties | undefined;
|
|
47
30
|
};
|
|
31
|
+
export {};
|
package/dist/utils/validate.d.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { LayoutType } from '../types';
|
|
2
|
-
import { AxisType } from '../types/axis';
|
|
3
|
-
export declare function isNan(value:
|
|
1
|
+
import { LayoutType } from '../types/index.js';
|
|
2
|
+
import { AxisType } from '../types/axis.js';
|
|
3
|
+
export declare function isNan(value: unknown): boolean;
|
|
4
4
|
export declare function isNumber(value: unknown): value is number;
|
|
5
|
+
/** Coerce finite numeric data while keeping missing and malformed values missing. */
|
|
6
|
+
export declare function toFiniteNumber(value: unknown): number | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* A value smaller than 1e-300 as zero. No chart can show such a value apart from zero, and a
|
|
9
|
+
* domain that narrow overflows tick and pixel arithmetic (Infinity, division by zero).
|
|
10
|
+
*/
|
|
11
|
+
export declare function flushTiny(value: number): number;
|
|
5
12
|
/**
|
|
6
13
|
* validate the width and height props of a chart element
|
|
7
14
|
* @param {object} el A chart element
|
|
15
|
+
* @param {number} el.width Chart width
|
|
16
|
+
* @param {number} el.height Chart height
|
|
8
17
|
* @return {boolean} true If the props width and height are number, and greater than 0
|
|
9
18
|
*/
|
|
10
19
|
export declare function validateWidthHeight({ width, height }: {
|
|
@@ -17,7 +26,6 @@ export declare function isCategoricalAxis(layout: LayoutType, axisType: AxisType
|
|
|
17
26
|
export declare function isVisible(sign: number, tickPosition: number, getSize: () => number, start: number, end: number): boolean;
|
|
18
27
|
/**
|
|
19
28
|
* Checks if the value is null or undefined
|
|
20
|
-
* @param {any} value The value to check
|
|
21
29
|
* @returns {boolean} true if the value is null or undefined
|
|
22
30
|
*/
|
|
23
31
|
export declare function isNullish(value: unknown): boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vccs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0-beta.2",
|
|
5
5
|
"description": "Composable charting components for Vue 3 — an unofficial port of Recharts",
|
|
6
6
|
"author": "rick-hup",
|
|
7
7
|
"license": "MIT",
|
|
@@ -29,58 +29,75 @@
|
|
|
29
29
|
".": {
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
31
|
"import": "./dist/es/index.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./nuxt": {
|
|
34
|
+
"types": "./dist/nuxt.d.ts",
|
|
35
|
+
"import": "./dist/es/nuxt.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./resolver": {
|
|
38
|
+
"types": "./dist/resolver.d.ts",
|
|
39
|
+
"import": "./dist/es/resolver.mjs"
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
"module": "./dist/es/index.mjs",
|
|
35
43
|
"types": "./dist/index.d.ts",
|
|
44
|
+
"typesVersions": {
|
|
45
|
+
"*": {
|
|
46
|
+
"nuxt": [
|
|
47
|
+
"dist/nuxt.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"resolver": [
|
|
50
|
+
"dist/resolver.d.ts"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
36
54
|
"files": [
|
|
37
55
|
"./LICENSE",
|
|
38
56
|
"./README.md",
|
|
39
|
-
"./dist"
|
|
57
|
+
"./dist/**/*.d.ts",
|
|
58
|
+
"./dist/**/*.mjs"
|
|
40
59
|
],
|
|
41
|
-
"typings": "./dist/index.d.ts",
|
|
42
60
|
"peerDependencies": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
61
|
+
"@nuxt/kit": "^4.0.0",
|
|
62
|
+
"motion-v": "^2.4.0",
|
|
63
|
+
"vue": "^3.5.0"
|
|
64
|
+
},
|
|
65
|
+
"peerDependenciesMeta": {
|
|
66
|
+
"@nuxt/kit": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
45
69
|
},
|
|
46
70
|
"dependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
71
|
+
"@types/d3-sankey": "^0.12.5",
|
|
72
|
+
"@types/d3-shape": "^3.1.7",
|
|
49
73
|
"@vueuse/core": "^13.1.0",
|
|
74
|
+
"d3-color": "^3.1.0",
|
|
50
75
|
"d3-hierarchy": "^3.1.2",
|
|
51
76
|
"d3-sankey": "^0.12.3",
|
|
77
|
+
"d3-scale": "^4.0.2",
|
|
78
|
+
"d3-shape": "^3.2.0",
|
|
52
79
|
"decimal.js-light": "^2.5.1",
|
|
53
|
-
"es-toolkit": "^1.39.3"
|
|
54
|
-
"eventemitter3": "^5.0.1",
|
|
55
|
-
"immer": "^10.1.1",
|
|
56
|
-
"lodash-es": "^4.17.21",
|
|
57
|
-
"victory-vendor": "^37.3.6"
|
|
80
|
+
"es-toolkit": "^1.39.3"
|
|
58
81
|
},
|
|
59
82
|
"devDependencies": {
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
83
|
+
"@nuxt/kit": "^4.4.2",
|
|
84
|
+
"@nuxt/schema": "^4.5.2",
|
|
85
|
+
"@nuxt/test-utils": "^3.21.0",
|
|
86
|
+
"@types/d3-color": "^3.1.3",
|
|
87
|
+
"@types/d3-hierarchy": "^3.1.7",
|
|
88
|
+
"@types/d3-scale": "^4.0.9",
|
|
62
89
|
"@vitejs/plugin-vue-jsx": "^5.0.0",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
90
|
+
"fast-check": "^4.10.2",
|
|
91
|
+
"nuxt": "^4.4.2",
|
|
65
92
|
"vue": "^3.5.13"
|
|
66
93
|
},
|
|
67
|
-
"size-limit": [
|
|
68
|
-
{
|
|
69
|
-
"path": "dist/es/index.mjs",
|
|
70
|
-
"limit": "3.4 kb",
|
|
71
|
-
"ignore": [
|
|
72
|
-
"vue",
|
|
73
|
-
"motion-v"
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
94
|
"scripts": {
|
|
78
95
|
"clean": "rm -rf dist",
|
|
79
96
|
"build": "npm run clean && vite build",
|
|
80
97
|
"dev": "vite build --watch",
|
|
81
98
|
"test": "vitest",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
99
|
+
"size": "size-limit",
|
|
100
|
+
"test:nuxt": "vitest run --config vitest.nuxt.config.ts",
|
|
101
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.json"
|
|
85
102
|
}
|
|
86
103
|
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { AnimationOptions } from 'motion-v';
|
|
3
|
-
declare const Animate: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
isActive: {
|
|
5
|
-
type: BooleanConstructor;
|
|
6
|
-
default: boolean;
|
|
7
|
-
};
|
|
8
|
-
transition: {
|
|
9
|
-
type: PropType<AnimationOptions>;
|
|
10
|
-
default: any;
|
|
11
|
-
};
|
|
12
|
-
onAnimationStart: {
|
|
13
|
-
type: PropType<() => void>;
|
|
14
|
-
default: any;
|
|
15
|
-
};
|
|
16
|
-
onAnimationEnd: {
|
|
17
|
-
type: PropType<() => void>;
|
|
18
|
-
default: any;
|
|
19
|
-
};
|
|
20
|
-
onUpdate: {
|
|
21
|
-
type: PropType<(latest: any) => void>;
|
|
22
|
-
default: any;
|
|
23
|
-
};
|
|
24
|
-
from: {
|
|
25
|
-
type: NumberConstructor;
|
|
26
|
-
default: number;
|
|
27
|
-
};
|
|
28
|
-
to: {
|
|
29
|
-
type: NumberConstructor;
|
|
30
|
-
default: number;
|
|
31
|
-
};
|
|
32
|
-
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
-
isActive: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
transition: {
|
|
40
|
-
type: PropType<AnimationOptions>;
|
|
41
|
-
default: any;
|
|
42
|
-
};
|
|
43
|
-
onAnimationStart: {
|
|
44
|
-
type: PropType<() => void>;
|
|
45
|
-
default: any;
|
|
46
|
-
};
|
|
47
|
-
onAnimationEnd: {
|
|
48
|
-
type: PropType<() => void>;
|
|
49
|
-
default: any;
|
|
50
|
-
};
|
|
51
|
-
onUpdate: {
|
|
52
|
-
type: PropType<(latest: any) => void>;
|
|
53
|
-
default: any;
|
|
54
|
-
};
|
|
55
|
-
from: {
|
|
56
|
-
type: NumberConstructor;
|
|
57
|
-
default: number;
|
|
58
|
-
};
|
|
59
|
-
to: {
|
|
60
|
-
type: NumberConstructor;
|
|
61
|
-
default: number;
|
|
62
|
-
};
|
|
63
|
-
}>> & Readonly<{}>, {
|
|
64
|
-
from: number;
|
|
65
|
-
onUpdate: (latest: any) => void;
|
|
66
|
-
transition: AnimationOptions;
|
|
67
|
-
to: number;
|
|
68
|
-
onAnimationStart: () => void;
|
|
69
|
-
onAnimationEnd: () => void;
|
|
70
|
-
isActive: boolean;
|
|
71
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
72
|
-
export { Animate };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { PropType, SlotsType, VNode } from 'vue';
|
|
2
|
-
import { DataKey, VuePropsToType } from '../../types';
|
|
3
|
-
import { Point } from '../../shape/Curve';
|
|
4
|
-
export interface PointType {
|
|
5
|
-
readonly x: number;
|
|
6
|
-
readonly y: number;
|
|
7
|
-
readonly value?: any;
|
|
8
|
-
readonly payload?: any;
|
|
9
|
-
}
|
|
10
|
-
declare const ActivePointsVueProps: {
|
|
11
|
-
points: {
|
|
12
|
-
type: PropType<ReadonlyArray<Point>>;
|
|
13
|
-
required: boolean;
|
|
14
|
-
};
|
|
15
|
-
mainColor: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
required: boolean;
|
|
18
|
-
};
|
|
19
|
-
itemDataKey: {
|
|
20
|
-
type: PropType<DataKey<any>>;
|
|
21
|
-
required: boolean;
|
|
22
|
-
};
|
|
23
|
-
activeDot: {
|
|
24
|
-
type: PropType<any>;
|
|
25
|
-
required: boolean;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export type ActivePointsProps = VuePropsToType<typeof ActivePointsVueProps>;
|
|
29
|
-
export type ActivePointSlotProps = ActivePointsProps & {
|
|
30
|
-
'cx': number;
|
|
31
|
-
'cy': number;
|
|
32
|
-
'r': 4;
|
|
33
|
-
'fill': string;
|
|
34
|
-
'stroke-width': number;
|
|
35
|
-
'stroke': string;
|
|
36
|
-
'payload': any;
|
|
37
|
-
'value': PointType;
|
|
38
|
-
};
|
|
39
|
-
export type ActivePointsSlots = {
|
|
40
|
-
activeDot?: (props: ActivePointSlotProps) => VNode;
|
|
41
|
-
};
|
|
42
|
-
export declare const ActivePoints: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
43
|
-
points: {
|
|
44
|
-
type: PropType<ReadonlyArray<Point>>;
|
|
45
|
-
required: boolean;
|
|
46
|
-
};
|
|
47
|
-
mainColor: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
required: boolean;
|
|
50
|
-
};
|
|
51
|
-
itemDataKey: {
|
|
52
|
-
type: PropType<DataKey<any>>;
|
|
53
|
-
required: boolean;
|
|
54
|
-
};
|
|
55
|
-
activeDot: {
|
|
56
|
-
type: PropType<any>;
|
|
57
|
-
required: boolean;
|
|
58
|
-
};
|
|
59
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
-
points: {
|
|
61
|
-
type: PropType<ReadonlyArray<Point>>;
|
|
62
|
-
required: boolean;
|
|
63
|
-
};
|
|
64
|
-
mainColor: {
|
|
65
|
-
type: StringConstructor;
|
|
66
|
-
required: boolean;
|
|
67
|
-
};
|
|
68
|
-
itemDataKey: {
|
|
69
|
-
type: PropType<DataKey<any>>;
|
|
70
|
-
required: boolean;
|
|
71
|
-
};
|
|
72
|
-
activeDot: {
|
|
73
|
-
type: PropType<any>;
|
|
74
|
-
required: boolean;
|
|
75
|
-
};
|
|
76
|
-
}>> & Readonly<{}>, {}, SlotsType<ActivePointsSlots>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
77
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ClipRect: import('vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type PageDataType = {
|
|
2
|
-
name: string;
|
|
3
|
-
uv: number;
|
|
4
|
-
pv: number;
|
|
5
|
-
amt: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const rangeData: {
|
|
8
|
-
day: string;
|
|
9
|
-
temperature: number[];
|
|
10
|
-
}[];
|
|
11
|
-
declare const pageData: PageDataType[];
|
|
12
|
-
export declare const pageDataWithNegativeNumbers: PageDataType[];
|
|
13
|
-
declare const numberData: {
|
|
14
|
-
name: string;
|
|
15
|
-
uv: number;
|
|
16
|
-
pv: number;
|
|
17
|
-
}[];
|
|
18
|
-
declare const subjectData: {
|
|
19
|
-
subject: string;
|
|
20
|
-
A: number;
|
|
21
|
-
B: number;
|
|
22
|
-
fullMark: number;
|
|
23
|
-
}[];
|
|
24
|
-
declare const pageDataWithFillColor: {
|
|
25
|
-
name: string;
|
|
26
|
-
uv: number;
|
|
27
|
-
pv: number;
|
|
28
|
-
amt: number;
|
|
29
|
-
fill: string;
|
|
30
|
-
}[];
|
|
31
|
-
export { pageData, numberData, subjectData, pageDataWithFillColor };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ChartData } from '../../state/chartDataSlice';
|
|
2
|
-
import { AreaSettings, ComputedArea } from '../../state/selectors/areaSelectors';
|
|
3
|
-
import { BaseAxisWithScale } from '../../state/selectors/axisSelectors';
|
|
4
|
-
import { TickItem } from '../../types';
|
|
5
|
-
import { BaseValue } from '../../types/area';
|
|
6
|
-
export declare function getBaseValue(layout: 'horizontal' | 'vertical', chartBaseValue: BaseValue | undefined, itemBaseValue: BaseValue | undefined, xAxis: BaseAxisWithScale, yAxis: BaseAxisWithScale): number;
|
|
7
|
-
export declare function computeArea({ areaSettings: { connectNulls, baseValue: itemBaseValue, dataKey }, stackedData, layout, chartBaseValue, xAxis, yAxis, displayedData, dataStartIndex, xAxisTicks, yAxisTicks, bandSize, }: {
|
|
8
|
-
areaSettings: AreaSettings;
|
|
9
|
-
stackedData: number[][];
|
|
10
|
-
layout: 'horizontal' | 'vertical';
|
|
11
|
-
chartBaseValue: BaseValue | undefined;
|
|
12
|
-
xAxis: BaseAxisWithScale;
|
|
13
|
-
yAxis: BaseAxisWithScale;
|
|
14
|
-
displayedData: ChartData;
|
|
15
|
-
dataStartIndex: number;
|
|
16
|
-
xAxisTicks: TickItem[];
|
|
17
|
-
yAxisTicks: TickItem[];
|
|
18
|
-
bandSize: number;
|
|
19
|
-
}): ComputedArea;
|