@primeui/chart-core 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/animations/index.d.mts +136 -0
- package/dist/animations/index.mjs +18 -0
- package/dist/annotation.utils-Bm0lOO1o.d.mts +290 -0
- package/dist/borderRadius.utils-Cz73LLR_.d.mts +54 -0
- package/dist/canvas-D4vigq47.d.mts +34 -0
- package/dist/canvas.utils-D2WHi2gL.d.mts +167 -0
- package/dist/cartesian/index.d.mts +94 -0
- package/dist/cartesian/index.mjs +93 -0
- package/dist/chunk-22ST6YPP.mjs +304 -0
- package/dist/chunk-2QK2KOBN.mjs +10 -0
- package/dist/chunk-2QRS4YQ5.mjs +18 -0
- package/dist/chunk-3FFJEX4A.mjs +261 -0
- package/dist/chunk-3IYSJ2U7.mjs +567 -0
- package/dist/chunk-3OZLP4I4.mjs +190 -0
- package/dist/chunk-3WEMHXZI.mjs +198 -0
- package/dist/chunk-3Z62EUJN.mjs +138 -0
- package/dist/chunk-4C6EVJ54.mjs +362 -0
- package/dist/chunk-53HW45JB.mjs +102 -0
- package/dist/chunk-55Y3WI6S.mjs +186 -0
- package/dist/chunk-5JCI2DEB.mjs +97 -0
- package/dist/chunk-66T4MRC5.mjs +113 -0
- package/dist/chunk-6HSEJLSR.mjs +376 -0
- package/dist/chunk-6STOLMCA.mjs +187 -0
- package/dist/chunk-7CMVDIOU.mjs +54 -0
- package/dist/chunk-7QQ6ETB4.mjs +228 -0
- package/dist/chunk-A6ZQZFL2.mjs +272 -0
- package/dist/chunk-ADKLH73T.mjs +1 -0
- package/dist/chunk-AGU3NG6D.mjs +22 -0
- package/dist/chunk-AHYIS6EB.mjs +230 -0
- package/dist/chunk-AP3UYWYT.mjs +4 -0
- package/dist/chunk-ARB5T6MP.mjs +326 -0
- package/dist/chunk-ARRGOEFX.mjs +585 -0
- package/dist/chunk-AUF4CHDP.mjs +422 -0
- package/dist/chunk-B4FTADAZ.mjs +561 -0
- package/dist/chunk-BABQKA6K.mjs +339 -0
- package/dist/chunk-BETFQBM2.mjs +197 -0
- package/dist/chunk-BKP26M4K.mjs +413 -0
- package/dist/chunk-BZN2QHGP.mjs +200 -0
- package/dist/chunk-C36VWQ7A.mjs +86 -0
- package/dist/chunk-CHW4RKY3.mjs +16 -0
- package/dist/chunk-CINXJIRR.mjs +120 -0
- package/dist/chunk-DN6AXQYZ.mjs +667 -0
- package/dist/chunk-DP2IZNN3.mjs +92 -0
- package/dist/chunk-DTWTCFRG.mjs +119 -0
- package/dist/chunk-EAMUNLRU.mjs +172 -0
- package/dist/chunk-EDAKJLNA.mjs +17 -0
- package/dist/chunk-ERVQB2VZ.mjs +59 -0
- package/dist/chunk-FFMT6OCO.mjs +92 -0
- package/dist/chunk-FHTC2YDB.mjs +102 -0
- package/dist/chunk-FRST55HY.mjs +16 -0
- package/dist/chunk-HDFGCN2F.mjs +132 -0
- package/dist/chunk-IEGLX7VL.mjs +42 -0
- package/dist/chunk-ILUWFYGY.mjs +220 -0
- package/dist/chunk-IXOWSEHO.mjs +114 -0
- package/dist/chunk-J4RI2C2G.mjs +172 -0
- package/dist/chunk-J65DBT4R.mjs +13 -0
- package/dist/chunk-JGOVWSKH.mjs +179 -0
- package/dist/chunk-JO7VACY2.mjs +25 -0
- package/dist/chunk-JWFBOPM6.mjs +122 -0
- package/dist/chunk-KNDZP446.mjs +895 -0
- package/dist/chunk-KP2TWD4Z.mjs +90 -0
- package/dist/chunk-KQIFO5I3.mjs +225 -0
- package/dist/chunk-KVDEROP6.mjs +59 -0
- package/dist/chunk-LKC7MZKK.mjs +87 -0
- package/dist/chunk-LVMDQ4OJ.mjs +305 -0
- package/dist/chunk-M7B3JF43.mjs +90 -0
- package/dist/chunk-MTGMXRNF.mjs +136 -0
- package/dist/chunk-N3TIT3OH.mjs +1040 -0
- package/dist/chunk-NHRK5KU2.mjs +890 -0
- package/dist/chunk-NKUYIWAP.mjs +243 -0
- package/dist/chunk-NPDZLYIF.mjs +238 -0
- package/dist/chunk-O2X6FF45.mjs +499 -0
- package/dist/chunk-OGJ6IIBW.mjs +176 -0
- package/dist/chunk-OHGCZZPZ.mjs +403 -0
- package/dist/chunk-OWW3K55O.mjs +351 -0
- package/dist/chunk-OXTFAWSK.mjs +60 -0
- package/dist/chunk-PLSDU3C2.mjs +890 -0
- package/dist/chunk-PRDVPOZX.mjs +223 -0
- package/dist/chunk-Q6PPVIHU.mjs +21 -0
- package/dist/chunk-QQBXUDM4.mjs +885 -0
- package/dist/chunk-QS76E3TD.mjs +111 -0
- package/dist/chunk-QWQ6HY4I.mjs +209 -0
- package/dist/chunk-R6Y3R7EW.mjs +135 -0
- package/dist/chunk-RBLZRT5K.mjs +190 -0
- package/dist/chunk-RO4N6YFS.mjs +167 -0
- package/dist/chunk-RQ3CKQOX.mjs +984 -0
- package/dist/chunk-SALTGZFR.mjs +208 -0
- package/dist/chunk-SANZPAJ4.mjs +14 -0
- package/dist/chunk-SDBPQ5CF.mjs +624 -0
- package/dist/chunk-SSLTFJ3U.mjs +364 -0
- package/dist/chunk-SXHVDJGF.mjs +77 -0
- package/dist/chunk-TA4MVAEX.mjs +243 -0
- package/dist/chunk-TAHCOZHF.mjs +1772 -0
- package/dist/chunk-TQ6S34QZ.mjs +152 -0
- package/dist/chunk-UPRXABX5.mjs +90 -0
- package/dist/chunk-VGLSBZDN.mjs +71 -0
- package/dist/chunk-VN7CKCSE.mjs +364 -0
- package/dist/chunk-VVI3OBPJ.mjs +524 -0
- package/dist/chunk-VWF57TS3.mjs +62 -0
- package/dist/chunk-WA3OVISZ.mjs +179 -0
- package/dist/chunk-WCG35U6M.mjs +964 -0
- package/dist/chunk-WFTX4AQJ.mjs +194 -0
- package/dist/chunk-WFVOQ2QZ.mjs +18 -0
- package/dist/chunk-WH3C3Y7P.mjs +149 -0
- package/dist/chunk-WPFUV7K3.mjs +488 -0
- package/dist/chunk-WRULPWHD.mjs +492 -0
- package/dist/chunk-WS64BZXT.mjs +1 -0
- package/dist/chunk-WY4AURRE.mjs +2419 -0
- package/dist/chunk-WYLILAOO.mjs +167 -0
- package/dist/chunk-X4D7FKUS.mjs +62 -0
- package/dist/chunk-X7T34OLW.mjs +139 -0
- package/dist/chunk-XIHBK5D3.mjs +68 -0
- package/dist/chunk-XQQCGFYB.mjs +50 -0
- package/dist/chunk-XTVE4P3L.mjs +214 -0
- package/dist/chunk-XUAASRXW.mjs +579 -0
- package/dist/chunk-Y3L3D4GQ.mjs +685 -0
- package/dist/chunk-YBJ56XJS.mjs +132 -0
- package/dist/chunk-ZQFK6CAE.mjs +1 -0
- package/dist/chunk-ZT2Z7ERM.mjs +874 -0
- package/dist/chunk-ZTL2FQEW.mjs +714 -0
- package/dist/circular/arc/index.d.mts +8 -0
- package/dist/circular/arc/index.mjs +3 -0
- package/dist/circular/index.d.mts +44 -0
- package/dist/circular/index.mjs +13 -0
- package/dist/collect.utils-DiKB4ciO.d.mts +12 -0
- package/dist/computeChartState-BTVIqwyO.d.mts +304 -0
- package/dist/controller-BJE1AZ3q.d.mts +82 -0
- package/dist/controller-BoNigQJr.d.mts +63 -0
- package/dist/controllers/index.d.mts +16 -0
- package/dist/controllers/index.mjs +110 -0
- package/dist/datalabel.utils-CkjGeB8S.d.mts +122 -0
- package/dist/decimation.utils-CcvJVhI4.d.mts +244 -0
- package/dist/geometry-DUUQJXVM.d.mts +60 -0
- package/dist/index-DseIZa1j.d.mts +167 -0
- package/dist/index.d.mts +88 -0
- package/dist/index.mjs +110 -0
- package/dist/orchestrator/index.d.mts +264 -0
- package/dist/orchestrator/index.mjs +33 -0
- package/dist/plugins/index.d.mts +18 -0
- package/dist/plugins/index.mjs +1 -0
- package/dist/property-animations-D433wXzz.d.mts +580 -0
- package/dist/property-store-NORUWFND.d.mts +17 -0
- package/dist/radial/index.d.mts +14 -0
- package/dist/radial/index.mjs +37 -0
- package/dist/renderers/axis/index.d.mts +39 -0
- package/dist/renderers/axis/index.mjs +8 -0
- package/dist/renderers/circular/index.d.mts +13 -0
- package/dist/renderers/circular/index.mjs +13 -0
- package/dist/renderers/index.d.mts +83 -0
- package/dist/renderers/index.mjs +75 -0
- package/dist/renderers/navigator/index.d.mts +103 -0
- package/dist/renderers/navigator/index.mjs +8 -0
- package/dist/resize.utils-D_2qm6rv.d.mts +142 -0
- package/dist/ring.utils-DXvrxMkU.d.mts +138 -0
- package/dist/scale-KFv30jqZ.d.mts +307 -0
- package/dist/scales-Drf8AIhL.d.mts +75 -0
- package/dist/series/bar/canvas/index.d.mts +8 -0
- package/dist/series/bar/canvas/index.mjs +10 -0
- package/dist/series/bar/controller/index.d.mts +105 -0
- package/dist/series/bar/controller/index.mjs +44 -0
- package/dist/series/bar/controller-canvas/index.d.mts +7 -0
- package/dist/series/bar/controller-canvas/index.mjs +49 -0
- package/dist/series/bar/controller-svg/index.d.mts +7 -0
- package/dist/series/bar/controller-svg/index.mjs +49 -0
- package/dist/series/bar/index.d.mts +60 -0
- package/dist/series/bar/index.mjs +13 -0
- package/dist/series/bar/svg/index.d.mts +8 -0
- package/dist/series/bar/svg/index.mjs +11 -0
- package/dist/series/candlestick/canvas/index.d.mts +8 -0
- package/dist/series/candlestick/canvas/index.mjs +8 -0
- package/dist/series/candlestick/controller/index.d.mts +123 -0
- package/dist/series/candlestick/controller/index.mjs +40 -0
- package/dist/series/candlestick/controller-canvas/index.d.mts +7 -0
- package/dist/series/candlestick/controller-canvas/index.mjs +45 -0
- package/dist/series/candlestick/controller-svg/index.d.mts +7 -0
- package/dist/series/candlestick/controller-svg/index.mjs +45 -0
- package/dist/series/candlestick/index.d.mts +11 -0
- package/dist/series/candlestick/index.mjs +10 -0
- package/dist/series/candlestick/svg/index.d.mts +8 -0
- package/dist/series/candlestick/svg/index.mjs +8 -0
- package/dist/series/heatmap/canvas/index.d.mts +16 -0
- package/dist/series/heatmap/canvas/index.mjs +9 -0
- package/dist/series/heatmap/controller/index.d.mts +110 -0
- package/dist/series/heatmap/controller/index.mjs +23 -0
- package/dist/series/heatmap/controller-canvas/index.d.mts +7 -0
- package/dist/series/heatmap/controller-canvas/index.mjs +28 -0
- package/dist/series/heatmap/controller-svg/index.d.mts +7 -0
- package/dist/series/heatmap/controller-svg/index.mjs +28 -0
- package/dist/series/heatmap/index.d.mts +34 -0
- package/dist/series/heatmap/index.mjs +13 -0
- package/dist/series/heatmap/svg/index.d.mts +15 -0
- package/dist/series/heatmap/svg/index.mjs +10 -0
- package/dist/series/line/canvas/index.d.mts +6 -0
- package/dist/series/line/canvas/index.mjs +9 -0
- package/dist/series/line/controller/index.d.mts +111 -0
- package/dist/series/line/controller/index.mjs +47 -0
- package/dist/series/line/controller-canvas/index.d.mts +7 -0
- package/dist/series/line/controller-canvas/index.mjs +54 -0
- package/dist/series/line/controller-svg/index.d.mts +7 -0
- package/dist/series/line/controller-svg/index.mjs +54 -0
- package/dist/series/line/index.d.mts +49 -0
- package/dist/series/line/index.mjs +13 -0
- package/dist/series/line/svg/index.d.mts +6 -0
- package/dist/series/line/svg/index.mjs +9 -0
- package/dist/series/pie/canvas/index.d.mts +8 -0
- package/dist/series/pie/canvas/index.mjs +10 -0
- package/dist/series/pie/controller/index.d.mts +174 -0
- package/dist/series/pie/controller/index.mjs +110 -0
- package/dist/series/pie/controller-canvas/index.d.mts +8 -0
- package/dist/series/pie/controller-canvas/index.mjs +119 -0
- package/dist/series/pie/controller-svg/index.d.mts +8 -0
- package/dist/series/pie/controller-svg/index.mjs +118 -0
- package/dist/series/pie/index.d.mts +59 -0
- package/dist/series/pie/index.mjs +15 -0
- package/dist/series/pie/svg/index.d.mts +6 -0
- package/dist/series/pie/svg/index.mjs +11 -0
- package/dist/series/polar/canvas/index.d.mts +6 -0
- package/dist/series/polar/canvas/index.mjs +7 -0
- package/dist/series/polar/controller/index.d.mts +102 -0
- package/dist/series/polar/controller/index.mjs +46 -0
- package/dist/series/polar/controller-canvas/index.d.mts +8 -0
- package/dist/series/polar/controller-canvas/index.mjs +52 -0
- package/dist/series/polar/controller-svg/index.d.mts +8 -0
- package/dist/series/polar/controller-svg/index.mjs +52 -0
- package/dist/series/polar/index.d.mts +25 -0
- package/dist/series/polar/index.mjs +16 -0
- package/dist/series/polar/svg/index.d.mts +10 -0
- package/dist/series/polar/svg/index.mjs +8 -0
- package/dist/series/radar/canvas/index.d.mts +6 -0
- package/dist/series/radar/canvas/index.mjs +8 -0
- package/dist/series/radar/controller/index.d.mts +121 -0
- package/dist/series/radar/controller/index.mjs +43 -0
- package/dist/series/radar/controller-canvas/index.d.mts +8 -0
- package/dist/series/radar/controller-canvas/index.mjs +51 -0
- package/dist/series/radar/controller-svg/index.d.mts +8 -0
- package/dist/series/radar/controller-svg/index.mjs +51 -0
- package/dist/series/radar/index.d.mts +40 -0
- package/dist/series/radar/index.mjs +13 -0
- package/dist/series/radar/svg/index.d.mts +12 -0
- package/dist/series/radar/svg/index.mjs +9 -0
- package/dist/series/scatter/canvas/index.d.mts +8 -0
- package/dist/series/scatter/canvas/index.mjs +11 -0
- package/dist/series/scatter/controller/index.d.mts +124 -0
- package/dist/series/scatter/controller/index.mjs +44 -0
- package/dist/series/scatter/controller-canvas/index.d.mts +7 -0
- package/dist/series/scatter/controller-canvas/index.mjs +51 -0
- package/dist/series/scatter/controller-svg/index.d.mts +7 -0
- package/dist/series/scatter/controller-svg/index.mjs +51 -0
- package/dist/series/scatter/index.d.mts +25 -0
- package/dist/series/scatter/index.mjs +14 -0
- package/dist/series/scatter/svg/index.d.mts +8 -0
- package/dist/series/scatter/svg/index.mjs +12 -0
- package/dist/series/treemap/canvas/index.d.mts +50 -0
- package/dist/series/treemap/canvas/index.mjs +10 -0
- package/dist/series/treemap/controller/index.d.mts +130 -0
- package/dist/series/treemap/controller/index.mjs +20 -0
- package/dist/series/treemap/controller-canvas/index.d.mts +7 -0
- package/dist/series/treemap/controller-canvas/index.mjs +25 -0
- package/dist/series/treemap/controller-svg/index.d.mts +7 -0
- package/dist/series/treemap/controller-svg/index.mjs +25 -0
- package/dist/series/treemap/index.d.mts +15 -0
- package/dist/series/treemap/index.mjs +12 -0
- package/dist/series/treemap/svg/index.d.mts +15 -0
- package/dist/series/treemap/svg/index.mjs +9 -0
- package/dist/slices-DtewiwJx.d.mts +72 -0
- package/dist/spatialIndex.utils-B_GJkotZ.d.mts +5 -0
- package/dist/squarify.utils-B9CQBpa1.d.mts +50 -0
- package/dist/stacking-CChuAcLN.d.mts +319 -0
- package/dist/streaming.utils-DH-g1gNP.d.mts +49 -0
- package/dist/sync/index.d.mts +130 -0
- package/dist/sync/index.mjs +5 -0
- package/dist/tooltip.renderer-D5wpSlBa.d.mts +210 -0
- package/dist/utils/color/index.d.mts +58 -0
- package/dist/utils/color/index.mjs +4 -0
- package/dist/utils/data/index.d.mts +180 -0
- package/dist/utils/data/index.mjs +7 -0
- package/dist/utils/export/index.d.mts +14 -0
- package/dist/utils/export/index.mjs +6 -0
- package/dist/utils/index.d.mts +49 -0
- package/dist/utils/index.mjs +29 -0
- package/dist/utils/interaction/index.d.mts +255 -0
- package/dist/utils/interaction/index.mjs +9 -0
- package/dist/utils/layout/index.d.mts +3 -0
- package/dist/utils/layout/index.mjs +10 -0
- package/dist/utils/math/index.d.mts +162 -0
- package/dist/utils/math/index.mjs +1 -0
- package/dist/utils/render/index.d.mts +19 -0
- package/dist/utils/render/index.mjs +3 -0
- package/dist/utils/specialized/index.d.mts +37 -0
- package/dist/utils/specialized/index.mjs +66 -0
- package/dist/utils/text/index.d.mts +39 -0
- package/dist/utils/text/index.mjs +8 -0
- package/dist/utils/theme/index.d.mts +295 -0
- package/dist/utils/theme/index.mjs +5 -0
- package/dist/utils/zoom/index.d.mts +90 -0
- package/dist/utils/zoom/index.mjs +3 -0
- package/package.json +56 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { C as CLIP_PIXEL_MARGIN, F as FULL_CIRCLE_THRESHOLD, H as HALF_PI, c as computeSlices, f as findSliceAtPoint, g as getSweepCenterAngle, i as isFullCircle, a as isFullSweepSlice, b as isPointInSlice, p as preprocessArcConfig, r as rThetaToXY } from '../../slices-DtewiwJx.mjs';
|
|
2
|
+
import { ArcConfig } from '@primeui/chart-types';
|
|
3
|
+
|
|
4
|
+
declare function buildSvgArcPath(config: ArcConfig, isFullCircleChart?: boolean): string;
|
|
5
|
+
|
|
6
|
+
declare function drawCanvasArc(ctx: CanvasRenderingContext2D, cx: number, cy: number, config: ArcConfig, isFullCircleChart?: boolean): void;
|
|
7
|
+
|
|
8
|
+
export { buildSvgArcPath, drawCanvasArc };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { CLIP_PIXEL_MARGIN, FULL_CIRCLE_THRESHOLD, HALF_PI, buildSvgArcPath, computeSlices, drawCanvasArc, findSliceAtPoint, getSweepCenterAngle, isFullCircle, isFullSweepSlice, isPointInSlice, preprocessArcConfig, rThetaToXY } from '../../chunk-LVMDQ4OJ.mjs';
|
|
2
|
+
import '../../chunk-VGLSBZDN.mjs';
|
|
3
|
+
import '../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { C as CLIP_PIXEL_MARGIN, F as FULL_CIRCLE_THRESHOLD, c as computeSlices, f as findSliceAtPoint, g as getSweepCenterAngle, i as isFullCircle, a as isFullSweepSlice, b as isPointInSlice, p as preprocessArcConfig } from '../slices-DtewiwJx.mjs';
|
|
2
|
+
export { buildSvgArcPath, drawCanvasArc } from './arc/index.mjs';
|
|
3
|
+
export { c as clampArcBorderRadius, h as hasArcBorderRadius } from '../borderRadius.utils-Cz73LLR_.mjs';
|
|
4
|
+
export { D as DEFAULT_LABEL_LAYOUT_OPTIONS, a as applyRingLayout, b as boxAreaToBounds, c as buildHitTestStates, d as buildPieDataLabelLayout, e as buildPieSliceContentItems, f as buildPieVisibilityMap, g as buildRingTarget, h as buildSliceStyleData, i as calculateLabelLayout, j as calculateRingLayouts, k as computeLabelAwareRadius, l as computeSliceRadiusRatios, r as renderCanvasSlices } from '../ring.utils-DXvrxMkU.mjs';
|
|
5
|
+
import { LabelLayoutItem, CanvasDataLabelOptions, RadialSliceState, RadialFrameContext, SliceGeometry } from '@primeui/chart-types';
|
|
6
|
+
import '@primeui/chart-types/layout';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Determines which side of the chart a label should be based on angle.
|
|
10
|
+
*
|
|
11
|
+
* @param angle - Angle in degrees
|
|
12
|
+
*/
|
|
13
|
+
declare function getLabelSide(angle: number): 'left' | 'right';
|
|
14
|
+
/**
|
|
15
|
+
* Draws a leader line for a data label on canvas.
|
|
16
|
+
*
|
|
17
|
+
* @param ctx - Canvas 2D context
|
|
18
|
+
* @param layout - Pre-calculated label layout item
|
|
19
|
+
* @param centerX - Chart center X
|
|
20
|
+
* @param centerY - Chart center Y
|
|
21
|
+
* @param strokeColor - Leader line color
|
|
22
|
+
* @param strokeWidth - Leader line width
|
|
23
|
+
*/
|
|
24
|
+
declare function drawCanvasLeaderLine(ctx: CanvasRenderingContext2D, layout: LabelLayoutItem, centerX: number, centerY: number, strokeColor: string, strokeWidth: number): void;
|
|
25
|
+
/**
|
|
26
|
+
* Draws a straight leader line (P1 → P3, no elbow) for a data label on canvas.
|
|
27
|
+
*/
|
|
28
|
+
declare function drawCanvasStraightLeaderLine(ctx: CanvasRenderingContext2D, layout: LabelLayoutItem, centerX: number, centerY: number, strokeColor: string, strokeWidth: number): void;
|
|
29
|
+
/**
|
|
30
|
+
* Draws wrapped text lines for a data label on canvas (default rendering).
|
|
31
|
+
*
|
|
32
|
+
* @param ctx - Canvas 2D context
|
|
33
|
+
* @param layout - Label layout item (for lines, position, and side)
|
|
34
|
+
* @param centerX - Chart center X
|
|
35
|
+
* @param centerY - Chart center Y
|
|
36
|
+
* @param textColor - Text color
|
|
37
|
+
* @param options - Style options
|
|
38
|
+
*/
|
|
39
|
+
declare function drawCanvasLabelLines(ctx: CanvasRenderingContext2D, layout: LabelLayoutItem, centerX: number, centerY: number, textColor: string, options: CanvasDataLabelOptions): void;
|
|
40
|
+
|
|
41
|
+
/** Compute the geometry for a single slice within a radial frame */
|
|
42
|
+
declare function computeSliceGeometry(slice: RadialSliceState, currentAngle: number, frame: RadialFrameContext): SliceGeometry;
|
|
43
|
+
|
|
44
|
+
export { computeSliceGeometry, drawCanvasLabelLines, drawCanvasLeaderLine, drawCanvasStraightLeaderLine, getLabelSide };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { applyRingLayout, buildHitTestStates, buildPieSliceContentItems, buildPieVisibilityMap, buildRingTarget, buildSliceStyleData, calculateRingLayouts, computeSliceRadiusRatios, renderCanvasSlices } from '../chunk-ARB5T6MP.mjs';
|
|
2
|
+
export { DEFAULT_LABEL_LAYOUT_OPTIONS, boxAreaToBounds, buildPieDataLabelLayout, calculateLabelLayout, computeLabelAwareRadius, computeSliceGeometry, drawCanvasLabelLines, drawCanvasLeaderLine, drawCanvasStraightLeaderLine, getLabelSide } from '../chunk-4C6EVJ54.mjs';
|
|
3
|
+
export { CLIP_PIXEL_MARGIN, FULL_CIRCLE_THRESHOLD, buildSvgArcPath, computeSlices, drawCanvasArc, findSliceAtPoint, getSweepCenterAngle, isFullCircle, isFullSweepSlice, isPointInSlice, preprocessArcConfig } from '../chunk-LVMDQ4OJ.mjs';
|
|
4
|
+
export { clampArcBorderRadius, hasArcBorderRadius } from '../chunk-VGLSBZDN.mjs';
|
|
5
|
+
import '../chunk-NPDZLYIF.mjs';
|
|
6
|
+
import '../chunk-BZN2QHGP.mjs';
|
|
7
|
+
import '../chunk-OXTFAWSK.mjs';
|
|
8
|
+
import '../chunk-XTVE4P3L.mjs';
|
|
9
|
+
import '../chunk-NKUYIWAP.mjs';
|
|
10
|
+
import '../chunk-QS76E3TD.mjs';
|
|
11
|
+
import '../chunk-O2X6FF45.mjs';
|
|
12
|
+
import '../chunk-SSLTFJ3U.mjs';
|
|
13
|
+
import '../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DatasetRegistration, CollectedItems } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Partition all registered datasets into typed buckets in a single pass.
|
|
5
|
+
*
|
|
6
|
+
* @param sortedDatasets - Datasets sorted by registration order (from Map.entries().sort())
|
|
7
|
+
* @param datasetVisibility - Visibility map from context
|
|
8
|
+
* @returns Partitioned dataset collections for each chart type
|
|
9
|
+
*/
|
|
10
|
+
declare function collectItems(sortedDatasets: [string, DatasetRegistration][], datasetVisibility: Map<string, boolean>): CollectedItems;
|
|
11
|
+
|
|
12
|
+
export { collectItems as c };
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { NavigatorProps, ChartTheme, BoxArea, DatasetRegistration, LegendProps, TooltipProps, HoverProps, TitleProps, CaptionProps, BreadcrumbProps, ColorLegendProps, ZoomProps, AccessibilityProps, LegendItem } from '@primeui/chart-types';
|
|
2
|
+
import { NormalizedCrosshairConfig } from '@primeui/chart-types/cartesian';
|
|
3
|
+
import { AdaptiveDefaults } from '@primeui/chart-types/responsive';
|
|
4
|
+
import * as _primeui_chart_chart_types from '@primeui/chart/chart-types';
|
|
5
|
+
|
|
6
|
+
interface LayoutInputs {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
titleConfig: {
|
|
10
|
+
text?: string;
|
|
11
|
+
position?: string;
|
|
12
|
+
fontSize?: number;
|
|
13
|
+
padding?: number | {
|
|
14
|
+
top?: number;
|
|
15
|
+
};
|
|
16
|
+
floating?: boolean;
|
|
17
|
+
} | undefined;
|
|
18
|
+
captionConfig: {
|
|
19
|
+
text?: string;
|
|
20
|
+
position?: string;
|
|
21
|
+
fontSize?: number;
|
|
22
|
+
padding?: number | {
|
|
23
|
+
top?: number;
|
|
24
|
+
bottom?: number;
|
|
25
|
+
};
|
|
26
|
+
measuredHeight?: number;
|
|
27
|
+
} | undefined;
|
|
28
|
+
legendConfig: {
|
|
29
|
+
position?: string;
|
|
30
|
+
maxWidth?: number;
|
|
31
|
+
maxHeight?: number;
|
|
32
|
+
width?: number;
|
|
33
|
+
height?: number;
|
|
34
|
+
} | undefined;
|
|
35
|
+
legendEnabled: boolean;
|
|
36
|
+
hoverOffset: number;
|
|
37
|
+
navigatorConfig: NavigatorProps | undefined;
|
|
38
|
+
colorLegendConfig: {
|
|
39
|
+
position?: string;
|
|
40
|
+
reservedSize?: number;
|
|
41
|
+
} | undefined;
|
|
42
|
+
exportMenuConfig: {
|
|
43
|
+
enabled?: boolean;
|
|
44
|
+
buttons?: {
|
|
45
|
+
verticalAlign?: string;
|
|
46
|
+
y?: number;
|
|
47
|
+
};
|
|
48
|
+
} | undefined;
|
|
49
|
+
drilldownIsActive: boolean;
|
|
50
|
+
isCartesian: boolean;
|
|
51
|
+
theme: Required<ChartTheme>;
|
|
52
|
+
adaptive: {
|
|
53
|
+
chartPadding: number;
|
|
54
|
+
chartTitleFontSize: number;
|
|
55
|
+
chartCaptionFontSize: number;
|
|
56
|
+
legendAutoReposition?: boolean;
|
|
57
|
+
};
|
|
58
|
+
ruleOverrides: {
|
|
59
|
+
title?: {
|
|
60
|
+
fontSize?: number;
|
|
61
|
+
};
|
|
62
|
+
caption?: {
|
|
63
|
+
fontSize?: number;
|
|
64
|
+
};
|
|
65
|
+
legend?: {
|
|
66
|
+
enabled?: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
interface BuildLayoutInputsParams {
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
titleConfig: {
|
|
74
|
+
text?: string;
|
|
75
|
+
position?: string;
|
|
76
|
+
fontSize?: number;
|
|
77
|
+
padding?: number | {
|
|
78
|
+
top?: number;
|
|
79
|
+
};
|
|
80
|
+
floating?: boolean;
|
|
81
|
+
} | undefined;
|
|
82
|
+
captionConfig: {
|
|
83
|
+
text?: string;
|
|
84
|
+
position?: string;
|
|
85
|
+
fontSize?: number;
|
|
86
|
+
padding?: number | {
|
|
87
|
+
top?: number;
|
|
88
|
+
bottom?: number;
|
|
89
|
+
};
|
|
90
|
+
} | undefined;
|
|
91
|
+
measuredCaptionHeight?: number;
|
|
92
|
+
legendConfig: {
|
|
93
|
+
position?: string;
|
|
94
|
+
maxWidth?: number;
|
|
95
|
+
maxHeight?: number;
|
|
96
|
+
[key: string]: unknown;
|
|
97
|
+
} | undefined;
|
|
98
|
+
hoverConfig: {
|
|
99
|
+
offset?: number;
|
|
100
|
+
} | undefined;
|
|
101
|
+
navigatorConfig: NavigatorProps | undefined;
|
|
102
|
+
colorLegendConfig: {
|
|
103
|
+
position?: string;
|
|
104
|
+
reservedSize?: number;
|
|
105
|
+
} | undefined;
|
|
106
|
+
exportMenuConfig: {
|
|
107
|
+
enabled?: boolean;
|
|
108
|
+
buttons?: {
|
|
109
|
+
verticalAlign?: string;
|
|
110
|
+
y?: number;
|
|
111
|
+
};
|
|
112
|
+
} | undefined;
|
|
113
|
+
drilldownIsActive: boolean;
|
|
114
|
+
isCartesian: boolean;
|
|
115
|
+
theme: Required<ChartTheme>;
|
|
116
|
+
adaptive: {
|
|
117
|
+
chartPadding: number;
|
|
118
|
+
chartTitleFontSize: number;
|
|
119
|
+
chartCaptionFontSize: number;
|
|
120
|
+
legendAutoReposition?: boolean;
|
|
121
|
+
};
|
|
122
|
+
ruleOverrides: {
|
|
123
|
+
title?: {
|
|
124
|
+
fontSize?: unknown;
|
|
125
|
+
} | undefined;
|
|
126
|
+
caption?: {
|
|
127
|
+
fontSize?: unknown;
|
|
128
|
+
} | undefined;
|
|
129
|
+
legend?: {
|
|
130
|
+
enabled?: unknown;
|
|
131
|
+
} | undefined;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
declare function buildLayoutInputs(p: BuildLayoutInputsParams): LayoutInputs;
|
|
135
|
+
declare function computeEffectiveLegendPosition(legendPosition: string | undefined, legendAutoReposition: boolean | undefined): 'top' | 'bottom' | 'left' | 'right';
|
|
136
|
+
declare function computeTitleLayout(inputs: LayoutInputs): _primeui_chart_chart_types.TitleCaptionLayout;
|
|
137
|
+
/**
|
|
138
|
+
* Minimum reserved height (px, pre-padding ≈ 3–4 rows) for a side legend that was auto-flipped
|
|
139
|
+
* to the bottom on a narrow screen. Without it the default 40px reservation would scroll the
|
|
140
|
+
* legend down to a 1–2 row peephole. Applied only as a floor, only when no explicit
|
|
141
|
+
* height/maxHeight was set — native bottom legends keep their footprint. See resolveReservedLegendHeight.
|
|
142
|
+
*/
|
|
143
|
+
declare const AUTO_REPOSITIONED_LEGEND_MIN_HEIGHT = 90;
|
|
144
|
+
/**
|
|
145
|
+
* Vertical space (px, pre-padding) to reserve for a top/bottom legend. When a left/right legend
|
|
146
|
+
* was auto-repositioned to the bottom on a narrow screen, floor it to ~3–4 rows so the scroll
|
|
147
|
+
* fallback stays legible; native top/bottom legends and any explicit height/maxHeight are untouched.
|
|
148
|
+
*/
|
|
149
|
+
declare function resolveReservedLegendHeight(lc: {
|
|
150
|
+
position?: string;
|
|
151
|
+
height?: number;
|
|
152
|
+
maxHeight?: number;
|
|
153
|
+
}, effectivePosition: string): number;
|
|
154
|
+
declare function computeLegendArea(inputs: LayoutInputs, titleArea: BoxArea | null, effectiveLegendPosition: string): BoxArea | null;
|
|
155
|
+
declare function computeChartArea(inputs: LayoutInputs, titleArea: BoxArea | null, legendArea: BoxArea | null, effectiveLegendPosition: string, titleLayout: {
|
|
156
|
+
captionIndependentHeight: number;
|
|
157
|
+
captionIndependentPosition: string | null;
|
|
158
|
+
}): BoxArea | null;
|
|
159
|
+
declare function computeNavigatorArea(chartArea: BoxArea | null, navigatorConfig: NavigatorProps | undefined, isCartesian: boolean, theme: Required<ChartTheme>): BoxArea | null;
|
|
160
|
+
declare function computeColorLegendArea(chartArea: BoxArea | null, colorLegendConfig: {
|
|
161
|
+
position?: string;
|
|
162
|
+
reservedSize?: number;
|
|
163
|
+
} | undefined): BoxArea | null;
|
|
164
|
+
declare function computeResetZoomTop(chartArea: BoxArea | null, exportMenuConfig: {
|
|
165
|
+
enabled?: boolean;
|
|
166
|
+
buttons?: {
|
|
167
|
+
verticalAlign?: string;
|
|
168
|
+
y?: number;
|
|
169
|
+
};
|
|
170
|
+
} | undefined): number;
|
|
171
|
+
|
|
172
|
+
interface FeatureMap {
|
|
173
|
+
get(key: string): {
|
|
174
|
+
props: unknown;
|
|
175
|
+
} | undefined;
|
|
176
|
+
}
|
|
177
|
+
declare function extractFeatureConfigs(features: FeatureMap): {
|
|
178
|
+
legend: Record<string, unknown> | undefined;
|
|
179
|
+
tooltip: Record<string, unknown> | undefined;
|
|
180
|
+
hover: Record<string, unknown> | undefined;
|
|
181
|
+
title: Record<string, unknown> | undefined;
|
|
182
|
+
caption: Record<string, unknown> | undefined;
|
|
183
|
+
zoom: Record<string, unknown> | undefined;
|
|
184
|
+
accessibility: Record<string, unknown> | undefined;
|
|
185
|
+
navigator: Record<string, unknown> | undefined;
|
|
186
|
+
breadcrumb: Record<string, unknown> | undefined;
|
|
187
|
+
colorLegend: Record<string, unknown> | undefined;
|
|
188
|
+
exportMenu: Record<string, unknown> | undefined;
|
|
189
|
+
responsive: Record<string, unknown> | undefined;
|
|
190
|
+
};
|
|
191
|
+
declare function detectDatasetTypes(datasets: Map<string, {
|
|
192
|
+
type: string;
|
|
193
|
+
props: unknown;
|
|
194
|
+
}>): {
|
|
195
|
+
hasRadarDatasets: boolean;
|
|
196
|
+
hasPolarDatasets: boolean;
|
|
197
|
+
hasStackedPies: boolean;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
interface ComputeChartStateInputs {
|
|
201
|
+
width: number;
|
|
202
|
+
height: number;
|
|
203
|
+
features: Map<string, {
|
|
204
|
+
props: unknown;
|
|
205
|
+
}>;
|
|
206
|
+
datasets: Map<string, DatasetRegistration>;
|
|
207
|
+
datasetVisibility: Map<string, boolean>;
|
|
208
|
+
hiddenItems: Map<string, Set<number>>;
|
|
209
|
+
axes: {
|
|
210
|
+
x: Map<string, {
|
|
211
|
+
props?: unknown;
|
|
212
|
+
}>;
|
|
213
|
+
};
|
|
214
|
+
rendererHint: string | null;
|
|
215
|
+
drilldownIsActive: boolean;
|
|
216
|
+
measuredCaptionHeight: number;
|
|
217
|
+
theme: Required<ChartTheme>;
|
|
218
|
+
adaptive: AdaptiveDefaults;
|
|
219
|
+
ruleOverrides: Record<string, Record<string, unknown>>;
|
|
220
|
+
globalFontFamily?: string;
|
|
221
|
+
}
|
|
222
|
+
interface ComputedChartState {
|
|
223
|
+
legendConfig: LegendProps | undefined;
|
|
224
|
+
exportMenuConfig: {
|
|
225
|
+
enabled?: boolean;
|
|
226
|
+
buttons?: {
|
|
227
|
+
verticalAlign?: string;
|
|
228
|
+
y?: number;
|
|
229
|
+
};
|
|
230
|
+
} | undefined;
|
|
231
|
+
tooltipConfig: TooltipProps | undefined;
|
|
232
|
+
crosshairConfig: NormalizedCrosshairConfig | null;
|
|
233
|
+
hasCrosshair: boolean;
|
|
234
|
+
isSharedMode: boolean;
|
|
235
|
+
useNearestSnap: boolean;
|
|
236
|
+
hoverConfig: HoverProps | undefined;
|
|
237
|
+
titleConfig: TitleProps | undefined;
|
|
238
|
+
captionConfig: CaptionProps | undefined;
|
|
239
|
+
breadcrumbConfig: BreadcrumbProps | undefined;
|
|
240
|
+
colorLegendConfig: ColorLegendProps | undefined;
|
|
241
|
+
zoomConfig: ZoomProps | null;
|
|
242
|
+
resetButtonConfig: Record<string, unknown> | null;
|
|
243
|
+
navigatorConfig: NavigatorProps | undefined;
|
|
244
|
+
a11yConfig: AccessibilityProps | undefined;
|
|
245
|
+
a11yEnabled: boolean;
|
|
246
|
+
a11yHeadingLevel: string;
|
|
247
|
+
keyboardNavEnabled: boolean;
|
|
248
|
+
keyboardNavConfig: Record<string, unknown> | undefined;
|
|
249
|
+
xAxisTickFormat: unknown;
|
|
250
|
+
isCartesian: boolean;
|
|
251
|
+
isRect: boolean;
|
|
252
|
+
datasetTypes: ReturnType<typeof detectDatasetTypes>;
|
|
253
|
+
effectiveLegendPosition: 'top' | 'bottom' | 'left' | 'right';
|
|
254
|
+
titleLayout: ReturnType<typeof computeTitleLayout>;
|
|
255
|
+
titleArea: BoxArea | null;
|
|
256
|
+
legendArea: BoxArea | null;
|
|
257
|
+
chartArea: BoxArea | null;
|
|
258
|
+
navigatorArea: BoxArea | null;
|
|
259
|
+
colorLegendArea: BoxArea | null;
|
|
260
|
+
resetZoomTop: number;
|
|
261
|
+
legendItems: LegendItem[];
|
|
262
|
+
chartTypeDescription: string;
|
|
263
|
+
chartDescription: string | undefined;
|
|
264
|
+
containerStyle: Record<string, string | number | undefined>;
|
|
265
|
+
titleStyle: Record<string, string | number | undefined> | null;
|
|
266
|
+
captionStyle: Record<string, string | number | undefined> | null;
|
|
267
|
+
}
|
|
268
|
+
declare function computeChartState(inputs: ComputeChartStateInputs): ComputedChartState;
|
|
269
|
+
/** Internal context the theme-dependent tail needs from the theme-independent pass. */
|
|
270
|
+
interface ThemeTailContext {
|
|
271
|
+
isCartesian: boolean;
|
|
272
|
+
datasetTypes: ReturnType<typeof detectDatasetTypes>;
|
|
273
|
+
titleLayout: ReturnType<typeof computeTitleLayout>;
|
|
274
|
+
titleConfig: TitleProps | undefined;
|
|
275
|
+
captionConfig: CaptionProps | undefined;
|
|
276
|
+
titleRO: {
|
|
277
|
+
fontSize?: number;
|
|
278
|
+
} | undefined;
|
|
279
|
+
captionRO: {
|
|
280
|
+
fontSize?: number;
|
|
281
|
+
} | undefined;
|
|
282
|
+
}
|
|
283
|
+
/** The slice of `ComputedChartState` whose value depends on `theme`. */
|
|
284
|
+
interface ThemeDependentChartFields {
|
|
285
|
+
legendItems: LegendItem[];
|
|
286
|
+
titleStyle: Record<string, string | number | undefined> | null;
|
|
287
|
+
captionStyle: Record<string, string | number | undefined> | null;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Compute ONLY the theme-dependent outputs of `computeChartState`.
|
|
291
|
+
*
|
|
292
|
+
* These are the three fields whose value changes when `theme` changes:
|
|
293
|
+
* - `legendItems` — swatch colors embed the theme palette as the `var()` fallback
|
|
294
|
+
* (see `resolveSwatchColor`), so a theme change alters each item's `color` string.
|
|
295
|
+
* - `titleStyle` / `captionStyle` — embed `theme.titleColor` / `theme.captionColor`.
|
|
296
|
+
*
|
|
297
|
+
* Kept as a standalone export so `ChartStateController` can recompute exactly this
|
|
298
|
+
* slice on a theme-only change without re-running the (theme-independent) area
|
|
299
|
+
* geometry. The full `computeChartState` calls it as its final step, so the two
|
|
300
|
+
* paths stay byte-identical.
|
|
301
|
+
*/
|
|
302
|
+
declare function computeThemeDependentFields(inputs: ComputeChartStateInputs, ctx: ThemeTailContext): ThemeDependentChartFields;
|
|
303
|
+
|
|
304
|
+
export { AUTO_REPOSITIONED_LEGEND_MIN_HEIGHT as A, type BuildLayoutInputsParams as B, type ComputeChartStateInputs as C, type FeatureMap as F, type LayoutInputs as L, type ThemeDependentChartFields as T, type ComputedChartState as a, buildLayoutInputs as b, computeChartArea as c, computeChartState as d, computeColorLegendArea as e, computeEffectiveLegendPosition as f, computeLegendArea as g, computeNavigatorArea as h, computeResetZoomTop as i, computeThemeDependentFields as j, computeTitleLayout as k, detectDatasetTypes as l, extractFeatureConfigs as m, resolveReservedLegendHeight as r };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { AnimateOptions, AnimationHandle, AnimationConfig } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Parse animation config from features.
|
|
5
|
+
* Returns enabled flag, duration, and easing function ready for animate().
|
|
6
|
+
*
|
|
7
|
+
* Defaults:
|
|
8
|
+
* - enabled: true
|
|
9
|
+
* - duration: 1000ms (long enough that browser-pipeline first-paint stalls of
|
|
10
|
+
* ~90ms register as a small bump instead of a visible jump)
|
|
11
|
+
* - easing: easeOutQuart
|
|
12
|
+
*/
|
|
13
|
+
declare function parseAnimationConfig(animConfig: AnimationConfig | undefined): {
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
duration: number;
|
|
16
|
+
easing: (t: number) => number;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Manages animation frame lifecycle
|
|
20
|
+
* Handles scheduling, cancellation, and cleanup
|
|
21
|
+
*/
|
|
22
|
+
declare class AnimationController {
|
|
23
|
+
private frameId;
|
|
24
|
+
private generation;
|
|
25
|
+
/**
|
|
26
|
+
* Cancel any ongoing animation
|
|
27
|
+
*/
|
|
28
|
+
cancel(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Schedule a new animation frame, canceling any existing
|
|
31
|
+
* Returns the generation number for this animation
|
|
32
|
+
*/
|
|
33
|
+
schedule(callback: FrameRequestCallback): number;
|
|
34
|
+
/**
|
|
35
|
+
* Continue animation loop (called from within animation)
|
|
36
|
+
*/
|
|
37
|
+
continue(callback: FrameRequestCallback): void;
|
|
38
|
+
/**
|
|
39
|
+
* Mark animation as complete
|
|
40
|
+
*/
|
|
41
|
+
complete(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Check if animation is running
|
|
44
|
+
*/
|
|
45
|
+
isRunning(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Get current generation (for checking if animation was interrupted)
|
|
48
|
+
*/
|
|
49
|
+
getGeneration(): number;
|
|
50
|
+
/**
|
|
51
|
+
* Check if the given generation is still current
|
|
52
|
+
*/
|
|
53
|
+
isCurrentGeneration(gen: number): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Full cleanup
|
|
56
|
+
*/
|
|
57
|
+
destroy(): void;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Run a timed animation with easing
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* // Simple animation
|
|
65
|
+
* const handle = animate({
|
|
66
|
+
* duration: 1000,
|
|
67
|
+
* easing: 'easeOutQuart',
|
|
68
|
+
* onFrame: (progress) => {
|
|
69
|
+
* element.style.opacity = String(progress);
|
|
70
|
+
* }
|
|
71
|
+
* });
|
|
72
|
+
*
|
|
73
|
+
* // Wait for completion
|
|
74
|
+
* await handle.finished;
|
|
75
|
+
*
|
|
76
|
+
* // Or cancel early
|
|
77
|
+
* handle.cancel();
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
declare function animate(options: AnimateOptions): AnimationHandle;
|
|
81
|
+
|
|
82
|
+
export { AnimationController as A, animate as a, parseAnimationConfig as p };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ZoomState, ZoomPanDeps, ModifierKeys, ZoomGestureResult, PointerDownResult, PointerMoveResult, PointerUpResult } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
interface DragState {
|
|
4
|
+
active: boolean;
|
|
5
|
+
mode: 'zoom' | 'pan';
|
|
6
|
+
startX: number;
|
|
7
|
+
startY: number;
|
|
8
|
+
lastX: number;
|
|
9
|
+
lastY: number;
|
|
10
|
+
pointerId: number;
|
|
11
|
+
}
|
|
12
|
+
interface PinchState {
|
|
13
|
+
active: boolean;
|
|
14
|
+
pointers: Map<number, {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}>;
|
|
18
|
+
initialDistance: number;
|
|
19
|
+
initialZoom: ZoomState;
|
|
20
|
+
centerX: number;
|
|
21
|
+
centerY: number;
|
|
22
|
+
}
|
|
23
|
+
declare class ZoomPanController {
|
|
24
|
+
dragState: DragState | null;
|
|
25
|
+
pinchState: PinchState | null;
|
|
26
|
+
private deps;
|
|
27
|
+
private _zoomCurrent;
|
|
28
|
+
private _rafHandle;
|
|
29
|
+
/** Framework binds this to write settled zoom state to reactive state. */
|
|
30
|
+
onSettle: ((state: ZoomState) => void) | null;
|
|
31
|
+
constructor(deps: ZoomPanDeps);
|
|
32
|
+
updateDeps(deps: ZoomPanDeps): void;
|
|
33
|
+
handleWheel(mouseX: number, mouseY: number, deltaY: number, modifiers: ModifierKeys): ZoomGestureResult | null;
|
|
34
|
+
/**
|
|
35
|
+
* Pan via trackpad two-finger scroll. Only acts once the chart is zoomed —
|
|
36
|
+
* an unzoomed chart has nowhere to pan, so the caller should let the page
|
|
37
|
+
* scroll instead of consuming the event.
|
|
38
|
+
*/
|
|
39
|
+
handleWheelPan(deltaX: number, deltaY: number, mouseX: number, mouseY: number): ZoomGestureResult | null;
|
|
40
|
+
handlePointerDown(x: number, y: number, pointerId: number, button: number, modifiers: ModifierKeys, pointerType?: string): PointerDownResult;
|
|
41
|
+
handlePointerMove(x: number, y: number, pointerId: number): PointerMoveResult;
|
|
42
|
+
handlePointerUp(x: number, y: number, pointerId: number): PointerUpResult;
|
|
43
|
+
applyZoom(newState: ZoomState, settle?: boolean): void;
|
|
44
|
+
resetZoom(): void;
|
|
45
|
+
updateZoom(state: ZoomState): void;
|
|
46
|
+
getZoomState(): ZoomState;
|
|
47
|
+
getCurrentWindow(axis: 'x' | 'y'): {
|
|
48
|
+
min: number;
|
|
49
|
+
max: number;
|
|
50
|
+
};
|
|
51
|
+
destroyZoomState(): void;
|
|
52
|
+
attach(container: HTMLElement, callbacks: {
|
|
53
|
+
onDragging: (v: boolean) => void;
|
|
54
|
+
onSelectionRect: (r: {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
} | null) => void;
|
|
60
|
+
}): () => void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { ZoomPanController as Z };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { A as AxisRegistrationController, a as AxisRegistrationControllerOptions, C as CartesianLayoutController, b as CartesianLayoutControllerInput, c as ChartStateController, D as DatasetExtras, d as DatasetRegistrationController, e as DatasetRegistrationControllerOptions, f as DrilldownStateController, K as KeyboardNavigationController, R as ResponsiveDimensionsController } from '../index-DseIZa1j.mjs';
|
|
2
|
+
export { BarRendererController } from '../series/bar/controller/index.mjs';
|
|
3
|
+
export { CandlestickRendererController } from '../series/candlestick/controller/index.mjs';
|
|
4
|
+
export { HeatmapRendererController } from '../series/heatmap/controller/index.mjs';
|
|
5
|
+
export { LineRendererController } from '../series/line/controller/index.mjs';
|
|
6
|
+
export { PieRendererController } from '../series/pie/controller/index.mjs';
|
|
7
|
+
export { PolarRendererController } from '../series/polar/controller/index.mjs';
|
|
8
|
+
export { RadarRendererController } from '../series/radar/controller/index.mjs';
|
|
9
|
+
export { ScatterRendererController } from '../series/scatter/controller/index.mjs';
|
|
10
|
+
export { TreemapRendererController } from '../series/treemap/controller/index.mjs';
|
|
11
|
+
import '@primeui/chart-types';
|
|
12
|
+
import '../computeChartState-BTVIqwyO.mjs';
|
|
13
|
+
import '@primeui/chart-types/cartesian';
|
|
14
|
+
import '@primeui/chart-types/responsive';
|
|
15
|
+
import '@primeui/chart/chart-types';
|
|
16
|
+
import '../property-store-NORUWFND.mjs';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export { AxisRegistrationController, CartesianLayoutController, ChartStateController, DatasetRegistrationController, DrilldownStateController, KeyboardNavigationController, PieRendererController, ResponsiveDimensionsController } from '../chunk-TAHCOZHF.mjs';
|
|
2
|
+
import '../chunk-WS64BZXT.mjs';
|
|
3
|
+
import '../chunk-2QK2KOBN.mjs';
|
|
4
|
+
import '../chunk-3IYSJ2U7.mjs';
|
|
5
|
+
import '../chunk-ARB5T6MP.mjs';
|
|
6
|
+
import '../chunk-WY4AURRE.mjs';
|
|
7
|
+
import '../chunk-QWQ6HY4I.mjs';
|
|
8
|
+
import '../chunk-KNDZP446.mjs';
|
|
9
|
+
export { BarRendererController } from '../chunk-Y3L3D4GQ.mjs';
|
|
10
|
+
import '../chunk-JGOVWSKH.mjs';
|
|
11
|
+
import '../chunk-FRST55HY.mjs';
|
|
12
|
+
import '../chunk-DN6AXQYZ.mjs';
|
|
13
|
+
import '../chunk-EAMUNLRU.mjs';
|
|
14
|
+
import '../chunk-BKP26M4K.mjs';
|
|
15
|
+
import '../chunk-B4FTADAZ.mjs';
|
|
16
|
+
import '../chunk-4C6EVJ54.mjs';
|
|
17
|
+
export { CandlestickRendererController } from '../chunk-WPFUV7K3.mjs';
|
|
18
|
+
import '../chunk-M7B3JF43.mjs';
|
|
19
|
+
import '../chunk-JO7VACY2.mjs';
|
|
20
|
+
import '../chunk-3OZLP4I4.mjs';
|
|
21
|
+
import '../chunk-CINXJIRR.mjs';
|
|
22
|
+
import '../chunk-FHTC2YDB.mjs';
|
|
23
|
+
import '../chunk-CHW4RKY3.mjs';
|
|
24
|
+
export { HeatmapRendererController } from '../chunk-SDBPQ5CF.mjs';
|
|
25
|
+
import '../chunk-SANZPAJ4.mjs';
|
|
26
|
+
import '../chunk-WFVOQ2QZ.mjs';
|
|
27
|
+
import '../chunk-MTGMXRNF.mjs';
|
|
28
|
+
import '../chunk-TQ6S34QZ.mjs';
|
|
29
|
+
import '../chunk-3Z62EUJN.mjs';
|
|
30
|
+
import '../chunk-J65DBT4R.mjs';
|
|
31
|
+
import '../chunk-3FFJEX4A.mjs';
|
|
32
|
+
import '../chunk-KQIFO5I3.mjs';
|
|
33
|
+
export { LineRendererController } from '../chunk-N3TIT3OH.mjs';
|
|
34
|
+
import '../chunk-WFTX4AQJ.mjs';
|
|
35
|
+
import '../chunk-DP2IZNN3.mjs';
|
|
36
|
+
import '../chunk-6HSEJLSR.mjs';
|
|
37
|
+
import '../chunk-HDFGCN2F.mjs';
|
|
38
|
+
import '../chunk-ZQFK6CAE.mjs';
|
|
39
|
+
import '../chunk-SXHVDJGF.mjs';
|
|
40
|
+
export { PolarRendererController } from '../chunk-OHGCZZPZ.mjs';
|
|
41
|
+
import '../chunk-WCG35U6M.mjs';
|
|
42
|
+
import '../chunk-ERVQB2VZ.mjs';
|
|
43
|
+
import '../chunk-RBLZRT5K.mjs';
|
|
44
|
+
import '../chunk-VWF57TS3.mjs';
|
|
45
|
+
import '../chunk-IXOWSEHO.mjs';
|
|
46
|
+
import '../chunk-53HW45JB.mjs';
|
|
47
|
+
import '../chunk-LVMDQ4OJ.mjs';
|
|
48
|
+
export { RadarRendererController } from '../chunk-PLSDU3C2.mjs';
|
|
49
|
+
import '../chunk-UPRXABX5.mjs';
|
|
50
|
+
import '../chunk-TA4MVAEX.mjs';
|
|
51
|
+
import '../chunk-A6ZQZFL2.mjs';
|
|
52
|
+
export { TreemapRendererController } from '../chunk-NHRK5KU2.mjs';
|
|
53
|
+
import '../chunk-AGU3NG6D.mjs';
|
|
54
|
+
import '../chunk-2QRS4YQ5.mjs';
|
|
55
|
+
import '../chunk-6STOLMCA.mjs';
|
|
56
|
+
import '../chunk-AHYIS6EB.mjs';
|
|
57
|
+
export { ScatterRendererController } from '../chunk-XUAASRXW.mjs';
|
|
58
|
+
import '../chunk-LKC7MZKK.mjs';
|
|
59
|
+
import '../chunk-X4D7FKUS.mjs';
|
|
60
|
+
import '../chunk-Q6PPVIHU.mjs';
|
|
61
|
+
import '../chunk-66T4MRC5.mjs';
|
|
62
|
+
import '../chunk-QQBXUDM4.mjs';
|
|
63
|
+
import '../chunk-7QQ6ETB4.mjs';
|
|
64
|
+
import '../chunk-X7T34OLW.mjs';
|
|
65
|
+
import '../chunk-SALTGZFR.mjs';
|
|
66
|
+
import '../chunk-AUF4CHDP.mjs';
|
|
67
|
+
import '../chunk-ZTL2FQEW.mjs';
|
|
68
|
+
import '../chunk-VN7CKCSE.mjs';
|
|
69
|
+
import '../chunk-AP3UYWYT.mjs';
|
|
70
|
+
import '../chunk-DTWTCFRG.mjs';
|
|
71
|
+
import '../chunk-PRDVPOZX.mjs';
|
|
72
|
+
import '../chunk-VGLSBZDN.mjs';
|
|
73
|
+
import '../chunk-BABQKA6K.mjs';
|
|
74
|
+
import '../chunk-WYLILAOO.mjs';
|
|
75
|
+
import '../chunk-XIHBK5D3.mjs';
|
|
76
|
+
import '../chunk-55Y3WI6S.mjs';
|
|
77
|
+
import '../chunk-RO4N6YFS.mjs';
|
|
78
|
+
import '../chunk-VVI3OBPJ.mjs';
|
|
79
|
+
import '../chunk-ZT2Z7ERM.mjs';
|
|
80
|
+
import '../chunk-KP2TWD4Z.mjs';
|
|
81
|
+
import '../chunk-3WEMHXZI.mjs';
|
|
82
|
+
import '../chunk-KVDEROP6.mjs';
|
|
83
|
+
import '../chunk-YBJ56XJS.mjs';
|
|
84
|
+
import '../chunk-NPDZLYIF.mjs';
|
|
85
|
+
import '../chunk-EDAKJLNA.mjs';
|
|
86
|
+
import '../chunk-JWFBOPM6.mjs';
|
|
87
|
+
import '../chunk-5JCI2DEB.mjs';
|
|
88
|
+
import '../chunk-BZN2QHGP.mjs';
|
|
89
|
+
import '../chunk-OGJ6IIBW.mjs';
|
|
90
|
+
import '../chunk-ARRGOEFX.mjs';
|
|
91
|
+
import '../chunk-22ST6YPP.mjs';
|
|
92
|
+
import '../chunk-FFMT6OCO.mjs';
|
|
93
|
+
import '../chunk-7CMVDIOU.mjs';
|
|
94
|
+
import '../chunk-ADKLH73T.mjs';
|
|
95
|
+
import '../chunk-OXTFAWSK.mjs';
|
|
96
|
+
import '../chunk-R6Y3R7EW.mjs';
|
|
97
|
+
import '../chunk-XTVE4P3L.mjs';
|
|
98
|
+
import '../chunk-NKUYIWAP.mjs';
|
|
99
|
+
import '../chunk-XQQCGFYB.mjs';
|
|
100
|
+
import '../chunk-WH3C3Y7P.mjs';
|
|
101
|
+
import '../chunk-OWW3K55O.mjs';
|
|
102
|
+
import '../chunk-WA3OVISZ.mjs';
|
|
103
|
+
import '../chunk-C36VWQ7A.mjs';
|
|
104
|
+
import '../chunk-BETFQBM2.mjs';
|
|
105
|
+
import '../chunk-WRULPWHD.mjs';
|
|
106
|
+
import '../chunk-QS76E3TD.mjs';
|
|
107
|
+
import '../chunk-O2X6FF45.mjs';
|
|
108
|
+
import '../chunk-IEGLX7VL.mjs';
|
|
109
|
+
import '../chunk-SSLTFJ3U.mjs';
|
|
110
|
+
import '../chunk-RQ3CKQOX.mjs';
|