@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,60 @@
|
|
|
1
|
+
import { BarRenderProps, BoxArea, MultiBarConfig, BarRenderData, BarEdge, BarLabelGeometry, BarLabelPosition, ChartTheme, BarRenderStates, BarVisualLayoutInput, BarVisualLayoutOutput, BarDatasetInfo, DatasetRenderer } from '@primeui/chart-types';
|
|
2
|
+
export { renderBarSvg } from './svg/index.mjs';
|
|
3
|
+
export { renderBarCanvas } from './canvas/index.mjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Resolve borderSkipped to absolute edge set based on orientation and bar direction.
|
|
7
|
+
*/
|
|
8
|
+
declare function resolveSkippedEdges(borderSkipped: false | 'start' | 'end' | 'top' | 'bottom' | 'left' | 'right' | undefined, orientation: 'vertical' | 'horizontal', isNegative: boolean): ReadonlySet<BarEdge>;
|
|
9
|
+
/**
|
|
10
|
+
* Calculate bar chart layout from props and chart area.
|
|
11
|
+
*/
|
|
12
|
+
declare function calculateBarLayout<T>(props: BarRenderProps<T>, chartArea: BoxArea, config?: MultiBarConfig): Omit<BarRenderData, 'datasetIndex'>;
|
|
13
|
+
|
|
14
|
+
declare function computeBarRenderStates<T>(props: BarRenderProps<T>, layout: BarRenderData, theme: Required<ChartTheme>): BarRenderStates;
|
|
15
|
+
/**
|
|
16
|
+
* Compute data label position for a single bar.
|
|
17
|
+
* Pure function — no DOM or rendering side effects.
|
|
18
|
+
*
|
|
19
|
+
* @param bar - Bar geometry
|
|
20
|
+
* @param orientation - Chart orientation
|
|
21
|
+
* @param padding - Space between bar edge and label (default: 6)
|
|
22
|
+
*/
|
|
23
|
+
declare function computeBarLabelPosition(bar: BarLabelGeometry, orientation: 'vertical' | 'horizontal', padding?: number): BarLabelPosition;
|
|
24
|
+
/**
|
|
25
|
+
* Hit test for bar chart - returns the data index of the bar at the given point.
|
|
26
|
+
*
|
|
27
|
+
* Uses binary search on the category axis (O(log N)) since bars within a single
|
|
28
|
+
* dataset are arranged sequentially along x (vertical) or y (horizontal).
|
|
29
|
+
* Falls back to linear scan for small arrays where binary search overhead isn't worth it.
|
|
30
|
+
*
|
|
31
|
+
* @param x - X coordinate relative to chart area origin
|
|
32
|
+
* @param y - Y coordinate relative to chart area origin
|
|
33
|
+
* @param props - Render props
|
|
34
|
+
* @param layout - Computed layout
|
|
35
|
+
* @returns Data index of hit bar, or null if no hit
|
|
36
|
+
*/
|
|
37
|
+
declare function hitTestBar<T>(x: number, y: number, _props: BarRenderProps<T>, layout: Omit<BarRenderData, 'datasetIndex'>): number | null;
|
|
38
|
+
|
|
39
|
+
declare function computeBarVisualLayout(input: BarVisualLayoutInput): BarVisualLayoutOutput;
|
|
40
|
+
/**
|
|
41
|
+
* Sum of absolute values per dataset — for percentage display in tooltips & data labels.
|
|
42
|
+
*/
|
|
43
|
+
declare function computeBarDatasetTotals(barDatasets: BarDatasetInfo[], barRawResolved?: (number | null)[][]): Map<string, number>;
|
|
44
|
+
/**
|
|
45
|
+
* Compute axis hints (category labels + weights) for the bar series. Pure — used by
|
|
46
|
+
* the cartesian frame to build category/value axes without importing the painters.
|
|
47
|
+
* Extracted so consumers (e.g. vue ChartBar) can pull just this, not the whole barRenderer.
|
|
48
|
+
*/
|
|
49
|
+
declare function getBarAxisHints(props: BarRenderProps<unknown>, data: unknown[]): {
|
|
50
|
+
categoryLabels?: string[];
|
|
51
|
+
categoryWeights?: number[];
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Bar DatasetRenderer contract — wires the family-agnostic render pipeline to the
|
|
56
|
+
* bar-specific layout, svg/canvas painters and hit-test.
|
|
57
|
+
*/
|
|
58
|
+
declare const barRenderer: DatasetRenderer<BarRenderProps, BarRenderData>;
|
|
59
|
+
|
|
60
|
+
export { barRenderer, calculateBarLayout, computeBarDatasetTotals, computeBarLabelPosition, computeBarRenderStates, computeBarVisualLayout, getBarAxisHints, hitTestBar, resolveSkippedEdges };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { barRenderer, computeBarDatasetTotals, computeBarVisualLayout, getBarAxisHints } from '../../chunk-7QQ6ETB4.mjs';
|
|
2
|
+
export { renderBarCanvas } from '../../chunk-X7T34OLW.mjs';
|
|
3
|
+
export { renderBarSvg } from '../../chunk-SALTGZFR.mjs';
|
|
4
|
+
export { calculateBarLayout, computeBarLabelPosition, computeBarRenderStates, hitTestBar, resolveSkippedEdges } from '../../chunk-AUF4CHDP.mjs';
|
|
5
|
+
import '../../chunk-VGLSBZDN.mjs';
|
|
6
|
+
import '../../chunk-5JCI2DEB.mjs';
|
|
7
|
+
import '../../chunk-BZN2QHGP.mjs';
|
|
8
|
+
import '../../chunk-OGJ6IIBW.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,8 @@
|
|
|
1
|
+
import { BarRenderProps, BarRenderData, RenderContext, SvgNode } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Render bar chart to SVG
|
|
5
|
+
*/
|
|
6
|
+
declare function renderBarSvg<T>(props: BarRenderProps<T>, layout: BarRenderData, context: RenderContext): SvgNode;
|
|
7
|
+
|
|
8
|
+
export { renderBarSvg };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { renderBarSvg } from '../../../chunk-SALTGZFR.mjs';
|
|
2
|
+
import '../../../chunk-AUF4CHDP.mjs';
|
|
3
|
+
import '../../../chunk-VGLSBZDN.mjs';
|
|
4
|
+
import '../../../chunk-5JCI2DEB.mjs';
|
|
5
|
+
import '../../../chunk-BZN2QHGP.mjs';
|
|
6
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
7
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
8
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
9
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
10
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
11
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CandlestickRenderProps, CandlestickRenderData, RenderContext } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Render all candles to a Canvas 2D context. Standalone painter — the renderer const delegates here.
|
|
5
|
+
*/
|
|
6
|
+
declare function renderCandlestickCanvas(props: CandlestickRenderProps<unknown>, layout: CandlestickRenderData, ctx: CanvasRenderingContext2D, context: RenderContext): void;
|
|
7
|
+
|
|
8
|
+
export { renderCandlestickCanvas };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { renderCandlestickCanvas } from '../../../chunk-FHTC2YDB.mjs';
|
|
2
|
+
import '../../../chunk-CHW4RKY3.mjs';
|
|
3
|
+
import '../../../chunk-VGLSBZDN.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,123 @@
|
|
|
1
|
+
import { PropertyAnimatable, CandlestickPaintBackend, CandlestickControllerInput, AnimatedPropertyStoreLike, CandlestickHitTestResult, CartesianHitTestResult, CrosshairSeriesHit, CandlestickRenderData } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
interface CandleState {
|
|
4
|
+
x: number;
|
|
5
|
+
bodyWidth: number;
|
|
6
|
+
wickTop: number;
|
|
7
|
+
wickBottom: number;
|
|
8
|
+
bodyTop: number;
|
|
9
|
+
bodyBottom: number;
|
|
10
|
+
openY: number;
|
|
11
|
+
closeY: number;
|
|
12
|
+
baselineY: number;
|
|
13
|
+
bodyFill: string | null;
|
|
14
|
+
bodyStroke: string;
|
|
15
|
+
wickColor: string;
|
|
16
|
+
wickStrokeWidth: number;
|
|
17
|
+
useClass: 'up' | 'down' | 'neutral' | null;
|
|
18
|
+
direction: 'up' | 'down' | 'neutral';
|
|
19
|
+
proDirection: 'up' | 'down' | 'neutral';
|
|
20
|
+
borderDash?: number[];
|
|
21
|
+
borderDashOffset?: number;
|
|
22
|
+
visible: boolean;
|
|
23
|
+
dataIndex: number;
|
|
24
|
+
datasetId: string;
|
|
25
|
+
label: string;
|
|
26
|
+
open: number;
|
|
27
|
+
high: number;
|
|
28
|
+
low: number;
|
|
29
|
+
close: number;
|
|
30
|
+
}
|
|
31
|
+
declare class CandlestickRendererController implements PropertyAnimatable {
|
|
32
|
+
private layoutCache;
|
|
33
|
+
private renderPropsCache;
|
|
34
|
+
private candlestickDatasets;
|
|
35
|
+
private lastInput;
|
|
36
|
+
private _animRafId;
|
|
37
|
+
private _hover;
|
|
38
|
+
private _lastFingerprint;
|
|
39
|
+
private _lastRenderedLayout;
|
|
40
|
+
private _renderLayouts;
|
|
41
|
+
private _activeRenderPropsCache;
|
|
42
|
+
private _propertyOverrides;
|
|
43
|
+
private readonly _scene;
|
|
44
|
+
private svgGroup;
|
|
45
|
+
private canvasEl;
|
|
46
|
+
onFrame: (() => void) | null;
|
|
47
|
+
/**
|
|
48
|
+
* Injected paint backend. Holds only the painter(s) for the renderer mode this
|
|
49
|
+
* controller was constructed for (svg-only, canvas-only, or both for tests). The
|
|
50
|
+
* controller never imports a painter directly, so a single-mode construction module
|
|
51
|
+
* (`controller-svg` / `controller-canvas`) is the only thing that pulls its painter
|
|
52
|
+
* into the bundle — letting the unused painter drop from a single-mode consumer.
|
|
53
|
+
*/
|
|
54
|
+
private readonly _paint;
|
|
55
|
+
constructor(paint: CandlestickPaintBackend);
|
|
56
|
+
update(input: CandlestickControllerInput): void;
|
|
57
|
+
/**
|
|
58
|
+
* Build the per-candle scene-target map from the computed cell layouts.
|
|
59
|
+
* Element id format: `${datasetId}::${dataIndex}`. Preserves the hotfix's
|
|
60
|
+
* index-based identity for matching candles across data updates.
|
|
61
|
+
*
|
|
62
|
+
* `baselineY` is included on every target so the scene's `emptyState`
|
|
63
|
+
* callback can read it (the callback receives only `target: T`, no
|
|
64
|
+
* external context).
|
|
65
|
+
*/
|
|
66
|
+
private _buildSceneTargets;
|
|
67
|
+
/**
|
|
68
|
+
* Walk the scene and rebuild per-dataset CandlestickRenderData reflecting
|
|
69
|
+
* the current visual state. Used by the raf tick loop AND for one-shot
|
|
70
|
+
* static renders. Stores the result in `_lastRenderedLayout` so hitTest
|
|
71
|
+
* and the canvas compositor paint closure continue to read live state.
|
|
72
|
+
*
|
|
73
|
+
* The interrupt-safety contract previously provided by snapshotting
|
|
74
|
+
* `_lastRenderedLayout` as the next tween's start is now structural via
|
|
75
|
+
* AnimatedElement.setTarget capturing `current[field]` automatically per
|
|
76
|
+
* candle. `_lastRenderedLayout` here is a READ-only projection of the
|
|
77
|
+
* scene used by hit-test and compositor callbacks.
|
|
78
|
+
*/
|
|
79
|
+
private _renderSceneFrame;
|
|
80
|
+
private _cancelRaf;
|
|
81
|
+
private _commit;
|
|
82
|
+
private renderFrame;
|
|
83
|
+
applyHover(hover: {
|
|
84
|
+
datasetId: string | null;
|
|
85
|
+
index: number | null;
|
|
86
|
+
}): void;
|
|
87
|
+
/**
|
|
88
|
+
* Apply animated property values without triggering a full layout cycle.
|
|
89
|
+
* Called from the property-animation framework wrapper each animation tick.
|
|
90
|
+
*
|
|
91
|
+
* Per-dataset: writes overrides into `_propertyOverrides` (or deletes the
|
|
92
|
+
* entry when the store has no live values for it), then patches downstream
|
|
93
|
+
* caches and triggers a repaint. The overrides apply uniformly to all
|
|
94
|
+
* candles of the dataset — per-candle granularity is Step 14.
|
|
95
|
+
*
|
|
96
|
+
* SVG: candlestick renders candles imperatively each frame from
|
|
97
|
+
* `_activeRenderPropsCache`, so a `renderFrameCycle()` call replays the
|
|
98
|
+
* merged props onto the DOM. Canvas: refreshes the cache then triggers
|
|
99
|
+
* compositor repaint so the layer paint callback reads the merged props.
|
|
100
|
+
*/
|
|
101
|
+
applyPropertyAnimations(store: AnimatedPropertyStoreLike): void;
|
|
102
|
+
/**
|
|
103
|
+
* Full re-render of the current scene state.
|
|
104
|
+
*
|
|
105
|
+
* Used by the property-animation framework wrapper: when a property
|
|
106
|
+
* animation completes and its override is released from the store,
|
|
107
|
+
* `_renderSceneFrame()` rebuilds `_activeRenderPropsCache` from the now-empty
|
|
108
|
+
* overrides map, then projects the cleaned props to DOM / canvas so SVG
|
|
109
|
+
* attributes snap back to base values.
|
|
110
|
+
*/
|
|
111
|
+
renderFrameCycle(): void;
|
|
112
|
+
hitTest(x: number, y: number): CandlestickHitTestResult | null;
|
|
113
|
+
findAllNearest(x: number, y: number): {
|
|
114
|
+
primary: CartesianHitTestResult;
|
|
115
|
+
allSeries: CrosshairSeriesHit[];
|
|
116
|
+
} | null;
|
|
117
|
+
getSvgOutput(): null;
|
|
118
|
+
get hasData(): boolean;
|
|
119
|
+
get layouts(): Map<string, CandlestickRenderData>;
|
|
120
|
+
destroy(): void;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { type CandleState, CandlestickRendererController };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { CandlestickRendererController } from '../../../chunk-WPFUV7K3.mjs';
|
|
2
|
+
import '../../../chunk-M7B3JF43.mjs';
|
|
3
|
+
import '../../../chunk-JO7VACY2.mjs';
|
|
4
|
+
import '../../../chunk-3OZLP4I4.mjs';
|
|
5
|
+
import '../../../chunk-CINXJIRR.mjs';
|
|
6
|
+
import '../../../chunk-FHTC2YDB.mjs';
|
|
7
|
+
import '../../../chunk-CHW4RKY3.mjs';
|
|
8
|
+
import '../../../chunk-DP2IZNN3.mjs';
|
|
9
|
+
import '../../../chunk-Q6PPVIHU.mjs';
|
|
10
|
+
import '../../../chunk-VN7CKCSE.mjs';
|
|
11
|
+
import '../../../chunk-VGLSBZDN.mjs';
|
|
12
|
+
import '../../../chunk-ZT2Z7ERM.mjs';
|
|
13
|
+
import '../../../chunk-KP2TWD4Z.mjs';
|
|
14
|
+
import '../../../chunk-3WEMHXZI.mjs';
|
|
15
|
+
import '../../../chunk-KVDEROP6.mjs';
|
|
16
|
+
import '../../../chunk-YBJ56XJS.mjs';
|
|
17
|
+
import '../../../chunk-NPDZLYIF.mjs';
|
|
18
|
+
import '../../../chunk-EDAKJLNA.mjs';
|
|
19
|
+
import '../../../chunk-JWFBOPM6.mjs';
|
|
20
|
+
import '../../../chunk-5JCI2DEB.mjs';
|
|
21
|
+
import '../../../chunk-BZN2QHGP.mjs';
|
|
22
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
23
|
+
import '../../../chunk-ARRGOEFX.mjs';
|
|
24
|
+
import '../../../chunk-22ST6YPP.mjs';
|
|
25
|
+
import '../../../chunk-FFMT6OCO.mjs';
|
|
26
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
27
|
+
import '../../../chunk-ADKLH73T.mjs';
|
|
28
|
+
import '../../../chunk-OXTFAWSK.mjs';
|
|
29
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
30
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
31
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
32
|
+
import '../../../chunk-OWW3K55O.mjs';
|
|
33
|
+
import '../../../chunk-WA3OVISZ.mjs';
|
|
34
|
+
import '../../../chunk-C36VWQ7A.mjs';
|
|
35
|
+
import '../../../chunk-BETFQBM2.mjs';
|
|
36
|
+
import '../../../chunk-WRULPWHD.mjs';
|
|
37
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
38
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
39
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
40
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CandlestickRendererController } from '../controller/index.mjs';
|
|
2
|
+
import '@primeui/chart-types';
|
|
3
|
+
|
|
4
|
+
/** Construct a CandlestickRendererController wired with the Canvas painter only. */
|
|
5
|
+
declare const createCandlestickRendererCanvas: () => CandlestickRendererController;
|
|
6
|
+
|
|
7
|
+
export { createCandlestickRendererCanvas };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CandlestickRendererController } from '../../../chunk-WPFUV7K3.mjs';
|
|
2
|
+
import '../../../chunk-M7B3JF43.mjs';
|
|
3
|
+
import '../../../chunk-JO7VACY2.mjs';
|
|
4
|
+
import '../../../chunk-3OZLP4I4.mjs';
|
|
5
|
+
import '../../../chunk-CINXJIRR.mjs';
|
|
6
|
+
import { renderCandlestickCanvas } from '../../../chunk-FHTC2YDB.mjs';
|
|
7
|
+
import '../../../chunk-CHW4RKY3.mjs';
|
|
8
|
+
import '../../../chunk-DP2IZNN3.mjs';
|
|
9
|
+
import '../../../chunk-Q6PPVIHU.mjs';
|
|
10
|
+
import '../../../chunk-VN7CKCSE.mjs';
|
|
11
|
+
import '../../../chunk-VGLSBZDN.mjs';
|
|
12
|
+
import '../../../chunk-ZT2Z7ERM.mjs';
|
|
13
|
+
import '../../../chunk-KP2TWD4Z.mjs';
|
|
14
|
+
import '../../../chunk-3WEMHXZI.mjs';
|
|
15
|
+
import '../../../chunk-KVDEROP6.mjs';
|
|
16
|
+
import '../../../chunk-YBJ56XJS.mjs';
|
|
17
|
+
import '../../../chunk-NPDZLYIF.mjs';
|
|
18
|
+
import '../../../chunk-EDAKJLNA.mjs';
|
|
19
|
+
import '../../../chunk-JWFBOPM6.mjs';
|
|
20
|
+
import '../../../chunk-5JCI2DEB.mjs';
|
|
21
|
+
import '../../../chunk-BZN2QHGP.mjs';
|
|
22
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
23
|
+
import '../../../chunk-ARRGOEFX.mjs';
|
|
24
|
+
import '../../../chunk-22ST6YPP.mjs';
|
|
25
|
+
import '../../../chunk-FFMT6OCO.mjs';
|
|
26
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
27
|
+
import '../../../chunk-ADKLH73T.mjs';
|
|
28
|
+
import '../../../chunk-OXTFAWSK.mjs';
|
|
29
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
30
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
31
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
32
|
+
import '../../../chunk-OWW3K55O.mjs';
|
|
33
|
+
import '../../../chunk-WA3OVISZ.mjs';
|
|
34
|
+
import '../../../chunk-C36VWQ7A.mjs';
|
|
35
|
+
import '../../../chunk-BETFQBM2.mjs';
|
|
36
|
+
import '../../../chunk-WRULPWHD.mjs';
|
|
37
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
38
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
39
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
40
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
41
|
+
|
|
42
|
+
// src/series/candlestick/controller-canvas/index.ts
|
|
43
|
+
var createCandlestickRendererCanvas = () => new CandlestickRendererController({ renderCanvas: renderCandlestickCanvas });
|
|
44
|
+
|
|
45
|
+
export { createCandlestickRendererCanvas };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CandlestickRendererController } from '../controller/index.mjs';
|
|
2
|
+
import '@primeui/chart-types';
|
|
3
|
+
|
|
4
|
+
/** Construct a CandlestickRendererController wired with the SVG painter only. */
|
|
5
|
+
declare const createCandlestickRendererSvg: () => CandlestickRendererController;
|
|
6
|
+
|
|
7
|
+
export { createCandlestickRendererSvg };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CandlestickRendererController } from '../../../chunk-WPFUV7K3.mjs';
|
|
2
|
+
import '../../../chunk-M7B3JF43.mjs';
|
|
3
|
+
import '../../../chunk-JO7VACY2.mjs';
|
|
4
|
+
import '../../../chunk-3OZLP4I4.mjs';
|
|
5
|
+
import { renderCandlestickSvg } from '../../../chunk-CINXJIRR.mjs';
|
|
6
|
+
import '../../../chunk-FHTC2YDB.mjs';
|
|
7
|
+
import '../../../chunk-CHW4RKY3.mjs';
|
|
8
|
+
import '../../../chunk-DP2IZNN3.mjs';
|
|
9
|
+
import '../../../chunk-Q6PPVIHU.mjs';
|
|
10
|
+
import '../../../chunk-VN7CKCSE.mjs';
|
|
11
|
+
import '../../../chunk-VGLSBZDN.mjs';
|
|
12
|
+
import '../../../chunk-ZT2Z7ERM.mjs';
|
|
13
|
+
import '../../../chunk-KP2TWD4Z.mjs';
|
|
14
|
+
import '../../../chunk-3WEMHXZI.mjs';
|
|
15
|
+
import '../../../chunk-KVDEROP6.mjs';
|
|
16
|
+
import '../../../chunk-YBJ56XJS.mjs';
|
|
17
|
+
import '../../../chunk-NPDZLYIF.mjs';
|
|
18
|
+
import '../../../chunk-EDAKJLNA.mjs';
|
|
19
|
+
import '../../../chunk-JWFBOPM6.mjs';
|
|
20
|
+
import '../../../chunk-5JCI2DEB.mjs';
|
|
21
|
+
import '../../../chunk-BZN2QHGP.mjs';
|
|
22
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
23
|
+
import '../../../chunk-ARRGOEFX.mjs';
|
|
24
|
+
import '../../../chunk-22ST6YPP.mjs';
|
|
25
|
+
import '../../../chunk-FFMT6OCO.mjs';
|
|
26
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
27
|
+
import '../../../chunk-ADKLH73T.mjs';
|
|
28
|
+
import '../../../chunk-OXTFAWSK.mjs';
|
|
29
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
30
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
31
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
32
|
+
import '../../../chunk-OWW3K55O.mjs';
|
|
33
|
+
import '../../../chunk-WA3OVISZ.mjs';
|
|
34
|
+
import '../../../chunk-C36VWQ7A.mjs';
|
|
35
|
+
import '../../../chunk-BETFQBM2.mjs';
|
|
36
|
+
import '../../../chunk-WRULPWHD.mjs';
|
|
37
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
38
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
39
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
40
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
41
|
+
|
|
42
|
+
// src/series/candlestick/controller-svg/index.ts
|
|
43
|
+
var createCandlestickRendererSvg = () => new CandlestickRendererController({ renderSvg: renderCandlestickSvg });
|
|
44
|
+
|
|
45
|
+
export { createCandlestickRendererSvg };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CandlestickRenderProps, BoxArea, CandlestickMultiConfig, ChartTheme, CandlestickRenderData, DatasetRenderer } from '@primeui/chart-types';
|
|
2
|
+
export { renderCandlestickSvg } from './svg/index.mjs';
|
|
3
|
+
export { renderCandlestickCanvas } from './canvas/index.mjs';
|
|
4
|
+
|
|
5
|
+
declare function calculateCandlestickLayout<T>(props: CandlestickRenderProps<T>, chartArea: BoxArea, config: CandlestickMultiConfig, theme: Required<ChartTheme>): Omit<CandlestickRenderData, 'datasetIndex'>;
|
|
6
|
+
declare function hitTestCandlestick(x: number, y: number, layout: CandlestickRenderData): number | null;
|
|
7
|
+
declare function findNearestCandleIndex(x: number, layout: CandlestickRenderData): number | null;
|
|
8
|
+
|
|
9
|
+
declare const candlestickRenderer: DatasetRenderer<CandlestickRenderProps<unknown>, CandlestickRenderData>;
|
|
10
|
+
|
|
11
|
+
export { calculateCandlestickLayout, candlestickRenderer, findNearestCandleIndex, hitTestCandlestick };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { calculateCandlestickLayout, candlestickRenderer, findNearestCandleIndex, hitTestCandlestick } from '../../chunk-3OZLP4I4.mjs';
|
|
2
|
+
export { renderCandlestickSvg } from '../../chunk-CINXJIRR.mjs';
|
|
3
|
+
export { renderCandlestickCanvas } from '../../chunk-FHTC2YDB.mjs';
|
|
4
|
+
import '../../chunk-CHW4RKY3.mjs';
|
|
5
|
+
import '../../chunk-VGLSBZDN.mjs';
|
|
6
|
+
import '../../chunk-NKUYIWAP.mjs';
|
|
7
|
+
import '../../chunk-QS76E3TD.mjs';
|
|
8
|
+
import '../../chunk-O2X6FF45.mjs';
|
|
9
|
+
import '../../chunk-SSLTFJ3U.mjs';
|
|
10
|
+
import '../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CandlestickRenderProps, CandlestickRenderData, RenderContext, SvgNode } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Render all candles to an SVG node tree. Standalone painter — the renderer const delegates here.
|
|
5
|
+
*/
|
|
6
|
+
declare function renderCandlestickSvg(props: CandlestickRenderProps<unknown>, layout: CandlestickRenderData, context: RenderContext): SvgNode;
|
|
7
|
+
|
|
8
|
+
export { renderCandlestickSvg };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { renderCandlestickSvg } from '../../../chunk-CINXJIRR.mjs';
|
|
2
|
+
import '../../../chunk-CHW4RKY3.mjs';
|
|
3
|
+
import '../../../chunk-VGLSBZDN.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,16 @@
|
|
|
1
|
+
import { HeatmapRenderData, HeatmapCellContext, HeatmapRenderProps, BaseInteractionState, CoreEffectConfig, RenderContext } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
declare function renderHeatmapCanvas(props: HeatmapRenderProps<unknown> & {
|
|
4
|
+
interaction?: BaseInteractionState;
|
|
5
|
+
effects?: CoreEffectConfig;
|
|
6
|
+
}, layout: HeatmapRenderData, ctx: CanvasRenderingContext2D, context: RenderContext): void;
|
|
7
|
+
/**
|
|
8
|
+
* Render user-provided `renderContent` callbacks for heatmap cells to canvas.
|
|
9
|
+
* Clips each cell and calls the user function.
|
|
10
|
+
*/
|
|
11
|
+
declare function renderCanvasHeatmapContent(ctx: CanvasRenderingContext2D, layouts: Map<string, HeatmapRenderData>, getProps: (dsId: string) => {
|
|
12
|
+
data?: unknown[];
|
|
13
|
+
renderContent?: (context: HeatmapCellContext<unknown>) => void;
|
|
14
|
+
} | undefined, onImageLoad?: () => void): void;
|
|
15
|
+
|
|
16
|
+
export { renderCanvasHeatmapContent, renderHeatmapCanvas };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { renderCanvasHeatmapContent, renderHeatmapCanvas } from '../../../chunk-TQ6S34QZ.mjs';
|
|
2
|
+
import '../../../chunk-3Z62EUJN.mjs';
|
|
3
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
4
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
5
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
6
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
7
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
8
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
9
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { PropertyAnimatable, HeatmapPaintBackend, HeatmapControllerInput, HeatmapHitTestResult, ColorScaleInfo, BandScale, AxisLayoutInfo, BoxArea, HeatmapRenderData, HeatmapRenderProps, AnimatedPropertyStoreLike } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
declare class HeatmapRendererController implements PropertyAnimatable {
|
|
4
|
+
private _animRafId;
|
|
5
|
+
private _hover;
|
|
6
|
+
private _lastFingerprint;
|
|
7
|
+
private layoutCache;
|
|
8
|
+
private lastRenderedLayout;
|
|
9
|
+
private heatmapDatasets;
|
|
10
|
+
private lastInput;
|
|
11
|
+
private svgGroup;
|
|
12
|
+
private canvasEl;
|
|
13
|
+
private _propertyOverrides;
|
|
14
|
+
private _scaleResult;
|
|
15
|
+
private _axisLayouts;
|
|
16
|
+
private _adjustedArea;
|
|
17
|
+
private _layoutResult;
|
|
18
|
+
private readonly _scene;
|
|
19
|
+
onFrame: (() => void) | null;
|
|
20
|
+
/**
|
|
21
|
+
* Injected paint backend. Holds only the painter(s) for the renderer mode this
|
|
22
|
+
* controller was constructed for (svg-only, canvas-only, or both for tests). The
|
|
23
|
+
* controller never imports a painter directly, so a single-mode construction module
|
|
24
|
+
* (`controller-svg` / `controller-canvas`) is the only thing that pulls its painter
|
|
25
|
+
* into the bundle — letting the unused painter drop from a single-mode consumer.
|
|
26
|
+
*/
|
|
27
|
+
private readonly _paint;
|
|
28
|
+
constructor(paint: HeatmapPaintBackend);
|
|
29
|
+
update(input: HeatmapControllerInput): void;
|
|
30
|
+
applyHover(hover: {
|
|
31
|
+
datasetId: string | null;
|
|
32
|
+
index: number | null;
|
|
33
|
+
}): void;
|
|
34
|
+
hitTest(x: number, y: number): HeatmapHitTestResult | null;
|
|
35
|
+
getColorScaleInfo(): ColorScaleInfo | null;
|
|
36
|
+
get hasData(): boolean;
|
|
37
|
+
get scaleResult(): {
|
|
38
|
+
xScale: BandScale;
|
|
39
|
+
yScale: BandScale;
|
|
40
|
+
xCategories: string[];
|
|
41
|
+
yCategories: string[];
|
|
42
|
+
} | null;
|
|
43
|
+
get axisLayouts(): Map<string, AxisLayoutInfo>;
|
|
44
|
+
get adjustedArea(): BoxArea | null;
|
|
45
|
+
get layoutResult(): {
|
|
46
|
+
layouts: Map<string, HeatmapRenderData>;
|
|
47
|
+
renderPropsMap: Map<string, HeatmapRenderProps<unknown>>;
|
|
48
|
+
} | null;
|
|
49
|
+
get layouts(): Map<string, HeatmapRenderData>;
|
|
50
|
+
destroy(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Apply animated property values without triggering a full layout cycle.
|
|
53
|
+
* Called from the property-animation framework wrapper each animation tick.
|
|
54
|
+
*
|
|
55
|
+
* Per-dataset: writes overrides into `_propertyOverrides` (or deletes the
|
|
56
|
+
* entry when the store has no live values for it), then patches the active
|
|
57
|
+
* `lastRenderedLayout.renderPropsMap` and triggers a repaint. The overrides
|
|
58
|
+
* apply uniformly to all cells of the dataset — per-cell granularity is
|
|
59
|
+
* Step 14.
|
|
60
|
+
*
|
|
61
|
+
* SVG: heatmap renders cells imperatively each frame from
|
|
62
|
+
* `lastRenderedLayout.renderPropsMap`, so a `renderFrameCycle()` call replays
|
|
63
|
+
* the merged props onto the DOM. Canvas: refreshes the cache then triggers
|
|
64
|
+
* compositor repaint so the layer paint callback reads the merged props.
|
|
65
|
+
*/
|
|
66
|
+
applyPropertyAnimations(store: AnimatedPropertyStoreLike): void;
|
|
67
|
+
/**
|
|
68
|
+
* Full re-render of the current scene state.
|
|
69
|
+
*
|
|
70
|
+
* Used by the property-animation framework wrapper: when a property
|
|
71
|
+
* animation completes and its override is released from the store, the
|
|
72
|
+
* next call to `_renderSceneFrame()` (via `renderFrame` here) rebuilds
|
|
73
|
+
* `lastRenderedLayout.renderPropsMap` from the now-empty overrides map,
|
|
74
|
+
* so SVG attributes / canvas paints snap back to base values.
|
|
75
|
+
*/
|
|
76
|
+
renderFrameCycle(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Build the per-cell scene-target map from the computed cell layouts.
|
|
79
|
+
* Element id format: `${datasetId}::${dataKey ?? xLabel|yLabel}`. The
|
|
80
|
+
* `${datasetId}::` prefix scopes the id across datasets; within a dataset
|
|
81
|
+
* the suffix matches the legacy cellKey identity from animations/heatmap.ts.
|
|
82
|
+
*/
|
|
83
|
+
private _buildSceneTargets;
|
|
84
|
+
/**
|
|
85
|
+
* Walk the scene and rebuild per-dataset HeatmapRenderData reflecting the
|
|
86
|
+
* current visual state. Used by the raf tick loop to feed the existing
|
|
87
|
+
* render path without modifying the renderer.
|
|
88
|
+
*
|
|
89
|
+
* Layout structure (xCategories, yCategories, color scale, etc.) comes from
|
|
90
|
+
* the target layout in `cellLayouts`; per-cell visual state (x, y, width,
|
|
91
|
+
* height, opacity, color) comes from the scene's current frame.
|
|
92
|
+
*/
|
|
93
|
+
private _renderSceneFrame;
|
|
94
|
+
/** Cancel any in-flight raf. */
|
|
95
|
+
private _cancelRaf;
|
|
96
|
+
/** Commit fingerprint for next-frame phase detection. */
|
|
97
|
+
private _commit;
|
|
98
|
+
/**
|
|
99
|
+
* Merge each base prop set with its property-animation override + the current
|
|
100
|
+
* hover/effects state into the per-dataset render props consumed by both the
|
|
101
|
+
* full render (renderFrame) and the in-place hover reconcile (applyHover).
|
|
102
|
+
* Single source of truth — the three call sites differ only in which base map
|
|
103
|
+
* and hover snapshot they feed in.
|
|
104
|
+
*/
|
|
105
|
+
private buildFrameRenderProps;
|
|
106
|
+
private renderFrame;
|
|
107
|
+
private computeAxes;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { HeatmapRendererController };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { HeatmapRendererController } from '../../../chunk-SDBPQ5CF.mjs';
|
|
2
|
+
import '../../../chunk-SANZPAJ4.mjs';
|
|
3
|
+
import '../../../chunk-WFVOQ2QZ.mjs';
|
|
4
|
+
import '../../../chunk-MTGMXRNF.mjs';
|
|
5
|
+
import '../../../chunk-TQ6S34QZ.mjs';
|
|
6
|
+
import '../../../chunk-3Z62EUJN.mjs';
|
|
7
|
+
import '../../../chunk-Q6PPVIHU.mjs';
|
|
8
|
+
import '../../../chunk-ZTL2FQEW.mjs';
|
|
9
|
+
import '../../../chunk-VN7CKCSE.mjs';
|
|
10
|
+
import '../../../chunk-KP2TWD4Z.mjs';
|
|
11
|
+
import '../../../chunk-3WEMHXZI.mjs';
|
|
12
|
+
import '../../../chunk-YBJ56XJS.mjs';
|
|
13
|
+
import '../../../chunk-EDAKJLNA.mjs';
|
|
14
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
15
|
+
import '../../../chunk-FFMT6OCO.mjs';
|
|
16
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
17
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
18
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
19
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
20
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
21
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
22
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
23
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HeatmapRendererController } from '../controller/index.mjs';
|
|
2
|
+
import '@primeui/chart-types';
|
|
3
|
+
|
|
4
|
+
/** Construct a HeatmapRendererController wired with the Canvas painter only. */
|
|
5
|
+
declare const createHeatmapRendererCanvas: () => HeatmapRendererController;
|
|
6
|
+
|
|
7
|
+
export { createHeatmapRendererCanvas };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HeatmapRendererController } from '../../../chunk-SDBPQ5CF.mjs';
|
|
2
|
+
import '../../../chunk-SANZPAJ4.mjs';
|
|
3
|
+
import '../../../chunk-WFVOQ2QZ.mjs';
|
|
4
|
+
import '../../../chunk-MTGMXRNF.mjs';
|
|
5
|
+
import { renderHeatmapCanvas } from '../../../chunk-TQ6S34QZ.mjs';
|
|
6
|
+
import '../../../chunk-3Z62EUJN.mjs';
|
|
7
|
+
import '../../../chunk-Q6PPVIHU.mjs';
|
|
8
|
+
import '../../../chunk-ZTL2FQEW.mjs';
|
|
9
|
+
import '../../../chunk-VN7CKCSE.mjs';
|
|
10
|
+
import '../../../chunk-KP2TWD4Z.mjs';
|
|
11
|
+
import '../../../chunk-3WEMHXZI.mjs';
|
|
12
|
+
import '../../../chunk-YBJ56XJS.mjs';
|
|
13
|
+
import '../../../chunk-EDAKJLNA.mjs';
|
|
14
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
15
|
+
import '../../../chunk-FFMT6OCO.mjs';
|
|
16
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
17
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
18
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
19
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
20
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
21
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
22
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
23
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
24
|
+
|
|
25
|
+
// src/series/heatmap/controller-canvas/index.ts
|
|
26
|
+
var createHeatmapRendererCanvas = () => new HeatmapRendererController({ renderCanvas: renderHeatmapCanvas });
|
|
27
|
+
|
|
28
|
+
export { createHeatmapRendererCanvas };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HeatmapRendererController } from '../controller/index.mjs';
|
|
2
|
+
import '@primeui/chart-types';
|
|
3
|
+
|
|
4
|
+
/** Construct a HeatmapRendererController wired with the SVG painter only. */
|
|
5
|
+
declare const createHeatmapRendererSvg: () => HeatmapRendererController;
|
|
6
|
+
|
|
7
|
+
export { createHeatmapRendererSvg };
|