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
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
stackConnectors,
|
|
13
13
|
totalLabelCandidates,
|
|
14
14
|
withValueLabelDefaults
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GEEHXLFQ.js";
|
|
16
16
|
import {
|
|
17
17
|
REFERENCE_MARKER_R,
|
|
18
18
|
breakAxisScale,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
referenceTickGeometry,
|
|
24
24
|
stepFitsAxisBreak,
|
|
25
25
|
withBandValueNotes
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-REIIGIJG.js";
|
|
27
27
|
import {
|
|
28
28
|
restValueHiding,
|
|
29
29
|
restValuesHidden
|
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
hasLabelPosition,
|
|
39
39
|
positionBarLabel,
|
|
40
40
|
refuseLabelPosition
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-7UUSHA7H.js";
|
|
42
42
|
import {
|
|
43
43
|
rangeMidUndrawn,
|
|
44
44
|
resolveCellRange
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZPQ3VOAE.js";
|
|
46
46
|
import {
|
|
47
47
|
BarTooTall,
|
|
48
48
|
CAGR_INSET_ROOM,
|
|
@@ -59,6 +59,7 @@ import {
|
|
|
59
59
|
NO_NAME_COLUMN,
|
|
60
60
|
OTHERS_ID,
|
|
61
61
|
RIGHT_ROOM,
|
|
62
|
+
SHOWN_SLOT,
|
|
62
63
|
STOP_IF_TOO_TALL,
|
|
63
64
|
TOTAL_COLUMN,
|
|
64
65
|
TOTAL_TRACK,
|
|
@@ -66,12 +67,12 @@ import {
|
|
|
66
67
|
barHalves,
|
|
67
68
|
cagrInset,
|
|
68
69
|
fixedBarRow
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-4PKUS5MG.js";
|
|
70
71
|
import {
|
|
71
72
|
roundingUnavailable,
|
|
72
73
|
shareRoundingNotes,
|
|
73
74
|
sumConsistentShares
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-4YKS2JDE.js";
|
|
75
76
|
import {
|
|
76
77
|
accumulateStack,
|
|
77
78
|
averageMarkerId,
|
|
@@ -96,7 +97,7 @@ import {
|
|
|
96
97
|
warnShareFormatIgnored,
|
|
97
98
|
withoutShareAnnotations,
|
|
98
99
|
withoutShareMean
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-7QUWM5W6.js";
|
|
100
101
|
import {
|
|
101
102
|
INSIDE_MIN_H,
|
|
102
103
|
acrossValueLines,
|
|
@@ -111,40 +112,40 @@ import {
|
|
|
111
112
|
segmentTooShort,
|
|
112
113
|
steppedInsideSeat,
|
|
113
114
|
warnSliverLabels
|
|
114
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-RLX6VODQ.js";
|
|
115
116
|
import {
|
|
116
117
|
axisBreakHeightOrderWarning,
|
|
117
118
|
axisBreakInvalid,
|
|
118
119
|
breakStyleRefusal,
|
|
119
120
|
stackBreakReversesOrder
|
|
120
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-NUASZPS7.js";
|
|
121
122
|
import {
|
|
122
123
|
isIncomplete,
|
|
123
124
|
warnShareRoundingDrift
|
|
124
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-5QMM354E.js";
|
|
125
126
|
import {
|
|
126
127
|
percentCellsOnly,
|
|
127
128
|
percentLevels,
|
|
128
129
|
runAnnotatePass
|
|
129
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-QDFX2KAP.js";
|
|
130
131
|
import {
|
|
131
132
|
rowLabelBand
|
|
132
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-MTOBNHAU.js";
|
|
133
134
|
import {
|
|
134
135
|
fittedLabel,
|
|
135
136
|
gutterBudget,
|
|
136
137
|
stepDownFont
|
|
137
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
138
139
|
import {
|
|
139
140
|
chartPalette,
|
|
140
141
|
chartTheme
|
|
141
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-AIPOSNVG.js";
|
|
142
143
|
import {
|
|
143
144
|
restDetailsWarning,
|
|
144
145
|
restLabel,
|
|
145
146
|
restSum,
|
|
146
147
|
topNCut
|
|
147
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-USATDW6O.js";
|
|
148
149
|
import {
|
|
149
150
|
NO_STACK_MEAN,
|
|
150
151
|
SHARES_OF_ONE_WHOLE_FIX,
|
|
@@ -160,14 +161,14 @@ import {
|
|
|
160
161
|
BAND_PAD,
|
|
161
162
|
namedLineText,
|
|
162
163
|
pruneOrphanAnnotationArms
|
|
163
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-R4MVXUAG.js";
|
|
164
165
|
import {
|
|
165
166
|
labelOn,
|
|
166
167
|
valueLineLabelsOn
|
|
167
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-77L6QGIG.js";
|
|
168
169
|
import {
|
|
169
170
|
structureCount
|
|
170
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
171
172
|
import {
|
|
172
173
|
authoredTrackWidth,
|
|
173
174
|
columnOverrideWarnings,
|
|
@@ -201,7 +202,7 @@ import {
|
|
|
201
202
|
valueAxisTitleRequest,
|
|
202
203
|
valueAxisTitleText,
|
|
203
204
|
valueAxisUnit
|
|
204
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-YM4MVABU.js";
|
|
205
206
|
import {
|
|
206
207
|
COLLECT_IDENTITIES,
|
|
207
208
|
PARTIAL_KEY,
|
|
@@ -233,36 +234,34 @@ import {
|
|
|
233
234
|
solveLabels,
|
|
234
235
|
toDateLabel,
|
|
235
236
|
toDateRoom
|
|
236
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-AUSZDYGE.js";
|
|
237
238
|
import {
|
|
238
239
|
disclosureNote,
|
|
239
240
|
disclosuresShown
|
|
240
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-WD5NJHZG.js";
|
|
241
242
|
import {
|
|
242
243
|
emptyIdRecord
|
|
243
244
|
} from "./chunk-LINZPU5D.js";
|
|
244
245
|
import {
|
|
245
246
|
formatStatWithSpec,
|
|
246
247
|
formatterFromExample,
|
|
247
|
-
neededDecimals,
|
|
248
248
|
parseFormatExample,
|
|
249
|
-
roundedNumber,
|
|
250
249
|
seriesRasterFormatter,
|
|
251
250
|
shareFormatExample,
|
|
252
251
|
withChartMarks
|
|
253
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-3JG764MI.js";
|
|
254
253
|
import {
|
|
255
254
|
NOT_AVAILABLE,
|
|
256
|
-
autoDecimals,
|
|
257
255
|
chartString,
|
|
258
256
|
chartStrings,
|
|
259
|
-
formatAutomaticNumber,
|
|
260
257
|
formatAutomaticPercent,
|
|
261
258
|
formatShare,
|
|
262
259
|
notApplicableGlyph,
|
|
260
|
+
shareSetDecimals,
|
|
261
|
+
shareText,
|
|
263
262
|
stringFields,
|
|
264
263
|
withLocaleStrings
|
|
265
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-FYFXOLWI.js";
|
|
266
265
|
import {
|
|
267
266
|
cellMeta,
|
|
268
267
|
cellValue,
|
|
@@ -299,7 +298,7 @@ import {
|
|
|
299
298
|
typeWidthClass,
|
|
300
299
|
unionRect,
|
|
301
300
|
withSegmentSeams
|
|
302
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-XAH4EWJT.js";
|
|
303
302
|
import {
|
|
304
303
|
DEFAULT_TARGET,
|
|
305
304
|
NormalizeError,
|
|
@@ -405,6 +404,19 @@ function displayFor(domain, v, cell, pctVal, s, categoryId) {
|
|
|
405
404
|
let { meta } = cell;
|
|
406
405
|
return pctVal !== void 0 ? (s && categoryId !== void 0 ? domain.shareTexts.get(`${categoryId}\0${s.id}`) : void 0) ?? domain.pctFmt(pctVal) : meta?.format ? formatterFromExample(meta.format, domain.options.locale?.language)(v) : (cell.isPct && !s?.format ? domain.valueSpec.fmtPercent : s ? domain.valueSpec.forSeries(s) : domain.fmt)(v);
|
|
407
406
|
}
|
|
407
|
+
function valueSlot(domain) {
|
|
408
|
+
return domain.options[SHOWN_SLOT] ?? "value";
|
|
409
|
+
}
|
|
410
|
+
function labelTextsFor(domain, v, cell, pctVal, s, categoryId) {
|
|
411
|
+
let label = cell.meta?.label;
|
|
412
|
+
if (label === !1) return { text: null };
|
|
413
|
+
let base = displayFor(domain, v, cell, pctVal, s, categoryId);
|
|
414
|
+
return {
|
|
415
|
+
text: typeof label == "string" ? label.replace(/\$\{value\}/g, base) : base,
|
|
416
|
+
base,
|
|
417
|
+
...typeof label == "string" && !printsValue(label) ? {} : { shows: { [pctVal === void 0 ? valueSlot(domain) : "share.percent"]: base } }
|
|
418
|
+
};
|
|
419
|
+
}
|
|
408
420
|
function valueLineValue(a, meanValue) {
|
|
409
421
|
return a.value === void 0 || a.value === "mean" ? meanValue : a.value;
|
|
410
422
|
}
|
|
@@ -611,7 +623,7 @@ function resolveBarDomain(data, options, warnings) {
|
|
|
611
623
|
}
|
|
612
624
|
let hostDeclaresPrecision = options.rasterFromValues === !1, valueSpec = seriesRasterFormatter(options.format, hostDeclaresPrecision ? [] : normSeries.flatMap(
|
|
613
625
|
(s) => s.cells.flatMap((cell) => [cell.v, cell.range?.low, cell.range?.high, cell.range?.mid])
|
|
614
|
-
), options.locale?.language, options.unit
|
|
626
|
+
), options.locale?.language, options.unit), statSpec = !options.format && (variant === "stacked100" || options.unit === "%" || percentLevels(dataSeries.map((series) => ({ vals: series.cells })))) ? { ...valueSpec.percentSpec, suffix: "%" } : valueSpec.spec, statFmt = (v) => formatStatWithSpec(v, statSpec);
|
|
615
627
|
variant === "stacked100" && dataSeries.length === 1 && warnings.push({
|
|
616
628
|
code: "stacked100-single-series",
|
|
617
629
|
severity: "warn",
|
|
@@ -649,7 +661,7 @@ function resolveBarDomain(data, options, warnings) {
|
|
|
649
661
|
let sharesOn = variant === "stacked100" && labelOn(options, "segment");
|
|
650
662
|
warnIncompleteStacks(variant, cats, basis.incompleteRows, grandTotalsOn, sharesOn, "bars", warnings, disclosuresShown(options)), warnShareFormatIgnored(variant, options.format, shareFormatExample(options), grandTotalsOn, warnings);
|
|
651
663
|
let wholes = sharesOn ? cats.flatMap((c, ci) => basis.nmRows[ci] || basis.naRows[ci] || basis.incompleteRows.has(c.id) || c.total100 !== void 0 ? [] : [{ c, parts: dataSeries.flatMap((s, si) => s.cells[ci].v === null ? [] : [{ s, share: basis.shares[ci][si] }]) }]) : [], shareTexts = /* @__PURE__ */ new Map(), roundingAdjustments = [], shareExample = shareFormatExample(options, dataSeries), shareSpec = shareExample ? withChartMarks(parseFormatExample(shareExample), options.locale?.language) : void 0, pctFmt = shareExample ? formatterFromExample(shareExample, options.locale?.language) : (percent) => formatShare(percent, options.locale?.language);
|
|
652
|
-
if (options.rounding
|
|
664
|
+
if (options.rounding === "sum-consistent")
|
|
653
665
|
for (let { c, parts } of wholes) {
|
|
654
666
|
let rounded = sumConsistentShares(parts.map((part) => part.share), options.locale?.language, shareSpec);
|
|
655
667
|
rounded?.warning ? warnings.push(roundingUnavailable(c.label, rounded.warning)) : rounded && parts.forEach((part, index) => {
|
|
@@ -662,7 +674,15 @@ function resolveBarDomain(data, options, warnings) {
|
|
|
662
674
|
});
|
|
663
675
|
});
|
|
664
676
|
}
|
|
665
|
-
else
|
|
677
|
+
else if (sharesOn) {
|
|
678
|
+
let labelDecimals = /* @__PURE__ */ new Map();
|
|
679
|
+
if (!shareExample) for (let { c, parts } of wholes) {
|
|
680
|
+
let decimals = shareSetDecimals(parts.map((part) => part.share));
|
|
681
|
+
labelDecimals.set(c.id, decimals);
|
|
682
|
+
for (let part of parts) shareTexts.set(`${c.id}\0${part.s.id}`, shareText(part.share, decimals, options.locale?.language));
|
|
683
|
+
}
|
|
684
|
+
warnShareRoundingDrift(warnings, wholes.map(({ c, parts }) => ({ name: c.label, shares: parts.map((part) => part.share), decimals: shareSpec?.decimals ?? labelDecimals.get(c.id) })));
|
|
685
|
+
}
|
|
666
686
|
let rescaled = options.sharesOfOneWhole === !0 ? wholes.filter(({ c, parts }) => !dataSeries.some((s) => s.cells[cats.indexOf(c)].isPct) && Math.abs(parts.reduce((sum, part) => sum + part.s.cells[cats.indexOf(c)].v, 0) - 100) > 0.05).map(({ c }) => c.label) : [], shareNotes = shareRoundingNotes(options, roundingAdjustments, cappedItems(rescaled, options)), domain = {
|
|
667
687
|
options,
|
|
668
688
|
theme,
|
|
@@ -752,7 +772,7 @@ function layoutBarLocalAnnotations(domain, area, warnings) {
|
|
|
752
772
|
owner: { annotationId: id },
|
|
753
773
|
part: "valueLine"
|
|
754
774
|
}), claims.claim({ x: vx - 1, y: plot.y, w: 2, h: plot.h }, "annotation", { annotationId: id }, "referenceLine");
|
|
755
|
-
let isMean = ann.value === void 0 || ann.value === "mean", meanFmt = ann.format ? annFmt : statFmt, valueText =
|
|
775
|
+
let isMean = ann.value === void 0 || ann.value === "mean", meanFmt = ann.format ? annFmt : statFmt, valueText = isMean || id === domain.averageMarkerId ? meanFmt(v) : percent && !ann.format && !domain.options.format ? domain.valueSpec.fmtPercent(v) : annFmt(v), labelText = ann.label === !1 || !valueLineLabelsOn(domain.options) ? "" : ann.label !== void 0 ? namedLineText(ann.label, valueText, v, id) : isMean ? `${domain.options.strings.average} ${valueText}` : valueText;
|
|
756
776
|
if (labelText) {
|
|
757
777
|
let lines = labelText.split(`
|
|
758
778
|
`), w = Math.max(...lines.map((l) => measure(l, strongFont).width)), h = lines.length * measure("X", strongFont).height;
|
|
@@ -867,15 +887,15 @@ function stepsBelow(domain, font) {
|
|
|
867
887
|
let floor = readerFloorPx(options.target ?? DEFAULT_TARGET, "label", scale);
|
|
868
888
|
return (steps.at(-1) ?? font).size > floor + 0.01 && steps.push({ ...font, size: floor }), steps;
|
|
869
889
|
}
|
|
870
|
-
function planBarLabels(domain, paints, area, scene, warnings) {
|
|
890
|
+
function planBarLabels(domain, paints, area, scene, warnings, stated) {
|
|
871
891
|
let { options, measure, highlights, cats, dataSeries, variant, totals, plotRange } = domain, { labelFont, strongFont, tickFont, pointFont, compact, band } = area, requests = [], slivers = [], maxTotal = maxOf(totals), minTotal = minOf(totals), bonus = (catId, seriesId) => highlights.has(catId) || seriesId !== void 0 && highlights.has(seriesId) ? PRIORITY.highlightBonus : 0, halves = barHalves(options), mode = variant === "grouped" ? options.valueLabels : void 0, chosen = mode === void 0 ? void 0 : new Map(dataSeries.map((s) => [s.id, chosenValueIndices(mode, cats.map((_, ci) => s.cells[ci]?.v ?? null))])), toDateIds = toDateOnValues(domain), toDate = options.strings?.toDate ?? chartString(options, "toDate");
|
|
872
892
|
if (cats.forEach((cat, ci) => {
|
|
873
|
-
let part, partText, rowCenter = band.position(ci) + band.bandwidth / 2, outer = variant === "stacked" ? outerSegments(scene.bars[ci]) : [];
|
|
893
|
+
let part, partText, partOwner, partValue, rowCenter = band.position(ci) + band.bandwidth / 2, outer = variant === "stacked" ? outerSegments(scene.bars[ci]) : [];
|
|
874
894
|
for (let { s, si, v, val, rect: own } of scene.bars[ci]) {
|
|
875
895
|
let twin = halves?.pos === s.id ? scene.bars[ci].find((bar) => bar.s.id === halves.neg)?.rect : void 0, rect = twin ? unionRect(twin, own) : own, cell = s.cells[ci], owner = { seriesId: s.id, categoryId: cat.id }, { paint, pattern } = paints.cell(s, cat, cell.meta, cell.v);
|
|
876
896
|
if (variant === "grouped") {
|
|
877
897
|
if (!labelOn(options, "point") || area.thinBars && si !== 0 && bonus(cat.id, s.id) === 0 || chosen && !chosen.get(s.id)?.has(ci) && typeof cell.meta?.label != "string") continue;
|
|
878
|
-
let text2 =
|
|
898
|
+
let { text: text2, shows: shows2 } = labelTextsFor(domain, v, cell, void 0, s);
|
|
879
899
|
if (!text2) continue;
|
|
880
900
|
let valueFont = bonus(cat.id, s.id) > 0 ? { ...pointFont, weight: emphasisWeight(domain.theme) } : pointFont, words = toDateIds.has(cat.id) ? toDateLabel(text2, valueFont, toDate, domain.theme, measure) : void 0, measured = measure(text2, valueFont), tsize2 = words?.size ?? (compact ? compactValueTextSize("horizontal", measured, pointFont.size) : measured);
|
|
881
901
|
requests.push({
|
|
@@ -884,6 +904,7 @@ function planBarLabels(domain, paints, area, scene, warnings) {
|
|
|
884
904
|
markAnchored: !0,
|
|
885
905
|
owner,
|
|
886
906
|
text: text2,
|
|
907
|
+
...shows2 ? { shows: shows2 } : {},
|
|
887
908
|
lines: words?.lines ?? [text2],
|
|
888
909
|
...words?.request,
|
|
889
910
|
typeRole: "label",
|
|
@@ -901,12 +922,13 @@ function planBarLabels(domain, paints, area, scene, warnings) {
|
|
|
901
922
|
}
|
|
902
923
|
if (!labelOn(options, "segment") || domain.nmRows[ci] || domain.naRows[ci] || v === 0 && typeof cell.meta?.label != "string") continue;
|
|
903
924
|
if (variant === "stacked100" && domain.incompleteRows.has(cat.id) && cat.total100 === void 0) {
|
|
904
|
-
let value =
|
|
925
|
+
let { text: value, shows: valueShows } = labelTextsFor(domain, v, cell, void 0, s);
|
|
905
926
|
value && !domain.nmRows[ci] && !domain.naRows[ci] && requests.push({
|
|
906
927
|
id: `segment:${s.id}:${cat.id}`,
|
|
907
928
|
kind: "segment",
|
|
908
929
|
owner,
|
|
909
930
|
text: value,
|
|
931
|
+
...valueShows ? { shows: valueShows } : {},
|
|
910
932
|
lines: [value],
|
|
911
933
|
typeRole: "label",
|
|
912
934
|
font: labelFont,
|
|
@@ -919,7 +941,7 @@ function planBarLabels(domain, paints, area, scene, warnings) {
|
|
|
919
941
|
});
|
|
920
942
|
continue;
|
|
921
943
|
}
|
|
922
|
-
let text =
|
|
944
|
+
let { text, shows } = labelTextsFor(domain, v, cell, variant === "stacked100" ? val : void 0, s, cat.id);
|
|
923
945
|
if (!text) continue;
|
|
924
946
|
let segmentFont = emphasizedSeries(domain, s) ? strongFont : labelFont, tsize = measure(text, segmentFont), plain = bonus(cat.id, s.id) === 0, restHidden = typeof cell.meta?.label != "string" && plain && restValuesHidden(options, s.colorRole), sliver = !restHidden && plain && !fitsInside(rect, tsize, 0) && segmentTooShort(options.labelDensity ?? "smart", rect.w, tsize.width, options.labelPlacements?.[`segment:${s.id}:${cat.id}`]), onePart = variant === "stacked" && (typeof cell.meta?.label != "string" || printsValue(cell.meta.label)) && v !== 0 && onePartDrawn(dataSeries.map((x) => x.cells[ci].v)), endSeat = !restHidden && !twin && !onePart && !(dataSeries.length === 1 && domain.grandTotalsOn) && outer.includes(own) && options.labelDensity !== "minimal" && !fitsInside(rect, tsize, 0) ? stackEndSeat(own, v < 0, rowCenter, tsize) : void 0;
|
|
925
947
|
if (endSeat) {
|
|
@@ -929,6 +951,7 @@ function planBarLabels(domain, paints, area, scene, warnings) {
|
|
|
929
951
|
owner,
|
|
930
952
|
...namesOnly(void 0, cell.meta?.label),
|
|
931
953
|
text,
|
|
954
|
+
...shows ? { shows } : {},
|
|
932
955
|
lines: [text],
|
|
933
956
|
typeRole: "label",
|
|
934
957
|
font: segmentFont,
|
|
@@ -952,7 +975,7 @@ function planBarLabels(domain, paints, area, scene, warnings) {
|
|
|
952
975
|
break;
|
|
953
976
|
}
|
|
954
977
|
}
|
|
955
|
-
sliver && variant === "stacked100" ? requests.push({ ...shareRowRequest(area, s.id, cat.id, ci, text, paint, labelFont, measure), ...namesOnly(void 0, cell.meta?.label) }) : sliver && !((dataSeries.length === 1 || onePart) && domain.grandTotalsOn) && slivers.push(`${s.label} in ${cat.label}`), onePart && (part = `segment:${s.id}:${cat.id}`, partText = typeof cell.meta?.label == "string" ? text : void 0), requests.push({
|
|
978
|
+
sliver && variant === "stacked100" ? requests.push({ ...shareRowRequest(area, s.id, cat.id, ci, text, paint, labelFont, measure, shows), ...namesOnly(void 0, cell.meta?.label) }) : sliver && !((dataSeries.length === 1 || onePart) && domain.grandTotalsOn) && slivers.push(`${s.label} in ${cat.label}`), onePart && (part = `segment:${s.id}:${cat.id}`, partText = typeof cell.meta?.label == "string" ? text : void 0, partOwner = owner, partValue = shows), requests.push({
|
|
956
979
|
id: `segment:${s.id}:${cat.id}`,
|
|
957
980
|
kind: "segment",
|
|
958
981
|
owner,
|
|
@@ -961,6 +984,7 @@ function planBarLabels(domain, paints, area, scene, warnings) {
|
|
|
961
984
|
...twin ? { printsFor: [owner, { seriesId: halves.neg, categoryId: cat.id }] } : {},
|
|
962
985
|
...namesOnly(void 0, cell.meta?.label),
|
|
963
986
|
text,
|
|
987
|
+
...shows ? { shows } : {},
|
|
964
988
|
lines: [text],
|
|
965
989
|
typeRole: "label",
|
|
966
990
|
font: segmentFont,
|
|
@@ -984,7 +1008,9 @@ function planBarLabels(domain, paints, area, scene, warnings) {
|
|
|
984
1008
|
});
|
|
985
1009
|
}
|
|
986
1010
|
if (variant !== "grouped" && domain.grandTotalsOn && !domain.nmRows[ci] && !domain.naRows[ci] && !(variant === "stacked100" && domain.incompleteRows.has(cat.id))) {
|
|
987
|
-
let text = partText ?? domain.totalFmt(totals[ci]),
|
|
1011
|
+
let text = partText ?? domain.totalFmt(totals[ci]), partShows = partText === void 0 ? { [valueSlot(domain)]: text } : partValue;
|
|
1012
|
+
partOwner && partShows && stated?.set(`grandTotal:${cat.id}`, { owner: partOwner, shows: partShows });
|
|
1013
|
+
let second = toDateIds.has(cat.id) ? toDate : domain.incompleteRows.has(cat.id) && disclosuresShown(domain.options) ? domain.options.strings.incomplete : void 0, words = second ? toDateLabel(text, strongFont, second, domain.theme, measure) : void 0, tsize = words?.size ?? measure(text, strongFont), column = options[TOTAL_COLUMN], candidates = [
|
|
988
1014
|
...column === void 0 || words ? [] : [{ slot: "column", rect: { x: column - tsize.width, y: rowCenter - tsize.height / 2, w: tsize.width, h: tsize.height }, penalty: 0 }],
|
|
989
1015
|
...overValueLines(totalLabelCandidates("horizontal", { x: area.x(domain.rowEnds[ci].pos), y: rowCenter }, tsize)).map((candidate) => column === void 0 || words ? candidate : { ...candidate, penalty: candidate.penalty + 1 })
|
|
990
1016
|
], end = [...scene.bars[ci]].reverse().find((bar) => bar.v > 0);
|
|
@@ -1092,7 +1118,7 @@ function stackEndSeat(rect, below, rowCenter, tsize) {
|
|
|
1092
1118
|
return { slot: "outsideEnd", rect: { x: below ? rect.x - STACK_END_GAP - w : rect.x + rect.w + STACK_END_GAP, y: rowCenter - tsize.height / 2, w, h: tsize.height }, penalty: 0 };
|
|
1093
1119
|
}
|
|
1094
1120
|
var STACK_END_GAP = 6;
|
|
1095
|
-
function shareRowRequest(area, seriesId, catId, ci, text, paint, font, measure) {
|
|
1121
|
+
function shareRowRequest(area, seriesId, catId, ci, text, paint, font, measure, shows) {
|
|
1096
1122
|
let { band, x, plot } = area, size = measure(text, font), w = size.width + SHARE_ROW_SWATCH, cy = band.position(ci) + band.bandwidth / 2 - size.height / 2, right = plot.x + plot.w - w, seats = [];
|
|
1097
1123
|
for (let at = x(100) + 6, k = 0; at <= right + 0.5 && k < 40; at += 4, k++)
|
|
1098
1124
|
seats.push({ slot: k === 0 ? "shareRow" : `shareRow${k}`, rect: { x: Math.min(at, right), y: cy, w, h: size.height }, penalty: k / 100 });
|
|
@@ -1101,6 +1127,7 @@ function shareRowRequest(area, seriesId, catId, ci, text, paint, font, measure)
|
|
|
1101
1127
|
kind: "segment",
|
|
1102
1128
|
owner: { seriesId, categoryId: catId },
|
|
1103
1129
|
text,
|
|
1130
|
+
...shows ? { shows } : {},
|
|
1104
1131
|
lines: [text],
|
|
1105
1132
|
typeRole: "label",
|
|
1106
1133
|
font,
|
|
@@ -1114,6 +1141,10 @@ function referenceLabelText(domain, s, v, cell) {
|
|
|
1114
1141
|
let value = textFor(domain, v, cell, void 0, s);
|
|
1115
1142
|
return value === null ? null : `${value} ${s.label}`;
|
|
1116
1143
|
}
|
|
1144
|
+
function referenceLabelTexts(domain, s, v, cell) {
|
|
1145
|
+
let { text: value, base, shows } = labelTextsFor(domain, v, cell, void 0, s);
|
|
1146
|
+
return value === null ? { text: null } : { text: `${value} ${s.label}`, ...shows ? { shows: { value: base } } : {} };
|
|
1147
|
+
}
|
|
1117
1148
|
function referenceLabels(domain, area) {
|
|
1118
1149
|
let { options, cats, refSeries, variant, measure } = domain;
|
|
1119
1150
|
if (variant === "stacked100" || !labelOn(options, "tick")) return [];
|
|
@@ -1121,7 +1152,7 @@ function referenceLabels(domain, area) {
|
|
|
1121
1152
|
for (let s of refSeries) cats.forEach((cat, ci) => {
|
|
1122
1153
|
let { v } = s.cells[ci];
|
|
1123
1154
|
if (v === null) return;
|
|
1124
|
-
let text =
|
|
1155
|
+
let { text, shows } = referenceLabelTexts(domain, s, v, s.cells[ci]);
|
|
1125
1156
|
if (!text) return;
|
|
1126
1157
|
let size = measure(text, tickFont), cy = band.position(ci) + band.bandwidth / 2 - size.height / 2, rx = x(v), clear = domain.referenceStyle === "marker" ? REFERENCE_MARKER_R + 4 : 4, right = plot.x + plot.w - size.width, seats = [];
|
|
1127
1158
|
for (let at = rx + clear, k = 0; at <= right + 0.5 && k < 60; at += 6, k++)
|
|
@@ -1131,6 +1162,7 @@ function referenceLabels(domain, area) {
|
|
|
1131
1162
|
kind: "tick",
|
|
1132
1163
|
owner: { seriesId: s.id, categoryId: cat.id },
|
|
1133
1164
|
text,
|
|
1165
|
+
...shows ? { shows } : {},
|
|
1134
1166
|
lines: [text],
|
|
1135
1167
|
typeRole: "label",
|
|
1136
1168
|
font: tickFont,
|
|
@@ -1153,7 +1185,7 @@ function barRow(domain, paints, area, ci, marks, nodes, claims, out) {
|
|
|
1153
1185
|
dataSeries.forEach((s, si) => {
|
|
1154
1186
|
let cell = s.cells[ci], v = cell.v;
|
|
1155
1187
|
if (v === null) return;
|
|
1156
|
-
let segment = stacks[ci].segments[si], by = grouped ? rowY + groupSlots[si].offset : rowY, bh = grouped ? groupSlots[si].size : bw, start = grouped ? 0 : segment.start, end = grouped ? v : segment.end, xA = x(start), xB = x(end), rect = { x: Math.min(xA, xB), y: by, w: Math.max(Math.abs(xB - xA), 0.5), h: bh }, nodeId = `mark:${cat.id}:${s.id}`, owner = { seriesId: s.id, categoryId: cat.id }, { paint, pattern, outline } = paints.cell(s, cat, cell.meta, cell.v), val = grouped ? v : segment.value, halves = barHalves(domain.options);
|
|
1188
|
+
let segment = stacks[ci].segments[si], by = grouped ? rowY + groupSlots[si].offset : rowY, bh = grouped ? groupSlots[si].size : bw, start = grouped ? 0 : segment.start, end = grouped ? v : segment.end, xA = x(start), xB = x(end), rect = { x: Math.min(xA, xB), y: by, w: Math.max(Math.abs(xB - xA), 0.5), h: bh }, nodeId = `mark:${cat.id}:${s.id}`, owner = { seriesId: s.id, categoryId: cat.id }, { paint, pattern, outline } = paints.cell(s, cat, cell.meta, cell.v), val = grouped ? v : segment.value, valueText = displayFor(domain, v, cell, void 0, s), halves = barHalves(domain.options);
|
|
1157
1189
|
emitBarMark({ axis: "x", theme: domain.theme, scale: area.x, activeBreak: area.activeBreak, css: (paint2) => paints.css(paint2) }, nodes, claims, {
|
|
1158
1190
|
nodeId,
|
|
1159
1191
|
rect,
|
|
@@ -1165,7 +1197,9 @@ function barRow(domain, paints, area, ci, marks, nodes, claims, out) {
|
|
|
1165
1197
|
owner,
|
|
1166
1198
|
...halves?.neg === s.id ? { claimOwner: { seriesId: halves.pos, categoryId: cat.id } } : {},
|
|
1167
1199
|
part: grouped ? "bar" : "segment",
|
|
1168
|
-
displayValue:
|
|
1200
|
+
displayValue: variant === "stacked100" ? displayFor(domain, v, cell, val, s, cat.id) : valueText,
|
|
1201
|
+
// The text a value label would print where none is drawn (labels off, a hidden or 100 % segment).
|
|
1202
|
+
shows: { [valueSlot(domain)]: valueText }
|
|
1169
1203
|
}), rowBars.push({ seriesId: s.id, rect, nodeId });
|
|
1170
1204
|
let range = plotRange(ci, si);
|
|
1171
1205
|
if (range) {
|
|
@@ -1179,10 +1213,12 @@ function barRow(domain, paints, area, ci, marks, nodes, claims, out) {
|
|
|
1179
1213
|
let refCell = rs.cells[ci], { v } = refCell;
|
|
1180
1214
|
if (v === null) return;
|
|
1181
1215
|
let rx = x(v), nodeId = `ref:${cat.id}:${rs.id}`, owner = { seriesId: rs.id, categoryId: cat.id }, tickGeometry = referenceTickGeometry("horizontal", rowY, rx, -2, bw + 2);
|
|
1182
|
-
referenceStyle !== "marker" && out.refTarget.push(referenceCasing(nodeId, tickGeometry.line, referenceStyle === "line" ? strokeToken(domain.theme, "rule") : domain.referenceTick.width, owner))
|
|
1216
|
+
referenceStyle !== "marker" && out.refTarget.push(referenceCasing(nodeId, tickGeometry.line, referenceStyle === "line" ? strokeToken(domain.theme, "rule") : domain.referenceTick.width, owner));
|
|
1217
|
+
let refText = displayFor(domain, v, refCell, void 0, rs);
|
|
1218
|
+
out.refTarget.push({
|
|
1183
1219
|
id: nodeId,
|
|
1184
1220
|
owner,
|
|
1185
|
-
display: { value:
|
|
1221
|
+
display: { value: refText, shows: { value: refText } },
|
|
1186
1222
|
...referenceStyle === "marker" ? {
|
|
1187
1223
|
t: "circle",
|
|
1188
1224
|
cx: rx,
|
|
@@ -1772,6 +1808,7 @@ function annotateBar(domain, area, scene, occupied, solveCtx, annotationPass) {
|
|
|
1772
1808
|
measure: domain.measure,
|
|
1773
1809
|
format: domain.options.format,
|
|
1774
1810
|
locale: domain.options.locale?.language,
|
|
1811
|
+
levelSpec: domain.valueSpec.spec,
|
|
1775
1812
|
strings: domain.options.strings,
|
|
1776
1813
|
sharesFormat: domain.variant === "stacked100",
|
|
1777
1814
|
valueLinePercentLevels: domain.variant === "stacked100" || domain.options.unit === "%" || percentLevels(domain.dataSeries.map((series) => ({ vals: series.cells }))),
|
|
@@ -1810,7 +1847,7 @@ function standardBarSizing(domain, area, naturalLabels) {
|
|
|
1810
1847
|
domain.incompleteRows.size > 0 && options.mode === "compact" && hardMinimum
|
|
1811
1848
|
);
|
|
1812
1849
|
}
|
|
1813
|
-
function assembleBarGeometry(domain, area, scene, solved, annotated, placedAnnotations, occupied, warnings) {
|
|
1850
|
+
function assembleBarGeometry(domain, area, scene, solved, annotated, placedAnnotations, occupied, warnings, stated) {
|
|
1814
1851
|
let { options, theme, size, measure, variant, cats, dataSeries, fmt, totalFmt, totals, shares, meanValue } = domain, { tickFont, labelFont, strongFont, band } = area, { nodes } = scene, allLabels = [...solved.placed, ...annotated.labels];
|
|
1815
1852
|
spliceAnnotationNodes(nodes, annotated.nodes), pushAll(
|
|
1816
1853
|
nodes,
|
|
@@ -1844,11 +1881,21 @@ function assembleBarGeometry(domain, area, scene, solved, annotated, placedAnnot
|
|
|
1844
1881
|
// be recomputed. Raw for the same reason as the totals above.
|
|
1845
1882
|
Object.fromEntries(dataSeries.map((s, si) => [s.id, shares[ci][si]]))
|
|
1846
1883
|
])
|
|
1847
|
-
) : void 0, variantWord = variant === "grouped" ? chartString2(options, "groupedCapital") : variant === "stacked" ? chartString2(options, "stackedCapital") : chartString2(options, "stacked100"),
|
|
1884
|
+
) : void 0, variantWord = variant === "grouped" ? chartString2(options, "groupedCapital") : variant === "stacked" ? chartString2(options, "stackedCapital") : chartString2(options, "stacked100"), shown = [], drawnForPart = /* @__PURE__ */ new Map();
|
|
1885
|
+
for (let label of allLabels) {
|
|
1886
|
+
let text = label.hidden === void 0 ? stated.get(label.id) : void 0;
|
|
1887
|
+
text && (shown.push({ ...text, drawn: !0 }), drawnForPart.set(text.owner.categoryId, label.text));
|
|
1888
|
+
}
|
|
1889
|
+
let oneValueText = (ci) => {
|
|
1848
1890
|
let s = dataSeries.length === 1 ? dataSeries[0] : void 0, cell = s?.cells[ci];
|
|
1849
|
-
return !s || !cell || cell.v === null ? null : textFor(domain, cell.v, cell, void 0, s) ?? displayFor(domain, cell.v, cell, void 0, s);
|
|
1850
|
-
},
|
|
1851
|
-
|
|
1891
|
+
return !s || !cell || cell.v === null ? null : drawnForPart.get(cats[ci].id) ?? textFor(domain, cell.v, cell, void 0, s) ?? displayFor(domain, cell.v, cell, void 0, s);
|
|
1892
|
+
}, drawnShares = /* @__PURE__ */ new Map();
|
|
1893
|
+
for (let label of allLabels) {
|
|
1894
|
+
let text = label.hidden === void 0 ? label.shows?.["share.percent"] : void 0;
|
|
1895
|
+
text !== void 0 && drawnShares.set(`${label.owner.categoryId}\0${label.owner.seriesId}`, text);
|
|
1896
|
+
}
|
|
1897
|
+
let a11yDesc = cats.map(
|
|
1898
|
+
(c, ci) => domain.stacks[ci].hasValue ? variant === "stacked100" ? `${c.label} ${totalFmt(totals[ci])} (${dataSeries.map((s, si) => `${s.label} ${drawnShares.get(`${c.id}\0${s.id}`) ?? domain.pctFmt(shares[ci][si])}`).join(", ")})` : `${c.label} ${oneValueText(ci) ?? totalFmt(totals[ci])}` : `${c.label} ${NOT_AVAILABLE}`
|
|
1852
1899
|
).join(", ");
|
|
1853
1900
|
return {
|
|
1854
1901
|
type: "bar",
|
|
@@ -1868,7 +1915,7 @@ function assembleBarGeometry(domain, area, scene, solved, annotated, placedAnnot
|
|
|
1868
1915
|
annotations: [...placedAnnotations, ...annotated.placed],
|
|
1869
1916
|
legend: area.frame.legend,
|
|
1870
1917
|
frame: area.frame.frame,
|
|
1871
|
-
marks: scene.marks,
|
|
1918
|
+
marks: shown.length > 0 ? { ...scene.marks, shown } : scene.marks,
|
|
1872
1919
|
derived: {
|
|
1873
1920
|
totals: totalsById,
|
|
1874
1921
|
stackParts: stackParts(totalsById, cats, dataSeries, (si, ci) => dataSeries[si].cells[ci].v),
|
|
@@ -1909,7 +1956,7 @@ function layoutStandardBar(data, options = {}, annotationPass) {
|
|
|
1909
1956
|
labelPad: 2,
|
|
1910
1957
|
// values valueLabels picks are no scatter; each one that cannot sit goes to the note alone.
|
|
1911
1958
|
seriesUniform: pickedValues(options) ? void 0 : bandValueLabelUniformity()
|
|
1912
|
-
}), titleRequests = area.axisTitle && area.axisTitleAt && options.valueAxis?.show ? [valueAxisTitleRequest(area.axisTitle, area.axisTitleAt, "end", "axis:x:title")] : [], values = keepValuesWithoutAxis(planBarLabels(domain, paints, area, scene, warnings), solveCtx.density, options.valueAxis?.show === !0), solved = solveLabels([...titleRequests, ...values, ...local.requests], occupied, solveCtx), toDate = toDateOnValues(domain), toDateRoomH = toDateRoom(area.band.bandwidth);
|
|
1959
|
+
}), titleRequests = area.axisTitle && area.axisTitleAt && options.valueAxis?.show ? [valueAxisTitleRequest(area.axisTitle, area.axisTitleAt, "end", "axis:x:title")] : [], stated = /* @__PURE__ */ new Map(), values = keepValuesWithoutAxis(planBarLabels(domain, paints, area, scene, warnings, stated), solveCtx.density, options.valueAxis?.show === !0), solved = solveLabels([...titleRequests, ...values, ...local.requests], occupied, solveCtx), toDate = toDateOnValues(domain), toDateRoomH = toDateRoom(area.band.bandwidth);
|
|
1913
1960
|
if (toDate.size > 0 && solved.placed.some((l) => (l.kind === "grandTotal" || l.kind === "point") && toDate.has(l.owner.categoryId ?? "") && (l.hidden !== void 0 || l.rect.h > toDateRoomH)))
|
|
1914
1961
|
return layoutStandardBar(data, { ...options, [PARTIAL_KEY]: !0 }, annotationPass);
|
|
1915
1962
|
applyValueAxisTitleInk(solved.placed);
|
|
@@ -1931,7 +1978,7 @@ function layoutStandardBar(data, options = {}, annotationPass) {
|
|
|
1931
1978
|
...options,
|
|
1932
1979
|
[BAND_PAD]: (room[BAND_PAD] ?? 0) + Math.ceil(annotated.bandNeed),
|
|
1933
1980
|
[BAND_TRIES]: (room[BAND_TRIES] ?? 0) + 1
|
|
1934
|
-
}, annotationPass) : (pushAll(warnings, annotated.warnings), assembleBarGeometry(domain, area, scene, solved, annotated, local.placed, occupied, warnings));
|
|
1981
|
+
}, annotationPass) : (pushAll(warnings, annotated.warnings), assembleBarGeometry(domain, area, scene, solved, annotated, local.placed, occupied, warnings, stated));
|
|
1935
1982
|
}
|
|
1936
1983
|
function outsideLaneCandidates(side, endpointX, textSize, rowCenter, occupied, currentRuleClaim, canvas, valueBody, rowLane) {
|
|
1937
1984
|
let slot = side === "low" ? "outsideLow" : "outsideHigh", canonicalX = side === "low" ? endpointX - LABEL_GAP - textSize.width : endpointX + LABEL_GAP, lane = side === "low" ? { x: valueBody.x, y: rowLane.y, w: Math.max(0, endpointX - valueBody.x), h: rowLane.h } : {
|
|
@@ -2030,7 +2077,7 @@ function compactNameRequests(name, cat, x, bottom, lineH, font, boldWeight, meas
|
|
|
2030
2077
|
}), requests;
|
|
2031
2078
|
}
|
|
2032
2079
|
function layoutRowIntervals(data, options, mode) {
|
|
2033
|
-
let warnings = [], theme = chartTheme(options), size = resolveSize(options.size), paletteRamp = chartPalette(theme, options.palette, warnings), measure = options.measure ?? defaultMeasurer, valueSpec = seriesRasterFormatter(options.format, rowIntervalValues(data, options), options.locale?.language, options.unit
|
|
2080
|
+
let warnings = [], theme = chartTheme(options), size = resolveSize(options.size), paletteRamp = chartPalette(theme, options.palette, warnings), measure = options.measure ?? defaultMeasurer, valueSpec = seriesRasterFormatter(options.format, rowIntervalValues(data, options), options.locale?.language, options.unit), fmt = valueSpec.fmt, labelOn2 = (kind) => labelOn(options, kind, ["category", "valueLine"]), highlights = new Set(resolveHighlight(options.highlight)), ctx = { warnings, theme, paletteRamp, fmt, forSeries: valueSpec.forSeries, labelOn: labelOn2, highlights }, plan = mode === "football-field" ? planFootballField(data, options, ctx) : planTornado(data, options, ctx), cats = plan.cats;
|
|
2034
2081
|
mode === "football-field" && cats.length < data.categories.length && (options = { ...options, notes: { ...options.notes, show: [.../* @__PURE__ */ new Set([...options.notes?.show ?? ["note"], "disclosure"])] } });
|
|
2035
2082
|
let rows = plan.rows, spine = plan.spine, rowFmt = plan.valueFmt ?? fmt, rawLo = Math.min(
|
|
2036
2083
|
minOf(rows.flatMap((row) => row.pieces.flatMap((piece) => [piece.from, piece.to]))),
|
|
@@ -2120,7 +2167,7 @@ function layoutRowIntervals(data, options, mode) {
|
|
|
2120
2167
|
);
|
|
2121
2168
|
nodes.push(...axis.nodes), axes.push(axis.axis);
|
|
2122
2169
|
}
|
|
2123
|
-
let marks = { rows: [], referenceTicks: [], rowTints: [] }, labelRequests = axisShown && axisTitle ? [valueAxisTitleRequest(axisTitle, { x: rowPlan.titleEnd ?? plot.x + plot.w, y: plot.y + plot.h + 6 + (rowPlan.titleRow ? tickRowH + 2 : 0) }, "end", "axis:x:title")] : [], currentX = spine ? x(spine.value) : void 0, canvas = { x: 0, y: 0, w: size.width, h: size.height }, currentRuleClaim = mode === "football-field" && currentX !== void 0 && rectContains(canvas, plot, 0) ? { x: currentX - SPINE_CLAIM_HALF_WIDTH, y: plot.y, w: SPINE_CLAIM_HALF_WIDTH * 2, h: plot.h } : void 0;
|
|
2170
|
+
let marks = { rows: [], referenceTicks: [], rowTints: [] }, caseTexts = /* @__PURE__ */ new Map(), labelRequests = axisShown && axisTitle ? [valueAxisTitleRequest(axisTitle, { x: rowPlan.titleEnd ?? plot.x + plot.w, y: plot.y + plot.h + 6 + (rowPlan.titleRow ? tickRowH + 2 : 0) }, "end", "axis:x:title")] : [], currentX = spine ? x(spine.value) : void 0, canvas = { x: 0, y: 0, w: size.width, h: size.height }, currentRuleClaim = mode === "football-field" && currentX !== void 0 && rectContains(canvas, plot, 0) ? { x: currentX - SPINE_CLAIM_HALF_WIDTH, y: plot.y, w: SPINE_CLAIM_HALF_WIDTH * 2, h: plot.h } : void 0;
|
|
2124
2171
|
rows.forEach((row, ri) => {
|
|
2125
2172
|
let cat = row.cat, rowY = band.position(ri), rowCenter = band.center(ri), gapHalf = (band.step - band.bandwidth) / 2, laneH = Math.max(band.bandwidth, measure("0", labelFont).height) + 6, rowLane = compact ? { x: valueBody.x, y: rowCenter - laneH / 2, w: valueBody.w, h: laneH } : {
|
|
2126
2173
|
x: valueBody.x,
|
|
@@ -2252,18 +2299,20 @@ function layoutRowIntervals(data, options, mode) {
|
|
|
2252
2299
|
},
|
|
2253
2300
|
penalty: 2
|
|
2254
2301
|
}
|
|
2255
|
-
];
|
|
2302
|
+
], shows = Object.fromEntries(endpoint.fields.map((key) => [`field:${key}`, text]));
|
|
2256
2303
|
labelRequests.push({
|
|
2257
2304
|
id: endpoint.id,
|
|
2258
2305
|
kind: "point",
|
|
2259
2306
|
owner: endpoint.owner,
|
|
2260
2307
|
text,
|
|
2308
|
+
// A tornado case states its text for the driver's record once it is drawn (marks.shown).
|
|
2309
|
+
...endpoint.recordOwner ? {} : { shows },
|
|
2261
2310
|
lines: [text],
|
|
2262
2311
|
typeRole: "label",
|
|
2263
2312
|
font: labelFont,
|
|
2264
2313
|
priority: PRIORITY.endpoint,
|
|
2265
2314
|
candidates
|
|
2266
|
-
});
|
|
2315
|
+
}), endpoint.recordOwner && caseTexts.set(endpoint.id, { owner: endpoint.recordOwner, shows });
|
|
2267
2316
|
}
|
|
2268
2317
|
if (compact)
|
|
2269
2318
|
pushAll(labelRequests, compactNameRequests(compact.names[ri], cat, plot0.x, band.position(ri) - COMPACT_NAME_GAP, nameLineH, tickFont, emphasisWeight(theme), measure));
|
|
@@ -2391,8 +2440,13 @@ function layoutRowIntervals(data, options, mode) {
|
|
|
2391
2440
|
measure,
|
|
2392
2441
|
plot,
|
|
2393
2442
|
labelPad: LABEL_PAD
|
|
2394
|
-
}), solved = solveLabels(labelRequests, occupied, solveCtx)
|
|
2395
|
-
|
|
2443
|
+
}), solved = solveLabels(labelRequests, occupied, solveCtx), shown = solved.placed.flatMap((label) => {
|
|
2444
|
+
let stated = label.hidden === void 0 ? caseTexts.get(label.id) : void 0;
|
|
2445
|
+
return stated ? [{ ...stated, drawn: !0 }] : [];
|
|
2446
|
+
});
|
|
2447
|
+
if (spine?.baseText !== void 0 && solved.placed.some((label) => label.id === `valueLine:${spine.key}` && label.hidden === void 0))
|
|
2448
|
+
for (let cat of cats) shown.push({ owner: { categoryId: cat.id }, shows: { "field:base": spine.baseText }, drawn: !0 });
|
|
2449
|
+
shown.length > 0 && (marks.shown = shown), applyValueAxisTitleInk(solved.placed);
|
|
2396
2450
|
for (let label of solved.placed) label.id.endsWith(COMPACT_RANGE_SUFFIX) && (label.ink = { token: "inkMuted" });
|
|
2397
2451
|
pushAll(warnings, solved.warnings), pushAll(
|
|
2398
2452
|
nodes,
|
|
@@ -2583,8 +2637,8 @@ function planFootballField(data, options, ctx) {
|
|
|
2583
2637
|
}
|
|
2584
2638
|
],
|
|
2585
2639
|
endpoints: [
|
|
2586
|
-
{ id: `rangeLow:${series.id}:${cat.id}`, owner, value: cell.range.low, side: "low" },
|
|
2587
|
-
{ id: `rangeHigh:${series.id}:${cat.id}`, owner, value: cell.range.high, side: "high" }
|
|
2640
|
+
{ id: `rangeLow:${series.id}:${cat.id}`, owner, value: cell.range.low, side: "low", fields: ["low"] },
|
|
2641
|
+
{ id: `rangeHigh:${series.id}:${cat.id}`, owner, value: cell.range.high, side: "high", fields: ["high"] }
|
|
2588
2642
|
],
|
|
2589
2643
|
...mid ? { mid } : {},
|
|
2590
2644
|
leftText: fmt(cell.range.low),
|
|
@@ -2887,20 +2941,26 @@ function planTornado(data, options, ctx) {
|
|
|
2887
2941
|
id: `tornadoCase:${cat.id}`,
|
|
2888
2942
|
owner: { seriesId: highSeries.id, categoryId: cat.id },
|
|
2889
2943
|
value: row.high,
|
|
2890
|
-
side: "high"
|
|
2944
|
+
side: "high",
|
|
2945
|
+
fields: ["low", "high"],
|
|
2946
|
+
recordOwner: { categoryId: cat.id }
|
|
2891
2947
|
}
|
|
2892
2948
|
] : [
|
|
2893
2949
|
{
|
|
2894
2950
|
id: `tornadoLow:${lowSeries.id}:${cat.id}`,
|
|
2895
2951
|
owner: { seriesId: lowSeries.id, categoryId: cat.id },
|
|
2896
2952
|
value: row.low,
|
|
2897
|
-
side: row.low < row.high ? "low" : "high"
|
|
2953
|
+
side: row.low < row.high ? "low" : "high",
|
|
2954
|
+
fields: ["low"],
|
|
2955
|
+
recordOwner: { categoryId: cat.id }
|
|
2898
2956
|
},
|
|
2899
2957
|
{
|
|
2900
2958
|
id: `tornadoHigh:${highSeries.id}:${cat.id}`,
|
|
2901
2959
|
owner: { seriesId: highSeries.id, categoryId: cat.id },
|
|
2902
2960
|
value: row.high,
|
|
2903
|
-
side: row.high > row.low ? "high" : "low"
|
|
2961
|
+
side: row.high > row.low ? "high" : "low",
|
|
2962
|
+
fields: ["high"],
|
|
2963
|
+
recordOwner: { categoryId: cat.id }
|
|
2904
2964
|
}
|
|
2905
2965
|
];
|
|
2906
2966
|
return {
|
|
@@ -2962,7 +3022,8 @@ function planTornado(data, options, ctx) {
|
|
|
2962
3022
|
key: "baseValue",
|
|
2963
3023
|
value: base.value,
|
|
2964
3024
|
text: base.label ?? spineComputedText,
|
|
2965
|
-
computedText: spineComputedText
|
|
3025
|
+
computedText: spineComputedText,
|
|
3026
|
+
...base.label === void 0 ? { baseText: fmt(base.value) } : {}
|
|
2966
3027
|
},
|
|
2967
3028
|
...legend ? { legend } : {},
|
|
2968
3029
|
methodNotes: [
|