boardplot 0.58.2 → 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 +61 -0
- package/dist/{ReaderBox-WVOT7VVJ.js → ReaderBox-4PNFZO56.js} +4 -4
- package/dist/{annotateEngine-IJ7RDLUI.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-DZUF4V4F.js → chunk-266ENWFM.js} +3 -3
- package/dist/{chunk-FRR7BJ3B.js → chunk-2E2MK4XM.js} +2 -2
- package/dist/{chunk-K5LIUWJO.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-JQSDRXLX.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-LX6X33C7.js → chunk-3WFJDXZO.js} +3 -3
- package/dist/{chunk-OGWZT3PH.js → chunk-3ZR7ZE64.js} +2 -2
- package/dist/{chunk-UISHXPGJ.js → chunk-4DLIXTDH.js} +5 -5
- package/dist/{chunk-FL57NWM7.js → chunk-4EEK4AMC.js} +2 -2
- package/dist/{chunk-5OBA4IKC.js → chunk-4LCQO46F.js} +144 -55
- package/dist/{chunk-DXNVL67C.js → chunk-4NIIQFDA.js} +147 -104
- package/dist/{chunk-ED7GLWTF.js → chunk-4PKUS5MG.js} +2 -1
- package/dist/{chunk-ECL7CSPJ.js → chunk-4WH2YGO6.js} +3 -3
- package/dist/{chunk-MXUPMGRY.js → chunk-4YKS2JDE.js} +3 -3
- package/dist/{chunk-ZQHMZUFD.js → chunk-4YZQY3AA.js} +1 -1
- package/dist/{chunk-ZDITBL4Z.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-DIN62FP4.js → chunk-5UXK5BAA.js} +37 -38
- package/dist/{chunk-7Q4T5TPZ.js → chunk-5YULK4DY.js} +6 -10
- package/dist/{chunk-QRIEJAM5.js → chunk-5ZE7SHRM.js} +3 -3
- package/dist/{chunk-KNT3GSVB.js → chunk-67744WKZ.js} +1 -1
- package/dist/{chunk-HTY6XK32.js → chunk-6CZGFTGK.js} +51 -47
- package/dist/{chunk-FVQRFBOP.js → chunk-6IIYLDSQ.js} +3 -3
- package/dist/{chunk-U5CBQHTX.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-IU2PONEI.js → chunk-7IONS4Z7.js} +3 -3
- package/dist/{chunk-ETUKDEGL.js → chunk-7QUWM5W6.js} +6 -6
- package/dist/{chunk-24PMVRVW.js → chunk-7SIZGM5S.js} +78 -53
- package/dist/{chunk-QVLHI3BE.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-U5D5NUFA.js → chunk-7YJSSPQX.js} +31 -28
- package/dist/{chunk-4GKVFHJH.js → chunk-7ZXIHEZS.js} +4 -4
- package/dist/{chunk-FJA5EUE7.js → chunk-A3SOYL6F.js} +3 -3
- package/dist/{chunk-CAE6E3NW.js → chunk-ADLKZEML.js} +31 -64
- package/dist/{chunk-KNGC2STY.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-D3UPBA4R.js → chunk-AUSZDYGE.js} +9 -7
- package/dist/{chunk-ZUG7EYEM.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-COQSFON4.js → chunk-BJJYNTVJ.js} +1 -1
- package/dist/{chunk-NS4SBO47.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-JDLT4YV6.js → chunk-CV5KCQD3.js} +72 -79
- package/dist/{chunk-QRQFHNRF.js → chunk-CX7WUNMO.js} +22 -18
- package/dist/{chunk-YWPBYL6P.js → chunk-DANKUHCX.js} +41 -40
- package/dist/{chunk-IDXYHDQY.js → chunk-DBKMJWPO.js} +1 -1
- package/dist/{chunk-K672I6R6.js → chunk-DEJ27Y2P.js} +138 -91
- package/dist/{chunk-HTQGJQZN.js → chunk-DITI57ZB.js} +1 -1
- package/dist/{chunk-WRI44CHA.js → chunk-DO7MMF4C.js} +86 -43
- package/dist/{chunk-NTUTJY33.js → chunk-DUDVHQD6.js} +7 -7
- package/dist/{chunk-RKPN6KN7.js → chunk-DXLWMK24.js} +3 -3
- package/dist/{chunk-DQECTZPF.js → chunk-DYD7W3Y6.js} +15 -16
- package/dist/{chunk-AU5PXIE3.js → chunk-DZBT7AWJ.js} +2 -2
- package/dist/{chunk-I7V6LXHD.js → chunk-E4KHHC46.js} +16 -16
- package/dist/{chunk-K2AOKBGW.js → chunk-E62SXDRT.js} +2 -2
- package/dist/{chunk-BAT77TKB.js → chunk-EADD6NNQ.js} +73 -79
- package/dist/{chunk-CMPHT2LS.js → chunk-EH23CIC5.js} +4 -4
- package/dist/{chunk-DTIV2NIZ.js → chunk-EJA5EANI.js} +47 -26
- package/dist/{chunk-VZWIRNQ4.js → chunk-EWGFOEJB.js} +126 -65
- package/dist/{chunk-SVPSNDLL.js → chunk-EWMPUCIG.js} +37 -37
- package/dist/{chunk-H6WX7J5M.js → chunk-EZ5KUBYF.js} +38 -27
- package/dist/{chunk-IUEUVLT3.js → chunk-F2N5BUBK.js} +12 -13
- package/dist/{chunk-VJ7VBB6S.js → chunk-F7QCIJAY.js} +1 -1
- package/dist/{chunk-ANKBTBWD.js → chunk-FB36HSY2.js} +4 -4
- package/dist/{chunk-F3XOBFS4.js → chunk-FBIMTKYK.js} +3 -10
- package/dist/{chunk-4NEXP7IB.js → chunk-FMVXXKSW.js} +3 -3
- package/dist/{chunk-GOJI2HVL.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-L3BVYKA6.js → chunk-GDE2JINW.js} +11 -11
- package/dist/{chunk-RLB7QCTK.js → chunk-GEEHXLFQ.js} +7 -6
- package/dist/{chunk-S6XM22RZ.js → chunk-GGFT6IIM.js} +3 -3
- package/dist/{chunk-KTOWOMQP.js → chunk-GIJM4MP4.js} +5 -5
- package/dist/{chunk-UY34DDUM.js → chunk-GNK7RTO4.js} +3 -3
- package/dist/{chunk-BAOUMAH6.js → chunk-GSHRYDJM.js} +1 -1
- package/dist/{chunk-RXDCT5TD.js → chunk-GWDKUKOJ.js} +96 -321
- package/dist/{chunk-XMX4PCFL.js → chunk-GZYMHC44.js} +2 -2
- package/dist/{chunk-RK5JTZFI.js → chunk-HBKZC5BH.js} +2 -2
- package/dist/{chunk-WXMH66N5.js → chunk-HC4UW7MB.js} +4 -4
- package/dist/{chunk-ZRI6VYNF.js → chunk-HFDU2E7C.js} +27 -21
- package/dist/{chunk-M6PYA4FO.js → chunk-HW67YGJC.js} +1 -1
- package/dist/{chunk-C4DN27QI.js → chunk-I65BCUVH.js} +3 -3
- package/dist/{chunk-SHFXHUKJ.js → chunk-ICERP2YF.js} +3 -3
- package/dist/{chunk-KG7LKHD7.js → chunk-ICJUN47O.js} +2 -2
- package/dist/{chunk-QMUCI2UU.js → chunk-ID5PE4KM.js} +3 -3
- package/dist/{chunk-DOYJ2O2C.js → chunk-IDJVUZAA.js} +3 -3
- package/dist/{chunk-WDDPQUT2.js → chunk-IQRRT32Q.js} +2 -2
- package/dist/{chunk-WHIO5L6Z.js → chunk-ISMFUWOP.js} +3 -3
- package/dist/{chunk-4X7FNGGM.js → chunk-IX2SLULO.js} +3 -3
- package/dist/{chunk-4G5QQ5TH.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-UK5LXRUN.js → chunk-JIB74SQS.js} +6 -6
- package/dist/{chunk-ZIVCPXXL.js → chunk-JOX252XQ.js} +5 -5
- package/dist/{chunk-YC6W7EVG.js → chunk-JRM22ULA.js} +54 -45
- package/dist/{chunk-V5CWUATF.js → chunk-JYSS5ZZF.js} +5 -5
- package/dist/{chunk-OJ5CCTNY.js → chunk-KRIYGX3N.js} +3 -3
- package/dist/{chunk-XRRG4MBM.js → chunk-KWMQNKGX.js} +2 -2
- package/dist/{chunk-4EDPXQR7.js → chunk-LADFOYH7.js} +40 -27
- package/dist/{chunk-P6KEM5N7.js → chunk-LC4KDLUE.js} +3 -3
- package/dist/{chunk-SAMTYEWB.js → chunk-LLECS747.js} +4 -4
- package/dist/{chunk-XO4DJM33.js → chunk-LM4GVVPM.js} +16 -10
- package/dist/{chunk-EHRRHSPV.js → chunk-LPLRXEOT.js} +55 -19
- package/dist/{chunk-S4L7LXWX.js → chunk-M2FF4IPF.js} +16 -7
- package/dist/{chunk-4JGBCBDZ.js → chunk-MF6XGFHB.js} +1 -1
- package/dist/{chunk-O3U6IOIO.js → chunk-MOBRWYUQ.js} +2 -2
- package/dist/{chunk-CDUR3KWV.js → chunk-MOPY5REE.js} +2 -2
- package/dist/{chunk-LLEDONMT.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-NM6IWRTB.js → chunk-NIL6TYAN.js} +4 -4
- package/dist/{chunk-VGEHOB25.js → chunk-NPDF7HEH.js} +2 -2
- package/dist/{chunk-JMMKOICP.js → chunk-NUASZPS7.js} +1 -1
- package/dist/{chunk-QI47HSZD.js → chunk-NWUEA42V.js} +3 -3
- package/dist/{chunk-O4FCIOOY.js → chunk-NZGQLR4X.js} +8 -8
- package/dist/{chunk-TRGQLVJV.js → chunk-O32L5FK2.js} +3 -3
- package/dist/{chunk-DJRPY7AR.js → chunk-O623CYPA.js} +3 -3
- package/dist/{chunk-7OZCLJAG.js → chunk-OJR5GPCN.js} +3 -3
- package/dist/{chunk-C47POAC5.js → chunk-OL6HVC6K.js} +1 -1
- package/dist/{chunk-3MGXQARA.js → chunk-OM5MAJST.js} +68 -57
- package/dist/{chunk-CLJWE3JQ.js → chunk-OTOASFG4.js} +92 -35
- package/dist/{chunk-KF2HYUXN.js → chunk-P3N74SZ5.js} +3 -3
- package/dist/{chunk-J3GUMT27.js → chunk-PHQGGR5O.js} +3 -3
- package/dist/{chunk-YQZCMPN7.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-CRTRY3IQ.js → chunk-QDFX2KAP.js} +2 -2
- package/dist/{chunk-RAPIBQ6W.js → chunk-QKDDGDRF.js} +10 -10
- package/dist/{chunk-P2WZQQCC.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-BYPUPHRW.js → chunk-REIIGIJG.js} +3 -3
- package/dist/{chunk-K4OR5AP5.js → chunk-RF2REMRV.js} +6 -6
- package/dist/{chunk-3MFVJMP6.js → chunk-RF6ZHX5F.js} +1 -1
- package/dist/{chunk-AYIK7HVV.js → chunk-RLX6VODQ.js} +9 -2
- package/dist/{chunk-KWIP5YRA.js → chunk-RPS7G77V.js} +3 -3
- package/dist/{chunk-LBCSRQGW.js → chunk-RSDGBNXP.js} +5 -5
- package/dist/{chunk-MP5UOUGM.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-V7MFF5A4.js → chunk-SE6LBMRJ.js} +137 -62
- package/dist/{chunk-MCRRURTO.js → chunk-SFRMBCVY.js} +3 -3
- package/dist/{chunk-UUK73ZCT.js → chunk-SNJ3FZXC.js} +14 -12
- package/dist/{chunk-H7GFUA6G.js → chunk-SXCFMPNM.js} +3 -3
- package/dist/{chunk-SGDWLXUC.js → chunk-SY7JC3PH.js} +1 -1
- package/dist/{chunk-UXPR6TEZ.js → chunk-T4CFY4YT.js} +4 -4
- package/dist/{chunk-5SVGTQTW.js → chunk-TASEX7VA.js} +1 -1
- package/dist/{chunk-UB7LT72S.js → chunk-TCWJQIVQ.js} +123 -71
- package/dist/{chunk-SFBB4GVQ.js → chunk-TEZWFQB7.js} +6 -6
- package/dist/{chunk-GHCU6OSE.js → chunk-TLKRYDH3.js} +2 -2
- package/dist/{chunk-MH6MGYPS.js → chunk-TMVERETB.js} +23 -332
- package/dist/{chunk-5LPLVLLA.js → chunk-TQFBLSZJ.js} +44 -27
- package/dist/{chunk-5FOB6QGF.js → chunk-U4WG46QP.js} +117 -43
- package/dist/{chunk-LJDATBPB.js → chunk-U75MMLNQ.js} +3 -6
- package/dist/{chunk-SB7MASJU.js → chunk-UFGJNSSL.js} +1 -1
- package/dist/{chunk-FB6X7QHA.js → chunk-UGHJHJKY.js} +1 -1
- package/dist/{chunk-MIJPESMQ.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-OCPVQZCC.js → chunk-UV77Y7QK.js} +11 -5
- package/dist/{chunk-PMT75APP.js → chunk-UXJXA4NP.js} +1 -1
- package/dist/{chunk-CPPFF3OB.js → chunk-UZDQFUHO.js} +3 -3
- package/dist/{chunk-S3I6F4IO.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-YFQW73AV.js → chunk-VLMKGQ33.js} +13 -13
- package/dist/{chunk-3AWE5535.js → chunk-VMLVZW4F.js} +39 -36
- package/dist/{chunk-YT5MTKED.js → chunk-VT6PDWUA.js} +78 -78
- package/dist/{chunk-GQYT7G4F.js → chunk-VTUSC24F.js} +2 -2
- package/dist/{chunk-NMQH4S2F.js → chunk-VVWTD4XP.js} +9 -9
- package/dist/{chunk-OQA3DJH4.js → chunk-VZVPN7NT.js} +3 -3
- package/dist/{chunk-Z3WQXVFV.js → chunk-W4ZLMK6Z.js} +1 -1
- package/dist/{chunk-LOFR5HOQ.js → chunk-W6NEWQZU.js} +20 -18
- package/dist/{chunk-DZYTXZNS.js → chunk-WD5NJHZG.js} +2 -2
- package/dist/{chunk-2WQSH3HV.js → chunk-WTH3KQDM.js} +2 -2
- package/dist/{chunk-UQBNY2UU.js → chunk-WTWM4RK6.js} +1 -1
- package/dist/{chunk-XJC37XXA.js → chunk-WZNO3LUF.js} +3 -3
- package/dist/{chunk-GQ3CMAOD.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-IJU5PAIS.js → chunk-XETSLYFD.js} +3 -3
- package/dist/{chunk-Z7EAEWR3.js → chunk-XFDNAR4S.js} +16 -27
- package/dist/{chunk-IXQNKI6G.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-ESSNZ3VQ.js → chunk-XMII3G47.js} +3 -3
- package/dist/{chunk-QNEVEBIR.js → chunk-XRPZJDAK.js} +101 -72
- package/dist/{chunk-IPBOREIY.js → chunk-XUEX5WTR.js} +1 -1
- package/dist/{chunk-ZYCB2CJJ.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-36RTBB37.js → chunk-XWUHUTXX.js} +24 -18
- package/dist/{chunk-AIU3Y4L5.js → chunk-XXYV5UEM.js} +50 -49
- package/dist/{chunk-KVIWD6MV.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-46JPQLR2.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-F6IPP33V.js → chunk-YM4MVABU.js} +56 -24
- package/dist/{chunk-GOFS336W.js → chunk-YM7MO7WI.js} +1 -1
- package/dist/{chunk-A64R244B.js → chunk-YOUYJHW3.js} +3 -3
- package/dist/{chunk-Z7LBIXNV.js → chunk-YPELB4Q7.js} +3 -3
- package/dist/{chunk-HXGSNLIW.js → chunk-YRCIG4IO.js} +8 -7
- package/dist/{chunk-B6BEPKEE.js → chunk-ZIQR2CNM.js} +7 -7
- package/dist/{chunk-ZHGFJL3O.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-VA3SBRCT.js → core-2PT7IROA.js} +2 -1
- package/dist/{core-JDNTWP3D.js → core-34YTH4KN.js} +1 -1
- package/dist/{core-VVHFCKCO.js → core-4ZEVWU43.js} +1 -1
- package/dist/{core-QWG23TDT.js → core-64EHPUVV.js} +1 -1
- package/dist/{core-SQUKC752.js → core-6KO5AEUH.js} +1 -1
- package/dist/{core-Y7Q7FR65.js → core-7WLD237S.js} +1 -1
- package/dist/{core-TBPO7LER.js → core-A2MERE3C.js} +1 -1
- package/dist/{core-PARPIO5L.js → core-AVNB2Q3G.js} +2 -1
- package/dist/{core-DIVRGZGD.js → core-B7KOBTRL.js} +1 -1
- package/dist/{core-HEQ4MJA5.js → core-BOOD7ZUQ.js} +1 -1
- package/dist/{core-QRRWZUTR.js → core-BOU34T23.js} +1 -1
- package/dist/{core-G2TWJHKM.js → core-BQ2I77OF.js} +2 -1
- package/dist/{core-6YHAYDG2.js → core-BSEXRZD6.js} +1 -1
- package/dist/{core-DSI2ZK5C.js → core-CXEEM26F.js} +1 -1
- package/dist/{core-YMX3VETP.js → core-EHMPBG6Q.js} +1 -1
- package/dist/{core-B3AVFEWH.js → core-FXC4TB2K.js} +1 -1
- package/dist/{core-PJHQY3CR.js → core-HMS72VO6.js} +1 -1
- package/dist/{core-LZF7CC2E.js → core-I2GPMB2B.js} +1 -1
- package/dist/{core-PL2T5XOC.js → core-IQC6H4A7.js} +1 -1
- package/dist/{core-HKKPL444.js → core-IYEFTP6C.js} +1 -1
- package/dist/{core-HWDAFGAI.js → core-J2QTOU4D.js} +1 -1
- package/dist/{core-FS3AFDBX.js → core-JJLIPTEW.js} +1 -1
- package/dist/{core-I23MMHHJ.js → core-LCP44UYI.js} +1 -2
- package/dist/{core-Y74GS6HN.js → core-MBNVENCZ.js} +1 -1
- package/dist/{core-VZT7F5AI.js → core-MVIK7FAJ.js} +2 -1
- package/dist/{core-FKW6RSGU.js → core-N4OKPNXQ.js} +1 -1
- package/dist/{core-7K35DCB7.js → core-Q4IILTGO.js} +1 -1
- package/dist/{core-WXPK24YD.js → core-QCPDOQEJ.js} +2 -1
- package/dist/{core-7UMZLBSB.js → core-RVTF336C.js} +1 -1
- package/dist/{core-JWYT46N3.js → core-VGMMKEU4.js} +1 -1
- package/dist/{core-PVD4MX3R.js → core-VUVJOMUC.js} +1 -1
- package/dist/{core-3TLA5IU3.js → core-VWISBHXE.js} +1 -1
- package/dist/{core-LCK3P3DS.js → core-W3UBWZR3.js} +1 -1
- package/dist/{core-XYTCGP3I.js → core-XYQRB5WF.js} +1 -1
- package/dist/{core-SVIYWQVR.js → core-Y6DJHIYT.js} +1 -1
- package/dist/{core-NRNTVPSJ.js → core-YHWVJULU.js} +1 -1
- package/dist/{core-RHYZULNG.js → core-YJXOVNIE.js} +1 -1
- package/dist/{dataTable-HTQMPQB6.js → dataTable-3ZK3ZEZP.js} +3 -2
- package/dist/{engine-RHDMQS7T.js → engine-FSWLRWZR.js} +19 -17
- package/dist/fixtures.js +1 -1
- package/dist/index.js +14 -13
- package/dist/{main-7SMEJF5Q.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-YBW6OQUZ.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-YRLZRQ2F.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-FYY72W63.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-PWS6G27I.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 +12 -6
- 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-RYFRYLU6.js +0 -89
- package/dist/chunk-VAR3DPXR.js +0 -125
- 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
|
@@ -6,47 +6,47 @@ import {
|
|
|
6
6
|
} from "./chunk-QPWRHDLZ.js";
|
|
7
7
|
import {
|
|
8
8
|
warnMissingValue
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5QMM354E.js";
|
|
10
10
|
import {
|
|
11
11
|
asColumnHeads,
|
|
12
12
|
columnHeadFont,
|
|
13
13
|
fitHead,
|
|
14
14
|
headRequest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ICJUN47O.js";
|
|
16
16
|
import {
|
|
17
17
|
runAnnotatePass
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QDFX2KAP.js";
|
|
19
19
|
import {
|
|
20
20
|
rowLabelBand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MTOBNHAU.js";
|
|
22
22
|
import {
|
|
23
23
|
fittedLabel,
|
|
24
24
|
gutterBudget,
|
|
25
25
|
stepDownFont
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
27
27
|
import {
|
|
28
28
|
breakUnsupported
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AIPOSNVG.js";
|
|
30
30
|
import {
|
|
31
31
|
chartString
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DITI57ZB.js";
|
|
33
33
|
import {
|
|
34
34
|
cardFrameTheme,
|
|
35
35
|
cardSize
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LM4GVVPM.js";
|
|
37
37
|
import {
|
|
38
38
|
categoryTargetFields,
|
|
39
39
|
spliceAnnotationNodes
|
|
40
40
|
} from "./chunk-CDZHNLO6.js";
|
|
41
41
|
import {
|
|
42
42
|
BAND_PAD
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-R4MVXUAG.js";
|
|
44
44
|
import {
|
|
45
45
|
labelOn
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-77L6QGIG.js";
|
|
47
47
|
import {
|
|
48
48
|
structureCount
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
50
50
|
import {
|
|
51
51
|
alignedLeft,
|
|
52
52
|
alignedRight,
|
|
@@ -77,8 +77,9 @@ import {
|
|
|
77
77
|
rowSizing,
|
|
78
78
|
shownTickStep,
|
|
79
79
|
straightBreakGlyph,
|
|
80
|
+
tickFormatter,
|
|
80
81
|
valueAxisTitleRequest
|
|
81
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-YM4MVABU.js";
|
|
82
83
|
import {
|
|
83
84
|
PRIORITY,
|
|
84
85
|
authoredFootnoteCount,
|
|
@@ -91,23 +92,21 @@ import {
|
|
|
91
92
|
plotHeightAfter,
|
|
92
93
|
solveFrame,
|
|
93
94
|
solveLabels
|
|
94
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-AUSZDYGE.js";
|
|
95
96
|
import {
|
|
96
97
|
emptyIdRecord
|
|
97
98
|
} from "./chunk-LINZPU5D.js";
|
|
98
99
|
import {
|
|
99
|
-
|
|
100
|
+
defaultSetSpec,
|
|
101
|
+
engineNumberSpec,
|
|
100
102
|
exampleSpec,
|
|
101
103
|
formatWithSpec,
|
|
102
104
|
parseFormatExample,
|
|
103
105
|
roundedNumber
|
|
104
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-3JG764MI.js";
|
|
105
107
|
import {
|
|
106
|
-
AUTO_MAX_DECIMALS,
|
|
107
|
-
autoDecimals,
|
|
108
|
-
formatAutomaticNumber,
|
|
109
108
|
formatAutomaticPercent
|
|
110
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-FYFXOLWI.js";
|
|
111
110
|
import {
|
|
112
111
|
cellMeta,
|
|
113
112
|
cellValue,
|
|
@@ -134,7 +133,7 @@ import {
|
|
|
134
133
|
strokeToken,
|
|
135
134
|
tableHeadFloorPx,
|
|
136
135
|
textScaleOf
|
|
137
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-XAH4EWJT.js";
|
|
138
137
|
import {
|
|
139
138
|
contrastRatio
|
|
140
139
|
} from "./chunk-BQBD6Q5J.js";
|
|
@@ -349,6 +348,14 @@ function layoutTargetScale(input) {
|
|
|
349
348
|
candidates: [{ slot: kind === "category" ? "left" : "rowEnd", rect, penalty: 0 }],
|
|
350
349
|
...extra
|
|
351
350
|
});
|
|
351
|
+
}, numberShows = (column, row, value) => input.columnShows && input.numberText ? input.columnShows(column, input.numberText(row, value)) : void 0, markShows = (row, index) => {
|
|
352
|
+
if (!input.columnShows) return {};
|
|
353
|
+
let share = shares[index], delta = input.deltaVsTarget[row.id];
|
|
354
|
+
return {
|
|
355
|
+
...row.value === null ? {} : numberShows("actual", row, row.value),
|
|
356
|
+
...share === void 0 ? {} : input.columnShows("share", shareText(share)),
|
|
357
|
+
...delta === void 0 ? {} : input.columnShows("delta", input.deltaBody(row, delta))
|
|
358
|
+
};
|
|
352
359
|
}, bandPaints = targetBands(directions, target, options).map((band) => band.paint);
|
|
353
360
|
rows.forEach((row, index) => {
|
|
354
361
|
let top = rowsTop + rowTops[index], barCenter = bandCenterAt(index), valueCenter = stacked ? top + stackValueOffset + line1H / 2 : barCenter, owner = { categoryId: row.id }, share = shares[index], fill = measurePaint(row), fillCss = paintColor(theme, fill), backing = bandPaints.reduce((nearest, paint) => {
|
|
@@ -360,13 +367,13 @@ function layoutTargetScale(input) {
|
|
|
360
367
|
separation: { fill, backing: { token: "background" }, alternateBackings: bandPaints }
|
|
361
368
|
}, barNodeId;
|
|
362
369
|
if (share !== void 0 && share > 0) {
|
|
363
|
-
let y = barCenter - barH / 2, display = { value: valueTexts[index] ?? input.valueText(row) ?? "" };
|
|
370
|
+
let y = barCenter - barH / 2, shows = markShows(row, index), display = { value: valueTexts[index] ?? input.valueText(row) ?? "", shows };
|
|
364
371
|
if (barNodeId = `bar:${row.id}`, share <= hi) {
|
|
365
372
|
let rect = { x: x(0), y, w: Math.max(0.5, x(share) - x(0)), h: barH };
|
|
366
|
-
nodes.push({ t: "rect", id: barNodeId, rect, ...barStyle, owner, part: "bar",
|
|
373
|
+
nodes.push({ t: "rect", id: barNodeId, rect, ...barStyle, owner, part: "bar", display: hidden("actual") ? { shows } : display }), occupied.claim(rect, "mark", owner);
|
|
367
374
|
} else {
|
|
368
375
|
let end = x(hi), cut2 = end - OVERFLOW_BREAK_INSET, rect = { x: x(0), y, w: Math.max(0.5, cut2 - 2 - x(0)), h: barH }, tail = { x: cut2 + 2, y, w: end - cut2 - 2, h: barH };
|
|
369
|
-
nodes.push({ t: "rect", id: barNodeId, rect, ...barStyle, owner, part: "bar",
|
|
376
|
+
nodes.push({ t: "rect", id: barNodeId, rect, ...barStyle, owner, part: "bar", display: hidden("actual") ? { shows } : display }), nodes.push({ t: "rect", id: `${barNodeId}:beyond`, rect: tail, ...barStyle, owner, part: "barBeyondBreak" });
|
|
370
377
|
let glyph = straightBreakGlyph(theme, { x: cut2, y: barCenter }, `${barNodeId}:break`, owner, { token: "axis" }, "barBreak");
|
|
371
378
|
nodes.push(...glyph.nodes), occupied.claim(rect, "mark", owner), occupied.claim(tail, "mark", owner), occupied.claim(glyph.rect, "axis", owner, "barBreak");
|
|
372
379
|
}
|
|
@@ -388,7 +395,7 @@ function layoutTargetScale(input) {
|
|
|
388
395
|
{ x: alignedLeft(plot0.x, leftW, name.w, labelAlign), y: top, w: name.w, h: name.h },
|
|
389
396
|
{ ...fittedLabel(name, nameFont), priority: PRIORITY.endpoint + (highlights.has(row.id) ? PRIORITY.highlightBonus : 0) }
|
|
390
397
|
);
|
|
391
|
-
let note = (stacked ? stackNotes : sideNotes)[index];
|
|
398
|
+
let note = (stacked ? stackNotes : sideNotes)[index], targetShows = row.target === null || "title" in note && note.title !== void 0 ? void 0 : numberShows("target", row, row.target);
|
|
392
399
|
request(
|
|
393
400
|
`target:${row.id}`,
|
|
394
401
|
"annotation",
|
|
@@ -396,19 +403,20 @@ function layoutTargetScale(input) {
|
|
|
396
403
|
note.text,
|
|
397
404
|
noteFont,
|
|
398
405
|
{ x: alignedLeft(plot0.x, leftW, note.w, labelAlign), y: noteTop, w: note.w, h: note.h },
|
|
399
|
-
{ ...fittedLabel(note, noteFont), role: "note" }
|
|
406
|
+
{ ...fittedLabel(note, noteFont), role: "note", ...targetShows ? { shows: targetShows } : {} }
|
|
400
407
|
), inks.set(`target:${row.id}`, { token: "inkMuted" });
|
|
401
408
|
}
|
|
402
409
|
let valueText = valueTexts[index];
|
|
403
410
|
if (valueText) {
|
|
404
|
-
let size1 = measure(valueText, valueFont), left = stacked ? plot0.x + plot0.w - (shareW ? shareW + VALUE_GAP : 0) - size1.width : cellX("actual", size1.width);
|
|
411
|
+
let size1 = measure(valueText, valueFont), left = stacked ? plot0.x + plot0.w - (shareW ? shareW + VALUE_GAP : 0) - size1.width : cellX("actual", size1.width), label = row.meta?.label, valueShows = row.value === null || typeof label == "string" && !label.includes("${value}") ? void 0 : numberShows("actual", row, row.value);
|
|
405
412
|
request(
|
|
406
413
|
`point:${row.id}`,
|
|
407
414
|
"point",
|
|
408
415
|
owner,
|
|
409
416
|
valueText,
|
|
410
417
|
valueFont,
|
|
411
|
-
{ x: left, y: valueCenter - size1.height / 2, w: size1.width, h: size1.height }
|
|
418
|
+
{ x: left, y: valueCenter - size1.height / 2, w: size1.width, h: size1.height },
|
|
419
|
+
valueShows ? { shows: valueShows } : {}
|
|
412
420
|
);
|
|
413
421
|
}
|
|
414
422
|
let shareLabel = shareTexts[index];
|
|
@@ -421,7 +429,7 @@ function layoutTargetScale(input) {
|
|
|
421
429
|
shareLabel,
|
|
422
430
|
shareFont,
|
|
423
431
|
{ x: stacked ? plot0.x + plot0.w - size2.width : cellX("share", size2.width), y: valueCenter - size2.height / 2, w: size2.width, h: size2.height },
|
|
424
|
-
{ role: "value" }
|
|
432
|
+
{ role: "value", ...input.columnShows ? { shows: input.columnShows("share", shareLabel) } : {} }
|
|
425
433
|
), inks.set(`share:${row.id}`, { token: "ink" });
|
|
426
434
|
}
|
|
427
435
|
let delta = deltas[index], deltaLabel = stacked ? deltaTexts[index] : deltaBodies[index];
|
|
@@ -434,7 +442,11 @@ function layoutTargetScale(input) {
|
|
|
434
442
|
deltaLabel,
|
|
435
443
|
deltaFont,
|
|
436
444
|
{ x: left, y, w: size3.width, h: size3.height },
|
|
437
|
-
{
|
|
445
|
+
{
|
|
446
|
+
role: composedTextRole(deltaLabel, "note"),
|
|
447
|
+
priority: PRIORITY.extreme,
|
|
448
|
+
...input.columnShows ? { shows: input.columnShows("delta", deltaBodies[index]) } : {}
|
|
449
|
+
}
|
|
438
450
|
), inks.set(labelId, { token: tone === "neutral" ? "ink" : tone }), placedAnnotations.push({
|
|
439
451
|
id: `delta-target:${row.id}`,
|
|
440
452
|
kind: "delta",
|
|
@@ -527,6 +539,15 @@ function layoutTargetScale(input) {
|
|
|
527
539
|
};
|
|
528
540
|
}
|
|
529
541
|
|
|
542
|
+
// src/core/charts/bullet/shown.ts
|
|
543
|
+
function bulletColumnShows(options, anyValue, anyTarget) {
|
|
544
|
+
let pointOn = labelOn(options, "point"), noteOn = labelOn(options, "annotation"), drawn = options.sharedScale === "percentOfTarget" ? [...pointOn ? ["actual", "share"] : [], ...noteOn ? ["delta"] : []] : [...pointOn && anyValue ? ["actual"] : [], ...noteOn && anyTarget ? ["target", "gap"] : []], removed = (id) => drawn.includes(id) && options.columnVisibility?.[id] === !1, leads = removed("actual") ? ["target", "gap", "share", "delta"].find((id) => drawn.includes(id) && !removed(id)) ?? "actual" : "actual";
|
|
545
|
+
return (column, text) => ({
|
|
546
|
+
...column === leads ? { value: text } : {},
|
|
547
|
+
...column === "target" ? { "field:target": text } : column === "gap" || column === "delta" ? { "cmp0.delta": text, [`field:${column}`]: text } : column === "share" ? { "field:share": text } : {}
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
|
|
530
551
|
// src/core/charts/bullet/layout.ts
|
|
531
552
|
var LABEL_GAP = 5, VALUE_COL_GAP = 6, CAT_BAND_GAP = 10, CAPSULE_GAP = 8, COLUMNS_GAP = 18, COLUMN_GAP2 = 16, LINE_GAP2 = 1, ROW_BAND = 30, ROW_BAND_MAX = 56, ROW_AIR = 16, ROW_PITCH_MAX = 240, EDGE_TICK = 3, BAR_FRACTION = 1 / 3, NAME_WEIGHT = 600, BANDS_UNEXPLAINED = "qualitative bands carry meaning the reader cannot decode \u2014 label the bands or explain them in a footnote";
|
|
532
553
|
function bandAmount(row, index, count) {
|
|
@@ -753,25 +774,14 @@ function layoutBullet(data, options = {}) {
|
|
|
753
774
|
message: "valueAxis is ignored while bullet rows are normalized to their own scales \u2014 one absolute axis cannot describe differently scaled rows",
|
|
754
775
|
suggest: "set sharedScale: true to keep one absolute axis across rows"
|
|
755
776
|
});
|
|
756
|
-
let chartSpec = options.format ? exampleSpec(options.format, options.locale?.language, void 0, rows.flatMap((row) => row.isPct ? [] : [row.value, row.target])) : void 0, automaticSpec = (row) => {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
suffix: row.isPct ? "%" : ""
|
|
761
|
-
};
|
|
762
|
-
if (row.value === null || row.target === null) return spec;
|
|
763
|
-
let gap = cleanDiff(row.value, row.target);
|
|
764
|
-
for (let extra = 0; extra < 2 && spec.decimals < AUTO_MAX_DECIMALS; extra++) {
|
|
765
|
-
let shown2 = cleanDiff(roundedNumber(row.value, spec), roundedNumber(row.target, spec));
|
|
766
|
-
if ((shown2 !== 0 || gap === 0) && Math.abs(shown2 - gap) <= 0.5 * 10 ** -spec.decimals * (1 + 1e-9)) break;
|
|
767
|
-
spec.decimals++;
|
|
768
|
-
}
|
|
769
|
-
return spec;
|
|
770
|
-
}, rowSpecs = new Map(rows.map((row) => [row, row.meta?.format ? exampleSpec(row.meta.format, options.locale?.language, void 0, [row.value, row.target]) : !row.isPct && chartSpec ? chartSpec : automaticSpec(row)])), rowFmt = (row) => (v) => formatWithSpec(v, rowSpecs.get(row)), shownDelta = (row, d) => row.value === null || row.target === null ? d : cleanDiff(roundedNumber(row.value, rowSpecs.get(row)), roundedNumber(row.target, rowSpecs.get(row))), valueTextOf = (row) => {
|
|
777
|
+
let chartSpec = options.format ? exampleSpec(options.format, options.locale?.language, void 0, rows.flatMap((row) => row.isPct ? [] : [row.value, row.target])) : void 0, automaticSpec = (row) => ({
|
|
778
|
+
...defaultSetSpec([row.value, row.target], options.locale?.language, options.unit, row.isPct ? { kind: "percent" } : {}),
|
|
779
|
+
suffix: row.isPct ? "%" : ""
|
|
780
|
+
}), axisRuleSpec = chartSpec ? void 0 : defaultSetSpec(rows.flatMap((row) => row.isPct ? [] : [row.value, row.target]), options.locale?.language, options.unit), rowSpecs = new Map(rows.map((row) => [row, row.meta?.format ? exampleSpec(row.meta.format, options.locale?.language, void 0, [row.value, row.target]) : !row.isPct && chartSpec ? chartSpec : automaticSpec(row)])), rowFmt = (row) => (v) => formatWithSpec(v, rowSpecs.get(row)), shownDelta = (row, d) => row.value === null || row.target === null ? d : cleanDiff(roundedNumber(row.value, rowSpecs.get(row)), roundedNumber(row.target, rowSpecs.get(row))), valueTextOf = (row) => {
|
|
771
781
|
if (row.value === null || row.meta?.label === !1) return null;
|
|
772
782
|
let base = rowFmt(row)(row.value);
|
|
773
783
|
return typeof row.meta?.label == "string" ? row.meta.label.replace(/\$\{value\}/g, base) : base;
|
|
774
|
-
}, deltaBody = (row, d) => {
|
|
784
|
+
}, columnShows = bulletColumnShows(options, rows.some((row) => row.value !== null), rows.some((row) => row.target !== null)), valueShows = (row) => row.value === null || row.meta?.label === !1 || typeof row.meta?.label == "string" && !row.meta.label.includes("${value}") ? void 0 : columnShows("actual", rowFmt(row)(row.value)), deltaBody = (row, d) => {
|
|
775
785
|
let spec = rowSpecs.get(row), shown2 = shownDelta(row, d), gapSpec = { ...spec, signed: !0, ...row.isPct ? { prefix: "", suffix: "pp" } : {} }, fixedSpec = { ...gapSpec, automatic: !1, nonzero: void 0 };
|
|
776
786
|
return formatWithSpec(shown2, shown2 !== 0 && roundedNumber(shown2, fixedSpec) === 0 ? gapSpec : fixedSpec);
|
|
777
787
|
}, deltaText = (row, d) => `${deltaBody(row, d)} ${shownDelta(row, d) === 0 ? chartString(options, "gapOn", { v1: targetWord(options) }) : `vs ${targetWord(options)}`}`, deltaTone = (row, d) => row.direction === "neutral" ? "neutral" : row.bands.some((band2) => band2.tone) ? (row.value === null ? row.bands.at(-1) : bandFor(row.value, row.bands)).tone ?? "neutral" : (d = shownDelta(row, d), d === 0 || d > 0 == (row.direction === "higherIsBetter") ? "good" : "bad"), deltaVsTarget = emptyIdRecord();
|
|
@@ -793,7 +803,8 @@ function layoutBullet(data, options = {}) {
|
|
|
793
803
|
deltaText,
|
|
794
804
|
deltaBody,
|
|
795
805
|
deltaTone,
|
|
796
|
-
deltaVsTarget
|
|
806
|
+
deltaVsTarget,
|
|
807
|
+
columnShows
|
|
797
808
|
});
|
|
798
809
|
let keyMode = options.bandKey ?? "auto", rowKeyOff = options[ROW_KEY_OFF] === !0, bandedRows = rows.filter((row) => row.bands.length > 0), namesEveryBand = bandedRows.length > 0 && bandedRows.every((row) => row.bands.every((band2) => band2.label !== void 0)), rowWanted = !rowKeyOff && !compact && (options.labels === !1 || labelOn2("annotation")) && namesEveryBand && (keyMode === "row" || keyMode === "auto" && rows.length <= 4 && options.bandFraction === void 0);
|
|
799
810
|
rowWanted && options.bandFraction !== void 0 && warnings.push({
|
|
@@ -982,11 +993,12 @@ function layoutBullet(data, options = {}) {
|
|
|
982
993
|
{
|
|
983
994
|
scale: axisScale,
|
|
984
995
|
ticks: stepTicks,
|
|
985
|
-
...
|
|
996
|
+
...axisRuleSpec ? { formatSpec: axisRuleSpec } : stepTicks && chartSpec ? { formatSpec: chartSpec } : {},
|
|
986
997
|
plot,
|
|
987
998
|
orient: "x",
|
|
988
999
|
gridlines: options.valueAxis.gridlines ?? !1,
|
|
989
|
-
|
|
1000
|
+
// A tick is the engine's number: it keeps the example's earlier rule.
|
|
1001
|
+
format: (v) => formatWithSpec(v, chartSpec ? engineNumberSpec(chartSpec) : axisRuleSpec),
|
|
990
1002
|
theme,
|
|
991
1003
|
measure,
|
|
992
1004
|
canvasWidth: size.width
|
|
@@ -1071,8 +1083,8 @@ function layoutBullet(data, options = {}) {
|
|
|
1071
1083
|
}
|
|
1072
1084
|
prev = bandSpec.to;
|
|
1073
1085
|
}), edgeTicks && row.bands.length > 0) {
|
|
1074
|
-
let
|
|
1075
|
-
let text =
|
|
1086
|
+
let edgeValues = [0, ...row.bands.map((bandSpec) => bandSpec.to)], edgeFmt = !row.meta?.format && (row.isPct || !chartSpec) ? tickFormatter(rowSpecs.get(row), edgeValues) : rowFmt(row), edges = edgeValues.map((value) => {
|
|
1087
|
+
let text = edgeFmt(value);
|
|
1076
1088
|
return { value, text, x: x(value), w: measure(text, noteFont).width };
|
|
1077
1089
|
}), clear = (a, b) => b.x - b.w / 2 >= a.x + a.w / 2 + 4, last = edges.at(-1), kept = [edges[0]];
|
|
1078
1090
|
for (let edge of edges.slice(1, -1)) clear(kept.at(-1), edge) && clear(edge, last) && kept.push(edge);
|
|
@@ -1119,16 +1131,21 @@ function layoutBullet(data, options = {}) {
|
|
|
1119
1131
|
...measureStyle(theme, barPaint(row), row.bands.flatMap((bandSpec, bandIndex) => (bandIndex === 0 ? 0 : row.bands[bandIndex - 1].to) < Math.max(0, row.value) && bandSpec.to > Math.min(0, row.value) || row.value === 0 && bandIndex === 0 ? [bandPaint(row, bandIndex)] : [])),
|
|
1120
1132
|
owner,
|
|
1121
1133
|
part: "bar",
|
|
1122
|
-
|
|
1134
|
+
// The value, and the gap where the row has one: the texts their labels print or would print.
|
|
1135
|
+
display: { ...shown("actual") ? { value: rowFmt(row)(row.value) } : {}, shows: {
|
|
1136
|
+
...columnShows("actual", rowFmt(row)(row.value)),
|
|
1137
|
+
...deltaVsTarget[row.id] === void 0 ? {} : columnShows("gap", deltaBody(row, deltaVsTarget[row.id]))
|
|
1138
|
+
} }
|
|
1123
1139
|
}), occupied.claim(rect, "mark", owner), anchorByRow.set(row.id, { x: vx, y: rowCenter, value: row.value, date: row.date, label: row.label, owner }), pointOn) {
|
|
1124
1140
|
let text = valueTextOf(row);
|
|
1125
1141
|
if (text) {
|
|
1126
|
-
let tsize = measure(text, valueFont);
|
|
1142
|
+
let tsize = measure(text, valueFont), shows = valueShows(row);
|
|
1127
1143
|
labelRequests.push({
|
|
1128
1144
|
id: `point:${row.id}`,
|
|
1129
1145
|
kind: "point",
|
|
1130
1146
|
owner,
|
|
1131
1147
|
text,
|
|
1148
|
+
...shows ? { shows } : {},
|
|
1132
1149
|
lines: [text],
|
|
1133
1150
|
font: valueFont,
|
|
1134
1151
|
priority: row.meta?.priority ?? PRIORITY.endpoint + (highlights.has(row.id) ? PRIORITY.highlightBonus : 0),
|
|
@@ -1151,7 +1168,7 @@ function layoutBullet(data, options = {}) {
|
|
|
1151
1168
|
width: targetStroke,
|
|
1152
1169
|
owner,
|
|
1153
1170
|
part: "target",
|
|
1154
|
-
...shown("target") ? {
|
|
1171
|
+
display: { ...shown("target") ? { value: rowFmt(row)(row.target) } : {}, shows: columnShows("target", rowFmt(row)(row.target)) }
|
|
1155
1172
|
}), occupied.claim({ x: tx - Math.max(1.5, targetStroke / 2 + 0.5), y: rowY + bw * 0.08, w: Math.max(3, targetStroke + 1), h: bw * 0.84 }, "mark", owner), !(cols && cp.colTargets[ri] === null)) {
|
|
1156
1173
|
if (cols) {
|
|
1157
1174
|
let text = cp.colTargets[ri], tsize = measure(text, labelFont), id = `target-value:${row.id}`;
|
|
@@ -1160,6 +1177,7 @@ function layoutBullet(data, options = {}) {
|
|
|
1160
1177
|
kind: "annotation",
|
|
1161
1178
|
owner,
|
|
1162
1179
|
text,
|
|
1180
|
+
shows: columnShows("target", text),
|
|
1163
1181
|
lines: [text],
|
|
1164
1182
|
font: labelFont,
|
|
1165
1183
|
role: "value",
|
|
@@ -1174,6 +1192,7 @@ function layoutBullet(data, options = {}) {
|
|
|
1174
1192
|
kind: "annotation",
|
|
1175
1193
|
owner,
|
|
1176
1194
|
text,
|
|
1195
|
+
shows: columnShows("target", rowFmt(row)(row.target)),
|
|
1177
1196
|
lines: [text],
|
|
1178
1197
|
font: targetFont,
|
|
1179
1198
|
role: "value",
|
|
@@ -1198,6 +1217,7 @@ function layoutBullet(data, options = {}) {
|
|
|
1198
1217
|
role: composedTextRole(capsuleText, "note"),
|
|
1199
1218
|
owner,
|
|
1200
1219
|
text: capsuleText,
|
|
1220
|
+
shows: columnShows("gap", capsuleText),
|
|
1201
1221
|
lines: [capsuleText],
|
|
1202
1222
|
font: valueBaseFont,
|
|
1203
1223
|
priority: PRIORITY.extreme,
|
|
@@ -1228,6 +1248,8 @@ function layoutBullet(data, options = {}) {
|
|
|
1228
1248
|
role: composedTextRole(capsuleText, "note"),
|
|
1229
1249
|
owner,
|
|
1230
1250
|
text: capsuleText,
|
|
1251
|
+
// '+7 vs target' prints the gap's own text first.
|
|
1252
|
+
shows: columnShows("gap", deltaBody(row, d)),
|
|
1231
1253
|
lines: [capsuleText],
|
|
1232
1254
|
font: capsuleFont,
|
|
1233
1255
|
priority: PRIORITY.extreme,
|
|
@@ -1351,6 +1373,7 @@ function layoutBullet(data, options = {}) {
|
|
|
1351
1373
|
measure,
|
|
1352
1374
|
format: options.format,
|
|
1353
1375
|
locale: options.locale?.language,
|
|
1376
|
+
levelSpec: axisRuleSpec,
|
|
1354
1377
|
strings: options.strings,
|
|
1355
1378
|
valueLinePercentLevels: options.unit === "%" || rows.some((row) => row.value !== null) && rows.every((row) => row.value === null || row.isPct),
|
|
1356
1379
|
solveCtx,
|
|
@@ -1509,6 +1532,8 @@ function layoutBulletOnTargetScale(data, options, ctx) {
|
|
|
1509
1532
|
deltaBody: (row, d) => ctx.deltaBody(row, d),
|
|
1510
1533
|
deltaTone: (row, d) => ctx.deltaTone(row, d),
|
|
1511
1534
|
deltaVsTarget: ctx.deltaVsTarget,
|
|
1535
|
+
columnShows: ctx.columnShows,
|
|
1536
|
+
numberText: (row, value) => rowFmt(row)(value),
|
|
1512
1537
|
grow: (chromeH, rowsH) => {
|
|
1513
1538
|
let height = rowDrivenHeight({ options, width: size.width, height: size.height, chromeH, rowsH });
|
|
1514
1539
|
return height === void 0 ? void 0 : layoutBullet(data, { ...options, size: { width: size.width, height } });
|
|
@@ -5,14 +5,16 @@ import {
|
|
|
5
5
|
interactionRecords,
|
|
6
6
|
interactionValueText,
|
|
7
7
|
rawUnit
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DEJ27Y2P.js";
|
|
9
9
|
import {
|
|
10
10
|
isFullGeometry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NPDF7HEH.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
withChartFormats
|
|
14
|
+
} from "./chunk-3JG764MI.js";
|
|
15
|
+
import {
|
|
16
|
+
chartStrings
|
|
17
|
+
} from "./chunk-FYFXOLWI.js";
|
|
16
18
|
|
|
17
19
|
// src/react/hover/dataTable.tsx
|
|
18
20
|
import { useMemo } from "react";
|
|
@@ -169,7 +171,7 @@ function AccessibleTable({ table, mode }) {
|
|
|
169
171
|
// src/react/hover/dataTable.tsx
|
|
170
172
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
171
173
|
function DataTable({ request, geometry, prepared, mode }) {
|
|
172
|
-
let table = useMemo(() =>
|
|
174
|
+
let table = useMemo(() => withChartFormats(request.options, () => {
|
|
173
175
|
let records = isFullGeometry(geometry) ? interactionRecords({ request, geometry, scope: request.scope, claims: [] }) : prepared?.records ?? [];
|
|
174
176
|
return accessibleDataTable(records, { title: geometry.a11y.title, locale: request.locale?.language });
|
|
175
177
|
}), [request, geometry, prepared]);
|
|
@@ -5,45 +5,45 @@ import {
|
|
|
5
5
|
columnHeadText,
|
|
6
6
|
columnWidth,
|
|
7
7
|
differenceFormatter
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UV77Y7QK.js";
|
|
9
9
|
import {
|
|
10
10
|
unitConflict,
|
|
11
11
|
unitConflictRefusal
|
|
12
12
|
} from "./chunk-DZ3S4RPI.js";
|
|
13
13
|
import {
|
|
14
14
|
positionBarLabel
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7UUSHA7H.js";
|
|
16
16
|
import {
|
|
17
17
|
marginBracketLayout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3ZR7ZE64.js";
|
|
19
19
|
import {
|
|
20
20
|
warnMissingValue
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5QMM354E.js";
|
|
22
22
|
import {
|
|
23
23
|
HEAD_PREFIX,
|
|
24
24
|
asColumnHeads,
|
|
25
25
|
fitHead,
|
|
26
26
|
headRequest
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ICJUN47O.js";
|
|
28
28
|
import {
|
|
29
29
|
percentLevels,
|
|
30
30
|
runAnnotatePass
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QDFX2KAP.js";
|
|
32
32
|
import {
|
|
33
33
|
GUTTER_MAX_SHARE,
|
|
34
34
|
fitColumn,
|
|
35
35
|
fittedLabel,
|
|
36
36
|
stepDownFont
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
38
38
|
import {
|
|
39
39
|
restDetailsWarning,
|
|
40
40
|
restLabel,
|
|
41
41
|
restSum,
|
|
42
42
|
topNCut
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-USATDW6O.js";
|
|
44
44
|
import {
|
|
45
45
|
structureCount
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
47
47
|
import {
|
|
48
48
|
alignedLeft,
|
|
49
49
|
alignedRight,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
rowDrivenHeight,
|
|
60
60
|
rowSizing,
|
|
61
61
|
sideKeyOff
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-YM4MVABU.js";
|
|
63
63
|
import {
|
|
64
64
|
PRIORITY,
|
|
65
65
|
authoredFootnoteCount,
|
|
@@ -74,26 +74,25 @@ import {
|
|
|
74
74
|
normalizeLegendOption,
|
|
75
75
|
solveFrame,
|
|
76
76
|
solveLabels
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-AUSZDYGE.js";
|
|
78
78
|
import {
|
|
79
79
|
disclosureNote
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-WD5NJHZG.js";
|
|
81
81
|
import {
|
|
82
82
|
annotationRef,
|
|
83
83
|
defaultAnnotationId
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-PPOUKS24.js";
|
|
85
85
|
import {
|
|
86
86
|
emptyIdRecord
|
|
87
87
|
} from "./chunk-LINZPU5D.js";
|
|
88
88
|
import {
|
|
89
89
|
memoFormatterFromExample,
|
|
90
|
-
seriesRasterFormatter
|
|
91
|
-
|
|
92
|
-
} from "./chunk-Z6DUNKFU.js";
|
|
90
|
+
seriesRasterFormatter
|
|
91
|
+
} from "./chunk-3JG764MI.js";
|
|
93
92
|
import {
|
|
94
93
|
chartString,
|
|
95
94
|
chartStrings
|
|
96
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-FYFXOLWI.js";
|
|
97
96
|
import {
|
|
98
97
|
cellMeta,
|
|
99
98
|
cellValue,
|
|
@@ -121,7 +120,7 @@ import {
|
|
|
121
120
|
strokeToken,
|
|
122
121
|
textScaleOf,
|
|
123
122
|
themeForWidth
|
|
124
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-XAH4EWJT.js";
|
|
125
124
|
import {
|
|
126
125
|
MARK_CONTRAST_FLOOR
|
|
127
126
|
} from "./chunk-BQBD6Q5J.js";
|
|
@@ -224,7 +223,7 @@ function layoutButterfly(data, options, comparison) {
|
|
|
224
223
|
field: categorySort !== void 0 ? ["options", "sort", "categories"] : ["options", "sortBy"],
|
|
225
224
|
fix: unitFix
|
|
226
225
|
});
|
|
227
|
-
let aCells = normalizeSeriesValues(sA, categories, data.series.indexOf(sA)), bCells = normalizeSeriesValues(sB, categories, data.series.indexOf(sB)), sideUnit = (series) => (series.unit ?? opts.unit)?.replace(/\s+/g, "") || void 0, ownFormat = (series, cells) => !!series.format || cells.some((cell) => cellMeta(cell)?.format),
|
|
226
|
+
let aCells = normalizeSeriesValues(sA, categories, data.series.indexOf(sA)), bCells = normalizeSeriesValues(sB, categories, data.series.indexOf(sB)), sideUnit = (series) => (series.unit ?? opts.unit)?.replace(/\s+/g, "") || void 0, ownFormat = (series, cells) => !!series.format || cells.some((cell) => cellMeta(cell)?.format), bothSides = sideUnit(sA) === sideUnit(sB) && !ownFormat(sA, aCells) && !ownFormat(sB, bCells) && sharedScale, paneRaster = (cells) => seriesRasterFormatter(opts.format, (bothSides ? [...aCells, ...bCells] : cells).map(cellValue), opts.locale?.language, opts.unit), rasterA = paneRaster(aCells), rasterB = paneRaster(bCells), fmtA = rasterA.forSeries(sA), fmtB = rasterB.forSeries(sB), rows = categories.map((c, i) => ({
|
|
228
227
|
id: c.id,
|
|
229
228
|
label: c.label ?? c.id,
|
|
230
229
|
mark: footnoteSuffix(c.footnote, c.id, { count: authoredFootnoteCount(opts), warnings }),
|
|
@@ -325,7 +324,7 @@ function layoutButterfly(data, options, comparison) {
|
|
|
325
324
|
});
|
|
326
325
|
let redesign = comparison?.rowDriven !== !1, signed = directed && hasNegative, paneFit = redesign || comparison?.paneFit === !0, insideCard = !redesign && paneFit && resolveSize(opts.size).width < 480, floors = redesign ? targetFloorsPx(opts.target ?? DEFAULT_TARGET, textScaleOf(opts)) : void 0, rowType = (font, role) => floors && font.size - 1 >= floors[role] ? { ...font, size: font.size - 1 } : font, labelFont = rowType({ family: theme.type.family, ...theme.type.label }, "label"), strongFont = { ...labelFont, weight: emphasisWeight(theme) }, tickFont = rowType({ family: theme.type.family, ...theme.type.axis }, "axis"), tickBold = { ...tickFont, weight: emphasisWeight(theme) }, roles = colorRolePaints([sA, sB]), paintOf = (s, fallback) => highlights.has(s.id) ? semanticPalettePaint(theme, opts.palette, "focus") : s.fill ? { css: s.fill } : s.colorRole ? roles.get(s.id) : normalizeScenario(s.scenario, `series[${s.id}].scenario`) === "PY" ? semanticPalettePaint(theme, opts.palette, "neutralLight") : fallback(), paintA = paintOf(sA, () => semanticPalettePaint(theme, opts.palette, "neutralMark")), paintB = paintOf(sB, () => opts.palette !== void 0 && theme.color.palettes?.[opts.palette] !== void 0 ? semanticPalettePaint(theme, opts.palette, "focus") : seriesPaint(0)), patternOf = (scen) => scen === "FC" ? "hatch45" : scen === "PL" ? "outline" : void 0, scenA = normalizeScenario(sA.scenario, `series[${sA.id}].scenario`), scenB = normalizeScenario(sB.scenario, `series[${sB.id}].scenario`), labelsOff = (kind) => opts.labels === !1 ? !((kind === "category" || kind === "series") && labelsOffKeepsNames(opts)) : opts.labels?.[kind] === !1, diffText = /* @__PURE__ */ new Map();
|
|
327
326
|
if ((opts.diffColumn ?? sortBy === "diff") && redesign && !conflict && size.width >= COLUMN_MIN_WIDTH) {
|
|
328
|
-
let raster = seriesRasterFormatter(opts.format, [...aCells, ...bCells].map(cellValue), opts.locale?.language, opts.unit,
|
|
327
|
+
let raster = seriesRasterFormatter(opts.format, [...aCells, ...bCells].map(cellValue), opts.locale?.language, opts.unit), differences = rows.flatMap((r) => r.a !== null && r.b !== null ? [r.b - r.a] : []), signed2 = differenceFormatter({ format: opts.format, locale: opts.locale?.language, decimals: raster.spec.decimals, values: [...aCells, ...bCells].flatMap((cell) => cellValue(cell) ?? []), scale: raster.specForSeries(sA), differences });
|
|
329
328
|
for (let r of rows) r.a !== null && r.b !== null && diffText.set(r.id, signed2(r.b, r.a));
|
|
330
329
|
}
|
|
331
330
|
let diffOverride = opts.columnOverrides?.diff, labelOverride = opts.columnOverrides?.label, diffHead = diffText.size === 0 ? void 0 : diffOverride?.label ?? columnHeadText("\u0394", opts.unit?.startsWith("%") === !0 || percentLevels([sA, sB].map((s, k) => ({ vals: (k === 0 ? aCells : bCells).map((cell) => ({ v: cellValue(cell), isPct: isPctCell(cell) })), format: s.format, unit: s.unit })), opts.format, opts.unit)), diffFont = (id) => highlights.has(id) ? strongFont : labelFont, diffNaturalW = diffHead === void 0 ? 0 : columnWidth(measure, [...diffText].map(([id, text]) => ({ text, font: diffFont(id) })), { text: diffHead, font: strongFont }), isPairDelta = (ann) => {
|
|
@@ -414,11 +413,11 @@ function layoutButterfly(data, options, comparison) {
|
|
|
414
413
|
});
|
|
415
414
|
}
|
|
416
415
|
}
|
|
417
|
-
let nameFont = nameStep ?? tickFont, nameBold = { ...nameFont, weight: emphasisWeight(theme) }, nameLineH = lineBox(nameFont), catMaxLines = rowDriven || band.step >= 2 * nameLineH + 4 ? 2 : 1, catFontOf = (r) => highlights.has(r.id) ? nameBold : nameFont, markW = (r) => r.mark ? measure(r.mark, catFontOf(r)).width : 0, paneUnit = (side) => (side === "a" ? sA : sB).unit ?? opts.unit, textOf = (v, meta, side) => {
|
|
416
|
+
let nameFont = nameStep ?? tickFont, nameBold = { ...nameFont, weight: emphasisWeight(theme) }, nameLineH = lineBox(nameFont), catMaxLines = rowDriven || band.step >= 2 * nameLineH + 4 ? 2 : 1, catFontOf = (r) => highlights.has(r.id) ? nameBold : nameFont, markW = (r) => r.mark ? measure(r.mark, catFontOf(r)).width : 0, paneUnit = (side) => (side === "a" ? sA : sB).unit ?? opts.unit, valueText = (v, meta, side) => meta?.format ? byExample(meta.format, paneUnit(side))(v) : (side === "a" ? fmtA : fmtB)(v), textOf = (v, meta, side) => {
|
|
418
417
|
if (v === null) return "";
|
|
419
|
-
let custom = meta?.label, text =
|
|
418
|
+
let custom = meta?.label, text = valueText(v, meta, side);
|
|
420
419
|
return typeof custom == "string" ? custom.replace(/\$\{value\}/g, text) : text;
|
|
421
|
-
}, room = comparison?.bracketRoom ?? { left: 0, right: 0 }, comparisonRun = annotations.some((ann) => ann.kind === "cagr" || ann.kind === "diff") ? 20 : 40, minimumPane = (side, bracketRoom) => comparisonRun + (valuesOff ? 0 : Math.max(0, maxOf(rows.map((r) => {
|
|
420
|
+
}, valueSlot = comparison?.valueSlot ?? "value", room = comparison?.bracketRoom ?? { left: 0, right: 0 }, comparisonRun = annotations.some((ann) => ann.kind === "cagr" || ann.kind === "diff") ? 20 : 40, minimumPane = (side, bracketRoom) => comparisonRun + (valuesOff ? 0 : Math.max(0, maxOf(rows.map((r) => {
|
|
422
421
|
let text = textOf(side === "a" ? r.a : r.b, side === "a" ? r.aMeta : r.bMeta, side);
|
|
423
422
|
return text ? measure(text, labelFont).width + 10 : 0;
|
|
424
423
|
})))) + bracketRoom, panesMinimum = comparisonRun === 20 ? minimumPane("a", room.left) + minimumPane("b", room.right) : 2 * Math.max(minimumPane("a", room.left), minimumPane("b", room.right)), laneCard = insideCard || redesign && size.width < 480, authoredCenter = labelOverride?.width === void 0 ? opts.centerColumnWidth : authoredTrackWidth("label", labelOverride.width, 40, Math.max(40, plot.w - Math.max(80, panesMinimum)), warnings), narrowLane = laneCard && authoredCenter === void 0 && Math.ceil(maxCatLabelW) + 2 * LANE_PAD <= plot.w * 0.35, namePad = narrowLane ? 2 * LANE_PAD : 16, centerW = narrowLane ? Math.ceil(maxCatLabelW) + 2 * LANE_PAD : centerColumnWidth(rows.map((r) => ({ label: `${r.label}${r.mark}`, font: catFontOf(r) })), {
|
|
@@ -581,7 +580,7 @@ function layoutButterfly(data, options, comparison) {
|
|
|
581
580
|
let rowY = band.position(i), rowH = band.bandwidth, cy = rowY + rowH / 2, endpoint = i === 0 || i === rows.length - 1, rowHl = highlights.has(r.id);
|
|
582
581
|
diffText.has(r.id) && labelRequests.push(columnCellRequest({ id: `diff:${r.id}`, owner: { categoryId: r.id }, text: diffText.get(r.id), font: diffFont(r.id), measure, right: alignedRight(diffRight, diffW, measure(diffText.get(r.id), diffFont(r.id)).width, diffOverride?.align ?? "right"), cy }));
|
|
583
582
|
for (let side of ["a", "b"]) {
|
|
584
|
-
let series = side === "a" ? sA : sB, v = side === "a" ? r.a : r.b, meta = side === "a" ? r.aMeta : r.bMeta,
|
|
583
|
+
let series = side === "a" ? sA : sB, v = side === "a" ? r.a : r.b, meta = side === "a" ? r.aMeta : r.bMeta, shownText = v === null ? void 0 : valueText(v, meta, side), len = v === null ? 0 : Math.max(lenOf[side](Math.abs(v)), 0.5), dir = dirOf(side, v), tipX = zeroOf(side) + dir * len, rect = { x: Math.min(zeroOf(side), tipX), y: rowY, w: len, h: rowH }, nodeId = `mark:${series.id}:${r.id}`, basePaint = side === "a" ? paintA : paintB, paint = v !== null && v < 0 && !signed ? negativePaint(barPaint(r.rest, meta, basePaint)) : barPaint(r.rest, meta, basePaint), scen = normalizeScenario(meta?.scenario, `series[${series.id}].values[${r.id}].scenario`) ?? (side === "a" ? scenA : scenB), sep = othersSeparation(paint, theme);
|
|
585
584
|
if (nodes.push({
|
|
586
585
|
t: "rect",
|
|
587
586
|
id: nodeId,
|
|
@@ -592,9 +591,11 @@ function layoutButterfly(data, options, comparison) {
|
|
|
592
591
|
...isOthersFill(paint) ? { separation: { fill: paint, backing: { token: "background" } } } : {},
|
|
593
592
|
owner: { seriesId: series.id, categoryId: r.id },
|
|
594
593
|
part: "bar",
|
|
595
|
-
...
|
|
594
|
+
...shownText === void 0 ? {} : {
|
|
596
595
|
display: {
|
|
597
|
-
value:
|
|
596
|
+
value: shownText,
|
|
597
|
+
// The text its value label would print where none is drawn.
|
|
598
|
+
shows: { [valueSlot]: shownText }
|
|
598
599
|
}
|
|
599
600
|
}
|
|
600
601
|
}), occupied.claim(rect, "mark", { seriesId: series.id, categoryId: r.id }), (side === "a" ? marks.left : marks.right).push({ id: r.id, rect, nodeId }), v === null) {
|
|
@@ -622,7 +623,7 @@ function layoutButterfly(data, options, comparison) {
|
|
|
622
623
|
}
|
|
623
624
|
continue;
|
|
624
625
|
}
|
|
625
|
-
let text = textOf(v, meta, side), tsize = measure(text, valueFont);
|
|
626
|
+
let text = textOf(v, meta, side), shows = meta?.label === !1 || typeof meta?.label == "string" && !meta.label.includes("${value}") ? void 0 : { [valueSlot]: shownText }, tsize = measure(text, valueFont);
|
|
626
627
|
tightRows && (tsize.height = inkBox(valueFont));
|
|
627
628
|
let outsideGap = paneFit ? VALUE_GAP : 6, outside = {
|
|
628
629
|
slot: "outsideEnd",
|
|
@@ -652,6 +653,7 @@ function layoutButterfly(data, options, comparison) {
|
|
|
652
653
|
kind: "point",
|
|
653
654
|
owner: { seriesId: series.id, categoryId: r.id },
|
|
654
655
|
text,
|
|
656
|
+
...shows ? { shows } : {},
|
|
655
657
|
lines: [text],
|
|
656
658
|
font: valueFont,
|
|
657
659
|
priority,
|
|
@@ -837,6 +839,7 @@ function layoutButterfly(data, options, comparison) {
|
|
|
837
839
|
measure,
|
|
838
840
|
format: opts.format,
|
|
839
841
|
locale: opts.locale?.language,
|
|
842
|
+
levelSpec: bothSides ? rasterA.spec : void 0,
|
|
840
843
|
strings: opts.strings,
|
|
841
844
|
differenceFormat: comparison?.differenceFormat,
|
|
842
845
|
solveCtx
|
|
@@ -888,7 +891,7 @@ function layoutButterfly(data, options, comparison) {
|
|
|
888
891
|
let node = nodes.find((n) => n.id === `label:${label.id}`);
|
|
889
892
|
node?.t === "text" && (node.x = label.rect.x + label.rect.w / 2, node.align = "middle");
|
|
890
893
|
}
|
|
891
|
-
let a11yDesc = rows.map((r) => `${r.label}: ${aLabel} ${r.a === null ? "\u2013" :
|
|
894
|
+
let a11yDesc = rows.map((r) => `${r.label}: ${aLabel} ${r.a === null ? "\u2013" : valueText(r.a, r.aMeta, "a")}, ${bLabel} ${r.b === null ? "\u2013" : valueText(r.b, r.bMeta, "b")}`).join("; ");
|
|
892
895
|
return {
|
|
893
896
|
type: "butterfly",
|
|
894
897
|
size,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutTableCard,
|
|
3
3
|
prepareTableCardExecutor
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TMVERETB.js";
|
|
5
5
|
import {
|
|
6
6
|
cellPrinted,
|
|
7
7
|
printsInCell
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4NIIQFDA.js";
|
|
9
9
|
import {
|
|
10
10
|
chartSizing
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YM4MVABU.js";
|
|
12
12
|
import {
|
|
13
13
|
claimId,
|
|
14
14
|
withUnprintedClaims
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AUSZDYGE.js";
|
|
16
16
|
|
|
17
17
|
// src/core/charts/table/core.ts
|
|
18
18
|
function withUnprintedCells(geometry, options = {}) {
|