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
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
seatValuesOnGround,
|
|
14
14
|
shadesFills,
|
|
15
15
|
withoutEvents
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7NYUFMLJ.js";
|
|
17
17
|
import {
|
|
18
18
|
preparePolyline
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OZA7HA6L.js";
|
|
20
20
|
import {
|
|
21
21
|
FORCE_CATEGORY_RANKS,
|
|
22
22
|
STAIRCASE,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
staircaseRoom,
|
|
34
34
|
staircaseState,
|
|
35
35
|
withCategoryRanks
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FWTUGNSF.js";
|
|
37
37
|
import {
|
|
38
38
|
ANOMALY_FLAG_GAP,
|
|
39
39
|
ANOMALY_FLAG_H,
|
|
@@ -50,10 +50,10 @@ import {
|
|
|
50
50
|
lineAnomalyFurniture,
|
|
51
51
|
refuseAnomalySpec,
|
|
52
52
|
seatFlaggedValues
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-QMFWZG2P.js";
|
|
54
54
|
import {
|
|
55
55
|
stackSegmentCandidates
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-BCMEGJRX.js";
|
|
57
57
|
import {
|
|
58
58
|
REFERENCE_MARKER_R,
|
|
59
59
|
rankValueLabels,
|
|
@@ -62,20 +62,25 @@ import {
|
|
|
62
62
|
referenceMarkerPaint,
|
|
63
63
|
referenceTickGeometry,
|
|
64
64
|
withBandValueNotes
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-44K75CYE.js";
|
|
66
66
|
import {
|
|
67
67
|
cellFields,
|
|
68
68
|
normalizeCategorySeries
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-2CQBBN7M.js";
|
|
70
70
|
import {
|
|
71
71
|
unitConflict,
|
|
72
72
|
unitConflictRefusal
|
|
73
73
|
} from "./chunk-DZ3S4RPI.js";
|
|
74
|
+
import {
|
|
75
|
+
hasLabelPosition,
|
|
76
|
+
positionBarLabel,
|
|
77
|
+
refuseLabelPosition
|
|
78
|
+
} from "./chunk-76GPN6AT.js";
|
|
74
79
|
import {
|
|
75
80
|
roundingUnavailable,
|
|
76
81
|
shareRoundingNotes,
|
|
77
82
|
sumConsistentShares
|
|
78
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-MXUPMGRY.js";
|
|
79
84
|
import {
|
|
80
85
|
averageMarkerLine,
|
|
81
86
|
averageMarkerMean,
|
|
@@ -86,12 +91,12 @@ import {
|
|
|
86
91
|
sk,
|
|
87
92
|
stackParts,
|
|
88
93
|
warnIncompleteStacks
|
|
89
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-ETUKDEGL.js";
|
|
90
95
|
import {
|
|
91
96
|
applyCategoryViewport,
|
|
92
97
|
liveWindowOptions,
|
|
93
98
|
viewportMeanSpan
|
|
94
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-JNDWRV34.js";
|
|
95
100
|
import {
|
|
96
101
|
haloOverRules,
|
|
97
102
|
linesSize,
|
|
@@ -99,32 +104,32 @@ import {
|
|
|
99
104
|
valueRowCrowded,
|
|
100
105
|
valueShareLines,
|
|
101
106
|
warnShareParts
|
|
102
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-SZ5VGWDY.js";
|
|
103
108
|
import {
|
|
104
109
|
valueLineExtent
|
|
105
110
|
} from "./chunk-QPWRHDLZ.js";
|
|
106
111
|
import {
|
|
107
112
|
isIncomplete
|
|
108
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-AICO24HJ.js";
|
|
109
114
|
import {
|
|
110
115
|
emitEventLane,
|
|
111
116
|
percentLevels,
|
|
112
117
|
runAnnotatePass,
|
|
113
118
|
settleEventLane
|
|
114
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-FP5B5XIL.js";
|
|
115
120
|
import {
|
|
116
121
|
stepDownFont
|
|
117
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-6ZDSEITW.js";
|
|
118
123
|
import {
|
|
119
124
|
breakUnsupported,
|
|
120
125
|
chartPalette,
|
|
121
126
|
chartTheme
|
|
122
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-WFBN2HXR.js";
|
|
123
128
|
import {
|
|
124
129
|
NO_STACK_MEAN,
|
|
125
130
|
noTotal,
|
|
126
131
|
stackAdds
|
|
127
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-5ACFYNA4.js";
|
|
128
133
|
import {
|
|
129
134
|
categoryTargetFields,
|
|
130
135
|
spliceAnnotationNodes
|
|
@@ -134,13 +139,10 @@ import {
|
|
|
134
139
|
VALUE_LINE_RESERVE,
|
|
135
140
|
hiddenValueLineReserve,
|
|
136
141
|
namedLineText
|
|
137
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-E5YF236N.js";
|
|
138
143
|
import {
|
|
139
144
|
structureCount
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import {
|
|
142
|
-
emptyIdRecord
|
|
143
|
-
} from "./chunk-LINZPU5D.js";
|
|
145
|
+
} from "./chunk-KW4JXWHO.js";
|
|
144
146
|
import {
|
|
145
147
|
CATEGORY_ROW_FROM_END,
|
|
146
148
|
CATEGORY_ROW_VERTICAL,
|
|
@@ -167,17 +169,18 @@ import {
|
|
|
167
169
|
planCategoryRow,
|
|
168
170
|
plotFloorRows,
|
|
169
171
|
rotatedClaimRect,
|
|
170
|
-
rotatedLeftOverhang,
|
|
171
172
|
sweepHide,
|
|
172
173
|
tickFormatter,
|
|
173
174
|
verticalNameRect,
|
|
174
|
-
yearRowRequests
|
|
175
|
-
|
|
175
|
+
yearRowRequests,
|
|
176
|
+
yieldToRotatedName
|
|
177
|
+
} from "./chunk-ETRAPN5G.js";
|
|
176
178
|
import {
|
|
177
179
|
AREA_FILL_PART,
|
|
178
180
|
DEFER_DENSITY_NOTES,
|
|
179
181
|
DENSITY_LAYOUT_OPTIONS,
|
|
180
182
|
DENSITY_VALUES,
|
|
183
|
+
HOST_CLAIMS,
|
|
181
184
|
LAST_RESORT_PENALTY,
|
|
182
185
|
PARTIAL_KEY,
|
|
183
186
|
POINTED_NOTES,
|
|
@@ -185,10 +188,7 @@ import {
|
|
|
185
188
|
authoredFootnoteCount,
|
|
186
189
|
authoredNotes,
|
|
187
190
|
categoryLabelsAndMarks,
|
|
188
|
-
cleanSum,
|
|
189
191
|
composedTextRole,
|
|
190
|
-
createOccupiedIndex,
|
|
191
|
-
defaultAnnotationId,
|
|
192
192
|
frameTextOptions,
|
|
193
193
|
labelsToNodes,
|
|
194
194
|
normalizeLegendOption,
|
|
@@ -201,13 +201,9 @@ import {
|
|
|
201
201
|
partialLegendKeys,
|
|
202
202
|
partialPattern,
|
|
203
203
|
plotHeightAfter,
|
|
204
|
-
rectContains,
|
|
205
204
|
rectSeriesAdjacentWarnings,
|
|
206
|
-
rectsOverlap,
|
|
207
|
-
round2,
|
|
208
205
|
saysToDate,
|
|
209
206
|
scenarioLegendKeys,
|
|
210
|
-
sideAwayFrom,
|
|
211
207
|
solveFrame,
|
|
212
208
|
solveLabels,
|
|
213
209
|
textCarriesUnit,
|
|
@@ -216,7 +212,7 @@ import {
|
|
|
216
212
|
toDateRoom,
|
|
217
213
|
withAuthoredFootnotes,
|
|
218
214
|
withCategoryNoteNames
|
|
219
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-I5VDW2XZ.js";
|
|
220
216
|
import {
|
|
221
217
|
copyFrame,
|
|
222
218
|
disclosureNote,
|
|
@@ -225,15 +221,23 @@ import {
|
|
|
225
221
|
rankKeyShown,
|
|
226
222
|
recordFreedChrome,
|
|
227
223
|
wrapFootnote
|
|
228
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-DZYTXZNS.js";
|
|
225
|
+
import {
|
|
226
|
+
defaultAnnotationId
|
|
227
|
+
} from "./chunk-F2ET5ZTT.js";
|
|
228
|
+
import {
|
|
229
|
+
emptyIdRecord
|
|
230
|
+
} from "./chunk-LINZPU5D.js";
|
|
229
231
|
import {
|
|
230
232
|
formatStatWithSpec,
|
|
231
233
|
formatterFromExample,
|
|
232
|
-
|
|
234
|
+
parseFormatExample,
|
|
233
235
|
percentRasterFormatter,
|
|
236
|
+
roundedNumber,
|
|
234
237
|
sameUnit,
|
|
235
|
-
seriesRasterFormatter
|
|
236
|
-
|
|
238
|
+
seriesRasterFormatter,
|
|
239
|
+
unitMagnitude
|
|
240
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
237
241
|
import {
|
|
238
242
|
NOT_AVAILABLE,
|
|
239
243
|
autoDecimals,
|
|
@@ -245,32 +249,38 @@ import {
|
|
|
245
249
|
} from "./chunk-MSYTF3DZ.js";
|
|
246
250
|
import {
|
|
247
251
|
canvasMargin,
|
|
252
|
+
cleanSum,
|
|
253
|
+
colorRolePaints,
|
|
254
|
+
createOccupiedIndex,
|
|
248
255
|
dashToken,
|
|
249
256
|
effectiveFill,
|
|
250
257
|
emphasisWeight,
|
|
251
258
|
labelsOffKeepsNames,
|
|
252
259
|
markOutlineOff,
|
|
253
|
-
markRolePaint,
|
|
254
260
|
markRoleToken,
|
|
255
261
|
mutedMarkPaint,
|
|
256
262
|
namesOnly,
|
|
257
263
|
paintColor,
|
|
258
264
|
panelTypeClass,
|
|
259
265
|
recedingSeriesId,
|
|
266
|
+
rectContains,
|
|
267
|
+
rectsOverlap,
|
|
268
|
+
round2,
|
|
260
269
|
secondaryFont,
|
|
261
270
|
segmentSeparationStroke,
|
|
262
271
|
seriesPaint,
|
|
263
272
|
seriesTextPaint,
|
|
273
|
+
sideAwayFrom,
|
|
264
274
|
strokeToken,
|
|
265
275
|
textScaleOf,
|
|
266
276
|
withSegmentSeams
|
|
267
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-TX5FSNAU.js";
|
|
268
278
|
import {
|
|
269
279
|
curvePathFromSegments,
|
|
270
280
|
drawnStroke,
|
|
271
281
|
monotoneSegments,
|
|
272
282
|
splitCurveSegmentsAtX
|
|
273
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-6IUK6PAH.js";
|
|
274
284
|
import {
|
|
275
285
|
NormalizeError,
|
|
276
286
|
accessibleTitle,
|
|
@@ -279,16 +289,16 @@ import {
|
|
|
279
289
|
resolveSize,
|
|
280
290
|
resolveSubtitle,
|
|
281
291
|
scaleTextPx
|
|
282
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-RJICOOB3.js";
|
|
293
|
+
import {
|
|
294
|
+
defaultMeasurer,
|
|
295
|
+
wrapText
|
|
296
|
+
} from "./chunk-UIHGGWES.js";
|
|
283
297
|
import {
|
|
284
298
|
maxOf,
|
|
285
299
|
minOf,
|
|
286
300
|
pushAll
|
|
287
301
|
} from "./chunk-WYJEOMNY.js";
|
|
288
|
-
import {
|
|
289
|
-
defaultMeasurer,
|
|
290
|
-
wrapText
|
|
291
|
-
} from "./chunk-SNQ7D5R7.js";
|
|
292
302
|
|
|
293
303
|
// src/core/charts/combo/axisTitles.ts
|
|
294
304
|
var ROW_GAP = 18, SWATCH_BOX = 10, SWATCH_LINE = 14, SWATCH_GAP = 5, TITLE_GAP = 4, TITLE_TOP = 4;
|
|
@@ -429,7 +439,7 @@ function unusedEndpointGutters(gutters, solved, plot) {
|
|
|
429
439
|
}
|
|
430
440
|
function flagDroppedEndpointLabels(solved) {
|
|
431
441
|
for (let warning of solved.warnings)
|
|
432
|
-
warning.code !== "label-hidden" || !warning.
|
|
442
|
+
warning.code !== "label-hidden" || !String(warning.detail?.labelId).startsWith("point:") || (warning.severity = "warn", warning.message += `; nothing within ${ENDPOINT_MAX_GAP}px of its point is free`);
|
|
433
443
|
}
|
|
434
444
|
var STROKE_CLEAR = 2;
|
|
435
445
|
function clearOfStrokes(candidates, strokes) {
|
|
@@ -577,12 +587,15 @@ function resolveComboEnv(options, warnings) {
|
|
|
577
587
|
theme,
|
|
578
588
|
palette: paletteRamp ? options.palette : void 0,
|
|
579
589
|
size: resolveSize(options.size),
|
|
580
|
-
byExample: memoFormatterFromExample(),
|
|
581
590
|
measure: options.measure ?? defaultMeasurer,
|
|
582
591
|
highlights: new Set(resolveHighlight(options.highlight)),
|
|
583
592
|
density: options.labelDensity ?? "smart"
|
|
584
593
|
};
|
|
585
594
|
}
|
|
595
|
+
function totalColumn(domain, ci) {
|
|
596
|
+
let populated = domain.columns.filter((column) => column.vals[ci].v !== null), drawn = populated.filter((column) => column.vals[ci].v !== 0);
|
|
597
|
+
return populated.length === 1 ? populated[0] : drawn.length === 1 ? drawn[0] : void 0;
|
|
598
|
+
}
|
|
586
599
|
function normalizeComboData(data) {
|
|
587
600
|
let { cats, series } = normalizeCategorySeries("combo", data, (s, cells) => ({
|
|
588
601
|
id: s.id,
|
|
@@ -635,7 +648,7 @@ function comboAxisGate(options, seriesNorm, columns, lines, warnings) {
|
|
|
635
648
|
for (let s of secondaryRequested) s.axis = "primary";
|
|
636
649
|
let ids = secondaryRequested.map((s) => `'${s.id}'`).join(", ");
|
|
637
650
|
warnings.push({
|
|
638
|
-
code: "dual-axis",
|
|
651
|
+
code: "dual-axis-unacknowledged",
|
|
639
652
|
severity: "error",
|
|
640
653
|
message: `series ${ids} ${secondaryRequested.length === 1 ? "requests" : "request"} the secondary axis without options.secondaryAxis.acknowledge \u2014 a dual-axis chart is refused unless acknowledged`,
|
|
641
654
|
suggest: `for genuinely independent units, set options.secondaryAxis = { acknowledge: true }; for a share of a total, remove axis: 'secondary' from ${ids} and set options.secondaryAxis.ruler`,
|
|
@@ -721,18 +734,33 @@ function primaryDomain(options, gate, extent, fmt, warnings) {
|
|
|
721
734
|
return { dLo, dHi, pticks, stepTicks: stepped.ticks };
|
|
722
735
|
}
|
|
723
736
|
function pinnedStep(lo, hi, rows) {
|
|
737
|
+
return dividingStep(lo, hi, rows) ?? ((hi - lo) / rows || 1);
|
|
738
|
+
}
|
|
739
|
+
function dividingStep(lo, hi, rows) {
|
|
724
740
|
let even = (hi - lo) / rows || 1;
|
|
725
741
|
return ladderSteps(even / 2, even * 2, PRIMARY_MANTISSAS).filter((step) => Math.abs((hi - lo) / step - Math.round((hi - lo) / step)) < 1e-9).reduce((best, step) => {
|
|
726
742
|
if (best === void 0) return step;
|
|
727
743
|
let off = Math.abs((hi - lo) / step - rows), bestOff = Math.abs((hi - lo) / best - rows);
|
|
728
744
|
return off < bestOff - 1e-9 || Math.abs(off - bestOff) <= 1e-9 && step < best ? step : best;
|
|
729
|
-
}, void 0)
|
|
745
|
+
}, void 0);
|
|
746
|
+
}
|
|
747
|
+
function latticeTicks(lo, hi, rows) {
|
|
748
|
+
let even = (hi - lo) / rows || 1, best;
|
|
749
|
+
for (let step of ladderSteps(even / 2, even * 2, PRIMARY_MANTISSAS)) {
|
|
750
|
+
let from = roundTick(Math.ceil(lo / step - 1e-9) * step), to = roundTick(Math.floor(hi / step + 1e-9) * step), intervals = Math.round((to - from) / step);
|
|
751
|
+
if (intervals < 1) continue;
|
|
752
|
+
let off = Math.abs(intervals - rows);
|
|
753
|
+
(!best || off < best.off) && (best = { step, from, to, off });
|
|
754
|
+
}
|
|
755
|
+
return best && { step: best.step, from: best.from, to: best.to };
|
|
730
756
|
}
|
|
731
757
|
function rightAxis(options, gate, raw, primary, secondarySpec, fixed) {
|
|
732
|
-
let { secOpt, ruler, secondaryActive, secondaryRequested } = gate, { pticks } = primary, nTicks = pticks.length, lang = options.locale?.language, secondaryDomain, secStep = 1;
|
|
758
|
+
let { secOpt, ruler, secondaryActive, secondaryRequested } = gate, { pticks } = primary, nTicks = pticks.length, lang = options.locale?.language, secondaryDomain, secStep = 1, secTickRange;
|
|
733
759
|
if (secondaryActive && secOpt?.domain) {
|
|
734
760
|
let lo = Math.min(secOpt.domain[0], raw.lo), hi = Math.max(secOpt.domain[1], raw.hi);
|
|
735
|
-
secStep = pinnedStep(lo, hi, nTicks - 1)
|
|
761
|
+
secStep = pinnedStep(lo, hi, nTicks - 1);
|
|
762
|
+
let example = secOpt.format ?? secondaryRequested.find((s) => s.format)?.format, spec = example === void 0 ? void 0 : parseFormatExample(example), lattice = spec !== void 0 && dividingStep(lo, hi, nTicks - 1) === void 0 && Array.from({ length: nTicks }, (_, i) => roundTick(lo + secStep * i)).some((tick) => roundedNumber(tick, spec) !== tick) ? latticeTicks(lo, hi, nTicks - 1) : void 0;
|
|
763
|
+
lattice && (secStep = lattice.step), secondaryDomain = [roundTick(lo), roundTick(hi)], lattice && (secTickRange = [lattice.from, lattice.to]);
|
|
736
764
|
} else if (secondaryActive && fixed !== void 0)
|
|
737
765
|
secStep = fixed.step, secondaryDomain = [roundTick(fixed.start), roundTick(fixed.start + fixed.step * (nTicks - 1))];
|
|
738
766
|
else if (secondaryActive) {
|
|
@@ -743,7 +771,7 @@ function rightAxis(options, gate, raw, primary, secondarySpec, fixed) {
|
|
|
743
771
|
}
|
|
744
772
|
let secFmtSrc = secondaryRequested.find((s) => s.format)?.format, secAxisFmtSrc = secondaryActive ? secOpt?.format : void 0, secondaryAllPct = !secAxisFmtSrc && !secFmtSrc && secondaryRequested.length > 0 && secondaryRequested.every((s) => s.unit === "%" || s.vals.every((val) => val.v === null || val.isPct)) && secondaryRequested.some((s) => s.unit === "%" || s.vals.some((val) => val.isPct));
|
|
745
773
|
if (secondaryDomain) {
|
|
746
|
-
let rows = Math.round((
|
|
774
|
+
let [tickFrom, tickTo] = secTickRange ?? secondaryDomain, rows = Math.round((tickTo - tickFrom) / secStep), secTickValues = Array.from({ length: rows + 1 }, (_, i) => roundTick(tickFrom + secStep * i)), pctDecimals = secondaryAllPct ? Math.max(0, ...secTickValues.map((tv) => {
|
|
747
775
|
for (let d = 0; d <= 3; d++)
|
|
748
776
|
if (Math.abs(tv - Number(tv.toFixed(d))) < 1e-9) return d;
|
|
749
777
|
return 3;
|
|
@@ -886,7 +914,9 @@ function comboAnomalyModel(spec, cats, lines, secondary, primary, pctFmt, locale
|
|
|
886
914
|
"anomaly-single-series",
|
|
887
915
|
"options.anomaly",
|
|
888
916
|
`anomaly on a combo judges its one line series; got ${lineSeries.length} \u2014 a robust score across two different measures is meaningless`,
|
|
889
|
-
"give exactly one series kind 'line', or chart the measure on its own line chart"
|
|
917
|
+
"give exactly one series kind 'line', or chart the measure on its own line chart",
|
|
918
|
+
void 0,
|
|
919
|
+
["options", "anomaly"]
|
|
890
920
|
);
|
|
891
921
|
refuseAnomalySpec(spec);
|
|
892
922
|
let series = lineSeries[0], onSecondary = series.axis === "secondary" && secondary !== primary, raster = onSecondary ? secondary : primary, isPct = series.vals.some((val) => val.isPct), fmt = isPct ? pctFmt : raster.fmt, statFmt = isPct ? (v) => formatAutomaticPercent(v, 2, !1, locale) : (v) => formatStatWithSpec(v, raster.spec), present = cats.flatMap((c, ci) => {
|
|
@@ -909,16 +939,16 @@ function comboBandFraction(options, count) {
|
|
|
909
939
|
function resolveComboDomain(data, options, warnings, theme) {
|
|
910
940
|
let { cats, seriesNorm } = normalizeComboData(data), dataSeries = seriesNorm.filter((s) => s.role !== "reference"), refs = seriesNorm.filter((s) => s.role === "reference");
|
|
911
941
|
if (dataSeries.length === 0)
|
|
912
|
-
throw new NormalizeError("empty-data", "series", "combo requires at least one data-role series");
|
|
942
|
+
throw new NormalizeError("empty-data", "series", "combo requires at least one data-role series", void 0, void 0, ["data", "series"]);
|
|
913
943
|
let columns = dataSeries.filter((s) => s.kind === "column"), lines = dataSeries.filter((s) => s.kind !== "column"), chartInterpolation = options.interpolate ?? "linear", gate = comboAxisGate(options, seriesNorm, columns, lines, warnings), { secondaryActive } = gate;
|
|
914
944
|
comboUnitConflicts(options, seriesNorm, dataSeries, secondaryActive, warnings);
|
|
915
945
|
let rasterFor = (axis) => {
|
|
916
|
-
let group = seriesNorm.filter((s) => (s.axis ?? "primary") === axis), units = new Set(group.
|
|
946
|
+
let group = seriesNorm.filter((s) => (s.axis ?? "primary") === axis), units = new Set(group.flatMap((s) => s.unit === void 0 || s.unit === "%" || s.vals.every((val) => val.isPct) ? [] : [s.unit])), printed = axis === "primary" && options.format ? seriesNorm.filter((s) => !s.format) : group, shared2 = units.size === 1 ? [...units][0] : void 0, unnamed = units.size === 0 && unitMagnitude(options.unit) !== void 0 ? options.unit : void 0;
|
|
917
947
|
return seriesRasterFormatter(
|
|
918
948
|
axis === "primary" ? options.format : void 0,
|
|
919
949
|
printed.flatMap((s) => s.vals.filter((val) => !val.isPct).map((val) => val.v)),
|
|
920
950
|
options.locale?.language,
|
|
921
|
-
axis === "primary" ? options.unit ?? shared2 : shared2,
|
|
951
|
+
axis === "primary" ? options.unit ?? shared2 : shared2 ?? unnamed,
|
|
922
952
|
options.target,
|
|
923
953
|
axis === "primary" ? options.defaultFormat : void 0,
|
|
924
954
|
columns.length > 1
|
|
@@ -990,22 +1020,24 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
990
1020
|
clearance: options[LINE_BAND_CLEARANCE]
|
|
991
1021
|
} : void 0, shared = lineBandScaleInput ? dualAxisScales(lineBandScaleInput) : void 0;
|
|
992
1022
|
shared && (primary = { dLo: 0, dHi: shared.pticks[shared.pticks.length - 1], pticks: shared.pticks });
|
|
993
|
-
let floatOver = (clearance) => hi <= maxOf(posTop) ? floatedLineScales(maxOf(posTop), lines, secondaryLine, clearance) : void 0, floated = lineBandScaleInput && !shared ? floatOver(options[FLOAT_BAND_CLEARANCE] ?? lineBandScaleInput.clearance ?? LINE_CLEARANCE) : void 0;
|
|
1023
|
+
let floatValuesPrint = anomalyRun?.onSecondary === !0 || ["all", "extremes"].includes(comboValueLabels(options, anatomy, cats.length, !0)) && options.labels !== !1 && options.labels?.point !== !1, floatOver = (clearance) => floatValuesPrint && hi <= maxOf(posTop) ? floatedLineScales(maxOf(posTop), lines, secondaryLine, clearance) : void 0, floated = lineBandScaleInput && !shared ? floatOver(options[FLOAT_BAND_CLEARANCE] ?? lineBandScaleInput.clearance ?? LINE_CLEARANCE) : void 0;
|
|
994
1024
|
floated && (primary = floated.primary), warnFlatLines(data, options, dataSeries, primary, secondaryActive, warnings);
|
|
995
1025
|
let aligned = secondaryActive && !shared && !gate.secOpt?.domain && pinnedBy.length === 0 && negative ? zeroAlignedAxes(primary, { lo: sLoRaw, hi: sHiRaw }) : void 0;
|
|
996
1026
|
aligned && (primary = aligned.primary);
|
|
997
|
-
let right = floated ? {
|
|
998
|
-
secFmtSrc: rightAxis(effective, gate, { lo: sLoRaw, hi: sHiRaw }, primary, secondarySpec).secFmtSrc,
|
|
999
|
-
secondaryDomain: floated.secondaryDomain,
|
|
1000
|
-
rightTicks: []
|
|
1001
|
-
} : rightAxis(
|
|
1027
|
+
let right = floated ? { secondaryDomain: floated.secondaryDomain, rightTicks: [] } : rightAxis(
|
|
1002
1028
|
effective,
|
|
1003
1029
|
gate,
|
|
1004
1030
|
{ lo: sLoRaw, hi: sHiRaw },
|
|
1005
1031
|
primary,
|
|
1006
1032
|
secondarySpec,
|
|
1007
1033
|
shared ? { step: shared.secondaryStep, start: 0 } : aligned?.secondary
|
|
1008
|
-
), fmtSecondary = secondarySpec.fmt,
|
|
1034
|
+
), fmtSecondary = secondarySpec.fmt, scaleFmtOf = (s) => s.axis === "secondary" && secondaryActive && s.role !== "reference" ? s.unit === "%" ? secondarySpec.fmtPercent : fmtSecondary : fmt, valueFmtOf = (s, value) => {
|
|
1035
|
+
let onSecondary = s.axis === "secondary" && secondaryActive && s.role !== "reference";
|
|
1036
|
+
return value?.format || s.format ? (onSecondary ? secondarySpec : valueSpec).forSeries(s, value?.format) : !onSecondary && options.format ? fmt : value?.isPct ? pctFmt : scaleFmtOf(s);
|
|
1037
|
+
}, totalFmtOf = (ci) => {
|
|
1038
|
+
let single = totalColumn({ columns }, ci);
|
|
1039
|
+
return single ? valueFmtOf(single, single.vals[ci]) : fmt;
|
|
1040
|
+
}, beforeCorridor = warnings.slice(), squeezeWarning = () => ({
|
|
1009
1041
|
code: "dual-axis-columns-squeezed",
|
|
1010
1042
|
severity: "info",
|
|
1011
1043
|
message: "the line runs over the columns on every pair of scales that keeps them a third of the plot high, so the columns shrink below a third of the plot to leave the line a clear band",
|
|
@@ -1048,13 +1080,8 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
1048
1080
|
fmt,
|
|
1049
1081
|
valueSpec: valueSpec.spec,
|
|
1050
1082
|
pctFmt,
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
explicitFormatOf: (s, value) => value.format ?? s.format ?? (s.axis === "secondary" && secondaryActive ? void 0 : options.format),
|
|
1054
|
-
// Fallback is the SECONDARY scale group's raster, not the primary fmt: the
|
|
1055
|
-
// right axis is a different unit, and integer revenue must not strip the
|
|
1056
|
-
// decimal off a 48.3-units marker display (the per-scale raster).
|
|
1057
|
-
secFmt: right.secFmtSrc ? formatterFromExample(right.secFmtSrc, options.locale?.language) : fmtSecondary,
|
|
1083
|
+
valueFmtOf,
|
|
1084
|
+
totalFmtOf,
|
|
1058
1085
|
sourceMean,
|
|
1059
1086
|
meanSpan,
|
|
1060
1087
|
averageMarkerId,
|
|
@@ -1142,9 +1169,9 @@ function comboPaints(env, domain) {
|
|
|
1142
1169
|
if (columns.length === 1) return { token: "focus", tint: columnTint };
|
|
1143
1170
|
let amount = stackTint(columnTint, columns.length, columns.indexOf(s));
|
|
1144
1171
|
return amount > 0 ? { token: "focus", tint: amount } : { token: "focus" };
|
|
1145
|
-
}, receding = recedingSeriesId([...columns, ...domain.lines], highlights), column = (s, colIdx) => {
|
|
1172
|
+
}, receding = recedingSeriesId([...columns, ...domain.lines], highlights), lineIds = new Set(domain.lines.map((s) => s.id)), roles = colorRolePaints([...columns, ...domain.lines], (id) => !lineIds.has(id)), column = (s, colIdx) => {
|
|
1146
1173
|
if (s.fill) return { css: s.fill };
|
|
1147
|
-
if (s.colorRole) return
|
|
1174
|
+
if (s.colorRole) return roles.get(s.id);
|
|
1148
1175
|
if (s.id === receding) return mutedMarkPaint();
|
|
1149
1176
|
let themed = tinted(s, s.scenario);
|
|
1150
1177
|
return themed || (columns.length === 1 ? seriesPaint(colIdx, palette, s.scenario) : seriesPaint(colIdx, palette));
|
|
@@ -1174,7 +1201,7 @@ function comboPaints(env, domain) {
|
|
|
1174
1201
|
};
|
|
1175
1202
|
}, css, column, cell, pattern, inside, top, line: (s, li) => {
|
|
1176
1203
|
if (s.fill) return { css: s.fill };
|
|
1177
|
-
if (s.colorRole) return
|
|
1204
|
+
if (s.colorRole) return roles.get(s.id);
|
|
1178
1205
|
if (highlights.has(s.id)) return { token: "focus" };
|
|
1179
1206
|
if (s.id === receding) return mutedMarkPaint();
|
|
1180
1207
|
let plan = planStyle(s);
|
|
@@ -1361,23 +1388,23 @@ function kindSetting(domain, kind) {
|
|
|
1361
1388
|
let v = l?.[kind];
|
|
1362
1389
|
return v === void 0 ? !0 : v;
|
|
1363
1390
|
}
|
|
1364
|
-
function composeLines(domain, content, value, catLabel, serLabel,
|
|
1365
|
-
let { abs, isPct, share } = value,
|
|
1391
|
+
function composeLines(domain, content, value, catLabel, serLabel, valueFmt) {
|
|
1392
|
+
let { abs, isPct, share } = value, parts = [];
|
|
1366
1393
|
for (let c of content)
|
|
1367
|
-
c === "absolute" && abs !== null ? parts.push([c,
|
|
1394
|
+
c === "absolute" && abs !== null ? parts.push([c, valueFmt(abs)]) : c === "percent" && abs !== null && isPct ? parts.push([c, valueFmt(abs)]) : c === "percent" && share !== void 0 && share !== null ? parts.push([c, value.shareText ?? formatShare(share, domain.options.locale?.language)]) : c === "category" && catLabel ? parts.push([c, catLabel]) : c === "series" && serLabel && parts.push([c, serLabel]);
|
|
1368
1395
|
return valueShareLines(parts);
|
|
1369
1396
|
}
|
|
1370
1397
|
function composeText(...args) {
|
|
1371
1398
|
return composeLines(...args).join(" ");
|
|
1372
1399
|
}
|
|
1373
1400
|
function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
1374
|
-
let { theme, measure, highlights, size } = env, { frame, leftAxisReserve } = framed, { options, cats, columns, lines, showPrimaryAxis, rightTicks } = domain, rightAxisActive = rightTicks.length > 0, tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, strongFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, gtH = measure("0", strongFont).height, gtContent = columns.length > 0 && domain.columnsAdd ? contentOf(domain, "grandTotal", ["absolute"]) : null, tallest = Math.max(0, maxOf(domain.posTop)), estPlotH = frame.plot.h - 8 - 4 * gtH, totalsAirInScale = domain.dHi > domain.dLo && tallest > 0 && (domain.dHi - tallest) / (domain.dHi - domain.dLo) * estPlotH >= gtH + 6 + 4 && frame.plot.w / Math.max(1, cats.length) * 0.6 >= Math.max(0, maxOf(cats.map((c) => measure(composeText(
|
|
1401
|
+
let { theme, measure, highlights, size } = env, { frame, leftAxisReserve } = framed, { options, cats, columns, lines, showPrimaryAxis, rightTicks } = domain, rightAxisActive = rightTicks.length > 0, tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, strongFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, gtH = measure("0", strongFont).height, gtContent = columns.length > 0 && domain.columnsAdd ? contentOf(domain, "grandTotal", ["absolute"]) : null, tallest = Math.max(0, maxOf(domain.posTop)), estPlotH = frame.plot.h - 8 - 4 * gtH, totalsAirInScale = domain.dHi > domain.dLo && tallest > 0 && (domain.dHi - tallest) / (domain.dHi - domain.dLo) * estPlotH >= gtH + 6 + 4 && frame.plot.w / Math.max(1, cats.length) * 0.6 >= Math.max(0, maxOf(cats.map((c, ci) => measure(composeText(
|
|
1375
1402
|
domain,
|
|
1376
1403
|
gtContent ?? ["absolute"],
|
|
1377
|
-
{ abs: domain.stackTotals[c.id] ?? 0, isPct:
|
|
1404
|
+
{ abs: domain.stackTotals[c.id] ?? 0, isPct: totalColumn(domain, ci)?.vals[ci]?.isPct ?? !1 },
|
|
1378
1405
|
c.label ?? c.id,
|
|
1379
1406
|
"",
|
|
1380
|
-
domain.
|
|
1407
|
+
domain.totalFmtOf(ci)
|
|
1381
1408
|
), strongFont).width))) + 8, totalsRow = gtContent && !(domain.anatomy && columns.length === 1) && !totalsAirInScale ? gtH + 6 : 0, columnTitlePaint = (paint) => "tint" in paint && paint.tint !== void 0 ? { token: "ink" } : paint, titles = { ...domain.options.axisTitles };
|
|
1382
1409
|
if (domain.secondaryActive) for (let side of ["primary", "secondary"]) {
|
|
1383
1410
|
let group = domain.data.filter((s) => s.axis === side), units = new Set(group.map((s) => s.unit).filter(Boolean)), unit = side === "primary" ? options.unit ?? (units.size === 1 ? [...units][0] : void 0) : units.size === 1 ? [...units][0] : void 0;
|
|
@@ -1422,10 +1449,10 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1422
1449
|
return composeText(
|
|
1423
1450
|
domain,
|
|
1424
1451
|
pointContent ?? ["absolute"],
|
|
1425
|
-
{ abs: value.v, isPct: value.isPct
|
|
1452
|
+
{ abs: value.v, isPct: value.isPct },
|
|
1426
1453
|
cats[ci].label ?? cats[ci].id,
|
|
1427
1454
|
series.label,
|
|
1428
|
-
|
|
1455
|
+
domain.valueFmtOf(series, value)
|
|
1429
1456
|
);
|
|
1430
1457
|
},
|
|
1431
1458
|
{
|
|
@@ -1485,7 +1512,7 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1485
1512
|
}
|
|
1486
1513
|
let band = bandFor(plotX0, plotW0), categoryNames = cats.map((category) => category.label ?? category.id), periodRow = cats.some((category) => category.calendar) || isDateNumericTickSequence(categoryNames) || calendarLike(categoryNames) || categoryNames.every((label) => /^[MWT]\d+$/i.test(label)), authored = authoredDateTicks(cats, options, warnings);
|
|
1487
1514
|
bandedCrossesBetween(options, warnings);
|
|
1488
|
-
let planRow = (b, ticked2) => {
|
|
1515
|
+
let planRow = (b, ticked2, rotate) => {
|
|
1489
1516
|
let row = categoryLabelsAndMarks(cats, { count: authoredFootnoteCount(options), warnings }, partialAxisWords(options.strings, options, frame.legend?.items.some((item) => item.id === "__partial") || partialNamedOnTotals(env, domain)));
|
|
1490
1517
|
return ticked2?.name(row), withCategoryRanks(planCategoryRow({
|
|
1491
1518
|
rotate: !cats.every((c) => MONTH_START.exec((c.label ?? c.id).trim())?.[0] === (c.label ?? c.id).trim()),
|
|
@@ -1512,12 +1539,11 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1512
1539
|
...disclosuresShown(options) ? { cutMarkFrom: authoredFootnoteCount(options) + 1 } : rankKeyShown(options) ? {} : { everyName: !0 },
|
|
1513
1540
|
...ticked2?.plan,
|
|
1514
1541
|
// An authored interval counts back from the latest period, as on a line.
|
|
1515
|
-
...ticked2 !== void 0 && ticked2 === authored ? { ordered: !0, strideFromEnd: !0 } : {}
|
|
1542
|
+
...ticked2 !== void 0 && ticked2 === authored ? { ordered: !0, strideFromEnd: !0 } : {},
|
|
1543
|
+
...rotate === !1 ? { rotate } : {}
|
|
1516
1544
|
}), measure, cats.map((c) => c.label ?? c.id), options[FORCE_CATEGORY_RANKS] === !0, rankKeyShown(options));
|
|
1517
1545
|
}, catPlan = planRow(band, authored), ticked = authored ?? (options[CATEGORY_ROW_FROM_END] === !1 ? void 0 : longDayMonths(cats, catPlan.stride, options.locale?.language));
|
|
1518
|
-
ticked && ticked !== authored && (catPlan = planRow(band, ticked));
|
|
1519
|
-
let catOverhang = stair ? 0 : rotatedLeftOverhang(catPlan, cats.map((_, ci) => band.center(ci)), 4);
|
|
1520
|
-
catOverhang > 0 && (plotX0 += catOverhang, plotW0 -= catOverhang, band = bandFor(plotX0, plotW0), catPlan = planRow(band, ticked));
|
|
1546
|
+
ticked && ticked !== authored && (catPlan = planRow(band, ticked)), stair || ({ plan: catPlan, band } = yieldToRotatedName(catPlan, band, cats.length, plotX0, plotW0, bandFor, (b, rotate) => planRow(b, ticked, rotate)));
|
|
1521
1547
|
let showCatTickRow = kindSetting(domain, "category") !== !1 && cats.length > 0 && !stair;
|
|
1522
1548
|
showCatTickRow && (pushAll(warnings, catPlan.warnings), catPlan.step === "ranks" && warnings.push(categoryRanksLint(cats.map((c) => c.label ?? c.id), band.step)));
|
|
1523
1549
|
let catBandH = showCatTickRow ? catPlan.rowHeight + 8 : 0, hangingRoom = showCatTickRow && domain.options.labels !== !1 ? Math.max(measure("0", labelFont).height, gtH) + 4 : 0, lowest = Math.min(0, minOf(domain.negBot)), hangingEnd = Math.min(0, minOf(domain.negBot.map((bottom, ci) => domain.posTop[ci] <= 0 ? bottom : 0))), rawBandPad = options[BAND_PAD] ?? 0, baseTopPad = topPad, plotH0NoBand = frame.plot.h - catBandH - baseTopPad, hangingReserveNoBand = hangingLabelReserve(plotH0NoBand, [domain.dLo, domain.dHi], hangingEnd, hangingRoom), minRawH = Math.max(10, options.mode === "compact" ? 80 : 0), bandPad = rawBandPad > 0 ? Math.max(0, Math.min(rawBandPad, Math.floor(plotH0NoBand - hangingReserveNoBand - minRawH))) : 0;
|
|
@@ -1631,7 +1657,7 @@ function segmentLabels(env, domain, area, geometry, paints, requests, warnings)
|
|
|
1631
1657
|
warnShareParts(warnings, mixedSigns, unavailable);
|
|
1632
1658
|
let tooWide = !1, first = requests.length;
|
|
1633
1659
|
for (let { s, si, ci, v, rect } of geometry.segments) {
|
|
1634
|
-
let c = domain.cats[ci], val = s.vals[ci],
|
|
1660
|
+
let c = domain.cats[ci], val = s.vals[ci], share = shareBasis[ci] > 0 ? v / shareBasis[ci] * 100 : null, lines = composeLines(domain, content, { abs: v, isPct: val.isPct, share, shareText: domain.shareTexts.get(`${c.id}\0${s.id}`) }, c.label ?? c.id, s.label, domain.valueFmtOf(s, val)), text = lines.join(" "), single = v !== 0 && onePartDrawn(domain.columns.map((column) => column.vals[ci].v)), printed = val.isPct || share !== null ? content : content.filter((part) => part !== "percent");
|
|
1635
1661
|
if (typeof val.labelOverride == "string" && (text = val.labelOverride.replace(/\$\{value\}/g, text), lines = [text]), !text && val.labelOverride !== !1) continue;
|
|
1636
1662
|
let tsize = linesSize(lines, labelFont, env.measure), fits = tsize.height + 2 <= rect.h && tsize.width + 4 <= band.bandwidth, sliver = env.density !== "full" && rect.h < SLIVER_MIN_H, hl = env.highlights.has(c.id) || env.highlights.has(s.id), priority = val.priority ?? PRIORITY.interior + Math.min(99, Math.abs(v)) + (hl ? PRIORITY.highlightBonus : 0);
|
|
1637
1663
|
typeof val.labelOverride != "string" && val.labelOverride !== !1 && !sliver && !single && env.density !== "full" && tsize.width > rect.w && (tooWide = !0), requests.push({
|
|
@@ -1648,6 +1674,8 @@ function segmentLabels(env, domain, area, geometry, paints, requests, warnings)
|
|
|
1648
1674
|
typeRole: "label",
|
|
1649
1675
|
font: labelFont,
|
|
1650
1676
|
priority,
|
|
1677
|
+
// A highlighted value passes the minimal density gate.
|
|
1678
|
+
...hl ? { keepWhenDense: !0 } : {},
|
|
1651
1679
|
redundant: val.labelOverride === !1 || sliver,
|
|
1652
1680
|
// A value prints inside its own segment or nowhere. Beside the column
|
|
1653
1681
|
// the value would stand in the gap between two stacks, as near the next
|
|
@@ -1673,16 +1701,12 @@ function insideSeats(candidates, rect, labelH) {
|
|
|
1673
1701
|
].filter((seat) => Math.abs(seat.rect.y - centre.rect.y) >= 1 && seat.rect.y >= rect.y && seat.rect.y + labelH <= rect.y + rect.h);
|
|
1674
1702
|
return [...inside, ...edges];
|
|
1675
1703
|
}
|
|
1676
|
-
function totalColumn(domain, ci) {
|
|
1677
|
-
let populated = domain.columns.filter((column) => column.vals[ci].v !== null), drawn = populated.filter((column) => column.vals[ci].v !== 0);
|
|
1678
|
-
return populated.length === 1 ? populated[0] : drawn.length === 1 ? drawn[0] : void 0;
|
|
1679
|
-
}
|
|
1680
1704
|
function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes = []) {
|
|
1681
1705
|
let gtContent = domain.columns.length > 0 && domain.columnsAdd ? contentOf(domain, "grandTotal", ["absolute"]) : null;
|
|
1682
1706
|
if (!gtContent) return;
|
|
1683
1707
|
let { posTop, negBot } = domain, { y, band, strongFont } = area, authored = /* @__PURE__ */ new Set(), bare = /* @__PURE__ */ new Set(), linked = new Map(requests.flatMap((req) => req.printedIn ? [[req.printedIn, req.id]] : [])), valueAlone = gtContent.join() === "absolute", shares = domain.options[FIRST_END_BELOW_TOTALS] === !0, backLink = (id, words) => !words && valueAlone && linked.has(id) ? { printedIn: linked.get(id) } : {}, crossesRules = domain.averageMarkerId !== void 0 || (domain.options.annotations ?? []).some((annotation) => annotation.kind === "valueLine"), texts = domain.cats.map((c, ci) => {
|
|
1684
1708
|
if (!domain.anyByCat[ci]) return null;
|
|
1685
|
-
let
|
|
1709
|
+
let cell = totalColumn(domain, ci)?.vals[ci], composed = composeText(domain, gtContent, { abs: domain.stackTotals[c.id], isPct: cell?.isPct ?? !1 }, c.label ?? c.id, "", domain.totalFmtOf(ci)), override = cell?.labelOverride;
|
|
1686
1710
|
return override === !1 ? null : (typeof override == "string" && authored.add(c.id), namesOnly(cell?.isPct ? gtContent : gtContent.filter((part) => part !== "percent"), override).printsFor && bare.add(c.id), (typeof override == "string" ? override.replace(/\$\{value\}/g, composed) : composed) || null);
|
|
1687
1711
|
}), anatomyFont = domain.anatomy && domain.columns.length === 1 ? { ...strongFont } : void 0, insideFont = anatomyFont && texts.every((text) => text === null || env.measure(text, anatomyFont).width + 4 <= band.bandwidth) ? anatomyFont : void 0, toDateIds = insideFont ? /* @__PURE__ */ new Set() : toDateOnTotals(env, domain), toDate = domain.options.strings?.toDate ?? chartString(domain.options, "toDate"), wordsAt = (ci, text, font) => {
|
|
1688
1712
|
let id = domain.cats[ci].id, words = toDateIds.has(id) ? toDate : !insideFont && domain.columnsAdd && domain.incompleteCats.has(id) && disclosuresShown(domain.options) ? domain.options.strings.incomplete : void 0;
|
|
@@ -1712,7 +1736,17 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1712
1736
|
return v !== null && (above ? v > 0 : v < 0);
|
|
1713
1737
|
});
|
|
1714
1738
|
return top === void 0 ? 0 : Math.abs(y(top.vals[ci].v) - y(0));
|
|
1715
|
-
})(), inside = (dy, slot) => insideDepth >= tsize.height + dy ? { ...at(slot, above ? edgeY + dy : edgeY - tsize.height - dy, 2), ...paints.top(ci, above) } : void 0,
|
|
1739
|
+
})(), inside = (dy, slot) => insideDepth >= tsize.height + dy ? { ...at(slot, above ? edgeY + dy : edgeY - tsize.height - dy, 2), ...paints.top(ci, above) } : void 0, lowered = () => {
|
|
1740
|
+
if (strokes.length > 0) for (let dy = 12; dy <= 12 + tsize.height; dy++) {
|
|
1741
|
+
let seat = inside(dy, "insideEndLowered");
|
|
1742
|
+
if (!seat) break;
|
|
1743
|
+
if (strokes.every((stroke) => !stroke.hits(seat.rect, STROKE_CLEAR2))) return { ...seat, pad: 0 };
|
|
1744
|
+
}
|
|
1745
|
+
return inside(12, "insideEndLowered");
|
|
1746
|
+
}, curveStartsOnTop = ci === 0 && shares && lineYs(ci).some((ly) => Math.abs(ly - edgeY) < 0.5), leftX = cx - LEFT_SEAT_AIR - (curveStartsOnTop ? 2.75 : 0) - tsize.width, leftSeat = ci === 0 && tsize.width + 4 > band.bandwidth && strokes.length > 0 && above && leftX >= LEFT_SEAT_MIN_X ? [{ slot: "aboveStackLeft", rect: { x: leftX, y: edgeY - tsize.height - 4, w: tsize.width, h: tsize.height }, penalty: 2 }] : [], lift = curveStartsOnTop && above ? clearLift({ ...at("aboveStack", edgeY - tsize.height - 4, 0).rect }, strokes, 2 * tsize.height + 4) : void 0, liftedSeat = lift !== void 0 && lift >= 2.75 ? [at("aboveStackLifted", edgeY - tsize.height - 4 - lift - 2, 1)] : [], named = {
|
|
1747
|
+
noteText: `${domain.columns.length === 1 ? noteName(domain.columns[0]) : chartString(domain.options, "total")} ${text}${words ? ` ${words.lines[1]}` : ""} (${noteName(c)})`,
|
|
1748
|
+
claimIds: [`stack:total:${c.id}`]
|
|
1749
|
+
};
|
|
1716
1750
|
if (insideFont && above && edgeY + 4 + tsize.height <= y(0)) {
|
|
1717
1751
|
requests.push({
|
|
1718
1752
|
id: `grandTotal:${c.id}`,
|
|
@@ -1762,7 +1796,7 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1762
1796
|
inside(8, "insideEnd"),
|
|
1763
1797
|
domain.columns.length > 1,
|
|
1764
1798
|
// Last of all, one step further in: a line marker just inside the column top blocks the inside end by a fraction of a pixel.
|
|
1765
|
-
|
|
1799
|
+
lowered()
|
|
1766
1800
|
)
|
|
1767
1801
|
});
|
|
1768
1802
|
});
|
|
@@ -1775,7 +1809,7 @@ function referenceLabels(env, domain, area, requests) {
|
|
|
1775
1809
|
for (let s of domain.refs) domain.cats.forEach((c, ci) => {
|
|
1776
1810
|
let val = s.vals[ci];
|
|
1777
1811
|
if (val.v === null) return;
|
|
1778
|
-
let text = composeText(domain, content, { abs: val.v, isPct: val.isPct
|
|
1812
|
+
let text = composeText(domain, content, { abs: val.v, isPct: val.isPct }, c.label ?? c.id, s.label, domain.valueFmtOf(s, val)), { width: w, height: h } = env.measure(text, tickFont), ry = y(val.v), seat = (slot, x, top, penalty) => ({ slot, rect: { x, y: top, w, h }, penalty }), cx = band.center(ci), right = band.position(ci) + band.bandwidth + 5;
|
|
1779
1813
|
requests.push({
|
|
1780
1814
|
id: `tick:${s.id}:${c.id}`,
|
|
1781
1815
|
kind: "tick",
|
|
@@ -1844,7 +1878,7 @@ function linePointLabels(env, domain, area, geometry, requests, strokes, fills)
|
|
|
1844
1878
|
if (area.first.get(s.id)?.ci === point.ci || area.last.get(s.id)?.ci === point.ci) continue;
|
|
1845
1879
|
let cell = s.vals[point.ci], override = cell.labelOverride, extreme = cell.v === min || cell.v === max, flagged = flaggedContent !== null && override === void 0 && flaggedAt(s, point.ci), engine = content !== null && override === void 0 && (mode === "all" || extreme) || flagged;
|
|
1846
1880
|
if (typeof override != "string" && !engine) continue;
|
|
1847
|
-
let category = domain.cats[point.ci],
|
|
1881
|
+
let category = domain.cats[point.ci], valueFmt = domain.valueFmtOf(s, cell), text = typeof override == "string" ? override.replace(/\$\{value\}/g, composeText(domain, ["absolute"], { abs: cell.v ?? 0, isPct: cell.isPct }, category.label ?? category.id, s.label, valueFmt)) : composeText(domain, content ?? flaggedContent, { abs: cell.v, isPct: cell.isPct }, category.label ?? category.id, s.label, valueFmt);
|
|
1848
1882
|
if (!text) continue;
|
|
1849
1883
|
let size = env.measure(text, labelFont), below = sideAwayFrom(point, others) === "below", centeredX = Math.max(frame.plot.x, Math.min(point.x - size.width / 2, frame.plot.x + frame.plot.w - size.width)), aboveY = point.y - labelH - ABOVE_POINT_GAP, lift = domain.anatomy ? clearLift({ x: centeredX, y: aboveY, w: size.width, h: labelH }, strokes, labelH) : void 0, free = [
|
|
1850
1884
|
{ slot: "above", y: aboveY, penalty: below ? 1 : 0 },
|
|
@@ -1864,6 +1898,7 @@ function linePointLabels(env, domain, area, geometry, requests, strokes, fills)
|
|
|
1864
1898
|
typeRole: "label",
|
|
1865
1899
|
font: labelFont,
|
|
1866
1900
|
priority: cell.priority ?? (engine && extreme ? PRIORITY.extreme : PRIORITY.interior) + (env.highlights.has(s.id) || env.highlights.has(category.id) ? PRIORITY.highlightBonus : 0),
|
|
1901
|
+
...env.highlights.has(s.id) || env.highlights.has(category.id) ? { keepWhenDense: !0 } : {},
|
|
1867
1902
|
candidates: withinOneFill(slots, fills)
|
|
1868
1903
|
});
|
|
1869
1904
|
}
|
|
@@ -1927,13 +1962,32 @@ function planComboLabels(env, domain, area, geometry, paints, warnings) {
|
|
|
1927
1962
|
});
|
|
1928
1963
|
segmentLabels(env, domain, area, geometry, paints, requests, warnings);
|
|
1929
1964
|
let strokes = comboStrokes(geometry).map(preparePolyline), lineYsByCat;
|
|
1930
|
-
grandTotalLabels(env, domain, area, paints, requests, (ci) => {
|
|
1965
|
+
if (grandTotalLabels(env, domain, area, paints, requests, (ci) => {
|
|
1931
1966
|
if (!lineYsByCat) {
|
|
1932
1967
|
lineYsByCat = domain.cats.map(() => []);
|
|
1933
1968
|
for (let plan of geometry.plans) for (let point of plan.pts) lineYsByCat[point.ci].push(point.y);
|
|
1934
1969
|
}
|
|
1935
1970
|
return lineYsByCat[ci];
|
|
1936
|
-
}, strokes);
|
|
1971
|
+
}, strokes), hasLabelPosition(domain.options)) for (let i = 0; i < requests.length; i++) {
|
|
1972
|
+
let request = requests[i], first = request.candidates[0];
|
|
1973
|
+
if (!first || !/^(segment|grandTotal):/.test(request.id)) continue;
|
|
1974
|
+
let ci = domain.cats.findIndex((cat) => cat.id === request.owner.categoryId), total = request.id.startsWith("grandTotal:"), single = total ? totalColumn(domain, ci) : void 0, place = geometry.segments.find((segment) => segment.ci === ci && segment.s.id === (total ? single?.id : request.owner.seriesId));
|
|
1975
|
+
if (!place) continue;
|
|
1976
|
+
let { s, si, v, rect } = place, c = domain.cats[ci], val = s.vals[ci], positioned = positionBarLabel(request, domain.options, {
|
|
1977
|
+
rect,
|
|
1978
|
+
size: { width: first.rect.w, height: first.rect.h },
|
|
1979
|
+
orientation: "vertical",
|
|
1980
|
+
endPositive: v >= 0,
|
|
1981
|
+
zero: v === 0,
|
|
1982
|
+
edgeGap: total ? first.slot === "insideTop" ? 4 : 8 : 4,
|
|
1983
|
+
fallback: total ? void 0 : "stack",
|
|
1984
|
+
muted: request.bodyInk !== void 0,
|
|
1985
|
+
insideFill: paints.inside(s, val, c, si),
|
|
1986
|
+
insidePaint: paints.cell(s, val, c, si),
|
|
1987
|
+
insidePattern: paints.pattern(s, val, c)
|
|
1988
|
+
});
|
|
1989
|
+
requests[i] = positioned === request ? request : { ...positioned, candidates: clearOfStrokes(positioned.candidates, strokes) };
|
|
1990
|
+
}
|
|
1937
1991
|
let fills = geometry.segments.map((segment) => segment.rect), segmentSeats = requests.flatMap((r) => r.kind === "segment" && !r.redundant && r.candidates[0]?.slot === "insideCenter" ? [r.candidates[0].rect] : []), totalSeats = requests.flatMap((r) => r.kind === "grandTotal" && !r.redundant && r.candidates[0] ? [r.candidates[0].rect] : []);
|
|
1938
1992
|
for (let { s, pts } of geometry.plans)
|
|
1939
1993
|
for (let endpoint of [
|
|
@@ -2046,7 +2100,7 @@ function columnMarks(ctx) {
|
|
|
2046
2100
|
...washed ? {} : { separation: { fillStep: !0, fill: cellFill, backing: { token: "background" }, pattern: cellPat } },
|
|
2047
2101
|
owner: { seriesId: s.id, categoryId: c.id },
|
|
2048
2102
|
part: "segment",
|
|
2049
|
-
display: { value:
|
|
2103
|
+
display: { value: domain.valueFmtOf(s, val)(v) }
|
|
2050
2104
|
}), claims.claim(rect, "mark", { seriesId: s.id, categoryId: c.id }, "segment"), segs.push({ seriesId: s.id, rect, nodeId }), g.segments.push({ s, si, ci, v, rect });
|
|
2051
2105
|
});
|
|
2052
2106
|
let stackTop = y(pos), stackBot = y(neg);
|
|
@@ -2060,12 +2114,12 @@ function columnMarks(ctx) {
|
|
|
2060
2114
|
cats.forEach((c, ci) => {
|
|
2061
2115
|
let v = s.vals[ci].v;
|
|
2062
2116
|
if (v === null) return;
|
|
2063
|
-
let ry = y(v), bx = band.position(ci), bw = band.bandwidth, owner = { seriesId: s.id, categoryId: c.id }, id = `ref:${s.id}:${c.id}`, display = { value:
|
|
2117
|
+
let ry = y(v), bx = band.position(ci), bw = band.bandwidth, owner = { seriesId: s.id, categoryId: c.id }, id = `ref:${s.id}:${c.id}`, display = { value: domain.valueFmtOf(s, s.vals[ci])(v) };
|
|
2064
2118
|
if (style === "marker") {
|
|
2065
2119
|
let cx = band.center(ci);
|
|
2066
2120
|
nodes.push({ t: "circle", id, cx, cy: ry, ...referenceMarkerPaint(env.theme, paints.ref(s)), owner, part: "referenceMarker", display });
|
|
2067
|
-
let mr = REFERENCE_MARKER_R + 1;
|
|
2068
|
-
claims.claim(
|
|
2121
|
+
let mr = REFERENCE_MARKER_R + 1, rect = { x: cx - mr, y: ry - mr, w: mr * 2, h: mr * 2 };
|
|
2122
|
+
claims.claim(rect, "mark", owner), g.marks.referenceTicks.push({ ...owner, rect, nodeId: id });
|
|
2069
2123
|
return;
|
|
2070
2124
|
}
|
|
2071
2125
|
let tick = referenceTickGeometry("vertical", bx, ry, -2, bw + 2), tickWidth = style === "line" ? strokeToken(env.theme, "rule") : domain.options.referenceTick?.width ?? strokeToken(env.theme, "rule");
|
|
@@ -2079,7 +2133,7 @@ function columnMarks(ctx) {
|
|
|
2079
2133
|
owner,
|
|
2080
2134
|
part: style === "line" ? "referenceLine" : "referenceTick",
|
|
2081
2135
|
display
|
|
2082
|
-
}), claims.claim(tick.claim, "mark", owner, style === "line" ? "referenceLine" : void 0);
|
|
2136
|
+
}), claims.claim(tick.claim, "mark", owner, style === "line" ? "referenceLine" : void 0), g.marks.referenceTicks.push({ ...owner, rect: tick.claim, nodeId: id });
|
|
2083
2137
|
});
|
|
2084
2138
|
}
|
|
2085
2139
|
function pathFor2(points, interpolation, curve = []) {
|
|
@@ -2196,7 +2250,7 @@ function lineMark(ctx, plan, areaNodeId, ringed) {
|
|
|
2196
2250
|
let c = cats[p.ci], markerNodeId;
|
|
2197
2251
|
if (markerShape !== "none" && (full || c.partial === !0)) {
|
|
2198
2252
|
markerNodeId = `marker:${s.id}:${c.id}`;
|
|
2199
|
-
let hollow = c.partial === !0 || paints.lineHollow(s), markerFill = hollow ? { token: "background" } : paint, owner = { seriesId: s.id, categoryId: c.id }, value = s.vals[p.ci],
|
|
2253
|
+
let hollow = c.partial === !0 || paints.lineHollow(s), markerFill = hollow ? { token: "background" } : paint, owner = { seriesId: s.id, categoryId: c.id }, value = s.vals[p.ci], display = { value: domain.valueFmtOf(s, value)(value.v) };
|
|
2200
2254
|
g.nodes.push(anatomyDots && !hollow ? { t: "circle", id: markerNodeId, cx: p.x, cy: p.y, r: ANATOMY_DOT_R, fill: markerFill, stroke: { token: "background" }, strokeWidth: strokeToken(env.theme, "mark"), owner, part: "marker", display } : markerShape === "square" ? { t: "rect", id: markerNodeId, rect: { x: p.x - 2.75, y: p.y - 2.75, w: 2.75 * 2, h: 2.75 * 2 }, fill: markerFill, ...hollow ? { stroke: paint, strokeWidth: strokeToken(env.theme, "mark") } : {}, owner, part: "marker", display } : markerShape === "triangle" || markerShape === "diamond" ? { t: "path", id: markerNodeId, d: markerPath(markerShape, p), fill: markerFill, ...hollow ? { stroke: paint, width: strokeToken(env.theme, "mark") } : {}, owner, part: "marker", display } : { t: "circle", id: markerNodeId, cx: p.x, cy: p.y, r: 2.75, fill: markerFill, stroke: hollow ? paint : { token: "background" }, strokeWidth: strokeToken(env.theme, "mark"), owner, part: "marker", display });
|
|
2201
2255
|
let claimR = markerShape === "triangle" || markerShape === "diamond" ? 4 + (hollow ? strokeToken(env.theme, "mark") / 2 : 0) : 2.75 + 1;
|
|
2202
2256
|
g.claims.claim({ x: p.x - claimR, y: p.y - claimR, w: claimR * 2, h: claimR * 2 }, "mark", { seriesId: s.id, categoryId: c.id });
|
|
@@ -2223,7 +2277,7 @@ function layoutComboMarks(env, domain, area, paints) {
|
|
|
2223
2277
|
claims: createOccupiedIndex({ x: 0, y: 0, w: env.size.width, h: env.size.height }),
|
|
2224
2278
|
axes: [],
|
|
2225
2279
|
leftTickX: 1 / 0,
|
|
2226
|
-
marks: { columns: [], lines: [] },
|
|
2280
|
+
marks: { columns: [], lines: [], referenceTicks: [] },
|
|
2227
2281
|
segEdges: /* @__PURE__ */ new Map(),
|
|
2228
2282
|
yieldingTicks: [],
|
|
2229
2283
|
areaGrounds: [],
|
|
@@ -2261,7 +2315,7 @@ function comboAnomalyMarks(env, domain, anomaly, area, geometry) {
|
|
|
2261
2315
|
anomaly: anomaly.model,
|
|
2262
2316
|
corridorShown: anomaly.corridorShown,
|
|
2263
2317
|
statFmt: anomaly.statFmt,
|
|
2264
|
-
fmt: domain.
|
|
2318
|
+
fmt: domain.valueFmtOf(series),
|
|
2265
2319
|
corridorPaint: columnCorridorPaint(domain.options.colorblindSafe),
|
|
2266
2320
|
plot: area.plot,
|
|
2267
2321
|
y: onSecondary ? area.y2 : area.y,
|
|
@@ -2282,7 +2336,7 @@ function annotateCombo(env, domain, area, geometry, occupied, solveCtx, labelReq
|
|
|
2282
2336
|
if (ci === void 0) return null;
|
|
2283
2337
|
let c = cats[ci];
|
|
2284
2338
|
if (norm.seriesId) {
|
|
2285
|
-
let owner = { categoryId: c.id, seriesId: norm.seriesId }, named = [...columns, ...domain.lines, ...domain.refs].find((s) => s.id === norm.seriesId), series = { format: named?.format, ...named && columns.length + domain.lines.length > 1 ? { series: { id: named.id, label: named.label } } : {} }, reference = domain.refs.find((s) => s.id === norm.seriesId);
|
|
2339
|
+
let owner = { categoryId: c.id, seriesId: norm.seriesId }, named = [...columns, ...domain.lines, ...domain.refs].find((s) => s.id === norm.seriesId), series = { format: named?.format, ...named && columns.length + domain.lines.length > 1 ? { series: { id: named.id, label: named.label } } : {} }, markValueText = (s, v) => domain.valueFmtOf(s, s.vals[ci])(v), reference = domain.refs.find((s) => s.id === norm.seriesId);
|
|
2286
2340
|
if (reference && geometry.nodes.some((node) => node.id === `ref:${reference.id}:${c.id}`)) {
|
|
2287
2341
|
let v = reference.vals[ci].v;
|
|
2288
2342
|
return v === null ? null : { x: band.center(ci), y: y(v), value: v, date: c.date, label: c.label, owner, ...series };
|
|
@@ -2292,16 +2346,16 @@ function annotateCombo(env, domain, area, geometry, occupied, solveCtx, labelReq
|
|
|
2292
2346
|
let v = ls.vals[ci].v;
|
|
2293
2347
|
if (v === null) return null;
|
|
2294
2348
|
let yFor = ls.axis === "secondary" && secondaryActive ? y2 : y;
|
|
2295
|
-
return { x: band.center(ci), y: norm.edge === "start" ? y0 : yFor(v), value: v, date: c.date, label: c.label, owner, lineAnchored: !0, ...series };
|
|
2349
|
+
return { x: band.center(ci), y: norm.edge === "start" ? y0 : yFor(v), value: v, markValueText: markValueText(ls, v), date: c.date, label: c.label, owner, lineAnchored: !0, ...series };
|
|
2296
2350
|
}
|
|
2297
2351
|
let e = geometry.segEdges.get(sk(norm.seriesId, c.id));
|
|
2298
2352
|
if (!e) return null;
|
|
2299
2353
|
let edge = norm.edge ?? "end", yy = y(edge === "start" ? e.v0 : edge === "end" ? e.v1 : Math.max(e.v0, e.v1));
|
|
2300
|
-
return { x: band.center(ci), y: yy, value: e.v, date: c.date, label: c.label, owner, ...series };
|
|
2354
|
+
return { x: band.center(ci), y: yy, value: e.v, ...named ? { markValueText: markValueText(named, e.v) } : {}, date: c.date, label: c.label, owner, ...series };
|
|
2301
2355
|
}
|
|
2302
2356
|
if (columns.length === 0) return null;
|
|
2303
2357
|
let topPlotted = domain.posTop[ci] > 0 ? domain.posTop[ci] : domain.negBot[ci];
|
|
2304
|
-
return { x: band.center(ci), y: norm.edge === "start" ? y0 : y(topPlotted), value: domain.stackTotals[c.id], format: columns.length === 1 ? columns[0].format : void 0, ...noTotal(domain.columnsAdd, domain.anyByCat[ci]), date: c.date, label: c.label, owner: { categoryId: c.id } };
|
|
2358
|
+
return { x: band.center(ci), y: norm.edge === "start" ? y0 : y(topPlotted), value: domain.stackTotals[c.id], format: columns.length === 1 ? columns[0].format : void 0, ...noTotal(domain.columnsAdd, domain.anyByCat[ci] && !domain.incompleteCats.has(c.id)), date: c.date, label: c.label, owner: { categoryId: c.id } };
|
|
2305
2359
|
}, lift = area.topPad - area.axisTitles.height - 8, annPlot = { x: plot.x, y: plot.y - lift, w: plot.w, h: plot.h + lift }, ceilingRects = [
|
|
2306
2360
|
...area.axisTitles.height > 0 ? [{ x: area.frame.plot.x, y: area.frame.plot.y, w: area.frame.plot.w, h: area.axisTitles.height }] : [],
|
|
2307
2361
|
...area.valueLineRows.values()
|
|
@@ -2372,7 +2426,7 @@ function assembleComboGeometry(input) {
|
|
|
2372
2426
|
columns.length > 0 ? chartString2(domain.options, "stackedColumnSeriesDesc", { v1: columns.length, v2: columns.map((s) => s.label).join(", ") }) : "",
|
|
2373
2427
|
lines.length > 0 ? chartString2(domain.options, "lineAreaSeriesDesc", { v1: lines.length, v2: lines.map((s) => s.label).join(", ") }) : "",
|
|
2374
2428
|
refs.length > 0 ? chartString2(domain.options, "referenceSeriesCount", { v1: refs.length }) : ""
|
|
2375
|
-
].filter(Boolean).join(chartString2(domain.options, "plusClause")), totalsAdd = columns.length > 0 && domain.columnsAdd, a11yDesc = chartString2(domain.options, "comboDescStart", { v1: cats.length, v2: partsDesc }) + (domain.secondaryActive ? chartString2(domain.options, "secondaryAxisDesc") : "") + (totalsAdd ? chartString2(domain.options, "columnTotalsSentence", { v1: cats.map((c, ci) => `${c.label ?? c.id} ${domain.anyByCat[ci] ?
|
|
2429
|
+
].filter(Boolean).join(chartString2(domain.options, "plusClause")), totalsAdd = columns.length > 0 && domain.columnsAdd, a11yDesc = chartString2(domain.options, "comboDescStart", { v1: cats.length, v2: partsDesc }) + (domain.secondaryActive ? chartString2(domain.options, "secondaryAxisDesc") : "") + (totalsAdd ? chartString2(domain.options, "columnTotalsSentence", { v1: cats.map((c, ci) => `${c.label ?? c.id} ${domain.anyByCat[ci] ? domain.totalFmtOf(ci)(stackTotals[c.id]) : NOT_AVAILABLE}`).join(", ") }) : ".") + anomalyA11y({ options: domain.options, anomaly: domain.anomaly, fmt: domain.anomaly ? domain.valueFmtOf(domain.lines.find((s) => s.id === domain.anomaly.seriesId)) : fmt, cats }), paintWarningRules = [];
|
|
2376
2430
|
pushAll(warnings, rectSeriesAdjacentWarnings(nodes, input.paints.css, "vertical", env.highlights, env.theme, { rules: paintWarningRules, before: warnings.filter((warning) => !["pie-ramp-crowded", "likert-ramp-invisible", "band-lightness-insufficient", "series-adjacent-similar", "highlight-reads-as-loss"].includes(warning.code)).length }));
|
|
2377
2431
|
let catTickMaxLines = catPlan.maxLines, clearance = domain.options[LINE_BAND_CLEARANCE], floatClearance = domain.options[FLOAT_BAND_CLEARANCE];
|
|
2378
2432
|
return {
|
|
@@ -2433,6 +2487,14 @@ function commitClaims(occupied, phase) {
|
|
|
2433
2487
|
}
|
|
2434
2488
|
var CATEGORY_NOTED = /* @__PURE__ */ Symbol("categoryNoted"), UNPRINTED = /* @__PURE__ */ Symbol("unprintedValues");
|
|
2435
2489
|
function layoutCombo(data, options = {}, gutterOverride) {
|
|
2490
|
+
if (hasLabelPosition(options)) {
|
|
2491
|
+
let columns = data.series.filter((series) => series.role !== "reference" && (series.kind ?? "column") === "column");
|
|
2492
|
+
columns.length !== 1 && refuseLabelPosition(
|
|
2493
|
+
options,
|
|
2494
|
+
columns.length === 0 ? "combo without columns" : "stacked combo",
|
|
2495
|
+
columns.length === 0 ? [] : ["center", "insideEnd", "insideBase"]
|
|
2496
|
+
);
|
|
2497
|
+
}
|
|
2436
2498
|
let geo = withBandValueNotes(data, withLocaleStrings(options), (next) => {
|
|
2437
2499
|
let cur = next, geometry = layoutComboPass(data, cur, gutterOverride);
|
|
2438
2500
|
for (let step = 0; step < 2; step++) {
|
|
@@ -2482,7 +2544,7 @@ function layoutComboFramePass(data, options, gutterOverride, env, domain, paints
|
|
|
2482
2544
|
warnings
|
|
2483
2545
|
}), settled = settle(), area = settled.area;
|
|
2484
2546
|
if (options[LINE_BAND_CLEARANCE] === void 0) {
|
|
2485
|
-
let scaleH = area.y(domain.dLo) - area.y(domain.dHi), mode = comboValueLabels(options, domain.anatomy, domain.cats.length, domain.lineFloat !== void 0), interiorValues = mode === "all" || mode === "extremes" || domain.anomaly !== void 0, insideTotals = domain.anatomy && domain.columns.length === 1 && !domain.anomaly && domain.cats.every((c) => env.measure(domain.
|
|
2547
|
+
let scaleH = area.y(domain.dLo) - area.y(domain.dHi), mode = comboValueLabels(options, domain.anatomy, domain.cats.length, domain.lineFloat !== void 0), interiorValues = mode === "all" || mode === "extremes" || domain.anomaly !== void 0, insideTotals = domain.anatomy && domain.columns.length === 1 && !domain.anomaly && domain.cats.every((c, ci) => env.measure(domain.totalFmtOf(ci)(domain.stackTotals[c.id] ?? 0), area.labelFont).width + 4 <= area.band.bandwidth), anomalyRoom = domain.anomaly ? ANOMALY_FLAG_GAP + ANOMALY_FLAG_H : 0, valueRow = env.measure("0", area.labelFont).height + 14, clearance = (insideTotals ? 2.75 + 8 : area.gtH + (interiorValues ? valueRow : 8)) + anomalyRoom, floatClearance = (insideTotals ? 2.75 + 8 : area.gtH) + valueRow + anomalyRoom;
|
|
2486
2548
|
if (scaleH > 0 && domain.secondaryActive && domain.columns.length > 0) {
|
|
2487
2549
|
let measured = clearance / scaleH, floatMeasured = floatClearance / scaleH, next = domain.withLineBandClearance?.(measured, floatMeasured);
|
|
2488
2550
|
options = { ...options, [LINE_BAND_CLEARANCE]: measured, [FLOAT_BAND_CLEARANCE]: floatMeasured }, next && (domain = next.domain, domainWarnings = next.warnings, warnings.length = 0, pushAll(warnings, domainWarnings)), domain.options = { ...domain.options, [LINE_BAND_CLEARANCE]: measured, [FLOAT_BAND_CLEARANCE]: floatMeasured }, next && (settled = settle(), area = settled.area);
|
|
@@ -2529,9 +2591,12 @@ function layoutComboFramePass(data, options, gutterOverride, env, domain, paints
|
|
|
2529
2591
|
let densityValues = options[DENSITY_VALUES];
|
|
2530
2592
|
for (let request of requests) densityValues?.has(request.id) && ["point", "grandTotal"].includes(request.kind) && (request.redundant = !0, request.suppressedAs = "density");
|
|
2531
2593
|
let solveCtx = {
|
|
2594
|
+
// A host chart names the claims of combo's labels (claims/ids.ts).
|
|
2595
|
+
...HOST_CLAIMS in options ? { [HOST_CLAIMS]: options[HOST_CLAIMS] } : {},
|
|
2532
2596
|
focus: options.focus,
|
|
2533
2597
|
density: env.density,
|
|
2534
2598
|
pins: options.labelPlacements ?? {},
|
|
2599
|
+
labelOffsets: options.labelOffsets,
|
|
2535
2600
|
measure: env.measure,
|
|
2536
2601
|
plot: area.plot,
|
|
2537
2602
|
canvas: { x: 0, y: 0, w: size.width, h: size.height },
|
|
@@ -2578,8 +2643,8 @@ function layoutComboFramePass(data, options, gutterOverride, env, domain, paints
|
|
|
2578
2643
|
let current = authoredNotes(options).filter((line) => !line.startsWith(options.strings.valuesNotBesideMarks)), valueCount = solved.placed.filter((l) => l.id.startsWith("tick:") || l.id.startsWith("segment:")).length, note = noteLine(options.strings.valuesNotBesideMarks, [...named.values()].sort((a, b) => a[0] - b[0]).map(([, item]) => item), options, valueCount), authored = options.authoredFootnotes ?? current;
|
|
2579
2644
|
return layoutComboPass(data, { ...withAuthoredFootnotes(options, [...current, ...note], authored), [UNPRINTED]: { named, runs: prior.runs + 1 } }, gutterOverride, { area, geometry: marks });
|
|
2580
2645
|
}
|
|
2581
|
-
let inNote = new Set(unprinted.filter((l) => prior.named.has(l.id)).map((l) =>
|
|
2582
|
-
solved.warnings = solved.warnings.filter((w) => !(w.code === "label-hidden" &&
|
|
2646
|
+
let inNote = new Set(unprinted.filter((l) => prior.named.has(l.id)).map((l) => l.id));
|
|
2647
|
+
solved.warnings = solved.warnings.filter((w) => !(w.code === "label-hidden" && inNote.has(String(w.detail?.labelId))));
|
|
2583
2648
|
}
|
|
2584
2649
|
let notedIds = options[UNPRINTED]?.named, countedIds = notedIds ? new Set([...notedIds].sort((a, b) => a[1][0] - b[1][0]).slice(noteCap(options, notedIds.size)).map(([id]) => id)) : void 0;
|
|
2585
2650
|
for (let label of solved.placed) notedIds?.has(label.id) && (label.hidden === void 0 && (label.hidden = "note"), label.noted = !0, countedIds?.has(label.id) && (label.noteCounted = !0));
|