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,7 +1,8 @@
|
|
|
1
1
|
import { type IdentityCollectionOptions, type SeriesIdentity as LegendItemInput } from './seriesIdentity.js';
|
|
2
2
|
import type { Margin, Rect, Size } from './geometry.js';
|
|
3
3
|
import type { TextMeasurer } from './text.js';
|
|
4
|
-
import { type ChartCredit
|
|
4
|
+
import { type ChartCredit } from './notes.js';
|
|
5
|
+
import { type NoteCapOptions } from './frameText.js';
|
|
5
6
|
import type { Id } from './types/cell.js';
|
|
6
7
|
import type { BaseOptions, LegendOptions, Subtitle } from './types/options.js';
|
|
7
8
|
import type { FrameGeometry, Geometry, LayoutResult, LegendGeometry, LintWarning, PlacedLabel, SceneNode } from './types/scene.js';
|
|
@@ -17,11 +18,13 @@ type LegendOptionInput = 'none' | 'auto' | LegendOptions['position'] | LegendOpt
|
|
|
17
18
|
/**
|
|
18
19
|
* A key the chart cannot be read without: a map's range and no-data encoding,
|
|
19
20
|
* or a colour, hatch or glyph that no mark names. It cannot be hidden. 'none'
|
|
20
|
-
* is answered with
|
|
21
|
+
* is answered with a warning, since the drawing differs from the spec, and the key at the theme's required position
|
|
21
22
|
* (top by default: one row above the plot, which keeps the plot's width).
|
|
22
23
|
* `reason` completes "the legend cannot be hidden because ...".
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
/** The chart types whose key `legend: 'none'` cannot hide; each names its own `<type>-legend-required` code. */
|
|
26
|
+
export type KeyRequiredType = 'bartable' | 'choropleth' | 'cohort' | 'heatmap' | 'pareto' | 'status' | 'table' | 'tilemap' | 'variance' | 'waffle' | 'waterfall';
|
|
27
|
+
export declare function legendRequired(option: LegendOptionInput, warnings: LintWarning[], chartType: KeyRequiredType, theme?: Theme, reason?: string): LegendOptions;
|
|
25
28
|
/**
|
|
26
29
|
* `legend: 'none'` drops the key of a table, heatmap, cohort or
|
|
27
30
|
* variance for a host that draws its own. One info lint names what it left
|
|
@@ -32,6 +35,7 @@ export declare function normalizeLegendOption(option: Exclude<LegendOptionInput,
|
|
|
32
35
|
export declare function normalizeLegendOption(option: Exclude<LegendOptionInput, 'none'>, defaultOptions: LegendOptions): LegendOptions;
|
|
33
36
|
export declare function normalizeLegendOption(option: LegendOptionInput, defaultOptions?: LegendOptions): LegendOptions | undefined;
|
|
34
37
|
export type { SeriesIdentity as LegendItemInput } from './seriesIdentity.js';
|
|
38
|
+
export { cappedItems, DEFAULT_NOTE_LIMIT, fittedNote, frameRendersUnit, HIDDEN_LABEL_LEAD, moreListedText, noteCap, subtitleLine, subtitleUnitClause, unitPrinted, type NoteCapOptions, } from './frameText.js';
|
|
35
39
|
/**
|
|
36
40
|
* The share of the chart width a plot block keeps beside a key column that a spec names. The block
|
|
37
41
|
* holds the axis labels, so this is the lint's 62% floor for the drawn plot plus their gutter.
|
|
@@ -97,6 +101,8 @@ export interface FrameInput extends IdentityCollectionOptions, CompactSourceOpti
|
|
|
97
101
|
credit?: ChartCredit;
|
|
98
102
|
/** `options.notes`: the footer rule's placement, line budget, kinds shown and pointer. */
|
|
99
103
|
notes?: BaseOptions['notes'];
|
|
104
|
+
/** The author wrote `notes.show`: only then do its disclosures print outside the line budget. */
|
|
105
|
+
notesShowAuthored?: boolean;
|
|
100
106
|
/** Built-in wording for the renderer-composed labels this frame draws. */
|
|
101
107
|
strings?: BaseOptions['strings'];
|
|
102
108
|
footnotes?: string[];
|
|
@@ -157,6 +163,8 @@ export interface FrameInput extends IdentityCollectionOptions, CompactSourceOpti
|
|
|
157
163
|
};
|
|
158
164
|
/** The layout chose the key beside the plot itself, and checks the room itself: no fallback to the row above the plot. */
|
|
159
165
|
sideKeyFixed?: boolean;
|
|
166
|
+
/** The chart does not fit its width with the key beside the plot: the key stands in the row above the plot. */
|
|
167
|
+
sideKeyGivesWay?: boolean;
|
|
160
168
|
/** Automatic legend keys use the footnote token ('compact': the smaller of it and the secondary step); explicit keys keep axis type. */
|
|
161
169
|
legendFont?: 'footnote' | 'compact';
|
|
162
170
|
theme: Theme;
|
|
@@ -252,7 +260,7 @@ export declare function frameTextOptions(options: Pick<BaseOptions, Exclude<Fram
|
|
|
252
260
|
mode?: unknown;
|
|
253
261
|
theme?: ThemeRef;
|
|
254
262
|
[LEGEND_HEIGHT]?: LegendBudget;
|
|
255
|
-
}): Pick<FrameInput, FrameTextKey | 'footnotesOff' | 'numberedFootnotes' | 'unreferencedNotes' | 'pointedNotes' | 'legendFont' | 'compactTitleSize' | typeof CUT_LABEL_NOTES | typeof LEGEND_HEIGHT> & IdentityCollectionOptions & CompactSourceOptions;
|
|
263
|
+
}): Pick<FrameInput, FrameTextKey | 'notesShowAuthored' | 'footnotesOff' | 'numberedFootnotes' | 'unreferencedNotes' | 'pointedNotes' | 'legendFont' | 'compactTitleSize' | typeof CUT_LABEL_NOTES | typeof LEGEND_HEIGHT> & IdentityCollectionOptions & CompactSourceOptions;
|
|
256
264
|
export interface FrameResult {
|
|
257
265
|
/** Pixels the frame band lacks to give the plot its 10px minimum; absent when it fits. */
|
|
258
266
|
deficit?: number;
|
|
@@ -267,7 +275,7 @@ export interface FrameResult {
|
|
|
267
275
|
export declare const plotChromeFloor: WeakMap<object, number>;
|
|
268
276
|
/** A raw layout already repeated at its final automatic height, without retained retry state. */
|
|
269
277
|
export declare const settledAutoHeight: WeakSet<FrameGeometry>;
|
|
270
|
-
export { freedChromeOf, recordFreedChrome } from './footer.js';
|
|
278
|
+
export { freedChromeOf, recordFreedChrome, slotDemandHeight } from './footer.js';
|
|
271
279
|
/** Call only when the chrome certifies that smaller heights cannot keep the plot floor. */
|
|
272
280
|
export declare function fixedPlotChrome(result: FrameResult, reserve?: number): void;
|
|
273
281
|
export { wrapFootnote } from './footer.js';
|
|
@@ -279,21 +287,6 @@ export { wrapFootnote } from './footer.js';
|
|
|
279
287
|
* drawing its axes into the footer.
|
|
280
288
|
*/
|
|
281
289
|
export declare function plotHeightAfter(frameResult: FrameResult, canvasH: number, h: number): number;
|
|
282
|
-
export declare function subtitleUnitClause(unit: string, measure: string): string;
|
|
283
|
-
/**
|
|
284
|
-
* Does the subtitle print the unit clause for this exact measure and unit?
|
|
285
|
-
* Callers use the same predicate before moving a unit out of endpoint labels
|
|
286
|
-
* or table headers. A subtitle can still render when this returns false.
|
|
287
|
-
*/
|
|
288
|
-
export declare function frameRendersUnit(input: Pick<FrameInput, 'subtitle' | 'unit'>): boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Is the unit printed outside the labels: by the subtitle, or by the host
|
|
291
|
-
* under `options.unitShown`? Endpoint labels, table heads and the legend
|
|
292
|
-
* check read this, so no label repeats a unit the reader already sees.
|
|
293
|
-
*/
|
|
294
|
-
export declare function unitPrinted(input: Pick<FrameInput, 'subtitle' | 'unit'> & {
|
|
295
|
-
unitShown?: boolean;
|
|
296
|
-
}): boolean;
|
|
297
290
|
/**
|
|
298
291
|
* `unit-not-shown`: an authored options.unit printed
|
|
299
292
|
* nowhere on the drawing. The subtitle prints it only beside a measure, so a
|
|
@@ -335,41 +328,8 @@ export declare function unitInFormatLints(options: Record<string, unknown> | und
|
|
|
335
328
|
* not print a second one.
|
|
336
329
|
*/
|
|
337
330
|
export declare function noteLine(lead: string, items: readonly string[], options?: NoteCapOptions, total?: number): string[];
|
|
338
|
-
/**
|
|
339
|
-
* a capped list note names as many items as fit `fits` (two footer lines at
|
|
340
|
-
* the drawn width), at most noteCap, in its order, then "and N more"; a lone last item only when
|
|
341
|
-
* it fits. When not even one name fits, the note counts: "18 of 36 values", else "18 items".
|
|
342
|
-
*/
|
|
343
|
-
export declare function fittedNote(list: NoteList, fits: (text: string) => boolean): string;
|
|
344
331
|
/** `noteLine` for values the drawing does not print and no label stands for: the `values-in-note` warning lists them. */
|
|
345
332
|
export declare function valueNoteLine(lead: string, items: readonly string[], options?: NoteCapOptions, total?: number): string[];
|
|
346
|
-
/** What a note line reads from the options: how many items it names, and the wording of its count. */
|
|
347
|
-
export interface NoteCapOptions {
|
|
348
|
-
notes?: {
|
|
349
|
-
maxListed?: number | 'all';
|
|
350
|
-
};
|
|
351
|
-
strings?: {
|
|
352
|
-
moreListed?: string;
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* Items a note line names by default: the first 8 in the note's order, then
|
|
357
|
-
* "and N more"; the reading keeps the full list. An author-set `notes.maxListed` wins: 'all'
|
|
358
|
-
* names every item, 0 names none and counts them ("18 of 36 values").
|
|
359
|
-
*/
|
|
360
|
-
export declare const DEFAULT_NOTE_LIMIT = 8;
|
|
361
|
-
/** The most items one note line names; `Infinity` under `notes.maxListed: 'all'`, 0 under `notes.maxListed: 0`. */
|
|
362
|
-
export declare function noteCap(options?: NoteCapOptions, count?: number): number;
|
|
363
|
-
/** The closing item of a capped list: the count of items left out, or of all items when the line names none. */
|
|
364
|
-
export declare function moreListedText(count: number, options?: NoteCapOptions, alone?: boolean): string;
|
|
365
|
-
/**
|
|
366
|
-
* The items a note line prints: the first `noteCap` items and the count of the rest ("and 3
|
|
367
|
-
* more"). Under `notes.maxListed: 0` it only counts: "18 of 36 values" when the caller knows
|
|
368
|
-
* the `total` of values, else "18 items".
|
|
369
|
-
*/
|
|
370
|
-
export declare function cappedItems(items: readonly string[], options?: NoteCapOptions, total?: number): string[];
|
|
371
|
-
/** The note line the registered layout adds for labels the drawing hid. */
|
|
372
|
-
export declare const HIDDEN_LABEL_LEAD = "Not labelled on the chart";
|
|
373
333
|
/** Measure cut-label disclosures through the existing frame; a pinned canvas keeps its size. */
|
|
374
334
|
export declare function withCutLabelNotes<O extends Pick<BaseOptions, 'notes' | 'footnotes' | 'strings' | 'locale' | 'target' | 'size'>, M extends object, D extends object>(data: unknown, options: O, layout: (options: O) => LayoutResult<M, D>): LayoutResult<M, D>;
|
|
375
335
|
/** A note that cannot fit stays in the result after the footer has used its measured space. */
|
|
@@ -496,7 +456,8 @@ export declare function withNoteInA11y<T extends object>(options: T): T | undefi
|
|
|
496
456
|
* note: the line over the registry's items and `extras` (id and text, in the
|
|
497
457
|
* order to list them), and the footnotes without the line the registry wrote.
|
|
498
458
|
* `counted` holds the ids the cap leaves to its count. The caller marks the
|
|
499
|
-
* labels it names with `markNotedLabels
|
|
459
|
+
* labels it names with `markNotedLabels`, handing it `marks`, so the labels the
|
|
460
|
+
* drawn note leaves to "and N more" read as counted, not listed.
|
|
500
461
|
*/
|
|
501
462
|
export declare function hiddenNoteWith(options: object, extras: readonly {
|
|
502
463
|
id: Id;
|
|
@@ -506,6 +467,7 @@ export declare function hiddenNoteWith(options: object, extras: readonly {
|
|
|
506
467
|
line: string[];
|
|
507
468
|
ids: Set<Id>;
|
|
508
469
|
counted: ReadonlySet<Id>;
|
|
470
|
+
marks: object;
|
|
509
471
|
};
|
|
510
472
|
/**
|
|
511
473
|
* After a run that was handed the note: when the note reached the page (a
|
|
@@ -534,6 +496,16 @@ export declare function unitMissing(options: Record<string, unknown> | undefined
|
|
|
534
496
|
warnings: readonly LintWarning[];
|
|
535
497
|
derived?: unknown;
|
|
536
498
|
}): boolean;
|
|
499
|
+
/**
|
|
500
|
+
* The unit rule on the texts a surface prints: a unit is declared, `unitShown` is not set, and no
|
|
501
|
+
* text carries the unit. `unitMissing` reads them from the drawing; the React table hands its own.
|
|
502
|
+
*/
|
|
503
|
+
export declare function unitUnprinted(options: Record<string, unknown> | undefined, drawn: {
|
|
504
|
+
type?: string;
|
|
505
|
+
refused?: boolean;
|
|
506
|
+
derived?: unknown;
|
|
507
|
+
texts: () => Iterable<string>;
|
|
508
|
+
}): boolean;
|
|
537
509
|
export declare const isPercentUnit: (unit: string) => boolean;
|
|
538
510
|
/**
|
|
539
511
|
* Whether a column prints an absolute figure on its segments: `labels.segment`
|
|
@@ -583,11 +555,6 @@ export declare function textCarriesUnit(text: string, unit: string): boolean;
|
|
|
583
555
|
export declare function textCarriesCohortUnit(text: string, unit: string): boolean;
|
|
584
556
|
/** Every string inside an option value (a subtitle object, a footnote list), in order. */
|
|
585
557
|
export declare function stringsIn(value: unknown): string[];
|
|
586
|
-
/**
|
|
587
|
-
* The subtitle as one plain line, in the order the frame prints it. A fixed slot that misses
|
|
588
|
-
* moves it into the notes list. The unit stays on the canvas as the unit line.
|
|
589
|
-
*/
|
|
590
|
-
export declare function subtitleLine(sub: Subtitle): string;
|
|
591
558
|
/**
|
|
592
559
|
* A band the frame reserves above the footnotes and fills with what the band
|
|
593
560
|
* draws: the event key (core/eventLane) lays itself out at the content width
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { type ChartCredit, type ChartNote, type EngineNoteMeta, type NoteKind, type NoteList, type NotePlacement } from './notes.js';
|
|
2
|
+
import type { FontSpec, TextMeasurer } from './text.js';
|
|
3
|
+
import type { BaseOptions, Subtitle } from './types/options.js';
|
|
4
|
+
import type { LintWarning } from './types/scene.js';
|
|
5
|
+
/**
|
|
6
|
+
* The frame's text decisions: which notes the footer prints, which go to the
|
|
7
|
+
* notes list, the pointer, the source line and the credit. `solveFrame` draws
|
|
8
|
+
* what this returns, and the React table reads it for its HTML footer. It
|
|
9
|
+
* reads no global state: the surface policy and the notes' kinds come in.
|
|
10
|
+
*/
|
|
11
|
+
/** The note line the registered layout adds for labels the drawing hid. */
|
|
12
|
+
export declare const HIDDEN_LABEL_LEAD = "Not labelled on the chart";
|
|
13
|
+
/** How the surface shows the frame: a pinned static image prints every enabled note; a live surface has the 'info' button. */
|
|
14
|
+
export interface FrameTextPolicy {
|
|
15
|
+
/** A static export with a pinned canvas (`staticFrame.pinned`): every enabled note prints, no budget, no pointer. */
|
|
16
|
+
pinned: boolean;
|
|
17
|
+
/** A live React surface (`staticFrame.live`): under 'info' its button lists every note the frame does not print. */
|
|
18
|
+
live: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** One composed note and the kind its composer gave it; a note without `meta` is an author note or a method note. */
|
|
21
|
+
export interface FrameTextNote {
|
|
22
|
+
text: string;
|
|
23
|
+
meta?: EngineNoteMeta;
|
|
24
|
+
}
|
|
25
|
+
export interface FrameTextInput {
|
|
26
|
+
target?: BaseOptions['target'];
|
|
27
|
+
title?: string;
|
|
28
|
+
/** The subtitle, or the unit line the layout composed in its place. */
|
|
29
|
+
subtitle?: Subtitle;
|
|
30
|
+
unit?: string;
|
|
31
|
+
source?: string;
|
|
32
|
+
credit?: ChartCredit;
|
|
33
|
+
notes?: BaseOptions['notes'];
|
|
34
|
+
/** The author wrote `notes.show` (not only `methodNote: true` or a `notes.placement`): its disclosures print outside the line budget. */
|
|
35
|
+
notesShowAuthored?: boolean;
|
|
36
|
+
strings?: BaseOptions['strings'];
|
|
37
|
+
/** The composed notes in order, each with its kind. */
|
|
38
|
+
footnotes: readonly FrameTextNote[];
|
|
39
|
+
footnotesOff?: boolean;
|
|
40
|
+
numberedFootnotes?: readonly string[];
|
|
41
|
+
unreferencedNotes?: readonly number[];
|
|
42
|
+
numberedDisclosures?: readonly number[];
|
|
43
|
+
pointedNotes?: readonly string[];
|
|
44
|
+
/** A fixed compact frame's source retry: 1 fits the source line on one line, 0 leaves it to the host. */
|
|
45
|
+
compactSourceLines?: 0 | 1;
|
|
46
|
+
/** The canvas width the target's default line budget reads. */
|
|
47
|
+
width: number;
|
|
48
|
+
/** The width the footer lines wrap at, and their font. */
|
|
49
|
+
footWidth: number;
|
|
50
|
+
footFont: FontSpec;
|
|
51
|
+
/** The weight a `**bold**` run takes. */
|
|
52
|
+
boldWeight: number;
|
|
53
|
+
measure: TextMeasurer;
|
|
54
|
+
policy: FrameTextPolicy;
|
|
55
|
+
}
|
|
56
|
+
/** A note as the frame sorts and prints it. */
|
|
57
|
+
export interface FrameTextEntry {
|
|
58
|
+
kind: NoteKind;
|
|
59
|
+
text: string;
|
|
60
|
+
short?: string;
|
|
61
|
+
/** The text the footer draws: the number mark, then the short form where the kind prints it. */
|
|
62
|
+
drawn: string;
|
|
63
|
+
ref?: number;
|
|
64
|
+
ranks?: true;
|
|
65
|
+
}
|
|
66
|
+
export interface FrameText {
|
|
67
|
+
title?: string;
|
|
68
|
+
/** The subtitle with its unit clause. */
|
|
69
|
+
subtitle?: SubtitleText;
|
|
70
|
+
placement: NotePlacement;
|
|
71
|
+
/** The measurer the footer lines wrap with: bold runs measure at the bold weight. */
|
|
72
|
+
footMeasure: TextMeasurer;
|
|
73
|
+
/** Every note, sorted by kind. */
|
|
74
|
+
entries: FrameTextEntry[];
|
|
75
|
+
/** The notes printed in the frame, in order, each with its wrapped lines. */
|
|
76
|
+
printed: {
|
|
77
|
+
entry: FrameTextEntry;
|
|
78
|
+
lines: string[];
|
|
79
|
+
}[];
|
|
80
|
+
/** The source line without its pointer, as drawn ("Source: …"), or undefined. */
|
|
81
|
+
sourceText?: string;
|
|
82
|
+
/** A fixed compact frame left the source line to the host. */
|
|
83
|
+
sourceOff: boolean;
|
|
84
|
+
/** The source paragraph: the source line, then the pointer; or the pointer alone. */
|
|
85
|
+
sourceBlock?: string;
|
|
86
|
+
/** The pointer at the end of the source paragraph ("+2 notes"), or undefined. */
|
|
87
|
+
pointer?: string;
|
|
88
|
+
/** The source paragraph's lines (a compact one-line source fits with an ellipsis, `title` then holds its full text). */
|
|
89
|
+
sourceLines: (text: string) => {
|
|
90
|
+
lines: string[];
|
|
91
|
+
title?: string;
|
|
92
|
+
};
|
|
93
|
+
/** The required credit prints in the frame. */
|
|
94
|
+
creditInFrame: boolean;
|
|
95
|
+
/** The pointer is on (no pinned frame, notes not off, `notes.pointer` not false). */
|
|
96
|
+
pointerOn: boolean;
|
|
97
|
+
/** The notes list: every note, then the source, then the credit, each with `inFrame`. */
|
|
98
|
+
noteList: ChartNote[];
|
|
99
|
+
/** The texts of the notes the frame does not print. */
|
|
100
|
+
unprinted: string[];
|
|
101
|
+
warnings: LintWarning[];
|
|
102
|
+
/** A capped list note in a pinned frame: the static footer counts its names. */
|
|
103
|
+
countable: boolean;
|
|
104
|
+
/** List notes the frame fitted to two lines, with the kinds they now carry. */
|
|
105
|
+
marked: {
|
|
106
|
+
text: string;
|
|
107
|
+
meta: EngineNoteMeta;
|
|
108
|
+
}[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Select the frame's notes and source. The footer prints the author's notes
|
|
112
|
+
* within the target's line budget, then the source line, then a required map
|
|
113
|
+
* credit; the rest goes to the notes list and the source line ends with
|
|
114
|
+
* "+N notes".
|
|
115
|
+
*/
|
|
116
|
+
export declare function frameText(input: FrameTextInput): FrameText;
|
|
117
|
+
export declare const listText: (lead: string, items: readonly string[]) => string;
|
|
118
|
+
/**
|
|
119
|
+
* a capped list note names as many items as fit `fits` (two footer lines at
|
|
120
|
+
* the drawn width), at most noteCap, in its order, then "and N more"; a lone last item only when
|
|
121
|
+
* it fits. When not even one name fits, the note counts: "18 of 36 values", else "18 items".
|
|
122
|
+
*/
|
|
123
|
+
export declare function fittedNote(list: NoteList, fits: (text: string) => boolean): string;
|
|
124
|
+
/** The list note that names the first `k` items and counts the rest; with k = 0 it only counts. */
|
|
125
|
+
export declare function listedNoteText({ lead, items, total, options }: NoteList, k: number): string;
|
|
126
|
+
/** What a note line reads from the options: how many items it names, and the wording of its count. */
|
|
127
|
+
export interface NoteCapOptions {
|
|
128
|
+
notes?: {
|
|
129
|
+
maxListed?: number | 'all';
|
|
130
|
+
};
|
|
131
|
+
strings?: {
|
|
132
|
+
moreListed?: string;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Items a note line names by default: the first 8 in the note's order, then
|
|
137
|
+
* "and N more"; the reading keeps the full list. An author-set `notes.maxListed` wins: 'all'
|
|
138
|
+
* names every item, 0 names none and counts them ("18 of 36 values").
|
|
139
|
+
*/
|
|
140
|
+
export declare const DEFAULT_NOTE_LIMIT = 8;
|
|
141
|
+
/** The most items one note line names; `Infinity` under `notes.maxListed: 'all'`, 0 under `notes.maxListed: 0`. */
|
|
142
|
+
export declare function noteCap(options?: NoteCapOptions, count?: number): number;
|
|
143
|
+
/** The closing item of a capped list: the count of items left out, or of all items when the line names none. */
|
|
144
|
+
export declare function moreListedText(count: number, options?: NoteCapOptions, alone?: boolean): string;
|
|
145
|
+
/** The count form of a note under `notes.maxListed: 0`: "18 of 36 values". */
|
|
146
|
+
export declare function countedValuesText(count: number, total: number, options?: NoteCapOptions): string;
|
|
147
|
+
/**
|
|
148
|
+
* The items a note line prints: the first `noteCap` items and the count of the rest ("and 3
|
|
149
|
+
* more"). Under `notes.maxListed: 0` it only counts: "18 of 36 values" when the caller knows
|
|
150
|
+
* the `total` of values, else "18 items".
|
|
151
|
+
*/
|
|
152
|
+
export declare function cappedItems(items: readonly string[], options?: NoteCapOptions, total?: number): string[];
|
|
153
|
+
/** The text with each unit word the engine knows written as its sign: "Conversion percentage" reads "Conversion %". */
|
|
154
|
+
export declare function unitWordsAsSigns(text: string): string;
|
|
155
|
+
/** Does the measure name the unit, as written or as one of the engine's words for it ("percent" for "%")? */
|
|
156
|
+
export declare function measureNamesUnit(unit: string, measure: string): boolean;
|
|
157
|
+
export declare function subtitleUnitClause(unit: string, measure: string): string;
|
|
158
|
+
/**
|
|
159
|
+
* Does the subtitle print the unit clause for this exact measure and unit?
|
|
160
|
+
* Callers use the same predicate before moving a unit out of endpoint labels
|
|
161
|
+
* or table headers. A subtitle can still render when this returns false.
|
|
162
|
+
*/
|
|
163
|
+
export declare function frameRendersUnit(input: {
|
|
164
|
+
subtitle?: Subtitle;
|
|
165
|
+
unit?: string;
|
|
166
|
+
}): boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Is the unit printed outside the labels: by the subtitle, or by the host
|
|
169
|
+
* under `options.unitShown`? Endpoint labels, table heads and the legend
|
|
170
|
+
* check read this, so no label repeats a unit the reader already sees.
|
|
171
|
+
*/
|
|
172
|
+
export declare function unitPrinted(input: {
|
|
173
|
+
subtitle?: Subtitle;
|
|
174
|
+
unit?: string;
|
|
175
|
+
} & {
|
|
176
|
+
unitShown?: boolean;
|
|
177
|
+
}): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* The subtitle as one plain line, in the order the frame prints it. A fixed slot that misses
|
|
180
|
+
* moves it into the notes list. The unit stays on the canvas as the unit line.
|
|
181
|
+
*/
|
|
182
|
+
export declare function subtitleLine(sub: Subtitle): string;
|
|
183
|
+
/**
|
|
184
|
+
* The unit a measure names after its last comma, from the space after the
|
|
185
|
+
* comma (" % of all orders", " EUR m", " in $m"), or ''. A tail that does
|
|
186
|
+
* not read as a unit (", quarterly") stays part of the measure.
|
|
187
|
+
*/
|
|
188
|
+
export declare function measureUnitTail(measure: string, unit: string | undefined): string;
|
|
189
|
+
/** The subtitle as the frame prints it, with bold markers in place. */
|
|
190
|
+
export interface SubtitleText {
|
|
191
|
+
/** The subtitle with its `**bold**` runs marked. */
|
|
192
|
+
sub: Subtitle;
|
|
193
|
+
/** The runs in order: the company, the measure (bold unless it stands alone), then one regular run with the unit clause, period and scenarios. */
|
|
194
|
+
segments: {
|
|
195
|
+
text: string;
|
|
196
|
+
bold: boolean;
|
|
197
|
+
}[];
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Compose the subtitle line: "<company> · <measure> in <unit> · <period> · <scenarios>".
|
|
201
|
+
* The unit clause follows `subtitleUnitClause`.
|
|
202
|
+
*/
|
|
203
|
+
export declare function subtitleText(authored: Subtitle, unit: string | undefined): SubtitleText;
|
|
@@ -38,6 +38,8 @@ export declare function sideAwayFrom(point: Point, others: readonly (readonly Po
|
|
|
38
38
|
* (Liang-Barsky clipping). A label box tested with the stroke's half width
|
|
39
39
|
* plus its air as `pad` touches the drawn line exactly when this is true.
|
|
40
40
|
*/
|
|
41
|
+
/** The part of the segment from `a` to `b` inside `rect` grown by `pad`, as fractions [t0, t1] of it, or undefined when it misses. */
|
|
42
|
+
export declare function segmentSpanInRect(a: Point, b: Point, rect: Rect, pad?: number): [number, number] | undefined;
|
|
41
43
|
export declare function segmentHitsRect(a: Point, b: Point, rect: Rect, pad?: number): boolean;
|
|
42
44
|
/**
|
|
43
45
|
* Whether `rect` grown by `pad` on every side overlaps the convex `polygon`,
|
|
@@ -118,4 +120,4 @@ export declare function strokeBoxPad(width: number, dx: number, dy: number): {
|
|
|
118
120
|
* one clean edge instead of two ragged ones. Making 'right' clean per LINE needs
|
|
119
121
|
* end-anchoring in the shared label emitter, which is a separate change.
|
|
120
122
|
*/
|
|
121
|
-
export declare function rowLabelX(laneX: number, laneW: number, labelW: number, align: 'left' | 'right'): number;
|
|
123
|
+
export declare function rowLabelX(laneX: number, laneW: number, labelW: number, align: 'left' | 'right' | 'center'): number;
|
|
@@ -319,9 +319,26 @@ export declare function rotatedClaimRect(anchorX: number, anchorY: number, lineH
|
|
|
319
319
|
/**
|
|
320
320
|
* How far the first drawn rotated label reaches left of `minX`. A chart
|
|
321
321
|
* widens its left margin by this amount and re-plans, so the name is not
|
|
322
|
-
* clipped at the canvas edge.
|
|
322
|
+
* clipped at the canvas edge. The plot it takes from keeps at least
|
|
323
|
+
* MIN_PLOT_WIDTH of its `plotWidth`: a narrow panel cannot give more, and
|
|
324
|
+
* its floor check refuses or repairs the size instead.
|
|
323
325
|
*/
|
|
324
|
-
export declare function rotatedLeftOverhang(plan: CategoryRowPlan, centers: readonly number[], minX: number): number;
|
|
326
|
+
export declare function rotatedLeftOverhang(plan: CategoryRowPlan, centers: readonly number[], minX: number, plotWidth: number): number;
|
|
327
|
+
/**
|
|
328
|
+
* The room a rotated first name takes from the left of a banded plot. The plot
|
|
329
|
+
* yields it only where the row planned in the narrower plot still turns its
|
|
330
|
+
* names (45° or -90°), so they draw. Elsewhere the room would stand for a name
|
|
331
|
+
* the narrower row does not draw: the plot keeps its width and the row plans
|
|
332
|
+
* upright.
|
|
333
|
+
*/
|
|
334
|
+
export declare function yieldToRotatedName<B extends {
|
|
335
|
+
center(index: number): number;
|
|
336
|
+
}>(plan: CategoryRowPlan, band: B, count: number, x0: number, width: number, bandAt: (x0: number, width: number) => B, planAt: (band: B, rotate?: false) => CategoryRowPlan): {
|
|
337
|
+
plan: CategoryRowPlan;
|
|
338
|
+
band: B;
|
|
339
|
+
x0: number;
|
|
340
|
+
width: number;
|
|
341
|
+
};
|
|
325
342
|
/**
|
|
326
343
|
* The box of a -90° name (CategoryRowPlan rotation 90) as the solver and the
|
|
327
344
|
* label emitter use it: the emitter turns a rotated label about the right
|
|
@@ -29,6 +29,7 @@ import type { Id, OwnerRef, SlotId } from '../types/cell.js';
|
|
|
29
29
|
import type { FocusInput, LabelDensity, LabelKind } from '../types/options.js';
|
|
30
30
|
import type { Paint, PlaceDecision, PlacedLabel, LintWarning, TextRole } from '../types/scene.js';
|
|
31
31
|
import { type OccupiedIndex } from './occupied.js';
|
|
32
|
+
import { HOST_CLAIMS, type HostClaims } from '../claims/ids.js';
|
|
32
33
|
import { type PointOwnershipInput } from './ownership.js';
|
|
33
34
|
/** Normative priority bands. */
|
|
34
35
|
/** The air between two side-by-side values of one series. */
|
|
@@ -49,6 +50,8 @@ export interface SlotCandidate {
|
|
|
49
50
|
slot: SlotId;
|
|
50
51
|
rect: Rect;
|
|
51
52
|
penalty: number;
|
|
53
|
+
/** An authored bar position keeps clear of rules and its own whisker as well as other marks. */
|
|
54
|
+
keepOffLines?: true;
|
|
52
55
|
/** Optional multi-line text override for wrapped candidate slots. */
|
|
53
56
|
lines?: string[];
|
|
54
57
|
/** A deliberate gutter seat, such as a line endpoint. Canvas bounds still apply. */
|
|
@@ -102,6 +105,8 @@ export interface SlotCandidate {
|
|
|
102
105
|
* draws no leader, as a label touching its mark needs none.
|
|
103
106
|
*/
|
|
104
107
|
leaderVertical?: boolean;
|
|
108
|
+
/** A straight leader from `leaderFrom` to this point (a moved value's run from its own bar). */
|
|
109
|
+
leaderTo?: Point;
|
|
105
110
|
/** Upper bound for a custom leader, such as an annotation glyph connector. */
|
|
106
111
|
leaderLengthBound?: number;
|
|
107
112
|
/** How far, in px, a mark value's seat may stand from its natural seat, in place of the label-line steps. */
|
|
@@ -160,7 +165,7 @@ export interface LabelRequest {
|
|
|
160
165
|
}[];
|
|
161
166
|
/** This numeric label names a mark rather than a separate readout rail. false: a name or other text, never bound to the plot. */
|
|
162
167
|
markAnchored?: boolean;
|
|
163
|
-
/** Authored value text
|
|
168
|
+
/** Authored value text and a highlighted value stay eligible when the planner ranks engine values, and pass the 'minimal' density gate. */
|
|
164
169
|
keepWhenDense?: true;
|
|
165
170
|
/** An engine value outside the guaranteed set, or one its chart already reports lost: with no free seat it drops as `density` and the frame notes it. */
|
|
166
171
|
quietWhenCrowded?: true;
|
|
@@ -200,7 +205,8 @@ export interface LabelRequest {
|
|
|
200
205
|
printedIn?: Id;
|
|
201
206
|
/** The marks whose value this label prints (PlacedLabel.printsFor). */
|
|
202
207
|
printsFor?: OwnerRef[];
|
|
203
|
-
|
|
208
|
+
/** The claims whose number this label prints (src/core/claims/ids.ts). */
|
|
209
|
+
claimIds?: readonly Id[];
|
|
204
210
|
claimText?: string;
|
|
205
211
|
noteText?: string;
|
|
206
212
|
/** A reader loses this value when it is hidden: the note line names it (class 2), with `noteText`. */
|
|
@@ -260,6 +266,8 @@ export interface LabelRequest {
|
|
|
260
266
|
w?: number;
|
|
261
267
|
h?: number;
|
|
262
268
|
};
|
|
269
|
+
/** The point on its mark a label's leader starts from once labelOffsets moves it, where the request has no anchor (a callout). Read by moves only. */
|
|
270
|
+
movedLeaderFrom?: Point;
|
|
263
271
|
/**
|
|
264
272
|
* The label's drawn leader crosses no other label: a seat whose leader
|
|
265
273
|
* would is passed over, and a placed leader claims its run, so no later
|
|
@@ -277,9 +285,19 @@ export interface LabelRequest {
|
|
|
277
285
|
/** With `leaderClear`: a seat whose leader crosses an axis tick label is passed over too, such as a rank number. */
|
|
278
286
|
leaderClearsAxis?: boolean;
|
|
279
287
|
}
|
|
288
|
+
export type LabelOffset = {
|
|
289
|
+
x?: number;
|
|
290
|
+
y?: number;
|
|
291
|
+
};
|
|
280
292
|
export interface SolveCtx {
|
|
293
|
+
/** Internal: a host chart names the claims of the labels (claims/ids.ts). */
|
|
294
|
+
[HOST_CLAIMS]?: HostClaims;
|
|
281
295
|
density: LabelDensity;
|
|
282
296
|
pins: Record<Id, SlotId>;
|
|
297
|
+
/** Authored moves by label id, in px (options.labelOffsets). A move that is blocked keeps the chosen seat and warns. */
|
|
298
|
+
labelOffsets?: Record<Id, LabelOffset>;
|
|
299
|
+
/** Internal: each label's seat without any offset. A move may not land on another label's seat, placed yet or not. */
|
|
300
|
+
naturalSeats?: ReadonlyMap<Id, Rect>;
|
|
283
301
|
measure: TextMeasurer;
|
|
284
302
|
plot: Rect;
|
|
285
303
|
/** Full canvas — candidates outside it are rejected. */
|
|
@@ -309,11 +327,13 @@ export interface SolveCtx {
|
|
|
309
327
|
/**
|
|
310
328
|
* Ordered computed rows: keep all, every second from the end when allowed, or none.
|
|
311
329
|
* `keepEnds` makes a row that is omitted keep its first and last value.
|
|
330
|
+
* `from` starts the row at a later step, for a chart whose floor the full row would put above the width.
|
|
312
331
|
*/
|
|
313
332
|
valueRows?: {
|
|
314
333
|
ids: readonly Id[];
|
|
315
334
|
alternate?: boolean;
|
|
316
335
|
keepEnds?: boolean;
|
|
336
|
+
from?: 'alternate' | 'none';
|
|
317
337
|
}[];
|
|
318
338
|
/**
|
|
319
339
|
* The drawn line points of the plot. With it, a value
|
|
@@ -328,6 +348,7 @@ interface LabelCtxOptions {
|
|
|
328
348
|
focus?: FocusInput | null;
|
|
329
349
|
labelDensity?: LabelDensity;
|
|
330
350
|
labelPlacements?: Record<Id, SlotId>;
|
|
351
|
+
labelOffsets?: Record<Id, LabelOffset>;
|
|
331
352
|
}
|
|
332
353
|
/**
|
|
333
354
|
* A chart's solver context: the authored focus, density and pins, the canvas
|
|
@@ -31,13 +31,23 @@ export declare function normalizedNumber(raw: unknown, path: string): number;
|
|
|
31
31
|
/** Scenario aliases. */
|
|
32
32
|
export declare function normalizeScenario(s: string | undefined, path: string, namedBaseline?: string): Scenario | undefined;
|
|
33
33
|
/** Category shorthands. */
|
|
34
|
+
/**
|
|
35
|
+
* A series a bar or column ranks and cuts by: every series but a reference. The
|
|
36
|
+
* topN cut and the item budget both read it, so the budget counts what the cut keeps.
|
|
37
|
+
*/
|
|
38
|
+
export declare const ranksCategories: (series: {
|
|
39
|
+
role?: string;
|
|
40
|
+
}) => boolean;
|
|
34
41
|
export declare function normalizeCategory(raw: string | Category, index: number): Category;
|
|
35
42
|
/** Bare number ⇒ NumberCell; null passes through. */
|
|
36
43
|
export declare function normalizeCell(raw: unknown, path: string): Cell;
|
|
37
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Point-keyed values ⇒ positional. A refusal points at data.series[seriesIndex], or, when the caller
|
|
46
|
+
* passes the authored list, at the index of `series` in it; null means the caller cannot know the authored item.
|
|
47
|
+
*/
|
|
38
48
|
export declare function normalizeSeriesValues(series: Series & {
|
|
39
49
|
values: unknown;
|
|
40
|
-
}, categories: Category[], seriesIndex: number): Cell[];
|
|
50
|
+
}, categories: Category[], seriesIndex: number, field?: 'values' | 'negative', authored?: readonly unknown[] | null): Cell[];
|
|
41
51
|
/** Convert an authored frame to layout pixels. */
|
|
42
52
|
export declare function resolveSize(size: BaseOptions['size'], target?: RenderTarget): Size;
|
|
43
53
|
/** Apply outer margins before layouts reserve space for their own labels. */
|
|
@@ -54,3 +64,5 @@ export declare function resolveSubtitle(subtitle: BaseOptions['subtitle']): Subt
|
|
|
54
64
|
export declare function formatScenarios(scenarios: readonly string[]): string;
|
|
55
65
|
/** Highlight singleton. */
|
|
56
66
|
export declare function resolveHighlight(h: BaseOptions['highlight']): Id[];
|
|
67
|
+
/** A copy with a repeat's placeholder filled in, in every string. Object keys and array order stay. */
|
|
68
|
+
export declare function substitute(value: unknown, placeholder: string, replacement: string): unknown;
|
|
@@ -81,12 +81,19 @@ export declare function footerParts(notes: readonly ChartNote[], placement: Note
|
|
|
81
81
|
* note the static footer does not print. A note it prints (a compact note can repeat one) stays out.
|
|
82
82
|
*/
|
|
83
83
|
export declare function unprintedNotes(notes: readonly ChartNote[]): ChartNote[];
|
|
84
|
+
/**
|
|
85
|
+
* Set by a composing chart on the options it hands its host, beside the `notes.show`
|
|
86
|
+
* it writes for a `methodNote: true` or a `notes.placement`: no author wrote that list,
|
|
87
|
+
* so the host's live frame prints those disclosures within the line budget.
|
|
88
|
+
*/
|
|
89
|
+
export declare const NOTES_ASKED: unique symbol;
|
|
84
90
|
type NoteAsk = {
|
|
85
91
|
methodNote?: unknown;
|
|
86
92
|
notes?: {
|
|
87
93
|
show?: readonly string[];
|
|
88
94
|
placement?: unknown;
|
|
89
95
|
};
|
|
96
|
+
[NOTES_ASKED]?: true;
|
|
90
97
|
} | undefined;
|
|
91
98
|
/**
|
|
92
99
|
* The note kinds the chart prints: `notes.show`, else every engine note where
|
|
@@ -94,7 +101,11 @@ type NoteAsk = {
|
|
|
94
101
|
* `notes.placement`), else undefined (author notes only).
|
|
95
102
|
*/
|
|
96
103
|
export declare function shownNoteKinds(options: NoteAsk): readonly string[] | undefined;
|
|
97
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* The options a composing chart hands its host chart, with the note kinds its
|
|
106
|
+
* author asked for. A list the author did not write carries NOTES_ASKED, so the
|
|
107
|
+
* host keys its marks as before and only its live line budget tells the two apart.
|
|
108
|
+
*/
|
|
98
109
|
export declare function keepShownNotes<T extends object>(options: NoteAsk, passed: T): T;
|
|
99
110
|
/**
|
|
100
111
|
* True where the author prints the engine's disclosures (`notes.show` lists
|
|
@@ -122,6 +133,8 @@ export declare function rankKeyShown(options: {
|
|
|
122
133
|
show?: readonly string[];
|
|
123
134
|
};
|
|
124
135
|
} | undefined): boolean;
|
|
136
|
+
/** The label of the button that opens the notes panel under 'info': "Notes and sources (3)". */
|
|
137
|
+
export declare function notesPanelLabel(count: number, word: string): string;
|
|
125
138
|
/** The pointer to the notes list. */
|
|
126
139
|
export declare function notesPointer(count: number, strings?: StringsSpec): string;
|
|
127
140
|
/** A capped list note: the frame names as many of its items as fit two footer lines. */
|
|
@@ -131,7 +144,7 @@ export interface NoteList {
|
|
|
131
144
|
total?: number;
|
|
132
145
|
options: object;
|
|
133
146
|
}
|
|
134
|
-
interface EngineNoteMeta {
|
|
147
|
+
export interface EngineNoteMeta {
|
|
135
148
|
kind: 'note' | 'method' | 'disclosure';
|
|
136
149
|
short?: string;
|
|
137
150
|
values?: readonly string[];
|
|
@@ -8,8 +8,9 @@ import type { StackReadout } from './charts/grid/metricStack.js';
|
|
|
8
8
|
*/
|
|
9
9
|
import { type ClaimRecordV1 } from './claims/browser.js';
|
|
10
10
|
import { type ChartNote } from './notes.js';
|
|
11
|
+
import type { InteractionRecord } from './a11y/types.js';
|
|
11
12
|
import type { RoundingAdjustment } from './shareRounding.js';
|
|
12
|
-
import type
|
|
13
|
+
import { type ResolvedChartRequest } from './request.js';
|
|
13
14
|
import type { Geometry } from './types/scene.js';
|
|
14
15
|
import type { StructureCount } from './structureCounts.js';
|
|
15
16
|
export type { StructureCount } from './structureCounts.js';
|
|
@@ -29,6 +30,8 @@ interface DerivedNumber {
|
|
|
29
30
|
op: string;
|
|
30
31
|
operation: string;
|
|
31
32
|
displayed: string;
|
|
33
|
+
/** What the value means in words, where the chart type has a description; `displayed` is the printed text. */
|
|
34
|
+
description?: string;
|
|
32
35
|
/** Whether a final label or other published text displays this calculation. */
|
|
33
36
|
visible: boolean;
|
|
34
37
|
/** Destination when the displayed value is published in a note. */
|
|
@@ -115,6 +118,14 @@ interface ChartReadingInput {
|
|
|
115
118
|
request: ResolvedChartRequest;
|
|
116
119
|
geometry: Geometry;
|
|
117
120
|
claims: readonly ClaimRecordV1[];
|
|
121
|
+
/** The chart's records when the caller built them already (chartRecords). */
|
|
122
|
+
records?: ChartRecords;
|
|
118
123
|
}
|
|
124
|
+
type ChartRecords = {
|
|
125
|
+
records: InteractionRecord[] | null;
|
|
126
|
+
note?: string;
|
|
127
|
+
};
|
|
128
|
+
/** The chart's interaction records, without annotation records; null with a note where no adapter covers the type. */
|
|
129
|
+
export declare function chartRecords(input: Omit<ChartReadingInput, 'name' | 'records'>): ChartRecords;
|
|
119
130
|
/** One chart's reading, from its accepted layout. */
|
|
120
131
|
export declare function chartReading(input: ChartReadingInput): ChartReading;
|