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/index.d.ts
CHANGED
|
@@ -1,9 +1,130 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
9
|
-
export
|
|
1
|
+
import { SvgTemplateAttributes, WithAttributes } from './utils/attributes.js';
|
|
2
|
+
import { default as ResponsiveContainerComponent } from './container/ResponsiveContainer.js';
|
|
3
|
+
import { default as TextComponent } from './components/Text.js';
|
|
4
|
+
export { Area } from './cartesian/area/Area.js';
|
|
5
|
+
export { XAxis } from './cartesian/axis/XAxis.js';
|
|
6
|
+
export { YAxis } from './cartesian/axis/YAxis.js';
|
|
7
|
+
export { Bar } from './cartesian/bar/Bar.js';
|
|
8
|
+
export { Brush } from './cartesian/brush/Brush.js';
|
|
9
|
+
export { CartesianAxis } from './cartesian/cartesian-axis/CartesianAxis.js';
|
|
10
|
+
export { CartesianGrid } from './cartesian/cartesian-grid/CartesianGrid.js';
|
|
11
|
+
export { ErrorBar } from './cartesian/error-bar/ErrorBar.js';
|
|
12
|
+
export { Funnel } from './cartesian/funnel/Funnel.js';
|
|
13
|
+
export { Line } from './cartesian/line/Line.js';
|
|
14
|
+
export { ReferenceArea } from './cartesian/reference-area/ReferenceArea.js';
|
|
15
|
+
export { ReferenceDot } from './cartesian/reference-dot/ReferenceDot.js';
|
|
16
|
+
export { ReferenceLine } from './cartesian/reference-line/ReferenceLine.js';
|
|
17
|
+
export { Scatter } from './cartesian/scatter/Scatter.js';
|
|
18
|
+
export { ZAxis } from './cartesian/z-axis/ZAxis.js';
|
|
19
|
+
export type { CartesianPosition } from './cartesian/getCartesianPosition.js';
|
|
20
|
+
export type { AreaSlots } from './cartesian/area/Area.js';
|
|
21
|
+
export type { AreaDotSlotProps } from './cartesian/area/type.js';
|
|
22
|
+
export type { BarSlots } from './cartesian/bar/type.js';
|
|
23
|
+
export type { Orientation, Unit } from './cartesian/cartesian-axis/CartesianAxis.js';
|
|
24
|
+
export type { CartesianGridLineSlotProps, CartesianGridSlots } from './cartesian/cartesian-grid/type.js';
|
|
25
|
+
export type { FunnelSlots } from './cartesian/funnel/Funnel.js';
|
|
26
|
+
export type { LineSlots } from './cartesian/line/type.js';
|
|
27
|
+
export type { ReferenceDotShapeProps, ReferenceDotSlots } from './cartesian/reference-dot/ReferenceDot.js';
|
|
28
|
+
export type { FunnelTrapezoidItem } from './types/funnel.js';
|
|
29
|
+
export type { LinePointItem } from './types/line.js';
|
|
30
|
+
export type { TickFormatter } from './types/tick.js';
|
|
31
|
+
export { AreaChart } from './chart/AreaChart.js';
|
|
32
|
+
export { BarChart } from './chart/BarChart.js';
|
|
33
|
+
export { BarList } from './chart/BarList.js';
|
|
34
|
+
export { CalendarHeatmap } from './chart/CalendarHeatmap.js';
|
|
35
|
+
export { CohortChart } from './chart/CohortChart.js';
|
|
36
|
+
export { ComposedChart } from './chart/ComposedChart.js';
|
|
37
|
+
export { FunnelChart } from './chart/FunnelChart.js';
|
|
38
|
+
export { Heatmap } from './chart/Heatmap.js';
|
|
39
|
+
export { JourneySankey } from './chart/JourneySankey.js';
|
|
40
|
+
export { LineChart } from './chart/LineChart.js';
|
|
41
|
+
export { PieChart } from './chart/PieChart.js';
|
|
42
|
+
export { RadarChart } from './chart/RadarChart.js';
|
|
43
|
+
export { RadialBarChart } from './chart/RadialBarChart.js';
|
|
44
|
+
export { Sankey } from './chart/Sankey.js';
|
|
45
|
+
export { ScatterChart } from './chart/ScatterChart.js';
|
|
46
|
+
export { Sparkline } from './chart/Sparkline.js';
|
|
47
|
+
export { SunburstChart } from './chart/SunburstChart.js';
|
|
48
|
+
export { Tracker } from './chart/Tracker.js';
|
|
49
|
+
export { Treemap } from './chart/Treemap.js';
|
|
50
|
+
export type { BarListRow, BarListSlotProps, BarListSlots } from './chart/BarList.js';
|
|
51
|
+
export type { CalendarDay, CalendarHeatmapSlots } from './chart/CalendarHeatmap.js';
|
|
52
|
+
export type { CohortCell, CohortChartSlots } from './chart/CohortChart.js';
|
|
53
|
+
export type { HeatmapCell, HeatmapKey, HeatmapSlots } from './chart/Heatmap.js';
|
|
54
|
+
export type { JourneyHeaderSlotProps, JourneyLabelSlotProps, JourneySankeySlots } from './chart/journeyTypes.js';
|
|
55
|
+
export type { SankeyLinkSlotProps, SankeyNodeSlotProps, SankeySlots } from './chart/Sankey.js';
|
|
56
|
+
export type { SparklineSlots } from './chart/Sparkline.js';
|
|
57
|
+
export type { SunburstContentSlotProps, SunburstSlots } from './chart/SunburstChart.js';
|
|
58
|
+
export type { SunburstData } from './chart/sunburstUtils.js';
|
|
59
|
+
export type { TrackerRow, TrackerSlots } from './chart/Tracker.js';
|
|
60
|
+
export type { TreemapContentSlotProps, TreemapSlots } from './chart/Treemap.js';
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated Charts are responsive by default: remove the wrapper and set `width`, `height`
|
|
63
|
+
* or `aspect` on the chart. Removed in 2.0 (see internals/migrations.md).
|
|
64
|
+
*/
|
|
65
|
+
export declare const ResponsiveContainer: typeof ResponsiveContainerComponent;
|
|
66
|
+
export type { ResponsiveContainerProps } from './container/ResponsiveContainer.js';
|
|
67
|
+
/** SVG text with wrapping and scaling; forwards SVG attributes such as `font-size`. */
|
|
68
|
+
export declare const Text: WithAttributes<typeof TextComponent, SvgTemplateAttributes>;
|
|
69
|
+
export { Cell } from './components/Cell.js';
|
|
70
|
+
export { Customized } from './components/Customized.js';
|
|
71
|
+
export { Label } from './components/label/Label.js';
|
|
72
|
+
export { LabelList } from './components/label/LabelList.js';
|
|
73
|
+
export { default as Legend } from './components/legend/Legend.js';
|
|
74
|
+
export { Tooltip } from './components/tooltip/Tooltip.js';
|
|
75
|
+
export type { CellProps } from './components/Cell.js';
|
|
76
|
+
export type { CustomizedSlotProps, CustomizedSlots } from './components/Customized.js';
|
|
77
|
+
export type { LegendContentProps } from './components/legend/type.js';
|
|
78
|
+
export type { TooltipSlots } from './components/tooltip/Tooltip.js';
|
|
79
|
+
export type { CrossCursorSlotProps, CursorSlotProps, CurveCursorSlotProps, RectangleCursorSlotProps, SectorCursorSlotProps, TooltipContentProps, } from './components/tooltip/types.js';
|
|
80
|
+
export { Pie } from './polar/pie/Pie.js';
|
|
81
|
+
export { PolarAngleAxis } from './polar/radar/PolarAngleAxis.js';
|
|
82
|
+
export { PolarGrid } from './polar/radar/PolarGrid.js';
|
|
83
|
+
export { PolarRadiusAxis } from './polar/radar/PolarRadiusAxis.js';
|
|
84
|
+
export { Radar } from './polar/radar/Radar.js';
|
|
85
|
+
export { RadialBar } from './polar/radial-bar/RadialBar.js';
|
|
86
|
+
export type { PieSlots } from './polar/pie/Pie.js';
|
|
87
|
+
export type { RadarShapeSlotProps, RadarSlots } from './polar/radar/Radar.js';
|
|
88
|
+
export type { RadialBarShapeSlotProps, RadialBarSlots } from './polar/radial-bar/RadialBar.js';
|
|
89
|
+
export { Cross } from './shape/Cross.js';
|
|
90
|
+
export { Curve } from './shape/Curve.js';
|
|
91
|
+
export { Dot } from './shape/Dot.js';
|
|
92
|
+
export { Polygon } from './shape/Polygon.js';
|
|
93
|
+
export { Rectangle } from './shape/Rectangle.js';
|
|
94
|
+
export { Sector } from './shape/Sector.js';
|
|
95
|
+
export { Symbols } from './shape/Symbols.js';
|
|
96
|
+
export { Trapezoid } from './shape/Trapezoid.js';
|
|
97
|
+
export type { CrossProps } from './shape/Cross.js';
|
|
98
|
+
export type { CurveType } from './shape/Curve.js';
|
|
99
|
+
export type { PolygonPoint, PolygonProps } from './shape/Polygon.js';
|
|
100
|
+
export type { SymbolsProps, SymbolType } from './shape/Symbols.js';
|
|
101
|
+
export type { MinPointSize, Point, TrapezoidItem } from './types/shape.js';
|
|
102
|
+
export type * from './publicProps.js';
|
|
103
|
+
export { useIsTooltipActive, useActiveTooltipCoordinate, useActiveTooltipLabel, usePlotArea, useXAxisDomain, useYAxisDomain, useXAxisTicks, useYAxisTicks, useXAxisScale, useYAxisScale, useXAxisInverseScale, useYAxisInverseScale, useXAxisInverseDataSnapScale, useYAxisInverseDataSnapScale, useXAxisInverseTickSnapScale, useYAxisInverseTickSnapScale, useCartesianScale, useChartWidth, useChartHeight, useMargin, } from './hooks/publicHooks.js';
|
|
104
|
+
export type { InverseScaleFunction, ScaleFunction, CartesianDataPoint } from './hooks/publicHooks.js';
|
|
105
|
+
export { useActiveTooltipDataPoints } from './hooks/useActiveTooltipDataPoints.js';
|
|
106
|
+
export { chartThemeTokens } from './utils/theme.js';
|
|
107
|
+
export type { ChartTransition } from './animation/motion.js';
|
|
108
|
+
export type { ChartPointerState } from './events/componentEvents.js';
|
|
109
|
+
export type { TreemapLayoutNode } from './chart/treemapUtils.js';
|
|
110
|
+
export type { SankeyLayoutNode, SankeyLayoutLink } from './chart/sankeyUtils.js';
|
|
111
|
+
export type { GridCell } from './chart/cellGridUtils.js';
|
|
112
|
+
export type { JourneyInput, JourneyLink, JourneyNode, JourneyStep } from './chart/journeyUtils.js';
|
|
113
|
+
export type { CellSlotProps } from './chart/CellGridLayer.js';
|
|
114
|
+
export type { BarRectangleItem } from './types/bar.js';
|
|
115
|
+
export type { AreaPointItem } from './core/area.js';
|
|
116
|
+
export type { ScatterPointItem } from './types/common.js';
|
|
117
|
+
export type { PieSectorDataItem } from './core/pie.js';
|
|
118
|
+
export type { RadarPoint } from './types/radar.js';
|
|
119
|
+
export type { RadialBarDataItem } from './types/radialBar.js';
|
|
120
|
+
export type { BrushStartEndIndex } from './types/chartData.js';
|
|
121
|
+
export type { LegendPayload } from './types/legend.js';
|
|
122
|
+
export type { LegendBoundingBox } from './components/legend/Legend.js';
|
|
123
|
+
export type { BrushIndex } from './cartesian/brush/type.js';
|
|
124
|
+
export type { TooltipActiveIndex } from './types/tooltip.js';
|
|
125
|
+
export type { LegendHidden } from './components/legend/type.js';
|
|
126
|
+
export { defineChartComponents } from './typed.js';
|
|
127
|
+
export type { RowDataKey } from './types/typed.js';
|
|
128
|
+
export type { TypedComponents, TypedTooltipContentProps, TypedTooltipPayload, TypedLegendPayload, } from './typed.js';
|
|
129
|
+
export type { TooltipPayloadEntry, TooltipPayload } from './types/tooltip.js';
|
|
130
|
+
export type { AxisProps } from './cartesian/axis/AxisProps.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChartTransition } from '../animation/motion.js';
|
|
2
|
+
export interface ChartAnimation {
|
|
3
|
+
isAnimationActive?: boolean;
|
|
4
|
+
transition?: ChartTransition;
|
|
5
|
+
}
|
|
6
|
+
export declare function provideChartAnimation(props: ChartAnimation): void;
|
|
7
|
+
export declare function useChartAnimation(): ChartAnimation;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createAxisLayout } from './axisLayout.js';
|
|
2
|
+
import { AxisModel, AxisScaleSources } from './axisScale.js';
|
|
3
|
+
import { createPolarAxis } from './polarAxis.js';
|
|
4
|
+
import { createChartData } from './dataRange.js';
|
|
5
|
+
import { PolarLayout } from './polar.js';
|
|
6
|
+
import { EffectScope } from 'vue';
|
|
7
|
+
import { AxisId, AxisType } from '../types/axis.js';
|
|
8
|
+
import { XAxisSettings, YAxisSettings, ZAxisSettings } from '../types/axisSettings.js';
|
|
9
|
+
import { LayoutType, StackOffsetType } from '../types/common.js';
|
|
10
|
+
import { ChartRegistries } from './registries.js';
|
|
11
|
+
interface AxisModels {
|
|
12
|
+
angleAxis: ReturnType<typeof createPolarAxis>;
|
|
13
|
+
radiusAxis: ReturnType<typeof createPolarAxis>;
|
|
14
|
+
xAxis: AxisModel<XAxisSettings> & ReturnType<typeof createAxisLayout>;
|
|
15
|
+
yAxis: AxisModel<YAxisSettings> & ReturnType<typeof createAxisLayout>;
|
|
16
|
+
zAxis: AxisModel<ZAxisSettings>;
|
|
17
|
+
}
|
|
18
|
+
interface AxisSources extends AxisScaleSources, Pick<ChartRegistries, 'items' | 'axes' | 'references'> {
|
|
19
|
+
size: () => import('../types/common.js').Size;
|
|
20
|
+
barCategoryGap: () => number | string;
|
|
21
|
+
polarLayout: PolarLayout;
|
|
22
|
+
dataRange: ReturnType<typeof createChartData>;
|
|
23
|
+
layout: () => LayoutType;
|
|
24
|
+
stackOffset: () => StackOffsetType;
|
|
25
|
+
reverseStackOrder: () => boolean;
|
|
26
|
+
}
|
|
27
|
+
export type AxisLookup = <T extends AxisType>(type: T, id: AxisId) => AxisModels[T];
|
|
28
|
+
export declare function createAxes(scope: EffectScope, sources: AxisSources): AxisLookup;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { AxisId } from '../types/axis.js';
|
|
3
|
+
import { Size } from '../types/common.js';
|
|
4
|
+
import { XAxisSettings, YAxisSettings } from '../types/axisSettings.js';
|
|
5
|
+
import { AxisScaleModel, AxisScaleSources } from './axisScale.js';
|
|
6
|
+
import { ChartRegistries } from './registries.js';
|
|
7
|
+
export declare function createAxisLayout<S extends XAxisSettings | YAxisSettings>(sources: AxisScaleSources & Pick<ChartRegistries, 'axes'> & {
|
|
8
|
+
size: () => Size;
|
|
9
|
+
}, axis: AxisScaleModel<S> & {
|
|
10
|
+
settings: ComputedRef<S>;
|
|
11
|
+
}, type: 'xAxis' | 'yAxis', id: AxisId): {
|
|
12
|
+
size: ComputedRef<{
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}>;
|
|
16
|
+
position: ComputedRef<{
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}>;
|
|
20
|
+
grid: ComputedRef<{
|
|
21
|
+
axisType: "xAxis" | "yAxis";
|
|
22
|
+
categoricalDomain: readonly unknown[] | undefined;
|
|
23
|
+
duplicateDomain: readonly unknown[] | undefined;
|
|
24
|
+
isCategorical: boolean;
|
|
25
|
+
niceTicks: readonly number[] | undefined;
|
|
26
|
+
range: import('../types/axis.js').AxisRange | undefined;
|
|
27
|
+
realScaleType: string | undefined;
|
|
28
|
+
scale: import('../types/scale.js').RechartsScale;
|
|
29
|
+
angle: number;
|
|
30
|
+
interval: import('../types/axis.js').AxisInterval;
|
|
31
|
+
tickFormatter: import('../index.js').TickFormatter | undefined;
|
|
32
|
+
unit: string | undefined;
|
|
33
|
+
allowDecimals: boolean;
|
|
34
|
+
ticks: ReadonlyArray<import('../types/tick.js').AxisTick> | undefined;
|
|
35
|
+
id?: AxisId | undefined;
|
|
36
|
+
type: "number" | "category";
|
|
37
|
+
dataKey: import('../types/base.js').ChartDataKey | undefined;
|
|
38
|
+
name: string | undefined;
|
|
39
|
+
allowDuplicatedCategory: boolean;
|
|
40
|
+
allowDataOverflow: boolean;
|
|
41
|
+
reversed: boolean;
|
|
42
|
+
includeHidden: boolean;
|
|
43
|
+
domain: import('../types/axis.js').AxisDomain | undefined;
|
|
44
|
+
mirror: boolean;
|
|
45
|
+
minTickGap: number;
|
|
46
|
+
hide: boolean;
|
|
47
|
+
tickCount: number | undefined;
|
|
48
|
+
tick: import('vue').SVGAttributes | boolean;
|
|
49
|
+
padding: import('../types/axis.js').XAxisPadding;
|
|
50
|
+
height: number;
|
|
51
|
+
orientation: import('../types/axis.js').XAxisOrientation;
|
|
52
|
+
} | {
|
|
53
|
+
axisType: "xAxis" | "yAxis";
|
|
54
|
+
categoricalDomain: readonly unknown[] | undefined;
|
|
55
|
+
duplicateDomain: readonly unknown[] | undefined;
|
|
56
|
+
isCategorical: boolean;
|
|
57
|
+
niceTicks: readonly number[] | undefined;
|
|
58
|
+
range: import('../types/axis.js').AxisRange | undefined;
|
|
59
|
+
realScaleType: string | undefined;
|
|
60
|
+
scale: import('../types/scale.js').RechartsScale;
|
|
61
|
+
angle: number;
|
|
62
|
+
interval: import('../types/axis.js').AxisInterval;
|
|
63
|
+
tickFormatter: import('../index.js').TickFormatter | undefined;
|
|
64
|
+
unit: string | undefined;
|
|
65
|
+
allowDecimals: boolean;
|
|
66
|
+
ticks: ReadonlyArray<import('../types/tick.js').AxisTick> | undefined;
|
|
67
|
+
id?: AxisId | undefined;
|
|
68
|
+
type: "number" | "category";
|
|
69
|
+
dataKey: import('../types/base.js').ChartDataKey | undefined;
|
|
70
|
+
name: string | undefined;
|
|
71
|
+
allowDuplicatedCategory: boolean;
|
|
72
|
+
allowDataOverflow: boolean;
|
|
73
|
+
reversed: boolean;
|
|
74
|
+
includeHidden: boolean;
|
|
75
|
+
domain: import('../types/axis.js').AxisDomain | undefined;
|
|
76
|
+
mirror: boolean;
|
|
77
|
+
minTickGap: number;
|
|
78
|
+
hide: boolean;
|
|
79
|
+
tickCount: number | undefined;
|
|
80
|
+
tick: import('vue').SVGAttributes | boolean;
|
|
81
|
+
padding: import('../types/axis.js').YAxisPadding;
|
|
82
|
+
orientation: import('../types/axis.js').YAxisOrientation;
|
|
83
|
+
width: number | "auto";
|
|
84
|
+
}>;
|
|
85
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { StackGroup } from '../core/axis/stacks.js';
|
|
2
|
+
import { AppliedChartData, ChartData } from '../types/chartData.js';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
import { AxisRange, AxisType, BaseCartesianAxis, NumberDomain } from '../types/axis.js';
|
|
5
|
+
import { CategoricalDomain } from '../types/categorical.js';
|
|
6
|
+
import { ChartOffsetRequired, LayoutType } from '../types/common.js';
|
|
7
|
+
import { TicksSettings } from '../types/axisSettings.js';
|
|
8
|
+
import { ChartCapabilities } from './options.js';
|
|
9
|
+
export interface AxisScaleSources {
|
|
10
|
+
layout: () => LayoutType;
|
|
11
|
+
categoryScale: () => ChartCapabilities['categoryScale'];
|
|
12
|
+
hasBar: () => boolean;
|
|
13
|
+
offset: () => ChartOffsetRequired;
|
|
14
|
+
}
|
|
15
|
+
export declare function createAxisScale<S extends BaseCartesianAxis & Partial<TicksSettings>>(sources: AxisScaleSources, type: AxisType, settings: ComputedRef<S>, domain: ComputedRef<NumberDomain | CategoricalDomain | undefined>, appliedValues: ComputedRef<AppliedChartData>, range: ComputedRef<AxisRange | undefined>): {
|
|
16
|
+
realScaleType: ComputedRef<string | undefined>;
|
|
17
|
+
niceTicks: ComputedRef<readonly number[] | undefined>;
|
|
18
|
+
range: ComputedRef<AxisRange | undefined>;
|
|
19
|
+
reversedRange: ComputedRef<AxisRange | undefined>;
|
|
20
|
+
scale: ComputedRef<import('../types/scale.js').RechartsScale | undefined>;
|
|
21
|
+
duplicateDomain: ComputedRef<readonly unknown[] | undefined>;
|
|
22
|
+
categoricalDomain: ComputedRef<readonly unknown[] | undefined>;
|
|
23
|
+
ticks: ComputedRef<readonly import('../types/common.js').TickItem[] | undefined>;
|
|
24
|
+
graphicalTicks: ComputedRef<import('../types/common.js').TickItem[] | null>;
|
|
25
|
+
tooltipTicks: ComputedRef<readonly import('../types/common.js').TickItem[] | null>;
|
|
26
|
+
withScale: ComputedRef<(S & {
|
|
27
|
+
scale: import('../types/scale.js').RechartsScale;
|
|
28
|
+
}) | undefined>;
|
|
29
|
+
bandSize: ComputedRef<number | undefined>;
|
|
30
|
+
barBandSize: ComputedRef<number | undefined>;
|
|
31
|
+
inverseScale: ComputedRef<import('../utils/createCategoricalInverse.js').InverseScaleFunction | undefined>;
|
|
32
|
+
inverseDataScale: ComputedRef<import('../utils/createCategoricalInverse.js').InverseScaleFunction | undefined>;
|
|
33
|
+
inverseTickScale: ComputedRef<((pixel: number) => unknown) | undefined>;
|
|
34
|
+
};
|
|
35
|
+
export type AxisScaleModel<S extends BaseCartesianAxis & Partial<TicksSettings> = BaseCartesianAxis> = ReturnType<typeof createAxisScale<S>>;
|
|
36
|
+
export interface AxisModel<S extends BaseCartesianAxis = BaseCartesianAxis> extends AxisScaleModel<S> {
|
|
37
|
+
readonly settings: ComputedRef<S>;
|
|
38
|
+
readonly displayedData: ComputedRef<ChartData>;
|
|
39
|
+
readonly stackGroups: ComputedRef<Record<string, StackGroup>>;
|
|
40
|
+
readonly domain: ComputedRef<NumberDomain | CategoricalDomain | undefined>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Padding } from '../types/index.js';
|
|
2
|
+
import { BrushStartEndIndex } from '../types/chartData.js';
|
|
3
|
+
export interface BrushSettings {
|
|
4
|
+
x: number | undefined;
|
|
5
|
+
y: number | undefined;
|
|
6
|
+
width: number | undefined;
|
|
7
|
+
height: number;
|
|
8
|
+
padding: Padding;
|
|
9
|
+
/** The Brush's requested window: its controlled `range` or its own state; `null` = all rows. */
|
|
10
|
+
range: BrushStartEndIndex | null;
|
|
11
|
+
onRangeChange?: (range: BrushStartEndIndex) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function createChartBrush(): {
|
|
14
|
+
state: import('vue').ComputedRef<BrushSettings>;
|
|
15
|
+
range: import('vue').ComputedRef<BrushStartEndIndex | null | undefined>;
|
|
16
|
+
register: (entry: Readonly<import('vue').Ref<BrushSettings | undefined, BrushSettings | undefined>>) => void;
|
|
17
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createTooltip } from './tooltip.js';
|
|
2
|
+
import { createPolarLayout } from './polar.js';
|
|
3
|
+
import { AxisLookup } from './axis.js';
|
|
4
|
+
import { createChartData } from './dataRange.js';
|
|
5
|
+
import { ChartGeometry } from './layout.js';
|
|
6
|
+
import { createChartBrush } from './brush.js';
|
|
7
|
+
import { createChartLegend } from './legend.js';
|
|
8
|
+
import { ChartRegistries } from './registries.js';
|
|
9
|
+
import { ComputedRef } from 'vue';
|
|
10
|
+
import { LayoutType, Margin, Size } from '../types/index.js';
|
|
11
|
+
import { CartesianViewBoxRequired } from '../types/viewBox.js';
|
|
12
|
+
import { ChartData } from '../types/chartData.js';
|
|
13
|
+
import { ChartFrame } from '../types/chartLayout.js';
|
|
14
|
+
import { ChartOptions } from './options.js';
|
|
15
|
+
import { PolarChartOptions } from '../types/polarOptions.js';
|
|
16
|
+
import { UpdatableChartOptions } from '../types/chartOptions.js';
|
|
17
|
+
export interface ChartInputs {
|
|
18
|
+
data: () => ChartData | undefined;
|
|
19
|
+
layout: () => LayoutType;
|
|
20
|
+
size: () => Size;
|
|
21
|
+
margin: () => Margin;
|
|
22
|
+
options: () => UpdatableChartOptions;
|
|
23
|
+
polar: () => PolarChartOptions | null;
|
|
24
|
+
tooltip: () => Omit<ChartOptions, 'eventEmitter'>;
|
|
25
|
+
}
|
|
26
|
+
export interface Chart extends ChartRegistries, ChartGeometry {
|
|
27
|
+
readonly legendArea: ComputedRef<CartesianViewBoxRequired>;
|
|
28
|
+
readonly direction: ComputedRef<string | undefined>;
|
|
29
|
+
readonly tooltip: ReturnType<typeof createTooltip>;
|
|
30
|
+
readonly polarLayout: ReturnType<typeof createPolarLayout>;
|
|
31
|
+
readonly axis: AxisLookup;
|
|
32
|
+
readonly dataRange: ReturnType<typeof createChartData>;
|
|
33
|
+
readonly inputs: ChartInputs;
|
|
34
|
+
readonly data: ComputedRef<ChartData | undefined>;
|
|
35
|
+
readonly layout: ComputedRef<ChartFrame>;
|
|
36
|
+
readonly options: ComputedRef<UpdatableChartOptions>;
|
|
37
|
+
readonly polar: ComputedRef<PolarChartOptions | null>;
|
|
38
|
+
readonly tooltipOptions: ComputedRef<ChartOptions>;
|
|
39
|
+
readonly brush: ReturnType<typeof createChartBrush>;
|
|
40
|
+
readonly legend: ReturnType<typeof createChartLegend>;
|
|
41
|
+
}
|
|
42
|
+
export declare function createChart(inputs: ChartInputs): Chart;
|
|
43
|
+
export declare function provideChart(chart: Chart): void;
|
|
44
|
+
export declare function useChart(): Chart;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BrushStartEndIndex, ChartData } from '../types/chartData.js';
|
|
2
|
+
/**
|
|
3
|
+
* The displayed row window. A registered Brush owns it (`null` = all rows); without a Brush the
|
|
4
|
+
* chart follows the last range received from a synchronised peer. `undefined` from `brushRange`
|
|
5
|
+
* means no Brush is registered.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createChartData(source: () => ChartData | undefined, brushRange?: () => BrushStartEndIndex | null | undefined): {
|
|
8
|
+
state: import('vue').ComputedRef<{
|
|
9
|
+
chartData: ChartData | undefined;
|
|
10
|
+
dataStartIndex: number;
|
|
11
|
+
dataEndIndex: number;
|
|
12
|
+
}>;
|
|
13
|
+
receiveSyncedRange: (value: BrushStartEndIndex) => void;
|
|
14
|
+
displayedData: <T extends readonly unknown[]>(item: {
|
|
15
|
+
data?: T;
|
|
16
|
+
}, range?: "brush" | "all") => ChartData | T | undefined;
|
|
17
|
+
tooltipData: (itemData: unknown) => unknown;
|
|
18
|
+
};
|
|
19
|
+
export declare function normalizeBrushRange(value: BrushStartEndIndex | null, length: number): BrushStartEndIndex | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LayoutType, Margin } from '../types/index.js';
|
|
2
|
+
import { UpdatableChartOptions } from '../types/chartOptions.js';
|
|
3
|
+
import { PolarChartOptions } from '../types/polarOptions.js';
|
|
4
|
+
export declare const chartDefaults: UpdatableChartOptions & PolarChartOptions & {
|
|
5
|
+
layout: LayoutType;
|
|
6
|
+
margin: Margin;
|
|
7
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChartFrame } from '../types/chartLayout.js';
|
|
2
|
+
import { BrushSettings } from './brush.js';
|
|
3
|
+
import { LegendSettings } from './legend.js';
|
|
4
|
+
import { Size } from '../types/common.js';
|
|
5
|
+
import { ChartRegistries } from './registries.js';
|
|
6
|
+
interface LayoutSources {
|
|
7
|
+
layout: () => ChartFrame;
|
|
8
|
+
brush: () => BrushSettings;
|
|
9
|
+
legendSettings: () => LegendSettings;
|
|
10
|
+
legendSize: () => Size;
|
|
11
|
+
axes: ChartRegistries['axes'];
|
|
12
|
+
}
|
|
13
|
+
export declare function createLayout(sources: LayoutSources): {
|
|
14
|
+
width: import('vue').ComputedRef<number>;
|
|
15
|
+
height: import('vue').ComputedRef<number>;
|
|
16
|
+
margin: import('vue').ComputedRef<import('../types/common.js').Margin>;
|
|
17
|
+
offset: import('vue').ComputedRef<import('../types/common.js').ChartOffset>;
|
|
18
|
+
viewBox: import('vue').ComputedRef<{
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
}>;
|
|
24
|
+
axisViewBox: import('vue').ComputedRef<{
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
}>;
|
|
30
|
+
brushDimensions: import('vue').ComputedRef<{
|
|
31
|
+
height: number;
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
width: number;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
export type ChartGeometry = ReturnType<typeof createLayout>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HorizontalAlignmentType, LegendPayload, VerticalAlignmentType } from '../types/legend.js';
|
|
2
|
+
import { CartesianPosition } from '../cartesian/getCartesianPosition.js';
|
|
3
|
+
import { LayoutType, Size } from '../types/index.js';
|
|
4
|
+
export interface LegendSettings {
|
|
5
|
+
layout: LayoutType;
|
|
6
|
+
align: HorizontalAlignmentType;
|
|
7
|
+
verticalAlign: VerticalAlignmentType;
|
|
8
|
+
position?: CartesianPosition;
|
|
9
|
+
offset?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function createChartLegend(): {
|
|
12
|
+
state: import('vue').ComputedRef<{
|
|
13
|
+
settings: LegendSettings;
|
|
14
|
+
hidden: Set<string>;
|
|
15
|
+
size: Size;
|
|
16
|
+
}>;
|
|
17
|
+
entries: import('./registry.js').Registry<readonly LegendPayload[]>;
|
|
18
|
+
payload: import('vue').ComputedRef<LegendPayload[]>;
|
|
19
|
+
register: (entry: Readonly<import('vue').Ref<{
|
|
20
|
+
settings: LegendSettings;
|
|
21
|
+
hidden: readonly string[] | undefined;
|
|
22
|
+
size: Size | undefined;
|
|
23
|
+
} | undefined, {
|
|
24
|
+
settings: LegendSettings;
|
|
25
|
+
hidden: readonly string[] | undefined;
|
|
26
|
+
size: Size | undefined;
|
|
27
|
+
} | undefined>>) => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TooltipPayloadSearcher } from '../types/tooltip.js';
|
|
2
|
+
import { TooltipEventType } from '../types/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* What a chart root draws, declared by the chart instead of read from its name, so a chart
|
|
5
|
+
* defined with another name behaves the same.
|
|
6
|
+
*/
|
|
7
|
+
export interface ChartCapabilities {
|
|
8
|
+
/**
|
|
9
|
+
* Scale of a category axis with `scale="auto"`: `point` (Line, Area), `band` (Bar), or `auto`,
|
|
10
|
+
* which is point unless the chart holds a Bar.
|
|
11
|
+
*/
|
|
12
|
+
categoryScale: 'point' | 'band' | 'auto';
|
|
13
|
+
/** Axis tooltip cursor: a line (a sector in radial layout), a band rectangle, or a cross. */
|
|
14
|
+
cursor: 'line' | 'rect' | 'cross';
|
|
15
|
+
/** Connected series the chart draws; Line and Area render only where listed. */
|
|
16
|
+
series: ReadonlyArray<'line' | 'area'>;
|
|
17
|
+
}
|
|
18
|
+
export declare const defaultChartCapabilities: ChartCapabilities;
|
|
19
|
+
/** Internal options remain fixed for the lifetime of a chart root. */
|
|
20
|
+
export type ChartOptions = {
|
|
21
|
+
chartName: string;
|
|
22
|
+
capabilities: ChartCapabilities;
|
|
23
|
+
defaultTooltipEventType: TooltipEventType;
|
|
24
|
+
validateTooltipEventTypes?: ReadonlyArray<TooltipEventType>;
|
|
25
|
+
tooltipPayloadSearcher?: TooltipPayloadSearcher;
|
|
26
|
+
/**
|
|
27
|
+
* Identifies the sending chart when synchronising, so a chart ignores its own broadcasts.
|
|
28
|
+
*/
|
|
29
|
+
eventEmitter: symbol | undefined;
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ChartOffsetRequired, LayoutType, Size } from '../types/common.js';
|
|
2
|
+
import { PolarChartOptions } from '../types/polarOptions.js';
|
|
3
|
+
export declare function createPolarLayout(sources: {
|
|
4
|
+
layout: () => LayoutType;
|
|
5
|
+
size: () => Size;
|
|
6
|
+
offset: () => ChartOffsetRequired;
|
|
7
|
+
polar: () => PolarChartOptions | null;
|
|
8
|
+
}): {
|
|
9
|
+
maxRadius: import('vue').ComputedRef<number>;
|
|
10
|
+
innerRadius: import('vue').ComputedRef<number | undefined>;
|
|
11
|
+
outerRadius: import('vue').ComputedRef<number | undefined>;
|
|
12
|
+
angleRange: import('vue').ComputedRef<readonly [number, number]>;
|
|
13
|
+
radiusRange: import('vue').ComputedRef<readonly [number, number] | undefined>;
|
|
14
|
+
viewBox: import('vue').ComputedRef<{
|
|
15
|
+
cx: number;
|
|
16
|
+
cy: number;
|
|
17
|
+
innerRadius: number;
|
|
18
|
+
outerRadius: number;
|
|
19
|
+
startAngle: number;
|
|
20
|
+
endAngle: number;
|
|
21
|
+
clockWise: boolean;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
};
|
|
24
|
+
export type PolarLayout = ReturnType<typeof createPolarLayout>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AxisId } from '../types/axis.js';
|
|
2
|
+
import { AngleAxisSettings } from '../types/axisSettings.js';
|
|
3
|
+
import { StackOffsetType } from '../types/common.js';
|
|
4
|
+
import { ChartRegistries } from './registries.js';
|
|
5
|
+
import { AxisScaleSources } from './axisScale.js';
|
|
6
|
+
import { createChartData } from './dataRange.js';
|
|
7
|
+
import { PolarLayout } from './polar.js';
|
|
8
|
+
export declare function createPolarAxis(sources: AxisScaleSources & Pick<ChartRegistries, 'items' | 'axes'> & {
|
|
9
|
+
dataRange: ReturnType<typeof createChartData>;
|
|
10
|
+
stackOffset: () => StackOffsetType;
|
|
11
|
+
reverseStackOrder: () => boolean;
|
|
12
|
+
polarLayout: PolarLayout;
|
|
13
|
+
}, type: 'angleAxis' | 'radiusAxis', id: AxisId): {
|
|
14
|
+
realScaleType: import('vue').ComputedRef<string | undefined>;
|
|
15
|
+
niceTicks: import('vue').ComputedRef<readonly number[] | undefined>;
|
|
16
|
+
range: import('vue').ComputedRef<import('../types/axis.js').AxisRange | undefined>;
|
|
17
|
+
reversedRange: import('vue').ComputedRef<import('../types/axis.js').AxisRange | undefined>;
|
|
18
|
+
scale: import('vue').ComputedRef<import('../types/scale.js').RechartsScale | undefined>;
|
|
19
|
+
duplicateDomain: import('vue').ComputedRef<readonly unknown[] | undefined>;
|
|
20
|
+
categoricalDomain: import('vue').ComputedRef<readonly unknown[] | undefined>;
|
|
21
|
+
ticks: import('vue').ComputedRef<readonly import('../types/common.js').TickItem[] | undefined>;
|
|
22
|
+
graphicalTicks: import('vue').ComputedRef<import('../types/common.js').TickItem[] | null>;
|
|
23
|
+
tooltipTicks: import('vue').ComputedRef<readonly import('../types/common.js').TickItem[] | null>;
|
|
24
|
+
withScale: import('vue').ComputedRef<(import('../types/axis.js').BaseCartesianAxis & Omit<import('../types/tick.js').TicksSettings, "tick" | "tickCount"> & {
|
|
25
|
+
tickCount: number | undefined;
|
|
26
|
+
tick: import('vue').SVGAttributes | boolean;
|
|
27
|
+
} & {
|
|
28
|
+
scale: import('../types/scale.js').RechartsScale;
|
|
29
|
+
}) | undefined>;
|
|
30
|
+
bandSize: import('vue').ComputedRef<number | undefined>;
|
|
31
|
+
barBandSize: import('vue').ComputedRef<number | undefined>;
|
|
32
|
+
inverseScale: import('vue').ComputedRef<import('../index.js').InverseScaleFunction | undefined>;
|
|
33
|
+
inverseDataScale: import('vue').ComputedRef<import('../index.js').InverseScaleFunction | undefined>;
|
|
34
|
+
inverseTickScale: import('vue').ComputedRef<((pixel: number) => unknown) | undefined>;
|
|
35
|
+
settings: import('vue').ComputedRef<AngleAxisSettings>;
|
|
36
|
+
displayedData: import('vue').ComputedRef<import('../types/chartData.js').ChartData>;
|
|
37
|
+
stackGroups: import('vue').ComputedRef<Record<import('../types/tick.js').StackId, import('../core/axis/stacks.js').StackGroup>>;
|
|
38
|
+
domain: import('vue').ComputedRef<import('../types/axis.js').NumberDomain | import('../types/index.js').CategoricalDomain | undefined>;
|
|
39
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { CartesianViewBoxRequired } from '../types/viewBox.js';
|
|
3
|
+
import { ChartOffsetRequired, LayoutType, Margin } from '../types/index.js';
|
|
4
|
+
import { ChartCapabilities } from './options.js';
|
|
5
|
+
export interface ChartPresentation {
|
|
6
|
+
capabilities: ComputedRef<ChartCapabilities>;
|
|
7
|
+
layout: ComputedRef<LayoutType>;
|
|
8
|
+
width: ComputedRef<number>;
|
|
9
|
+
height: ComputedRef<number>;
|
|
10
|
+
margin: ComputedRef<Margin>;
|
|
11
|
+
viewBox: ComputedRef<CartesianViewBoxRequired>;
|
|
12
|
+
offset: ComputedRef<ChartOffsetRequired>;
|
|
13
|
+
accessibility: ComputedRef<boolean>;
|
|
14
|
+
bandSize: ComputedRef<number | undefined>;
|
|
15
|
+
syncId: ComputedRef<string | number | undefined>;
|
|
16
|
+
emitter: ComputedRef<symbol | undefined>;
|
|
17
|
+
}
|
|
18
|
+
export declare function provideChartPresentation(presentation: ChartPresentation): void;
|
|
19
|
+
export declare function useChartPresentation(): ChartPresentation;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AngleAxisSettings, RadiusAxisSettings, XAxisSettings, YAxisSettings, ZAxisSettings } from '../types/axisSettings.js';
|
|
2
|
+
import { CartesianGraphicalItemSettings, PolarGraphicalItemSettings } from '../types/graphical.js';
|
|
3
|
+
import { ReferenceAreaSettings, ReferenceDotSettings, ReferenceLineSettings } from '../types/reference.js';
|
|
4
|
+
import { ComputedRef } from 'vue';
|
|
5
|
+
import { Registry } from './registry.js';
|
|
6
|
+
export interface AxisRegistry<T> extends Registry<T> {
|
|
7
|
+
readonly byId: ComputedRef<ReadonlyMap<string, T>>;
|
|
8
|
+
}
|
|
9
|
+
export declare function createRegistries(): {
|
|
10
|
+
items: {
|
|
11
|
+
cartesian: Registry<CartesianGraphicalItemSettings>;
|
|
12
|
+
polar: Registry<PolarGraphicalItemSettings>;
|
|
13
|
+
};
|
|
14
|
+
axes: {
|
|
15
|
+
xAxis: AxisRegistry<XAxisSettings>;
|
|
16
|
+
yAxis: AxisRegistry<YAxisSettings>;
|
|
17
|
+
zAxis: AxisRegistry<ZAxisSettings>;
|
|
18
|
+
angleAxis: AxisRegistry<AngleAxisSettings>;
|
|
19
|
+
radiusAxis: AxisRegistry<RadiusAxisSettings>;
|
|
20
|
+
};
|
|
21
|
+
references: {
|
|
22
|
+
dots: Registry<ReferenceDotSettings>;
|
|
23
|
+
areas: Registry<ReferenceAreaSettings>;
|
|
24
|
+
lines: Registry<ReferenceLineSettings>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type ChartRegistries = ReturnType<typeof createRegistries>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
export interface Registry<T> {
|
|
3
|
+
readonly registrations: ComputedRef<readonly Readonly<Ref<T | undefined>>[]>;
|
|
4
|
+
readonly entries: ComputedRef<readonly T[]>;
|
|
5
|
+
register: (entry: Readonly<Ref<T | undefined>>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function createRegistry<T>(): Registry<T>;
|