@primeui/vue-chart 0.0.1-alpha.1
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 +23 -0
- package/README.md +1 -0
- package/dist/Chart.parts.d.ts +39 -0
- package/dist/Chart.vue.d.ts +27 -0
- package/dist/ChartCanvas.mjs +14 -0
- package/dist/ChartCanvas.render.spec.d.ts +1 -0
- package/dist/ChartCanvas.vue.d.ts +23 -0
- package/dist/ChartStacked.spec.d.ts +1 -0
- package/dist/ChartSvg.axes.spec.d.ts +1 -0
- package/dist/ChartSvg.context.spec.d.ts +1 -0
- package/dist/ChartSvg.customizations.spec.d.ts +1 -0
- package/dist/ChartSvg.features.spec.d.ts +1 -0
- package/dist/ChartSvg.legend.spec.d.ts +1 -0
- package/dist/ChartSvg.mjs +14 -0
- package/dist/ChartSvg.registration.spec.d.ts +1 -0
- package/dist/ChartSvg.render.spec.d.ts +1 -0
- package/dist/ChartSvg.vue.d.ts +23 -0
- package/dist/_test/fixtures.d.ts +34 -0
- package/dist/bundle-discipline.spec.d.ts +1 -0
- package/dist/chunk-2D3PWFR2.mjs +214 -0
- package/dist/chunk-32XIRBZ7.mjs +87 -0
- package/dist/chunk-372K2BMN.mjs +1476 -0
- package/dist/chunk-42J32DPD.mjs +70 -0
- package/dist/chunk-44BAFHPK.mjs +51 -0
- package/dist/chunk-4CRHCZV3.mjs +142 -0
- package/dist/chunk-4NJ2PSHV.mjs +230 -0
- package/dist/chunk-4THCGGER.mjs +53 -0
- package/dist/chunk-4UVPCLJ7.mjs +70 -0
- package/dist/chunk-54DLUFIA.mjs +96 -0
- package/dist/chunk-56NMBNNX.mjs +52 -0
- package/dist/chunk-5DWO3G33.mjs +276 -0
- package/dist/chunk-5FTUGKPC.mjs +167 -0
- package/dist/chunk-5SRBQVU5.mjs +6 -0
- package/dist/chunk-62NGBLQ7.mjs +28 -0
- package/dist/chunk-644ROAHU.mjs +362 -0
- package/dist/chunk-6S4JMPKC.mjs +55 -0
- package/dist/chunk-72KINEJ6.mjs +52 -0
- package/dist/chunk-7P6ASYW6.mjs +7 -0
- package/dist/chunk-AAX7FOW3.mjs +210 -0
- package/dist/chunk-AUI5R4DA.mjs +84 -0
- package/dist/chunk-CDXF6ZTL.mjs +50 -0
- package/dist/chunk-CQHNYT2V.mjs +1692 -0
- package/dist/chunk-DLUFOM5K.mjs +218 -0
- package/dist/chunk-DOOXGOOB.mjs +123 -0
- package/dist/chunk-DYVFVVTO.mjs +97 -0
- package/dist/chunk-E2U4W5FW.mjs +288 -0
- package/dist/chunk-E4ROAOPT.mjs +291 -0
- package/dist/chunk-FFBK7Q3W.mjs +91 -0
- package/dist/chunk-FQTWLAVA.mjs +23 -0
- package/dist/chunk-FZ3PZ66C.mjs +12 -0
- package/dist/chunk-GA4VV5V4.mjs +21 -0
- package/dist/chunk-GFC24374.mjs +244 -0
- package/dist/chunk-GX2MK6VT.mjs +255 -0
- package/dist/chunk-HANSF33Z.mjs +169 -0
- package/dist/chunk-HTZVV6VV.mjs +550 -0
- package/dist/chunk-J2P5JBHC.mjs +26 -0
- package/dist/chunk-J43KLCZF.mjs +10 -0
- package/dist/chunk-JKK3D33U.mjs +64 -0
- package/dist/chunk-K326BBF7.mjs +276 -0
- package/dist/chunk-KOWFD2AE.mjs +72 -0
- package/dist/chunk-LD57I4SY.mjs +5 -0
- package/dist/chunk-MDA22SIZ.mjs +29 -0
- package/dist/chunk-NLXOJSKK.mjs +727 -0
- package/dist/chunk-O6L3PNFC.mjs +49 -0
- package/dist/chunk-PJVOZSPF.mjs +55 -0
- package/dist/chunk-PQV55JYI.mjs +38 -0
- package/dist/chunk-PSSXPTLQ.mjs +210 -0
- package/dist/chunk-RQURY2H3.mjs +40 -0
- package/dist/chunk-RRHYGSK6.mjs +29 -0
- package/dist/chunk-RSAZ7V5Z.mjs +42 -0
- package/dist/chunk-RSTIA3KM.mjs +41 -0
- package/dist/chunk-TEOO4OLV.mjs +6 -0
- package/dist/chunk-TIV2FI4S.mjs +53 -0
- package/dist/chunk-UO27BCRL.mjs +86 -0
- package/dist/chunk-VWABO23U.mjs +143 -0
- package/dist/chunk-W5M3BR6N.mjs +26 -0
- package/dist/chunk-WA735Y26.mjs +101 -0
- package/dist/chunk-WKSQR6L5.mjs +247 -0
- package/dist/chunk-WYV2MHP6.mjs +34 -0
- package/dist/chunk-XBDNMPF7.mjs +87 -0
- package/dist/chunk-YGHWUR7K.mjs +45 -0
- package/dist/chunk-YRKAI2R2.mjs +151 -0
- package/dist/chunk-ZHFL3RYO.mjs +228 -0
- package/dist/chunk-ZNINPVG7.mjs +30 -0
- package/dist/chunk-ZRCOVQQM.mjs +47 -0
- package/dist/components/charts/ChartBar.mjs +13 -0
- package/dist/components/charts/ChartBar.vue.d.ts +11 -0
- package/dist/components/charts/ChartCandlestick.mjs +11 -0
- package/dist/components/charts/ChartCandlestick.vue.d.ts +11 -0
- package/dist/components/charts/ChartHeatmap.mjs +11 -0
- package/dist/components/charts/ChartHeatmap.vue.d.ts +11 -0
- package/dist/components/charts/ChartLine.mjs +11 -0
- package/dist/components/charts/ChartLine.vue.d.ts +11 -0
- package/dist/components/charts/ChartPie.mjs +11 -0
- package/dist/components/charts/ChartPie.vue.d.ts +15 -0
- package/dist/components/charts/ChartPolar.mjs +11 -0
- package/dist/components/charts/ChartPolar.vue.d.ts +11 -0
- package/dist/components/charts/ChartRadar.mjs +11 -0
- package/dist/components/charts/ChartRadar.vue.d.ts +11 -0
- package/dist/components/charts/ChartScatter.mjs +11 -0
- package/dist/components/charts/ChartScatter.vue.d.ts +11 -0
- package/dist/components/charts/ChartTreemap.mjs +10 -0
- package/dist/components/charts/ChartTreemap.vue.d.ts +15 -0
- package/dist/components/charts/index.d.ts +2 -0
- package/dist/components/containers/ChartDecimation.mjs +6 -0
- package/dist/components/containers/ChartDecimation.vue.d.ts +29 -0
- package/dist/components/containers/ChartGroup.mjs +4 -0
- package/dist/components/containers/ChartGroup.vue.d.ts +13 -0
- package/dist/components/containers/ChartOverlap.mjs +5 -0
- package/dist/components/containers/ChartOverlap.vue.d.ts +13 -0
- package/dist/components/containers/ChartRange.mjs +6 -0
- package/dist/components/containers/ChartRange.vue.d.ts +13 -0
- package/dist/components/containers/ChartStacked.mjs +6 -0
- package/dist/components/containers/ChartStacked.vue.d.ts +21 -0
- package/dist/components/containers/ChartWaterfall.mjs +5 -0
- package/dist/components/containers/ChartWaterfall.vue.d.ts +17 -0
- package/dist/components/containers/keys.d.ts +5 -0
- package/dist/components/customizations/ChartAccessibility.mjs +9 -0
- package/dist/components/customizations/ChartAccessibility.vue.d.ts +28 -0
- package/dist/components/customizations/ChartAnnotation.mjs +5 -0
- package/dist/components/customizations/ChartAnnotation.vue.d.ts +8 -0
- package/dist/components/customizations/ChartAxisCategory.mjs +3 -0
- package/dist/components/customizations/ChartAxisCategory.vue.d.ts +4 -0
- package/dist/components/customizations/ChartAxisGroup.mjs +3 -0
- package/dist/components/customizations/ChartAxisGroup.vue.d.ts +14 -0
- package/dist/components/customizations/ChartBreadcrumb.mjs +6 -0
- package/dist/components/customizations/ChartBreadcrumb.vue.d.ts +15 -0
- package/dist/components/customizations/ChartCaption.mjs +9 -0
- package/dist/components/customizations/ChartCaption.vue.d.ts +4 -0
- package/dist/components/customizations/ChartColorLegend.mjs +9 -0
- package/dist/components/customizations/ChartColorLegend.vue.d.ts +47 -0
- package/dist/components/customizations/ChartDataLabels.mjs +9 -0
- package/dist/components/customizations/ChartDataLabels.vue.d.ts +53 -0
- package/dist/components/customizations/ChartExportMenu.mjs +9 -0
- package/dist/components/customizations/ChartExportMenu.vue.d.ts +29 -0
- package/dist/components/customizations/ChartHover.mjs +9 -0
- package/dist/components/customizations/ChartHover.vue.d.ts +4 -0
- package/dist/components/customizations/ChartLegend.mjs +9 -0
- package/dist/components/customizations/ChartLegend.vue.d.ts +7 -0
- package/dist/components/customizations/ChartNavigator.mjs +10 -0
- package/dist/components/customizations/ChartNavigator.vue.d.ts +4 -0
- package/dist/components/customizations/ChartReferenceBand.mjs +5 -0
- package/dist/components/customizations/ChartReferenceBand.vue.d.ts +4 -0
- package/dist/components/customizations/ChartReferenceLine.mjs +5 -0
- package/dist/components/customizations/ChartReferenceLine.vue.d.ts +4 -0
- package/dist/components/customizations/ChartResponsive.mjs +9 -0
- package/dist/components/customizations/ChartResponsive.vue.d.ts +12 -0
- package/dist/components/customizations/ChartTitle.mjs +9 -0
- package/dist/components/customizations/ChartTitle.vue.d.ts +4 -0
- package/dist/components/customizations/ChartTooltip.mjs +9 -0
- package/dist/components/customizations/ChartTooltip.vue.d.ts +6 -0
- package/dist/components/customizations/ChartXAxis.mjs +10 -0
- package/dist/components/customizations/ChartXAxis.vue.d.ts +24 -0
- package/dist/components/customizations/ChartYAxis.mjs +10 -0
- package/dist/components/customizations/ChartYAxis.vue.d.ts +23 -0
- package/dist/components/customizations/ChartZoom.mjs +9 -0
- package/dist/components/customizations/ChartZoom.vue.d.ts +4 -0
- package/dist/components/customizations/axisGroupKeys.d.ts +8 -0
- package/dist/components/customizations/index.d.ts +20 -0
- package/dist/components/items/ChartItem.mjs +3 -0
- package/dist/components/items/ChartItem.vue.d.ts +4 -0
- package/dist/components/items/ChartTreemapGroup.mjs +5 -0
- package/dist/components/items/ChartTreemapGroup.vue.d.ts +11 -0
- package/dist/components/items/index.d.ts +1 -0
- package/dist/components/renderers/CartesianRenderer.mjs +9 -0
- package/dist/components/renderers/CartesianRenderer.vue.d.ts +66 -0
- package/dist/components/renderers/ColorLegendRenderer.mjs +2 -0
- package/dist/components/renderers/ColorLegendRenderer.vue.d.ts +15 -0
- package/dist/components/renderers/LegendRenderer.mjs +3 -0
- package/dist/components/renderers/LegendRenderer.vue.d.ts +20 -0
- package/dist/components/renderers/NavigatorRenderer.mjs +5 -0
- package/dist/components/renderers/NavigatorRenderer.vue.d.ts +16 -0
- package/dist/components/renderers/RadialRenderer.mjs +9 -0
- package/dist/components/renderers/RadialRenderer.vue.d.ts +39 -0
- package/dist/components/renderers/RectRenderer.mjs +9 -0
- package/dist/components/renderers/RectRenderer.vue.d.ts +32 -0
- package/dist/components/renderers/TooltipRenderer.mjs +4 -0
- package/dist/components/renderers/TooltipRenderer.vue.d.ts +11 -0
- package/dist/components/renderers/layers/BarLayerCanvas.mjs +10 -0
- package/dist/components/renderers/layers/BarLayerCanvas.vue.d.ts +3 -0
- package/dist/components/renderers/layers/BarLayerSvg.mjs +10 -0
- package/dist/components/renderers/layers/BarLayerSvg.vue.d.ts +3 -0
- package/dist/components/renderers/layers/CandlestickLayer.mjs +9 -0
- package/dist/components/renderers/layers/CandlestickLayer.vue.d.ts +3 -0
- package/dist/components/renderers/layers/HeatmapLayer.mjs +9 -0
- package/dist/components/renderers/layers/HeatmapLayer.vue.d.ts +3 -0
- package/dist/components/renderers/layers/LineLayer.mjs +9 -0
- package/dist/components/renderers/layers/LineLayer.vue.d.ts +3 -0
- package/dist/components/renderers/layers/PieLayer.mjs +9 -0
- package/dist/components/renderers/layers/PieLayer.vue.d.ts +12 -0
- package/dist/components/renderers/layers/PolarLayer.mjs +9 -0
- package/dist/components/renderers/layers/PolarLayer.vue.d.ts +16 -0
- package/dist/components/renderers/layers/RadarLayer.mjs +9 -0
- package/dist/components/renderers/layers/RadarLayer.vue.d.ts +16 -0
- package/dist/components/renderers/layers/ScatterLayer.mjs +9 -0
- package/dist/components/renderers/layers/ScatterLayer.vue.d.ts +3 -0
- package/dist/composables/index.d.ts +35 -0
- package/dist/composables/useAnimationProps.d.ts +21 -0
- package/dist/composables/useAxisComponentBase.d.ts +11 -0
- package/dist/composables/useAxisRegistration.d.ts +7 -0
- package/dist/composables/useAxisTransition.d.ts +6 -0
- package/dist/composables/useBarLayer.d.ts +9 -0
- package/dist/composables/useBarRenderer.canvas.d.ts +2 -0
- package/dist/composables/useBarRenderer.svg.d.ts +2 -0
- package/dist/composables/useBarRendererBase.d.ts +3 -0
- package/dist/composables/useCandlestickRenderer.d.ts +2 -0
- package/dist/composables/useCartesianAnimation.d.ts +2 -0
- package/dist/composables/useCartesianFrame.d.ts +72 -0
- package/dist/composables/useCartesianLayout.d.ts +3 -0
- package/dist/composables/useChartContext.d.ts +40 -0
- package/dist/composables/useChartLayers.d.ts +31 -0
- package/dist/composables/useChartRefreshHook.d.ts +1 -0
- package/dist/composables/useChartSync.d.ts +2 -0
- package/dist/composables/useChartSyncCoordinator.d.ts +23 -0
- package/dist/composables/useControllerLifecycle.d.ts +18 -0
- package/dist/composables/useCustomizationRegistration.d.ts +18 -0
- package/dist/composables/useDatasetAnimationContext.d.ts +14 -0
- package/dist/composables/useDatasetRegistration.d.ts +6 -0
- package/dist/composables/useDrilldownState.d.ts +3 -0
- package/dist/composables/useFamilyRenderers.d.ts +10 -0
- package/dist/composables/useFamilyRenderers.spec.d.ts +1 -0
- package/dist/composables/useHeatmapRenderer.d.ts +2 -0
- package/dist/composables/useItemCollector.d.ts +2 -0
- package/dist/composables/useKeyboardController.d.ts +8 -0
- package/dist/composables/useKeyboardNavigation.d.ts +2 -0
- package/dist/composables/useLineRenderer.d.ts +2 -0
- package/dist/composables/useNavigatorRenderer.d.ts +7 -0
- package/dist/composables/usePieRenderer.d.ts +2 -0
- package/dist/composables/usePolarRenderer.d.ts +2 -0
- package/dist/composables/usePropertyAnimations.d.ts +4 -0
- package/dist/composables/useRadarRenderer.d.ts +2 -0
- package/dist/composables/useRadialFrame.d.ts +39 -0
- package/dist/composables/useResponsiveConfig.d.ts +8 -0
- package/dist/composables/useResponsiveDimensions.d.ts +2 -0
- package/dist/composables/useScatterRenderer.d.ts +2 -0
- package/dist/composables/useTreemapRenderer.d.ts +2 -0
- package/dist/composables/useZoomController.d.ts +9 -0
- package/dist/composables/useZoomPan.d.ts +2 -0
- package/dist/context/ChartContext.d.ts +21 -0
- package/dist/context/index.d.ts +4 -0
- package/dist/context/keys.d.ts +52 -0
- package/dist/context/syncKeys.d.ts +5 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.mjs +67 -0
- package/dist/namespace.d.ts +1 -0
- package/dist/namespace.mjs +112 -0
- package/dist/release-date.d.ts +11 -0
- package/dist/types/animation.types.d.ts +38 -0
- package/dist/types/axes.types.d.ts +27 -0
- package/dist/types/axisComponentBase.types.d.ts +5 -0
- package/dist/types/axisGroup.types.d.ts +1 -0
- package/dist/types/bar.types.d.ts +42 -0
- package/dist/types/breadcrumb.types.d.ts +12 -0
- package/dist/types/candlestick.types.d.ts +41 -0
- package/dist/types/canvas.types.d.ts +5 -0
- package/dist/types/caption.types.d.ts +8 -0
- package/dist/types/cartesian.types.d.ts +22 -0
- package/dist/types/chart.types.d.ts +51 -0
- package/dist/types/heatmap.types.d.ts +58 -0
- package/dist/types/index.d.ts +27 -0
- package/dist/types/item.types.d.ts +25 -0
- package/dist/types/keyboard.types.d.ts +24 -0
- package/dist/types/layout.types.d.ts +35 -0
- package/dist/types/legend.types.d.ts +13 -0
- package/dist/types/line.types.d.ts +64 -0
- package/dist/types/pie.types.d.ts +49 -0
- package/dist/types/polar.types.d.ts +63 -0
- package/dist/types/radar.types.d.ts +56 -0
- package/dist/types/responsiveDimensions.types.d.ts +16 -0
- package/dist/types/scatter.types.d.ts +50 -0
- package/dist/types/svg.types.d.ts +44 -0
- package/dist/types/tooltip.types.d.ts +6 -0
- package/dist/types/treemap.types.d.ts +50 -0
- package/dist/types/zoom.types.d.ts +45 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/styles.d.ts +10 -0
- package/package.json +63 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { default as ChartCanvas } from './ChartCanvas.vue';
|
|
2
|
+
export { default as ChartSvg } from './ChartSvg.vue';
|
|
3
|
+
export { default as ChartBar } from './components/charts/ChartBar.vue';
|
|
4
|
+
export { default as ChartCandlestick } from './components/charts/ChartCandlestick.vue';
|
|
5
|
+
export { default as ChartHeatmap } from './components/charts/ChartHeatmap.vue';
|
|
6
|
+
export { default as ChartLine } from './components/charts/ChartLine.vue';
|
|
7
|
+
export { default as ChartPie } from './components/charts/ChartPie.vue';
|
|
8
|
+
export { default as ChartPolar } from './components/charts/ChartPolar.vue';
|
|
9
|
+
export { default as ChartRadar } from './components/charts/ChartRadar.vue';
|
|
10
|
+
export { default as ChartScatter } from './components/charts/ChartScatter.vue';
|
|
11
|
+
export { default as ChartTreemap } from './components/charts/ChartTreemap.vue';
|
|
12
|
+
export { default as ChartItem } from './components/items/ChartItem.vue';
|
|
13
|
+
export { default as ChartTreemapGroup } from './components/items/ChartTreemapGroup.vue';
|
|
14
|
+
export { default as ChartAccessibility } from './components/customizations/ChartAccessibility.vue';
|
|
15
|
+
export { default as ChartAnnotation } from './components/customizations/ChartAnnotation.vue';
|
|
16
|
+
export { default as ChartAxisCategory } from './components/customizations/ChartAxisCategory.vue';
|
|
17
|
+
export { default as ChartAxisGroup } from './components/customizations/ChartAxisGroup.vue';
|
|
18
|
+
export { default as ChartBreadcrumb } from './components/customizations/ChartBreadcrumb.vue';
|
|
19
|
+
export { default as ChartCaption } from './components/customizations/ChartCaption.vue';
|
|
20
|
+
export { default as ChartColorLegend } from './components/customizations/ChartColorLegend.vue';
|
|
21
|
+
export { default as ChartDataLabels } from './components/customizations/ChartDataLabels.vue';
|
|
22
|
+
export { default as ChartExportMenu } from './components/customizations/ChartExportMenu.vue';
|
|
23
|
+
export { default as ChartHover } from './components/customizations/ChartHover.vue';
|
|
24
|
+
export { default as ChartLegend } from './components/customizations/ChartLegend.vue';
|
|
25
|
+
export { default as ChartNavigator } from './components/customizations/ChartNavigator.vue';
|
|
26
|
+
export { default as ChartReferenceBand } from './components/customizations/ChartReferenceBand.vue';
|
|
27
|
+
export { default as ChartReferenceLine } from './components/customizations/ChartReferenceLine.vue';
|
|
28
|
+
export { default as ChartResponsive } from './components/customizations/ChartResponsive.vue';
|
|
29
|
+
export { default as ChartTitle } from './components/customizations/ChartTitle.vue';
|
|
30
|
+
export { default as ChartTooltip } from './components/customizations/ChartTooltip.vue';
|
|
31
|
+
export { default as ChartXAxis } from './components/customizations/ChartXAxis.vue';
|
|
32
|
+
export { default as ChartYAxis } from './components/customizations/ChartYAxis.vue';
|
|
33
|
+
export { default as ChartZoom } from './components/customizations/ChartZoom.vue';
|
|
34
|
+
export { default as ChartDecimation } from './components/containers/ChartDecimation.vue';
|
|
35
|
+
export { default as ChartGroup } from './components/containers/ChartGroup.vue';
|
|
36
|
+
export { default as ChartOverlap } from './components/containers/ChartOverlap.vue';
|
|
37
|
+
export { default as ChartRange } from './components/containers/ChartRange.vue';
|
|
38
|
+
export { default as ChartStacked } from './components/containers/ChartStacked.vue';
|
|
39
|
+
export { default as ChartWaterfall } from './components/containers/ChartWaterfall.vue';
|
|
40
|
+
export type { Alignment, AnnotationContext, AxisTickMarkRenderContext, AxisTickRenderContext, BarShapeFunction, BarShapeInfo, BorderRadius, ChartBarProps, ChartCandlestickProps, ChartCaptionProps, ChartHeatmapProps, ChartItemProps, ChartLegendProps, ChartLineProps, ChartPieProps, ChartPolarProps, ChartRadarProps, ChartScatterProps, ChartSvgProps, ChartTooltipProps, ChartTreemapProps, ColorScaleInfo, ColorValue, DataLabelContext, DecimationAlgorithm, DrilldownStateResult, EasingFunctionName, FieldAccessor, GradientColor, GradientStop, HeatmapCellContext, HeatmapHitTestResult, HoverProps, ItemCollectorContextValue, ItemContext, LegendItemRenderContext, LegendProps, LinearGradientConfig, PointDescriptionContext, RadialGradient, RadialHitTestResult, ResolvedSyncConfig, ResponsiveRule, SegmentContext, SeriesType, SliceRenderContext, SyncConfig, TickStyle, TickValue, TooltipItem, TooltipRenderContext, TooltipRow, TooltipState, TreemapCellContext, TreemapGroupProps, UseChartSyncOptions, UseChartSyncResult, UseDatasetRegistrationOptions, UseItemCollectorResult, ZoomAxisWindow, ZoomHandle, ZoomState } from './types';
|
|
41
|
+
export { useChartHover, useChartMethods, useChartState } from './context';
|
|
42
|
+
export { useChartSync, useDatasetRegistration, useDrilldownState, useItemCollector } from './composables';
|
|
43
|
+
export type { PointRenderContext } from '@primeui/chart-core';
|
|
44
|
+
export { easings, getEasing, registerEasing } from '@primeui/chart-core';
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export { ChartBar_default as ChartBar } from './chunk-K326BBF7.mjs';
|
|
2
|
+
export { ChartTreemap_default as ChartTreemap } from './chunk-2D3PWFR2.mjs';
|
|
3
|
+
export { ChartScatter_default as ChartScatter } from './chunk-5DWO3G33.mjs';
|
|
4
|
+
export { ChartRadar_default as ChartRadar } from './chunk-E2U4W5FW.mjs';
|
|
5
|
+
export { ChartPolar_default as ChartPolar } from './chunk-AAX7FOW3.mjs';
|
|
6
|
+
export { ChartPie_default as ChartPie } from './chunk-ZHFL3RYO.mjs';
|
|
7
|
+
export { ChartLine_default as ChartLine } from './chunk-644ROAHU.mjs';
|
|
8
|
+
export { ChartHeatmap_default as ChartHeatmap } from './chunk-DLUFOM5K.mjs';
|
|
9
|
+
export { ChartCandlestick_default as ChartCandlestick } from './chunk-WKSQR6L5.mjs';
|
|
10
|
+
export { ChartAnnotation_default as ChartAnnotation } from './chunk-ZNINPVG7.mjs';
|
|
11
|
+
export { ChartAccessibility_default as ChartAccessibility } from './chunk-O6L3PNFC.mjs';
|
|
12
|
+
export { ChartWaterfall_default as ChartWaterfall } from './chunk-W5M3BR6N.mjs';
|
|
13
|
+
export { ChartStacked_default as ChartStacked } from './chunk-TIV2FI4S.mjs';
|
|
14
|
+
export { ChartRange_default as ChartRange } from './chunk-RQURY2H3.mjs';
|
|
15
|
+
export { ChartOverlap_default as ChartOverlap } from './chunk-GA4VV5V4.mjs';
|
|
16
|
+
export { ChartGroup_default as ChartGroup } from './chunk-PJVOZSPF.mjs';
|
|
17
|
+
export { ChartDecimation_default as ChartDecimation } from './chunk-RSAZ7V5Z.mjs';
|
|
18
|
+
export { ChartHover_default as ChartHover } from './chunk-RSTIA3KM.mjs';
|
|
19
|
+
export { ChartExportMenu_default as ChartExportMenu } from './chunk-GFC24374.mjs';
|
|
20
|
+
export { ChartDataLabels_default as ChartDataLabels } from './chunk-CDXF6ZTL.mjs';
|
|
21
|
+
export { ChartColorLegend_default as ChartColorLegend } from './chunk-WYV2MHP6.mjs';
|
|
22
|
+
export { ChartCaption_default as ChartCaption } from './chunk-4THCGGER.mjs';
|
|
23
|
+
export { ChartBreadcrumb_default as ChartBreadcrumb } from './chunk-62NGBLQ7.mjs';
|
|
24
|
+
export { ChartAxisGroup_default as ChartAxisGroup } from './chunk-WA735Y26.mjs';
|
|
25
|
+
export { ChartAxisCategory_default as ChartAxisCategory } from './chunk-FQTWLAVA.mjs';
|
|
26
|
+
export { ChartXAxis_default as ChartXAxis } from './chunk-32XIRBZ7.mjs';
|
|
27
|
+
export { ChartTooltip_default as ChartTooltip } from './chunk-YGHWUR7K.mjs';
|
|
28
|
+
export { ChartTitle_default as ChartTitle } from './chunk-6S4JMPKC.mjs';
|
|
29
|
+
export { ChartResponsive_default as ChartResponsive } from './chunk-J2P5JBHC.mjs';
|
|
30
|
+
export { ChartReferenceLine_default as ChartReferenceLine } from './chunk-42J32DPD.mjs';
|
|
31
|
+
export { ChartReferenceBand_default as ChartReferenceBand } from './chunk-4UVPCLJ7.mjs';
|
|
32
|
+
export { ChartNavigator_default as ChartNavigator } from './chunk-56NMBNNX.mjs';
|
|
33
|
+
export { ChartLegend_default as ChartLegend } from './chunk-PSSXPTLQ.mjs';
|
|
34
|
+
import './chunk-54DLUFIA.mjs';
|
|
35
|
+
import './chunk-FFBK7Q3W.mjs';
|
|
36
|
+
import './chunk-RRHYGSK6.mjs';
|
|
37
|
+
import './chunk-MDA22SIZ.mjs';
|
|
38
|
+
import './chunk-YRKAI2R2.mjs';
|
|
39
|
+
export { ChartTreemapGroup_default as ChartTreemapGroup } from './chunk-AUI5R4DA.mjs';
|
|
40
|
+
export { ChartItem_default as ChartItem } from './chunk-KOWFD2AE.mjs';
|
|
41
|
+
export { ChartZoom_default as ChartZoom } from './chunk-ZRCOVQQM.mjs';
|
|
42
|
+
export { ChartYAxis_default as ChartYAxis } from './chunk-XBDNMPF7.mjs';
|
|
43
|
+
import './chunk-5SRBQVU5.mjs';
|
|
44
|
+
import './chunk-HTZVV6VV.mjs';
|
|
45
|
+
import './chunk-DYVFVVTO.mjs';
|
|
46
|
+
import './chunk-DOOXGOOB.mjs';
|
|
47
|
+
import './chunk-JKK3D33U.mjs';
|
|
48
|
+
import './chunk-UO27BCRL.mjs';
|
|
49
|
+
import './chunk-4CRHCZV3.mjs';
|
|
50
|
+
export { ChartSvg_default as ChartSvg } from './chunk-44BAFHPK.mjs';
|
|
51
|
+
export { ChartCanvas_default as ChartCanvas } from './chunk-72KINEJ6.mjs';
|
|
52
|
+
import './chunk-372K2BMN.mjs';
|
|
53
|
+
import './chunk-5FTUGKPC.mjs';
|
|
54
|
+
import './chunk-E4ROAOPT.mjs';
|
|
55
|
+
import './chunk-GX2MK6VT.mjs';
|
|
56
|
+
import './chunk-VWABO23U.mjs';
|
|
57
|
+
import './chunk-4NJ2PSHV.mjs';
|
|
58
|
+
export { useChartSync, useDatasetRegistration, useDrilldownState, useItemCollector } from './chunk-CQHNYT2V.mjs';
|
|
59
|
+
import './chunk-TEOO4OLV.mjs';
|
|
60
|
+
import './chunk-PQV55JYI.mjs';
|
|
61
|
+
import './chunk-J43KLCZF.mjs';
|
|
62
|
+
import './chunk-NLXOJSKK.mjs';
|
|
63
|
+
export { useChartHover, useChartMethods, useChartState } from './chunk-HANSF33Z.mjs';
|
|
64
|
+
import './chunk-LD57I4SY.mjs';
|
|
65
|
+
import './chunk-FZ3PZ66C.mjs';
|
|
66
|
+
import './chunk-7P6ASYW6.mjs';
|
|
67
|
+
export { easings, getEasing, registerEasing } from '@primeui/chart-core';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Chart from './Chart.parts';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { ChartBar_default } from './chunk-K326BBF7.mjs';
|
|
2
|
+
import { ChartTreemap_default } from './chunk-2D3PWFR2.mjs';
|
|
3
|
+
import { ChartScatter_default } from './chunk-5DWO3G33.mjs';
|
|
4
|
+
import { ChartRadar_default } from './chunk-E2U4W5FW.mjs';
|
|
5
|
+
import { ChartPolar_default } from './chunk-AAX7FOW3.mjs';
|
|
6
|
+
import { ChartPie_default } from './chunk-ZHFL3RYO.mjs';
|
|
7
|
+
import { ChartLine_default } from './chunk-644ROAHU.mjs';
|
|
8
|
+
import { ChartHeatmap_default } from './chunk-DLUFOM5K.mjs';
|
|
9
|
+
import { ChartCandlestick_default } from './chunk-WKSQR6L5.mjs';
|
|
10
|
+
import { ChartAnnotation_default } from './chunk-ZNINPVG7.mjs';
|
|
11
|
+
import { ChartAccessibility_default } from './chunk-O6L3PNFC.mjs';
|
|
12
|
+
import { ChartWaterfall_default } from './chunk-W5M3BR6N.mjs';
|
|
13
|
+
import { ChartStacked_default } from './chunk-TIV2FI4S.mjs';
|
|
14
|
+
import { ChartRange_default } from './chunk-RQURY2H3.mjs';
|
|
15
|
+
import { ChartOverlap_default } from './chunk-GA4VV5V4.mjs';
|
|
16
|
+
import { ChartGroup_default } from './chunk-PJVOZSPF.mjs';
|
|
17
|
+
import { ChartDecimation_default } from './chunk-RSAZ7V5Z.mjs';
|
|
18
|
+
import { ChartHover_default } from './chunk-RSTIA3KM.mjs';
|
|
19
|
+
import { ChartExportMenu_default } from './chunk-GFC24374.mjs';
|
|
20
|
+
import { ChartDataLabels_default } from './chunk-CDXF6ZTL.mjs';
|
|
21
|
+
import { ChartColorLegend_default } from './chunk-WYV2MHP6.mjs';
|
|
22
|
+
import { ChartCaption_default } from './chunk-4THCGGER.mjs';
|
|
23
|
+
import { ChartBreadcrumb_default } from './chunk-62NGBLQ7.mjs';
|
|
24
|
+
import { ChartAxisGroup_default } from './chunk-WA735Y26.mjs';
|
|
25
|
+
import { ChartAxisCategory_default } from './chunk-FQTWLAVA.mjs';
|
|
26
|
+
import { ChartXAxis_default } from './chunk-32XIRBZ7.mjs';
|
|
27
|
+
import { ChartTooltip_default } from './chunk-YGHWUR7K.mjs';
|
|
28
|
+
import { ChartTitle_default } from './chunk-6S4JMPKC.mjs';
|
|
29
|
+
import { ChartResponsive_default } from './chunk-J2P5JBHC.mjs';
|
|
30
|
+
import { ChartReferenceLine_default } from './chunk-42J32DPD.mjs';
|
|
31
|
+
import { ChartReferenceBand_default } from './chunk-4UVPCLJ7.mjs';
|
|
32
|
+
import { ChartNavigator_default } from './chunk-56NMBNNX.mjs';
|
|
33
|
+
import { ChartLegend_default } from './chunk-PSSXPTLQ.mjs';
|
|
34
|
+
import './chunk-54DLUFIA.mjs';
|
|
35
|
+
import './chunk-FFBK7Q3W.mjs';
|
|
36
|
+
import './chunk-RRHYGSK6.mjs';
|
|
37
|
+
import './chunk-MDA22SIZ.mjs';
|
|
38
|
+
import './chunk-YRKAI2R2.mjs';
|
|
39
|
+
import { ChartTreemapGroup_default } from './chunk-AUI5R4DA.mjs';
|
|
40
|
+
import { ChartItem_default } from './chunk-KOWFD2AE.mjs';
|
|
41
|
+
import { ChartZoom_default } from './chunk-ZRCOVQQM.mjs';
|
|
42
|
+
import { ChartYAxis_default } from './chunk-XBDNMPF7.mjs';
|
|
43
|
+
import './chunk-5SRBQVU5.mjs';
|
|
44
|
+
import './chunk-HTZVV6VV.mjs';
|
|
45
|
+
import './chunk-DYVFVVTO.mjs';
|
|
46
|
+
import './chunk-DOOXGOOB.mjs';
|
|
47
|
+
import './chunk-JKK3D33U.mjs';
|
|
48
|
+
import './chunk-UO27BCRL.mjs';
|
|
49
|
+
import './chunk-4CRHCZV3.mjs';
|
|
50
|
+
import { ChartSvg_default } from './chunk-44BAFHPK.mjs';
|
|
51
|
+
import { ChartCanvas_default } from './chunk-72KINEJ6.mjs';
|
|
52
|
+
import './chunk-372K2BMN.mjs';
|
|
53
|
+
import './chunk-5FTUGKPC.mjs';
|
|
54
|
+
import './chunk-E4ROAOPT.mjs';
|
|
55
|
+
import './chunk-GX2MK6VT.mjs';
|
|
56
|
+
import './chunk-VWABO23U.mjs';
|
|
57
|
+
import './chunk-4NJ2PSHV.mjs';
|
|
58
|
+
import './chunk-CQHNYT2V.mjs';
|
|
59
|
+
import './chunk-TEOO4OLV.mjs';
|
|
60
|
+
import './chunk-PQV55JYI.mjs';
|
|
61
|
+
import './chunk-J43KLCZF.mjs';
|
|
62
|
+
import './chunk-NLXOJSKK.mjs';
|
|
63
|
+
import './chunk-HANSF33Z.mjs';
|
|
64
|
+
import './chunk-LD57I4SY.mjs';
|
|
65
|
+
import './chunk-FZ3PZ66C.mjs';
|
|
66
|
+
import { __export } from './chunk-7P6ASYW6.mjs';
|
|
67
|
+
|
|
68
|
+
// src/Chart.parts.ts
|
|
69
|
+
var Chart_parts_exports = {};
|
|
70
|
+
__export(Chart_parts_exports, {
|
|
71
|
+
Accessibility: () => ChartAccessibility_default,
|
|
72
|
+
Annotation: () => ChartAnnotation_default,
|
|
73
|
+
AxisCategory: () => ChartAxisCategory_default,
|
|
74
|
+
AxisGroup: () => ChartAxisGroup_default,
|
|
75
|
+
Bar: () => ChartBar_default,
|
|
76
|
+
Breadcrumb: () => ChartBreadcrumb_default,
|
|
77
|
+
Candlestick: () => ChartCandlestick_default,
|
|
78
|
+
Canvas: () => ChartCanvas_default,
|
|
79
|
+
Caption: () => ChartCaption_default,
|
|
80
|
+
ColorLegend: () => ChartColorLegend_default,
|
|
81
|
+
DataLabels: () => ChartDataLabels_default,
|
|
82
|
+
Decimation: () => ChartDecimation_default,
|
|
83
|
+
ExportMenu: () => ChartExportMenu_default,
|
|
84
|
+
Group: () => ChartGroup_default,
|
|
85
|
+
Heatmap: () => ChartHeatmap_default,
|
|
86
|
+
Hover: () => ChartHover_default,
|
|
87
|
+
Item: () => ChartItem_default,
|
|
88
|
+
Legend: () => ChartLegend_default,
|
|
89
|
+
Line: () => ChartLine_default,
|
|
90
|
+
Navigator: () => ChartNavigator_default,
|
|
91
|
+
Overlap: () => ChartOverlap_default,
|
|
92
|
+
Pie: () => ChartPie_default,
|
|
93
|
+
Polar: () => ChartPolar_default,
|
|
94
|
+
Radar: () => ChartRadar_default,
|
|
95
|
+
Range: () => ChartRange_default,
|
|
96
|
+
ReferenceBand: () => ChartReferenceBand_default,
|
|
97
|
+
ReferenceLine: () => ChartReferenceLine_default,
|
|
98
|
+
Responsive: () => ChartResponsive_default,
|
|
99
|
+
Scatter: () => ChartScatter_default,
|
|
100
|
+
Stacked: () => ChartStacked_default,
|
|
101
|
+
Svg: () => ChartSvg_default,
|
|
102
|
+
Title: () => ChartTitle_default,
|
|
103
|
+
Tooltip: () => ChartTooltip_default,
|
|
104
|
+
Treemap: () => ChartTreemap_default,
|
|
105
|
+
TreemapGroup: () => ChartTreemapGroup_default,
|
|
106
|
+
Waterfall: () => ChartWaterfall_default,
|
|
107
|
+
XAxis: () => ChartXAxis_default,
|
|
108
|
+
YAxis: () => ChartYAxis_default,
|
|
109
|
+
Zoom: () => ChartZoom_default
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export { Chart_parts_exports as Chart };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release date of this specific version of @primeui/vue-chart.
|
|
3
|
+
*
|
|
4
|
+
* Passed to the license verifier so perpetual licenses are enforced against
|
|
5
|
+
* version dates: a license whose `update_ends_at` is earlier than this date
|
|
6
|
+
* does not cover the installed version.
|
|
7
|
+
*
|
|
8
|
+
* Kept as a literal for now. A build script should generate this file from the
|
|
9
|
+
* package's git tag / publish date going forward (mirrors the texteditor model).
|
|
10
|
+
*/
|
|
11
|
+
export declare const RELEASE_DATE = "2026-06-20";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { AnyFeatureProps, AnimatedPropertyStoreLike, CartesianAnimationOptionsBase, CartesianLayoutData, CustomMarkerEntry, FeatureType, PropertyAnimationConfig } from '@primeui/chart-types';
|
|
2
|
+
import type { ComputedRef, MaybeRefOrGetter, Ref, ShallowRef } from 'vue';
|
|
3
|
+
export interface UseCartesianAnimationOptions extends CartesianAnimationOptionsBase {
|
|
4
|
+
layoutData: ComputedRef<CartesianLayoutData | null>;
|
|
5
|
+
canvasEl: Ref<HTMLCanvasElement | null>;
|
|
6
|
+
/** Overlay canvas for animated custom markers (canvas mode only) */
|
|
7
|
+
overlayCanvasEl?: Ref<HTMLCanvasElement | null>;
|
|
8
|
+
/** Marker overlay entries from useLineRenderer — updated each animation frame */
|
|
9
|
+
markerOverlays?: Ref<CustomMarkerEntry[]>;
|
|
10
|
+
groupRef: Ref<SVGGElement | null>;
|
|
11
|
+
gridGroupRef: Ref<SVGGElement | null>;
|
|
12
|
+
hover: ComputedRef<{
|
|
13
|
+
datasetId: string | null;
|
|
14
|
+
index: number | null;
|
|
15
|
+
}>;
|
|
16
|
+
features: ComputedRef<Map<FeatureType, {
|
|
17
|
+
type: FeatureType;
|
|
18
|
+
props: AnyFeatureProps;
|
|
19
|
+
}>>;
|
|
20
|
+
width: ComputedRef<number>;
|
|
21
|
+
height: ComputedRef<number>;
|
|
22
|
+
/** Reactive dir ref — `.value` is read each frame so direction changes flow through. */
|
|
23
|
+
dir?: Ref<'ltr' | 'rtl'>;
|
|
24
|
+
/** When true, skip full chrome repaint on hover change (e.g. scatter boost mode where hover has no visual effect). */
|
|
25
|
+
skipHoverRepaint?: ComputedRef<boolean>;
|
|
26
|
+
/** True when any axis is zoomed — threaded into FrameContext for chart-core renderers that need it (e.g. axis labels that hide under zoom). */
|
|
27
|
+
isZoomed?: ComputedRef<boolean>;
|
|
28
|
+
/** Refs to custom tick overlay <g> elements — used by chart-core to apply axis opacity transitions */
|
|
29
|
+
customTickOverlayRefs?: Map<string, SVGGElement | null>;
|
|
30
|
+
/** Property animation configs — reactive so the chart-root `animations` prop and per-dataset configs can register after setup */
|
|
31
|
+
propertyAnimations?: MaybeRefOrGetter<PropertyAnimationConfig[] | undefined>;
|
|
32
|
+
/** Shared store for animated property values — hoisted from CartesianRenderer so renderers can read it */
|
|
33
|
+
animStoreRef?: ShallowRef<AnimatedPropertyStoreLike | null>;
|
|
34
|
+
/** Called on each registry tick — increments animVersion in CartesianRenderer to trigger re-render */
|
|
35
|
+
onAnimFrame?: () => void;
|
|
36
|
+
/** Called when a non-looping property animation completes (after store entry is deleted) — used to restore base SVG attribute values via renderFrameCycle. */
|
|
37
|
+
onPropertyComplete?: (storeKey: string) => void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AxisGroupDefinition, AxisGroupRenderContext, AxisTickMarkRenderContext, AxisTickRenderContext, BaseAxisProps as CoreBaseAxisProps } from '@primeui/chart-types';
|
|
2
|
+
import type { VNode } from 'vue';
|
|
3
|
+
export interface ChartXAxisProps extends SharedAxisProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
position?: 'top' | 'bottom';
|
|
6
|
+
}
|
|
7
|
+
export interface ChartYAxisProps extends SharedAxisProps {
|
|
8
|
+
id?: string;
|
|
9
|
+
position?: 'left' | 'right';
|
|
10
|
+
}
|
|
11
|
+
/** All props shared between ChartXAxis and ChartYAxis. */
|
|
12
|
+
export interface SharedAxisProps extends CoreBaseAxisProps {
|
|
13
|
+
/** Shared between XAxis ('top'|'bottom') and YAxis ('left'|'right') */
|
|
14
|
+
position?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Custom tick-label renderer. **SVG mode:** return a `VNode`. **Canvas mode:** `context.ctx`
|
|
17
|
+
* is a `CanvasRenderingContext2D` — draw imperatively and return nothing (`void`); the return
|
|
18
|
+
* value is ignored. (Returning a `VNode` on canvas renders nothing.)
|
|
19
|
+
*/
|
|
20
|
+
render?: (context: AxisTickRenderContext) => VNode | null | void;
|
|
21
|
+
/** Custom tick-mark renderer. Same dual SVG-VNode / canvas-`ctx` contract as `render`. */
|
|
22
|
+
renderTick?: (context: AxisTickMarkRenderContext) => VNode | null | void;
|
|
23
|
+
}
|
|
24
|
+
export interface ChartAxisGroupProps extends Omit<AxisGroupDefinition, 'render' | 'categories' | 'depth'> {
|
|
25
|
+
/** Custom render function for the group label area */
|
|
26
|
+
render?: (context: AxisGroupRenderContext) => VNode | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AxisCategoryCollector, ChartAxisCategoryProps } from '@primeui/chart-types';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AnimatedPropertyStoreLike, CanvasCompositorLike, AnyFeatureProps, BarRenderData, BarRenderProps, BoxArea, CartesianHitTestResult, CartesianLayoutData, ChartTheme, BarProps as CoreBarProps, CrosshairSeriesHit, DatasetRegistration, FeatureType, FrameDataLabelConfig, HoverConfig } from '@primeui/chart-types';
|
|
2
|
+
import type { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
3
|
+
export type ChartBarProps<T = unknown> = CoreBarProps<T>;
|
|
4
|
+
export interface UseBarRendererOptions {
|
|
5
|
+
chartArea: ComputedRef<BoxArea>;
|
|
6
|
+
renderer: 'svg' | 'canvas';
|
|
7
|
+
canvasEl: Ref<HTMLCanvasElement | null> | ShallowRef<HTMLCanvasElement | null>;
|
|
8
|
+
datasets: ComputedRef<Map<string, DatasetRegistration>>;
|
|
9
|
+
datasetVisibility: ComputedRef<Map<string, boolean>>;
|
|
10
|
+
hover: ComputedRef<{
|
|
11
|
+
datasetId: string | null;
|
|
12
|
+
index: number | null;
|
|
13
|
+
}>;
|
|
14
|
+
hoverConfig: ComputedRef<HoverConfig | undefined>;
|
|
15
|
+
chartId: string;
|
|
16
|
+
width: ComputedRef<number>;
|
|
17
|
+
height: ComputedRef<number>;
|
|
18
|
+
compositor?: CanvasCompositorLike;
|
|
19
|
+
layoutData: ComputedRef<CartesianLayoutData | null>;
|
|
20
|
+
features: ComputedRef<Map<FeatureType, {
|
|
21
|
+
type: FeatureType;
|
|
22
|
+
props: AnyFeatureProps;
|
|
23
|
+
}>>;
|
|
24
|
+
labelConfig?: ComputedRef<FrameDataLabelConfig | null>;
|
|
25
|
+
isZoomed?: ComputedRef<boolean>;
|
|
26
|
+
dir: Ref<'ltr' | 'rtl'>;
|
|
27
|
+
theme: ComputedRef<Required<ChartTheme>>;
|
|
28
|
+
}
|
|
29
|
+
export interface UseBarRendererResult {
|
|
30
|
+
groupRef: Ref<SVGGElement | null>;
|
|
31
|
+
hitTest: (x: number, y: number) => CartesianHitTestResult | null;
|
|
32
|
+
findNearest: (x: number, y: number) => CartesianHitTestResult | null;
|
|
33
|
+
findAllNearest: (x: number, y: number) => {
|
|
34
|
+
primary: CartesianHitTestResult;
|
|
35
|
+
allSeries: CrosshairSeriesHit[];
|
|
36
|
+
} | null;
|
|
37
|
+
hasBarData: ComputedRef<boolean>;
|
|
38
|
+
barLayouts: Map<string, BarRenderData>;
|
|
39
|
+
barRenderProps: Map<string, BarRenderProps<unknown>>;
|
|
40
|
+
applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
|
|
41
|
+
renderFrameCycle: () => void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BreadcrumbItemContext, BreadcrumbProps as CoreBreadcrumbProps } from '@primeui/chart-types';
|
|
2
|
+
import type { CSSProperties, VNode } from 'vue';
|
|
3
|
+
export interface BreadcrumbProps extends Omit<CoreBreadcrumbProps, 'separator' | 'renderItem'> {
|
|
4
|
+
/** Custom separator between breadcrumb items. Default: ' / ' */
|
|
5
|
+
separator?: VNode | string;
|
|
6
|
+
/** Custom render function for each breadcrumb item */
|
|
7
|
+
renderItem?: (context: BreadcrumbItemContext) => VNode | null | void;
|
|
8
|
+
/** CSS class name for the breadcrumb container */
|
|
9
|
+
class?: string;
|
|
10
|
+
/** Inline styles for the breadcrumb container */
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { AnimatedPropertyStoreLike, AnyFeatureProps, CanvasCompositorLike, BandScale, BoxArea, CandlestickHitTestResult, CandlestickProps, CandlestickRenderData, CartesianHitTestResult, CartesianLayoutData, ChartTheme, CrosshairSeriesHit, DatasetRegistration, FeatureType, HoverConfig, LinearScale } from '@primeui/chart-types';
|
|
2
|
+
import type { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
3
|
+
export type ChartCandlestickProps<T = unknown> = CandlestickProps<T>;
|
|
4
|
+
export interface UseCandlestickRendererOptions {
|
|
5
|
+
chartArea: ComputedRef<BoxArea>;
|
|
6
|
+
renderer: 'svg' | 'canvas';
|
|
7
|
+
canvasEl: Ref<HTMLCanvasElement | null> | ShallowRef<HTMLCanvasElement | null>;
|
|
8
|
+
datasets: ComputedRef<Map<string, DatasetRegistration>>;
|
|
9
|
+
datasetVisibility: ComputedRef<Map<string, boolean>>;
|
|
10
|
+
features: ComputedRef<Map<FeatureType, {
|
|
11
|
+
type: FeatureType;
|
|
12
|
+
props: AnyFeatureProps;
|
|
13
|
+
}>>;
|
|
14
|
+
hover: ComputedRef<{
|
|
15
|
+
datasetId: string | null;
|
|
16
|
+
index: number | null;
|
|
17
|
+
}>;
|
|
18
|
+
hoverConfig: ComputedRef<HoverConfig | undefined>;
|
|
19
|
+
chartId: string;
|
|
20
|
+
width: ComputedRef<number>;
|
|
21
|
+
height: ComputedRef<number>;
|
|
22
|
+
categoryScale: ComputedRef<BandScale | undefined>;
|
|
23
|
+
valueScales: ComputedRef<Map<string, LinearScale> | undefined>;
|
|
24
|
+
firstValueAxisId: ComputedRef<string>;
|
|
25
|
+
layoutData: ComputedRef<CartesianLayoutData | null>;
|
|
26
|
+
compositor?: CanvasCompositorLike;
|
|
27
|
+
/** Reactive theme — read via `.value` inside the composable. */
|
|
28
|
+
theme: ComputedRef<Required<ChartTheme>>;
|
|
29
|
+
}
|
|
30
|
+
export interface UseCandlestickRendererResult {
|
|
31
|
+
groupRef: Ref<SVGGElement | null>;
|
|
32
|
+
hitTest: (x: number, y: number) => CandlestickHitTestResult | null;
|
|
33
|
+
findAllNearest: (x: number, y: number) => {
|
|
34
|
+
primary: CartesianHitTestResult;
|
|
35
|
+
allSeries: CrosshairSeriesHit[];
|
|
36
|
+
} | null;
|
|
37
|
+
hasCandlestickData: ComputedRef<boolean>;
|
|
38
|
+
candlestickLayouts: Map<string, CandlestickRenderData>;
|
|
39
|
+
applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
|
|
40
|
+
renderFrameCycle: () => void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ChartSvgProps } from './svg.types';
|
|
2
|
+
export interface ChartCanvasProps extends ChartSvgProps {
|
|
3
|
+
/** Override the device pixel ratio used for canvas rendering. Defaults to window.devicePixelRatio. Useful for exporting charts to bitmap or printing at higher DPI. */
|
|
4
|
+
devicePixelRatio?: number;
|
|
5
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReferenceBandGeometry, ReferenceBandProps, ReferenceLineGeometry, ReferenceLineProps } from '@primeui/chart-types';
|
|
2
|
+
import type { VNode } from 'vue';
|
|
3
|
+
export interface ChartReferenceLineProps extends Omit<ReferenceLineProps, 'render'> {
|
|
4
|
+
id?: string;
|
|
5
|
+
render?: (context: ReferenceLineGeometry) => VNode | VNode[] | null;
|
|
6
|
+
}
|
|
7
|
+
export interface ChartReferenceBandProps extends Omit<ReferenceBandProps, 'render'> {
|
|
8
|
+
id?: string;
|
|
9
|
+
render?: (context: ReferenceBandGeometry) => VNode | VNode[] | null;
|
|
10
|
+
}
|
|
11
|
+
export interface CustomReferenceLineEntry {
|
|
12
|
+
key: string;
|
|
13
|
+
geo: ReferenceLineGeometry;
|
|
14
|
+
renderFn: (geo: ReferenceLineGeometry) => VNode | VNode[] | null;
|
|
15
|
+
placement: 'beforeData' | 'afterData';
|
|
16
|
+
}
|
|
17
|
+
export interface CustomReferenceBandEntry {
|
|
18
|
+
key: string;
|
|
19
|
+
geo: ReferenceBandGeometry;
|
|
20
|
+
renderFn: (geo: ReferenceBandGeometry) => VNode | VNode[] | null;
|
|
21
|
+
placement: 'beforeData' | 'afterData';
|
|
22
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ChartTheme, DrilldownBreadcrumb, RendererType, ResolvedSyncConfig, SyncConfig } from '@primeui/chart-types';
|
|
2
|
+
import type { SyncBus } from '@primeui/chart-core';
|
|
3
|
+
import type { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
|
|
4
|
+
export interface ChartProviderOptions {
|
|
5
|
+
chartId: string;
|
|
6
|
+
renderer: RendererType;
|
|
7
|
+
width: Ref<number>;
|
|
8
|
+
height: Ref<number>;
|
|
9
|
+
devicePixelRatio?: number;
|
|
10
|
+
dir?: Ref<'ltr' | 'rtl'>;
|
|
11
|
+
fontFamily?: string;
|
|
12
|
+
fontSize?: number;
|
|
13
|
+
locale?: Ref<string | undefined>;
|
|
14
|
+
/** Resolved chart theme (`resolveTheme(props.theme)`). Reactive — updates when entry component's `:theme` prop changes. */
|
|
15
|
+
theme: ComputedRef<Required<ChartTheme>>;
|
|
16
|
+
}
|
|
17
|
+
export interface DrilldownStateResult {
|
|
18
|
+
/** Current drill parent ID (null = root) */
|
|
19
|
+
currentParentId: Ref<string | null>;
|
|
20
|
+
/** Breadcrumb path */
|
|
21
|
+
path: Ref<DrilldownBreadcrumb[]>;
|
|
22
|
+
/** Whether drilldown is active (not at root) */
|
|
23
|
+
isActive: ComputedRef<boolean>;
|
|
24
|
+
/** Whether any dataset supports drilldown */
|
|
25
|
+
enabled: ComputedRef<boolean>;
|
|
26
|
+
/** Drill into a node. Optional ancestors array for intermediate parents not yet in the path. */
|
|
27
|
+
drillInto: (nodeId: string, label: string, ancestors?: DrilldownBreadcrumb[]) => void;
|
|
28
|
+
/** Navigate to a specific breadcrumb level */
|
|
29
|
+
drillToLevel: (index: number) => void;
|
|
30
|
+
}
|
|
31
|
+
export interface UseChartSyncOptions {
|
|
32
|
+
chartId: string;
|
|
33
|
+
/** Sync config — supports reactive getter so config changes after mount propagate via syncBus.updateConfig. */
|
|
34
|
+
sync?: MaybeRefOrGetter<SyncConfig | boolean | undefined>;
|
|
35
|
+
}
|
|
36
|
+
export interface ChartSyncInfo {
|
|
37
|
+
bus: SyncBus;
|
|
38
|
+
chartId: string;
|
|
39
|
+
config: ResolvedSyncConfig;
|
|
40
|
+
}
|
|
41
|
+
export interface UseChartSyncResult {
|
|
42
|
+
syncInfo: ChartSyncInfo | null;
|
|
43
|
+
}
|
|
44
|
+
export interface HoverExtras {
|
|
45
|
+
snapX?: number;
|
|
46
|
+
snapY?: number;
|
|
47
|
+
cursorX?: number;
|
|
48
|
+
cursorY?: number;
|
|
49
|
+
cursorFormattedValue?: string;
|
|
50
|
+
allSeriesHits?: import('@primeui/chart-core').CrosshairSeriesHit[];
|
|
51
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { AnimatedPropertyStoreLike, CanvasCompositorLike, AnyFeatureProps, AxisConfig, AxisLayoutInfo, BandScale, BoxArea, ChartTheme, ColorScaleInfo, DatasetRegistration, FeatureType, GlobalFont, HeatmapHitTestResult, HeatmapProps, HoverConfig } from '@primeui/chart-types';
|
|
2
|
+
import type { ComputedRef, Ref, ShallowRef, VNode } from 'vue';
|
|
3
|
+
export type ChartHeatmapProps<T = unknown> = HeatmapProps<T, VNode | null>;
|
|
4
|
+
export interface UseHeatmapRendererOptions {
|
|
5
|
+
chartArea: ComputedRef<BoxArea>;
|
|
6
|
+
renderer: 'svg' | 'canvas';
|
|
7
|
+
canvasEl: Ref<HTMLCanvasElement | null> | ShallowRef<HTMLCanvasElement | null>;
|
|
8
|
+
datasets: ComputedRef<Map<string, DatasetRegistration>>;
|
|
9
|
+
axes: ComputedRef<{
|
|
10
|
+
x: Map<string, AxisConfig>;
|
|
11
|
+
y: Map<string, AxisConfig>;
|
|
12
|
+
}>;
|
|
13
|
+
datasetVisibility: ComputedRef<Map<string, boolean>>;
|
|
14
|
+
hover: ComputedRef<{
|
|
15
|
+
datasetId: string | null;
|
|
16
|
+
index: number | null;
|
|
17
|
+
}>;
|
|
18
|
+
hoverConfig: ComputedRef<HoverConfig | undefined>;
|
|
19
|
+
chartId: string;
|
|
20
|
+
width: ComputedRef<number>;
|
|
21
|
+
height: ComputedRef<number>;
|
|
22
|
+
features: ComputedRef<Map<FeatureType, {
|
|
23
|
+
type: FeatureType;
|
|
24
|
+
props: AnyFeatureProps;
|
|
25
|
+
}>>;
|
|
26
|
+
compositor?: CanvasCompositorLike;
|
|
27
|
+
globalFont?: GlobalFont;
|
|
28
|
+
/** Reactive locale ref — `.value` is read inside the renderer computed so locale changes trigger a repaint. */
|
|
29
|
+
locale?: Ref<string | undefined>;
|
|
30
|
+
/** Reactive theme — read via `.value` inside the composable. */
|
|
31
|
+
theme: ComputedRef<Required<ChartTheme>>;
|
|
32
|
+
}
|
|
33
|
+
export interface UseHeatmapRendererResult {
|
|
34
|
+
groupRef: Ref<SVGGElement | null>;
|
|
35
|
+
gridGroupRef: Ref<SVGGElement | null>;
|
|
36
|
+
axisGroupRef: Ref<SVGGElement | null>;
|
|
37
|
+
hitTest: (x: number, y: number) => HeatmapHitTestResult | null;
|
|
38
|
+
getPointPosition: (datasetId: string, index: number) => {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
shape: 'rect';
|
|
44
|
+
} | null;
|
|
45
|
+
hasHeatmapData: ComputedRef<boolean>;
|
|
46
|
+
axisLayouts: ComputedRef<Map<string, AxisLayoutInfo>>;
|
|
47
|
+
plotArea: ComputedRef<BoxArea>;
|
|
48
|
+
getColorScaleInfo: () => ColorScaleInfo | null;
|
|
49
|
+
scaleResult: ComputedRef<{
|
|
50
|
+
xScale: BandScale;
|
|
51
|
+
yScale: BandScale;
|
|
52
|
+
xCategories: string[];
|
|
53
|
+
yCategories: string[];
|
|
54
|
+
} | null>;
|
|
55
|
+
svgContent: ComputedRef<VNode[]>;
|
|
56
|
+
applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
|
|
57
|
+
renderFrameCycle: () => void;
|
|
58
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type { UseCartesianAnimationOptions } from './animation.types';
|
|
2
|
+
export type { ChartAxisGroupProps, ChartXAxisProps, ChartYAxisProps, SharedAxisProps } from './axes.types';
|
|
3
|
+
export type { AxisCategoryCollector, ChartAxisCategoryProps } from './axisGroup.types';
|
|
4
|
+
export type { ChartBarProps, UseBarRendererOptions, UseBarRendererResult } from './bar.types';
|
|
5
|
+
export type { BreadcrumbProps } from './breadcrumb.types';
|
|
6
|
+
export type { ChartCandlestickProps, UseCandlestickRendererOptions, UseCandlestickRendererResult } from './candlestick.types';
|
|
7
|
+
export type { ChartCanvasProps } from './canvas.types';
|
|
8
|
+
export type { ChartCaptionProps } from './caption.types';
|
|
9
|
+
export type { ChartReferenceBandProps, ChartReferenceLineProps, CustomReferenceBandEntry, CustomReferenceLineEntry } from './cartesian.types';
|
|
10
|
+
export type { ChartProviderOptions, ChartSyncInfo, DrilldownStateResult, HoverExtras, UseChartSyncOptions, UseChartSyncResult } from './chart.types';
|
|
11
|
+
export type { ChartHeatmapProps, UseHeatmapRendererOptions, UseHeatmapRendererResult } from './heatmap.types';
|
|
12
|
+
export type { ChartItemProps, UseDatasetRegistrationOptions, UseItemCollectorResult } from './item.types';
|
|
13
|
+
export type { UseKeyboardNavigationOptions, UseKeyboardNavigationResult } from './keyboard.types';
|
|
14
|
+
export type { UseCartesianLayoutOptions } from './layout.types';
|
|
15
|
+
export type { ChartLegendProps, ColorLegendProps } from './legend.types';
|
|
16
|
+
export type { ChartLineProps, LineAnimationConfig, UseLineRendererOptions, UseLineRendererResult } from './line.types';
|
|
17
|
+
export type { ChartPieProps, UsePieRendererOptions, UsePieRendererResult } from './pie.types';
|
|
18
|
+
export type { ChartPolarProps, UsePolarRendererOptions, UsePolarRendererResult } from './polar.types';
|
|
19
|
+
export type { ChartRadarProps, UseRadarRendererOptions, UseRadarRendererResult } from './radar.types';
|
|
20
|
+
export type { UseResponsiveDimensionsOptions, UseResponsiveDimensionsResult } from './responsiveDimensions.types';
|
|
21
|
+
export type { ChartScatterProps, UseScatterRendererOptions, UseScatterRendererResult } from './scatter.types';
|
|
22
|
+
export type { ChartPlugin, ChartPluginEntry, ChartSvgProps, RendererHint } from './svg.types';
|
|
23
|
+
export type { ChartTooltipProps } from './tooltip.types';
|
|
24
|
+
export type { ChartTreemapProps, TreemapGroupProps, UseTreemapRendererOptions, UseTreemapRendererResult } from './treemap.types';
|
|
25
|
+
export type { UseZoomPanOptions, UseZoomPanResult } from './zoom.types';
|
|
26
|
+
export type { AnimatedPropertyStoreLike, AnimationFeatureProps, AnyFeatureProps, AxisConfig, AxisGroupCollectorValue, AxisGroupRenderContext, AxisLayoutInfo, AxisTickMarkRenderContext, AxisTickRenderContext, BandScale, BaseAxisProps, BoxArea, BracketStyle, BreadcrumbItemContext, CandlestickHitTestResult, CanvasCompositorLike, CaptionProps, CartesianHitTestResult, CartesianLayoutData, ColorLegendRenderContext, ColorScaleInfo, ColorValue, CrosshairSeriesHit, CustomMarkerEntry, DatasetRegistration, DecimationAlgorithm, DrilldownBreadcrumb, FeatureType, FieldAccessor, FocusPosition, GradientColor, HeatmapHitTestResult, HoverConfig, HoverProps, ItemContext, ItemProps, KeyboardNavState, KeyboardNavigationConfig, LegendItemRenderContext, LegendProps, LineHitTestResult, LineRenderData, LineRenderProps, LinearScale, MarkerOverlayEntry, PartitionFillStyle, PartitionLabelStyle, PolarRenderData, PropertyAnimationConfig, RadarDatasetEntry, RadarRenderData, RadialHitTestResult, RangeFeatureProps, ReferenceBandGeometry, ReferenceLineGeometry, RendererType, ResolvedSyncConfig, ScatterHitTestResult, SeparatorStyle, SeriesType, SharedLegendItem, SyncConfig, TooltipProps, TooltipRenderContext, TreemapCellContext, ZoomProps, ZoomState } from '@primeui/chart-types';
|
|
27
|
+
export type { AccessibilityProps, Alignment, AnimationConfig, AnnotationContext, AnnotationRender, AxisCategoryProps, AxisGroupDefinition, BarDatasetInfo, BarShapeFunction, BarShapeInfo, BarVisualLayoutOutput, BorderRadius, BracketThemeColors, CaptionOptions, CartesianFrameParams, ChartAreaAxes, ChartAreaDataset, ChartExportMethods, ChartHoverContextValue, ChartMethodsContextValue, ChartStateContextValue, ColorLegendRendererProps, CrosshairContext, CrosshairLayout, DataLabelAlignTo, DataLabelContext, DataLabelLineStyle, DecimationContextValue, DragState, DragType, EasingFunctionName, ExportMenuButtonOptions, ExportMenuIconContext, ExportMenuItem, ExportMenuItemContext, FeaturePropsMap, FrameContext, FullEffectConfig, GradientStop, HeatmapCellContext, HeatmapRenderProps, HitTestResult, HoverState, ItemCollectorContextValue, KeyNavAction, LastVisibleLayoutsCache, LegendItem, LegendOptions, LegendRendererProps, LinearGradientConfig, NavigatorProps, NavigatorRendererProps, NavigatorSeriesConfig, DataTableCellContext, PointDescriptionContext, PointPositionProvider, PointRenderContext, RadarSeriesProps, RadialGradient, RadialGridLayout, RadialXAxisConfig, RadialYAxisConfig, RangeContextValue, ReferenceBandFeatureProps, ReferenceLineFeatureProps, ResponsiveBreakpoints, ResponsiveConfigResult, ResponsiveFeatureProps, ResponsiveFeatureProps as ResponsiveProps, ResponsiveRule, RingLayoutInfo, ScaleFunction, SegmentContext, SeriesDescriptionContext, SharedLegendItemProps, SharedLegendMode, SliceRenderContext, SliceState, StackedContextValue, SyncBus, SyncDatasetInfo, TickStyle, TickValue, TitleOptions, TitleProps, TooltipItem, TooltipRow, TooltipState, UseAxisComponentBaseResult, XAxisProps, YAxisProps, ZoomAxisWindow, ZoomControllerConfig, ZoomHandle, ZoomMode } from '@primeui/chart-core';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ItemProps, SeriesType } from '@primeui/chart-types';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
|
+
export interface ChartItemProps extends ItemProps {
|
|
4
|
+
borderRadius?: number | {
|
|
5
|
+
topLeft?: number;
|
|
6
|
+
topRight?: number;
|
|
7
|
+
bottomRight?: number;
|
|
8
|
+
bottomLeft?: number;
|
|
9
|
+
};
|
|
10
|
+
y?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface UseDatasetRegistrationOptions<T> {
|
|
13
|
+
/** Unique identifier for this dataset */
|
|
14
|
+
id: Ref<string>;
|
|
15
|
+
/** Series type (bar, line, area, pie, etc.) */
|
|
16
|
+
type: SeriesType;
|
|
17
|
+
/** Component props — reactive */
|
|
18
|
+
props: Ref<T>;
|
|
19
|
+
/** Optional type resolver for dynamic types (e.g., pie vs donut based on innerRadius) */
|
|
20
|
+
typeResolver?: (props: T) => SeriesType;
|
|
21
|
+
}
|
|
22
|
+
export interface UseItemCollectorResult<T> {
|
|
23
|
+
/** Read collected items sorted by index. */
|
|
24
|
+
getItems: () => T[];
|
|
25
|
+
}
|