boardplot 0.58.1 → 0.59.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 +67 -0
- package/dist/{ReaderBox-WVOT7VVJ.js → ReaderBox-4PNFZO56.js} +4 -4
- package/dist/{annotateEngine-57L26X77.js → annotateEngine-DL4KRQ6B.js} +1 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-54YO56IK.js → chunk-25JXYOSX.js} +1 -1
- package/dist/{chunk-HF4BCPIV.js → chunk-266ENWFM.js} +3 -3
- package/dist/{chunk-FRR7BJ3B.js → chunk-2E2MK4XM.js} +2 -2
- package/dist/{chunk-2DS4MT7T.js → chunk-2GVW5WDD.js} +3 -3
- package/dist/{chunk-4ROZ4TFL.js → chunk-2HRDOBPS.js} +1 -1
- package/dist/chunk-2Q7IAWON.js +18 -0
- package/dist/{chunk-PVGJM2HP.js → chunk-33SPSKTP.js} +4 -4
- package/dist/{chunk-Z6DUNKFU.js → chunk-3JG764MI.js} +688 -140
- package/dist/{chunk-OZLKEBCD.js → chunk-3V7Y7CHI.js} +1 -1
- package/dist/{chunk-3BMPYY26.js → chunk-3WC2TA6C.js} +4 -4
- package/dist/{chunk-T7PRG6AO.js → chunk-3WFJDXZO.js} +3 -3
- package/dist/{chunk-5KAYLRRP.js → chunk-3ZR7ZE64.js} +2 -2
- package/dist/{chunk-WW4KLAVO.js → chunk-4DLIXTDH.js} +5 -5
- package/dist/{chunk-OQUH7I5T.js → chunk-4EEK4AMC.js} +2 -2
- package/dist/{chunk-RLH2CQCD.js → chunk-4LCQO46F.js} +144 -55
- package/dist/{chunk-SHYS52VO.js → chunk-4NIIQFDA.js} +147 -104
- package/dist/{chunk-ED7GLWTF.js → chunk-4PKUS5MG.js} +2 -1
- package/dist/{chunk-645BGVPP.js → chunk-4WH2YGO6.js} +3 -3
- package/dist/{chunk-MXUPMGRY.js → chunk-4YKS2JDE.js} +3 -3
- package/dist/{chunk-LYAT62UT.js → chunk-4YZQY3AA.js} +1 -1
- package/dist/{chunk-VJULLJLN.js → chunk-56CDMSE5.js} +2 -2
- package/dist/{chunk-SBKM6XFS.js → chunk-5AXWSGS7.js} +3 -3
- package/dist/{chunk-XZXZNI7A.js → chunk-5HOIOQK3.js} +1 -1
- package/dist/{chunk-ERDKMZ7O.js → chunk-5OV7VOGV.js} +2 -2
- package/dist/{chunk-AICO24HJ.js → chunk-5QMM354E.js} +6 -5
- package/dist/{chunk-USMKNNOU.js → chunk-5UXK5BAA.js} +37 -38
- package/dist/{chunk-ZB3JIL3L.js → chunk-5YULK4DY.js} +6 -10
- package/dist/{chunk-63JUV7NR.js → chunk-5ZE7SHRM.js} +3 -3
- package/dist/{chunk-SCAYWQZK.js → chunk-67744WKZ.js} +1 -1
- package/dist/{chunk-IFUAPFL5.js → chunk-6CZGFTGK.js} +51 -47
- package/dist/{chunk-7YZZCQT3.js → chunk-6IIYLDSQ.js} +3 -3
- package/dist/{chunk-JBAVMO56.js → chunk-6TH5NVKS.js} +19 -14
- package/dist/{chunk-I5VNHDPR.js → chunk-6TZDPQDE.js} +2 -2
- package/dist/{chunk-TMEUK2WS.js → chunk-77L6QGIG.js} +1 -1
- package/dist/{chunk-OS7C2KMQ.js → chunk-7IONS4Z7.js} +3 -3
- package/dist/{chunk-ETUKDEGL.js → chunk-7QUWM5W6.js} +6 -6
- package/dist/{chunk-KI7VCHNZ.js → chunk-7SIZGM5S.js} +78 -53
- package/dist/{chunk-G7BCLYL4.js → chunk-7TZIPGFH.js} +8 -6
- package/dist/{chunk-76GPN6AT.js → chunk-7UUSHA7H.js} +1 -1
- package/dist/{chunk-OZA7HA6L.js → chunk-7UZUXPFM.js} +1 -1
- package/dist/{chunk-4DK67I3B.js → chunk-7YJSSPQX.js} +31 -28
- package/dist/{chunk-TBZT5WUT.js → chunk-7ZXIHEZS.js} +4 -4
- package/dist/{chunk-IMUMPKXF.js → chunk-A3SOYL6F.js} +3 -3
- package/dist/{chunk-P3NMDPDP.js → chunk-ADLKZEML.js} +31 -64
- package/dist/{chunk-SKPOXLG5.js → chunk-AFQZBCME.js} +4 -4
- package/dist/{chunk-TVOMGNFQ.js → chunk-AGR4VJ2Y.js} +1 -1
- package/dist/{chunk-2HII2B6S.js → chunk-AH2L44TR.js} +3 -3
- package/dist/{chunk-WFBN2HXR.js → chunk-AIPOSNVG.js} +1 -1
- package/dist/{chunk-4OJF6DXL.js → chunk-AUSZDYGE.js} +9 -7
- package/dist/{chunk-2SWSUNA4.js → chunk-AVYRC2T3.js} +50 -28
- package/dist/{chunk-NSMYIUBZ.js → chunk-B5FT4YAX.js} +1 -1
- package/dist/{chunk-H3VICNTN.js → chunk-B7UWG6XJ.js} +1 -1
- package/dist/{chunk-X3QUASBR.js → chunk-BJJYNTVJ.js} +1 -1
- package/dist/{chunk-WKXLJNHW.js → chunk-BOUZKVIY.js} +17 -19
- package/dist/{chunk-WUP6C4ZD.js → chunk-BXZNLMMH.js} +1 -1
- package/dist/{chunk-OMNB27GM.js → chunk-C26Z5AEW.js} +3 -3
- package/dist/{chunk-VC62V7CX.js → chunk-CV5KCQD3.js} +72 -79
- package/dist/{chunk-RPGEB3Z5.js → chunk-CX7WUNMO.js} +22 -18
- package/dist/{chunk-YJUBX3QF.js → chunk-DANKUHCX.js} +41 -40
- package/dist/{chunk-IDXYHDQY.js → chunk-DBKMJWPO.js} +1 -1
- package/dist/{chunk-6ALORYH7.js → chunk-DEJ27Y2P.js} +138 -91
- package/dist/{chunk-HTQGJQZN.js → chunk-DITI57ZB.js} +1 -1
- package/dist/{chunk-IXU5C3YY.js → chunk-DO7MMF4C.js} +86 -43
- package/dist/{chunk-I52OMC5B.js → chunk-DUDVHQD6.js} +7 -7
- package/dist/{chunk-4TUU3UGY.js → chunk-DXLWMK24.js} +3 -3
- package/dist/{chunk-MALSSEXO.js → chunk-DYD7W3Y6.js} +20 -21
- package/dist/{chunk-P5RCP4NK.js → chunk-DZBT7AWJ.js} +2 -2
- package/dist/{chunk-YLRAAJYV.js → chunk-E4KHHC46.js} +16 -16
- package/dist/{chunk-KUWIRCYJ.js → chunk-E62SXDRT.js} +2 -2
- package/dist/{chunk-WOICFLOJ.js → chunk-EADD6NNQ.js} +73 -79
- package/dist/{chunk-CMPHT2LS.js → chunk-EH23CIC5.js} +4 -4
- package/dist/{chunk-HM4AJ5U4.js → chunk-EJA5EANI.js} +47 -26
- package/dist/{chunk-NFGV5OAR.js → chunk-EWGFOEJB.js} +126 -65
- package/dist/{chunk-Y6E4JU3U.js → chunk-EWMPUCIG.js} +37 -37
- package/dist/{chunk-GB3RZYTK.js → chunk-EZ5KUBYF.js} +38 -27
- package/dist/{chunk-M5LPP2GQ.js → chunk-F2N5BUBK.js} +12 -13
- package/dist/{chunk-VJ7VBB6S.js → chunk-F7QCIJAY.js} +1 -1
- package/dist/{chunk-C4SQU2PB.js → chunk-FB36HSY2.js} +4 -4
- package/dist/{chunk-F3XOBFS4.js → chunk-FBIMTKYK.js} +3 -10
- package/dist/{chunk-XSC4IXXC.js → chunk-FMVXXKSW.js} +3 -3
- package/dist/{chunk-3ESWPMDW.js → chunk-FP3ORYCG.js} +22 -21
- package/dist/{chunk-P6DEFCMQ.js → chunk-FWPPZB4G.js} +2 -2
- package/dist/{chunk-MSYTF3DZ.js → chunk-FYFXOLWI.js} +116 -89
- package/dist/{chunk-SH4UGK5U.js → chunk-GDE2JINW.js} +11 -11
- package/dist/{chunk-WDJSDJLV.js → chunk-GEEHXLFQ.js} +7 -6
- package/dist/{chunk-EDW5HQND.js → chunk-GGFT6IIM.js} +3 -3
- package/dist/{chunk-UBYDY4B7.js → chunk-GIJM4MP4.js} +5 -5
- package/dist/{chunk-UY34DDUM.js → chunk-GNK7RTO4.js} +3 -3
- package/dist/{chunk-CFESVCZR.js → chunk-GSHRYDJM.js} +1 -1
- package/dist/{chunk-3M2F7KSS.js → chunk-GWDKUKOJ.js} +96 -321
- package/dist/{chunk-XMX4PCFL.js → chunk-GZYMHC44.js} +2 -2
- package/dist/{chunk-OUR5ZHCB.js → chunk-HBKZC5BH.js} +2 -2
- package/dist/{chunk-23FT7RLN.js → chunk-HC4UW7MB.js} +4 -4
- package/dist/{chunk-AMBQ6SWU.js → chunk-HFDU2E7C.js} +27 -21
- package/dist/{chunk-ZG4BMJRL.js → chunk-HW67YGJC.js} +1 -1
- package/dist/{chunk-FJNZ7NWD.js → chunk-I65BCUVH.js} +3 -3
- package/dist/{chunk-VTY6YHQZ.js → chunk-ICERP2YF.js} +3 -3
- package/dist/{chunk-G7CXJPEN.js → chunk-ICJUN47O.js} +2 -2
- package/dist/{chunk-H4EDDGGX.js → chunk-ID5PE4KM.js} +3 -3
- package/dist/{chunk-BQ7SN7AW.js → chunk-IDJVUZAA.js} +3 -3
- package/dist/{chunk-O3LT4TAI.js → chunk-IQRRT32Q.js} +2 -2
- package/dist/{chunk-WGJIYFVQ.js → chunk-ISMFUWOP.js} +3 -3
- package/dist/{chunk-6AVUTZ6W.js → chunk-IX2SLULO.js} +3 -3
- package/dist/{chunk-Q2I3QLE3.js → chunk-IXZI4SN4.js} +116 -46
- package/dist/chunk-J6LGZPKI.js +89 -0
- package/dist/{chunk-CCAAI56H.js → chunk-JF743NNC.js} +7 -0
- package/dist/{chunk-YGWPOYDE.js → chunk-JIB74SQS.js} +6 -6
- package/dist/{chunk-ZIVCPXXL.js → chunk-JOX252XQ.js} +5 -5
- package/dist/{chunk-V7JFT7NQ.js → chunk-JRM22ULA.js} +54 -45
- package/dist/{chunk-XSEETONJ.js → chunk-JYSS5ZZF.js} +5 -5
- package/dist/{chunk-WLH5IBFY.js → chunk-KRIYGX3N.js} +3 -3
- package/dist/{chunk-XRRG4MBM.js → chunk-KWMQNKGX.js} +2 -2
- package/dist/{chunk-6YBNVI5I.js → chunk-LADFOYH7.js} +40 -27
- package/dist/{chunk-VKNQOSGW.js → chunk-LC4KDLUE.js} +3 -3
- package/dist/{chunk-ITEJQHXE.js → chunk-LLECS747.js} +4 -4
- package/dist/{chunk-JYSFAH7C.js → chunk-LM4GVVPM.js} +16 -10
- package/dist/{chunk-EHRRHSPV.js → chunk-LPLRXEOT.js} +55 -19
- package/dist/{chunk-ZBCCJPGW.js → chunk-M2FF4IPF.js} +16 -7
- package/dist/{chunk-4JGBCBDZ.js → chunk-MF6XGFHB.js} +1 -1
- package/dist/{chunk-BHLNSJG7.js → chunk-MOBRWYUQ.js} +2 -2
- package/dist/{chunk-CDUR3KWV.js → chunk-MOPY5REE.js} +2 -2
- package/dist/{chunk-MGXHFRQK.js → chunk-MTOBNHAU.js} +2 -2
- package/dist/{chunk-DORE2RHL.js → chunk-MYBBZNYN.js} +2 -2
- package/dist/{chunk-V7NUJEJE.js → chunk-MZCJ22O4.js} +1 -1
- package/dist/{chunk-W2QILXAL.js → chunk-NIL6TYAN.js} +4 -4
- package/dist/{chunk-YW35KSXR.js → chunk-NPDF7HEH.js} +2 -2
- package/dist/{chunk-SH4FLUAD.js → chunk-NUASZPS7.js} +1 -1
- package/dist/{chunk-Z62TJQO5.js → chunk-NWUEA42V.js} +3 -3
- package/dist/{chunk-UOOXWGBU.js → chunk-NZGQLR4X.js} +8 -8
- package/dist/{chunk-RQKDEJFQ.js → chunk-O32L5FK2.js} +3 -3
- package/dist/{chunk-OUNYHYJL.js → chunk-O623CYPA.js} +3 -3
- package/dist/{chunk-OELB7MTE.js → chunk-OJR5GPCN.js} +3 -3
- package/dist/{chunk-C47POAC5.js → chunk-OL6HVC6K.js} +1 -1
- package/dist/{chunk-6NGKQNTB.js → chunk-OM5MAJST.js} +68 -57
- package/dist/{chunk-AAQWFTDM.js → chunk-OTOASFG4.js} +92 -35
- package/dist/{chunk-6JTCFPAD.js → chunk-P3N74SZ5.js} +3 -3
- package/dist/{chunk-CKEFAD4R.js → chunk-PHQGGR5O.js} +3 -3
- package/dist/{chunk-DUOGEFLG.js → chunk-POHML4N4.js} +107 -50
- package/dist/{chunk-KVBLTAO7.js → chunk-PP23D6QV.js} +4 -5
- package/dist/{chunk-F2ET5ZTT.js → chunk-PPOUKS24.js} +0 -1
- package/dist/{chunk-V7FV66KL.js → chunk-PRVX4PAO.js} +1 -1
- package/dist/{chunk-JY4LTPOV.js → chunk-PSUSHJFV.js} +1 -1
- package/dist/{chunk-AJGSCVVW.js → chunk-PZZAVTLQ.js} +2 -2
- package/dist/{chunk-R5SGE2NS.js → chunk-QDFX2KAP.js} +2 -2
- package/dist/{chunk-XC32OSCD.js → chunk-QKDDGDRF.js} +10 -10
- package/dist/{chunk-U6QZOMYC.js → chunk-QM6IW5BL.js} +3 -3
- package/dist/chunk-QMQZC2KW.js +408 -0
- package/dist/{chunk-42QKUSHJ.js → chunk-QXHFELIA.js} +1 -1
- package/dist/{chunk-JNDWRV34.js → chunk-R2RLERPT.js} +1 -1
- package/dist/{chunk-E5YF236N.js → chunk-R4MVXUAG.js} +1 -1
- package/dist/{chunk-XZOFKLTD.js → chunk-REIIGIJG.js} +3 -3
- package/dist/{chunk-4M3UADCM.js → chunk-RF2REMRV.js} +6 -6
- package/dist/{chunk-3MFVJMP6.js → chunk-RF6ZHX5F.js} +1 -1
- package/dist/{chunk-TKH655ON.js → chunk-RLX6VODQ.js} +9 -2
- package/dist/{chunk-KWIP5YRA.js → chunk-RPS7G77V.js} +3 -3
- package/dist/{chunk-MVR7YKBF.js → chunk-RSDGBNXP.js} +5 -5
- package/dist/{chunk-QFNWGSCT.js → chunk-RYYB7REV.js} +3 -3
- package/dist/{chunk-LPMSGO7L.js → chunk-SBYKLBDV.js} +3 -3
- package/dist/{chunk-JT3UTEWZ.js → chunk-SDAVHADX.js} +2 -2
- package/dist/{chunk-AQ2PQ7FK.js → chunk-SE6LBMRJ.js} +137 -62
- package/dist/{chunk-3OSQ32GN.js → chunk-SFRMBCVY.js} +3 -3
- package/dist/{chunk-AGJ2QL4A.js → chunk-SNJ3FZXC.js} +14 -12
- package/dist/{chunk-USSG6TJV.js → chunk-SXCFMPNM.js} +3 -3
- package/dist/{chunk-SGDWLXUC.js → chunk-SY7JC3PH.js} +1 -1
- package/dist/{chunk-QATOOZMH.js → chunk-T4CFY4YT.js} +4 -4
- package/dist/{chunk-5SVGTQTW.js → chunk-TASEX7VA.js} +1 -1
- package/dist/{chunk-BVIJCUWW.js → chunk-TCWJQIVQ.js} +123 -71
- package/dist/{chunk-VACZGW5R.js → chunk-TEZWFQB7.js} +7 -7
- package/dist/{chunk-GHCU6OSE.js → chunk-TLKRYDH3.js} +2 -2
- package/dist/{chunk-MB5EX2YG.js → chunk-TMVERETB.js} +23 -332
- package/dist/{chunk-LOXZSTIM.js → chunk-TQFBLSZJ.js} +44 -27
- package/dist/{chunk-NT3HCXQC.js → chunk-U4WG46QP.js} +117 -43
- package/dist/{chunk-LJDATBPB.js → chunk-U75MMLNQ.js} +3 -6
- package/dist/{chunk-R3VSWOTI.js → chunk-UFGJNSSL.js} +1 -1
- package/dist/{chunk-FB6X7QHA.js → chunk-UGHJHJKY.js} +1 -1
- package/dist/{chunk-LXH4RPY4.js → chunk-UI2MKLON.js} +1 -1
- package/dist/{chunk-3E6NLODZ.js → chunk-UKEI7JDA.js} +1 -1
- package/dist/{chunk-6JFQCVNN.js → chunk-USATDW6O.js} +1 -1
- package/dist/{chunk-CQBPNE7Z.js → chunk-UTWLJ6AZ.js} +6 -5
- package/dist/{chunk-NQPJWQTW.js → chunk-UV77Y7QK.js} +11 -5
- package/dist/{chunk-PMT75APP.js → chunk-UXJXA4NP.js} +1 -1
- package/dist/{chunk-3RXUA6VY.js → chunk-UZDQFUHO.js} +3 -3
- package/dist/{chunk-AKZOQGF3.js → chunk-V3XYFLOZ.js} +3 -3
- package/dist/{chunk-OQQMDSCC.js → chunk-VGOZOBNB.js} +1 -1
- package/dist/{chunk-K7XPTQBJ.js → chunk-VHZ4MXJO.js} +1 -1
- package/dist/{chunk-EBWMTQ4U.js → chunk-VLMKGQ33.js} +13 -13
- package/dist/{chunk-34PKJZRY.js → chunk-VMLVZW4F.js} +39 -36
- package/dist/{chunk-65U6ZBZZ.js → chunk-VT6PDWUA.js} +78 -78
- package/dist/{chunk-GQYT7G4F.js → chunk-VTUSC24F.js} +2 -2
- package/dist/{chunk-33EBLJVZ.js → chunk-VVWTD4XP.js} +9 -9
- package/dist/{chunk-5CYLT6FJ.js → chunk-VZVPN7NT.js} +3 -3
- package/dist/{chunk-Z3WQXVFV.js → chunk-W4ZLMK6Z.js} +1 -1
- package/dist/{chunk-35ZJUZUO.js → chunk-W6NEWQZU.js} +20 -18
- package/dist/{chunk-DZYTXZNS.js → chunk-WD5NJHZG.js} +2 -2
- package/dist/{chunk-P7UOOMXE.js → chunk-WTH3KQDM.js} +2 -2
- package/dist/{chunk-CSMVKG2C.js → chunk-WTWM4RK6.js} +1 -1
- package/dist/{chunk-W6XSIBLR.js → chunk-WZNO3LUF.js} +3 -3
- package/dist/{chunk-QQMESIDA.js → chunk-X3AMBFGF.js} +3 -3
- package/dist/{chunk-DHGE46UK.js → chunk-X725AGYP.js} +1 -1
- package/dist/{chunk-TX5FSNAU.js → chunk-XAH4EWJT.js} +1 -1
- package/dist/{chunk-4DMRIL5K.js → chunk-XETSLYFD.js} +3 -3
- package/dist/{chunk-6V3A3MTG.js → chunk-XFDNAR4S.js} +16 -27
- package/dist/{chunk-WMQ57FOP.js → chunk-XGTSZ7NC.js} +3 -3
- package/dist/{chunk-HAG3K6PQ.js → chunk-XHEG2BG6.js} +1 -1
- package/dist/{chunk-D2TQX7UJ.js → chunk-XLX3TUFO.js} +2 -2
- package/dist/{chunk-XLLWIHN2.js → chunk-XMII3G47.js} +3 -3
- package/dist/{chunk-BSZOQJXB.js → chunk-XRPZJDAK.js} +101 -72
- package/dist/{chunk-IPBOREIY.js → chunk-XUEX5WTR.js} +1 -1
- package/dist/{chunk-HO4ILCW7.js → chunk-XUGEYHOQ.js} +2 -2
- package/dist/{chunk-OO63YP35.js → chunk-XVFUJRRC.js} +1 -1
- package/dist/{chunk-IVDTP6SV.js → chunk-XWGAANY4.js} +3 -3
- package/dist/{chunk-IPZJCBWD.js → chunk-XWUHUTXX.js} +24 -18
- package/dist/{chunk-WNTUBGBB.js → chunk-XXYV5UEM.js} +50 -49
- package/dist/{chunk-7GRR72MY.js → chunk-XZBX6LIC.js} +20 -12
- package/dist/{chunk-ZDJ7C64T.js → chunk-Y4BJ7D5F.js} +1 -1
- package/dist/{chunk-KW4JXWHO.js → chunk-YDYZWCUQ.js} +1 -1
- package/dist/{chunk-ZCHKIR7C.js → chunk-YJN54OZS.js} +52 -41
- package/dist/{chunk-X46PSAJ7.js → chunk-YJXIHVNK.js} +2 -2
- package/dist/{chunk-UCKUAKYQ.js → chunk-YKYK6C7F.js} +1 -1
- package/dist/{chunk-GNMB72V7.js → chunk-YM4MVABU.js} +56 -24
- package/dist/{chunk-GOFS336W.js → chunk-YM7MO7WI.js} +1 -1
- package/dist/{chunk-PNYWBY4K.js → chunk-YOUYJHW3.js} +3 -3
- package/dist/{chunk-OTWIW2L3.js → chunk-YPELB4Q7.js} +3 -3
- package/dist/{chunk-5I4RPBNE.js → chunk-YRCIG4IO.js} +8 -7
- package/dist/{chunk-FPFRLRQO.js → chunk-ZIQR2CNM.js} +7 -7
- package/dist/{chunk-H7BCNS5J.js → chunk-ZK22I3NF.js} +3 -3
- package/dist/{chunk-A6N24NGW.js → chunk-ZNA4JHHG.js} +2 -2
- package/dist/{chunk-VESSIKBG.js → chunk-ZOQRX5V7.js} +4 -4
- package/dist/{chunk-FVWHEM2N.js → chunk-ZPQ3VOAE.js} +1 -1
- package/dist/{chunk-NZ7FX3AE.js → chunk-ZQ5ILQ5A.js} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{core-LSYX4UQQ.js → core-2PT7IROA.js} +2 -1
- package/dist/{core-YN2VVGUL.js → core-34YTH4KN.js} +1 -1
- package/dist/{core-7YDNMUU3.js → core-4ZEVWU43.js} +1 -1
- package/dist/{core-743ZXTWK.js → core-64EHPUVV.js} +1 -1
- package/dist/{core-ZETBHLSV.js → core-6KO5AEUH.js} +1 -1
- package/dist/{core-2GWH3ED7.js → core-7WLD237S.js} +1 -1
- package/dist/{core-AC5AKSCM.js → core-A2MERE3C.js} +1 -1
- package/dist/{core-O5S2NETE.js → core-AVNB2Q3G.js} +2 -1
- package/dist/{core-XUNZB6BM.js → core-B7KOBTRL.js} +1 -1
- package/dist/{core-HIONDJGC.js → core-BOOD7ZUQ.js} +1 -1
- package/dist/{core-3LCSHMKN.js → core-BOU34T23.js} +1 -1
- package/dist/{core-VYHQ5JY6.js → core-BQ2I77OF.js} +2 -1
- package/dist/{core-HMBMMF5Z.js → core-BSEXRZD6.js} +1 -1
- package/dist/{core-Q2Y3JEWL.js → core-CXEEM26F.js} +1 -1
- package/dist/{core-7OAGK7ZJ.js → core-EHMPBG6Q.js} +1 -1
- package/dist/{core-BEK6EPVF.js → core-FXC4TB2K.js} +1 -1
- package/dist/{core-MIERUUUT.js → core-HMS72VO6.js} +1 -1
- package/dist/{core-EGTJOQK7.js → core-I2GPMB2B.js} +1 -1
- package/dist/{core-XJZWD43V.js → core-IQC6H4A7.js} +1 -1
- package/dist/{core-RTBPKALG.js → core-IYEFTP6C.js} +1 -1
- package/dist/{core-3XGQBHJI.js → core-J2QTOU4D.js} +1 -1
- package/dist/{core-AEALAFRA.js → core-JJLIPTEW.js} +1 -1
- package/dist/{core-5CRTPVYA.js → core-LCP44UYI.js} +1 -2
- package/dist/{core-BRBJ3LPF.js → core-MBNVENCZ.js} +1 -1
- package/dist/{core-VBMWBPKM.js → core-MVIK7FAJ.js} +2 -1
- package/dist/{core-TIIPSEK3.js → core-N4OKPNXQ.js} +1 -1
- package/dist/{core-FE4THVV3.js → core-Q4IILTGO.js} +1 -1
- package/dist/{core-4N6WH3IF.js → core-QCPDOQEJ.js} +2 -1
- package/dist/{core-AAPPZSSZ.js → core-RVTF336C.js} +1 -1
- package/dist/{core-5K4HRIHX.js → core-VGMMKEU4.js} +1 -1
- package/dist/{core-3NQ5TXOJ.js → core-VUVJOMUC.js} +1 -1
- package/dist/{core-T7CKLMT2.js → core-VWISBHXE.js} +1 -1
- package/dist/{core-YKDDPMWW.js → core-W3UBWZR3.js} +1 -1
- package/dist/{core-FEBNVNVE.js → core-XYQRB5WF.js} +1 -1
- package/dist/{core-YP4MNIMV.js → core-Y6DJHIYT.js} +1 -1
- package/dist/{core-NTOOJZRA.js → core-YHWVJULU.js} +1 -1
- package/dist/{core-VLXOQ5CK.js → core-YJXOVNIE.js} +1 -1
- package/dist/{dataTable-FEQZSDUZ.js → dataTable-3ZK3ZEZP.js} +3 -2
- package/dist/{engine-SCQVNSAM.js → engine-FSWLRWZR.js} +19 -17
- package/dist/fixtures.js +1 -1
- package/dist/index.js +14 -13
- package/dist/{main-7UKLXCIL.js → main-NYMXWJGJ.js} +6 -5
- package/dist/mcp/server.js +11 -10
- package/dist/react/bar.js +1 -1
- package/dist/react/bartable.js +1 -1
- package/dist/react/box.js +1 -1
- package/dist/react/bullet.js +1 -1
- package/dist/react/butterfly.js +1 -1
- package/dist/react/choropleth.js +1 -1
- package/dist/react/cohort.js +2 -1
- package/dist/react/column.js +1 -1
- package/dist/react/combo.js +1 -1
- package/dist/react/creative.js +1 -1
- package/dist/react/diagram.js +1 -1
- package/dist/react/dimswitch.js +1 -1
- package/dist/react/dot.js +1 -1
- package/dist/react/export.js +24 -19
- package/dist/react/funnel.js +1 -1
- package/dist/react/gantt.js +1 -1
- package/dist/react/grid.js +1 -1
- package/dist/react/heatmap.js +2 -1
- package/dist/react/histogram.js +1 -1
- package/dist/react/index.js +84 -83
- package/dist/react/kpi.js +1 -1
- package/dist/react/likert.js +1 -1
- package/dist/react/line.js +2 -1
- package/dist/react/mekko.js +1 -1
- package/dist/react/pareto.js +1 -1
- package/dist/react/pie.js +1 -1
- package/dist/react/prepare.js +22 -20
- package/dist/react/pvm.js +1 -1
- package/dist/react/pyramid.js +1 -1
- package/dist/react/sankey.js +1 -1
- package/dist/react/scatter.js +2 -1
- package/dist/react/slope.js +1 -1
- package/dist/react/sparkline.js +1 -1
- package/dist/react/spec.js +10 -10
- package/dist/react/status.js +2 -1
- package/dist/react/story.js +3 -3
- package/dist/react/table.js +1 -1
- package/dist/react/theme.js +3 -3
- package/dist/react/tilemap.js +1 -1
- package/dist/react/treemap.js +1 -1
- package/dist/react/variance.js +1 -1
- package/dist/react/waffle.js +1 -1
- package/dist/react/waterfall.js +1 -1
- package/dist/{rowsModule-WJH4QNXZ.js → rowsModule-43LCK2Q7.js} +1 -1
- package/dist/{schema-MQT6BMNK.js → schema-2ACHQTR3.js} +1 -1
- package/dist/{schema-WZOSDDDJ.js → schema-3LRC5TOZ.js} +1 -1
- package/dist/{schema-F7TWGLRZ.js → schema-4HGZZNUL.js} +1 -1
- package/dist/{schema-PWPQF5RC.js → schema-4YIYGGOJ.js} +1 -1
- package/dist/{schema-ECJERHKF.js → schema-5OLQ54J5.js} +1 -1
- package/dist/{schema-CWKGLDSR.js → schema-5SVPR3EU.js} +1 -1
- package/dist/{schema-BA6WP5YZ.js → schema-A4U4RDKJ.js} +1 -1
- package/dist/{schema-JYZ4RF6S.js → schema-AM2KS6ZC.js} +1 -1
- package/dist/{schema-PYQEUC5P.js → schema-C25ECGJL.js} +1 -1
- package/dist/{schema-56MOEOVR.js → schema-CBLNGK2F.js} +1 -1
- package/dist/{schema-ESR6ZIK4.js → schema-D3ELHESU.js} +1 -1
- package/dist/{schema-5MSR4LNN.js → schema-FBIEOKO2.js} +1 -1
- package/dist/{schema-DUVJMFKQ.js → schema-FPDLOIA6.js} +1 -1
- package/dist/{schema-ALBF6V7Y.js → schema-FQWENOJY.js} +1 -1
- package/dist/{schema-DBIQFL56.js → schema-GTLGAPCU.js} +1 -1
- package/dist/{schema-Q5DACE4I.js → schema-GUDG343K.js} +2 -2
- package/dist/{schema-47BG2TZA.js → schema-GYTWCCNA.js} +1 -1
- package/dist/{schema-DL7V6NN2.js → schema-GYVYJEL3.js} +1 -1
- package/dist/{schema-ZU2EU2VP.js → schema-HAMPGUH3.js} +1 -1
- package/dist/{schema-TVUJNEX7.js → schema-IYBZPCM4.js} +1 -1
- package/dist/{schema-2TPGJGVR.js → schema-IYLRZNFB.js} +1 -1
- package/dist/{schema-KAK6DZX4.js → schema-KBV2JB2A.js} +1 -1
- package/dist/{schema-PV7JGX5H.js → schema-KWCIIIGP.js} +1 -1
- package/dist/{schema-Y4TI2T3T.js → schema-LDF6HORS.js} +1 -1
- package/dist/{schema-FKGGTM4Z.js → schema-LGYHJPXU.js} +1 -1
- package/dist/{schema-CBL2SMVR.js → schema-LX4EXDTI.js} +1 -1
- package/dist/{schema-2R32F6AW.js → schema-NNNG7CWG.js} +1 -1
- package/dist/{schema-OPXZYIW7.js → schema-P2JYSV32.js} +1 -1
- package/dist/{schema-FGB6IGZM.js → schema-PAKZIYQF.js} +1 -1
- package/dist/{schema-R42VXFIS.js → schema-SQ2GYLMI.js} +1 -1
- package/dist/{schema-KCJ6WTGV.js → schema-SUDJBIHX.js} +1 -1
- package/dist/{schema-MR3BPPQR.js → schema-TRPPZCIR.js} +1 -1
- package/dist/{schema-JIAQE7WO.js → schema-UNYDUIL5.js} +1 -1
- package/dist/{schema-5RIYEWE6.js → schema-VH4AW62Z.js} +1 -1
- package/dist/{schema-EDSEKZDJ.js → schema-WDKBCN3V.js} +1 -1
- package/dist/{schema-MOKWIGF7.js → schema-YCKUQ3FF.js} +1 -1
- package/dist/{schema-K7F6TEDK.js → schema-YVBUY7NH.js} +1 -1
- package/dist/{specValidation-DC4TVHWD.js → specValidation-FKHSTMMR.js} +1 -1
- package/dist/theme.js +2 -2
- package/dist/types/core/a11y/recordsShared.d.ts +15 -4
- package/dist/types/core/a11y/types.d.ts +0 -3
- package/dist/types/core/annotate.d.ts +17 -1
- package/dist/types/core/annotateTargets.d.ts +8 -0
- package/dist/types/core/charts/band/stacks.d.ts +4 -3
- package/dist/types/core/charts/bar/layout.d.ts +3 -1
- package/dist/types/core/charts/bartable/types.d.ts +3 -0
- package/dist/types/core/charts/box/types.d.ts +5 -0
- package/dist/types/core/charts/column/anomaly.d.ts +12 -5
- package/dist/types/core/charts/column/model.d.ts +4 -0
- package/dist/types/core/charts/combo/endpoints.d.ts +11 -1
- package/dist/types/core/charts/combo/layout.d.ts +7 -1
- package/dist/types/core/charts/dimswitch/compile.d.ts +20 -3
- package/dist/types/core/charts/grid/metricStack.d.ts +2 -4
- package/dist/types/core/charts/histogram/types.d.ts +3 -0
- package/dist/types/core/charts/likert/layout.d.ts +5 -2
- package/dist/types/core/charts/logAxis.d.ts +0 -5
- package/dist/types/core/charts/scatter/logAxis.d.ts +1 -1
- package/dist/types/core/charts/scatter/model.d.ts +10 -1
- package/dist/types/core/charts/scatter/trend.d.ts +19 -0
- package/dist/types/core/charts/table/view.d.ts +7 -0
- package/dist/types/core/charts/waffle/types.d.ts +8 -0
- package/dist/types/core/formatPrecision.d.ts +24 -0
- package/dist/types/core/formatSpec.d.ts +213 -61
- package/dist/types/core/label/solver.d.ts +3 -1
- package/dist/types/core/numberRule.d.ts +109 -0
- package/dist/types/core/numberSets.d.ts +43 -0
- package/dist/types/core/shownMarks.d.ts +16 -0
- package/dist/types/core/types/options.d.ts +8 -8
- package/dist/types/core/types/scene.d.ts +24 -0
- package/dist/types/core/types/table.d.ts +0 -13
- package/dist/types/react/TableChart.d.ts +9 -7
- package/dist/types/react/hover/engine.d.ts +6 -4
- package/dist/types/react/hover/labelCard.d.ts +4 -3
- package/dist/validate.js +5 -4
- package/docs/manual.md +15 -7
- package/docs/reference/bartable.md +2 -2
- package/docs/reference/cohort.md +1 -1
- package/docs/reference/column.md +1 -1
- package/docs/reference/dimswitch.md +2 -3
- package/docs/reference/fixtures.md +1 -1
- package/docs/reference/grid.md +13 -7
- package/docs/reference/heatmap.md +1 -1
- package/docs/reference/line.md +2 -2
- package/docs/reference/options.md +3 -3
- package/docs/reference/react.md +1 -1
- package/docs/reference/table.md +5 -8
- package/docs/reference/warnings.md +0 -1
- package/package.json +1 -1
- package/dist/chunk-2IRMGCYE.js +0 -125
- package/dist/chunk-WVCDISZP.js +0 -89
- package/dist/types/core/charts/table/fitFormats.d.ts +0 -67
- package/dist/types/core/charts/table/resolve.d.ts +0 -84
- package/dist/types/core/format.d.ts +0 -156
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
localeStrings
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SY7JC3PH.js";
|
|
4
4
|
import {
|
|
5
5
|
chartSizing,
|
|
6
6
|
resolveSizing
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YM4MVABU.js";
|
|
8
8
|
|
|
9
9
|
// src/core/emptyData.ts
|
|
10
10
|
var EMPTY_DATA = "empty-data", DEFAULT_EMPTY_MESSAGE = localeStrings().emptyMessage;
|
|
@@ -7,28 +7,31 @@ import {
|
|
|
7
7
|
} from "./chunk-YGZEG3JV.js";
|
|
8
8
|
import {
|
|
9
9
|
marginBracketLayout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3ZR7ZE64.js";
|
|
11
11
|
import {
|
|
12
12
|
runAnnotatePass
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QDFX2KAP.js";
|
|
14
14
|
import {
|
|
15
15
|
rowLabelBand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MTOBNHAU.js";
|
|
17
17
|
import {
|
|
18
18
|
GUTTER_MAX_SHARE,
|
|
19
19
|
fittedLabel,
|
|
20
20
|
gutterBudget,
|
|
21
21
|
stepDownFont
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
23
23
|
import {
|
|
24
24
|
chartTheme
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AIPOSNVG.js";
|
|
26
|
+
import {
|
|
27
|
+
DeferredShownMarks
|
|
28
|
+
} from "./chunk-2Q7IAWON.js";
|
|
26
29
|
import {
|
|
27
30
|
labelOn
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-77L6QGIG.js";
|
|
29
32
|
import {
|
|
30
33
|
structureCount
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
32
35
|
import {
|
|
33
36
|
NAMED_COLUMN_STATES,
|
|
34
37
|
NAMED_STATE_PATTERN
|
|
@@ -36,7 +39,7 @@ import {
|
|
|
36
39
|
import {
|
|
37
40
|
headInk,
|
|
38
41
|
plainInk
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UGHJHJKY.js";
|
|
40
43
|
import {
|
|
41
44
|
generatedIdWarnings
|
|
42
45
|
} from "./chunk-SXAZDIGM.js";
|
|
@@ -54,8 +57,9 @@ import {
|
|
|
54
57
|
rotatedClaimRect,
|
|
55
58
|
rowDrivenHeight,
|
|
56
59
|
rowSizing,
|
|
57
|
-
sideKeyOff
|
|
58
|
-
|
|
60
|
+
sideKeyOff,
|
|
61
|
+
tickFormatter
|
|
62
|
+
} from "./chunk-YM4MVABU.js";
|
|
59
63
|
import {
|
|
60
64
|
DEFAULT_NOTE_LIMIT,
|
|
61
65
|
HIDDEN_LABEL_LEAD,
|
|
@@ -75,33 +79,32 @@ import {
|
|
|
75
79
|
solveLabels,
|
|
76
80
|
valueNoteLine,
|
|
77
81
|
withUnprintedClaims
|
|
78
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-AUSZDYGE.js";
|
|
79
83
|
import {
|
|
80
84
|
disclosureNote
|
|
81
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-WD5NJHZG.js";
|
|
82
86
|
import {
|
|
83
87
|
emptyIdRecord
|
|
84
88
|
} from "./chunk-LINZPU5D.js";
|
|
85
89
|
import {
|
|
86
90
|
AUTOMATIC_FORMAT,
|
|
87
|
-
|
|
91
|
+
asEngineNumbers,
|
|
92
|
+
defaultSetSpec,
|
|
88
93
|
exampleSpec,
|
|
89
94
|
formatNonzeroWithSpec,
|
|
95
|
+
formatWithSpec,
|
|
90
96
|
formatterFromExample,
|
|
91
97
|
parseFormatExample,
|
|
92
|
-
|
|
98
|
+
ruleFormatter,
|
|
93
99
|
seriesRasterFormatter,
|
|
94
100
|
specUnitKind
|
|
95
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-3JG764MI.js";
|
|
96
102
|
import {
|
|
97
103
|
NOT_AVAILABLE,
|
|
98
104
|
chartStrings,
|
|
99
|
-
defaultNumberDecimals,
|
|
100
|
-
formatAutomaticNumber,
|
|
101
105
|
lowBaseKeyLabel,
|
|
102
|
-
nonzeroDecimals,
|
|
103
106
|
numberRange
|
|
104
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-FYFXOLWI.js";
|
|
105
108
|
import {
|
|
106
109
|
cellMeta,
|
|
107
110
|
cellValue,
|
|
@@ -126,7 +129,7 @@ import {
|
|
|
126
129
|
sequentialShare,
|
|
127
130
|
strokeToken,
|
|
128
131
|
textScaleOf
|
|
129
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-XAH4EWJT.js";
|
|
130
133
|
import {
|
|
131
134
|
DEFAULT_TARGET,
|
|
132
135
|
NormalizeError,
|
|
@@ -208,12 +211,6 @@ var EN = {
|
|
|
208
211
|
function withSuffixFloor(widths, width, short) {
|
|
209
212
|
return short > 0 ? { ...widths, minWidth: Math.max(widths.minWidth, width + Math.ceil(short / GUTTER_MAX_SHARE)) } : widths;
|
|
210
213
|
}
|
|
211
|
-
var NO_CUT = { decimals: 0, sign: !1 };
|
|
212
|
-
function readableDecimals(range) {
|
|
213
|
-
let d = 0;
|
|
214
|
-
for (; d < 6 && range * 10 ** d < 10; ) d++;
|
|
215
|
-
return d;
|
|
216
|
-
}
|
|
217
214
|
var HARVEY_ROW = 42, HARVEY_ROW_CARD = 36, HARVEY_LIST_ROW = 27, HARVEY_LIST_CELL = 28, HARVEY_HEADER_GAP = 8, HARVEY_BOTTOM_GAP = 12, BASE_CELL_GAP = 2, VALUE_CELL_GAP = 1.5, VALUE_ROW_CARD = 22, VALUE_ROW_NARROW = 26, VALUE_ROW_WIDE = 32.5, VALUE_KEY_GAP = 8, UPRIGHT_TIER_PITCH = 44, ROW_BAND_GAP = 8, COLUMN_KEEP = 28, VALUE_INSET = 6, HEADER_GAP = 4, CALLOUT_SEAT = 16, CARET_ROOM = 8, NO_DATA_PAINT = { token: "grid" }, BRACKET_CLEAR = 6, TRACK_ROOM = 12, KEY_GAP = 12, KEY_GROUP_GAP = 32, KEY_BAR_H = 10, KEY_DOT_R = 5.5, KEY_TEXT_GAP = 5, KEY_ENTRY_GAP = 14, BUBBLE_AIR = 2, BUBBLE_AIR_TIGHT = 1, VALUE_OVERHANG = 1.5, TIER_GAP = 3, TIER_NAME_GAP = 8, TIER_LEAN_MAX = 0.25, TICK_CLEAR = 4, TURNED = /* @__PURE__ */ Symbol("heatmapTurned");
|
|
218
215
|
function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows = [], compactKey = !1) {
|
|
219
216
|
let warnings = [], theme = resolveSemanticPaletteTheme(
|
|
@@ -288,7 +285,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
288
285
|
}
|
|
289
286
|
let allValues = [];
|
|
290
287
|
for (let r of rows) for (let c of r.cells) c.v !== null && allValues.push(c.v);
|
|
291
|
-
let
|
|
288
|
+
let vMax = allValues.length > 0 ? maxOf(allValues) : 0, vMin = allValues.length > 0 ? minOf(allValues) : 0, posMax = Math.max(0, vMax), negMin = Math.min(0, vMin), pctMatrix = allValues.length > 0 && rows.every((r) => r.cells.every((c) => c.v === null || c.pct)), ruleBase = options.format ? void 0 : defaultSetSpec(allValues, options.locale?.language, options.unit, pctMatrix ? { kind: "percent" } : {}), automaticFmt = (v) => formatWithSpec(v, ruleBase), sizeSpec = defaultSetSpec(rows.flatMap((r) => r.cells.flatMap((c) => c.size ?? [])), options.locale?.language), sizeKeyFormatter = (shown) => tickFormatter(sizeSpec, shown), fmt = options.format ? formatterFromExample(options.format, options.locale?.language, void 0, allValues) : (v) => automaticFmt(v), formats = seriesRasterFormatter(options.format, allValues, options.locale?.language, options.unit), cap = scale === "continuous" ? pctMatrix ? options.cap?.pct : options.cap?.abs : void 0, valenceSpan = cap ?? Math.max(posMax, -negMin), rowMeans = emptyIdRecord();
|
|
292
289
|
for (let r of rows) rowMeans[r.id] = rowMeanOf(r);
|
|
293
290
|
let colMeans = emptyIdRecord();
|
|
294
291
|
cols.forEach((c, ci) => colMeans[c.id] = colMeanAt(ci));
|
|
@@ -359,10 +356,10 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
359
356
|
let s = (k > 1 ? 2 * bin / (k - 1) - 1 : 1) * (direction === "lowerIsBetter" ? -1 : 1);
|
|
360
357
|
return Math.abs(s) < 1e-9 ? semanticPalettePaint(theme, options.palette, "neutralMark", 0.55) : valencePaint(s < 0 ? "bad" : "good", large, 0.6 * (1 - Math.abs(s)));
|
|
361
358
|
}
|
|
362
|
-
let keySeries = rows[0]?.format && rows.every((row) => row.format === rows[0].format) ? rows[0] : void 0, keyLow = cap === void 0 ? vMin : Math.max(valence ? -cap : 0, Math.min(cap, vMin)), keyHigh = cap === void 0 ? vMax : Math.max(valence ? -cap : 0, Math.min(cap, vMax)), keyText = (v) => {
|
|
363
|
-
let value = cap !== void 0 && (v === keyHigh && vMax > cap || v === keyLow && vMin < -cap) && Number.isInteger(v) && !pctMatrix &&
|
|
359
|
+
let keySeries = rows[0]?.format && rows.every((row) => row.format === rows[0].format) ? rows[0] : void 0, keyLow = cap === void 0 ? vMin : Math.max(valence ? -cap : 0, Math.min(cap, vMin)), keyHigh = cap === void 0 ? vMax : Math.max(valence ? -cap : 0, Math.min(cap, vMax)), keyText = (v) => asEngineNumbers(() => {
|
|
360
|
+
let value = cap !== void 0 && (v === keyHigh && vMax > cap || v === keyLow && vMin < -cap) && Number.isInteger(v) && !pctMatrix && ruleBase && !keySeries?.format ? tickFormatter(ruleBase, [v])(v) : shownFor(v, pctMatrix, null, keySeries);
|
|
364
361
|
return `${cap !== void 0 && v === keyHigh && vMax > cap ? ">=" : cap !== void 0 && v === keyLow && vMin < -cap ? "<=" : ""}${value}`;
|
|
365
|
-
}, annotations = (options.annotations ?? []).map((a, n) => ({
|
|
362
|
+
}), annotations = (options.annotations ?? []).map((a, n) => ({
|
|
366
363
|
...a,
|
|
367
364
|
id: a.id ?? `${a.kind}-${n + 1}`
|
|
368
365
|
})), tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, lineH = tickFont.size * 1.2, valueLabelFont = bubbleStyle ? { ...labelFont, weight: emphasisWeight(theme) } : labelFont, topLevelHeld = levels !== void 0 && levels.length >= 2 && rows.some((r) => r.cells.some((c) => c.v !== null && c.size === levels.length)), topOnly = bubbleStyle && cellLabelsOn && topLevelHeld, continuousKey = scale === "continuous" && glyph === "value" && !options.heatKey && vMax > vMin && !compactKey && panelTypeClass(options) === void 0 && options.legend !== "none" && !rows.some((r) => r.direction === "lowerIsBetter"), keyRight = normalizeLegendOption(options.legend)?.position === "right";
|
|
@@ -379,7 +376,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
379
376
|
...topOnly && valueNote === void 0 ? [disclosureNote(chartString(options, "heatmapTopValuesNote"))] : [],
|
|
380
377
|
...valueNote ? [disclosureNote(valueNote)] : [],
|
|
381
378
|
...bubble && missingCells ? [disclosureNote(statesPresent.length ? missingLook === "blank" ? chartString(options, "blankCells", { v1: noDataNames }) : chartString(options, "hatchedCells", { v1: noDataNames }) : missingLook === "blank" ? chartString(options, "blankNoData") : chartString(options, "hatchedNoData"))] : [],
|
|
382
|
-
...anyLowBase ? [disclosureNote(chartString(options, "heatmapBaseNote", { v1: bubble ? chartString(options, "circles") : chartString(options, "cellsLower"), v2:
|
|
379
|
+
...anyLowBase ? [disclosureNote(chartString(options, "heatmapBaseNote", { v1: bubble ? chartString(options, "circles") : chartString(options, "cellsLower"), v2: ruleFormatter([options.minBase], options.locale?.language)(options.minBase) }))] : []
|
|
383
380
|
];
|
|
384
381
|
scaleItems && options.legend === "none" && legendOff(warnings, options.heatKey?.chartType ?? "heatmap", scaleItems.map((item) => item.label));
|
|
385
382
|
let scaleKey = options.legend === "none" ? void 0 : scaleItems;
|
|
@@ -604,13 +601,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
604
601
|
let fillH = Math.max(1, (gridH - (rows.length - 1) * CELL_GAP) / rows.length), cellH = glyph === "harvey" ? capPitch(fillH, 1, 2 * 0.68 * cellW) : bubble ? capPitch(fillH, 1, 1.5 * cellW) : fillH, rowStep = cellH + CELL_GAP, rowCenter = (ri) => gridY + ri * rowStep + cellH / 2, plot = { x: gridX, y: gridY, w: gridW, h: gridH }, rowFloor = valueStyle && classStepWidth(size.width) < 720 ? size.width < 480 ? VALUE_ROW_CARD : VALUE_ROW_NARROW : valueStyle && size.width >= 960 ? VALUE_ROW_WIDE : 28, floorFont = { ...labelFont, size: readerFloorPx(options.target ?? DEFAULT_TARGET, "label", textScaleOf(options)) }, constantCol = cols.map((_, ci) => {
|
|
605
602
|
let held = rows.flatMap((r) => r.cells[ci].v ?? []);
|
|
606
603
|
return held.length >= 2 && held.every((v) => v === held[0]);
|
|
607
|
-
}),
|
|
608
|
-
if (cellLabelsOn && !bubble) {
|
|
609
|
-
let hasPct = percentNamedByUnit && rows.some((r) => r.cells.some((c) => c.pct && c.v !== null)), stepsOfDecimals = !options.format && rows.some((r) => !r.format && !r.unit && r.cells.some((c) => c.v !== null && !c.meta?.format)) ? Math.max(0, decimals - Math.min(decimals, readableDecimals(vMax - vMin))) : 0, steps = [...hasPct ? [{ decimals: 0, sign: !0 }] : []];
|
|
610
|
-
for (let off = 1; off <= stepsOfDecimals; off++) steps.push({ decimals: off, sign: hasPct });
|
|
611
|
-
cut = NO_CUT, steps.length > 0 && !allFit() && (cut = steps.find((step) => (cut = step, allFit())) ?? NO_CUT);
|
|
612
|
-
}
|
|
613
|
-
let valueLineH = valueStyle && cellLabelsOn && !allFit() ? 0 : labelFont.size * 1.2 + 8, harveyRow = harveyList ? HARVEY_LIST_ROW : classStepWidth(size.width) >= 720 ? HARVEY_ROW : HARVEY_ROW_CARD, naturalCellH = bubbleStyle ? bubbleNaturalH : harveyStyle ? Math.max(harveyRow, maxOf(rowLines.map((label) => label.h + 4))) : Math.max(
|
|
604
|
+
}), valueLineH = valueStyle && cellLabelsOn && !rows.every((r) => measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), floorFont, measure, colWidth, 1 / 0, 4).every((value, ci) => value === null || value.fits || constantCol[ci])) ? 0 : labelFont.size * 1.2 + 8, harveyRow = harveyList ? HARVEY_LIST_ROW : classStepWidth(size.width) >= 720 ? HARVEY_ROW : HARVEY_ROW_CARD, naturalCellH = bubbleStyle ? bubbleNaturalH : harveyStyle ? Math.max(harveyRow, maxOf(rowLines.map((label) => label.h + 4))) : Math.max(
|
|
614
605
|
bubble ? cellW : 0,
|
|
615
606
|
Math.max(rowFloor, valueLineH, maxOf(rowLines.map((label) => label.h + 4)))
|
|
616
607
|
), keyShare = ((frameResult.legendBand ?? 0) + continuousKeyH + annotationTopH + annotationBottomH) / Math.max(1, rows.length), hard = options[HARD_MINIMUM] === !0, minRowH = Math.max(measure("0", labelFont).height + 2, hard ? 0 : 28 - keyShare);
|
|
@@ -626,7 +617,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
626
617
|
}
|
|
627
618
|
let nodes = [...frameResult.nodes];
|
|
628
619
|
continuousKey && drawContinuousKey();
|
|
629
|
-
let marks = { cells: [] }, labelRequests = [], anchorCell = /* @__PURE__ */ new Map(), cellBoxes = /* @__PURE__ */ new Map(), highlightWash = {
|
|
620
|
+
let marks = { cells: [] }, wouldShowCells = [], labelRequests = [], anchorCell = /* @__PURE__ */ new Map(), cellBoxes = /* @__PURE__ */ new Map(), highlightWash = {
|
|
630
621
|
token: "focus",
|
|
631
622
|
theme: { kind: "visible-tint", base: { token: "focus" }, amount: "surface-anchor", floor: 1.2, roundStep: !0 }
|
|
632
623
|
}, barHighlight = glyph !== "harvey", outlines = [];
|
|
@@ -737,21 +728,29 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
737
728
|
part: "harveyFill"
|
|
738
729
|
});
|
|
739
730
|
}
|
|
731
|
+
let wouldShow = () => {
|
|
732
|
+
let v = cell.v;
|
|
733
|
+
v !== null && wouldShowCells.push(() => {
|
|
734
|
+
let text = textFor(v, cell.pct, cell.meta, r), shows = text === null ? void 0 : cellShows(text, v, cell.pct, cell.meta, r);
|
|
735
|
+
return shows ? { owner, shows } : void 0;
|
|
736
|
+
});
|
|
737
|
+
};
|
|
740
738
|
if (bubble) {
|
|
741
|
-
bubbleCell(r, c, cell, rect, owner, valuePaint, css);
|
|
739
|
+
bubbleCell(r, c, cell, rect, owner, valuePaint, css) || wouldShow();
|
|
742
740
|
return;
|
|
743
741
|
}
|
|
744
742
|
let value = values[ci];
|
|
745
743
|
if (value?.fits && printValues) {
|
|
746
744
|
let { text, size: tsize } = value, basePriority = cell.v !== null && (cell.v === extremeMax || cell.v === extremeMin) ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(cell.v ?? 0));
|
|
747
745
|
low || matrixPaints.push(insidePaint);
|
|
748
|
-
let valueAlign = turned ? void 0 : overrides[c.id]?.align;
|
|
746
|
+
let valueAlign = turned ? void 0 : overrides[c.id]?.align, shows = cell.v === null ? void 0 : cellShows(text, cell.v, cell.pct, cell.meta, r);
|
|
749
747
|
labelRequests.push({
|
|
750
748
|
id: `point:${r.id}:${c.id}`,
|
|
751
749
|
kind: "point",
|
|
752
750
|
typeRole: "label",
|
|
753
751
|
owner,
|
|
754
752
|
text,
|
|
753
|
+
...shows ? { shows } : {},
|
|
755
754
|
lines: [text],
|
|
756
755
|
font: valueFont,
|
|
757
756
|
...valueFont !== labelFont ? { fontStep: valueFont } : {},
|
|
@@ -775,7 +774,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
775
774
|
]
|
|
776
775
|
});
|
|
777
776
|
} else
|
|
778
|
-
withheld.push({ id: `point:${r.id}:${c.id}`, kind: "point", owner }), cellLabelsOn && cell.v !== null && (omittedValues++, hiddenCells.push({ r, c, v: cell.v }));
|
|
777
|
+
withheld.push({ id: `point:${r.id}:${c.id}`, kind: "point", owner }), wouldShow(), cellLabelsOn && cell.v !== null && (omittedValues++, hiddenCells.push({ r, c, v: cell.v }));
|
|
779
778
|
});
|
|
780
779
|
});
|
|
781
780
|
let distinctFills = /* @__PURE__ */ new Set();
|
|
@@ -886,7 +885,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
886
885
|
if (!("categoryId" in norm)) return null;
|
|
887
886
|
if (norm.seriesId) {
|
|
888
887
|
let cell = anchorCell.get(`${norm.categoryId}:${norm.seriesId}`), printed = solved.placed.find((label) => label.id === `point:${norm.seriesId}:${norm.categoryId}` && !label.hidden);
|
|
889
|
-
return cell && printed ? { ...cell, printed: { text: printed.text, box: cellBoxes.get(`${norm.categoryId}:${norm.seriesId}`) } } : cell ?? null;
|
|
888
|
+
return cell && printed ? { ...cell, printed: { text: printed.text, box: cellBoxes.get(`${norm.categoryId}:${norm.seriesId}`), ...printed.shows ? { shows: printed.shows } : {} } } : cell ?? null;
|
|
890
889
|
}
|
|
891
890
|
let ci = cols.findIndex((c) => c.id === norm.categoryId), mean = colMeans[norm.categoryId];
|
|
892
891
|
return ci < 0 || mean === null || mean === void 0 ? null : {
|
|
@@ -921,6 +920,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
921
920
|
measure,
|
|
922
921
|
format: options.format,
|
|
923
922
|
locale: options.locale?.language,
|
|
923
|
+
levelSpec: ruleBase,
|
|
924
924
|
strings: options.strings,
|
|
925
925
|
solveCtx
|
|
926
926
|
}), failedSideNotes = sideNotes.filter((a) => annResult.labels.some((l) => l.owner.annotationId === a.id && l.hidden !== void 0));
|
|
@@ -995,9 +995,9 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
995
995
|
return fmt(v);
|
|
996
996
|
}, a11yDesc = chartString(options, "heatmapDescStart", { v1: scaleWord, v2: dataRows.length, v3: dataCols.length }) + (allValues.length > 0 ? chartString(options, "valuesRange", { v1: extremeText(vMin), v2: extremeText(vMax) }) : "") + (invertedRows.length > 0 ? chartString(options, "invertedRowsDesc", { v1: invertedRows.map((r) => r.label).join(", ") }) : "") + chartString(options, "rowMeansSentence", { v1: dataRows.map((r) => {
|
|
997
997
|
let mean = rowMeans[r.id];
|
|
998
|
-
return `${r.label} ${mean == null ? NOT_AVAILABLE : readingText(mean, r)}`;
|
|
998
|
+
return `${r.label} ${mean == null ? NOT_AVAILABLE : asEngineNumbers(() => readingText(mean, r))}`;
|
|
999
999
|
}).join(", ") }) + (hiddenCells.length > 0 && options.heatKey === void 0 ? ` ${options.strings?.hiddenLabels ?? HIDDEN_LABEL_LEAD}: ${hiddenCells.map(hiddenItem).join(", ")}.` : "");
|
|
1000
|
-
return withUnprintedClaims({
|
|
1000
|
+
return wouldShowCells.length > 0 && (marks.wouldShow = new DeferredShownMarks(() => wouldShowCells.flatMap((cell) => cell() ?? []))), withUnprintedClaims({
|
|
1001
1001
|
type: "heatmap",
|
|
1002
1002
|
size,
|
|
1003
1003
|
sizing: rowSizing("heatmap", size, {
|
|
@@ -1089,7 +1089,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1089
1089
|
}
|
|
1090
1090
|
function hiddenItem(h) {
|
|
1091
1091
|
let cell = h.r.cells[cols.indexOf(h.c)];
|
|
1092
|
-
return `${h.r.label} ${h.c.label} ${textFor(h.v, cell.pct, cell.meta, h.r
|
|
1092
|
+
return `${h.r.label} ${h.c.label} ${textFor(h.v, cell.pct, cell.meta, h.r) ?? displayFor(h.v, cell.pct, cell.meta, h.r)}`;
|
|
1093
1093
|
}
|
|
1094
1094
|
function hiddenValuesNote(lead2) {
|
|
1095
1095
|
let heading = options.strings?.hiddenLabels ?? HIDDEN_LABEL_LEAD, leadAt = lead2 && "at" in lead2 && typeof lead2.at == "object" && "seriesId" in lead2.at ? lead2.at : void 0, unprinted = hiddenCells.filter((h) => !(leadAt && h.r.id === leadAt.seriesId && h.c.id === leadAt.categoryId)), leads = unprinted.length <= DEFAULT_NOTE_LIMIT ? [] : [vMin, vMax].flatMap((extreme) => unprinted.filter((cell) => cell.v === extreme).slice(0, 1));
|
|
@@ -1102,7 +1102,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1102
1102
|
high > low && ticks.push(high);
|
|
1103
1103
|
let textOf = short ? (v) => {
|
|
1104
1104
|
let text = keyText(v).replace(/^>=/, "\u2265").replace(/^<=/, "\u2264");
|
|
1105
|
-
return
|
|
1105
|
+
return valence && v > 0 ? text.replace(/^(≥?)(?![+≥])/, "$1+") : text;
|
|
1106
1106
|
} : keyText, font = tickFont, left = short ? 0 : measure(textOf(low), font).width / 2, right = short ? 0 : measure(textOf(high), font).width / 2, unitText = short && options.unit ? options.unit : void 0, unitW = unitText ? measure(unitText, font).width + 8 : 0, x = keyRight ? plot0.x + plot0.w + KEY_GAP : plot0.x + left, y = keyRight ? plot0.y + measure(textOf(high), font).height / 2 : (keyBottom ? plot0.y + plot0.h - continuousKeyH + KEY_GAP : plot0.y) + unitRise, w = keyRight ? KEY_BAR_H : short ? Math.max(1, Math.min(plot0.w - unitW, 240, Math.max(168, plot0.w * 0.45))) : Math.max(1, plot0.w - left - right), h = keyRight ? Math.max(1, plot0.h - measure(textOf(high), font).height) : KEY_BAR_H, length = keyRight ? h : w, at = (v) => (keyRight ? y + h : x) + (high > low ? (v - low) / (high - low) * length : length / 2) * (keyRight ? -1 : 1), slices = Math.max(1, Math.ceil(length / 2));
|
|
1107
1107
|
for (let i = 0; i < slices; i++) nodes.push({
|
|
1108
1108
|
t: "rect",
|
|
@@ -1175,34 +1175,31 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
1177
|
function bubbleCell(r, c, cell, rect, owner, paint, css) {
|
|
1178
|
-
if (cell.v === null) return;
|
|
1178
|
+
if (cell.v === null) return !1;
|
|
1179
1179
|
let radius = radiusOf(cell.size);
|
|
1180
|
-
if (radius === 0)
|
|
1181
|
-
hasSizes && cell.size === null && missingSizes
|
|
1182
|
-
return;
|
|
1183
|
-
}
|
|
1180
|
+
if (radius === 0)
|
|
1181
|
+
return hasSizes && cell.size === null && missingSizes++, !1;
|
|
1184
1182
|
let cx = round2(rect.x + rect.w / 2), cy = round2(rect.y + rect.h / 2), rr = round2(radius), low = lowBase(cell);
|
|
1185
|
-
if (bubbleNodes.push(low ? { t: "path", id: `bubble:${cellKey(r, c)}`, d: `M${round2(cx - rr)} ${cy}A${rr} ${rr} 0 1 0 ${round2(cx + rr)} ${cy}A${rr} ${rr} 0 1 0 ${round2(cx - rr)} ${cy}Z`, fill: paint, pattern: "hatch45", stroke: paint, width: strokeToken(theme, "mark"), owner, part: "bubble" } : { t: "circle", id: `bubble:${cellKey(r, c)}`, cx, cy, r: rr, fill: paint, owner, part: "bubble" }), !cellLabelsOn || topOnly && cell.size !== levels.length) return;
|
|
1183
|
+
if (bubbleNodes.push(low ? { t: "path", id: `bubble:${cellKey(r, c)}`, d: `M${round2(cx - rr)} ${cy}A${rr} ${rr} 0 1 0 ${round2(cx + rr)} ${cy}A${rr} ${rr} 0 1 0 ${round2(cx - rr)} ${cy}Z`, fill: paint, pattern: "hatch45", stroke: paint, width: strokeToken(theme, "mark"), owner, part: "bubble" } : { t: "circle", id: `bubble:${cellKey(r, c)}`, cx, cy, r: rr, fill: paint, owner, part: "bubble" }), !cellLabelsOn || topOnly && cell.size !== levels.length) return !1;
|
|
1186
1184
|
let text = textFor(cell.v, cell.pct, cell.meta, r);
|
|
1187
|
-
if (!text) return;
|
|
1185
|
+
if (!text) return !1;
|
|
1188
1186
|
let { size: tsize, inside, beside } = measureBubbleValue(text, radius), besideX = cx + radius + 2;
|
|
1189
|
-
if (!showBubbleValues || !inside && !beside)
|
|
1190
|
-
omittedValues++, hiddenCells.push({ r, c, v: cell.v });
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
let insideFill = low ? paintColor(theme, { token: "background" }) : css;
|
|
1194
|
-
labelRequests.push({
|
|
1187
|
+
if (!showBubbleValues || !inside && !beside)
|
|
1188
|
+
return omittedValues++, hiddenCells.push({ r, c, v: cell.v }), !1;
|
|
1189
|
+
let insideFill = low ? paintColor(theme, { token: "background" }) : css, shows = cellShows(text, cell.v, cell.pct, cell.meta, r);
|
|
1190
|
+
return labelRequests.push({
|
|
1195
1191
|
id: `point:${cellKey(r, c)}`,
|
|
1196
1192
|
kind: "point",
|
|
1197
1193
|
typeRole: "label",
|
|
1198
1194
|
owner,
|
|
1199
1195
|
text,
|
|
1196
|
+
...shows ? { shows } : {},
|
|
1200
1197
|
lines: [text],
|
|
1201
1198
|
font: valueLabelFont,
|
|
1202
1199
|
priority: cell.meta?.priority ?? (cell.v === extremeMax || cell.v === extremeMin ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(cell.v))) + bonus(r.id, c.id),
|
|
1203
1200
|
...bonus(r.id, c.id) > 0 ? { keepWhenDense: !0 } : {},
|
|
1204
1201
|
candidates: [inside ? { slot: "insideCenter", rect: { x: cx - tsize.width / 2, y: cy - tsize.height / 2, w: tsize.width, h: tsize.height }, penalty: 0, insideFill, insidePaint: low ? { token: "background" } : paint } : { slot: "right", rect: { x: besideX, y: cy - tsize.height / 2, w: tsize.width, h: tsize.height }, penalty: 0 }]
|
|
1205
|
-
});
|
|
1202
|
+
}), !0;
|
|
1206
1203
|
}
|
|
1207
1204
|
function continuousStops() {
|
|
1208
1205
|
let step = niceStep((vMax - vMin) / 3 || 1), stops = [vMin];
|
|
@@ -1225,8 +1222,8 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1225
1222
|
})) : continuousStops().map((v, i) => ({ id: `scale:bin:${i}`, label: keyText(v), paint: fillPaint(v, null, !0, direction) }));
|
|
1226
1223
|
anyLowBase && colours.push({ id: "scale:lowBase", label: lowBaseKey, paint: semanticPalettePaint(theme, options.palette, "neutralMark", 0.55), hatch: !0 });
|
|
1227
1224
|
let side = Math.min(cellW, bubbleNaturalH, cellBound), rEst = Math.max(1.5, side / 2 - (side < 40 ? BUBBLE_AIR_TIGHT : BUBBLE_AIR)), largest = Math.max(0, maxOf(rows.flatMap((r) => r.cells.map((c) => c.size ?? 0)))), sizeEntries = hasSizes ? levels ? levels.map((label, i) => ({ label, level: i + 1, r: Math.max(1.5, rEst * (i + 2) / (levels.length + 1)) })) : (() => {
|
|
1228
|
-
let sizeMax2 = largest, large = niceBelow(sizeMax2)[0];
|
|
1229
|
-
return
|
|
1225
|
+
let sizeMax2 = largest, large = niceBelow(sizeMax2)[0], shown = [large === void 0 ? void 0 : niceBelow(large / 4)[0], large].filter((v) => v !== void 0 && v > 0), sizeText = sizeKeyFormatter(shown);
|
|
1226
|
+
return shown.map((v) => ({ label: sizeText(v), level: v, r: Math.max(1.5, rEst * Math.sqrt(sizeMax2 > 0 ? v / sizeMax2 : 0)) }));
|
|
1230
1227
|
})() : [], headH = keyTitled ? keyLineH + 4 : 0, colourEntryW = colours.map((c) => 2 * KEY_DOT_R + KEY_TEXT_GAP + textW(c.label)), colourW = Math.max(colorLabel ? textW(colorLabel) : 0, colourEntryW.reduce((a, w) => a + w, 0) + KEY_ENTRY_GAP * Math.max(0, colours.length - 1)), colourH = Math.max(2 * KEY_DOT_R, keyLineH), sizeEntryW = sizeEntries.map((e) => 2 * e.r + KEY_TEXT_GAP + textW(e.label)), sizeW = sizeEntries.length ? Math.max(sizeLabel ? textW(sizeLabel) : 0, sizeEntryW.reduce((a, w) => a + w, 0) + KEY_ENTRY_GAP * Math.max(0, sizeEntries.length - 1)) : 0, sizeH = sizeEntries.length ? Math.max(keyLineH, ...sizeEntries.map((e) => 2 * e.r)) : 0, beside = sizeEntries.length === 0 || colourW + KEY_GROUP_GAP + sizeW <= plot0.w, height = beside ? headH + Math.max(colourH, sizeH) : headH + colourH + 8 + headH + sizeH;
|
|
1231
1228
|
return { height, draw: () => {
|
|
1232
1229
|
let out = [], top = plot0.y + annotationTopH, text = (id, line, tx, cy2) => ({ t: "text", id, x: round2(tx), y: round2(cy2 - keyLineH / 2), lines: [line], align: "start", font: keyFont, ink, typeRole: "axis", owner: { seriesId: id }, part: id.endsWith("Title") ? "legendHeading" : "legendLabel" }), circle = (id, cx, cy2, rr, paint, hatch, stroke) => hatch ? { t: "path", id, d: `M${round2(cx - rr)} ${round2(cy2)}A${round2(rr)} ${round2(rr)} 0 1 0 ${round2(cx + rr)} ${round2(cy2)}A${round2(rr)} ${round2(rr)} 0 1 0 ${round2(cx - rr)} ${round2(cy2)}Z`, fill: paint, pattern: "hatch45", stroke: paint, width: strokeToken(theme, "mark"), owner: { seriesId: id }, part: "swatch" } : { t: "circle", id, cx: round2(cx), cy: round2(cy2), r: round2(rr), fill: paint, ...stroke ? { stroke, strokeWidth: strokeToken(theme, "hair") } : {}, owner: { seriesId: id }, part: "swatch" };
|
|
@@ -1248,8 +1245,8 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1248
1245
|
}
|
|
1249
1246
|
function bubbleKeyNodes() {
|
|
1250
1247
|
let out = [], titleFont = { ...keyFont }, titleH = keyTitled ? keyLineH + 4 : 0, sizeLabel = options.bubble?.sizeLabel, colorLabel = options.bubble?.colorLabel, sizeEntries = hasSizes ? levels ? levels.map((label, i) => ({ label, r: radiusOf(i + 1) })) : (() => {
|
|
1251
|
-
let large = niceBelow(sizeMax)[0];
|
|
1252
|
-
return
|
|
1248
|
+
let large = niceBelow(sizeMax)[0], shown2 = [large === void 0 ? void 0 : niceBelow(large / 4)[0], large].filter((v) => v !== void 0 && v > 0), sizeText = sizeKeyFormatter(shown2);
|
|
1249
|
+
return shown2.map((v) => ({ label: sizeText(v), r: radiusOf(v) }));
|
|
1253
1250
|
})() : [], rKey = Math.max(0, ...sizeEntries.map((e) => e.r)), baseline = headTop - KEY_GAP - 3 - keyLineH, top = baseline - Math.max(rKey, KEY_BAR_H) - titleH, widths = sizeEntries.map((e) => Math.max(2 * e.r, measure(e.label, keyFont).width)), sizeW = Math.max(widths.reduce((a, w) => a + w, 0) + 12 * Math.max(0, widths.length - 1), sizeLabel ? measure(sizeLabel, titleFont).width : 0), edges = bins ?? [0, 1, 2, 3, 4, 5].map((k) => vMin + (vMax - vMin) * k / 5), span = edges.at(-1) - edges[0] || 1, shown = bins ?? [vMin, vMax], edgeText = shown.map((v) => shownFor(v, pctMatrix, null, keySeries)), barW = Math.max(120, Math.min(200, cellW * 3)), colorW = Math.max(barW + measure(edgeText[0], keyFont).width / 2 + measure(edgeText.at(-1), keyFont).width / 2, colorLabel ? measure(colorLabel, titleFont).width : 0), lowR = 6, lowW = anyLowBase ? 16 + 2 * lowR + 4 + measure(lowBaseKey, keyFont).width : 0, total = (sizeEntries.length > 0 ? sizeW + KEY_GROUP_GAP : 0) + Math.max(colorW, barW + measure(edgeText[0], keyFont).width / 2 + measure(edgeText.at(-1), keyFont).width / 2 + lowW), x = Math.max(plot0.x, gridX + gridW - total), text = (id, line, tx, ty, align, font, part) => ({ t: "text", id, x: round2(tx), y: round2(ty), lines: [line], align, font, ink: { token: "ink" }, typeRole: "axis", owner: { seriesId: id }, part });
|
|
1254
1251
|
if (sizeEntries.length > 0) {
|
|
1255
1252
|
sizeLabel && out.push(text("scale:sizeTitle", sizeLabel, x, top, "start", titleFont, "legendHeading"));
|
|
@@ -1282,25 +1279,22 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1282
1279
|
}
|
|
1283
1280
|
return occupied.claim({ x: Math.max(plot0.x, gridX + gridW - total), y: top, w: total, h: headTop - KEY_GAP - top }, "legend", {}), out;
|
|
1284
1281
|
}
|
|
1285
|
-
function textFor(v, pct, meta, series
|
|
1282
|
+
function textFor(v, pct, meta, series) {
|
|
1286
1283
|
if (meta?.label === !1) return null;
|
|
1287
|
-
let base = displayFor(v, pct, meta, series
|
|
1284
|
+
let base = displayFor(v, pct, meta, series);
|
|
1288
1285
|
return typeof meta?.label == "string" ? meta.label.replace(/\$\{value\}/g, base) : base;
|
|
1289
1286
|
}
|
|
1287
|
+
function cellShows(text, v, pct, meta, series) {
|
|
1288
|
+
return typeof meta?.label != "string" ? { value: text } : meta.label.includes("${value}") ? { value: displayFor(v, pct, meta, series) } : void 0;
|
|
1289
|
+
}
|
|
1290
1290
|
function shownFor(v, pct, meta, series) {
|
|
1291
|
-
|
|
1292
|
-
for (let off = cut.decimals; off > 0; off--)
|
|
1293
|
-
if (Math.abs(Number(v.toFixed(Math.max(0, decimals - off))) - v) < 1e-9 * Math.max(1, Math.abs(v))) return displayFor(v, pct, meta, series, { ...cut, decimals: off });
|
|
1294
|
-
return displayFor(v, pct, meta, series, { decimals: 0, sign: cut.sign });
|
|
1291
|
+
return displayFor(v, pct, meta, series);
|
|
1295
1292
|
}
|
|
1296
|
-
function displayFor(v, pct, meta, series
|
|
1297
|
-
if (meta?.format)
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
}
|
|
1302
|
-
let text = series?.format || series?.unit ? formats.forSeries(series)(v) : options.format ? fmt(v) : automaticFmt(v, step.decimals), example = series?.format ?? options.format;
|
|
1303
|
-
return pct && (!example || specUnitKind(parseFormatExample(example)) === "number") && !(step.sign && percentNamedByUnit) ? `${text}%` : text;
|
|
1293
|
+
function displayFor(v, pct, meta, series) {
|
|
1294
|
+
if (meta?.format)
|
|
1295
|
+
return meta[AUTOMATIC_FORMAT] ? formatNonzeroWithSpec(v, { ...exampleSpec(meta.format, options.locale?.language), automatic: !0 }) : formatterFromExample(meta.format, options.locale?.language)(v);
|
|
1296
|
+
let text = series?.format || series?.unit ? formats.forSeries(series)(v) : options.format ? fmt(v) : automaticFmt(v), example = series?.format ?? options.format;
|
|
1297
|
+
return pct && (!example || specUnitKind(parseFormatExample(example)) === "number") ? `${text}%` : text;
|
|
1304
1298
|
}
|
|
1305
1299
|
}
|
|
1306
1300
|
function measureRowLabels(cells, textFor, font, measure, widthOf, height, air = 2) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
columnHeadsOption,
|
|
3
3
|
columnOrderOption,
|
|
4
4
|
columnOverridesOption
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B7UWG6XJ.js";
|
|
6
6
|
import {
|
|
7
7
|
addDuplicateIdIssues,
|
|
8
8
|
baseOptionsSchema,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
idRecord,
|
|
12
12
|
idSchema,
|
|
13
13
|
refusedBaseOptions
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JOX252XQ.js";
|
|
15
15
|
|
|
16
16
|
// src/core/charts/bartable/schema.ts
|
|
17
17
|
import * as z from "zod";
|
|
@@ -132,9 +132,9 @@ var cellState = z.strictObject({
|
|
|
132
132
|
),
|
|
133
133
|
cascade: z.strictObject({
|
|
134
134
|
totalApart: z.boolean().optional().describe("Row groups only. true (default): the Total bar deepens away from the group colours and the rest grey where the theme total colour reads as one of them. false: the Total bar keeps the theme total colour (color.total) as it is."),
|
|
135
|
-
share: z.boolean().optional().describe("Computed share column beside each panel; default true.
|
|
135
|
+
share: z.boolean().optional().describe("Computed share column beside each panel; default true. Each share rounds on its own; rounding 'sum-consistent' makes each column add up to 100%."),
|
|
136
136
|
growth: z.strictObject({
|
|
137
|
-
measure: z.enum(["cagr", "share-change"]).describe("'cagr': each row's CAGR, first panel to last, in %. 'share-change': last share minus first, in pp."),
|
|
137
|
+
measure: z.enum(["cagr", "share-change"]).describe("'cagr': each row's CAGR, first panel to last, in %. 'share-change': last share minus first, in pp, from the received shares; the column prints two digits in every group of its changes (\u22127.8 \xB7 \u22120.43)."),
|
|
138
138
|
years: z.number().positive().optional().describe("Years from first to last panel for 'cagr'; default read from the panel labels (2019, FY24). 'share-change' reads no years and warns option-ignored."),
|
|
139
139
|
label: z.string().trim().min(1).optional().describe("Column head; default from the panel labels.")
|
|
140
140
|
}).optional().describe("Growth column after the last panel.")
|