@primeui/chart-core 0.0.1-alpha.1 → 1.0.0-rc.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.md +35 -0
- package/README.md +12 -0
- package/dist/animations/index.d.mts +1 -1
- package/dist/animations/index.mjs +19 -18
- package/dist/{annotation.utils-Bm0lOO1o.d.mts → annotation.utils-D-7ijAWO.d.mts} +22 -1
- package/dist/cartesian/index.d.mts +3 -2
- package/dist/cartesian/index.mjs +96 -93
- package/dist/{chunk-WPFUV7K3.mjs → chunks/chunk-2LLTN7T4.mjs} +23 -14
- package/dist/{chunk-RO4N6YFS.mjs → chunks/chunk-2T226WJI.mjs} +31 -14
- package/dist/{chunk-3FFJEX4A.mjs → chunks/chunk-3QQLETCJ.mjs} +13 -12
- package/dist/{chunk-JWFBOPM6.mjs → chunks/chunk-4N2XIMAB.mjs} +2 -2
- package/dist/{chunk-LVMDQ4OJ.mjs → chunks/chunk-4S3FOFCN.mjs} +2 -2
- package/dist/{chunk-XTVE4P3L.mjs → chunks/chunk-56MASQS2.mjs} +6 -2
- package/dist/{chunk-DTWTCFRG.mjs → chunks/chunk-5EQSFUBA.mjs} +41 -13
- package/dist/{chunk-KQIFO5I3.mjs → chunks/chunk-5QSTMSPW.mjs} +15 -10
- package/dist/{chunk-NKUYIWAP.mjs → chunks/chunk-6LUIVTNV.mjs} +6 -6
- package/dist/chunks/chunk-6MAO6I3E.mjs +6 -0
- package/dist/{chunk-DN6AXQYZ.mjs → chunks/chunk-72M66Y2U.mjs} +46 -41
- package/dist/{chunk-WFVOQ2QZ.mjs → chunks/chunk-77K3DEKL.mjs} +2 -2
- package/dist/{chunk-4C6EVJ54.mjs → chunks/chunk-7I2SAKHL.mjs} +7 -44
- package/dist/{chunk-6HSEJLSR.mjs → chunks/chunk-7I2SNJ2X.mjs} +35 -18
- package/dist/{chunk-66T4MRC5.mjs → chunks/chunk-7IKKWWRT.mjs} +4 -6
- package/dist/{chunk-BKP26M4K.mjs → chunks/chunk-7LZWQVTL.mjs} +43 -24
- package/dist/{chunk-NHRK5KU2.mjs → chunks/chunk-A5YBHYIS.mjs} +25 -17
- package/dist/{chunk-ZT2Z7ERM.mjs → chunks/chunk-AC5EAWIP.mjs} +12 -9
- package/dist/{chunk-ZTL2FQEW.mjs → chunks/chunk-AETETRB4.mjs} +24 -9
- package/dist/{chunk-NPDZLYIF.mjs → chunks/chunk-AJ24XDEK.mjs} +2 -2
- package/dist/chunks/chunk-ARVMVGWS.mjs +40 -0
- package/dist/{chunk-3IYSJ2U7.mjs → chunks/chunk-AYEAEAOV.mjs} +10 -7
- package/dist/{chunk-M7B3JF43.mjs → chunks/chunk-AZPJMIZE.mjs} +4 -3
- package/dist/{chunk-O2X6FF45.mjs → chunks/chunk-BDCNBS6W.mjs} +194 -168
- package/dist/{chunk-55Y3WI6S.mjs → chunks/chunk-BR4PSSPU.mjs} +6 -6
- package/dist/{chunk-TA4MVAEX.mjs → chunks/chunk-CFA2SUBF.mjs} +32 -24
- package/dist/{chunk-WH3C3Y7P.mjs → chunks/chunk-CKQ4DNNJ.mjs} +7 -18
- package/dist/chunks/chunk-DIJFKY6H.mjs +21 -0
- package/dist/{chunk-AUF4CHDP.mjs → chunks/chunk-DJOHDKTP.mjs} +18 -11
- package/dist/{chunk-3Z62EUJN.mjs → chunks/chunk-DKWZKYHF.mjs} +5 -5
- package/dist/{chunk-Y3L3D4GQ.mjs → chunks/chunk-DORUY7GR.mjs} +69 -34
- package/dist/chunks/chunk-DWBJKYLH.mjs +238 -0
- package/dist/{chunk-XQQCGFYB.mjs → chunks/chunk-EQLCJTM4.mjs} +1 -1
- package/dist/{chunk-VGLSBZDN.mjs → chunks/chunk-F2E2QCZM.mjs} +1 -1
- package/dist/{chunk-BZN2QHGP.mjs → chunks/chunk-F6AGZQDA.mjs} +4 -72
- package/dist/{chunk-ILUWFYGY.mjs → chunks/chunk-FNMLVZOA.mjs} +8 -8
- package/dist/{chunk-SXHVDJGF.mjs → chunks/chunk-FQAFGPW6.mjs} +6 -6
- package/dist/{chunk-N3TIT3OH.mjs → chunks/chunk-FSPE3M5E.mjs} +66 -43
- package/dist/{chunk-KNDZP446.mjs → chunks/chunk-FSWYYRPX.mjs} +5 -5
- package/dist/{chunk-KP2TWD4Z.mjs → chunks/chunk-FWNWV3H7.mjs} +1 -1
- package/dist/{chunk-WCG35U6M.mjs → chunks/chunk-FYVMRQFF.mjs} +35 -27
- package/dist/chunks/chunk-G3DIMENH.mjs +63 -0
- package/dist/{chunk-QQBXUDM4.mjs → chunks/chunk-G3DYNMWT.mjs} +20 -16
- package/dist/{chunk-J65DBT4R.mjs → chunks/chunk-GA6YZQYT.mjs} +3 -3
- package/dist/chunks/chunk-GAQLLQUM.mjs +20 -0
- package/dist/{chunk-TAHCOZHF.mjs → chunks/chunk-GN7VQCCH.mjs} +27 -30
- package/dist/{chunk-R6Y3R7EW.mjs → chunks/chunk-GOOBVFFH.mjs} +1 -1
- package/dist/chunks/chunk-GSW5OBEG.mjs +233 -0
- package/dist/{chunk-22ST6YPP.mjs → chunks/chunk-GTX6MLTG.mjs} +9 -9
- package/dist/{chunk-XUAASRXW.mjs → chunks/chunk-GWHRTGGC.mjs} +35 -27
- package/dist/{chunk-TQ6S34QZ.mjs → chunks/chunk-GXCLRRE5.mjs} +6 -6
- package/dist/{chunk-DP2IZNN3.mjs → chunks/chunk-HHBFQ6AI.mjs} +4 -3
- package/dist/{chunk-3OZLP4I4.mjs → chunks/chunk-HWT6UEYE.mjs} +14 -10
- package/dist/{chunk-X7T34OLW.mjs → chunks/chunk-I25SSZE3.mjs} +3 -3
- package/dist/{chunk-OGJ6IIBW.mjs → chunks/chunk-IFJPDARC.mjs} +21 -9
- package/dist/{chunk-CINXJIRR.mjs → chunks/chunk-ISU27QL2.mjs} +66 -6
- package/dist/{chunk-OXTFAWSK.mjs → chunks/chunk-J2WHJ73Y.mjs} +7 -2
- package/dist/{chunk-VN7CKCSE.mjs → chunks/chunk-JS47MSB2.mjs} +9 -1
- package/dist/{chunk-WYLILAOO.mjs → chunks/chunk-K44SD67H.mjs} +16 -7
- package/dist/{chunk-RQ3CKQOX.mjs → chunks/chunk-K7AGQTVK.mjs} +63 -3
- package/dist/{chunk-VVI3OBPJ.mjs → chunks/chunk-KCSMOAZO.mjs} +7 -9
- package/dist/{chunk-ARRGOEFX.mjs → chunks/chunk-L6GXEQOO.mjs} +7 -7
- package/dist/{chunk-7QQ6ETB4.mjs → chunks/chunk-LBNP5PJA.mjs} +14 -12
- package/dist/{chunk-AHYIS6EB.mjs → chunks/chunk-LC2ZEZWP.mjs} +7 -7
- package/dist/{chunk-3WEMHXZI.mjs → chunks/chunk-LTQH3LQJ.mjs} +2 -8
- package/dist/{chunk-OHGCZZPZ.mjs → chunks/chunk-M5PZVFY5.mjs} +57 -29
- package/dist/{chunk-A6ZQZFL2.mjs → chunks/chunk-NUHW3U7G.mjs} +14 -11
- package/dist/{chunk-QWQ6HY4I.mjs → chunks/chunk-O4BTKF5R.mjs} +9 -8
- package/dist/{chunk-WY4AURRE.mjs → chunks/chunk-P2Q4DYOS.mjs} +240 -83
- package/dist/{chunk-KVDEROP6.mjs → chunks/chunk-P563L7WL.mjs} +1 -1
- package/dist/{chunk-SDBPQ5CF.mjs → chunks/chunk-PJLFNUOW.mjs} +45 -30
- package/dist/{chunk-MTGMXRNF.mjs → chunks/chunk-PSDRVQSK.mjs} +7 -7
- package/dist/{chunk-6STOLMCA.mjs → chunks/chunk-QCBESCLG.mjs} +13 -12
- package/dist/{chunk-PRDVPOZX.mjs → chunks/chunk-QIYJUZ7I.mjs} +7 -2
- package/dist/{chunk-UPRXABX5.mjs → chunks/chunk-RH3OQ2VX.mjs} +6 -6
- package/dist/{chunk-QS76E3TD.mjs → chunks/chunk-RI32WIDX.mjs} +2 -2
- package/dist/{chunk-OWW3K55O.mjs → chunks/chunk-RIAPS5AW.mjs} +49 -7
- package/dist/{chunk-ERVQB2VZ.mjs → chunks/chunk-RJ3ZOZTS.mjs} +4 -4
- package/dist/{chunk-WFTX4AQJ.mjs → chunks/chunk-RKNL7UWZ.mjs} +19 -7
- package/dist/chunks/chunk-RLS3GMJ6.mjs +8 -0
- package/dist/{chunk-WRULPWHD.mjs → chunks/chunk-RVTEIKW5.mjs} +5 -5
- package/dist/{chunk-PLSDU3C2.mjs → chunks/chunk-RXQ22JQS.mjs} +67 -39
- package/dist/{chunk-FHTC2YDB.mjs → chunks/chunk-SVASYTK5.mjs} +70 -5
- package/dist/{chunk-ARB5T6MP.mjs → chunks/chunk-SWVOBJLG.mjs} +3 -100
- package/dist/{chunk-JGOVWSKH.mjs → chunks/chunk-TW3KLJVO.mjs} +37 -12
- package/dist/{chunk-RBLZRT5K.mjs → chunks/chunk-UF2TPGQB.mjs} +103 -15
- package/dist/{chunk-X4D7FKUS.mjs → chunks/chunk-UZWWYKL7.mjs} +2 -2
- package/dist/{chunk-LKC7MZKK.mjs → chunks/chunk-XECVYJE2.mjs} +16 -8
- package/dist/chunks/chunk-XMSAUIVL.mjs +1 -0
- package/dist/{chunk-J4RI2C2G.mjs → chunks/chunk-XPZTRMU2.mjs} +6 -6
- package/dist/{chunk-BABQKA6K.mjs → chunks/chunk-XXJRGDKE.mjs} +3 -3
- package/dist/{chunk-SALTGZFR.mjs → chunks/chunk-YVDVKLPR.mjs} +10 -9
- package/dist/circular/arc/index.mjs +3 -3
- package/dist/circular/index.d.mts +1 -1
- package/dist/circular/index.mjs +14 -13
- package/dist/controllers/index.mjs +113 -110
- package/dist/{datalabel.utils-CkjGeB8S.d.mts → datalabel.utils-CNRKHy7j.d.mts} +10 -1
- package/dist/{decimation.utils-CcvJVhI4.d.mts → decimation.utils-C0xpslz_.d.mts} +33 -2
- package/dist/geometry-BVWJedvw.d.mts +53 -0
- package/dist/index.d.mts +16 -17
- package/dist/index.mjs +113 -110
- package/dist/luminance-TvUgaQ91.d.mts +57 -0
- package/dist/orchestrator/index.d.mts +2 -2
- package/dist/orchestrator/index.mjs +36 -33
- package/dist/plugins/index.mjs +1 -1
- package/dist/{property-animations-D433wXzz.d.mts → property-animations-CI0zyp6V.d.mts} +6 -20
- package/dist/radial/index.mjs +40 -37
- package/dist/renderers/axis/index.mjs +9 -8
- package/dist/renderers/index.d.mts +8 -9
- package/dist/renderers/index.mjs +78 -75
- package/dist/renderers/navigator/index.d.mts +1 -1
- package/dist/renderers/navigator/index.mjs +10 -8
- package/dist/{ring.utils-DXvrxMkU.d.mts → ring.utils-aHt9Nqum.d.mts} +2 -7
- package/dist/{scale-KFv30jqZ.d.mts → scale-CFkPlyUe.d.mts} +2 -2
- package/dist/{scales-Drf8AIhL.d.mts → scales-BZzjlR4U.d.mts} +15 -1
- package/dist/series/bar/canvas/index.mjs +11 -10
- package/dist/series/bar/controller/index.d.mts +17 -0
- package/dist/series/bar/controller/index.mjs +47 -44
- package/dist/series/bar/controller-canvas/index.mjs +47 -44
- package/dist/series/bar/controller-svg/index.mjs +47 -44
- package/dist/series/bar/index.d.mts +2 -2
- package/dist/series/bar/index.mjs +16 -13
- package/dist/series/bar/svg/index.mjs +14 -11
- package/dist/series/candlestick/canvas/index.mjs +8 -8
- package/dist/series/candlestick/controller/index.d.mts +2 -0
- package/dist/series/candlestick/controller/index.mjs +43 -40
- package/dist/series/candlestick/controller-canvas/index.mjs +43 -40
- package/dist/series/candlestick/controller-svg/index.mjs +43 -40
- package/dist/series/candlestick/index.mjs +11 -10
- package/dist/series/candlestick/svg/index.mjs +8 -8
- package/dist/series/heatmap/canvas/index.mjs +9 -9
- package/dist/series/heatmap/controller/index.d.mts +9 -0
- package/dist/series/heatmap/controller/index.mjs +26 -23
- package/dist/series/heatmap/controller-canvas/index.mjs +26 -23
- package/dist/series/heatmap/controller-svg/index.mjs +26 -23
- package/dist/series/heatmap/index.mjs +14 -13
- package/dist/series/heatmap/svg/index.mjs +11 -10
- package/dist/series/line/canvas/index.mjs +9 -9
- package/dist/series/line/controller/index.d.mts +7 -0
- package/dist/series/line/controller/index.mjs +51 -47
- package/dist/series/line/controller-canvas/index.mjs +53 -49
- package/dist/series/line/controller-svg/index.mjs +53 -49
- package/dist/series/line/index.d.mts +1 -1
- package/dist/series/line/index.mjs +17 -13
- package/dist/series/line/svg/index.mjs +12 -9
- package/dist/series/pie/canvas/index.d.mts +12 -4
- package/dist/series/pie/canvas/index.mjs +15 -10
- package/dist/series/pie/controller/index.mjs +113 -110
- package/dist/series/pie/controller-canvas/index.mjs +113 -110
- package/dist/series/pie/controller-svg/index.mjs +113 -110
- package/dist/series/pie/index.d.mts +3 -56
- package/dist/series/pie/index.mjs +11 -15
- package/dist/series/pie/svg/index.d.mts +18 -4
- package/dist/series/pie/svg/index.mjs +10 -11
- package/dist/series/polar/canvas/index.mjs +7 -7
- package/dist/series/polar/controller/index.d.mts +9 -0
- package/dist/series/polar/controller/index.mjs +49 -46
- package/dist/series/polar/controller-canvas/index.mjs +50 -47
- package/dist/series/polar/controller-svg/index.mjs +50 -47
- package/dist/series/polar/index.d.mts +1 -1
- package/dist/series/polar/index.mjs +19 -16
- package/dist/series/polar/svg/index.mjs +11 -8
- package/dist/series/radar/canvas/index.mjs +8 -8
- package/dist/series/radar/controller/index.d.mts +11 -0
- package/dist/series/radar/controller/index.mjs +46 -43
- package/dist/series/radar/controller-canvas/index.mjs +49 -46
- package/dist/series/radar/controller-svg/index.mjs +49 -46
- package/dist/series/radar/index.d.mts +3 -3
- package/dist/series/radar/index.mjs +16 -13
- package/dist/series/radar/svg/index.mjs +12 -9
- package/dist/series/scatter/canvas/index.mjs +13 -11
- package/dist/series/scatter/controller/index.mjs +48 -44
- package/dist/series/scatter/controller-canvas/index.mjs +50 -46
- package/dist/series/scatter/controller-svg/index.mjs +50 -46
- package/dist/series/scatter/index.d.mts +1 -1
- package/dist/series/scatter/index.mjs +18 -14
- package/dist/series/scatter/svg/index.mjs +16 -12
- package/dist/series/treemap/canvas/index.mjs +10 -10
- package/dist/series/treemap/controller/index.mjs +23 -20
- package/dist/series/treemap/controller-canvas/index.mjs +23 -20
- package/dist/series/treemap/controller-svg/index.mjs +23 -20
- package/dist/series/treemap/index.d.mts +17 -9
- package/dist/series/treemap/index.mjs +12 -12
- package/dist/series/treemap/svg/index.mjs +9 -9
- package/dist/{stacking-CChuAcLN.d.mts → stacking-Dz1OBhzm.d.mts} +1 -1
- package/dist/sync/index.mjs +6 -5
- package/dist/{tooltip.renderer-D5wpSlBa.d.mts → tooltip.renderer-C3z-UKm4.d.mts} +4 -4
- package/dist/utils/color/index.d.mts +11 -53
- package/dist/utils/color/index.mjs +4 -4
- package/dist/utils/data/index.d.mts +2 -2
- package/dist/utils/data/index.mjs +7 -7
- package/dist/utils/export/index.mjs +6 -6
- package/dist/utils/index.d.mts +7 -7
- package/dist/utils/index.mjs +32 -29
- package/dist/utils/interaction/index.d.mts +1 -31
- package/dist/utils/interaction/index.mjs +12 -9
- package/dist/utils/layout/index.mjs +10 -10
- package/dist/utils/math/index.d.mts +1 -1
- package/dist/utils/math/index.mjs +1 -1
- package/dist/utils/render/index.mjs +3 -3
- package/dist/utils/specialized/index.d.mts +1 -1
- package/dist/utils/specialized/index.mjs +13 -15
- package/dist/utils/text/index.d.mts +1 -1
- package/dist/utils/text/index.mjs +9 -8
- package/dist/utils/theme/index.d.mts +6 -6
- package/dist/utils/theme/index.mjs +5 -5
- package/dist/utils/zoom/index.mjs +3 -3
- package/package.json +5 -10
- package/LICENSE +0 -23
- package/dist/canvas-D4vigq47.d.mts +0 -34
- package/dist/chunk-2QRS4YQ5.mjs +0 -18
- package/dist/chunk-53HW45JB.mjs +0 -102
- package/dist/chunk-B4FTADAZ.mjs +0 -561
- package/dist/chunk-IXOWSEHO.mjs +0 -114
- package/dist/chunk-VWF57TS3.mjs +0 -62
- package/dist/chunk-XIHBK5D3.mjs +0 -68
- package/dist/renderers/circular/index.d.mts +0 -13
- package/dist/renderers/circular/index.mjs +0 -13
- package/dist/{chunk-WA3OVISZ.mjs → chunks/chunk-4KQZXAHZ.mjs} +0 -0
- package/dist/{chunk-CHW4RKY3.mjs → chunks/chunk-576P5DBH.mjs} +0 -0
- package/dist/{chunk-EDAKJLNA.mjs → chunks/chunk-5WFF272M.mjs} +0 -0
- package/dist/{chunk-ADKLH73T.mjs → chunks/chunk-6XZ6U7GL.mjs} +0 -0
- package/dist/{chunk-2QK2KOBN.mjs → chunks/chunk-AOTUNMVD.mjs} +0 -0
- package/dist/{chunk-AGU3NG6D.mjs → chunks/chunk-AWMO5TS3.mjs} +0 -0
- package/dist/{chunk-SSLTFJ3U.mjs → chunks/chunk-BF7RP4A3.mjs} +132 -132
- /package/dist/{chunk-BETFQBM2.mjs → chunks/chunk-FML3QEEI.mjs} +0 -0
- /package/dist/{chunk-FFMT6OCO.mjs → chunks/chunk-FRVJH7ZG.mjs} +0 -0
- /package/dist/{chunk-HDFGCN2F.mjs → chunks/chunk-HBTCRORW.mjs} +0 -0
- /package/dist/{chunk-7CMVDIOU.mjs → chunks/chunk-HXDLOOCS.mjs} +0 -0
- /package/dist/{chunk-5JCI2DEB.mjs → chunks/chunk-JQVX6XFW.mjs} +0 -0
- /package/dist/{chunk-C36VWQ7A.mjs → chunks/chunk-KMKULH54.mjs} +0 -0
- /package/dist/{chunk-Q6PPVIHU.mjs → chunks/chunk-MT3OLVZC.mjs} +0 -0
- /package/dist/{chunk-WS64BZXT.mjs → chunks/chunk-OWVSSQZ4.mjs} +0 -0
- /package/dist/{chunk-EAMUNLRU.mjs → chunks/chunk-P2LG7GDM.mjs} +0 -0
- /package/dist/{chunk-IEGLX7VL.mjs → chunks/chunk-PXUXZADY.mjs} +0 -0
- /package/dist/{chunk-SANZPAJ4.mjs → chunks/chunk-SFUDXJKO.mjs} +0 -0
- /package/dist/{chunk-ZQFK6CAE.mjs → chunks/chunk-SJNUJM54.mjs} +0 -0
- /package/dist/{chunk-AP3UYWYT.mjs → chunks/chunk-SPU6BO3B.mjs} +0 -0
- /package/dist/{chunk-YBJ56XJS.mjs → chunks/chunk-T2UAEMHY.mjs} +0 -0
- /package/dist/{chunk-JO7VACY2.mjs → chunks/chunk-VADXCPQ4.mjs} +0 -0
- /package/dist/{chunk-FRST55HY.mjs → chunks/chunk-ZZCVDIU5.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cancelRaf, raf } from './chunk-
|
|
1
|
+
import { cancelRaf, raf } from './chunk-5WFF272M.mjs';
|
|
2
2
|
|
|
3
3
|
// src/animations/easing.ts
|
|
4
4
|
var linear = (t) => t;
|
|
@@ -57,12 +57,6 @@ function registerEasing(name, fn) {
|
|
|
57
57
|
function getEasing(name) {
|
|
58
58
|
return easingRegistry.get(name) ?? easeOutQuart;
|
|
59
59
|
}
|
|
60
|
-
function hasEasing(name) {
|
|
61
|
-
return easingRegistry.has(name);
|
|
62
|
-
}
|
|
63
|
-
function getEasingNames() {
|
|
64
|
-
return Array.from(easingRegistry.keys());
|
|
65
|
-
}
|
|
66
60
|
var easings = {
|
|
67
61
|
linear,
|
|
68
62
|
easeOutQuad,
|
|
@@ -195,4 +189,4 @@ function animate(options) {
|
|
|
195
189
|
};
|
|
196
190
|
}
|
|
197
191
|
|
|
198
|
-
export { AnimationController, animate, easeInBounce, easeInOutBounce, easeInOutCubic, easeInOutQuart, easeOutBack, easeOutBounce, easeOutCubic, easeOutElastic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easings, getEasing,
|
|
192
|
+
export { AnimationController, animate, easeInBounce, easeInOutBounce, easeInOutCubic, easeInOutQuart, easeOutBack, easeOutBounce, easeOutCubic, easeOutElastic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easings, getEasing, linear, parseAnimationConfig, registerEasing };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { calculatePolarLayout, hitTestPolar } from './chunk-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { renderResolvedLabels } from './chunk-
|
|
5
|
-
import { AnimatedScene, resolveAnimatedProps, POLAR_ANIMATABLE_PROPS } from './chunk-
|
|
6
|
-
import { reconcileSvgChildren } from './chunk-
|
|
7
|
-
import { parseAnimationConfig } from './chunk-
|
|
8
|
-
import { cancelRaf, raf } from './chunk-
|
|
9
|
-
import { buildAccessibilityRenderContext, generateSeriesDescription } from './chunk-
|
|
10
|
-
import { collectItems } from './chunk-
|
|
11
|
-
import { DEFAULT_HOVER_DIM_OPACITY, DEFAULT_HOVER_BRIGHTNESS } from './chunk-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { setAttr, createSvgGroup, materializeSvgNode } from './chunk-
|
|
1
|
+
import { calculatePolarLayout, hitTestPolar } from './chunk-FYVMRQFF.mjs';
|
|
2
|
+
import { resolveSharedRadialGrid } from './chunk-CFA2SUBF.mjs';
|
|
3
|
+
import { resolvePolarLabels } from './chunk-RH3OQ2VX.mjs';
|
|
4
|
+
import { renderResolvedLabels } from './chunk-G3DYNMWT.mjs';
|
|
5
|
+
import { AnimatedScene, resolveAnimatedProps, POLAR_ANIMATABLE_PROPS } from './chunk-JS47MSB2.mjs';
|
|
6
|
+
import { reconcileSvgChildren } from './chunk-FWNWV3H7.mjs';
|
|
7
|
+
import { parseAnimationConfig } from './chunk-LTQH3LQJ.mjs';
|
|
8
|
+
import { cancelRaf, raf } from './chunk-5WFF272M.mjs';
|
|
9
|
+
import { buildAccessibilityRenderContext, generateSeriesDescription } from './chunk-IFJPDARC.mjs';
|
|
10
|
+
import { collectItems } from './chunk-FRVJH7ZG.mjs';
|
|
11
|
+
import { DEFAULT_HOVER_DIM_OPACITY, DEFAULT_HOVER_BRIGHTNESS } from './chunk-6LUIVTNV.mjs';
|
|
12
|
+
import { defaultLightTheme, resolveSwatchColor, getDefaultColor } from './chunk-BDCNBS6W.mjs';
|
|
13
|
+
import { interpolateRadialGrid } from './chunk-CKQ4DNNJ.mjs';
|
|
14
|
+
import { setAttr, createSvgGroup, materializeSvgNode } from './chunk-BF7RP4A3.mjs';
|
|
15
15
|
|
|
16
16
|
// src/series/polar/controller/index.ts
|
|
17
17
|
var POLAR_BAR_REGISTRY = {
|
|
@@ -67,22 +67,28 @@ var PolarRendererController = class {
|
|
|
67
67
|
update(input) {
|
|
68
68
|
this.lastInput = input;
|
|
69
69
|
this.svgGroup = input.svgGroup ?? null;
|
|
70
|
-
const { datasets, datasetVisibility, chartArea, features, globalFont, sharedContext, yAxes } = input;
|
|
70
|
+
const { datasets, datasetVisibility, chartArea, features, globalFont, sharedContext, xAxes, yAxes } = input;
|
|
71
71
|
this._hasPolarDatasets = Array.from(datasets.values()).some((ds) => ds.type === "polar");
|
|
72
72
|
if (!this._hasPolarDatasets) {
|
|
73
73
|
this._layout = null;
|
|
74
74
|
this.lastRenderedLayout = null;
|
|
75
|
+
if (input.renderer === "svg" && this.svgGroup) {
|
|
76
|
+
while (this.svgGroup.firstChild) this.svgGroup.removeChild(this.svgGroup.firstChild);
|
|
77
|
+
}
|
|
75
78
|
return;
|
|
76
79
|
}
|
|
77
80
|
const sortedDatasets = Array.from(datasets.entries()).sort(([, a], [, b]) => a.order - b.order);
|
|
78
81
|
const polarEntries = collectItems(sortedDatasets, datasetVisibility).polar;
|
|
79
82
|
if (polarEntries.length === 0) {
|
|
80
83
|
this._layout = null;
|
|
84
|
+
if (input.renderer === "svg" && this.svgGroup) {
|
|
85
|
+
while (this.svgGroup.firstChild) this.svgGroup.removeChild(this.svgGroup.firstChild);
|
|
86
|
+
}
|
|
81
87
|
return;
|
|
82
88
|
}
|
|
83
89
|
const anyVisible = polarEntries.some((e) => e.visible);
|
|
84
90
|
if (!anyVisible) {
|
|
85
|
-
const liveCount = this._scene.
|
|
91
|
+
const liveCount = this._scene.elementCount;
|
|
86
92
|
if (liveCount === 0) {
|
|
87
93
|
this._layout = null;
|
|
88
94
|
this.lastRenderedLayout = null;
|
|
@@ -114,7 +120,7 @@ var PolarRendererController = class {
|
|
|
114
120
|
this._startAnimLoop();
|
|
115
121
|
} else {
|
|
116
122
|
this._scene.tick(performance.now());
|
|
117
|
-
if (this._scene.
|
|
123
|
+
if (this._scene.elementCount === 0) {
|
|
118
124
|
this._layout = null;
|
|
119
125
|
}
|
|
120
126
|
this._renderSceneFrame();
|
|
@@ -127,8 +133,10 @@ var PolarRendererController = class {
|
|
|
127
133
|
if (isStacked) {
|
|
128
134
|
stackConfig = { mode: stackingFeature?.mode === "percent" ? "percent" : "normal" };
|
|
129
135
|
}
|
|
136
|
+
const defaultXAxis = xAxes ? Array.from(xAxes.values())[0] : void 0;
|
|
137
|
+
const xAxisProps = defaultXAxis?.props;
|
|
130
138
|
const targetLayout = {
|
|
131
|
-
...calculatePolarLayout(polarEntries, chartArea, stackConfig, globalFont, sharedContext?.categories, sharedContext?.domain),
|
|
139
|
+
...calculatePolarLayout(polarEntries, chartArea, stackConfig, globalFont, sharedContext?.categories, sharedContext?.domain, xAxisProps?.showLabels !== false),
|
|
132
140
|
datasetIndex: 0
|
|
133
141
|
};
|
|
134
142
|
this._layout = targetLayout;
|
|
@@ -137,7 +145,10 @@ var PolarRendererController = class {
|
|
|
137
145
|
const fingerprint = targetLayout.bars.map((b) => `${polarBarKey(b)}:${b.value}:${Math.round(b.outerRadius)}:${Math.round(b.startAngle)}`).join("|") + `|dom:${targetLayout.domain[0]},${targetLayout.domain[1]}`;
|
|
138
146
|
const dataChanged = fingerprint !== this._lastFingerprint;
|
|
139
147
|
const shouldAnimate = animEnabled && duration > 0 && dataChanged;
|
|
140
|
-
if (!dataChanged)
|
|
148
|
+
if (!dataChanged) {
|
|
149
|
+
if (input.renderer === "canvas") input.requestRedraw?.();
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
141
152
|
const sceneTargets = /* @__PURE__ */ new Map();
|
|
142
153
|
for (const b of targetLayout.bars) {
|
|
143
154
|
sceneTargets.set(polarBarKey(b), b);
|
|
@@ -150,7 +161,8 @@ var PolarRendererController = class {
|
|
|
150
161
|
this._scene.diff(sceneTargets, opts);
|
|
151
162
|
this._lastFingerprint = fingerprint;
|
|
152
163
|
const tickCount = yAxes ? Array.from(yAxes.values())[0]?.props?.tickCount : void 0;
|
|
153
|
-
const
|
|
164
|
+
const targetInnerRadius = targetLayout.innerRadiusRatio * targetLayout.maxRadius;
|
|
165
|
+
const resolved = resolveSharedRadialGrid(targetLayout.grid, targetLayout.domain, targetLayout.rawDataMax, targetLayout.maxRadius, tickCount, targetInnerRadius);
|
|
154
166
|
const targetDomain = resolved.domain;
|
|
155
167
|
const prevSettled = this._lastSettledDomain;
|
|
156
168
|
const domainChanged = !prevSettled || prevSettled[0] !== targetDomain[0] || prevSettled[1] !== targetDomain[1];
|
|
@@ -161,6 +173,7 @@ var PolarRendererController = class {
|
|
|
161
173
|
toDomain: targetDomain,
|
|
162
174
|
targetGrid: { ...targetLayout.grid, levels: resolved.levelValues.length, levelValues: resolved.levelValues, levelRadii: resolved.levelRadii },
|
|
163
175
|
targetRadius: targetLayout.maxRadius,
|
|
176
|
+
targetInnerRadius,
|
|
164
177
|
startTime: -1,
|
|
165
178
|
duration,
|
|
166
179
|
easing
|
|
@@ -190,9 +203,22 @@ var PolarRendererController = class {
|
|
|
190
203
|
this.lastInput.requestRedraw?.();
|
|
191
204
|
}
|
|
192
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Drop toggled-off datasets' bars from a layout before hit-testing. Both the
|
|
208
|
+
* all-hidden path (which keeps `_layout` anchored with the last-toggled
|
|
209
|
+
* dataset's full-thickness bars) and the no-animation path (which leaves a
|
|
210
|
+
* stale `lastRenderedLayout`) can present a hidden series' bars with
|
|
211
|
+
* `hidden: false`, so gate on the authoritative `datasetVisibility` rather
|
|
212
|
+
* than the layout's own flags (mirrors the radar fix).
|
|
213
|
+
*/
|
|
214
|
+
_gateHidden(layout) {
|
|
215
|
+
const vis = this.lastInput?.datasetVisibility;
|
|
216
|
+
if (!vis) return layout;
|
|
217
|
+
return { ...layout, bars: layout.bars.filter((b) => vis.get(b.datasetId) !== false) };
|
|
218
|
+
}
|
|
193
219
|
hitTest(x, y) {
|
|
194
220
|
if (!this._layout) return null;
|
|
195
|
-
return hitTestPolar(x, y, this._layout, this.lastInput?.theme ?? defaultLightTheme);
|
|
221
|
+
return hitTestPolar(x, y, this._gateHidden(this._layout), this.lastInput?.theme ?? defaultLightTheme);
|
|
196
222
|
}
|
|
197
223
|
/**
|
|
198
224
|
* Shared-mode lookup: find the wedge under the cursor, then return all
|
|
@@ -200,8 +226,9 @@ var PolarRendererController = class {
|
|
|
200
226
|
* cartesian bar/line shared tooltip).
|
|
201
227
|
*/
|
|
202
228
|
findAllNearest(x, y) {
|
|
203
|
-
const
|
|
204
|
-
if (!
|
|
229
|
+
const raw = this.lastRenderedLayout ?? this._layout;
|
|
230
|
+
if (!raw) return null;
|
|
231
|
+
const layout = this._gateHidden(raw);
|
|
205
232
|
const primary = hitTestPolar(x, y, layout, this.lastInput?.theme ?? defaultLightTheme);
|
|
206
233
|
if (!primary) return null;
|
|
207
234
|
const label = layout.categories[primary.index] ?? primary.label;
|
|
@@ -214,12 +241,13 @@ var PolarRendererController = class {
|
|
|
214
241
|
datasetId: bar.datasetId,
|
|
215
242
|
name: bar.name,
|
|
216
243
|
label,
|
|
217
|
-
color: bar.color ?? getDefaultColor(bar.
|
|
244
|
+
color: bar.color ?? getDefaultColor(bar.colorIndex, this.lastInput?.theme ?? defaultLightTheme),
|
|
218
245
|
colorGradient: gradColor,
|
|
219
|
-
swatchColor: resolveSwatchColor({ color: bar.color ?? gradColor }, bar.
|
|
246
|
+
swatchColor: resolveSwatchColor({ color: bar.color ?? gradColor }, bar.colorIndex, void 0, this.lastInput?.theme),
|
|
220
247
|
value: bar.value,
|
|
221
|
-
|
|
222
|
-
|
|
248
|
+
// No pre-formatted value: the HTML tooltip formats the raw value via
|
|
249
|
+
// `buildTooltipContent` (locale-aware, 2dp). Polar has no crosshair, so
|
|
250
|
+
// `cursorFormattedValue` is unused.
|
|
223
251
|
snapPixel: bar.outerRadius
|
|
224
252
|
});
|
|
225
253
|
}
|
|
@@ -319,7 +347,7 @@ var PolarRendererController = class {
|
|
|
319
347
|
if (!this._layout) return null;
|
|
320
348
|
const bars = [];
|
|
321
349
|
const hasOverrides = this._propertyOverrides.size > 0;
|
|
322
|
-
for (const el of this._scene.
|
|
350
|
+
for (const el of this._scene.elementValues()) {
|
|
323
351
|
const base = el.current;
|
|
324
352
|
const overrides = hasOverrides ? this._propertyOverrides.get(base.datasetId) : void 0;
|
|
325
353
|
bars.push(overrides ? { ...base, ...overrides } : { ...base });
|
|
@@ -331,7 +359,7 @@ var PolarRendererController = class {
|
|
|
331
359
|
const elapsed = now - this._gridLerp.startTime;
|
|
332
360
|
const raw = Math.max(0, Math.min(1, elapsed / this._gridLerp.duration));
|
|
333
361
|
const p = this._gridLerp.easing(raw);
|
|
334
|
-
grid = interpolateRadialGrid(this._gridLerp.fromDomain, this._gridLerp.toDomain, this._gridLerp.targetGrid, this._gridLerp.targetRadius, p);
|
|
362
|
+
grid = interpolateRadialGrid(this._gridLerp.fromDomain, this._gridLerp.toDomain, this._gridLerp.targetGrid, this._gridLerp.targetRadius, p, this._gridLerp.targetInnerRadius);
|
|
335
363
|
gridAnimating = true;
|
|
336
364
|
if (raw >= 1) {
|
|
337
365
|
this._lastSettledDomain = this._gridLerp.toDomain;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { calculateRadiusAndCenter } from './chunk-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { calculateRadiusAndCenter } from './chunk-AJ24XDEK.mjs';
|
|
2
|
+
import { resolveRadialAccessors } from './chunk-6MAO6I3E.mjs';
|
|
3
|
+
import { measureText } from './chunk-56MASQS2.mjs';
|
|
4
|
+
import { DEFAULT_RADIAL_LABEL_FONT_SIZE, DEFAULT_GRID_LEVELS, resolveFontSize, resolveFontFamily, DEFAULT_RADAR_FILL_OPACITY, DEFAULT_LINE_WIDTH, DEFAULT_RADAR_HIT_RADIUS } from './chunk-6LUIVTNV.mjs';
|
|
5
|
+
import { buildColorIndexMap, isGradientColor, resolveSwatchColor, getPrimaryColor, getDefaultColor, batchResolveAccessor, FIELD_DEFAULTS } from './chunk-BDCNBS6W.mjs';
|
|
6
|
+
import { calculateNiceDomain, generateNiceTicks, toRad } from './chunk-K7AGQTVK.mjs';
|
|
6
7
|
|
|
7
8
|
// src/series/radar/geometry.ts
|
|
8
|
-
function calculateRadarLayout(datasets, chartArea, globalFont, sharedCategories, sharedDomain, perAxisDomains, referenceBoundaryValues, perSpokeDomains, tickCount) {
|
|
9
|
+
function calculateRadarLayout(datasets, chartArea, globalFont, sharedCategories, sharedDomain, perAxisDomains, referenceBoundaryValues, perSpokeDomains, tickCount, showCategoryLabels = true) {
|
|
9
10
|
const categories = sharedCategories ?? extractCategories(datasets);
|
|
10
11
|
const categoryCount = categories.length;
|
|
11
12
|
const angleStep = categoryCount > 0 ? 360 / categoryCount : 0;
|
|
@@ -50,7 +51,7 @@ function calculateRadarLayout(datasets, chartArea, globalFont, sharedCategories,
|
|
|
50
51
|
const resolvedLabelFontSize = resolveFontSize(DEFAULT_RADIAL_LABEL_FONT_SIZE, globalFont);
|
|
51
52
|
const resolvedFontFamily = resolveFontFamily(void 0, globalFont);
|
|
52
53
|
const labelPadding = measureText("Xg", resolvedLabelFontSize).height;
|
|
53
|
-
const labelMargins = calculateLabelMargins(categories, angleStep, labelPadding, resolvedLabelFontSize);
|
|
54
|
+
const labelMargins = showCategoryLabels ? calculateLabelMargins(categories, angleStep, labelPadding, resolvedLabelFontSize) : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
54
55
|
const adjustedArea = {
|
|
55
56
|
x: chartArea.x + labelMargins.left,
|
|
56
57
|
y: chartArea.y + labelMargins.top,
|
|
@@ -79,6 +80,7 @@ function calculateRadarLayout(datasets, chartArea, globalFont, sharedCategories,
|
|
|
79
80
|
}
|
|
80
81
|
const series = [];
|
|
81
82
|
const stackRunning = /* @__PURE__ */ new Map();
|
|
83
|
+
const colorIndexById = buildColorIndexMap(new Map(datasets.map((d) => [d.id, d])));
|
|
82
84
|
for (let si = 0; si < datasets.length; si++) {
|
|
83
85
|
const ds = datasets[si];
|
|
84
86
|
const gradientColor = ds.props.color && isGradientColor(ds.props.color) ? ds.props.color : void 0;
|
|
@@ -139,6 +141,7 @@ function calculateRadarLayout(datasets, chartArea, globalFont, sharedCategories,
|
|
|
139
141
|
basePoints: isStacked ? basePoints : void 0,
|
|
140
142
|
color,
|
|
141
143
|
seriesIdx: si,
|
|
144
|
+
colorIndex: colorIndexById.get(ds.id) ?? si,
|
|
142
145
|
gradientColor,
|
|
143
146
|
fillOpacity,
|
|
144
147
|
lineStrokeWidth: lineWidth,
|
|
@@ -182,9 +185,9 @@ function hitTestRadar(x, y, layout, theme) {
|
|
|
182
185
|
index: pi,
|
|
183
186
|
label: layout.categories[pi] ?? "",
|
|
184
187
|
value: pt.value,
|
|
185
|
-
color: sd.color ?? (sd.gradientColor ? getPrimaryColor(sd.gradientColor) : getDefaultColor(sd.
|
|
188
|
+
color: sd.color ?? (sd.gradientColor ? getPrimaryColor(sd.gradientColor) : getDefaultColor(sd.colorIndex, theme)),
|
|
186
189
|
colorGradient: sd.gradientColor,
|
|
187
|
-
swatchColor: resolveSwatchColor({ color: sd.color ?? sd.gradientColor }, sd.
|
|
190
|
+
swatchColor: resolveSwatchColor({ color: sd.color ?? sd.gradientColor }, sd.colorIndex, void 0, theme)
|
|
188
191
|
};
|
|
189
192
|
}
|
|
190
193
|
}
|
|
@@ -197,7 +200,7 @@ function extractCategories(datasets) {
|
|
|
197
200
|
for (const ds of datasets) {
|
|
198
201
|
const props = ds.props;
|
|
199
202
|
if (!props.data) continue;
|
|
200
|
-
const cats = batchResolveAccessor(props.
|
|
203
|
+
const cats = batchResolveAccessor(resolveRadialAccessors(props).angularField ?? FIELD_DEFAULTS.categoryField, props.data);
|
|
201
204
|
for (const cat of cats) {
|
|
202
205
|
const str = String(cat);
|
|
203
206
|
if (!seen.has(str)) {
|
|
@@ -210,7 +213,7 @@ function extractCategories(datasets) {
|
|
|
210
213
|
}
|
|
211
214
|
function resolveValues(props) {
|
|
212
215
|
if (!props.data) return [];
|
|
213
|
-
return batchResolveAccessor(props.
|
|
216
|
+
return batchResolveAccessor(resolveRadialAccessors(props).radialField ?? FIELD_DEFAULTS.valueField, props.data).map((v) => Number(v) || 0);
|
|
214
217
|
}
|
|
215
218
|
function computeRadialComboContext(radarDatasets, polarDatasets) {
|
|
216
219
|
const allEntries = [...radarDatasets, ...polarDatasets];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { measureTextWidth } from './chunk-
|
|
1
|
+
import { measureTextWidth } from './chunk-56MASQS2.mjs';
|
|
2
2
|
|
|
3
3
|
// src/cartesian/crosshair.ts
|
|
4
4
|
function computeCrosshairLayout(input) {
|
|
@@ -109,9 +109,10 @@ function computeCrosshairLayout(input) {
|
|
|
109
109
|
function computeSeriesLabels(hits, orientation, valueAxisPosition, plotArea, padH, badgeHeight, gap, fontSize) {
|
|
110
110
|
if (hits.length === 0) return [];
|
|
111
111
|
const raw = hits.map((hit) => {
|
|
112
|
-
const
|
|
112
|
+
const text = hit.formattedValue ?? "";
|
|
113
|
+
const textWidth = measureTextWidth(text, fontSize);
|
|
113
114
|
const badgeWidth = textWidth + padH * 2;
|
|
114
|
-
return { hit, badgeWidth, snapPixel: hit.snapPixel };
|
|
115
|
+
return { hit, text, badgeWidth, snapPixel: hit.snapPixel };
|
|
115
116
|
});
|
|
116
117
|
raw.sort((a, b) => a.snapPixel - b.snapPixel);
|
|
117
118
|
const posMin = orientation === "vertical" ? plotArea.y + badgeHeight / 2 : plotArea.x + badgeHeight / 2;
|
|
@@ -131,7 +132,7 @@ function computeSeriesLabels(hits, orientation, valueAxisPosition, plotArea, pad
|
|
|
131
132
|
}
|
|
132
133
|
const labels = [];
|
|
133
134
|
for (let i = 0; i < raw.length; i++) {
|
|
134
|
-
const { hit, badgeWidth } = raw[i];
|
|
135
|
+
const { hit, text, badgeWidth } = raw[i];
|
|
135
136
|
const pos = positions[i];
|
|
136
137
|
let label;
|
|
137
138
|
if (orientation === "vertical") {
|
|
@@ -142,7 +143,7 @@ function computeSeriesLabels(hits, orientation, valueAxisPosition, plotArea, pad
|
|
|
142
143
|
y: pos - badgeHeight / 2,
|
|
143
144
|
w: badgeWidth,
|
|
144
145
|
h: badgeHeight,
|
|
145
|
-
text
|
|
146
|
+
text,
|
|
146
147
|
textX: bx + badgeWidth / 2,
|
|
147
148
|
textY: pos,
|
|
148
149
|
color: hit.color
|
|
@@ -154,7 +155,7 @@ function computeSeriesLabels(hits, orientation, valueAxisPosition, plotArea, pad
|
|
|
154
155
|
y: pos - badgeHeight / 2,
|
|
155
156
|
w: badgeWidth,
|
|
156
157
|
h: badgeHeight,
|
|
157
|
-
text
|
|
158
|
+
text,
|
|
158
159
|
textX: bx + badgeWidth / 2,
|
|
159
160
|
textY: pos,
|
|
160
161
|
color: hit.color
|
|
@@ -168,7 +169,7 @@ function computeSeriesLabels(hits, orientation, valueAxisPosition, plotArea, pad
|
|
|
168
169
|
y: by,
|
|
169
170
|
w: badgeWidth,
|
|
170
171
|
h: badgeHeight,
|
|
171
|
-
text
|
|
172
|
+
text,
|
|
172
173
|
textX: pos,
|
|
173
174
|
textY: by + badgeHeight / 2,
|
|
174
175
|
color: hit.color
|
|
@@ -180,7 +181,7 @@ function computeSeriesLabels(hits, orientation, valueAxisPosition, plotArea, pad
|
|
|
180
181
|
y: by,
|
|
181
182
|
w: badgeWidth,
|
|
182
183
|
h: badgeHeight,
|
|
183
|
-
text
|
|
184
|
+
text,
|
|
184
185
|
textX: pos,
|
|
185
186
|
textY: by + badgeHeight / 2,
|
|
186
187
|
color: hit.color
|