@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,28 @@
|
|
|
1
|
+
import { HeatmapRendererController } from '../../../chunk-SDBPQ5CF.mjs';
|
|
2
|
+
import '../../../chunk-SANZPAJ4.mjs';
|
|
3
|
+
import '../../../chunk-WFVOQ2QZ.mjs';
|
|
4
|
+
import { renderHeatmapSvg } from '../../../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';
|
|
24
|
+
|
|
25
|
+
// src/series/heatmap/controller-svg/index.ts
|
|
26
|
+
var createHeatmapRendererSvg = () => new HeatmapRendererController({ renderSvg: renderHeatmapSvg });
|
|
27
|
+
|
|
28
|
+
export { createHeatmapRendererSvg };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HeatmapRenderProps, BoxArea, BandScale, ChartTheme, HeatmapRenderData, HeatmapCell, DatasetRenderer } from '@primeui/chart-types';
|
|
2
|
+
export { renderHeatmapAxesSvg, renderHeatmapSvg } from './svg/index.mjs';
|
|
3
|
+
export { renderCanvasHeatmapContent, renderHeatmapCanvas } from './canvas/index.mjs';
|
|
4
|
+
|
|
5
|
+
interface HeatmapLabelInfo {
|
|
6
|
+
fontSize: number;
|
|
7
|
+
show: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function getHeatmapLabelInfo(cell: HeatmapCell): HeatmapLabelInfo;
|
|
10
|
+
/**
|
|
11
|
+
* Calculate heatmap cell layout from data and axis scales.
|
|
12
|
+
*
|
|
13
|
+
* Heatmap uses band scales for both X and Y axes. Each cell maps to
|
|
14
|
+
* one (x, y) position on the grid.
|
|
15
|
+
*
|
|
16
|
+
* Color resolution priority (via resolveColorScaleRange):
|
|
17
|
+
* 1. colorScale + colorRange (explicit gradient)
|
|
18
|
+
* 2. colorRange only (auto scale from data min/max)
|
|
19
|
+
* 3. color (single color, opacity mapped)
|
|
20
|
+
* 4. No color props → default heat gradient (yellow → red)
|
|
21
|
+
*/
|
|
22
|
+
declare function calculateHeatmapLayout(props: HeatmapRenderProps<unknown>, chartArea: BoxArea, scales: {
|
|
23
|
+
xScale: BandScale;
|
|
24
|
+
yScale: BandScale;
|
|
25
|
+
}, theme?: Required<ChartTheme>): Omit<HeatmapRenderData, 'datasetIndex'>;
|
|
26
|
+
/**
|
|
27
|
+
* Hit test a point against heatmap cells.
|
|
28
|
+
* Simple rectangular bounds check — cells don't overlap.
|
|
29
|
+
*/
|
|
30
|
+
declare function hitTestHeatmap(layout: HeatmapRenderData, x: number, y: number): HeatmapCell | null;
|
|
31
|
+
|
|
32
|
+
declare const heatmapRenderer: DatasetRenderer<HeatmapRenderProps<unknown>, HeatmapRenderData>;
|
|
33
|
+
|
|
34
|
+
export { calculateHeatmapLayout, getHeatmapLabelInfo, heatmapRenderer, hitTestHeatmap };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { heatmapRenderer } from '../../chunk-WFVOQ2QZ.mjs';
|
|
2
|
+
export { renderHeatmapAxesSvg, renderHeatmapSvg } from '../../chunk-MTGMXRNF.mjs';
|
|
3
|
+
export { renderCanvasHeatmapContent, renderHeatmapCanvas } from '../../chunk-TQ6S34QZ.mjs';
|
|
4
|
+
export { calculateHeatmapLayout, getHeatmapLabelInfo, hitTestHeatmap } from '../../chunk-3Z62EUJN.mjs';
|
|
5
|
+
import '../../chunk-ZTL2FQEW.mjs';
|
|
6
|
+
import '../../chunk-7CMVDIOU.mjs';
|
|
7
|
+
import '../../chunk-R6Y3R7EW.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,15 @@
|
|
|
1
|
+
import { AxisLayoutInfo, ChartTheme, HeatmapRenderProps, BaseInteractionState, CoreEffectConfig, HeatmapRenderData, RenderContext, SvgNode } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
declare function renderHeatmapSvg(props: HeatmapRenderProps<unknown> & {
|
|
4
|
+
interaction?: BaseInteractionState;
|
|
5
|
+
effects?: CoreEffectConfig;
|
|
6
|
+
}, layout: HeatmapRenderData, context: RenderContext): SvgNode;
|
|
7
|
+
/**
|
|
8
|
+
* Populate a heatmap's grid + axis SVG groups from the controller's axis layouts.
|
|
9
|
+
* Both framework hooks ran this loop verbatim (only `.current`/`.value` differed); the
|
|
10
|
+
* output is framework-agnostic DOM (materialized `SvgNode`s), so it belongs in core. Each
|
|
11
|
+
* group is cleared then rebuilt; pass `null` for a group that isn't mounted.
|
|
12
|
+
*/
|
|
13
|
+
declare function renderHeatmapAxesSvg(gridGroup: SVGGElement | null, axisGroup: SVGGElement | null, axisLayouts: Map<string, AxisLayoutInfo>, theme: Required<ChartTheme>): void;
|
|
14
|
+
|
|
15
|
+
export { renderHeatmapAxesSvg, renderHeatmapSvg };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { renderHeatmapAxesSvg, renderHeatmapSvg } from '../../../chunk-MTGMXRNF.mjs';
|
|
2
|
+
import '../../../chunk-3Z62EUJN.mjs';
|
|
3
|
+
import '../../../chunk-ZTL2FQEW.mjs';
|
|
4
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
5
|
+
import '../../../chunk-XTVE4P3L.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,6 @@
|
|
|
1
|
+
import { LineRenderProps, LineRenderData, RenderContext } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/** Render a line series to a Canvas 2D context. */
|
|
4
|
+
declare function renderLineCanvas<T = unknown>(props: LineRenderProps<T>, layout: LineRenderData, ctx: CanvasRenderingContext2D, context: RenderContext): void;
|
|
5
|
+
|
|
6
|
+
export { renderLineCanvas };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { renderLineCanvas } from '../../../chunk-KQIFO5I3.mjs';
|
|
2
|
+
import '../../../chunk-HDFGCN2F.mjs';
|
|
3
|
+
import '../../../chunk-PRDVPOZX.mjs';
|
|
4
|
+
import '../../../chunk-BZN2QHGP.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,111 @@
|
|
|
1
|
+
import { PropertyAnimatable, LinePaintBackend, LineControllerInput, AnimatedPropertyStoreLike, LineHitTestResult, CartesianHitTestResult, CrosshairSeriesHit, LineRenderData, LineRenderProps, MarkerOverlayEntry, BandScale, LinearScale } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
declare class LineRendererController implements PropertyAnimatable {
|
|
4
|
+
private _animRafId;
|
|
5
|
+
private _isInitial;
|
|
6
|
+
private _lastFingerprint;
|
|
7
|
+
private _tipSubscribers;
|
|
8
|
+
private readonly _scene;
|
|
9
|
+
private layoutCache;
|
|
10
|
+
private renderPropsCache;
|
|
11
|
+
private lineDatasets;
|
|
12
|
+
private storedLayoutData;
|
|
13
|
+
private lastRenderedLayouts;
|
|
14
|
+
private activeRenderPropsCache;
|
|
15
|
+
/**
|
|
16
|
+
* Per-dataset property-animation overrides. Layered onto scene-derived renderProps
|
|
17
|
+
* at read time inside updateRenderState. Property animations write to this map;
|
|
18
|
+
* scene tick never touches it. Cleared in destroy().
|
|
19
|
+
*/
|
|
20
|
+
private _propertyOverrides;
|
|
21
|
+
private tipProgress;
|
|
22
|
+
private entranceClipProgress;
|
|
23
|
+
private tipStartAt;
|
|
24
|
+
private tipDuration;
|
|
25
|
+
private hover;
|
|
26
|
+
private lastInput;
|
|
27
|
+
private _markerOverlays;
|
|
28
|
+
private _lastTipPositions;
|
|
29
|
+
private _hoverPropsCacheHover;
|
|
30
|
+
private _hoverPropsCachePropsMap;
|
|
31
|
+
private _hoverPropsCacheResult;
|
|
32
|
+
private svgGroup;
|
|
33
|
+
private canvasEl;
|
|
34
|
+
onFrame: (() => void) | null;
|
|
35
|
+
/**
|
|
36
|
+
* Injected paint backend. Holds only the painter(s) for the renderer mode this
|
|
37
|
+
* controller was constructed for (svg-only, canvas-only, or both for tests). The
|
|
38
|
+
* controller never imports a painter directly, so a single-mode construction module
|
|
39
|
+
* (`controller-svg` / `controller-canvas`) is the only thing that pulls its painter
|
|
40
|
+
* into the bundle — letting the unused painter drop from a single-mode consumer.
|
|
41
|
+
*/
|
|
42
|
+
private readonly _paint;
|
|
43
|
+
constructor(paint: LinePaintBackend);
|
|
44
|
+
update(input: LineControllerInput): void;
|
|
45
|
+
applyHover(hover: {
|
|
46
|
+
datasetId: string | null;
|
|
47
|
+
index: number | null;
|
|
48
|
+
axisIndex?: number | null;
|
|
49
|
+
}): void;
|
|
50
|
+
applyPropertyAnimations(store: AnimatedPropertyStoreLike): void;
|
|
51
|
+
hitTest(x: number, y: number): LineHitTestResult | null;
|
|
52
|
+
findAllNearest(x: number, y: number): {
|
|
53
|
+
primary: CartesianHitTestResult;
|
|
54
|
+
allSeries: CrosshairSeriesHit[];
|
|
55
|
+
} | null;
|
|
56
|
+
getSvgOutput(): null;
|
|
57
|
+
get hasData(): boolean;
|
|
58
|
+
get layouts(): Map<string, LineRenderData>;
|
|
59
|
+
get renderProps(): Map<string, LineRenderProps<unknown>>;
|
|
60
|
+
get markerOverlays(): MarkerOverlayEntry[];
|
|
61
|
+
/**
|
|
62
|
+
* Sync line point positions with a chrome-animated category/value scale.
|
|
63
|
+
*
|
|
64
|
+
* Called from the chrome animation loop each frame (canvas: from inside
|
|
65
|
+
* `compositor.repaint`'s `bgPainter`; SVG: directly). We only update the
|
|
66
|
+
* cached input scales — the next line animation frame (or a direct
|
|
67
|
+
* re-render when no line animation is active) picks them up through
|
|
68
|
+
* `_renderSceneFrame`.
|
|
69
|
+
*
|
|
70
|
+
* IMPORTANT: this method must never call `triggerCompositorRepaint` — it
|
|
71
|
+
* can be invoked from inside an in-flight compositor.repaint, and nesting
|
|
72
|
+
* would recurse. On canvas, we only refresh `lastRenderedLayouts` so the
|
|
73
|
+
* outer repaint's data-layer callbacks read the fresh layout.
|
|
74
|
+
*/
|
|
75
|
+
syncWithAnimatedScale(categoryScale: BandScale, valueScales?: Map<string, LinearScale>): void;
|
|
76
|
+
/**
|
|
77
|
+
* Subscribe to per-frame tip-position updates during tip-extension animation.
|
|
78
|
+
* Returns an unsubscribe function. Callback receives the current map of
|
|
79
|
+
* `datasetId → { x, y }` for the animated last segment endpoint, or `null`
|
|
80
|
+
* when no tip animation is in flight.
|
|
81
|
+
*
|
|
82
|
+
* Used by external consumers (e.g. CartesianRenderer's custom-marker sync)
|
|
83
|
+
* that need to imperatively update DOM positions during the line tip animation.
|
|
84
|
+
*/
|
|
85
|
+
subscribeTipPositions(cb: (positions: Map<string, {
|
|
86
|
+
x: number;
|
|
87
|
+
y: number;
|
|
88
|
+
}> | null) => void): () => void;
|
|
89
|
+
destroy(): void;
|
|
90
|
+
/** Cancel any in-flight raf. */
|
|
91
|
+
private _cancelRaf;
|
|
92
|
+
/** Commit fingerprint for next-frame phase detection and mark initial render complete. */
|
|
93
|
+
private _commit;
|
|
94
|
+
/** Entrance clip-reveal raf loop (delegates to `scene.startEntranceLoop`). */
|
|
95
|
+
private _startEntranceLoop;
|
|
96
|
+
/** Update/tip raf loop (delegates to `scene.startSceneUpdateLoop`). */
|
|
97
|
+
private _startSceneUpdateLoop;
|
|
98
|
+
private computeLayout;
|
|
99
|
+
/** Refresh render-state caches from the current scene + progresses. No paint. */
|
|
100
|
+
private updateRenderState;
|
|
101
|
+
/** SVG frame render with inline tip extension (delegates to `paint.renderSvgFrame`). */
|
|
102
|
+
private renderSvgFrame;
|
|
103
|
+
/** Full frame: update state then paint (delegates to `scene.renderFrameCycle`). */
|
|
104
|
+
renderFrameCycle(): void;
|
|
105
|
+
/** Canvas compositor layer paint callback (delegates to `paint.paintCanvasLayer`). */
|
|
106
|
+
private paintCanvasLayer;
|
|
107
|
+
/** Bake the current hover into render props (delegates to `hover.applyHoverToProps`). */
|
|
108
|
+
private applyHoverToProps;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { LineRendererController };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export { LineRendererController } from '../../../chunk-N3TIT3OH.mjs';
|
|
2
|
+
import '../../../chunk-WFTX4AQJ.mjs';
|
|
3
|
+
import '../../../chunk-DP2IZNN3.mjs';
|
|
4
|
+
import '../../../chunk-6HSEJLSR.mjs';
|
|
5
|
+
import '../../../chunk-HDFGCN2F.mjs';
|
|
6
|
+
import '../../../chunk-X4D7FKUS.mjs';
|
|
7
|
+
import '../../../chunk-Q6PPVIHU.mjs';
|
|
8
|
+
import '../../../chunk-66T4MRC5.mjs';
|
|
9
|
+
import '../../../chunk-QQBXUDM4.mjs';
|
|
10
|
+
import '../../../chunk-7QQ6ETB4.mjs';
|
|
11
|
+
import '../../../chunk-X7T34OLW.mjs';
|
|
12
|
+
import '../../../chunk-SALTGZFR.mjs';
|
|
13
|
+
import '../../../chunk-AUF4CHDP.mjs';
|
|
14
|
+
import '../../../chunk-ZTL2FQEW.mjs';
|
|
15
|
+
import '../../../chunk-VN7CKCSE.mjs';
|
|
16
|
+
import '../../../chunk-VGLSBZDN.mjs';
|
|
17
|
+
import '../../../chunk-ZT2Z7ERM.mjs';
|
|
18
|
+
import '../../../chunk-KP2TWD4Z.mjs';
|
|
19
|
+
import '../../../chunk-3WEMHXZI.mjs';
|
|
20
|
+
import '../../../chunk-KVDEROP6.mjs';
|
|
21
|
+
import '../../../chunk-YBJ56XJS.mjs';
|
|
22
|
+
import '../../../chunk-NPDZLYIF.mjs';
|
|
23
|
+
import '../../../chunk-EDAKJLNA.mjs';
|
|
24
|
+
import '../../../chunk-JWFBOPM6.mjs';
|
|
25
|
+
import '../../../chunk-5JCI2DEB.mjs';
|
|
26
|
+
import '../../../chunk-BZN2QHGP.mjs';
|
|
27
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
28
|
+
import '../../../chunk-ARRGOEFX.mjs';
|
|
29
|
+
import '../../../chunk-22ST6YPP.mjs';
|
|
30
|
+
import '../../../chunk-FFMT6OCO.mjs';
|
|
31
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
32
|
+
import '../../../chunk-ADKLH73T.mjs';
|
|
33
|
+
import '../../../chunk-OXTFAWSK.mjs';
|
|
34
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
35
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
36
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
37
|
+
import '../../../chunk-XQQCGFYB.mjs';
|
|
38
|
+
import '../../../chunk-WH3C3Y7P.mjs';
|
|
39
|
+
import '../../../chunk-OWW3K55O.mjs';
|
|
40
|
+
import '../../../chunk-WA3OVISZ.mjs';
|
|
41
|
+
import '../../../chunk-C36VWQ7A.mjs';
|
|
42
|
+
import '../../../chunk-BETFQBM2.mjs';
|
|
43
|
+
import '../../../chunk-WRULPWHD.mjs';
|
|
44
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
45
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
46
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
47
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LineRendererController } from '../controller/index.mjs';
|
|
2
|
+
import '@primeui/chart-types';
|
|
3
|
+
|
|
4
|
+
/** Construct a LineRendererController wired with the Canvas painter only. */
|
|
5
|
+
declare const createLineRendererCanvas: () => LineRendererController;
|
|
6
|
+
|
|
7
|
+
export { createLineRendererCanvas };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { renderLineCanvas } from '../../../chunk-KQIFO5I3.mjs';
|
|
2
|
+
import { LineRendererController } from '../../../chunk-N3TIT3OH.mjs';
|
|
3
|
+
import '../../../chunk-WFTX4AQJ.mjs';
|
|
4
|
+
import '../../../chunk-DP2IZNN3.mjs';
|
|
5
|
+
import '../../../chunk-6HSEJLSR.mjs';
|
|
6
|
+
import '../../../chunk-HDFGCN2F.mjs';
|
|
7
|
+
import '../../../chunk-X4D7FKUS.mjs';
|
|
8
|
+
import '../../../chunk-Q6PPVIHU.mjs';
|
|
9
|
+
import '../../../chunk-66T4MRC5.mjs';
|
|
10
|
+
import '../../../chunk-QQBXUDM4.mjs';
|
|
11
|
+
import '../../../chunk-7QQ6ETB4.mjs';
|
|
12
|
+
import '../../../chunk-X7T34OLW.mjs';
|
|
13
|
+
import '../../../chunk-SALTGZFR.mjs';
|
|
14
|
+
import '../../../chunk-AUF4CHDP.mjs';
|
|
15
|
+
import '../../../chunk-ZTL2FQEW.mjs';
|
|
16
|
+
import '../../../chunk-VN7CKCSE.mjs';
|
|
17
|
+
import '../../../chunk-PRDVPOZX.mjs';
|
|
18
|
+
import '../../../chunk-VGLSBZDN.mjs';
|
|
19
|
+
import '../../../chunk-ZT2Z7ERM.mjs';
|
|
20
|
+
import '../../../chunk-KP2TWD4Z.mjs';
|
|
21
|
+
import '../../../chunk-3WEMHXZI.mjs';
|
|
22
|
+
import '../../../chunk-KVDEROP6.mjs';
|
|
23
|
+
import '../../../chunk-YBJ56XJS.mjs';
|
|
24
|
+
import '../../../chunk-NPDZLYIF.mjs';
|
|
25
|
+
import '../../../chunk-EDAKJLNA.mjs';
|
|
26
|
+
import '../../../chunk-JWFBOPM6.mjs';
|
|
27
|
+
import '../../../chunk-5JCI2DEB.mjs';
|
|
28
|
+
import '../../../chunk-BZN2QHGP.mjs';
|
|
29
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
30
|
+
import '../../../chunk-ARRGOEFX.mjs';
|
|
31
|
+
import '../../../chunk-22ST6YPP.mjs';
|
|
32
|
+
import '../../../chunk-FFMT6OCO.mjs';
|
|
33
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
34
|
+
import '../../../chunk-ADKLH73T.mjs';
|
|
35
|
+
import '../../../chunk-OXTFAWSK.mjs';
|
|
36
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
37
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
38
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
39
|
+
import '../../../chunk-XQQCGFYB.mjs';
|
|
40
|
+
import '../../../chunk-WH3C3Y7P.mjs';
|
|
41
|
+
import '../../../chunk-OWW3K55O.mjs';
|
|
42
|
+
import '../../../chunk-WA3OVISZ.mjs';
|
|
43
|
+
import '../../../chunk-C36VWQ7A.mjs';
|
|
44
|
+
import '../../../chunk-BETFQBM2.mjs';
|
|
45
|
+
import '../../../chunk-WRULPWHD.mjs';
|
|
46
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
47
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
48
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
49
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
50
|
+
|
|
51
|
+
// src/series/line/controller-canvas/index.ts
|
|
52
|
+
var createLineRendererCanvas = () => new LineRendererController({ renderCanvas: renderLineCanvas });
|
|
53
|
+
|
|
54
|
+
export { createLineRendererCanvas };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LineRendererController } from '../controller/index.mjs';
|
|
2
|
+
import '@primeui/chart-types';
|
|
3
|
+
|
|
4
|
+
/** Construct a LineRendererController wired with the SVG painter only. */
|
|
5
|
+
declare const createLineRendererSvg: () => LineRendererController;
|
|
6
|
+
|
|
7
|
+
export { createLineRendererSvg };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { renderLineSvg } from '../../../chunk-3FFJEX4A.mjs';
|
|
2
|
+
import { LineRendererController } from '../../../chunk-N3TIT3OH.mjs';
|
|
3
|
+
import '../../../chunk-WFTX4AQJ.mjs';
|
|
4
|
+
import '../../../chunk-DP2IZNN3.mjs';
|
|
5
|
+
import '../../../chunk-6HSEJLSR.mjs';
|
|
6
|
+
import '../../../chunk-HDFGCN2F.mjs';
|
|
7
|
+
import '../../../chunk-X4D7FKUS.mjs';
|
|
8
|
+
import '../../../chunk-Q6PPVIHU.mjs';
|
|
9
|
+
import '../../../chunk-66T4MRC5.mjs';
|
|
10
|
+
import '../../../chunk-QQBXUDM4.mjs';
|
|
11
|
+
import '../../../chunk-7QQ6ETB4.mjs';
|
|
12
|
+
import '../../../chunk-X7T34OLW.mjs';
|
|
13
|
+
import '../../../chunk-SALTGZFR.mjs';
|
|
14
|
+
import '../../../chunk-AUF4CHDP.mjs';
|
|
15
|
+
import '../../../chunk-ZTL2FQEW.mjs';
|
|
16
|
+
import '../../../chunk-VN7CKCSE.mjs';
|
|
17
|
+
import '../../../chunk-PRDVPOZX.mjs';
|
|
18
|
+
import '../../../chunk-VGLSBZDN.mjs';
|
|
19
|
+
import '../../../chunk-ZT2Z7ERM.mjs';
|
|
20
|
+
import '../../../chunk-KP2TWD4Z.mjs';
|
|
21
|
+
import '../../../chunk-3WEMHXZI.mjs';
|
|
22
|
+
import '../../../chunk-KVDEROP6.mjs';
|
|
23
|
+
import '../../../chunk-YBJ56XJS.mjs';
|
|
24
|
+
import '../../../chunk-NPDZLYIF.mjs';
|
|
25
|
+
import '../../../chunk-EDAKJLNA.mjs';
|
|
26
|
+
import '../../../chunk-JWFBOPM6.mjs';
|
|
27
|
+
import '../../../chunk-5JCI2DEB.mjs';
|
|
28
|
+
import '../../../chunk-BZN2QHGP.mjs';
|
|
29
|
+
import '../../../chunk-OGJ6IIBW.mjs';
|
|
30
|
+
import '../../../chunk-ARRGOEFX.mjs';
|
|
31
|
+
import '../../../chunk-22ST6YPP.mjs';
|
|
32
|
+
import '../../../chunk-FFMT6OCO.mjs';
|
|
33
|
+
import '../../../chunk-7CMVDIOU.mjs';
|
|
34
|
+
import '../../../chunk-ADKLH73T.mjs';
|
|
35
|
+
import '../../../chunk-OXTFAWSK.mjs';
|
|
36
|
+
import '../../../chunk-R6Y3R7EW.mjs';
|
|
37
|
+
import '../../../chunk-XTVE4P3L.mjs';
|
|
38
|
+
import '../../../chunk-NKUYIWAP.mjs';
|
|
39
|
+
import '../../../chunk-XQQCGFYB.mjs';
|
|
40
|
+
import '../../../chunk-WH3C3Y7P.mjs';
|
|
41
|
+
import '../../../chunk-OWW3K55O.mjs';
|
|
42
|
+
import '../../../chunk-WA3OVISZ.mjs';
|
|
43
|
+
import '../../../chunk-C36VWQ7A.mjs';
|
|
44
|
+
import '../../../chunk-BETFQBM2.mjs';
|
|
45
|
+
import '../../../chunk-WRULPWHD.mjs';
|
|
46
|
+
import '../../../chunk-QS76E3TD.mjs';
|
|
47
|
+
import '../../../chunk-O2X6FF45.mjs';
|
|
48
|
+
import '../../../chunk-SSLTFJ3U.mjs';
|
|
49
|
+
import '../../../chunk-RQ3CKQOX.mjs';
|
|
50
|
+
|
|
51
|
+
// src/series/line/controller-svg/index.ts
|
|
52
|
+
var createLineRendererSvg = () => new LineRendererController({ renderSvg: renderLineSvg });
|
|
53
|
+
|
|
54
|
+
export { createLineRendererSvg };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LineRenderData, TipExtensionState, ComputedPoint, DualRangeFillResult, LineRenderProps, BoxArea, MultiLineConfig, DatasetRenderer } from '@primeui/chart-types';
|
|
2
|
+
export { renderLineSvg } from './svg/index.mjs';
|
|
3
|
+
export { renderLineCanvas } from './canvas/index.mjs';
|
|
4
|
+
|
|
5
|
+
/** Build an SVG path string through points with the given curve. */
|
|
6
|
+
declare function buildLinePath(points: ComputedPoint[], curve: string, tension: number): string;
|
|
7
|
+
/** Build an SVG area-fill path string. */
|
|
8
|
+
declare function buildFillPath(points: ComputedPoint[], curve: string, baselineY: number, tension: number): string;
|
|
9
|
+
/** Build an SVG stacked area-fill path string. */
|
|
10
|
+
declare function buildStackedFillPath(points: ComputedPoint[], curve: string, tension: number): string;
|
|
11
|
+
/** Mutate layout to animate the line tip toward its final position. */
|
|
12
|
+
declare function applyTipExtension(layout: LineRenderData, progress: number): TipExtensionState | null;
|
|
13
|
+
/** Undo the tip-extension mutation. */
|
|
14
|
+
declare function restoreTipExtension(layout: LineRenderData, state: TipExtensionState): void;
|
|
15
|
+
/** Build an SVG range-fill path string between two point series. */
|
|
16
|
+
declare function buildRangeFillPath(pointsA: ComputedPoint[], pointsB: ComputedPoint[], curve: string, tension?: number): string | null;
|
|
17
|
+
/** Build dual (above/below) range-fill paths between two point series. */
|
|
18
|
+
declare function buildDualRangeFillPaths(pointsA: ComputedPoint[], pointsB: ComputedPoint[], curve?: string, tension?: number): DualRangeFillResult | null;
|
|
19
|
+
/** Calculate line layout — scales, segments, path strings, markers. */
|
|
20
|
+
declare function calculateLineLayout<T = unknown>(props: LineRenderProps<T>, chartArea: BoxArea, config?: MultiLineConfig): Omit<LineRenderData, 'datasetIndex'>;
|
|
21
|
+
/** Hit test line — nearest point at (x,y) or null. */
|
|
22
|
+
declare function hitTestLine<T = unknown>(x: number, y: number, props: LineRenderProps<T>, layout: LineRenderData): number | null;
|
|
23
|
+
|
|
24
|
+
interface LinePathBuilder {
|
|
25
|
+
moveTo(x: number, y: number): void;
|
|
26
|
+
lineTo(x: number, y: number): void;
|
|
27
|
+
/** Cubic Bézier curve — SVG emits a `C` command, Canvas calls bezierCurveTo */
|
|
28
|
+
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
|
|
29
|
+
closePath(): void;
|
|
30
|
+
}
|
|
31
|
+
declare function createSvgLinePathBuilder(): LinePathBuilder & {
|
|
32
|
+
build(): string;
|
|
33
|
+
};
|
|
34
|
+
declare function createCanvasLinePathBuilder(ctx: CanvasRenderingContext2D): LinePathBuilder;
|
|
35
|
+
/**
|
|
36
|
+
* Step curves are directional: tracing reversed points with `step-after` produces the
|
|
37
|
+
* wrong corners. When tracing a reversed (right→left) edge, swap before↔after so the
|
|
38
|
+
* fill polygon matches what the forward line actually drew.
|
|
39
|
+
* `step` (center) and all other curves are symmetric under reversal — no change needed.
|
|
40
|
+
*/
|
|
41
|
+
declare function invertCurveForReverse(curve: string): string;
|
|
42
|
+
/** Dispatch to the appropriate curve algorithm */
|
|
43
|
+
declare function traceCurve(builder: LinePathBuilder, points: ComputedPoint[], curve: string, tension?: number): void;
|
|
44
|
+
/** Fill the shared scratch with `points` reversed, y replaced by `baseY` (fallback to current y). */
|
|
45
|
+
declare function reversedBaseEdge(points: ComputedPoint[]): ComputedPoint[];
|
|
46
|
+
|
|
47
|
+
declare const lineRenderer: DatasetRenderer<LineRenderProps, LineRenderData>;
|
|
48
|
+
|
|
49
|
+
export { applyTipExtension, buildDualRangeFillPaths, buildFillPath, buildLinePath, buildRangeFillPath, buildStackedFillPath, calculateLineLayout, createCanvasLinePathBuilder, createSvgLinePathBuilder, hitTestLine, invertCurveForReverse, lineRenderer, restoreTipExtension, reversedBaseEdge, traceCurve };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { lineRenderer } from '../../chunk-J65DBT4R.mjs';
|
|
2
|
+
export { renderLineSvg } from '../../chunk-3FFJEX4A.mjs';
|
|
3
|
+
export { renderLineCanvas } from '../../chunk-KQIFO5I3.mjs';
|
|
4
|
+
export { applyTipExtension, buildDualRangeFillPaths, buildFillPath, buildLinePath, buildRangeFillPath, buildStackedFillPath, calculateLineLayout, hitTestLine, restoreTipExtension } from '../../chunk-6HSEJLSR.mjs';
|
|
5
|
+
export { createCanvasLinePathBuilder, createSvgLinePathBuilder, invertCurveForReverse, reversedBaseEdge, traceCurve } from '../../chunk-HDFGCN2F.mjs';
|
|
6
|
+
import '../../chunk-PRDVPOZX.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,6 @@
|
|
|
1
|
+
import { LineRenderProps, LineRenderData, RenderContext, SvgNode } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/** Render a line series to an SVG node tree. */
|
|
4
|
+
declare function renderLineSvg<T = unknown>(props: LineRenderProps<T>, layout: LineRenderData, context: RenderContext): SvgNode;
|
|
5
|
+
|
|
6
|
+
export { renderLineSvg };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { renderLineSvg } from '../../../chunk-3FFJEX4A.mjs';
|
|
2
|
+
import '../../../chunk-PRDVPOZX.mjs';
|
|
3
|
+
import '../../../chunk-BZN2QHGP.mjs';
|
|
4
|
+
import '../../../chunk-OGJ6IIBW.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,8 @@
|
|
|
1
|
+
import { PieRenderProps, PieRenderData, RenderContext } from '@primeui/chart-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Render pie chart to Canvas
|
|
5
|
+
*/
|
|
6
|
+
declare function renderPieCanvas<T>(props: PieRenderProps<T>, layout: PieRenderData, ctx: CanvasRenderingContext2D, context: RenderContext): void;
|
|
7
|
+
|
|
8
|
+
export { renderPieCanvas };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { renderPieCanvas } from '../../../chunk-VWF57TS3.mjs';
|
|
2
|
+
import '../../../chunk-53HW45JB.mjs';
|
|
3
|
+
import '../../../chunk-LVMDQ4OJ.mjs';
|
|
4
|
+
import '../../../chunk-VGLSBZDN.mjs';
|
|
5
|
+
import '../../../chunk-BZN2QHGP.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';
|