@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,39 @@
|
|
|
1
|
+
import { AxisPosition, AxisSpaceOptions, AxisScale, BoxArea, XAxisProps, YAxisProps, AxisRenderData, SvgNode } from '@primeui/chart-types';
|
|
2
|
+
import { ChartTheme } from '@primeui/chart-types/theme';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Calculate required space for axis (for chart area calculation).
|
|
6
|
+
* Accepts either a string[] (backward-compatible) or AxisSpaceOptions.
|
|
7
|
+
*/
|
|
8
|
+
declare function calculateAxisSpace(position: AxisPosition, hasTitle: boolean, optionsOrLabels?: AxisSpaceOptions | string[], extraTitleOffset?: number, globalFont?: {
|
|
9
|
+
family?: string;
|
|
10
|
+
size?: number;
|
|
11
|
+
}): number;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Calculate axis layout from scale and props
|
|
15
|
+
*/
|
|
16
|
+
declare function calculateAxisLayout(scale: AxisScale, position: AxisPosition, chartArea: BoxArea, props: XAxisProps | YAxisProps, extraTitleOffset?: number, globalFont?: {
|
|
17
|
+
family?: string;
|
|
18
|
+
size?: number;
|
|
19
|
+
}, locale?: string): AxisRenderData;
|
|
20
|
+
|
|
21
|
+
declare function renderAxisSvg(layout: AxisRenderData, theme?: Required<ChartTheme>, options?: {
|
|
22
|
+
skipGrid?: boolean;
|
|
23
|
+
gridOnly?: boolean;
|
|
24
|
+
skipLabels?: boolean;
|
|
25
|
+
skipAxisLine?: boolean;
|
|
26
|
+
skipTicks?: boolean;
|
|
27
|
+
rtl?: boolean;
|
|
28
|
+
}, axisIndex?: number): SvgNode;
|
|
29
|
+
|
|
30
|
+
declare function renderAxisCanvas(ctx: CanvasRenderingContext2D, layout: AxisRenderData, options?: {
|
|
31
|
+
skipGrid?: boolean;
|
|
32
|
+
gridOnly?: boolean;
|
|
33
|
+
skipLabels?: boolean;
|
|
34
|
+
skipAxisLine?: boolean;
|
|
35
|
+
skipTicks?: boolean;
|
|
36
|
+
rtl?: boolean;
|
|
37
|
+
}, theme?: Required<ChartTheme>, axisIndex?: number): void;
|
|
38
|
+
|
|
39
|
+
export { calculateAxisLayout, calculateAxisSpace, renderAxisCanvas, renderAxisSvg };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { calculateAxisLayout, calculateAxisSpace, renderAxisCanvas, renderAxisSvg } from '../../chunk-ZTL2FQEW.mjs';
|
|
2
|
+
import '../../chunk-R6Y3R7EW.mjs';
|
|
3
|
+
import '../../chunk-XTVE4P3L.mjs';
|
|
4
|
+
import '../../chunk-NKUYIWAP.mjs';
|
|
5
|
+
import '../../chunk-QS76E3TD.mjs';
|
|
6
|
+
import '../../chunk-O2X6FF45.mjs';
|
|
7
|
+
import '../../chunk-SSLTFJ3U.mjs';
|
|
8
|
+
import '../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { d as applyGradientBrightness, b as buildPieSvgChildren, r as renderCanvasCustomContent, a as renderCanvasDataLabels, e as restoreGradientBrightness, u as updatePieCustomContent, c as updateSvgSlices } from '../../canvas-D4vigq47.mjs';
|
|
2
|
+
import { RadialSliceState, SliceRenderInfo, SliceGeometry, SliceRenderContext } from '@primeui/chart-types';
|
|
3
|
+
|
|
4
|
+
/** Build a SliceRenderContext from animation state + render info */
|
|
5
|
+
declare function buildSliceRenderContext(slice: RadialSliceState, renderInfo: SliceRenderInfo, position: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}, geo: SliceGeometry, chartCenter?: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}, fontFamily?: string): SliceRenderContext<unknown>;
|
|
12
|
+
|
|
13
|
+
export { buildSliceRenderContext };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { applyGradientBrightness, buildPieSvgChildren, buildSliceRenderContext, renderCanvasCustomContent, renderCanvasDataLabels, restoreGradientBrightness, updatePieCustomContent, updateSvgSlices } from '../../chunk-B4FTADAZ.mjs';
|
|
2
|
+
import '../../chunk-4C6EVJ54.mjs';
|
|
3
|
+
import '../../chunk-LVMDQ4OJ.mjs';
|
|
4
|
+
import '../../chunk-VGLSBZDN.mjs';
|
|
5
|
+
import '../../chunk-BZN2QHGP.mjs';
|
|
6
|
+
import '../../chunk-7CMVDIOU.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,83 @@
|
|
|
1
|
+
export { calculateAxisLayout, calculateAxisSpace, renderAxisCanvas, renderAxisSvg } from './axis/index.mjs';
|
|
2
|
+
export { barRenderer, calculateBarLayout, computeBarDatasetTotals, computeBarLabelPosition, computeBarRenderStates, computeBarVisualLayout, hitTestBar } from '../series/bar/index.mjs';
|
|
3
|
+
export { calculateCandlestickLayout, candlestickRenderer, findNearestCandleIndex, hitTestCandlestick } from '../series/candlestick/index.mjs';
|
|
4
|
+
export { T as TooltipPosition, o as TooltipPositionInput, p as TooltipPositionStyle, b as buildRadialGridLayout, a as buildTooltipContent, q as calculateLabelMargins, c as calculateRadarLayout, d as computeRadialComboContext, e as computeTooltipPosition, s as extractCategories, t as getCategoryLabelAnchor, h as hitTestRadar, r as redrawRadialCanvas, f as renderCartesianFrame, g as renderCartesianOverlay, i as renderRadarSeriesCanvas, j as renderRadarSeriesSvg, k as renderRadialGridCanvas, l as renderRadialGridSvg, m as renderResolvedLabels, n as resolveSharedRadialGrid, u as resolveValues } from '../tooltip.renderer-D5wpSlBa.mjs';
|
|
5
|
+
export { d as applyGradientBrightness, b as buildPieSvgChildren, r as renderCanvasCustomContent, a as renderCanvasDataLabels, e as restoreGradientBrightness, u as updatePieCustomContent, c as updateSvgSlices } from '../canvas-D4vigq47.mjs';
|
|
6
|
+
export { buildSliceRenderContext } from './circular/index.mjs';
|
|
7
|
+
export { calculateHeatmapLayout, heatmapRenderer, hitTestHeatmap } from '../series/heatmap/index.mjs';
|
|
8
|
+
export { applyTipExtension, buildDualRangeFillPaths, buildFillPath, buildLinePath, buildRangeFillPath, buildStackedFillPath, calculateLineLayout, hitTestLine, lineRenderer, restoreTipExtension } from '../series/line/index.mjs';
|
|
9
|
+
import { DrawMarkerCanvasOptions, SvgNode, CanvasOverlayParams } from '@primeui/chart-types';
|
|
10
|
+
export { GRIP_LINE_GAP, HANDLE_WIDTH, MIN_SELECTION_WIDTH, NAV_DEFAULTS, NAV_PADDING_Y, buildNavigatorPaths, calculateNavigatorLayout, computeNavigatorJump, computeNavigatorJumpY, computeNavigatorPan, computeNavigatorPanY, computeNavigatorResizeBottom, computeNavigatorResizeLeft, computeNavigatorResizeRight, computeNavigatorResizeTop, computeNavigatorSelection, computeNavigatorTicks, createNavigatorScales, extractNavigatorData, hitTestNavigator, renderNavigatorCanvas, resolveNavigatorConfig } from './navigator/index.mjs';
|
|
11
|
+
export { applyRingLayoutToProps, calculateMultiRingLayout, calculatePieLayout, computeSliceRenderStates, hitTestPie, pieRenderer } from '../series/pie/index.mjs';
|
|
12
|
+
export { calculatePolarLayout, hitTestPolar } from '../series/polar/index.mjs';
|
|
13
|
+
export { renderPolarBarsSvg } from '../series/polar/svg/index.mjs';
|
|
14
|
+
export { renderPolarBarsCanvas } from '../series/polar/canvas/index.mjs';
|
|
15
|
+
export { calculateScatterLayout, hitTestScatter, scatterRenderer } from '../series/scatter/index.mjs';
|
|
16
|
+
export { calculateTreemapLayout, getCellLabelInfo, hitTestTreemap, treemapRenderer } from '../series/treemap/index.mjs';
|
|
17
|
+
export { renderBarCanvas } from '../series/bar/canvas/index.mjs';
|
|
18
|
+
export { renderBarSvg } from '../series/bar/svg/index.mjs';
|
|
19
|
+
export { renderCanvasHeatmapContent } from '../series/heatmap/canvas/index.mjs';
|
|
20
|
+
export { renderCanvasTreemapContent, renderTreemapCanvas } from '../series/treemap/canvas/index.mjs';
|
|
21
|
+
export { renderHeatmapAxesSvg } from '../series/heatmap/svg/index.mjs';
|
|
22
|
+
export { renderLineCanvas } from '../series/line/canvas/index.mjs';
|
|
23
|
+
export { renderLineSvg } from '../series/line/svg/index.mjs';
|
|
24
|
+
export { renderPieCanvas } from '../series/pie/canvas/index.mjs';
|
|
25
|
+
export { renderPieSvg } from '../series/pie/svg/index.mjs';
|
|
26
|
+
export { renderScatterCanvas } from '../series/scatter/canvas/index.mjs';
|
|
27
|
+
export { renderScatterSvg } from '../series/scatter/svg/index.mjs';
|
|
28
|
+
export { renderTreemapGroupHoverOverlay, renderTreemapSvg } from '../series/treemap/svg/index.mjs';
|
|
29
|
+
import '@primeui/chart-types/theme';
|
|
30
|
+
import '../series/candlestick/svg/index.mjs';
|
|
31
|
+
import '../series/candlestick/canvas/index.mjs';
|
|
32
|
+
import '../squarify.utils-B9CQBpa1.mjs';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Runtime set of built-in marker shape names. Renderers check resolved
|
|
36
|
+
* `markerShape` strings against this set: a member → built-in shape; anything
|
|
37
|
+
* else is treated as a custom SVG path `d` string. Mirrors {@link PointStyle}.
|
|
38
|
+
*/
|
|
39
|
+
declare const MARKER_SHAPE_NAMES: ReadonlySet<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Equilateral triangle centered at (cx, cy) with the given half-size.
|
|
42
|
+
* Apex points up; centroid-centered.
|
|
43
|
+
*/
|
|
44
|
+
declare function buildEquilateralTrianglePath(cx: number, cy: number, size: number): string;
|
|
45
|
+
/**
|
|
46
|
+
* Diamond (rotated square) centered at (cx, cy).
|
|
47
|
+
*/
|
|
48
|
+
declare function buildDiamondPath(cx: number, cy: number, size: number): string;
|
|
49
|
+
/**
|
|
50
|
+
* Plus/cross shape centered at (cx, cy).
|
|
51
|
+
*/
|
|
52
|
+
declare function buildCrossPath(cx: number, cy: number, size: number): string;
|
|
53
|
+
/**
|
|
54
|
+
* Five-pointed star centered at (cx, cy).
|
|
55
|
+
*/
|
|
56
|
+
declare function buildStarPath(cx: number, cy: number, size: number): string;
|
|
57
|
+
/**
|
|
58
|
+
* Full marker paint on a canvas context: translate, set opacity/fill/stroke,
|
|
59
|
+
* trace the shape, then fill and stroke.
|
|
60
|
+
*/
|
|
61
|
+
declare function drawMarkerCanvas(ctx: CanvasRenderingContext2D, opts: DrawMarkerCanvasOptions): void;
|
|
62
|
+
/**
|
|
63
|
+
* Create an SvgNode for a built-in marker shape centered at (cx, cy).
|
|
64
|
+
*/
|
|
65
|
+
declare function renderMarkerShapeSvg(shape: string, cx: number, cy: number, size: number, attrs: Record<string, string | number>): SvgNode;
|
|
66
|
+
/**
|
|
67
|
+
* Trace a built-in marker shape path at origin (0, 0) on a canvas context.
|
|
68
|
+
* Caller is responsible for translate, fill, and stroke.
|
|
69
|
+
*/
|
|
70
|
+
declare function traceMarkerShapeCanvas(ctx: CanvasRenderingContext2D, shape: string, size: number): void;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Generic canvas overlay renderer. Clears the overlay, optionally clips to a
|
|
74
|
+
* region, and calls the `draw` callback with an animate factory wired to the
|
|
75
|
+
* animation registry.
|
|
76
|
+
*
|
|
77
|
+
* Each renderer/component provides its own `draw` function that knows how to
|
|
78
|
+
* iterate its items and build render contexts — this function handles only the
|
|
79
|
+
* shared infrastructure.
|
|
80
|
+
*/
|
|
81
|
+
declare function renderCanvasOverlay(params: CanvasOverlayParams): void;
|
|
82
|
+
|
|
83
|
+
export { MARKER_SHAPE_NAMES, buildCrossPath, buildDiamondPath, buildEquilateralTrianglePath, buildStarPath, drawMarkerCanvas, renderCanvasOverlay, renderMarkerShapeSvg, traceMarkerShapeCanvas };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export { buildTooltipContent, computeTooltipPosition, redrawRadialCanvas, renderRadialGridCanvas, renderRadialGridSvg } from '../chunk-DN6AXQYZ.mjs';
|
|
2
|
+
export { renderNavigatorCanvas } from '../chunk-EAMUNLRU.mjs';
|
|
3
|
+
export { GRIP_LINE_GAP, HANDLE_WIDTH, MIN_SELECTION_WIDTH, NAV_DEFAULTS, NAV_PADDING_Y, buildNavigatorPaths, calculateNavigatorLayout, computeNavigatorJump, computeNavigatorJumpY, computeNavigatorPan, computeNavigatorPanY, computeNavigatorResizeBottom, computeNavigatorResizeLeft, computeNavigatorResizeRight, computeNavigatorResizeTop, computeNavigatorSelection, computeNavigatorTicks, createNavigatorScales, extractNavigatorData, hitTestNavigator, resolveNavigatorConfig } from '../chunk-BKP26M4K.mjs';
|
|
4
|
+
export { applyGradientBrightness, buildPieSvgChildren, buildSliceRenderContext, renderCanvasCustomContent, renderCanvasDataLabels, restoreGradientBrightness, updatePieCustomContent, updateSvgSlices } from '../chunk-B4FTADAZ.mjs';
|
|
5
|
+
import '../chunk-4C6EVJ54.mjs';
|
|
6
|
+
export { calculateCandlestickLayout, candlestickRenderer, findNearestCandleIndex, hitTestCandlestick } from '../chunk-3OZLP4I4.mjs';
|
|
7
|
+
import '../chunk-CINXJIRR.mjs';
|
|
8
|
+
import '../chunk-FHTC2YDB.mjs';
|
|
9
|
+
import '../chunk-CHW4RKY3.mjs';
|
|
10
|
+
export { heatmapRenderer } from '../chunk-WFVOQ2QZ.mjs';
|
|
11
|
+
export { renderHeatmapAxesSvg } from '../chunk-MTGMXRNF.mjs';
|
|
12
|
+
export { renderCanvasHeatmapContent } from '../chunk-TQ6S34QZ.mjs';
|
|
13
|
+
export { calculateHeatmapLayout, hitTestHeatmap } from '../chunk-3Z62EUJN.mjs';
|
|
14
|
+
export { lineRenderer } from '../chunk-J65DBT4R.mjs';
|
|
15
|
+
export { renderLineSvg } from '../chunk-3FFJEX4A.mjs';
|
|
16
|
+
export { renderLineCanvas } from '../chunk-KQIFO5I3.mjs';
|
|
17
|
+
export { applyTipExtension, buildDualRangeFillPaths, buildFillPath, buildLinePath, buildRangeFillPath, buildStackedFillPath, calculateLineLayout, hitTestLine, restoreTipExtension } from '../chunk-6HSEJLSR.mjs';
|
|
18
|
+
import '../chunk-HDFGCN2F.mjs';
|
|
19
|
+
import '../chunk-ZQFK6CAE.mjs';
|
|
20
|
+
export { renderPolarBarsSvg } from '../chunk-SXHVDJGF.mjs';
|
|
21
|
+
export { calculateLabelMargins, calculatePolarLayout, calculateRadarLayout, computeRadialComboContext, extractCategories, getCategoryLabelAnchor, hitTestPolar, hitTestRadar, renderRadarSeriesCanvas, renderRadarSeriesSvg, resolveValues } from '../chunk-WCG35U6M.mjs';
|
|
22
|
+
export { renderPolarBarsCanvas } from '../chunk-ERVQB2VZ.mjs';
|
|
23
|
+
export { applyRingLayoutToProps, calculateMultiRingLayout, calculatePieLayout, hitTestPie, pieRenderer } from '../chunk-RBLZRT5K.mjs';
|
|
24
|
+
export { renderPieCanvas } from '../chunk-VWF57TS3.mjs';
|
|
25
|
+
export { renderPieSvg } from '../chunk-IXOWSEHO.mjs';
|
|
26
|
+
export { computeSliceRenderStates } from '../chunk-53HW45JB.mjs';
|
|
27
|
+
import '../chunk-LVMDQ4OJ.mjs';
|
|
28
|
+
export { buildRadialGridLayout, resolveSharedRadialGrid } from '../chunk-TA4MVAEX.mjs';
|
|
29
|
+
export { scatterRenderer } from '../chunk-2QRS4YQ5.mjs';
|
|
30
|
+
export { renderScatterSvg } from '../chunk-6STOLMCA.mjs';
|
|
31
|
+
export { renderScatterCanvas } from '../chunk-AHYIS6EB.mjs';
|
|
32
|
+
export { renderCanvasOverlay, renderCartesianFrame, renderCartesianOverlay, renderResolvedLabels } from '../chunk-QQBXUDM4.mjs';
|
|
33
|
+
export { barRenderer, computeBarDatasetTotals, computeBarVisualLayout } from '../chunk-7QQ6ETB4.mjs';
|
|
34
|
+
export { renderBarCanvas } from '../chunk-X7T34OLW.mjs';
|
|
35
|
+
export { renderBarSvg } from '../chunk-SALTGZFR.mjs';
|
|
36
|
+
export { calculateBarLayout, computeBarLabelPosition, computeBarRenderStates, hitTestBar } from '../chunk-AUF4CHDP.mjs';
|
|
37
|
+
export { calculateAxisLayout, calculateAxisSpace, renderAxisCanvas, renderAxisSvg } from '../chunk-ZTL2FQEW.mjs';
|
|
38
|
+
import '../chunk-AP3UYWYT.mjs';
|
|
39
|
+
export { calculateScatterLayout, hitTestScatter } from '../chunk-DTWTCFRG.mjs';
|
|
40
|
+
export { MARKER_SHAPE_NAMES, buildCrossPath, buildDiamondPath, buildEquilateralTrianglePath, buildStarPath, drawMarkerCanvas, renderMarkerShapeSvg, traceMarkerShapeCanvas } from '../chunk-PRDVPOZX.mjs';
|
|
41
|
+
import '../chunk-VGLSBZDN.mjs';
|
|
42
|
+
export { getCellLabelInfo, hitTestTreemap, treemapRenderer } from '../chunk-XIHBK5D3.mjs';
|
|
43
|
+
export { renderCanvasTreemapContent, renderTreemapCanvas } from '../chunk-55Y3WI6S.mjs';
|
|
44
|
+
export { renderTreemapGroupHoverOverlay, renderTreemapSvg } from '../chunk-RO4N6YFS.mjs';
|
|
45
|
+
export { calculateTreemapLayout } from '../chunk-VVI3OBPJ.mjs';
|
|
46
|
+
import '../chunk-ZT2Z7ERM.mjs';
|
|
47
|
+
import '../chunk-KP2TWD4Z.mjs';
|
|
48
|
+
import '../chunk-3WEMHXZI.mjs';
|
|
49
|
+
import '../chunk-KVDEROP6.mjs';
|
|
50
|
+
import '../chunk-YBJ56XJS.mjs';
|
|
51
|
+
import '../chunk-NPDZLYIF.mjs';
|
|
52
|
+
import '../chunk-EDAKJLNA.mjs';
|
|
53
|
+
import '../chunk-JWFBOPM6.mjs';
|
|
54
|
+
import '../chunk-5JCI2DEB.mjs';
|
|
55
|
+
import '../chunk-BZN2QHGP.mjs';
|
|
56
|
+
import '../chunk-OGJ6IIBW.mjs';
|
|
57
|
+
import '../chunk-ARRGOEFX.mjs';
|
|
58
|
+
import '../chunk-22ST6YPP.mjs';
|
|
59
|
+
import '../chunk-FFMT6OCO.mjs';
|
|
60
|
+
import '../chunk-7CMVDIOU.mjs';
|
|
61
|
+
import '../chunk-ADKLH73T.mjs';
|
|
62
|
+
import '../chunk-OXTFAWSK.mjs';
|
|
63
|
+
import '../chunk-R6Y3R7EW.mjs';
|
|
64
|
+
import '../chunk-XTVE4P3L.mjs';
|
|
65
|
+
import '../chunk-NKUYIWAP.mjs';
|
|
66
|
+
import '../chunk-OWW3K55O.mjs';
|
|
67
|
+
import '../chunk-WA3OVISZ.mjs';
|
|
68
|
+
import '../chunk-C36VWQ7A.mjs';
|
|
69
|
+
import '../chunk-BETFQBM2.mjs';
|
|
70
|
+
import '../chunk-WRULPWHD.mjs';
|
|
71
|
+
import '../chunk-QS76E3TD.mjs';
|
|
72
|
+
import '../chunk-O2X6FF45.mjs';
|
|
73
|
+
import '../chunk-IEGLX7VL.mjs';
|
|
74
|
+
import '../chunk-SSLTFJ3U.mjs';
|
|
75
|
+
import '../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { NavigatorPoint, NavigatorScales, NavigatorPaths, BoxArea, NavigatorProps, DatasetRegistration, ZoomState, ChartTheme, NavigatorLayout, LinearScale, NavigatorDragResult, NavigatorSelection, NavigatorTick, NavigatorData, Padding, NavigatorHitZone, ResolvedNavigatorConfig } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
declare const NAV_PADDING_Y = 4;
|
|
4
|
+
declare const NAV_PADDING_X = 6;
|
|
5
|
+
declare const MIN_SELECTION_WIDTH = 20;
|
|
6
|
+
declare const HANDLE_WIDTH = 6;
|
|
7
|
+
declare const GRIP_LINE_GAP = 3;
|
|
8
|
+
declare const NAV_DEFAULTS: {
|
|
9
|
+
readonly height: 60;
|
|
10
|
+
readonly gap: 8;
|
|
11
|
+
readonly color: "#94a3b8";
|
|
12
|
+
readonly opacity: 0.3;
|
|
13
|
+
readonly selectionColor: "rgba(59,130,246,0.7)";
|
|
14
|
+
readonly selectionFill: "rgba(59,130,246,0.08)";
|
|
15
|
+
readonly maskColor: "rgba(0,0,0,0.12)";
|
|
16
|
+
};
|
|
17
|
+
declare function resolveNavigatorConfig(config: NavigatorProps, theme?: Required<ChartTheme>): ResolvedNavigatorConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Extract navigator-friendly [x, y] points from a registered dataset.
|
|
20
|
+
* For candlestick series, uses `close` as the Y value.
|
|
21
|
+
*/
|
|
22
|
+
declare function extractNavigatorData(datasets: Map<string, DatasetRegistration>, targetSeriesId?: string, isTimeAxis?: boolean): NavigatorData | null;
|
|
23
|
+
declare function createNavigatorScales(data: NavigatorData, width: number, height: number, padding?: Padding): NavigatorScales;
|
|
24
|
+
/**
|
|
25
|
+
* Generate SVG area + line paths for the navigator mini chart.
|
|
26
|
+
* For scatter: generates dot positions. For bar: generates mini bar rects.
|
|
27
|
+
*/
|
|
28
|
+
declare function buildNavigatorPaths(points: NavigatorPoint[], scales: NavigatorScales, height: number, sourceType?: string): NavigatorPaths;
|
|
29
|
+
/**
|
|
30
|
+
* Generate time axis ticks for the navigator.
|
|
31
|
+
* Uses the same tick engine as the main chart's time axis, but with
|
|
32
|
+
* ~200px tick spacing (like Highcharts navigator default).
|
|
33
|
+
*/
|
|
34
|
+
declare function computeNavigatorTicks(xDomain: [number, number], xScale: LinearScale, width: number, locale?: string, categoryLabels?: string[], isNumericAxis?: boolean, tickFormat?: ((value: string | number, index?: number) => string) | string): NavigatorTick[];
|
|
35
|
+
/**
|
|
36
|
+
* Compute the selection window pixel position from zoom state.
|
|
37
|
+
*/
|
|
38
|
+
declare function computeNavigatorSelection(zoomState: ZoomState, xScale: LinearScale | null, width: number, yScale?: LinearScale | null, height?: number): NavigatorSelection;
|
|
39
|
+
/**
|
|
40
|
+
* Compute the complete navigator layout: area, data, scales, paths, selection.
|
|
41
|
+
* When `config.series` is an array, all listed series are rendered — the first
|
|
42
|
+
* drives the X domain, ticks and drag; remaining series are rendered as lines
|
|
43
|
+
* on a shared Y scale that spans all their Y domains.
|
|
44
|
+
*/
|
|
45
|
+
declare function calculateNavigatorLayout(chartArea: BoxArea, config: NavigatorProps, datasets: Map<string, DatasetRegistration>, zoomState: ZoomState, isTimeAxis?: boolean, tickFormat?: ((value: string | number, index?: number) => string) | string, locale?: string, theme?: Required<ChartTheme>, overrideXDomain?: [number, number]): NavigatorLayout;
|
|
46
|
+
/**
|
|
47
|
+
* Compute new zoom min/max for a pan gesture.
|
|
48
|
+
*/
|
|
49
|
+
declare function computeNavigatorPan(startMin: number, startMax: number, deltaPixels: number, xScale: LinearScale, domainBounds: [number, number]): NavigatorDragResult;
|
|
50
|
+
/**
|
|
51
|
+
* Compute new zoom min/max for a left-edge resize.
|
|
52
|
+
*/
|
|
53
|
+
declare function computeNavigatorResizeLeft(startMin: number, max: number, deltaPixels: number, xScale: LinearScale, domainBounds: [number, number]): NavigatorDragResult;
|
|
54
|
+
/**
|
|
55
|
+
* Compute new zoom min/max for a right-edge resize.
|
|
56
|
+
*/
|
|
57
|
+
declare function computeNavigatorResizeRight(min: number, startMax: number, deltaPixels: number, xScale: LinearScale, domainBounds: [number, number]): NavigatorDragResult;
|
|
58
|
+
/**
|
|
59
|
+
* Compute new zoom min/max when clicking on the background to jump.
|
|
60
|
+
*/
|
|
61
|
+
declare function computeNavigatorJump(clickPixelX: number, currentWidth: number | null, xScale: LinearScale, domainBounds: [number, number]): NavigatorDragResult;
|
|
62
|
+
/**
|
|
63
|
+
* Compute new Y zoom min/max for a 2D pan gesture.
|
|
64
|
+
* Y scale is inverted: positive deltaPixels (drag down) = decrease data values.
|
|
65
|
+
*/
|
|
66
|
+
declare function computeNavigatorPanY(startMin: number, startMax: number, deltaPixels: number, yScale: LinearScale, domainBounds: [number, number]): NavigatorDragResult;
|
|
67
|
+
/**
|
|
68
|
+
* Compute new Y zoom min/max for top-edge resize.
|
|
69
|
+
* Top edge in pixels = max data value (Y scale inverted).
|
|
70
|
+
*/
|
|
71
|
+
declare function computeNavigatorResizeTop(min: number, startMax: number, deltaPixels: number, yScale: LinearScale, domainBounds: [number, number]): NavigatorDragResult;
|
|
72
|
+
/**
|
|
73
|
+
* Compute new Y zoom min/max for bottom-edge resize.
|
|
74
|
+
* Bottom edge in pixels = min data value (Y scale inverted).
|
|
75
|
+
*/
|
|
76
|
+
declare function computeNavigatorResizeBottom(startMin: number, max: number, deltaPixels: number, yScale: LinearScale, domainBounds: [number, number]): NavigatorDragResult;
|
|
77
|
+
/**
|
|
78
|
+
* Compute new Y zoom min/max when clicking background in 2D mode to jump.
|
|
79
|
+
*/
|
|
80
|
+
declare function computeNavigatorJumpY(clickPixelY: number, currentHeight: number | null, yScale: LinearScale, domainBounds: [number, number]): NavigatorDragResult;
|
|
81
|
+
/**
|
|
82
|
+
* Determine which interaction zone a local-space coordinate falls in.
|
|
83
|
+
*
|
|
84
|
+
* @param localX - X position relative to navigator left edge
|
|
85
|
+
* @param selection - Current selection layout
|
|
86
|
+
* @param localY - Y position (required for 2D mode)
|
|
87
|
+
* @returns The zone type, or null if not zoomed (no interactive zones)
|
|
88
|
+
*/
|
|
89
|
+
declare function hitTestNavigator(localX: number, selection: NavigatorSelection, localY?: number, handleWidth?: number): NavigatorHitZone | null;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Render the navigator onto a canvas context.
|
|
93
|
+
*
|
|
94
|
+
* Draws: background, grid lines, area chart, time labels, selection UI.
|
|
95
|
+
* The context should already be translated so (0,0) is the top-left of the
|
|
96
|
+
* navigator area.
|
|
97
|
+
*
|
|
98
|
+
* @param ctx - Canvas 2D context (pre-translated to navigator origin)
|
|
99
|
+
* @param layout - Precomputed navigator layout from calculateNavigatorLayout
|
|
100
|
+
*/
|
|
101
|
+
declare function renderNavigatorCanvas(ctx: CanvasRenderingContext2D, layout: NavigatorLayout): void;
|
|
102
|
+
|
|
103
|
+
export { GRIP_LINE_GAP, HANDLE_WIDTH, MIN_SELECTION_WIDTH, NAV_DEFAULTS, NAV_PADDING_X, NAV_PADDING_Y, buildNavigatorPaths, calculateNavigatorLayout, computeNavigatorJump, computeNavigatorJumpY, computeNavigatorPan, computeNavigatorPanY, computeNavigatorResizeBottom, computeNavigatorResizeLeft, computeNavigatorResizeRight, computeNavigatorResizeTop, computeNavigatorSelection, computeNavigatorTicks, createNavigatorScales, extractNavigatorData, hitTestNavigator, renderNavigatorCanvas, resolveNavigatorConfig };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { renderNavigatorCanvas } from '../../chunk-EAMUNLRU.mjs';
|
|
2
|
+
export { GRIP_LINE_GAP, HANDLE_WIDTH, MIN_SELECTION_WIDTH, NAV_DEFAULTS, NAV_PADDING_X, NAV_PADDING_Y, buildNavigatorPaths, calculateNavigatorLayout, computeNavigatorJump, computeNavigatorJumpY, computeNavigatorPan, computeNavigatorPanY, computeNavigatorResizeBottom, computeNavigatorResizeLeft, computeNavigatorResizeRight, computeNavigatorResizeTop, computeNavigatorSelection, computeNavigatorTicks, createNavigatorScales, extractNavigatorData, hitTestNavigator, resolveNavigatorConfig } from '../../chunk-BKP26M4K.mjs';
|
|
3
|
+
import '../../chunk-NPDZLYIF.mjs';
|
|
4
|
+
import '../../chunk-NKUYIWAP.mjs';
|
|
5
|
+
import '../../chunk-QS76E3TD.mjs';
|
|
6
|
+
import '../../chunk-O2X6FF45.mjs';
|
|
7
|
+
import '../../chunk-SSLTFJ3U.mjs';
|
|
8
|
+
import '../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Padding, BoxArea, Position, LegendOptions, PartialPieOptions, TitleOptions, CaptionOptions, GlobalFont, TitleCaptionLayout, LegendDimensions, TitleDimensions, ResponsiveRule, ResponsiveTier, AdaptiveDefaults, ResponsiveBreakpoints, ResizeDebouncerOptions } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Normalizes padding input to a full Padding object
|
|
5
|
+
* Accepts a number (applies to all sides) or partial Padding object
|
|
6
|
+
*/
|
|
7
|
+
declare function normalizePadding(padding?: Partial<Padding> | number): Padding;
|
|
8
|
+
/**
|
|
9
|
+
* Calculates the space needed for the title
|
|
10
|
+
*/
|
|
11
|
+
declare function calculateTitleDimensions(title?: TitleOptions, globalFont?: GlobalFont): TitleDimensions;
|
|
12
|
+
/**
|
|
13
|
+
* Calculates the title area box based on position and available width
|
|
14
|
+
*/
|
|
15
|
+
declare function calculateTitleArea(title: TitleOptions | undefined, containerWidth: number, containerHeight: number, padding: Padding, globalFont?: GlobalFont): BoxArea | null;
|
|
16
|
+
/**
|
|
17
|
+
* Calculates stacked layout for title + caption.
|
|
18
|
+
* Caption stacks adjacent to the title by default.
|
|
19
|
+
* When `caption.position` is set and differs from the title position, the caption
|
|
20
|
+
* is placed independently on its own side and does not stack with the title.
|
|
21
|
+
* When `floating` is true, totalHeight is 0 so the chart area is not reduced.
|
|
22
|
+
*/
|
|
23
|
+
declare function calculateTitleLayout(title: TitleOptions | undefined, caption: CaptionOptions | undefined, containerWidth: number, containerHeight: number, padding: Padding, floating?: boolean, globalFont?: GlobalFont): TitleCaptionLayout;
|
|
24
|
+
/**
|
|
25
|
+
* Calculates the space needed for the legend based on position
|
|
26
|
+
*/
|
|
27
|
+
declare function calculateLegendDimensions(legend?: LegendOptions): LegendDimensions;
|
|
28
|
+
/**
|
|
29
|
+
* Calculates the legend area box based on position and remaining space
|
|
30
|
+
*/
|
|
31
|
+
declare function calculateLegendArea(legend: LegendOptions | undefined, containerWidth: number, containerHeight: number, padding: Padding, titleArea: BoxArea | null, titlePosition: 'top' | 'bottom' | undefined): BoxArea | null;
|
|
32
|
+
/**
|
|
33
|
+
* Calculates the usable chart area after accounting for padding, title, and legend
|
|
34
|
+
*/
|
|
35
|
+
declare function calculateChartArea(containerWidth: number, containerHeight: number, padding: Padding, titleArea: BoxArea | null, legendArea: BoxArea | null, titlePosition: 'top' | 'bottom' | undefined, legendPosition: Position | undefined): BoxArea;
|
|
36
|
+
/**
|
|
37
|
+
* Calculates the optimal radius for a pie/donut chart within the chart area
|
|
38
|
+
* Also returns the center point for the chart
|
|
39
|
+
* For partial pies (sweepAngle <= 270), the center is adjusted to visually center the arc
|
|
40
|
+
*
|
|
41
|
+
* @param chartArea - The available chart area
|
|
42
|
+
* @param radiusPercent - Optional radius as percentage (0-100). Defaults to 100.
|
|
43
|
+
* @param partialPieOptions - Optional rotation and sweepAngle for partial pie centering
|
|
44
|
+
*/
|
|
45
|
+
declare function calculateRadiusAndCenter(chartArea: BoxArea, radiusPercent?: number, partialPieOptions?: PartialPieOptions): {
|
|
46
|
+
center: {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
};
|
|
50
|
+
radius: number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Compute the responsive tier for a given chart width.
|
|
55
|
+
*/
|
|
56
|
+
declare function getResponsiveTier(chartWidth: number, breakpoints?: Partial<ResponsiveBreakpoints>): ResponsiveTier;
|
|
57
|
+
/**
|
|
58
|
+
* Get adaptive default values for a given tier.
|
|
59
|
+
* 'lg' tier matches the current hardcoded defaults.
|
|
60
|
+
*
|
|
61
|
+
* When `globalFont` is provided with a `size`, all font-related values are
|
|
62
|
+
* scaled proportionally using the em-based formula: `tierPx / 12 * globalSize`.
|
|
63
|
+
*/
|
|
64
|
+
declare function getAdaptiveDefaults(tier: ResponsiveTier, globalFont?: {
|
|
65
|
+
size?: number;
|
|
66
|
+
}): AdaptiveDefaults;
|
|
67
|
+
/**
|
|
68
|
+
* Compute an adaptive tick count based on axis pixel length.
|
|
69
|
+
* Returns the user's explicit tickCount if provided.
|
|
70
|
+
* Heuristic: ~1 tick per 40px, clamped between 5 and 15.
|
|
71
|
+
*/
|
|
72
|
+
declare function getAdaptiveTickCount(axisLength: number, userTickCount?: number): number;
|
|
73
|
+
/**
|
|
74
|
+
* Evaluate responsive rules against current chart dimensions.
|
|
75
|
+
* Returns a shallow-merged object of all matching rule props (last rule wins on conflict).
|
|
76
|
+
* Rules are evaluated in array order — all matching rules are applied.
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* Process raw container dimensions: apply aspect ratio enforcement and max dimension clamping.
|
|
80
|
+
* Pure math — no DOM or framework dependency.
|
|
81
|
+
*/
|
|
82
|
+
declare function processDimensions(rawWidth: number, rawHeight: number, options?: {
|
|
83
|
+
aspectRatio?: number;
|
|
84
|
+
maxWidth?: number;
|
|
85
|
+
maxHeight?: number;
|
|
86
|
+
}): {
|
|
87
|
+
width: number;
|
|
88
|
+
height: number;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Apply responsive rule overrides to an axis map.
|
|
92
|
+
* - No overrides → returns original map unchanged.
|
|
93
|
+
* - `visible: false` → returns empty map (axis group hidden).
|
|
94
|
+
* - Other props → shallow-merges into every axis entry's props.
|
|
95
|
+
*/
|
|
96
|
+
declare function applyAxisOverrides<K, V extends {
|
|
97
|
+
props: object;
|
|
98
|
+
}>(axes: Map<K, V>, overrides: Record<string, unknown> | undefined): Map<K, V>;
|
|
99
|
+
declare function evaluateResponsiveRules(rules: ResponsiveRule[], chartWidth: number, chartHeight: number): Record<string, Record<string, unknown>>;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Batches resize events using RAF or timer-based debouncing.
|
|
103
|
+
* Used by both React and Vue responsive dimension hooks.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* const debouncer = new ResizeDebouncer({ useRAF: true });
|
|
108
|
+
*
|
|
109
|
+
* // In ResizeObserver callback:
|
|
110
|
+
* debouncer.schedule(processed, (dims) => {
|
|
111
|
+
* width = dims.width;
|
|
112
|
+
* height = dims.height;
|
|
113
|
+
* });
|
|
114
|
+
*
|
|
115
|
+
* // On unmount:
|
|
116
|
+
* debouncer.cancel();
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
declare class ResizeDebouncer {
|
|
120
|
+
private pending;
|
|
121
|
+
private rafId;
|
|
122
|
+
private timerId;
|
|
123
|
+
private delayMs;
|
|
124
|
+
constructor(options?: ResizeDebouncerOptions);
|
|
125
|
+
/**
|
|
126
|
+
* Schedule a dimension update. The callback fires after debounce settles.
|
|
127
|
+
* Subsequent calls before settlement replace the pending dimensions.
|
|
128
|
+
*/
|
|
129
|
+
schedule(dims: {
|
|
130
|
+
width: number;
|
|
131
|
+
height: number;
|
|
132
|
+
}, apply: (dims: {
|
|
133
|
+
width: number;
|
|
134
|
+
height: number;
|
|
135
|
+
}) => void): void;
|
|
136
|
+
/** Cancel any pending debounce. Call on unmount. */
|
|
137
|
+
cancel(): void;
|
|
138
|
+
/** Update debounce options (e.g. when props change). */
|
|
139
|
+
updateOptions(options: ResizeDebouncerOptions): void;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export { ResizeDebouncer as R, applyAxisOverrides as a, calculateLegendArea as b, calculateChartArea as c, calculateLegendDimensions as d, calculateRadiusAndCenter as e, calculateTitleArea as f, calculateTitleDimensions as g, calculateTitleLayout as h, evaluateResponsiveRules as i, getAdaptiveDefaults as j, getAdaptiveTickCount as k, getResponsiveTier as l, normalizePadding as n, processDimensions as p };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { RadialSliceState, SliceState, RadialFrameContext, HoverConfig, ChartTheme, LabelLayoutOptions, BoxArea, ChartAreaBounds, DataLabelConfig, FieldAccessor, LabelLayoutResult, LabelConfig, RingLayoutInfo, PieDatasetEntry, PieContentItem, AnimatableSlice, RingTarget, DashAccessor, SliceStyleData, DatasetRegistration } from '@primeui/chart-types';
|
|
2
|
+
import { RingLayoutInfo as RingLayoutInfo$1 } from '@primeui/chart-types/layout';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Renders all pie/donut slices to a canvas context for a single frame.
|
|
6
|
+
* Pure function — no React or DOM dependencies.
|
|
7
|
+
*/
|
|
8
|
+
declare function renderCanvasSlices(ctx: CanvasRenderingContext2D, frame: RadialFrameContext, hoverConfig: HoverConfig | undefined, theme: Required<ChartTheme>): void;
|
|
9
|
+
/**
|
|
10
|
+
* Builds a map of SliceState arrays grouped by dataset index.
|
|
11
|
+
* Used for pie/donut hit testing.
|
|
12
|
+
* Pure function — no React or DOM dependencies.
|
|
13
|
+
*/
|
|
14
|
+
declare function buildHitTestStates(slices: RadialSliceState[]): Map<string, SliceState[]>;
|
|
15
|
+
|
|
16
|
+
declare const DEFAULT_LABEL_LAYOUT_OPTIONS: LabelLayoutOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Computes the largest radius that still fits labels + leader lines within the bounds.
|
|
19
|
+
* Called during layout phase so the pie can shrink before being drawn.
|
|
20
|
+
*/
|
|
21
|
+
declare function computeLabelAwareRadius(labelConfigs: LabelConfig[], initialRadius: number, bounds: ChartAreaBounds, options?: Partial<LabelLayoutOptions>): number;
|
|
22
|
+
/**
|
|
23
|
+
* Calculates optimal label layout for circular charts.
|
|
24
|
+
* Positions labels at the given radius and uses push-apart to resolve vertical overlaps.
|
|
25
|
+
*/
|
|
26
|
+
declare function calculateLabelLayout(labelConfigs: LabelConfig[], initialRadius: number, bounds: ChartAreaBounds, options?: Partial<LabelLayoutOptions>): LabelLayoutResult;
|
|
27
|
+
/**
|
|
28
|
+
* Converts a BoxArea to ChartAreaBounds.
|
|
29
|
+
*/
|
|
30
|
+
declare function boxAreaToBounds(area: BoxArea): ChartAreaBounds;
|
|
31
|
+
/** Per-dataset accessors a pie renderer supplies so the builder can resolve each slice's label text. */
|
|
32
|
+
interface PieDataLabelDatasetProps {
|
|
33
|
+
label?: FieldAccessor<unknown, string>;
|
|
34
|
+
data?: unknown[];
|
|
35
|
+
}
|
|
36
|
+
interface PieDataLabelLayout {
|
|
37
|
+
/** Positioned labels + leader lines, shared by the canvas and SVG draw passes. */
|
|
38
|
+
labelLayout: LabelLayoutResult;
|
|
39
|
+
/** originalIndex -> LabelConfig, for the custom `render` lookup. */
|
|
40
|
+
configsByIndex: Map<number, LabelConfig>;
|
|
41
|
+
/** originalIndex -> slice (only slices that produced a label), for hover/leader-line effects. */
|
|
42
|
+
labelSlices: Map<number, RadialSliceState>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Builds the pie/donut data-label layout once from a radial frame, so the canvas
|
|
46
|
+
* (`renderCanvasDataLabels`) and SVG (`PieRendererController._renderSvgDataLabels`) paths
|
|
47
|
+
* consume identical configs, bounds, and positions. Keeping this in one place is what makes
|
|
48
|
+
* canvas/SVG label parity structural rather than something each renderer re-derives (the
|
|
49
|
+
* earlier centerX / mid-angle / fallback-color drift bugs lived in the two duplicated copies).
|
|
50
|
+
*
|
|
51
|
+
* Returns `null` when no slice qualifies for a label.
|
|
52
|
+
*/
|
|
53
|
+
declare function buildPieDataLabelLayout(frame: RadialFrameContext, labelConfig: DataLabelConfig, viewport: {
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
}, datasetPropsMap: Map<number, PieDataLabelDatasetProps>): PieDataLabelLayout | null;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Build a per-item visibility map for a single pie dataset.
|
|
60
|
+
* An item is visible when both its dataset and the item itself are visible.
|
|
61
|
+
* Returns only `actualVisibility` — the `renderVisibility` map (always true)
|
|
62
|
+
* that previously accompanied it was unused.
|
|
63
|
+
*/
|
|
64
|
+
declare function buildPieVisibilityMap(data: unknown[], datasetId: string, isDatasetVisible: (id: string) => boolean, isItemVisible: (datasetId: string, index: number) => boolean): Map<number, boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Resolve the effective chart area and inner radius for a dataset that may be
|
|
67
|
+
* part of a concentric ring stack. When no ring layout applies the original
|
|
68
|
+
* chartArea and props.innerRadius are returned unchanged.
|
|
69
|
+
*/
|
|
70
|
+
declare function applyRingLayout(chartArea: BoxArea, ringLayout: RingLayoutInfo | undefined, props: {
|
|
71
|
+
startAngle?: number;
|
|
72
|
+
sweepAngle?: number;
|
|
73
|
+
innerRadius?: number;
|
|
74
|
+
}): {
|
|
75
|
+
effectiveChartArea: BoxArea;
|
|
76
|
+
effectiveInnerRadius: number;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Compute per-slice outer radius ratios for variable-radius pie charts.
|
|
80
|
+
* The slice with the highest visible value gets ratio 1.0; others are
|
|
81
|
+
* proportionally smaller. Returns null when sliceRadiusValue is not set.
|
|
82
|
+
*/
|
|
83
|
+
declare function computeSliceRadiusRatios(data: unknown[], sliceRadiusValue: FieldAccessor<unknown, number> | undefined, actualVisibility: Map<number, boolean>): number[] | null;
|
|
84
|
+
/** Minimal prop shape required to build slice style data */
|
|
85
|
+
interface PieStyleProps {
|
|
86
|
+
color?: unknown;
|
|
87
|
+
borderStrokeWidth?: unknown;
|
|
88
|
+
borderColor?: unknown;
|
|
89
|
+
borderRadius?: unknown;
|
|
90
|
+
borderDash?: DashAccessor<unknown>;
|
|
91
|
+
borderDashOffset?: number;
|
|
92
|
+
spacing?: number;
|
|
93
|
+
hoverColor?: unknown;
|
|
94
|
+
hoverBorderColor?: unknown;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Build the SliceStyleData entry for a single slice.
|
|
98
|
+
* Resolves per-item accessors for border properties and picks the slice color.
|
|
99
|
+
*/
|
|
100
|
+
declare function buildSliceStyleData(props: PieStyleProps, item: unknown, index: number, targetAngle: number, radiusRatio: number, theme?: Required<ChartTheme>, value?: number | null, category?: string, seriesIndex?: number, seriesId?: string): SliceStyleData;
|
|
101
|
+
/**
|
|
102
|
+
* Build a RingTarget for the animation state manager.
|
|
103
|
+
* Picks ring radii from the stacked ring layout when available, otherwise
|
|
104
|
+
* falls back to the values computed from the layout phase.
|
|
105
|
+
*/
|
|
106
|
+
declare function buildRingTarget(chartArea: BoxArea, datasetIndex: number, slices: AnimatableSlice[], ringLayouts: RingLayoutInfo[], datasetId: string, props: {
|
|
107
|
+
startAngle?: number;
|
|
108
|
+
sweepAngle?: number;
|
|
109
|
+
}, fallbackInnerRadius: number, fallbackOuterRadius: number): RingTarget;
|
|
110
|
+
/**
|
|
111
|
+
* Compute per-slice position + render context for custom SVG content overlays.
|
|
112
|
+
*
|
|
113
|
+
* Frameworks iterate the returned array and wrap each item in a framework
|
|
114
|
+
* `<g transform="translate(contentX, contentY)">`, then call
|
|
115
|
+
* `item.renderFn(item.context)` for the inner content and pass `item.key`
|
|
116
|
+
* to `controller.registerCustomContent`.
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
declare function buildPieSliceContentItems(entries: PieDatasetEntry[], lastRenderedSlices: RadialSliceState[], ringRadii: Map<string, {
|
|
120
|
+
inner: number;
|
|
121
|
+
outer: number;
|
|
122
|
+
}>, animationLayout: {
|
|
123
|
+
center: {
|
|
124
|
+
x: number;
|
|
125
|
+
y: number;
|
|
126
|
+
};
|
|
127
|
+
outerRadius: number;
|
|
128
|
+
innerRadius: number;
|
|
129
|
+
} | null, hiddenItems: Map<string, Set<number>>, fontFamily?: string, theme?: Required<ChartTheme>): PieContentItem[];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Calculate ring layouts for stacked pie charts (concentric rings) based on visible datasets.
|
|
133
|
+
* A ring is considered visible only if the dataset is visible AND at least one item is visible.
|
|
134
|
+
* Uses stackId to identify stacked datasets and order to determine ring position.
|
|
135
|
+
*/
|
|
136
|
+
declare function calculateRingLayouts(datasets: Map<string, DatasetRegistration>, isDatasetVisible: (id: string) => boolean, isItemVisible: (datasetId: string, index: number) => boolean, baseInnerRadius?: number, gap?: number): RingLayoutInfo$1[];
|
|
137
|
+
|
|
138
|
+
export { DEFAULT_LABEL_LAYOUT_OPTIONS as D, applyRingLayout as a, boxAreaToBounds as b, buildHitTestStates as c, buildPieDataLabelLayout as d, buildPieSliceContentItems as e, buildPieVisibilityMap as f, buildRingTarget as g, buildSliceStyleData as h, calculateLabelLayout as i, calculateRingLayouts as j, computeLabelAwareRadius as k, computeSliceRadiusRatios as l, renderCanvasSlices as r };
|