boardplot 0.56.0 → 0.58.0
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/CHANGELOG.md +408 -0
- package/README.md +49 -15
- package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-VGSL4NJK.js} +1 -1
- package/dist/{ReaderBox-GLCKYXBU.js → ReaderBox-MHMXIDAJ.js} +8 -7
- package/dist/{annotateEngine-QVNAE3EH.js → annotateEngine-753KQBNN.js} +2 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-HZUAEMN5.js → chunk-2CQBBN7M.js} +4 -4
- package/dist/{chunk-K3VZ5QJK.js → chunk-2ETK5TSA.js} +4 -4
- package/dist/{chunk-HHXIVFAU.js → chunk-2ETSI2EL.js} +11 -9
- package/dist/{chunk-ECBUFKCP.js → chunk-2GRXHWRH.js} +3 -3
- package/dist/{chunk-ZVM5TFGR.js → chunk-2HII2B6S.js} +6 -2
- package/dist/{chunk-WBETBGSC.js → chunk-2LC2H3ZM.js} +1003 -907
- package/dist/chunk-2NX7EO7H.js +23 -0
- package/dist/{chunk-52WNCUIN.js → chunk-2QI2PK2O.js} +1 -1
- package/dist/{chunk-QWCLWFKC.js → chunk-2VKQQLP7.js} +180 -58
- package/dist/chunk-3DOVXJ6K.js +602 -0
- package/dist/{chunk-CAJ54IEP.js → chunk-3E6NLODZ.js} +1 -1
- package/dist/{chunk-MOS6WFWM.js → chunk-3HA4IJTO.js} +9 -9
- package/dist/{chunk-JCIXYOND.js → chunk-3HPPTQEW.js} +4 -4
- package/dist/{chunk-7VVHTOE7.js → chunk-3KT2647F.js} +4 -2
- package/dist/{chunk-O6ZTIDWB.js → chunk-3MFVJMP6.js} +3 -2
- package/dist/{chunk-KQCKK3LD.js → chunk-3P3FKPFN.js} +170 -73
- package/dist/{chunk-WI5VOSQX.js → chunk-3XAJSMYD.js} +2 -2
- package/dist/{chunk-CPGASWNN.js → chunk-42QKUSHJ.js} +13 -3
- package/dist/{chunk-QB5HV4IY.js → chunk-44JU3VOT.js} +7 -8
- package/dist/{chunk-BYCJ6TKI.js → chunk-44K75CYE.js} +3 -3
- package/dist/{chunk-MS7O3KDJ.js → chunk-4FNM4D57.js} +6 -6
- package/dist/{chunk-BVYIKLQ5.js → chunk-4ROZ4TFL.js} +1 -1
- package/dist/{chunk-3V62N3Z7.js → chunk-4VV3KUFT.js} +7 -8
- package/dist/{chunk-MAFPVR4G.js → chunk-54YO56IK.js} +10 -5
- package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
- package/dist/{chunk-6AMN7IKJ.js → chunk-5JEU6MWC.js} +49 -28
- package/dist/{chunk-NCLRZQR6.js → chunk-5JIB4VJA.js} +18 -10
- package/dist/{chunk-SXD3OYAR.js → chunk-5OP3E2ZD.js} +205 -96
- package/dist/{chunk-SS4YGK3E.js → chunk-5SLBD4BT.js} +72 -304
- package/dist/{chunk-XMP2DNLI.js → chunk-5SVGTQTW.js} +4 -4
- package/dist/chunk-5U567TYU.js +23 -0
- package/dist/chunk-5ZLF4S7X.js +40 -0
- package/dist/{chunk-T2YDWT54.js → chunk-5ZMTQATF.js} +261 -147
- package/dist/{chunk-WXJ5MHLH.js → chunk-62BDQTO6.js} +2 -2
- package/dist/chunk-64K3V4VN.js +25 -0
- package/dist/{chunk-BK6P6KMW.js → chunk-67YJJJIB.js} +1 -1
- package/dist/{chunk-32LLDRPI.js → chunk-6DJNFT2K.js} +42 -32
- package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
- package/dist/{chunk-7STMIK2X.js → chunk-6JFQCVNN.js} +4 -4
- package/dist/chunk-6JXBLQJ2.js +32 -0
- package/dist/{chunk-5TWY3ZIC.js → chunk-6XPV6M3Q.js} +5 -5
- package/dist/{chunk-MPO5TVGF.js → chunk-6ZDSEITW.js} +3 -3
- package/dist/{chunk-75WIUG2W.js → chunk-72HVDLMT.js} +172 -78
- package/dist/chunk-75NU5RLX.js +24 -0
- package/dist/chunk-76GPN6AT.js +72 -0
- package/dist/chunk-7BQK2UDV.js +13 -0
- package/dist/{chunk-CF4NMRN7.js → chunk-7CAYRPJV.js} +45 -25
- package/dist/{chunk-U3A6FMSI.js → chunk-7GWWBHVQ.js} +7 -7
- package/dist/{chunk-CHAS5A5B.js → chunk-7NYUFMLJ.js} +149 -86
- package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
- package/dist/chunk-A65B23JK.js +113 -0
- package/dist/{chunk-4KMZAK6J.js → chunk-A7R6FUS6.js} +4 -4
- package/dist/{chunk-E2ZUBP4Q.js → chunk-AEVGUOPB.js} +7 -8
- package/dist/chunk-AHIK2N72.js +53 -0
- package/dist/{chunk-KLB2QC24.js → chunk-AICO24HJ.js} +5 -2
- package/dist/{chunk-7KSUMFBK.js → chunk-AJGSCVVW.js} +5 -1
- package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
- package/dist/{chunk-E7V3OHQQ.js → chunk-AN2V2LC4.js} +37 -22
- package/dist/{chunk-JIEVDGAF.js → chunk-AOFUA5XP.js} +1 -1
- package/dist/chunk-B5A7X2BA.js +44 -0
- package/dist/{chunk-2HTYGMMG.js → chunk-BCMEGJRX.js} +2 -2
- package/dist/{chunk-KD5GOR2K.js → chunk-BDIKWR45.js} +124 -69
- package/dist/{chunk-FNRPQIQE.js → chunk-BG6AIWAK.js} +4 -6
- package/dist/{chunk-ZMPH2OC4.js → chunk-BOT6W3VB.js} +7 -8
- package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
- package/dist/{chunk-2DOEZ5QY.js → chunk-BZ67BJBH.js} +11 -10
- package/dist/{chunk-UBCVBBJJ.js → chunk-C47POAC5.js} +4 -3
- package/dist/{chunk-O7REHICC.js → chunk-C5OBPO4Z.js} +36 -28
- package/dist/{chunk-IGNBQT23.js → chunk-CCAAI56H.js} +121 -10
- package/dist/{chunk-RPIKNMZA.js → chunk-CDUR3KWV.js} +7 -2
- package/dist/{chunk-MZACASZY.js → chunk-CMPHT2LS.js} +14 -2
- package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
- package/dist/{chunk-IVRYF7QA.js → chunk-CR5FP5SF.js} +1 -1
- package/dist/{chunk-DD6RVD3S.js → chunk-D2TQX7UJ.js} +5 -1
- package/dist/{chunk-VVXKFU72.js → chunk-DEANHDXU.js} +62 -41
- package/dist/{chunk-GM3EGUYW.js → chunk-DHGE46UK.js} +1 -1
- package/dist/{chunk-UZTQUPTB.js → chunk-DIHX6NUB.js} +5 -5
- package/dist/{chunk-MD6DCQMA.js → chunk-DILQ34NW.js} +37 -37
- package/dist/{chunk-YMTXTQCN.js → chunk-DJKRYJP7.js} +6 -6
- package/dist/{chunk-JCAGVAB3.js → chunk-DKLC6QLF.js} +1200 -21
- package/dist/{chunk-SRAV6FPB.js → chunk-DNHTMCUP.js} +3 -3
- package/dist/{chunk-CKGSGRP7.js → chunk-DORE2RHL.js} +21 -5
- package/dist/{chunk-SMHZXHHD.js → chunk-DZYTXZNS.js} +15 -5
- package/dist/chunk-E262NRFP.js +39 -0
- package/dist/{chunk-V5JQQMFQ.js → chunk-E5YF236N.js} +4 -1
- package/dist/{chunk-IGJ2G5C6.js → chunk-EBUK7HJP.js} +6 -6
- package/dist/{chunk-ZL6IHMOW.js → chunk-ECBHC272.js} +198 -119
- package/dist/{chunk-SA46CNMS.js → chunk-ED7GLWTF.js} +4 -1
- package/dist/chunk-EFW43JQJ.js +24 -0
- package/dist/{chunk-5P2TTHBZ.js → chunk-EHRRHSPV.js} +2 -2
- package/dist/{chunk-JXBZIJCG.js → chunk-EILNJQMN.js} +32 -12
- package/dist/{chunk-GELSK76Y.js → chunk-ERDKMZ7O.js} +3 -3
- package/dist/{chunk-T2CYNDYU.js → chunk-ETRAPN5G.js} +366 -130
- package/dist/{chunk-JEUL777U.js → chunk-ETUKDEGL.js} +21 -12
- package/dist/chunk-F2ET5ZTT.js +49 -0
- package/dist/{chunk-2YO4WRJN.js → chunk-F3XOBFS4.js} +40 -29
- package/dist/{chunk-SPSGUFTI.js → chunk-FB6X7QHA.js} +1 -1
- package/dist/{chunk-5PPQIF4D.js → chunk-FGW54I23.js} +7 -8
- package/dist/{chunk-JTC5SEAQ.js → chunk-FP5B5XIL.js} +7 -3
- package/dist/{chunk-RJGCYGC3.js → chunk-FRHQGA5Q.js} +86 -250
- package/dist/{chunk-YZZLIYPA.js → chunk-FRR7BJ3B.js} +5 -1
- package/dist/{chunk-4DZFR52I.js → chunk-FVWHEM2N.js} +7 -5
- package/dist/{chunk-YPYD6OJ3.js → chunk-FWSMENKH.js} +2 -2
- package/dist/{chunk-YYJORENB.js → chunk-FWTUGNSF.js} +8 -8
- package/dist/{chunk-GIHH6VC2.js → chunk-FZKDZQ6U.js} +10 -6
- package/dist/{chunk-S7NRL66K.js → chunk-G4FF6G3I.js} +26 -17
- package/dist/{chunk-PQLAZEQV.js → chunk-GB6BZSTL.js} +248 -92
- package/dist/chunk-GCIHRRDJ.js +24 -0
- package/dist/{chunk-X3KCQEYZ.js → chunk-GHCU6OSE.js} +9 -1
- package/dist/chunk-GKDUIDU6.js +138 -0
- package/dist/chunk-GO66OCN7.js +24 -0
- package/dist/chunk-GOFS336W.js +24 -0
- package/dist/{chunk-AGDDH6XY.js → chunk-GQYT7G4F.js} +5 -1
- package/dist/{chunk-WN3HEU3P.js → chunk-GUTLXO7Q.js} +140 -89
- package/dist/chunk-H3VICNTN.js +47 -0
- package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
- package/dist/{chunk-CB4CERXZ.js → chunk-HBQHSZ6S.js} +11 -2
- package/dist/chunk-HTQGJQZN.js +124 -0
- package/dist/{chunk-F77TMAUY.js → chunk-HUQRO6VF.js} +39 -36
- package/dist/{chunk-4KQHKPB3.js → chunk-I5VDW2XZ.js} +543 -509
- package/dist/{chunk-43GGVT7W.js → chunk-I5VNHDPR.js} +11 -4
- package/dist/{chunk-4LTN7SND.js → chunk-IDXYHDQY.js} +1 -1
- package/dist/{chunk-Y54LU4CU.js → chunk-IIWZJ5ZM.js} +1 -1
- package/dist/{chunk-FMDNJ6PC.js → chunk-IPBOREIY.js} +2 -2
- package/dist/chunk-IU335UO7.js +27 -0
- package/dist/{chunk-JVZTKQFS.js → chunk-IVDTP6SV.js} +9 -5
- package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
- package/dist/{chunk-EIL3KHAL.js → chunk-J4QRB6DQ.js} +5 -5
- package/dist/{chunk-3465633G.js → chunk-JCMGKQVS.js} +3 -3
- package/dist/{chunk-YK2KWNTU.js → chunk-JM7UTLF3.js} +28 -14
- package/dist/{chunk-CXETOLPX.js → chunk-JNDWRV34.js} +4 -4
- package/dist/{chunk-DLUNQHFO.js → chunk-JSRQTDZZ.js} +26 -24
- package/dist/{chunk-WTQAG2OT.js → chunk-JT3UTEWZ.js} +8 -3
- package/dist/{chunk-GQT2SY2S.js → chunk-JUYRDZSV.js} +291 -151
- package/dist/{chunk-LKMFMNQX.js → chunk-JVGL2SCN.js} +1 -1
- package/dist/{chunk-4JC3SE4G.js → chunk-JY4LTPOV.js} +1 -1
- package/dist/chunk-K7XPTQBJ.js +267 -0
- package/dist/{chunk-P4SMC4BY.js → chunk-KGBUXMFP.js} +120 -86
- package/dist/{chunk-XC5IRUEL.js → chunk-KIE5V3DA.js} +2 -2
- package/dist/{chunk-RT66UTLJ.js → chunk-KU4PCG4W.js} +2 -2
- package/dist/{chunk-VPL3JYC6.js → chunk-KVBLTAO7.js} +52 -10
- package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
- package/dist/{chunk-PJBEJR2U.js → chunk-KWIP5YRA.js} +24 -7
- package/dist/{chunk-JYBT2JNY.js → chunk-LE3LSEUL.js} +27 -2
- package/dist/{chunk-R2IKOLBK.js → chunk-LG6M2JTH.js} +3 -3
- package/dist/{chunk-DF3XEFQ7.js → chunk-LIE2WSB4.js} +21 -18
- package/dist/{chunk-Z55DXFWS.js → chunk-LJDATBPB.js} +26 -16
- package/dist/{chunk-KLIZXSBK.js → chunk-LMMS675D.js} +10 -9
- package/dist/{chunk-MRAP2UVV.js → chunk-LPKGZ664.js} +286 -35
- package/dist/{chunk-JFFREZGT.js → chunk-LPMSGO7L.js} +6 -2
- package/dist/chunk-LQWINE7K.js +211 -0
- package/dist/{chunk-6MJUW5R5.js → chunk-MKMMQDIY.js} +139 -71
- package/dist/{chunk-F5BYLT3M.js → chunk-MQ4IEDM5.js} +462 -138
- package/dist/{chunk-QGFKSDQO.js → chunk-MRM4KJ2O.js} +2 -2
- package/dist/{chunk-ETMHDCEH.js → chunk-MX2OZHIT.js} +102 -42
- package/dist/{chunk-6EYTD777.js → chunk-MXUPMGRY.js} +2 -2
- package/dist/{chunk-2FKEF2AC.js → chunk-NHU26HQ7.js} +58 -35
- package/dist/{chunk-KBJMLXNW.js → chunk-NQVJ4FPY.js} +161 -78
- package/dist/chunk-NZ7FX3AE.js +65 -0
- package/dist/chunk-OALBVELJ.js +23 -0
- package/dist/{chunk-5S3JQ5AT.js → chunk-OGZ4UPYK.js} +183 -137
- package/dist/{chunk-6WHWXCHJ.js → chunk-OMNB27GM.js} +7 -3
- package/dist/{chunk-EGGDPDYJ.js → chunk-OO63YP35.js} +1 -1
- package/dist/{chunk-ZYQYX66L.js → chunk-OPYDTW5Q.js} +6 -6
- package/dist/{chunk-A2GAWGVJ.js → chunk-OSJN7KDS.js} +68 -39
- package/dist/{chunk-RMC4OONA.js → chunk-OSJXIW6I.js} +1030 -1123
- package/dist/{chunk-X23SZHV5.js → chunk-OVVE42P4.js} +6 -6
- package/dist/{chunk-CCJP6QZO.js → chunk-OZA7HA6L.js} +1 -1
- package/dist/chunk-OZLKEBCD.js +54 -0
- package/dist/{chunk-TE4M52AA.js → chunk-P6DEFCMQ.js} +18 -2
- package/dist/{chunk-AMR4SUAN.js → chunk-PDTIQL3B.js} +6 -6
- package/dist/{chunk-BIVL764T.js → chunk-PJ5BYZPN.js} +2 -2
- package/dist/{chunk-BISJK67O.js → chunk-PK7Z7WRJ.js} +98 -46
- package/dist/{chunk-7VMEM3LN.js → chunk-PL6NWB5U.js} +178 -113
- package/dist/chunk-PMT75APP.js +94 -0
- package/dist/chunk-PP6A4X55.js +11 -0
- package/dist/{chunk-I7H5DU34.js → chunk-PPCH3PLO.js} +25 -13
- package/dist/{chunk-BIGQKCU7.js → chunk-PPE6S7WU.js} +42 -24
- package/dist/{chunk-2NSQIPAA.js → chunk-PT7KSIEO.js} +23 -36
- package/dist/{chunk-KZJ5VM6E.js → chunk-PZ3TQFSY.js} +15 -1
- package/dist/{chunk-ZJFJ2IKQ.js → chunk-QAUGRVRU.js} +122 -23
- package/dist/{chunk-BTDGWHGJ.js → chunk-QMFWZG2P.js} +39 -19
- package/dist/{chunk-L6YVK6VC.js → chunk-QZGGCE45.js} +2 -2
- package/dist/{chunk-67QSW5RW.js → chunk-R2RJQ3BM.js} +4 -4
- package/dist/{chunk-ZY72LSQK.js → chunk-R7HBIQ63.js} +102 -61
- package/dist/{chunk-4JHMCXOB.js → chunk-RBNDZLYS.js} +77 -36
- package/dist/chunk-RCSY4CT4.js +2170 -0
- package/dist/{chunk-NGA7ICG4.js → chunk-RDJ3ZU6O.js} +16 -13
- package/dist/{chunk-2NN676RI.js → chunk-RHQRPJHS.js} +7 -8
- package/dist/chunk-RI6XQKWJ.js +26 -0
- package/dist/{chunk-YOOHNQ3L.js → chunk-RJICOOB3.js} +18 -8
- package/dist/{chunk-5DTCOOLU.js → chunk-RLAVNCQJ.js} +2 -2
- package/dist/{chunk-CYKXROFG.js → chunk-ROPPWJQB.js} +23 -12
- package/dist/{chunk-54ROMBU7.js → chunk-SELOV32X.js} +105 -50
- package/dist/{chunk-TUW5IYGA.js → chunk-SQI4NWTQ.js} +9 -9
- package/dist/{chunk-ZEYBI47P.js → chunk-SRJ74CMG.js} +11 -3
- package/dist/{chunk-NHC2ADGI.js → chunk-STWOURLG.js} +253 -144
- package/dist/chunk-SWMFXSVW.js +23 -0
- package/dist/chunk-SXAZDIGM.js +84 -0
- package/dist/{chunk-EMFUZKYK.js → chunk-SZ5VGWDY.js} +3 -3
- package/dist/{chunk-R5MEBBAA.js → chunk-T26G23RS.js} +442 -119
- package/dist/{chunk-QHRE2M6V.js → chunk-T2L5H2WW.js} +4 -3
- package/dist/chunk-T7GPIJ4L.js +89 -0
- package/dist/{chunk-MJPXHCBW.js → chunk-TAEB3RU6.js} +5 -5
- package/dist/{chunk-V7F4F6JA.js → chunk-TBDIMTRD.js} +37 -16
- package/dist/{chunk-63Y3ROZ7.js → chunk-TFFPEWNP.js} +102 -64
- package/dist/{chunk-EZZ533MH.js → chunk-TMEUK2WS.js} +6 -2
- package/dist/{chunk-37PKNVLS.js → chunk-TVOMGNFQ.js} +1 -1
- package/dist/{chunk-HJRNBKIT.js → chunk-TX5FSNAU.js} +436 -30
- package/dist/{chunk-V634AXDM.js → chunk-U52PNFPX.js} +1 -1
- package/dist/{chunk-QLANK3VN.js → chunk-U74AWJ3X.js} +6 -6
- package/dist/chunk-UC7LBW7N.js +26 -0
- package/dist/{chunk-PZ46S2SY.js → chunk-UCKUAKYQ.js} +2 -2
- package/dist/{chunk-KF7HD3EH.js → chunk-UCYL3YA7.js} +77 -55
- package/dist/{chunk-HOU2MZHC.js → chunk-UD2GI3CS.js} +11 -4
- package/dist/{chunk-SNQ7D5R7.js → chunk-UIHGGWES.js} +51 -11
- package/dist/{chunk-LGNJCPFP.js → chunk-ULQIC76A.js} +10 -13
- package/dist/{chunk-KTHFHD6C.js → chunk-UY34DDUM.js} +11 -6
- package/dist/{chunk-6QDMRPXI.js → chunk-UYMFLWM6.js} +215 -258
- package/dist/{chunk-KDSYZLF6.js → chunk-V5IFI3FV.js} +8 -1
- package/dist/{chunk-JTFKRDDA.js → chunk-V7FV66KL.js} +1 -1
- package/dist/{chunk-27OIGDRK.js → chunk-V7NUJEJE.js} +1 -1
- package/dist/{chunk-CCDXK5NA.js → chunk-VESSIKBG.js} +8 -3
- package/dist/{chunk-QSMGZOT5.js → chunk-VRFJAF3R.js} +7 -8
- package/dist/chunk-VS2R3OGN.js +34 -0
- package/dist/{chunk-RLMC5CUP.js → chunk-VS5B4J2D.js} +7 -8
- package/dist/{chunk-7M2GK7XQ.js → chunk-W4R6SGU3.js} +252 -121
- package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
- package/dist/{chunk-7DAH2E4T.js → chunk-WFBN2HXR.js} +2 -2
- package/dist/{chunk-DLDDRXAI.js → chunk-WJS6SAWA.js} +296 -145
- package/dist/{chunk-WWGPTEQB.js → chunk-WQYNKF33.js} +73 -22
- package/dist/{chunk-64LJDGJH.js → chunk-WUP6C4ZD.js} +4 -2
- package/dist/{chunk-F2EVCJ4U.js → chunk-X24WAHHV.js} +87 -43
- package/dist/{chunk-OJ5CQV7H.js → chunk-X3UCQPVV.js} +209 -96
- package/dist/{chunk-7FKY6YWU.js → chunk-X46PSAJ7.js} +6 -6
- package/dist/{chunk-H3IBJQ5A.js → chunk-XD5XB22R.js} +2 -2
- package/dist/chunk-XDIAQEYK.js +28 -0
- package/dist/{chunk-7PPMT5EJ.js → chunk-XFPNYHX3.js} +372 -105
- package/dist/{chunk-FCECYJVA.js → chunk-XIBVAKCO.js} +1 -1
- package/dist/{chunk-OG2YUVBW.js → chunk-XMX4PCFL.js} +8 -3
- package/dist/{chunk-2NRHD2G7.js → chunk-XRRG4MBM.js} +12 -4
- package/dist/{chunk-FNMH5WEY.js → chunk-XTFO6D4L.js} +1 -1
- package/dist/chunk-XWRI3N5O.js +70 -0
- package/dist/{chunk-ZKJ5L35C.js → chunk-XXPLPSOE.js} +36 -25
- package/dist/{chunk-XQMYQ4TN.js → chunk-XZXZNI7A.js} +1 -1
- package/dist/{chunk-E555EDOQ.js → chunk-YEJZ2OYS.js} +490 -182
- package/dist/chunk-YGZEG3JV.js +123 -0
- package/dist/{chunk-F6OLHND5.js → chunk-Z3WQXVFV.js} +2 -2
- package/dist/{chunk-FFJGC2DX.js → chunk-Z6DUNKFU.js} +173 -40
- package/dist/{chunk-N5HN5QGH.js → chunk-Z6H5ED2I.js} +1 -1
- package/dist/{chunk-7Q37C6GZ.js → chunk-ZBOOMLHD.js} +1 -1
- package/dist/{chunk-MOK3ZS6P.js → chunk-ZDJ7C64T.js} +1 -1
- package/dist/{chunk-GLQ3KCTY.js → chunk-ZGZLEUKM.js} +7 -8
- package/dist/{chunk-YHD2FZFP.js → chunk-ZHRGX225.js} +6 -6
- package/dist/{chunk-76Q7E3TM.js → chunk-ZIVCPXXL.js} +510 -646
- package/dist/{chunk-BSATR6ZO.js → chunk-ZNRSYS76.js} +21 -3
- package/dist/{chunk-DMAMWUYY.js → chunk-ZSLTSCTI.js} +5 -5
- package/dist/{chunk-IGVAWAOK.js → chunk-ZSYFQSPF.js} +43 -9
- package/dist/cli/index.js +8 -3
- package/dist/{core-7Y5BZZON.js → core-43GLGBOY.js} +8 -1
- package/dist/{core-7S3XMW5O.js → core-5GI3ERXO.js} +4 -1
- package/dist/{core-K3JX5WPM.js → core-5L7TMK7I.js} +6 -1
- package/dist/{core-LB5M7XL4.js → core-7TO4OVY5.js} +6 -1
- package/dist/{core-ILPXXC2Z.js → core-BJVENHFQ.js} +7 -1
- package/dist/{core-JDFUZFRH.js → core-BX4MFWKC.js} +6 -1
- package/dist/{core-XW7UJFJZ.js → core-C3KXTOIZ.js} +7 -1
- package/dist/{core-WJNK7F2J.js → core-C5Y6BFLL.js} +7 -1
- package/dist/{core-WZ4CHVYL.js → core-CLUSJ2SK.js} +5 -1
- package/dist/{core-TCSW24N6.js → core-E3IN2VVH.js} +5 -1
- package/dist/{core-MU4ALRR7.js → core-FD67NQOV.js} +6 -1
- package/dist/{core-YMXYUGF5.js → core-FDKMLRAK.js} +5 -1
- package/dist/{core-VKZSQFRG.js → core-FL6Z3VVX.js} +5 -1
- package/dist/{core-5UF44NDI.js → core-JC7JUFPY.js} +8 -1
- package/dist/{core-RR2CAZC5.js → core-JF33TADA.js} +8 -1
- package/dist/{core-4RR6VSXM.js → core-JH32ZAKM.js} +4 -1
- package/dist/{core-G3LXHW73.js → core-JYYZPPQV.js} +7 -1
- package/dist/{core-4HFVG4CP.js → core-KJTKCV4U.js} +4 -1
- package/dist/{core-GSILPKUR.js → core-LCQPE5Y6.js} +8 -1
- package/dist/{core-GLOZY6Z7.js → core-LHVGWE54.js} +6 -1
- package/dist/{core-J2JD5ODO.js → core-OVSNBOCE.js} +9 -1
- package/dist/{core-BLHEJ5OK.js → core-PPEC236B.js} +5 -1
- package/dist/{core-ZLSQHZ3I.js → core-QTJZDK5H.js} +5 -1
- package/dist/{core-TKZZZ6UW.js → core-R3YZCOUZ.js} +7 -1
- package/dist/{core-HTD5RHE7.js → core-RIBW5XU4.js} +7 -1
- package/dist/{core-AR2T32Y3.js → core-RJFILBWL.js} +8 -1
- package/dist/{core-A5AKUB7H.js → core-RWSXEKTE.js} +4 -1
- package/dist/{core-DD62MWEW.js → core-SOPPZLEH.js} +5 -1
- package/dist/{core-HDNWVLJW.js → core-TBUZCXLX.js} +5 -1
- package/dist/{core-BOG33BFD.js → core-TZ5QLTAX.js} +5 -1
- package/dist/{core-H5HO2CED.js → core-U7E5W4MY.js} +3 -1
- package/dist/{core-QPSAYRFT.js → core-UBNVSL44.js} +7 -1
- package/dist/{core-E2XOSHPR.js → core-UDRD4WIU.js} +6 -1
- package/dist/{core-DFZMOO7E.js → core-UVJZ4HY2.js} +7 -1
- package/dist/{core-LGJZUP6H.js → core-X7WWYQH4.js} +8 -1
- package/dist/{core-BBNY2BX4.js → core-XP56X47I.js} +5 -1
- package/dist/{core-3KLQSYWB.js → core-XQG54CYG.js} +6 -1
- package/dist/{dataTable-CNDRVGA5.js → dataTable-U7W4I6IF.js} +15 -2
- package/dist/{engine-FVEIM3WV.js → engine-O5V26MGR.js} +32 -19
- package/dist/fixtures.js +4 -1
- package/dist/flags-BVLSAXT3.js +10 -0
- package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
- package/dist/fonts.js +1 -1
- package/dist/geo/dach.js +1 -1
- package/dist/geo/de-states.js +1 -1
- package/dist/geo/eu27.js +1 -1
- package/dist/geo/europe.js +1 -1
- package/dist/geo/index.js +2 -2
- package/dist/geo/us-states.js +1 -1
- package/dist/geo/world.js +1 -1
- package/dist/index.js +41 -22
- package/dist/{main-THU6VIVU.js → main-35GS47XC.js} +68 -123
- package/dist/mcp/server.js +131 -118
- package/dist/react/bar.js +10 -1
- package/dist/react/bartable.js +10 -1
- package/dist/react/box.js +8 -1
- package/dist/react/bullet.js +10 -1
- package/dist/react/butterfly.js +10 -1
- package/dist/react/choropleth.js +10 -1
- package/dist/react/cohort.js +11 -1
- package/dist/react/column.js +10 -1
- package/dist/react/combo.js +10 -1
- package/dist/react/creative.js +11 -1
- package/dist/react/diagram.js +10 -1
- package/dist/react/dimswitch.js +11 -1
- package/dist/react/dot.js +9 -1
- package/dist/react/export.js +36 -18
- package/dist/react/funnel.js +9 -1
- package/dist/react/gantt.js +9 -1
- package/dist/react/grid.js +10 -1
- package/dist/react/heatmap.js +9 -1
- package/dist/react/histogram.js +11 -1
- package/dist/react/index.js +101 -85
- package/dist/react/kpi.js +10 -1
- package/dist/react/likert.js +11 -1
- package/dist/react/line.js +9 -1
- package/dist/react/mekko.js +10 -1
- package/dist/react/pareto.js +11 -1
- package/dist/react/pie.js +9 -1
- package/dist/react/prepare.js +49 -21
- package/dist/react/pvm.js +12 -1
- package/dist/react/pyramid.js +10 -1
- package/dist/react/sankey.js +10 -1
- package/dist/react/scatter.js +8 -1
- package/dist/react/slope.js +10 -1
- package/dist/react/sparkline.js +10 -1
- package/dist/react/spec.js +24 -14
- package/dist/react/status.js +9 -1
- package/dist/react/story.js +5 -2
- package/dist/react/table.js +9 -1
- package/dist/react/theme.js +10 -3
- package/dist/react/tilemap.js +9 -1
- package/dist/react/treemap.js +9 -1
- package/dist/react/variance.js +10 -1
- package/dist/react/waffle.js +9 -1
- package/dist/react/waterfall.js +11 -1
- package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
- package/dist/rows.js +3 -2
- package/dist/{rowsModule-LI6KOS46.js → rowsModule-H2S6WW4D.js} +2 -1
- package/dist/{schema-CGQID64D.js → schema-2R32F6AW.js} +1 -1
- package/dist/{schema-H2EC4GAQ.js → schema-2TPGJGVR.js} +1 -1
- package/dist/{schema-THXXFY6I.js → schema-47BG2TZA.js} +1 -3
- package/dist/{schema-AMT7P7KB.js → schema-56MOEOVR.js} +1 -1
- package/dist/{schema-GNTKL5DN.js → schema-5MSR4LNN.js} +1 -1
- package/dist/{schema-5ZTGVQAJ.js → schema-5RIYEWE6.js} +1 -1
- package/dist/{schema-LOQ3AFC7.js → schema-A26ZNGTZ.js} +1 -3
- package/dist/{schema-MMVPMJEF.js → schema-ALBF6V7Y.js} +1 -3
- package/dist/{schema-BKUFZLLI.js → schema-BA6WP5YZ.js} +1 -1
- package/dist/{schema-PQZWO3BP.js → schema-CBL2SMVR.js} +1 -3
- package/dist/{schema-BBTXTWYI.js → schema-CWKGLDSR.js} +1 -3
- package/dist/{schema-5KDEQBBT.js → schema-DBIQFL56.js} +1 -1
- package/dist/{schema-KPEPBGAX.js → schema-DL7V6NN2.js} +1 -1
- package/dist/{schema-PL3EU6EQ.js → schema-DUVJMFKQ.js} +4 -2
- package/dist/{schema-L5U4OROI.js → schema-ECJERHKF.js} +2 -1
- package/dist/{schema-YLE4XXQQ.js → schema-EDSEKZDJ.js} +1 -1
- package/dist/{schema-HH5HOORE.js → schema-ESR6ZIK4.js} +1 -3
- package/dist/{schema-5DUTAVO7.js → schema-F7TWGLRZ.js} +1 -3
- package/dist/{schema-B2GCEYXD.js → schema-FGB6IGZM.js} +1 -3
- package/dist/{schema-7NSV542V.js → schema-FKGGTM4Z.js} +2 -1
- package/dist/{schema-72EEMYS3.js → schema-FU2AFIEE.js} +1 -1
- package/dist/{schema-QORUB6EK.js → schema-JNJFCYBM.js} +18 -1
- package/dist/{schema-JH57NFXJ.js → schema-JYZ4RF6S.js} +2 -1
- package/dist/{schema-25INXAMY.js → schema-K7F6TEDK.js} +1 -2
- package/dist/{schema-OU35XA3Z.js → schema-KAK6DZX4.js} +1 -1
- package/dist/{schema-R5Y6NVBH.js → schema-MOKWIGF7.js} +1 -1
- package/dist/{schema-ZQSIR5UC.js → schema-MQT6BMNK.js} +1 -3
- package/dist/{schema-FDFQKIO5.js → schema-MR3BPPQR.js} +1 -1
- package/dist/{schema-VYECMPON.js → schema-OPXZYIW7.js} +1 -3
- package/dist/{schema-ZEVJMFLV.js → schema-PV7JGX5H.js} +1 -1
- package/dist/{schema-QPOBZUAR.js → schema-PWPQF5RC.js} +1 -1
- package/dist/{schema-GN6GAIU5.js → schema-PYQEUC5P.js} +1 -3
- package/dist/{schema-M5JBHQIV.js → schema-QPIC5MAG.js} +9 -2
- package/dist/{schema-QCIE6M2P.js → schema-R42VXFIS.js} +1 -1
- package/dist/{schema-J7TNCZIP.js → schema-TVUJNEX7.js} +1 -1
- package/dist/{schema-AXRDF6ND.js → schema-Y4TI2T3T.js} +1 -1
- package/dist/{schema-ZG6ZKFRZ.js → schema-ZU2EU2VP.js} +1 -1
- package/dist/{specValidation-VHLGDEME.js → specValidation-2NHJT7TQ.js} +4 -1
- package/dist/theme.js +7 -2
- package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
- package/dist/types/core/annotate.d.ts +27 -2
- package/dist/types/core/annotateArms.d.ts +3 -1
- package/dist/types/core/annotateTargets.d.ts +4 -0
- package/dist/types/core/annotationOrigin.d.ts +13 -0
- package/dist/types/core/axis.d.ts +2 -2
- package/dist/types/core/charts/band/stacks.d.ts +7 -1
- package/dist/types/core/charts/bartable/types.d.ts +14 -1
- package/dist/types/core/charts/box/types.d.ts +3 -1
- package/dist/types/core/charts/choropleth/layout.d.ts +1 -5
- package/dist/types/core/charts/choropleth/types.d.ts +19 -0
- package/dist/types/core/charts/cohort/types.d.ts +16 -3
- package/dist/types/core/charts/column/model.d.ts +13 -0
- package/dist/types/core/charts/combo/layout.d.ts +7 -0
- package/dist/types/core/charts/creative/types.d.ts +21 -0
- package/dist/types/core/charts/dimswitch/compile.d.ts +15 -2
- package/dist/types/core/charts/dimswitch/types.d.ts +24 -1
- package/dist/types/core/charts/gantt/calendar.d.ts +24 -0
- package/dist/types/core/charts/gantt/columns.d.ts +56 -0
- package/dist/types/core/charts/gantt/layout.d.ts +8 -2
- package/dist/types/core/charts/gantt/model.d.ts +296 -0
- package/dist/types/core/charts/grid/metricStack.d.ts +9 -0
- package/dist/types/core/charts/grid/metricStackSchema.d.ts +13 -0
- package/dist/types/core/charts/grid/normalize.d.ts +5 -0
- package/dist/types/core/charts/grid/schema.d.ts +2 -2
- package/dist/types/core/charts/histogram/types.d.ts +8 -0
- package/dist/types/core/charts/likert/layout.d.ts +10 -8
- package/dist/types/core/charts/pareto/layout.d.ts +2 -0
- package/dist/types/core/charts/pvm/types.d.ts +10 -1
- package/dist/types/core/charts/pyramid/types.d.ts +3 -1
- package/dist/types/core/charts/sankey/types.d.ts +5 -1
- package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
- package/dist/types/core/charts/scatter/model.d.ts +5 -0
- package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
- package/dist/types/core/charts/status/layout.d.ts +3 -0
- package/dist/types/core/charts/table/resolve.d.ts +22 -3
- package/dist/types/core/charts/table/view.d.ts +24 -1
- package/dist/types/core/claims/browser.d.ts +2 -0
- package/dist/types/core/claims/ids.d.ts +38 -0
- package/dist/types/core/deferred.d.ts +1 -0
- package/dist/types/core/doc/diagnostics.d.ts +3 -2
- package/dist/types/core/footer.d.ts +2 -0
- package/dist/types/core/formatSpec.d.ts +43 -14
- package/dist/types/core/frame.d.ts +26 -59
- package/dist/types/core/frameText.d.ts +203 -0
- package/dist/types/core/geo/types.d.ts +2 -0
- package/dist/types/core/geometry.d.ts +3 -1
- package/dist/types/core/label/categoryRow.d.ts +19 -2
- package/dist/types/core/label/solver.d.ts +23 -2
- package/dist/types/core/normalize/shared.d.ts +14 -2
- package/dist/types/core/notes.d.ts +15 -2
- package/dist/types/core/reading.d.ts +12 -1
- package/dist/types/core/registry.d.ts +4 -5
- package/dist/types/core/request.d.ts +7 -1
- package/dist/types/core/schema/capability.d.ts +32 -7
- package/dist/types/core/schema/generatedColumns.d.ts +168 -0
- package/dist/types/core/seriesIdentity.d.ts +4 -1
- package/dist/types/core/sizing.d.ts +32 -1
- package/dist/types/core/structureCounts.d.ts +3 -1
- package/dist/types/core/text.d.ts +16 -0
- package/dist/types/core/theme.d.ts +33 -4
- package/dist/types/core/themeGeometry.d.ts +9 -0
- package/dist/types/core/themeRules.d.ts +2 -0
- package/dist/types/core/timeAxis.d.ts +6 -1
- package/dist/types/core/types/annotations.d.ts +74 -4
- package/dist/types/core/types/diagram.d.ts +7 -0
- package/dist/types/core/types/options.d.ts +118 -15
- package/dist/types/core/types/scene.d.ts +30 -2
- package/dist/types/core/types/table.d.ts +27 -3
- package/dist/types/core/types/theme.d.ts +23 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/react/TableChart.d.ts +5 -0
- package/dist/types/react/barrelCharts.d.ts +16 -5
- package/dist/types/react/charts/butterfly.d.ts +2 -2
- package/dist/types/react/charts/dot.d.ts +7 -1
- package/dist/types/react/charts/pareto.d.ts +4 -1
- package/dist/types/react/charts/variance.d.ts +3 -1
- package/dist/types/react/hover/labelCard.d.ts +11 -2
- package/dist/types/react/prepare.d.ts +7 -1
- package/dist/types/theme.d.ts +2 -0
- package/dist/validate.js +23 -6
- package/docs/TELEMETRY.md +2 -2
- package/docs/manual.md +283 -65
- package/docs/reference/bar.md +15 -4
- package/docs/reference/bartable.md +17 -2
- package/docs/reference/box.md +15 -4
- package/docs/reference/bullet.md +21 -6
- package/docs/reference/butterfly.md +17 -6
- package/docs/reference/choropleth.md +16 -5
- package/docs/reference/cohort.md +25 -5
- package/docs/reference/column.md +19 -4
- package/docs/reference/combo.md +11 -5
- package/docs/reference/creative.md +17 -8
- package/docs/reference/diagram.md +6 -1
- package/docs/reference/dimswitch.md +71 -118
- package/docs/reference/dot.md +16 -7
- package/docs/reference/fixtures.md +94 -1
- package/docs/reference/funnel.md +14 -5
- package/docs/reference/gantt.md +17 -16
- package/docs/reference/grid.md +13 -3
- package/docs/reference/heatmap.md +16 -6
- package/docs/reference/histogram.md +2 -2
- package/docs/reference/kpi.md +5 -1
- package/docs/reference/likert.md +17 -4
- package/docs/reference/line.md +18 -5
- package/docs/reference/mekko.md +10 -5
- package/docs/reference/options.md +20 -15
- package/docs/reference/pareto.md +9 -5
- package/docs/reference/pie.md +9 -5
- package/docs/reference/pvm.md +16 -6
- package/docs/reference/pyramid.md +14 -4
- package/docs/reference/react.md +6 -7
- package/docs/reference/sankey.md +7 -3
- package/docs/reference/scatter.md +8 -4
- package/docs/reference/slope.md +15 -5
- package/docs/reference/sparkline.md +1 -1
- package/docs/reference/status.md +7 -1
- package/docs/reference/table.md +41 -110
- package/docs/reference/theme.md +12 -4
- package/docs/reference/tilemap.md +2 -4
- package/docs/reference/treemap.md +1 -1
- package/docs/reference/variance.md +12 -6
- package/docs/reference/waffle.md +1 -1
- package/docs/reference/warnings.md +1077 -0
- package/docs/reference/waterfall.md +20 -5
- package/docs/use-cases.md +25 -13
- package/llms.txt +19 -6
- package/package.json +18 -3
- package/dist/chunk-6364WO5D.js +0 -47
- package/dist/chunk-DQ7YMQVX.js +0 -26
- package/dist/chunk-EBB4PYBN.js +0 -24
- package/dist/chunk-FG5L2LUK.js +0 -89
- package/dist/chunk-IFQN4GKK.js +0 -1852
- package/dist/chunk-IRXVV65V.js +0 -24
- package/dist/chunk-JGFHNAHS.js +0 -22
- package/dist/chunk-JHWYG7V5.js +0 -24
- package/dist/chunk-M4SPKUZE.js +0 -7
- package/dist/chunk-O36WX56O.js +0 -13
- package/dist/chunk-QJWLNP64.js +0 -24
- package/dist/chunk-QZIHKQRH.js +0 -26
- package/dist/chunk-SE7MJ2LQ.js +0 -24
- package/dist/chunk-TXBO2LWM.js +0 -25
- package/dist/chunk-UPTXFTKH.js +0 -25
- package/dist/chunk-UREXN6WG.js +0 -25
- package/dist/chunk-UZLR25BW.js +0 -24
- package/dist/chunk-WIVFIVFZ.js +0 -27
- package/dist/chunk-WZL4EEBS.js +0 -11
- package/dist/chunk-XHRUXZD7.js +0 -28
- package/dist/chunk-ZWNRLIFT.js +0 -24
|
@@ -1,41 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
matrixTracks,
|
|
3
|
+
nameTrackRefusals,
|
|
4
|
+
overrideIgnored,
|
|
5
|
+
widthCapped,
|
|
6
|
+
widthFloored
|
|
7
|
+
} from "./chunk-YGZEG3JV.js";
|
|
4
8
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
marginBracketLayout
|
|
10
|
+
} from "./chunk-FGW54I23.js";
|
|
7
11
|
import {
|
|
8
12
|
runAnnotatePass
|
|
9
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FP5B5XIL.js";
|
|
10
14
|
import {
|
|
11
15
|
rowLabelBand
|
|
12
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-J4QRB6DQ.js";
|
|
13
17
|
import {
|
|
14
18
|
GUTTER_MAX_SHARE,
|
|
15
19
|
fittedLabel,
|
|
16
20
|
gutterBudget,
|
|
17
21
|
stepDownFont
|
|
18
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6ZDSEITW.js";
|
|
19
23
|
import {
|
|
20
24
|
chartTheme
|
|
21
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WFBN2HXR.js";
|
|
26
|
+
import {
|
|
27
|
+
labelOn
|
|
28
|
+
} from "./chunk-TMEUK2WS.js";
|
|
22
29
|
import {
|
|
23
30
|
structureCount
|
|
24
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KW4JXWHO.js";
|
|
25
32
|
import {
|
|
26
33
|
NAMED_COLUMN_STATES,
|
|
27
34
|
NAMED_STATE_PATTERN
|
|
28
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-62BDQTO6.js";
|
|
29
36
|
import {
|
|
30
37
|
headInk,
|
|
31
38
|
plainInk
|
|
32
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FB6X7QHA.js";
|
|
33
40
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
41
|
+
generatedIdWarnings
|
|
42
|
+
} from "./chunk-SXAZDIGM.js";
|
|
36
43
|
import {
|
|
37
44
|
HARD_MINIMUM,
|
|
38
45
|
MONTH_START,
|
|
46
|
+
NARROW_FORM,
|
|
39
47
|
capPitch,
|
|
40
48
|
categoryLineAlign,
|
|
41
49
|
heightOmitted,
|
|
@@ -45,8 +53,9 @@ import {
|
|
|
45
53
|
planCategoryRow,
|
|
46
54
|
rotatedClaimRect,
|
|
47
55
|
rowDrivenHeight,
|
|
48
|
-
rowSizing
|
|
49
|
-
|
|
56
|
+
rowSizing,
|
|
57
|
+
sideKeyOff
|
|
58
|
+
} from "./chunk-ETRAPN5G.js";
|
|
50
59
|
import {
|
|
51
60
|
DEFAULT_NOTE_LIMIT,
|
|
52
61
|
HIDDEN_LABEL_LEAD,
|
|
@@ -54,8 +63,6 @@ import {
|
|
|
54
63
|
authoredFootnoteCount,
|
|
55
64
|
authoredNotes,
|
|
56
65
|
categoryLabelsAndMarks,
|
|
57
|
-
cleanFloat,
|
|
58
|
-
createOccupiedIndex,
|
|
59
66
|
frameTextOptions,
|
|
60
67
|
labelCtx,
|
|
61
68
|
labelsToNodes,
|
|
@@ -63,14 +70,18 @@ import {
|
|
|
63
70
|
legendRequired,
|
|
64
71
|
normalizeLegendOption,
|
|
65
72
|
plotHeightAfter,
|
|
66
|
-
|
|
73
|
+
requestClaims,
|
|
67
74
|
solveFrame,
|
|
68
75
|
solveLabels,
|
|
69
|
-
valueNoteLine
|
|
70
|
-
|
|
76
|
+
valueNoteLine,
|
|
77
|
+
withUnprintedClaims
|
|
78
|
+
} from "./chunk-I5VDW2XZ.js";
|
|
71
79
|
import {
|
|
72
80
|
disclosureNote
|
|
73
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-DZYTXZNS.js";
|
|
82
|
+
import {
|
|
83
|
+
emptyIdRecord
|
|
84
|
+
} from "./chunk-LINZPU5D.js";
|
|
74
85
|
import {
|
|
75
86
|
AUTOMATIC_FORMAT,
|
|
76
87
|
defaultFormatSpec,
|
|
@@ -81,7 +92,7 @@ import {
|
|
|
81
92
|
rasterDecimals,
|
|
82
93
|
seriesRasterFormatter,
|
|
83
94
|
specUnitKind
|
|
84
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
85
96
|
import {
|
|
86
97
|
NOT_AVAILABLE,
|
|
87
98
|
chartStrings,
|
|
@@ -100,18 +111,22 @@ import {
|
|
|
100
111
|
arrowHeadPath,
|
|
101
112
|
arrowShaftEnd,
|
|
102
113
|
canvasMargin,
|
|
114
|
+
classStepWidth,
|
|
115
|
+
cleanFloat,
|
|
103
116
|
colorblindPaint,
|
|
117
|
+
createOccupiedIndex,
|
|
104
118
|
emphasisWeight,
|
|
105
119
|
harveyWedgePath,
|
|
106
120
|
paintColor,
|
|
107
121
|
panelTypeClass,
|
|
108
122
|
readerFloorPx,
|
|
109
123
|
resolveSemanticPaletteTheme,
|
|
124
|
+
round2,
|
|
110
125
|
semanticPalettePaint,
|
|
111
126
|
sequentialShare,
|
|
112
127
|
strokeToken,
|
|
113
128
|
textScaleOf
|
|
114
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-TX5FSNAU.js";
|
|
115
130
|
import {
|
|
116
131
|
DEFAULT_TARGET,
|
|
117
132
|
NormalizeError,
|
|
@@ -120,16 +135,16 @@ import {
|
|
|
120
135
|
normalizeSeriesValues,
|
|
121
136
|
resolveHighlight,
|
|
122
137
|
resolveSize
|
|
123
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-RJICOOB3.js";
|
|
139
|
+
import {
|
|
140
|
+
defaultMeasurer,
|
|
141
|
+
wrapText
|
|
142
|
+
} from "./chunk-UIHGGWES.js";
|
|
124
143
|
import {
|
|
125
144
|
maxOf,
|
|
126
145
|
minOf,
|
|
127
146
|
pushAll
|
|
128
147
|
} from "./chunk-WYJEOMNY.js";
|
|
129
|
-
import {
|
|
130
|
-
defaultMeasurer,
|
|
131
|
-
wrapText
|
|
132
|
-
} from "./chunk-SNQ7D5R7.js";
|
|
133
148
|
|
|
134
149
|
// src/core/strings/heatmap.ts
|
|
135
150
|
var EN = {
|
|
@@ -157,7 +172,9 @@ var EN = {
|
|
|
157
172
|
heatmapTopValuesNote: "Values shown in the largest circles.",
|
|
158
173
|
// The callout under a value matrix whose story value has no room in its cell ("Aug low").
|
|
159
174
|
heatmapLeadLow: "{v1} low",
|
|
160
|
-
heatmapLeadHigh: "{v1} high"
|
|
175
|
+
heatmapLeadHigh: "{v1} high",
|
|
176
|
+
blankCells: "Blank cells: {v1}.",
|
|
177
|
+
blankNoData: "Blank cells: no data."
|
|
161
178
|
}, DE = {
|
|
162
179
|
// reader-facing wording linked only by its consumers.
|
|
163
180
|
noData: "Keine Daten",
|
|
@@ -182,7 +199,9 @@ var EN = {
|
|
|
182
199
|
// The note under a bubble matrix that prints values in its largest circles only.
|
|
183
200
|
heatmapTopValuesNote: "Werte stehen in den gr\xF6\xDFten Kreisen.",
|
|
184
201
|
heatmapLeadLow: "{v1} Tief",
|
|
185
|
-
heatmapLeadHigh: "{v1} Hoch"
|
|
202
|
+
heatmapLeadHigh: "{v1} Hoch",
|
|
203
|
+
blankCells: "Leere Zellen: {v1}.",
|
|
204
|
+
blankNoData: "Leere Zellen: keine Daten."
|
|
186
205
|
}, { chartString } = chartStrings(EN, DE);
|
|
187
206
|
|
|
188
207
|
// src/core/charts/heatmap/layout.ts
|
|
@@ -195,22 +214,24 @@ function readableDecimals(range) {
|
|
|
195
214
|
for (; d < 6 && range * 10 ** d < 10; ) d++;
|
|
196
215
|
return d;
|
|
197
216
|
}
|
|
198
|
-
var HARVEY_ROW = 42, HARVEY_ROW_CARD = 36, HARVEY_LIST_ROW = 27, HARVEY_LIST_CELL = 28, HARVEY_HEADER_GAP = 8, HARVEY_BOTTOM_GAP = 12, BASE_CELL_GAP = 2, VALUE_CELL_GAP = 1.5, VALUE_ROW_CARD = 22, VALUE_ROW_NARROW = 26, VALUE_ROW_WIDE = 32.5, VALUE_KEY_GAP = 8, UPRIGHT_TIER_PITCH = 44, ROW_BAND_GAP = 8, HEADER_GAP = 4, CALLOUT_SEAT = 16, CARET_ROOM = 8, NO_DATA_PAINT = { token: "grid" }, BRACKET_CLEAR = 6, TRACK_ROOM = 12, KEY_GAP = 12, KEY_GROUP_GAP = 32, KEY_BAR_H = 10, KEY_DOT_R = 5.5, KEY_TEXT_GAP = 5, KEY_ENTRY_GAP = 14, BUBBLE_AIR = 2, BUBBLE_AIR_TIGHT = 1, VALUE_OVERHANG = 1.5, TIER_GAP = 3, TIER_NAME_GAP = 8, TIER_LEAN_MAX = 0.25, TICK_CLEAR = 4, TURNED = /* @__PURE__ */ Symbol("heatmapTurned");
|
|
217
|
+
var HARVEY_ROW = 42, HARVEY_ROW_CARD = 36, HARVEY_LIST_ROW = 27, HARVEY_LIST_CELL = 28, HARVEY_HEADER_GAP = 8, HARVEY_BOTTOM_GAP = 12, BASE_CELL_GAP = 2, VALUE_CELL_GAP = 1.5, VALUE_ROW_CARD = 22, VALUE_ROW_NARROW = 26, VALUE_ROW_WIDE = 32.5, VALUE_KEY_GAP = 8, UPRIGHT_TIER_PITCH = 44, ROW_BAND_GAP = 8, COLUMN_KEEP = 28, VALUE_INSET = 6, HEADER_GAP = 4, CALLOUT_SEAT = 16, CARET_ROOM = 8, NO_DATA_PAINT = { token: "grid" }, BRACKET_CLEAR = 6, TRACK_ROOM = 12, KEY_GAP = 12, KEY_GROUP_GAP = 32, KEY_BAR_H = 10, KEY_DOT_R = 5.5, KEY_TEXT_GAP = 5, KEY_ENTRY_GAP = 14, BUBBLE_AIR = 2, BUBBLE_AIR_TIGHT = 1, VALUE_OVERHANG = 1.5, TIER_GAP = 3, TIER_NAME_GAP = 8, TIER_LEAN_MAX = 0.25, TICK_CLEAR = 4, TURNED = /* @__PURE__ */ Symbol("heatmapTurned");
|
|
199
218
|
function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows = [], compactKey = !1) {
|
|
200
219
|
let warnings = [], theme = resolveSemanticPaletteTheme(
|
|
201
220
|
chartTheme(options),
|
|
202
221
|
options.palette,
|
|
203
222
|
warnings
|
|
204
|
-
), size = resolveSize(options.size), measure = options.measure ?? defaultMeasurer, scale = options.scale ?? "continuous", glyph = options.variant ?? "value", highlights = new Set(resolveHighlight(options.highlight)), labelOn2 = (kind) => labelOn(options, kind, ["series", "category"]), cellLabelsOn = glyph !== "harvey" && labelOn2("point"), bubble = glyph === "bubble", valueStyle = glyph === "value" && options.heatKey === void 0 && panelTypeClass(options) === void 0, CELL_GAP = valueStyle ? VALUE_CELL_GAP : BASE_CELL_GAP, bubbleStyle = bubble && options.heatKey === void 0 && panelTypeClass(options) === void 0, harveyStyle = glyph === "harvey" && options.heatKey === void 0 && panelTypeClass(options) === void 0, turned = (bubbleStyle || harveyStyle) && options[TURNED] === !0, harveyList = harveyStyle && turned, harveyWide = harveyStyle && !harveyList && size.width >= 720;
|
|
223
|
+
), size = resolveSize(options.size), measure = options.measure ?? defaultMeasurer, scale = options.scale ?? "continuous", glyph = options.variant ?? "value", highlights = new Set(resolveHighlight(options.highlight)), labelOn2 = (kind) => labelOn(options, kind, ["series", "category"]), cellLabelsOn = glyph !== "harvey" && labelOn2("point"), bubble = glyph === "bubble", valueStyle = glyph === "value" && options.heatKey === void 0 && panelTypeClass(options) === void 0, CELL_GAP = valueStyle ? VALUE_CELL_GAP : BASE_CELL_GAP, bubbleStyle = bubble && options.heatKey === void 0 && panelTypeClass(options) === void 0, harveyStyle = glyph === "harvey" && options.heatKey === void 0 && panelTypeClass(options) === void 0, turned = (bubbleStyle || harveyStyle) && options[TURNED] === !0, harveyList = harveyStyle && turned, harveyWide = harveyStyle && !harveyList && classStepWidth(size.width) >= 720;
|
|
205
224
|
if (!data || !Array.isArray(data.categories) || data.categories.length === 0)
|
|
206
|
-
throw new NormalizeError("empty-data", "categories", "heatmap requires at least one category (column)");
|
|
225
|
+
throw new NormalizeError("empty-data", "categories", "heatmap requires at least one category (column)", void 0, void 0, ["data", "categories"]);
|
|
207
226
|
if (!Array.isArray(data.series) || data.series.length === 0)
|
|
208
|
-
throw new NormalizeError("empty-data", "series", "heatmap requires at least one series (row)");
|
|
209
|
-
let rawCats = data.categories.map((c, i) => normalizeCategory(c, i)),
|
|
210
|
-
|
|
227
|
+
throw new NormalizeError("empty-data", "series", "heatmap requires at least one series (row)", void 0, void 0, ["data", "series"]);
|
|
228
|
+
let rawCats = data.categories.map((c, i) => normalizeCategory(c, i)), overrides = options.columnOverrides ?? {}, nameTrack = overrides.label;
|
|
229
|
+
pushAll(warnings, generatedIdWarnings("heatmap", "columnOverrides", options.columnOverrides, ["label", ...rawCats.map((c) => c.id)])), pushAll(warnings, nameTrackRefusals(overrides, rawCats.map((c) => c.id)));
|
|
230
|
+
let cols = rawCats.map((c) => ({ id: c.id, label: overrides[c.id]?.label ?? c.label ?? c.id, date: c.date, ...c.footnote === void 0 ? {} : { footnote: c.footnote } })), rows = data.series.map((s, i) => {
|
|
231
|
+
if (!s?.id) throw new NormalizeError("missing-id", `series[${i}]`, "series requires an id", void 0, void 0, ["data", "series", i]);
|
|
211
232
|
let { sizes, bases, states } = s;
|
|
212
233
|
if ((sizes?.length ?? 0) > rawCats.length || (bases?.length ?? 0) > rawCats.length || (states?.length ?? 0) > rawCats.length)
|
|
213
|
-
throw new NormalizeError("length-mismatch", `series[${s.id}]`, `series '${s.id}' has more sizes, bases or states than the ${rawCats.length} categories`, "give one size, base and state per category, in category order");
|
|
234
|
+
throw new NormalizeError("length-mismatch", `series[${s.id}]`, `series '${s.id}' has more sizes, bases or states than the ${rawCats.length} categories`, "give one size, base and state per category, in category order", void 0, ["data", "series", i]);
|
|
214
235
|
let cells = normalizeSeriesValues(s, rawCats, i).map((c, ci) => ({
|
|
215
236
|
v: cellValue(c),
|
|
216
237
|
pct: isPctCell(c),
|
|
@@ -299,7 +320,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
299
320
|
message: `discrete scale expects integer values 0\u20134; values ${numberRange(fmt(vMin), fmt(vMax))} mapped to quintiles`
|
|
300
321
|
});
|
|
301
322
|
let levelOf = (v) => isRatingScale ? v : vMax === vMin ? 2 : Math.min(4, Math.floor((v - vMin) / (vMax - vMin) * 5)), declaredDirections = rows.some((r) => r.direction !== void 0), valence = vMin < 0 || scale === "continuous" && declaredDirections;
|
|
302
|
-
options.cap &&
|
|
323
|
+
options.cap && scale === "discrete" && warnings.push({ code: "cap-ignored", severity: "warn", message: "cap does not apply to the discrete rating ladder; it sets where the continuous scale saturates", suggest: "drop cap", field: ["options", "cap"], fix: [{ op: "remove", path: "/options/cap" }] }), declaredDirections && (scale === "discrete" && !bins || glyph === "harvey") && warnings.push({
|
|
303
324
|
code: "direction-ignored",
|
|
304
325
|
severity: "warn",
|
|
305
326
|
message: glyph === "harvey" ? "series.direction does not recolor harvey glyphs \u2014 cells stay white and the declared judgment is not painted" : "series.direction does not apply to the discrete rating ladder \u2014 the declared judgment is not painted"
|
|
@@ -357,7 +378,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
357
378
|
let legend, missingCells = glyph !== "harvey" && options.heatKey === void 0 && rows.some((r) => r.cells.some((c) => c.v === null)), missingLook = options.missing ?? "hatch", hatchMissing = missingCells && missingLook !== "blank", stateNames = { na: chartString(options, "stateNa"), nm: chartString(options, "stateNm"), suppressed: chartString(options, "stateSuppressed") }, statesPresent = NAMED_COLUMN_STATES.filter((state) => rows.some((r) => r.cells.some((c) => c.state === state))), plainNoData = rows.some((r) => r.cells.some((c) => c.v === null && !c.state)), noDataKey = (id, label, pattern = "hatch45") => missingLook === "blank" ? { id, label, paint: { token: "background" }, stroke: { token: "grid" } } : { id, label, paint: NO_DATA_PAINT, pattern, hatchGround: { token: "background" }, stroke: { token: "grid" } }, noDataNames = [...plainNoData ? [chartString(options, "noData")] : [], ...statesPresent.map((state) => stateNames[state])].join(", "), anyLowBase = rows.some((r) => r.cells.some((c) => c.v !== null && lowBase(c))), lowBaseKey = lowBaseKeyLabel(options.minBase ?? 0, options.locale?.language), scaleItems = glyph !== "harvey" && !bubble && allValues.length > 0 && panelTypeClass(options) === void 0 ? options.heatKey?.items ?? [...continuousKey ? [] : colourScaleKey(), ...missingCells ? [...plainNoData ? [noDataKey("scale:none", chartString(options, "noData"))] : [], ...statesPresent.map((state) => noDataKey(`scale:${state}`, stateNames[state], NAMED_STATE_PATTERN[state]))] : [], ...anyLowBase ? [{ id: "scale:lowBase", label: lowBaseKey, paint: { token: "neutralMark" }, pattern: "hatch45", hatchGround: { token: "background" } }] : []] : void 0, bubbleKeys = bubble && allValues.length > 0 && panelTypeClass(options) === void 0 && options.legend !== "none", derivedNotes = [
|
|
358
379
|
...topOnly && valueNote === void 0 ? [disclosureNote(chartString(options, "heatmapTopValuesNote"))] : [],
|
|
359
380
|
...valueNote ? [disclosureNote(valueNote)] : [],
|
|
360
|
-
...bubble && missingCells ? [disclosureNote(statesPresent.length ? missingLook === "blank" ?
|
|
381
|
+
...bubble && missingCells ? [disclosureNote(statesPresent.length ? missingLook === "blank" ? chartString(options, "blankCells", { v1: noDataNames }) : chartString(options, "hatchedCells", { v1: noDataNames }) : missingLook === "blank" ? chartString(options, "blankNoData") : chartString(options, "hatchedNoData"))] : [],
|
|
361
382
|
...anyLowBase ? [disclosureNote(chartString(options, "heatmapBaseNote", { v1: bubble ? chartString(options, "circles") : chartString(options, "cellsLower"), v2: formatAutomaticNumber(options.minBase, { locale: options.locale?.language }) }))] : []
|
|
362
383
|
];
|
|
363
384
|
scaleItems && options.legend === "none" && legendOff(warnings, options.heatKey?.chartType ?? "heatmap", scaleItems.map((item) => item.label));
|
|
@@ -387,28 +408,33 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
387
408
|
...frameTextOptions(options),
|
|
388
409
|
...derivedNotes.length > 0 ? { footnotes: [...authoredNotes(options), ...derivedNotes] } : {},
|
|
389
410
|
legend,
|
|
411
|
+
...sideKeyOff(options) ? { sideKeyGivesWay: !0 } : {},
|
|
390
412
|
theme,
|
|
391
413
|
measure
|
|
392
414
|
},
|
|
393
415
|
occupied
|
|
394
|
-
), keyRightW = continuousKey && keyRight ? KEY_BAR_H + 6 + KEY_GAP + Math.max(...[vMin, vMax, ...cap === void 0 ? [] : [-cap, cap]].map((v) => measure(`>=${displayFor(v, pctMatrix, null, keySeries)}`, tickFont).width)) : 0, framePlot = bubble || glyph === "harvey" ? frameResult.plot : bareGridPlot(frameResult.plot, size.height, margin, options), plot0 = { ...framePlot, w: Math.max(10, framePlot.w - keyRightW) },
|
|
395
|
-
|
|
416
|
+
), keyRightW = continuousKey && keyRight ? KEY_BAR_H + 6 + KEY_GAP + Math.max(...[vMin, vMax, ...cap === void 0 ? [] : [-cap, cap]].map((v) => measure(`>=${displayFor(v, pctMatrix, null, keySeries)}`, tickFont).width)) : 0, framePlot = bubble || glyph === "harvey" ? frameResult.plot : bareGridPlot(frameResult.plot, size.height, margin, options), plot0 = { ...framePlot, w: Math.max(10, framePlot.w - keyRightW) }, bandRoom = plot0.w - ROW_BAND_GAP - (bracketGutter ?? 0) - cols.length * COLUMN_KEEP - (cols.length - 1) * CELL_GAP, authoredBand = nameTrack?.width === void 0 || harveyList ? void 0 : Math.max(24, Math.min(nameTrack.width - ROW_BAND_GAP, bandRoom));
|
|
417
|
+
nameTrack?.width !== void 0 && harveyList ? warnings.push(overrideIgnored("label", "width", "a list form sizes the names by their text")) : nameTrack?.width !== void 0 && nameTrack.width - ROW_BAND_GAP > Math.max(24, bandRoom) && warnings.push(widthCapped("heatmap", "label"));
|
|
418
|
+
let capW = authoredBand ?? Math.max(24, plot0.w * 0.28), cellHEst = (plot0.h - lineH - HEADER_GAP) / rows.length, card = size.width < 480 && !valueStyle, suffixed = options.rowSuffix && !turned ? rows.map((r) => ({ ...r, suffix: options.rowSuffix[r.id] })) : rows, fitRows = (maxLines, wider) => rowLabelBand(suffixed, tickFont, capW, maxLines, lineH, measure, {
|
|
419
|
+
...authoredBand === void 0 ? { wider } : {},
|
|
396
420
|
target: options.target,
|
|
397
421
|
textScale: textScaleOf(options),
|
|
398
422
|
typeRole: "axis",
|
|
399
423
|
shrink: stepDownFont(theme, tickFont, "axis", options.target, textScaleOf(options))
|
|
400
|
-
}), rowGutter = bracketGutter ?? 0, naturalWider = gutterBudget(capW, plot0.w, ROW_BAND_GAP + rowGutter + cols.length * 28 + (cols.length - 1) * CELL_GAP), oneLine = card ? void 0 : fitRows(
|
|
424
|
+
}), rowGutter = bracketGutter ?? 0, naturalWider = gutterBudget(capW, plot0.w, ROW_BAND_GAP + rowGutter + cols.length * 28 + (cols.length - 1) * CELL_GAP), oneLine = card || options[NARROW_FORM] ? void 0 : fitRows(
|
|
401
425
|
cellHEst >= 2 * lineH + 4 && !(valueStyle && size.width < 480) ? 2 : 1,
|
|
402
426
|
Math.max(naturalWider, gutterBudget(capW, plot0.w, ROW_BAND_GAP + rowGutter + cols.length + (cols.length - 1) * CELL_GAP))
|
|
403
427
|
), fittedRows = oneLine && !oneLine.labels.some((label) => label.title !== void 0) ? oneLine : fitRows(2, naturalWider), rowLines = fittedRows.labels.map((label, ri) => {
|
|
404
428
|
if (!valueStyle || !highlights.has(rows[ri].id)) return label;
|
|
405
429
|
let bold = { ...label.font, weight: emphasisWeight(theme) };
|
|
406
430
|
return { ...label, w: Math.max(label.w, ...label.lines.map((line) => measure(line, bold).width)) };
|
|
407
|
-
}),
|
|
431
|
+
}), rowBandFloor = Math.max(fittedRows.width, maxOf(rowLines.map((label) => label.w))), rowBandW = authoredBand === void 0 ? rowBandFloor : Math.max(rowBandFloor, authoredBand);
|
|
432
|
+
authoredBand !== void 0 && nameTrack.width - ROW_BAND_GAP < rowBandFloor && warnings.push(widthFloored("heatmap", "label"));
|
|
433
|
+
let rowSuffixShort = fittedRows.short, notes = annotations.filter((a) => a.kind === "callout" || a.kind === "note"), noteSize = (a, width = plot0.w, maxLines) => {
|
|
408
434
|
let ref = "at" in a ? a.at : void 0, ci = cols.findIndex((c) => c.id === (typeof ref == "string" ? ref : ref && "categoryId" in ref ? ref.categoryId : void 0)), row = rows.find((r) => typeof ref != "string" && ref && "seriesId" in ref && r.id === ref.seriesId), value = row?.cells[ci]?.v ?? colMeans[cols[ci]?.id ?? ""] ?? 0, body = "text" in a ? a.text ?? "${value}" : "${value}";
|
|
409
435
|
cellLabelsOn && row && (plot0.w - rowBandW - ROW_BAND_GAP) / cols.length > measure(shownFor(value, pctMatrix, null, row), labelFont).width + 6 && (body = body.replace(/:\s*\n\$\{value\}$/, ""));
|
|
410
436
|
let glyphRoom = "icon" in a && a.icon || "status" in a && a.status ? 29 : 0, source = `${"headline" in a && a.headline !== void 0 ? `${a.headline}
|
|
411
|
-
` : ""}${body}`.replace(/\$\{value\}/g, displayFor(value, pctMatrix, null, row)), wrapped = wrapText(source, { ...labelFont, weight: emphasisWeight(theme) }, Math.max(1, width - glyphRoom), maxLines ?? Math.max(1, source.length), measure), lines = wrapped.lines, w = Math.max(...lines.map((line) => measure(line, { ...labelFont, weight: emphasisWeight(theme) }).width));
|
|
437
|
+
` : ""}${body}`.replace(/\$\{value\}/g, displayFor(value, pctMatrix, null, row)), wrapped = wrapText(source, { ...labelFont, weight: emphasisWeight(theme) }, Math.max(1, width - glyphRoom), maxLines ?? Math.max(1, source.length), measure), lines = wrapped.lines, w = Math.max(0, ...lines.map((line) => measure(line, { ...labelFont, weight: emphasisWeight(theme) }).width));
|
|
412
438
|
return { w, h: Math.max(glyphRoom ? 22 : 0, measure("0", labelFont).height * lines.length), sideW: w + (glyphRoom ? 38 : CALLOUT_SEAT), truncated: wrapped.truncated };
|
|
413
439
|
}, noteSizes = new Map(notes.map((a) => [a.id, noteSize(a)])), baseGutter = (bracketGutter ?? 0) + (bubble && options.bubble?.track ? TRACK_ROOM : 0), space = plot0.w - rowBandW - ROW_BAND_GAP - baseGutter, sideWrapWidth = Math.max(1, space * 0.15 / 1.15 - CALLOUT_SEAT), sideSizes = new Map(notes.map((a) => [a.id, noteSize(a, sideWrapWidth, 2)])), sideNotes = notes.filter((a) => !forceRows.includes(a.id) && (!("preferSide" in a) || a.preferSide !== "above" && a.preferSide !== "below")), sideWidth = (side) => Math.max(0, maxOf(sideNotes.filter((a) => ("preferSide" in a && a.preferSide === "left") == (side === "left")).map((a) => sideSizes.get(a.id).sideW)));
|
|
414
440
|
for (let pass = 0; pass <= notes.length; pass++) {
|
|
@@ -430,7 +456,16 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
430
456
|
});
|
|
431
457
|
a.text = names.length ? `${names.join(" \xB7 ")}: ${body}` : body, noteSizes.set(a.id, noteSize(a));
|
|
432
458
|
}
|
|
433
|
-
let aboveNotes = rowNotes.filter((a) => "preferSide" in a && a.preferSide === "above"), belowNotes = rowNotes.filter((a) => !aboveNotes.includes(a)), rowHeight = (items) => items.reduce((sum, a) => sum + noteSizes.get(a.id).h + 8, 0), caretRoom = valueStyle && belowNotes.length > 0 ? CARET_ROOM : 0, annotationTopH = rowHeight(aboveNotes), annotationBottomH, leftRoom = sideWidth("left"), rightRoom = sideWidth("right"), gutterRight = baseGutter + rightRoom + (rowNotes.length && !valueStyle ? 8 : 0), gridX = harveyList ? plot0.x : plot0.x + rowBandW + ROW_BAND_GAP + leftRoom,
|
|
459
|
+
let aboveNotes = rowNotes.filter((a) => "preferSide" in a && a.preferSide === "above"), belowNotes = rowNotes.filter((a) => !aboveNotes.includes(a)), rowHeight = (items) => items.reduce((sum, a) => sum + noteSizes.get(a.id).h + 8, 0), caretRoom = valueStyle && belowNotes.length > 0 ? CARET_ROOM : 0, annotationTopH = rowHeight(aboveNotes), annotationBottomH, leftRoom = sideWidth("left"), rightRoom = sideWidth("right"), gutterRight = baseGutter + rightRoom + (rowNotes.length && !valueStyle ? 8 : 0), gridX = harveyList ? plot0.x : plot0.x + rowBandW + ROW_BAND_GAP + leftRoom, gridRoom = harveyList ? HARVEY_LIST_CELL : Math.max(10, plot0.w - rowBandW - ROW_BAND_GAP - gutterRight - leftRoom), tracks = turned ? void 0 : matrixTracks(cols.map((c) => c.id), gridRoom, CELL_GAP, (id) => overrides[id]?.width, () => COLUMN_KEEP);
|
|
460
|
+
if (tracks) for (let id of tracks.capped) warnings.push(widthCapped("heatmap", id));
|
|
461
|
+
if (tracks) for (let id of tracks.floored) warnings.push(widthFloored("heatmap", id));
|
|
462
|
+
if (turned)
|
|
463
|
+
for (let c of rawCats) for (let key of ["width", "align", "headAlign"])
|
|
464
|
+
overrides[c.id]?.[key] !== void 0 && warnings.push(overrideIgnored(c.id, key, "this matrix draws its categories as rows"));
|
|
465
|
+
let gridW = tracks?.gridW ?? gridRoom, cellW = tracks ? minOf(tracks.widths) : Math.max(1, (gridW - (cols.length - 1) * CELL_GAP) / cols.length), colStep = cellW + CELL_GAP, colWidth = (ci) => tracks ? tracks.widths[ci] : cellW, colLeft = (ci) => tracks ? gridX + tracks.lefts[ci] : gridX + ci * colStep, colCenter = (ci) => colLeft(ci) + colWidth(ci) / 2, headAlignOf = (ci) => {
|
|
466
|
+
let override = turned ? void 0 : overrides[cols[ci].id];
|
|
467
|
+
return override?.headAlign ?? override?.align;
|
|
468
|
+
}, belowRows = [], seatBounds = /* @__PURE__ */ new Map();
|
|
434
469
|
{
|
|
435
470
|
let centreOf = (a) => {
|
|
436
471
|
let ref = "at" in a ? a.at : void 0, ci = cols.findIndex((c) => typeof ref == "object" && ref !== null && "categoryId" in ref && c.id === ref.categoryId);
|
|
@@ -545,6 +580,16 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
545
580
|
x: () => plot0.x
|
|
546
581
|
};
|
|
547
582
|
}
|
|
583
|
+
if (tracks && headerPlan.rotation === 0 && tierTicks.length === 0) {
|
|
584
|
+
let plan = headerPlan, lineHt = plan.font.size * (plan.font.lineHeight ?? 1.2), infos = plan.infos.map((info, ci) => {
|
|
585
|
+
let label = cols[ci].label, one = measure(label, plan.font).width;
|
|
586
|
+
return info.lines.length > 1 && info.title === void 0 && cols[ci].footnote === void 0 && one <= colWidth(ci) - 2 ? { ...info, lines: [label], w: one, h: lineHt } : info;
|
|
587
|
+
});
|
|
588
|
+
if (infos.some((info, ci) => info !== plan.infos[ci])) {
|
|
589
|
+
let maxLines = maxOf(infos.map((info) => info.lines.length));
|
|
590
|
+
headerPlan = { ...plan, infos, maxLines, rowHeight: maxLines * lineHt, x: (ci) => Math.min(plot0.x + plot0.w - infos[ci].w, colCenter(ci) - infos[ci].w / 2) };
|
|
591
|
+
}
|
|
592
|
+
}
|
|
548
593
|
let headerRotated = headerPlan.rotation !== 0, colLines = headerPlan.infos, headerFont = headerPlan.font, headerLines = headerPlan.maxLines, showHeaderRow = labelOn2("category") && cols.length > 0;
|
|
549
594
|
showHeaderRow && pushAll(warnings, headerPlan.warnings);
|
|
550
595
|
let headerH = showHeaderRow ? headerPlan.rowHeight + HEADER_GAP : 0, headerKeep = headerPlan.keep, keyFont = { family: theme.type.family, ...theme.type.axis }, keyLineH = keyFont.size * 1.2, keyTitled = options.bubble?.sizeLabel !== void 0 || options.bubble?.colorLabel !== void 0, headerGap = harveyWide ? HARVEY_HEADER_GAP : 0, styledKey = bubbleKeys && bubbleStyle ? planStyledBubbleKey() : void 0;
|
|
@@ -556,16 +601,16 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
556
601
|
let keyH = styledKey ? styledKey.height + KEY_GAP : bubbleKeys ? (keyTitled ? keyLineH + 4 : 0) + Math.max(hasSizes ? cellW / 2 : 0, KEY_BAR_H) + 3 + keyLineH + KEY_GAP : 0, headTop = plot0.y + headerGap + keyH + annotationTopH + (keyBottom ? 0 : continuousKeyH), gridY = headTop + headerH, gridH = plotHeightAfter(frameResult, size.height, plot0.h - headerGap - headerH - keyH - continuousKeyH - annotationTopH - annotationBottomH);
|
|
557
602
|
if (continuousKey && !keyRight && !valueStyle && cellW < 2 * measure("0", labelFont).height)
|
|
558
603
|
return layoutHeatmap(data, options, bracketGutter, valueNote, forceRows, !0);
|
|
559
|
-
let fillH = Math.max(1, (gridH - (rows.length - 1) * CELL_GAP) / rows.length), cellH = glyph === "harvey" ? capPitch(fillH, 1, 2 * 0.68 * cellW) : bubble ? capPitch(fillH, 1, 1.5 * cellW) : fillH, rowStep = cellH + CELL_GAP, rowCenter = (ri) => gridY + ri * rowStep + cellH / 2, plot = { x: gridX, y: gridY, w: gridW, h: gridH }, rowFloor = valueStyle && size.width < 720 ? size.width < 480 ? VALUE_ROW_CARD : VALUE_ROW_NARROW : valueStyle && size.width >= 960 ? VALUE_ROW_WIDE : 28, floorFont = { ...labelFont, size: readerFloorPx(options.target ?? DEFAULT_TARGET, "label", textScaleOf(options)) }, constantCol = cols.map((_, ci) => {
|
|
604
|
+
let fillH = Math.max(1, (gridH - (rows.length - 1) * CELL_GAP) / rows.length), cellH = glyph === "harvey" ? capPitch(fillH, 1, 2 * 0.68 * cellW) : bubble ? capPitch(fillH, 1, 1.5 * cellW) : fillH, rowStep = cellH + CELL_GAP, rowCenter = (ri) => gridY + ri * rowStep + cellH / 2, plot = { x: gridX, y: gridY, w: gridW, h: gridH }, rowFloor = valueStyle && classStepWidth(size.width) < 720 ? size.width < 480 ? VALUE_ROW_CARD : VALUE_ROW_NARROW : valueStyle && size.width >= 960 ? VALUE_ROW_WIDE : 28, floorFont = { ...labelFont, size: readerFloorPx(options.target ?? DEFAULT_TARGET, "label", textScaleOf(options)) }, constantCol = cols.map((_, ci) => {
|
|
560
605
|
let held = rows.flatMap((r) => r.cells[ci].v ?? []);
|
|
561
606
|
return held.length >= 2 && held.every((v) => v === held[0]);
|
|
562
|
-
}), allFit = () => rows.every((r) => measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), floorFont, measure,
|
|
607
|
+
}), allFit = () => rows.every((r) => measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), floorFont, measure, colWidth, 1 / 0, 4).every((value, ci) => value === null || value.fits || constantCol[ci]));
|
|
563
608
|
if (cellLabelsOn && !bubble) {
|
|
564
609
|
let hasPct = percentNamedByUnit && rows.some((r) => r.cells.some((c) => c.pct && c.v !== null)), stepsOfDecimals = !options.format && rows.some((r) => !r.format && !r.unit && r.cells.some((c) => c.v !== null && !c.meta?.format)) ? Math.max(0, decimals - Math.min(decimals, readableDecimals(vMax - vMin))) : 0, steps = [...hasPct ? [{ decimals: 0, sign: !0 }] : []];
|
|
565
610
|
for (let off = 1; off <= stepsOfDecimals; off++) steps.push({ decimals: off, sign: hasPct });
|
|
566
611
|
cut = NO_CUT, steps.length > 0 && !allFit() && (cut = steps.find((step) => (cut = step, allFit())) ?? NO_CUT);
|
|
567
612
|
}
|
|
568
|
-
let valueLineH = valueStyle && cellLabelsOn && !allFit() ? 0 : labelFont.size * 1.2 + 8, harveyRow = harveyList ? HARVEY_LIST_ROW : size.width >= 720 ? HARVEY_ROW : HARVEY_ROW_CARD, naturalCellH = bubbleStyle ? bubbleNaturalH : harveyStyle ? Math.max(harveyRow, maxOf(rowLines.map((label) => label.h + 4))) : Math.max(
|
|
613
|
+
let valueLineH = valueStyle && cellLabelsOn && !allFit() ? 0 : labelFont.size * 1.2 + 8, harveyRow = harveyList ? HARVEY_LIST_ROW : classStepWidth(size.width) >= 720 ? HARVEY_ROW : HARVEY_ROW_CARD, naturalCellH = bubbleStyle ? bubbleNaturalH : harveyStyle ? Math.max(harveyRow, maxOf(rowLines.map((label) => label.h + 4))) : Math.max(
|
|
569
614
|
bubble ? cellW : 0,
|
|
570
615
|
Math.max(rowFloor, valueLineH, maxOf(rowLines.map((label) => label.h + 4)))
|
|
571
616
|
), keyShare = ((frameResult.legendBand ?? 0) + continuousKeyH + annotationTopH + annotationBottomH) / Math.max(1, rows.length), hard = options[HARD_MINIMUM] === !0, minRowH = Math.max(measure("0", labelFont).height + 2, hard ? 0 : 28 - keyShare);
|
|
@@ -589,13 +634,13 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
589
634
|
if (!highlights.has(c.id)) return;
|
|
590
635
|
let nodeId = `colTint:${c.id}`;
|
|
591
636
|
if (barHighlight) {
|
|
592
|
-
outlines.push({ id: nodeId, rect: { x:
|
|
637
|
+
outlines.push({ id: nodeId, rect: { x: colLeft(ci), y: gridY, w: colWidth(ci), h: gridH }, owner: colOwner(c), part: "colTint" });
|
|
593
638
|
return;
|
|
594
639
|
}
|
|
595
640
|
nodes.push({
|
|
596
641
|
t: "rect",
|
|
597
642
|
id: nodeId,
|
|
598
|
-
rect: { x:
|
|
643
|
+
rect: { x: colLeft(ci) - 2, y: headTop, w: colWidth(ci) + 4, h: headerH + gridH },
|
|
599
644
|
fill: highlightWash,
|
|
600
645
|
owner: { categoryId: c.id },
|
|
601
646
|
part: "colTint"
|
|
@@ -620,7 +665,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
620
665
|
if (bubbleStyle && levels && size2 !== null) return size2 > 0 ? Math.max(1.5, bubbleR * (size2 + 1) / (levels.length + 1)) : 0;
|
|
621
666
|
let share = areaShare(size2);
|
|
622
667
|
return share > 0 ? Math.max(1.5, bubbleR * Math.sqrt(share)) : 0;
|
|
623
|
-
}, bubbleNodes = [], missingSizes = 0, valueCellW = 0, omittedValues = 0, hiddenCells = [], rowValues = (font) => rows.map((r) => cellLabelsOn && !bubble ? measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), font, measure,
|
|
668
|
+
}, bubbleNodes = [], missingSizes = 0, valueCellW = 0, omittedValues = 0, hiddenCells = [], rowValues = (font) => rows.map((r) => cellLabelsOn && !bubble ? measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), font, measure, colWidth, cellH, 4) : []), valueFloor = readerFloorPx(options.target ?? DEFAULT_TARGET, "label", textScaleOf(options)), bubbleValuesFit = () => !bubbleStyle || !cellLabelsOn || rows.every((r) => r.cells.every((cell) => {
|
|
624
669
|
if (cell.v === null || topOnly && cell.size !== levels.length) return !0;
|
|
625
670
|
let radius = radiusOf(cell.size), text = textFor(cell.v, cell.pct, cell.meta, r);
|
|
626
671
|
if (radius === 0 || !text) return !0;
|
|
@@ -632,12 +677,12 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
632
677
|
let showBubbleValues = bubbleValuesFit(), valueFont = labelFont, fitted = rowValues(valueFont);
|
|
633
678
|
for (; valueFont.size > valueFloor && !fitted.every((values) => values.every((value) => value === null || value.fits)); )
|
|
634
679
|
valueFont = { ...valueFont, size: Math.max(valueFloor, valueFont.size - 1) }, fitted = rowValues(valueFont);
|
|
635
|
-
let matrixPaints = [], printValues = fitted.every((values) => values.every((value, ci) => value === null || value.fits || constantCol[ci]));
|
|
680
|
+
let matrixPaints = [], printValues = fitted.every((values) => values.every((value, ci) => value === null || value.fits || constantCol[ci])), withheld = [];
|
|
636
681
|
rows.forEach((r, ri) => {
|
|
637
682
|
let values = fitted[ri];
|
|
638
683
|
for (let value of values) value && (valueCellW = Math.max(valueCellW, value.size.width + 4));
|
|
639
684
|
cols.forEach((c, ci) => {
|
|
640
|
-
let cell = r.cells[ci], rect = { x:
|
|
685
|
+
let cell = r.cells[ci], rect = { x: colLeft(ci), y: gridY + ri * rowStep, w: colWidth(ci), h: cellH }, nodeId = `cell:${cellKey(r, c)}`, owner = { seriesId: seriesOf(r, c), categoryId: categoryOf(r, c) }, needsStroke = glyph === "harvey" && !(harveyStyle && cell.v !== null) || cell.v === null, valuePaint = fillPaint(cell.v, cell.meta, rect.w > 12 && cellH > 12, r.direction), paint = bubble && !cell.meta?.fill ? { token: "background" } : valuePaint, css = paintColor(theme, paint), insidePaint = paint;
|
|
641
686
|
!barHighlight && "token" in paint && paint.token === "background" && !paint.tint && (highlights.has(r.id) || highlights.has(c.id)) && (paint = highlightWash);
|
|
642
687
|
let noData = hatchMissing && cell.v === null && !cell.meta?.fill, blankCell = missingLook === "blank" && cell.v === null && !cell.meta?.fill && missingCells, low = !bubble && cell.v !== null && lowBase(cell);
|
|
643
688
|
if (nodes.push({
|
|
@@ -649,7 +694,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
649
694
|
...needsStroke ? { stroke: { token: "grid" }, strokeWidth: strokeToken(theme, "hair") } : {},
|
|
650
695
|
owner,
|
|
651
696
|
part: "cell",
|
|
652
|
-
display: cell.v === null ? { state: cell.state ? stateNames[cell.state] :
|
|
697
|
+
display: cell.v === null ? { state: cell.state ? stateNames[cell.state] : chartString(options, "noData") } : { value: displayFor(cell.v, cell.pct, cell.meta, r) }
|
|
653
698
|
}), occupied.claim(rect, "mark", owner), marks.cells.push({ seriesId: seriesOf(r, c), categoryId: categoryOf(r, c), rect, nodeId, value: cell.v }), cellBoxes.set(`${categoryOf(r, c)}:${seriesOf(r, c)}`, rect), cell.v !== null && anchorCell.set(`${categoryOf(r, c)}:${seriesOf(r, c)}`, {
|
|
654
699
|
x: rect.x + rect.w / 2,
|
|
655
700
|
y: rect.y + rect.h / 2,
|
|
@@ -699,7 +744,9 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
699
744
|
let value = values[ci];
|
|
700
745
|
if (value?.fits && printValues) {
|
|
701
746
|
let { text, size: tsize } = value, basePriority = cell.v !== null && (cell.v === extremeMax || cell.v === extremeMin) ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(cell.v ?? 0));
|
|
702
|
-
low || matrixPaints.push(insidePaint)
|
|
747
|
+
low || matrixPaints.push(insidePaint);
|
|
748
|
+
let valueAlign = turned ? void 0 : overrides[c.id]?.align;
|
|
749
|
+
labelRequests.push({
|
|
703
750
|
id: `point:${r.id}:${c.id}`,
|
|
704
751
|
kind: "point",
|
|
705
752
|
typeRole: "label",
|
|
@@ -709,11 +756,13 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
709
756
|
font: valueFont,
|
|
710
757
|
...valueFont !== labelFont ? { fontStep: valueFont } : {},
|
|
711
758
|
priority: cell.meta?.priority ?? basePriority + bonus(r.id, c.id),
|
|
759
|
+
// A highlighted value passes the minimal density gate.
|
|
760
|
+
...bonus(r.id, c.id) > 0 ? { keepWhenDense: !0 } : {},
|
|
712
761
|
candidates: [
|
|
713
762
|
{
|
|
714
763
|
slot: "insideCenter",
|
|
715
764
|
rect: {
|
|
716
|
-
x: rect.x + rect.w / 2 - tsize.width / 2,
|
|
765
|
+
x: valueAlign === "left" ? rect.x + Math.min(VALUE_INSET, (rect.w - tsize.width) / 2) : valueAlign === "right" ? rect.x + rect.w - tsize.width - Math.min(VALUE_INSET, (rect.w - tsize.width) / 2) : rect.x + rect.w / 2 - tsize.width / 2,
|
|
717
766
|
y: rect.y + rect.h / 2 - tsize.height / 2,
|
|
718
767
|
w: tsize.width,
|
|
719
768
|
h: tsize.height
|
|
@@ -725,7 +774,8 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
725
774
|
}
|
|
726
775
|
]
|
|
727
776
|
});
|
|
728
|
-
} else
|
|
777
|
+
} else
|
|
778
|
+
withheld.push({ id: `point:${r.id}:${c.id}`, kind: "point", owner }), cellLabelsOn && cell.v !== null && (omittedValues++, hiddenCells.push({ r, c, v: cell.v }));
|
|
729
779
|
});
|
|
730
780
|
});
|
|
731
781
|
let distinctFills = /* @__PURE__ */ new Set();
|
|
@@ -755,7 +805,8 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
755
805
|
function rowFont(id) {
|
|
756
806
|
return valueStyle && id !== void 0 && highlights.has(id) ? { ...tickFont, weight: emphasisWeight(theme) } : tickFont;
|
|
757
807
|
}
|
|
758
|
-
|
|
808
|
+
let nameAlign = harveyList ? void 0 : nameTrack?.align;
|
|
809
|
+
if (labelOn2("series") && rows.forEach((r, ri) => {
|
|
759
810
|
let rl = rowLines[ri];
|
|
760
811
|
labelRequests.push({
|
|
761
812
|
id: rowLabelId(r),
|
|
@@ -764,17 +815,25 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
764
815
|
text: r.label,
|
|
765
816
|
...fittedLabel(rl, tickFont),
|
|
766
817
|
font: rowFont(r.id),
|
|
818
|
+
...nameAlign === "left" ? { align: "start" } : nameAlign === "center" ? { align: "middle" } : nameAlign === "right" ? { align: "end" } : {},
|
|
767
819
|
priority: PRIORITY.endpoint + (highlights.has(r.id) ? PRIORITY.highlightBonus : 0),
|
|
768
820
|
candidates: [
|
|
769
821
|
{
|
|
770
822
|
slot: "left",
|
|
771
823
|
// The bubble matrix sets its row names at the plot edge.
|
|
772
|
-
rect: { x: harveyList ? gridX + gridW + KEY_TEXT_GAP + 5 :
|
|
824
|
+
rect: { x: harveyList ? gridX + gridW + KEY_TEXT_GAP + 5 : nameAlign === "left" ? plot0.x : nameAlign === "center" ? plot0.x + (rowBandW - rl.w) / 2 : nameAlign === "right" || !(bubbleStyle || harveyStyle) ? plot0.x + rowBandW - rl.w : plot0.x, y: rowCenter(ri) - rl.h / 2, w: rl.w, h: rl.h },
|
|
773
825
|
penalty: 0
|
|
774
826
|
}
|
|
775
827
|
]
|
|
776
828
|
});
|
|
777
|
-
}),
|
|
829
|
+
}), !turned) {
|
|
830
|
+
let headReads = showHeaderRow && !harveyList && !headerRotated && tierTicks.length === 0;
|
|
831
|
+
for (let c of cols) {
|
|
832
|
+
let override = overrides[c.id];
|
|
833
|
+
override?.headAlign !== void 0 && !headReads && warnings.push(overrideIgnored(c.id, "headAlign", "these heads keep their own place at this size")), override?.align !== void 0 && !(glyph === "value" && cellLabelsOn) && (!headReads || override.headAlign !== void 0) && warnings.push(overrideIgnored(c.id, "align", "no cell text or head reads this align"));
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
harveyList && nameTrack?.align !== void 0 && warnings.push(overrideIgnored("label", "align", "a list form places the names after its glyphs")), showHeaderRow && cols.forEach((c, ci) => {
|
|
778
837
|
let cl = colLines[ci];
|
|
779
838
|
labelRequests.push({
|
|
780
839
|
id: colLabelId(c),
|
|
@@ -783,7 +842,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
783
842
|
owner: colOwner(c),
|
|
784
843
|
text: c.label,
|
|
785
844
|
lines: cl.lines,
|
|
786
|
-
...categoryLineAlign(headerPlan, ci),
|
|
845
|
+
...headerRotated || tierTicks.length > 0 ? categoryLineAlign(headerPlan, ci) : headAlignOf(ci) === "left" ? { align: "start" } : headAlignOf(ci) === "right" ? { align: "end" } : categoryLineAlign(headerPlan, ci),
|
|
787
846
|
...cl.title !== void 0 ? { title: cl.title } : {},
|
|
788
847
|
font: headerFont,
|
|
789
848
|
priority: PRIORITY.endpoint + (highlights.has(c.id) ? PRIORITY.highlightBonus : 0),
|
|
@@ -793,7 +852,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
793
852
|
{
|
|
794
853
|
slot: "top",
|
|
795
854
|
rect: {
|
|
796
|
-
x: harveyList ? plot0.x : headerPlan.x(ci),
|
|
855
|
+
x: harveyList ? plot0.x : tierTicks.length > 0 || headAlignOf(ci) === void 0 ? headerPlan.x(ci) : headAlignOf(ci) === "left" ? colLeft(ci) : headAlignOf(ci) === "right" ? colLeft(ci) + colWidth(ci) - cl.w : colCenter(ci) - cl.w / 2,
|
|
797
856
|
y: headTop + headerH - HEADER_GAP - cl.h - tierLift[ci],
|
|
798
857
|
w: cl.w,
|
|
799
858
|
h: cl.h
|
|
@@ -930,12 +989,15 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
930
989
|
allLabels,
|
|
931
990
|
(l) => headerIds.has(l.id) ? headerFont : rowBandIds.has(l.id) ? rowFont(l.owner.seriesId) : l.kind === "point" && bubbleStyle ? valueLabelFont : l.owner.annotationId && annotations.some((a) => a.id === l.owner.annotationId && (a.kind === "cagr" || a.kind === "diff")) ? { ...labelFont, weight: emphasisWeight(theme) } : labelFont,
|
|
932
991
|
nodes
|
|
933
|
-
).map((node) => node.t === "text" && !bubbleStyle && !harveyStyle && node.part === "series" && node.lines.length > 1 && node.align === "start" ? { ...node, align: "end", x: labelRects.get(node.id).x + labelRects.get(node.id).w } : node.t === "text" && rowNoteAlign.has(node.id) ? { ...node, ...rowNoteAlign.get(node.id) } : node.t === "text" && node.part === "point" && node.lines.length === 1 && node.lines[0] === "\u2013" && nullCellLabels.has(node.id) ? { ...node, ink: { token: "inkMuted" } } : node));
|
|
934
|
-
let placedAnnotations = annResult.placed, scaleWord = glyph === "harvey" ? chartString(options, "harveyBallName") : bubble ? chartString(options, "bubbleScaleWord", { v1: hasSizes ? chartString(options, "circleAreaSize") : "" }) : scale === "discrete" ? chartString(options, "discrete") : chartString(options, "continuous"), invertedRows = valence || bins && declaredDirections ? dataRows.filter((r) => r.direction === "lowerIsBetter") : [],
|
|
992
|
+
).map((node) => node.t === "text" && !bubbleStyle && !harveyStyle && nameAlign === void 0 && node.part === "series" && node.lines.length > 1 && node.align === "start" ? { ...node, align: "end", x: labelRects.get(node.id).x + labelRects.get(node.id).w } : node.t === "text" && rowNoteAlign.has(node.id) ? { ...node, ...rowNoteAlign.get(node.id) } : node.t === "text" && node.part === "point" && node.lines.length === 1 && node.lines[0] === "\u2013" && nullCellLabels.has(node.id) ? { ...node, ink: { token: "inkMuted" } } : node));
|
|
993
|
+
let placedAnnotations = annResult.placed, scaleWord = glyph === "harvey" ? chartString(options, "harveyBallName") : bubble ? chartString(options, "bubbleScaleWord", { v1: hasSizes ? chartString(options, "circleAreaSize") : "" }) : scale === "discrete" ? chartString(options, "discrete") : chartString(options, "continuous"), invertedRows = valence || bins && declaredDirections ? dataRows.filter((r) => r.direction === "lowerIsBetter") : [], readingText = (v, r, cell) => cell?.meta?.format || r?.format || r?.unit ? displayFor(v, cell?.pct ?? r.cells.every((c) => c.v === null || c.pct), cell?.meta ?? null, r) : fmt(v), extremeText = (v) => {
|
|
994
|
+
for (let r of dataRows) for (let cell of r.cells) if (cell.v === v) return readingText(v, r, cell);
|
|
995
|
+
return fmt(v);
|
|
996
|
+
}, a11yDesc = chartString(options, "heatmapDescStart", { v1: scaleWord, v2: dataRows.length, v3: dataCols.length }) + (allValues.length > 0 ? chartString(options, "valuesRange", { v1: extremeText(vMin), v2: extremeText(vMax) }) : "") + (invertedRows.length > 0 ? chartString(options, "invertedRowsDesc", { v1: invertedRows.map((r) => r.label).join(", ") }) : "") + chartString(options, "rowMeansSentence", { v1: dataRows.map((r) => {
|
|
935
997
|
let mean = rowMeans[r.id];
|
|
936
|
-
return `${r.label} ${mean == null ? NOT_AVAILABLE :
|
|
998
|
+
return `${r.label} ${mean == null ? NOT_AVAILABLE : readingText(mean, r)}`;
|
|
937
999
|
}).join(", ") }) + (hiddenCells.length > 0 && options.heatKey === void 0 ? ` ${options.strings?.hiddenLabels ?? HIDDEN_LABEL_LEAD}: ${hiddenCells.map(hiddenItem).join(", ")}.` : "");
|
|
938
|
-
return {
|
|
1000
|
+
return withUnprintedClaims({
|
|
939
1001
|
type: "heatmap",
|
|
940
1002
|
size,
|
|
941
1003
|
sizing: rowSizing("heatmap", size, {
|
|
@@ -948,7 +1010,12 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
948
1010
|
harveyList ? (() => {
|
|
949
1011
|
let w = size.width - plot0.w + gridW + KEY_TEXT_GAP + 5 + Math.max(0, maxOf(rowLines.map((label) => label.w)), maxOf(colLines.map((label) => label.w - gridW - KEY_TEXT_GAP - 5)));
|
|
950
1012
|
return { minWidth: w, naturalWidth: w };
|
|
951
|
-
})() :
|
|
1013
|
+
})() : (() => {
|
|
1014
|
+
let heads = colLines.map((label) => tierTicks.length ? label.w / 2 : label.w), chromeW = size.width - gridRoom, widths = matrixWidths(chromeW - (rowBandW - rowBandFloor), cols.length, CELL_GAP, heads, valueCellW);
|
|
1015
|
+
if (!tracks) return widths;
|
|
1016
|
+
let free = Math.max(28, valueCellW, maxOf(heads));
|
|
1017
|
+
return { ...widths, naturalWidth: chromeW + tracks.widths.reduce((sum, width, ci) => sum + (tracks.authored[ci] ? width : free), 0) + (cols.length - 1) * CELL_GAP };
|
|
1018
|
+
})(),
|
|
952
1019
|
size.width,
|
|
953
1020
|
rowSuffixShort
|
|
954
1021
|
)
|
|
@@ -996,7 +1063,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
996
1063
|
occupied: occupied.snapshot(),
|
|
997
1064
|
decisions: [...solved.decisions, ...annResult.decisions]
|
|
998
1065
|
}
|
|
999
|
-
};
|
|
1066
|
+
}, withheld.flatMap((request) => requestClaims(request, options) ?? []));
|
|
1000
1067
|
function measureBubbleValue(text, radius) {
|
|
1001
1068
|
let size2 = measure(text, valueLabelFont), inside = bubbleStyle ? Math.hypot(size2.width / 2 + 1, 0.35 * size2.height) <= radius + VALUE_OVERHANG : Math.hypot(size2.width / 2 + 1, size2.height / 2 + 1) <= radius, beside = !inside && radius + 2 + size2.width <= cellW / 2 && size2.height <= cellH;
|
|
1002
1069
|
return { size: size2, inside, beside };
|
|
@@ -1133,6 +1200,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1133
1200
|
lines: [text],
|
|
1134
1201
|
font: valueLabelFont,
|
|
1135
1202
|
priority: cell.meta?.priority ?? (cell.v === extremeMax || cell.v === extremeMin ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(cell.v))) + bonus(r.id, c.id),
|
|
1203
|
+
...bonus(r.id, c.id) > 0 ? { keepWhenDense: !0 } : {},
|
|
1136
1204
|
candidates: [inside ? { slot: "insideCenter", rect: { x: cx - tsize.width / 2, y: cy - tsize.height / 2, w: tsize.width, h: tsize.height }, penalty: 0, insideFill, insidePaint: low ? { token: "background" } : paint } : { slot: "right", rect: { x: besideX, y: cy - tsize.height / 2, w: tsize.width, h: tsize.height }, penalty: 0 }]
|
|
1137
1205
|
});
|
|
1138
1206
|
}
|
|
@@ -1235,9 +1303,9 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1235
1303
|
return pct && (!example || specUnitKind(parseFormatExample(example)) === "number") && !(step.sign && percentNamedByUnit) ? `${text}%` : text;
|
|
1236
1304
|
}
|
|
1237
1305
|
}
|
|
1238
|
-
function measureRowLabels(cells, textFor, font, measure,
|
|
1239
|
-
return cells.map((cell) => {
|
|
1240
|
-
let text = cell.meta?.label === !1 ? null : cell.v === null ? "\u2013" : textFor(cell.v, cell.pct, cell.meta);
|
|
1306
|
+
function measureRowLabels(cells, textFor, font, measure, widthOf, height, air = 2) {
|
|
1307
|
+
return cells.map((cell, ci) => {
|
|
1308
|
+
let width = widthOf(ci), text = cell.meta?.label === !1 ? null : cell.v === null ? "\u2013" : textFor(cell.v, cell.pct, cell.meta);
|
|
1241
1309
|
if (!text) return null;
|
|
1242
1310
|
let size = measure(text, font);
|
|
1243
1311
|
return { text, size, fits: size.width + air <= width && size.height + 2 <= height };
|