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,7 +6,7 @@ import {
|
|
|
6
6
|
ratioTierCanRender,
|
|
7
7
|
ratioTierMetrics,
|
|
8
8
|
ratioTierSpacingWarnings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AFQZBCME.js";
|
|
10
10
|
import {
|
|
11
11
|
FORCE_CATEGORY_RANKS,
|
|
12
12
|
STAIRCASE_MAX_PAD,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
staircaseRoom,
|
|
22
22
|
staircaseState,
|
|
23
23
|
withCategoryRanks
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GIJM4MP4.js";
|
|
25
25
|
import {
|
|
26
26
|
ANOMALY_FLAG_GAP,
|
|
27
27
|
ANOMALY_FLAG_H,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
drawAnomalyRules,
|
|
39
39
|
emitAnomalyFlag,
|
|
40
40
|
refuseColumnEncodings
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-EZ5KUBYF.js";
|
|
42
42
|
import {
|
|
43
43
|
DEFAULT_OTHERS_SHADE
|
|
44
44
|
} from "./chunk-RQ5DNYLG.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
stackConnectors,
|
|
57
57
|
totalLabelCandidates,
|
|
58
58
|
withValueLabelDefaults
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-GEEHXLFQ.js";
|
|
60
60
|
import {
|
|
61
61
|
REFERENCE_MARKER_R,
|
|
62
62
|
breakAxisScale,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
referenceTickGeometry,
|
|
68
68
|
stepFitsAxisBreak,
|
|
69
69
|
withBandValueNotes
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-REIIGIJG.js";
|
|
71
71
|
import {
|
|
72
72
|
restValueHiding,
|
|
73
73
|
restValuesHidden
|
|
@@ -83,15 +83,15 @@ import {
|
|
|
83
83
|
hasLabelPosition,
|
|
84
84
|
positionBarLabel,
|
|
85
85
|
refuseLabelPosition
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-7UUSHA7H.js";
|
|
87
87
|
import {
|
|
88
88
|
resolveCellRange
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-ZPQ3VOAE.js";
|
|
90
90
|
import {
|
|
91
91
|
roundingUnavailable,
|
|
92
92
|
shareRoundingNotes,
|
|
93
93
|
sumConsistentShares
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-4YKS2JDE.js";
|
|
95
95
|
import {
|
|
96
96
|
accumulateStack,
|
|
97
97
|
averageMarkerId,
|
|
@@ -118,12 +118,12 @@ import {
|
|
|
118
118
|
warnShareFormatIgnored,
|
|
119
119
|
withoutShareAnnotations,
|
|
120
120
|
withoutShareMean
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-7QUWM5W6.js";
|
|
122
122
|
import {
|
|
123
123
|
applyCategoryViewport,
|
|
124
124
|
liveWindowOptions,
|
|
125
125
|
viewportMeanSpan
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-R2RLERPT.js";
|
|
127
127
|
import {
|
|
128
128
|
STACK_ROOM,
|
|
129
129
|
acrossValueLines,
|
|
@@ -139,47 +139,48 @@ import {
|
|
|
139
139
|
raiseOverRules,
|
|
140
140
|
segmentLabelCandidates,
|
|
141
141
|
segmentTooShort,
|
|
142
|
+
shownParts,
|
|
142
143
|
valueRowCrowded,
|
|
143
144
|
valueShareLines,
|
|
144
145
|
warnShareParts,
|
|
145
146
|
warnSliverLabels
|
|
146
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-RLX6VODQ.js";
|
|
147
148
|
import {
|
|
148
149
|
axisBreakHeightOrderWarning,
|
|
149
150
|
axisBreakInvalid,
|
|
150
151
|
breakStyleRefusal,
|
|
151
152
|
stackBreakReversesOrder
|
|
152
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-NUASZPS7.js";
|
|
153
154
|
import {
|
|
154
155
|
valueLineExtent
|
|
155
156
|
} from "./chunk-QPWRHDLZ.js";
|
|
156
157
|
import {
|
|
157
158
|
isIncomplete,
|
|
158
159
|
warnShareRoundingDrift
|
|
159
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-5QMM354E.js";
|
|
160
161
|
import {
|
|
161
162
|
emitEventLane,
|
|
162
163
|
percentCellsOnly,
|
|
163
164
|
percentLevels,
|
|
164
165
|
runAnnotatePass,
|
|
165
166
|
settleEventLane
|
|
166
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-QDFX2KAP.js";
|
|
167
168
|
import {
|
|
168
169
|
stepDownFont
|
|
169
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
170
171
|
import {
|
|
171
172
|
chartPalette
|
|
172
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-AIPOSNVG.js";
|
|
173
174
|
import {
|
|
174
175
|
restDetailsWarning,
|
|
175
176
|
restLabel,
|
|
176
177
|
restSum,
|
|
177
178
|
topNCut
|
|
178
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-USATDW6O.js";
|
|
179
180
|
import {
|
|
180
181
|
yearSpan,
|
|
181
182
|
yearSpanFromLabels
|
|
182
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-PRVX4PAO.js";
|
|
183
184
|
import {
|
|
184
185
|
NO_STACK_MEAN,
|
|
185
186
|
drawnVariant,
|
|
@@ -194,13 +195,13 @@ import {
|
|
|
194
195
|
BAND_PAD,
|
|
195
196
|
VALUE_LINE_RESERVE,
|
|
196
197
|
hiddenValueLineReserve
|
|
197
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-R4MVXUAG.js";
|
|
198
199
|
import {
|
|
199
200
|
valueLineLabelsOn
|
|
200
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-77L6QGIG.js";
|
|
201
202
|
import {
|
|
202
203
|
structureCount
|
|
203
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
204
205
|
import {
|
|
205
206
|
DIGIT_SEAT,
|
|
206
207
|
PLOT_FLOOR_PX,
|
|
@@ -236,7 +237,7 @@ import {
|
|
|
236
237
|
verticalNameRect,
|
|
237
238
|
yearRowRequests,
|
|
238
239
|
yieldToRotatedName
|
|
239
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-YM4MVABU.js";
|
|
240
241
|
import {
|
|
241
242
|
PARTIAL_KEY,
|
|
242
243
|
POINTED_NOTES,
|
|
@@ -278,13 +279,13 @@ import {
|
|
|
278
279
|
toDateFont,
|
|
279
280
|
toDateLabel,
|
|
280
281
|
toDateRoom
|
|
281
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-AUSZDYGE.js";
|
|
282
283
|
import {
|
|
283
284
|
disclosuresShown,
|
|
284
285
|
knownPartsLead,
|
|
285
286
|
rankKeyShown,
|
|
286
287
|
recordFreedChrome
|
|
287
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-WD5NJHZG.js";
|
|
288
289
|
import {
|
|
289
290
|
emptyIdRecord
|
|
290
291
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -293,12 +294,14 @@ import {
|
|
|
293
294
|
formatWithSpec,
|
|
294
295
|
formatterFromExample,
|
|
295
296
|
parseFormatExample,
|
|
297
|
+
percentChangeSpec,
|
|
296
298
|
roundedNumber,
|
|
299
|
+
ruleStatistics,
|
|
297
300
|
seriesRasterFormatter,
|
|
298
301
|
shareFormatExample,
|
|
299
|
-
|
|
302
|
+
statisticFormatter,
|
|
300
303
|
withChartMarks
|
|
301
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-3JG764MI.js";
|
|
302
305
|
import {
|
|
303
306
|
NOT_AVAILABLE,
|
|
304
307
|
NOT_MEANINGFUL,
|
|
@@ -307,6 +310,7 @@ import {
|
|
|
307
310
|
currentSmallValues,
|
|
308
311
|
formatAuthoredPercent,
|
|
309
312
|
formatAutomaticPercent,
|
|
313
|
+
formatScopeKey,
|
|
310
314
|
formatShare,
|
|
311
315
|
localeStrings,
|
|
312
316
|
notApplicableGlyph,
|
|
@@ -314,7 +318,7 @@ import {
|
|
|
314
318
|
shareSetFormatter,
|
|
315
319
|
stringFields,
|
|
316
320
|
withLocaleStrings
|
|
317
|
-
} from "./chunk-
|
|
321
|
+
} from "./chunk-FYFXOLWI.js";
|
|
318
322
|
import {
|
|
319
323
|
cellMeta
|
|
320
324
|
} from "./chunk-O3VN6BTL.js";
|
|
@@ -359,7 +363,7 @@ import {
|
|
|
359
363
|
textScaleOf,
|
|
360
364
|
themeForWidth,
|
|
361
365
|
withSegmentSeams
|
|
362
|
-
} from "./chunk-
|
|
366
|
+
} from "./chunk-XAH4EWJT.js";
|
|
363
367
|
import {
|
|
364
368
|
fmtPathNumber
|
|
365
369
|
} from "./chunk-6IUK6PAH.js";
|
|
@@ -708,7 +712,7 @@ function integratedVarianceValues(pyRef, cats, dataSeries, stackTotals, stacks,
|
|
|
708
712
|
}), cats.forEach((category, ci) => {
|
|
709
713
|
let reference = pyRef.vals[ci].v;
|
|
710
714
|
if (!stacks[ci].hasValue || reference === null) return;
|
|
711
|
-
let current = stackTotals[category.id], displayedCurrent = roundedForDisplay(current), displayedReference = roundedForDisplay(reference), growthPct =
|
|
715
|
+
let current = stackTotals[category.id], displayedCurrent = roundedForDisplay(current), displayedReference = roundedForDisplay(reference), growthPct = reference > 0 ? (current / reference - 1) * 100 : null, displayedGrowthPct = growthPct === null ? null : roundedNumber(growthPct, growthSpec), tone = growthPct === null || growthPct === 0 ? "neutral" : growthPct > 0 == (integratedDirection === "higherIsBetter") ? "good" : "bad", text = growthPct === null || displayedGrowthPct === null ? "n.m." : `${growthPct > 0 ? "+" : growthPct < 0 ? "\u2212" : ""}${growthFormatter(Math.abs(displayedGrowthPct))}`;
|
|
712
716
|
if (pyGrowth.set(category.id, {
|
|
713
717
|
categoryId: category.id,
|
|
714
718
|
referenceSeriesId: pyRef.id,
|
|
@@ -720,12 +724,19 @@ function integratedVarianceValues(pyRef, cats, dataSeries, stackTotals, stacks,
|
|
|
720
724
|
displayedGrowthPct,
|
|
721
725
|
tone,
|
|
722
726
|
text
|
|
723
|
-
}),
|
|
727
|
+
}), growthPct === null && warnings.push({
|
|
724
728
|
code: "ref-nonpositive",
|
|
725
729
|
severity: "warn",
|
|
726
730
|
message: `category '${category.id}': displayed PY reference ${displayedReference} \u2264 0 \u2014 growth suppressed and marked n.m.`,
|
|
727
731
|
owner: { categoryId: category.id, seriesId: pyRef.id }
|
|
728
|
-
}), displayedGrowthPct !== null && displayedReference
|
|
732
|
+
}), displayedGrowthPct !== null && displayedReference <= 0)
|
|
733
|
+
warnings.push({
|
|
734
|
+
code: "integrated-growth-rounding-gap",
|
|
735
|
+
severity: "info",
|
|
736
|
+
message: `category '${category.id}': growth ${growthFormatter(displayedGrowthPct)} is computed from the unrounded totals; the printed ${displayedCurrent} and the printed reference ${displayedReference} give no growth figure`,
|
|
737
|
+
owner: { categoryId: category.id, seriesId: pyRef.id }
|
|
738
|
+
});
|
|
739
|
+
else if (displayedGrowthPct !== null) {
|
|
729
740
|
let fromPrintedTotals = roundedNumber(
|
|
730
741
|
(displayedCurrent / displayedReference - 1) * 100,
|
|
731
742
|
growthSpec
|
|
@@ -823,8 +834,8 @@ function resolveColumnDomain(data, options, warnings) {
|
|
|
823
834
|
lostDetails && warnings.push(lostDetails);
|
|
824
835
|
let stackedLike = variant !== "grouped", { pyRef, uniformScenario } = columnScenarios(options, variant, cats, dataSeries, refSeries, warnings), lines = columnLines(options, stackedLike, dataSeries, warnings, cats.some((cat) => cat.total100 !== void 0)), va = options.valueAxis ?? {}, viewportOn = options.window !== void 0 || options.viewDomain !== void 0;
|
|
825
836
|
viewportOn && refuseUnorderedViewport(options, othersId);
|
|
826
|
-
let ribbons = columnRibbons(options, variant, stackedLike, dataSeries, warnings), computedTotal = variant === "stacked100" ? weightedTotal(cats, dataSeries, warnings) : void 0, ranked = ribbons.ribbonsOn && ribbons.ribbonRank, source = columnBasis(variant, cats, dataSeries, viewportOn ? [] : warnings, ranked), anomaly, anomalyValues = [];
|
|
827
|
-
options.anomaly && ({ anomaly, values: anomalyValues } = columnAnomalyModel(options.anomaly, cats, dataSeries[0], source.absOf, fmt, statFmt, options.locale?.language, warnings, options.strings));
|
|
837
|
+
let ribbons = columnRibbons(options, variant, stackedLike, dataSeries, warnings), computedTotal = variant === "stacked100" ? weightedTotal(cats, dataSeries, warnings) : void 0, totalStatFmt = computedTotal ? statisticFormatter(Object.values(computedTotal.values), valueSpec.percentSpec) : void 0, ranked = ribbons.ribbonsOn && ribbons.ribbonRank, source = columnBasis(variant, cats, dataSeries, viewportOn ? [] : warnings, ranked), anomaly, anomalyValues = [];
|
|
838
|
+
options.anomaly && ({ anomaly, values: anomalyValues } = columnAnomalyModel(options.anomaly, cats, dataSeries[0], source.absOf, fmt, statFmt, options.locale?.language, warnings, options.strings, ruleStatistics(valueSpec.spec, fmt)));
|
|
828
839
|
let addsOver = (series) => !stackedLike || stackAdds(series.map((s) => ({ label: s.label, unit: s.unit, pctCells: s.vals.some((val) => val.isPct) })), options.unit, options.sharesOfOneWhole), partsAdd = addsOver(dataSeries), meanValue = partsAdd ? plottedMean("all", stackedLike, cats.length, dataSeries, (series, _, ci) => source.plottedOf(series, ci)) : void 0;
|
|
829
840
|
variant === "stacked100" && (options = withoutShareMean(options, meanValue, warnings));
|
|
830
841
|
let averageMarkerScope2 = averageMarkerScope(options.averageMarker) ?? "all", averageMarkerRequested = options.averageMarker !== void 0 && options.averageMarker !== !1 && !averageOfWholeShares(variant, averageMarkerScope2, warnings) && !averageOfUnaddedSums(addsOver(averageMarkerScope2 === "all" ? dataSeries : dataSeries.filter((s) => averageMarkerScope2.includes(s.id))), warnings), averageRun = averageMarkerRequested ? averageMarkerMean(options.averageMarker, averageMarkerScope2, cats, stackedLike, dataSeries, (series, _, ci) => source.plottedOf(series, ci), normalized.cats.map((c) => c.id)) : void 0, averageMark = averageRun?.mean;
|
|
@@ -844,7 +855,7 @@ function resolveColumnDomain(data, options, warnings) {
|
|
|
844
855
|
annotations: options.annotations
|
|
845
856
|
}) : void 0;
|
|
846
857
|
population && (options = liveWindowOptions({ ...options, annotations: population.annotations }, population.sampling));
|
|
847
|
-
let meanSpan = viewportMeanSpan(population), basis = population ? columnBasis(variant, cats, dataSeries, warnings, ranked) : source, pyGrowth = pyRef ? integratedVarianceValues(pyRef, cats, dataSeries, basis.stackTotals, basis.stacks, (value) => roundedNumber(value, valueSpec.spec), warnings, options.locale?.language) : /* @__PURE__ */ new Map(), lineExtent = valueLineExtent(options.annotations), { rendered, ...extent } = columnValueDomain(va, variant, cats, dataSeries, refSeries, basis.plottedOf, basis.rangeOf, basis.stacks, lineExtent, warnings), corridor = anomalyCorridor(anomaly, anomalyValues, extent.dLo, extent.dHi, statFmt, warnings, options.strings), grandTotalsRequested = grandTotalRequested(options.grandTotalLabels, variant, warnings, partsAdd), gtContent = grandTotalsRequested ? contentOf(options, "grandTotal", ["absolute"]) : null;
|
|
858
|
+
let meanSpan = viewportMeanSpan(population), basis = population ? columnBasis(variant, cats, dataSeries, warnings, ranked) : source, pyGrowth = pyRef ? integratedVarianceValues(pyRef, cats, dataSeries, basis.stackTotals, basis.stacks, (value) => roundedNumber(value, valueSpec.spec), warnings, options.locale?.language) : /* @__PURE__ */ new Map(), lineExtent = valueLineExtent(options.annotations), { rendered, ...extent } = columnValueDomain(va, variant, cats, dataSeries, refSeries, basis.plottedOf, basis.rangeOf, basis.stacks, lineExtent, warnings), corridor = anomalyCorridor(anomaly, anomalyValues, extent.dLo, extent.dHi, statFmt, warnings, options.strings, ruleStatistics(valueSpec.spec, fmt)), grandTotalsRequested = grandTotalRequested(options.grandTotalLabels, variant, warnings, partsAdd), gtContent = grandTotalsRequested ? contentOf(options, "grandTotal", ["absolute"]) : null;
|
|
848
859
|
options.grandTotalLabels === !0 && options.labels === !1 && grandTotalsRequested && warnings.push({
|
|
849
860
|
code: "grand-total-labels-off",
|
|
850
861
|
severity: "warn",
|
|
@@ -861,7 +872,7 @@ function resolveColumnDomain(data, options, warnings) {
|
|
|
861
872
|
});
|
|
862
873
|
return variant === "stacked" && parts.length !== dataSeries.length ? [] : [{ c, parts }];
|
|
863
874
|
}) : [], shareTexts = /* @__PURE__ */ new Map(), roundingAdjustments = [], shareExample = shareFormatExample(options, dataSeries), spec = shareExample ? parseFormatExample(shareExample) : void 0;
|
|
864
|
-
if (options.rounding
|
|
875
|
+
if (options.rounding === "sum-consistent")
|
|
865
876
|
for (let { c, parts } of wholes) {
|
|
866
877
|
let rounded = sumConsistentShares(parts.map((part) => part.share), options.locale?.language, spec && withChartMarks(spec, options.locale?.language), shareSet.decimals);
|
|
867
878
|
rounded?.warning ? warnings.push(roundingUnavailable(c.label ?? c.id, rounded.warning)) : rounded && parts.forEach((part, index) => {
|
|
@@ -911,6 +922,7 @@ function resolveColumnDomain(data, options, warnings) {
|
|
|
911
922
|
...lines,
|
|
912
923
|
...ribbons,
|
|
913
924
|
computedTotal,
|
|
925
|
+
...totalStatFmt ? { totalStatFmt } : {},
|
|
914
926
|
va,
|
|
915
927
|
...basis,
|
|
916
928
|
anomaly,
|
|
@@ -942,15 +954,18 @@ function seriesCagrs(options, cats, dataSeries, absOf, warnings) {
|
|
|
942
954
|
`seriesLabels.cagr from '${from.label ?? from.id}' to '${to.label ?? to.id}' ${from.partial || to.partial ? "ends on a partial period" : "spans no measured years"}; no series CAGR is printed`,
|
|
943
955
|
"give the categories ISO dates or year-bearing labels, and anchor the span on complete periods"
|
|
944
956
|
), out;
|
|
945
|
-
let spec = typeof span == "object" && span.format !== void 0 ? withChartMarks({ ...parseFormatExample(span.format), signed: !0 }, options.locale?.language) : void 0, only = options.seriesLabels?.only === void 0 ? void 0 : new Set(options.seriesLabels.only)
|
|
957
|
+
let spec = typeof span == "object" && span.format !== void 0 ? withChartMarks({ ...parseFormatExample(span.format), signed: !0 }, options.locale?.language) : void 0, only = options.seriesLabels?.only === void 0 ? void 0 : new Set(options.seriesLabels.only), rateOf = (s) => {
|
|
958
|
+
let a = absOf(s, fi), b = absOf(s, ti);
|
|
959
|
+
return a === null || b === null ? null : cagr(a, b, years);
|
|
960
|
+
}, rates = spec ? void 0 : percentChangeSpec(dataSeries.flatMap((s) => only && !only.has(s.id) ? [] : [rateOf(s)]), options.locale?.language, "%");
|
|
946
961
|
for (let s of dataSeries) {
|
|
947
962
|
if (only && !only.has(s.id)) continue;
|
|
948
|
-
let a = absOf(s, fi), b = absOf(s, ti), rate =
|
|
963
|
+
let a = absOf(s, fi), b = absOf(s, ti), rate = rateOf(s);
|
|
949
964
|
if (rate === null) {
|
|
950
965
|
warn("series-cagr-undefined", `'${s.label}' has no CAGR from '${from.label ?? from.id}' to '${to.label ?? to.id}': a missing value, a start at or below zero or a negative end; its name prints alone`, "label the growth of this series in the text, or leave it out of seriesLabels.only");
|
|
951
966
|
continue;
|
|
952
967
|
}
|
|
953
|
-
let period = fi !== 0 || ti !== cats.length - 1 ? ` ${from.label ?? from.id}\u2013${to.label ?? to.id}:` : "", text = `${s.label}${period} ${
|
|
968
|
+
let period = fi !== 0 || ti !== cats.length - 1 ? ` ${from.label ?? from.id}\u2013${to.label ?? to.id}:` : "", text = `${s.label}${period} ${formatWithSpec(rate, spec ?? rates)} p.a.`, ref = (end, category) => `${end}:categoryId=${category.id}/seriesId=${s.id}`;
|
|
954
969
|
out.set(s.id, {
|
|
955
970
|
text,
|
|
956
971
|
placed: {
|
|
@@ -994,9 +1009,9 @@ function remembered(format) {
|
|
|
994
1009
|
};
|
|
995
1010
|
}
|
|
996
1011
|
function rasterFormatter(example, seriesValues, locale, unit, target, shared) {
|
|
997
|
-
let key = JSON.stringify([example, locale, unit, target, currentSmallValues(), seriesValues, shared]), known = rasterFormatters.get(key);
|
|
1012
|
+
let key = JSON.stringify([example, locale, unit, target, currentSmallValues(), formatScopeKey(), seriesValues, shared]), known = rasterFormatters.get(key);
|
|
998
1013
|
if (known) return known;
|
|
999
|
-
let
|
|
1014
|
+
let levels = seriesValues.flatMap(([, values]) => values), rangeEnds = example ? [] : seriesValues.flatMap(([, , ranges]) => ranges.flatMap((range) => range ? range.slice(0, 2) : [])), made = seriesRasterFormatter(example, [...levels, ...rangeEnds], locale, unit), bySeries = /* @__PURE__ */ new Map(), formatter = {
|
|
1000
1015
|
...made,
|
|
1001
1016
|
fmt: remembered(made.fmt),
|
|
1002
1017
|
fmtSigned: remembered(made.fmtSigned),
|
|
@@ -1034,6 +1049,10 @@ function planEdgeNames(domain) {
|
|
|
1034
1049
|
function shareKey(categoryId, seriesId) {
|
|
1035
1050
|
return `${categoryId}\0${seriesId}`;
|
|
1036
1051
|
}
|
|
1052
|
+
function cellValueFmt(domain, s, ci) {
|
|
1053
|
+
let val = s.vals[ci];
|
|
1054
|
+
return domain.totalStatFmt && !val.format && !s.format && domain.cats[ci]?.id === domain.computedTotal?.categoryId ? domain.totalStatFmt : val.isPct && !val.format && !s.format ? domain.valueSpec.fmtPercent : domain.valueSpec.forSeries(s, val.format);
|
|
1055
|
+
}
|
|
1037
1056
|
function shareTextOf(domain, categoryId, seriesId, pct, authored) {
|
|
1038
1057
|
return domain.shareTexts.get(shareKey(categoryId, seriesId)) ?? (authored ? domain.authoredPctFmt(pct) : domain.pctFmt(pct));
|
|
1039
1058
|
}
|
|
@@ -1094,7 +1113,10 @@ function columnBars(domain, paints, area, marks, nodes, claims) {
|
|
|
1094
1113
|
rangeNodes.push(...whisker.nodes);
|
|
1095
1114
|
for (let claim of whisker.claims) claims.claim(claim.rect, claim.kind, claim.owner, claim.part);
|
|
1096
1115
|
rangeMarks.push(whisker.mark);
|
|
1097
|
-
}, groupSlots = groupedOffsets(band.bandwidth, dataSeries.length)
|
|
1116
|
+
}, groupSlots = groupedOffsets(band.bandwidth, dataSeries.length), barTexts = (s, ci) => {
|
|
1117
|
+
let val = s.vals[ci], shown = cellValueFmt(domain, s, ci)(val.isPct && val.v !== null ? val.v : absOf(s, ci));
|
|
1118
|
+
return { drawn: val.isPct && !val.format && !s.format ? valueSpec.forSeries(s, val.format)(absOf(s, ci)) : shown, shown };
|
|
1119
|
+
};
|
|
1098
1120
|
return cats.forEach((c, ci) => {
|
|
1099
1121
|
let bx = band.position(ci), bw = band.bandwidth, stack = stacks[ci], segs = [];
|
|
1100
1122
|
if (dataSeries.forEach((s, si) => {
|
|
@@ -1102,7 +1124,7 @@ function columnBars(domain, paints, area, marks, nodes, claims) {
|
|
|
1102
1124
|
if (variant === "grouped") {
|
|
1103
1125
|
let v2 = plottedOf(s, ci), group = groupSlots[si], subW = group.size, x = bx + group.offset;
|
|
1104
1126
|
if (subCenters.set(sk(s.id, c.id), x + subW / 2), v2 === null) return;
|
|
1105
|
-
let yv = y(v2), rect2 = { x, y: Math.min(yv, y0), w: subW, h: Math.max(Math.abs(yv - y0), 0.5) }, fill = paints.cell(s, val, c, si), pattern = paints.pattern(s, val, c);
|
|
1127
|
+
let yv = y(v2), rect2 = { x, y: Math.min(yv, y0), w: subW, h: Math.max(Math.abs(yv - y0), 0.5) }, fill = paints.cell(s, val, c, si), pattern = paints.pattern(s, val, c), texts2 = barTexts(s, ci);
|
|
1106
1128
|
emit({
|
|
1107
1129
|
nodeId,
|
|
1108
1130
|
rect: rect2,
|
|
@@ -1113,7 +1135,8 @@ function columnBars(domain, paints, area, marks, nodes, claims) {
|
|
|
1113
1135
|
outline: paints.outline(c),
|
|
1114
1136
|
owner,
|
|
1115
1137
|
part: "bar",
|
|
1116
|
-
displayValue:
|
|
1138
|
+
displayValue: texts2.drawn,
|
|
1139
|
+
shows: { value: texts2.shown },
|
|
1117
1140
|
...anomaly?.flagByCategory.has(c.id) ? { displayState: "flagged" } : {}
|
|
1118
1141
|
}), marks.bars.push({ seriesId: s.id, categoryId: c.id, rect: rect2, nodeId });
|
|
1119
1142
|
let flagHere = anomaly?.flagByCategory.get(c.id);
|
|
@@ -1131,7 +1154,7 @@ function columnBars(domain, paints, area, marks, nodes, claims) {
|
|
|
1131
1154
|
typeof val.labelOverride == "string" && bars.push({ s, si, c, ci, v, rect: { x: bx, y: y(v0), w: bw, h: 0 } });
|
|
1132
1155
|
return;
|
|
1133
1156
|
}
|
|
1134
|
-
let rect = { x: bx, y: y(Math.max(v0, v1)), w: bw, h: Math.max(Math.abs(y(v0) - y(v1)), 0.5) };
|
|
1157
|
+
let rect = { x: bx, y: y(Math.max(v0, v1)), w: bw, h: Math.max(Math.abs(y(v0) - y(v1)), 0.5) }, texts = barTexts(s, ci);
|
|
1135
1158
|
emit({
|
|
1136
1159
|
nodeId,
|
|
1137
1160
|
rect,
|
|
@@ -1142,7 +1165,8 @@ function columnBars(domain, paints, area, marks, nodes, claims) {
|
|
|
1142
1165
|
outline: paints.outline(c),
|
|
1143
1166
|
owner,
|
|
1144
1167
|
part: "segment",
|
|
1145
|
-
displayValue: variant === "stacked100" ? shareTextOf(domain, c.id, s.id, v, val.isPct) :
|
|
1168
|
+
displayValue: variant === "stacked100" ? shareTextOf(domain, c.id, s.id, v, val.isPct) : texts.drawn,
|
|
1169
|
+
shows: { value: texts.shown }
|
|
1146
1170
|
}), segs.push({ seriesId: s.id, rect, nodeId }), bars.push({ s, si, c, ci, v, rect });
|
|
1147
1171
|
}), variant === "grouped") return;
|
|
1148
1172
|
let stackTop = y(stack.positive), stackBot = y(stack.negative);
|
|
@@ -1154,10 +1178,9 @@ function columnBars(domain, paints, area, marks, nodes, claims) {
|
|
|
1154
1178
|
}), { rangeMarks, rangeNodes, bars, subCenters, segEdges, flagMarkers };
|
|
1155
1179
|
}
|
|
1156
1180
|
function anomalyFurniture(domain, paints, area, flagMarkers, nodes, claims) {
|
|
1157
|
-
let { theme, measure, cats, corridorShown, statFmt } = domain, anomaly = domain.anomaly, { plot, y } = area;
|
|
1181
|
+
let { theme, measure, cats, corridorShown, statFmt, corridorFmt } = domain, anomaly = domain.anomaly, { plot, y } = area;
|
|
1158
1182
|
drawAnomalyRules(theme, {
|
|
1159
|
-
rules: anomalyRuleLines(theme, anomaly, corridorShown, statFmt, paints.corridor, domain.options.strings),
|
|
1160
|
-
statFmt,
|
|
1183
|
+
rules: anomalyRuleLines(theme, anomaly, corridorShown, { statFmt, corridorFmt }, paints.corridor, domain.options.strings),
|
|
1161
1184
|
plot,
|
|
1162
1185
|
y,
|
|
1163
1186
|
labelX: plot.x + plot.w + 4,
|
|
@@ -1209,7 +1232,7 @@ function referenceMarks(domain, paints, area, refTickYs, nodes, claims, behind,
|
|
|
1209
1232
|
if (v === null) return;
|
|
1210
1233
|
let ry = y(v);
|
|
1211
1234
|
refStyle !== "marker" && refTickYs.set(c.id, [...refTickYs.get(c.id) ?? [], ry]);
|
|
1212
|
-
let bx = band.position(ci), bw = band.bandwidth, cx = band.center(ci), owner = { seriesId: s.id, categoryId: c.id }, nodeId = `ref:${s.id}:${c.id}`, integrated = pyRef?.id === s.id && pyGrowth.has(c.id), reach = outsideTickReach(domain, band, ci) ?? 8, out = integrated || outside && reach >= 4, back = planEnds !== void 0 && !out, ends = back ? planEnds : 2, tickGeometry = referenceTickGeometry("vertical", bx, ry, out ? bw : -ends, bw + (integrated ? 8 : out ? reach : ends));
|
|
1235
|
+
let bx = band.position(ci), bw = band.bandwidth, cx = band.center(ci), owner = { seriesId: s.id, categoryId: c.id }, nodeId = `ref:${s.id}:${c.id}`, refDrawn = valueSpec.forSeries(s, s.vals[ci]?.format)(v), refDisplay = { value: refDrawn, shows: { value: s.vals[ci]?.format === void 0 ? refDrawn : valueSpec.forSeries(s)(v) } }, integrated = pyRef?.id === s.id && pyGrowth.has(c.id), reach = outsideTickReach(domain, band, ci) ?? 8, out = integrated || outside && reach >= 4, back = planEnds !== void 0 && !out, ends = back ? planEnds : 2, tickGeometry = referenceTickGeometry("vertical", bx, ry, out ? bw : -ends, bw + (integrated ? 8 : out ? reach : ends));
|
|
1213
1236
|
if (refStyle === "marker")
|
|
1214
1237
|
nodes.push({
|
|
1215
1238
|
t: "circle",
|
|
@@ -1219,7 +1242,7 @@ function referenceMarks(domain, paints, area, refTickYs, nodes, claims, behind,
|
|
|
1219
1242
|
...referenceMarkerPaint(theme, paints.ref(s)),
|
|
1220
1243
|
owner,
|
|
1221
1244
|
part: "referenceMarker",
|
|
1222
|
-
display:
|
|
1245
|
+
display: refDisplay
|
|
1223
1246
|
});
|
|
1224
1247
|
else {
|
|
1225
1248
|
let line = {
|
|
@@ -1233,7 +1256,7 @@ function referenceMarks(domain, paints, area, refTickYs, nodes, claims, behind,
|
|
|
1233
1256
|
...refStyle === "line" ? { dash: dashToken(theme, "dotted"), lineCap: "round" } : {},
|
|
1234
1257
|
owner,
|
|
1235
1258
|
part: refStyle === "tick" ? "referenceTick" : "referenceLine",
|
|
1236
|
-
display:
|
|
1259
|
+
display: refDisplay
|
|
1237
1260
|
};
|
|
1238
1261
|
back ? (behind.push(line), behindTickYs.set(c.id, [...behindTickYs.get(c.id) ?? [], ry])) : nodes.push(referenceCasing(nodeId, tickGeometry.line, strokeToken(theme, "rule"), owner), line);
|
|
1239
1262
|
}
|
|
@@ -1386,11 +1409,14 @@ function outsideTickReach(domain, band, ci) {
|
|
|
1386
1409
|
}
|
|
1387
1410
|
|
|
1388
1411
|
// src/core/charts/column/labels.ts
|
|
1389
|
-
function
|
|
1412
|
+
function composeParts(domain, content, abs, pct, catLabel, serLabel, authoredPct, valueFmt, ids) {
|
|
1390
1413
|
let parts = [];
|
|
1391
1414
|
for (let c of content)
|
|
1392
1415
|
c === "absolute" && abs !== null ? parts.push([c, valueFmt(abs)]) : c === "percent" && pct !== null ? parts.push([c, ids ? shareTextOf(domain, ids.categoryId, ids.seriesId, pct, authoredPct) : authoredPct ? domain.authoredPctFmt(pct) : domain.pctFmt(pct)]) : c === "category" && catLabel ? parts.push([c, catLabel]) : c === "series" && serLabel && parts.push([c, serLabel]);
|
|
1393
|
-
return
|
|
1416
|
+
return parts;
|
|
1417
|
+
}
|
|
1418
|
+
function composeLines(...args) {
|
|
1419
|
+
return valueShareLines(composeParts(...args));
|
|
1394
1420
|
}
|
|
1395
1421
|
function composeText(...args) {
|
|
1396
1422
|
return composeLines(...args).join(" ");
|
|
@@ -1435,13 +1461,15 @@ function seatsOrBox(seats, rect, tsize, suppressed) {
|
|
|
1435
1461
|
return seats.length > 0 || !suppressed ? seats : [{ slot: "insideCenter", rect: { x: rect.x + rect.w / 2 - tsize.width / 2, y: rect.y + rect.h / 2 - tsize.height / 2, w: tsize.width, h: tsize.height }, penalty: 0 }];
|
|
1436
1462
|
}
|
|
1437
1463
|
function valueLines(domain, place, content, pct) {
|
|
1438
|
-
let { s, c, ci } = place, val = s.vals[ci], valueFmt =
|
|
1439
|
-
|
|
1464
|
+
let { s, c, ci } = place, val = s.vals[ci], valueFmt = cellValueFmt(domain, s, ci), parts = composeParts(domain, content, domain.absOf(s, ci), pct, c.label ?? c.id, s.label, pct !== null && val.isPct, valueFmt, { categoryId: c.id, seriesId: s.id }), lines = valueShareLines(parts), text = lines.join(" ");
|
|
1465
|
+
typeof val.labelOverride == "string" && (text = val.labelOverride.replace(/\$\{value\}/g, text), lines = [text]);
|
|
1466
|
+
let shows = shownParts(parts, val.labelOverride);
|
|
1467
|
+
return !text && val.labelOverride !== !1 ? null : { text, lines, ...shows ? { shows } : {} };
|
|
1440
1468
|
}
|
|
1441
1469
|
function cellValueText(domain, s, ci) {
|
|
1442
1470
|
let val = s.vals[ci], abs = domain.absOf(s, ci);
|
|
1443
1471
|
if (abs === null) return null;
|
|
1444
|
-
let text = (
|
|
1472
|
+
let text = cellValueFmt(domain, s, ci)(abs);
|
|
1445
1473
|
return typeof val.labelOverride == "string" ? val.labelOverride.replace(/\$\{value\}/g, text) : text;
|
|
1446
1474
|
}
|
|
1447
1475
|
function pointRequests(domain, paints, area, scene, requests, warnings) {
|
|
@@ -1456,10 +1484,10 @@ function pointRequests(domain, paints, area, scene, requests, warnings) {
|
|
|
1456
1484
|
for (let place of content ? scene.bars : []) {
|
|
1457
1485
|
let { s, c, ci, v } = place;
|
|
1458
1486
|
if (chosen && !chosen.get(s.id)?.has(ci) && typeof s.vals[ci]?.labelOverride != "string" && anomaly?.flagByCategory.has(c.id) !== !0) continue;
|
|
1459
|
-
let
|
|
1487
|
+
let composed = valueLines(domain, place, content, null), text = composed?.text ?? null;
|
|
1460
1488
|
if (text === null) continue;
|
|
1461
1489
|
let endpoint = ci === 0 || ci === cats.length - 1, hl = highlights.has(c.id) || highlights.has(s.id), flagged = anomaly?.flagByCategory.has(c.id) === !0, priority = s.vals[ci].priority ?? (flagged ? PRIORITY.extreme + PRIORITY.highlightBonus : (endpoint ? PRIORITY.endpoint : PRIORITY.interior + Math.min(99, Math.abs(v))) + (hl ? PRIORITY.highlightBonus : 0));
|
|
1462
|
-
pendingPoints.push({ place, text, priority, protect: hl || flagged, hl });
|
|
1490
|
+
pendingPoints.push({ place, text, ...composed?.shows ? { shows: composed.shows } : {}, priority, protect: hl || flagged, hl });
|
|
1463
1491
|
}
|
|
1464
1492
|
let compactLabelFont = compactValueLabelFont(labelFont, domain.theme.type.footnote, domain.options.target, textScaleOf(domain.options)), groupSlots = groupedOffsets(band.bandwidth, dataSeries.length), normalSizes = pendingPoints.map((point) => measure(point.text || "0", labelFont)), groupedPolicy = groupedValueLabelPolicy(
|
|
1465
1493
|
"vertical",
|
|
@@ -1484,7 +1512,7 @@ function pointRequests(domain, paints, area, scene, requests, warnings) {
|
|
|
1484
1512
|
});
|
|
1485
1513
|
let lastRanged = [...pendingPoints].reverse().find(({ place }) => rangeOf(place.s, place.ci) !== void 0);
|
|
1486
1514
|
if (lastRanged) {
|
|
1487
|
-
let { s, c, ci, rect } = lastRanged.place, range = rangeOf(s, ci), fmt = domain.valueSpec.forSeries(s),
|
|
1515
|
+
let { s, c, ci, rect } = lastRanged.place, range = rangeOf(s, ci), fmt = domain.valueSpec.forSeries(s), [lowText, highText] = [fmt(range.low), fmt(range.high)], text = numberRange(range.low <= range.high ? lowText : highText, range.low <= range.high ? highText : lowText), size = measure(text, labelFont), cx = rect.x + rect.w / 2, capY = y(Math.max(range.low, range.high));
|
|
1488
1516
|
requests.push({
|
|
1489
1517
|
id: `range:${s.id}:${c.id}`,
|
|
1490
1518
|
kind: "annotation",
|
|
@@ -1494,6 +1522,7 @@ function pointRequests(domain, paints, area, scene, requests, warnings) {
|
|
|
1494
1522
|
lines: [text],
|
|
1495
1523
|
typeRole: "label",
|
|
1496
1524
|
font: labelFont,
|
|
1525
|
+
shows: { "field:low": lowText, "field:high": highText },
|
|
1497
1526
|
priority: PRIORITY.valueLine,
|
|
1498
1527
|
candidates: [
|
|
1499
1528
|
{ slot: "rightOfCap", rect: { x: cx + 8, y: capY - size.height / 2, w: size.width, h: size.height }, penalty: 0 },
|
|
@@ -1506,7 +1535,7 @@ function pointRequests(domain, paints, area, scene, requests, warnings) {
|
|
|
1506
1535
|
let { s, c, ci, v, rect } = point.place, words = toDateIds.has(c.id) ? toDateLabel(point.text, point.hl ? boldFont : pointFont, toDate, domain.theme, measure) : void 0, tsize = words?.size ?? measure(point.text || "0", point.hl ? boldFont : pointFont), flag = scene.flagMarkers.get(c.id), outset = flag && flag.outside ? ANOMALY_FLAG_GAP + ANOMALY_FLAG_H : 0, natural = rangeOf(s, ci) ? void 0 : pointCandidates(rect, tsize, v < 0, "", y, void 0, outset)[0].rect;
|
|
1507
1536
|
return { ...point, words, tsize, outset, natural: natural && clampX(natural) };
|
|
1508
1537
|
}), rows = valueSeatRows(seated.map(({ natural, place }) => natural && { rect: natural, negative: place.v < 0 }), scene.bars.map(({ rect }) => rect));
|
|
1509
|
-
for (let [index, { place, text, priority, protect, hl, words, tsize, outset }] of seated.entries()) {
|
|
1538
|
+
for (let [index, { place, text, shows, priority, protect, hl, words, tsize, outset }] of seated.entries()) {
|
|
1510
1539
|
let { s, si, c, ci, v, rect } = place;
|
|
1511
1540
|
if (groupedPolicy.firstSeriesOnly && si !== 0 && !protect) continue;
|
|
1512
1541
|
let val = s.vals[ci], insidePaint = paints.cell(s, val, c, si), insidePattern = paints.pattern(s, val, c);
|
|
@@ -1515,6 +1544,7 @@ function pointRequests(domain, paints, area, scene, requests, warnings) {
|
|
|
1515
1544
|
kind: "point",
|
|
1516
1545
|
owner: { seriesId: s.id, categoryId: c.id },
|
|
1517
1546
|
text,
|
|
1547
|
+
...shows ? { shows } : {},
|
|
1518
1548
|
lines: words?.lines ?? [text],
|
|
1519
1549
|
...words?.request,
|
|
1520
1550
|
typeRole: "label",
|
|
@@ -1547,7 +1577,7 @@ function planColumnValueLabels(domain, paints, area, scene, requests, warnings,
|
|
|
1547
1577
|
shareAsked && share === null && !stacked100 && !domain.mixedSignCats.has(c.id) && val.v !== null && noShare2.add(c.label ?? c.id);
|
|
1548
1578
|
let composed = valueLines(domain, place, content, share);
|
|
1549
1579
|
if (composed === null) continue;
|
|
1550
|
-
let { text, lines } = composed, font = c.role === "total" ? { ...labelFont, weight: emphasisWeight(domain.theme) } : stepped2 ?? labelFont, tsize = linesSize(lines, font, measure), sliver = !(v === 0 && typeof val.labelOverride == "string") && segmentTooShort(domain.density, rect.h, tsize.height, options.labelPlacements?.[`segment:${s.id}:${c.id}`], STACK_ROOM), hl = highlights.has(c.id) || highlights.has(s.id), restHidden = val.labelOverride === void 0 && !hl && restValuesHidden(options, s.colorRole), owedHere = val.labelOverride !== !1 && !restHidden, printed = share === null ? content.filter((part) => part !== "percent") : content, onePart = !stacked100 && (printsValue(val.labelOverride) ? domain.gtContent?.join() === "absolute" : typeof val.labelOverride != "string" && printed.length === 1 && printed[0] === "absolute") && v !== 0 && onePartDrawn(domain.dataSeries.map((x) => x.vals[ci].v)), inTotal = onePart && domain.gtContent != null;
|
|
1580
|
+
let { text, lines, shows } = composed, font = c.role === "total" ? { ...labelFont, weight: emphasisWeight(domain.theme) } : stepped2 ?? labelFont, tsize = linesSize(lines, font, measure), sliver = !(v === 0 && typeof val.labelOverride == "string") && segmentTooShort(domain.density, rect.h, tsize.height, options.labelPlacements?.[`segment:${s.id}:${c.id}`], STACK_ROOM), hl = highlights.has(c.id) || highlights.has(s.id), restHidden = val.labelOverride === void 0 && !hl && restValuesHidden(options, s.colorRole), owedHere = val.labelOverride !== !1 && !restHidden, printed = share === null ? content.filter((part) => part !== "percent") : content, onePart = !stacked100 && (printsValue(val.labelOverride) ? domain.gtContent?.join() === "absolute" : typeof val.labelOverride != "string" && printed.length === 1 && printed[0] === "absolute") && v !== 0 && onePartDrawn(domain.dataSeries.map((x) => x.vals[ci].v)), inTotal = onePart && domain.gtContent != null;
|
|
1551
1581
|
sliver && !hl && owedHere && !inTotal && (slivers2.push(`${s.label} in ${c.label ?? c.id}`), sliverOrder.push(`segment:${s.id}:${c.id}`));
|
|
1552
1582
|
let note = `${s.label} ${text} (${noteName(c)})`;
|
|
1553
1583
|
owedHere && items.set(`segment:${s.id}:${c.id}`, note), sliver && !hl && owedHere && domain.density !== "minimal" && sliverIds.add(`segment:${s.id}:${c.id}`);
|
|
@@ -1560,6 +1590,7 @@ function planColumnValueLabels(domain, paints, area, scene, requests, warnings,
|
|
|
1560
1590
|
...onePart ? { printedIn: `grandTotal:${c.id}` } : {},
|
|
1561
1591
|
...namesOnly(printed, val.labelOverride),
|
|
1562
1592
|
text,
|
|
1593
|
+
...shows ? { shows } : {},
|
|
1563
1594
|
lines,
|
|
1564
1595
|
...lines.length > 1 ? { align: "middle" } : {},
|
|
1565
1596
|
typeRole: "label",
|
|
@@ -1694,15 +1725,10 @@ function partialWords(domain, ci) {
|
|
|
1694
1725
|
function planColumnLabels(domain, area, scene, requests, warnings) {
|
|
1695
1726
|
let { measure, highlights, cats, gtContent, stackTotals, variant, posTopP, negBotP, pyRef, pyGrowth, totalFmt } = domain, { strongFont, tickFont, band, y } = area, growthPoints = [], growthOn = kindSetting(domain.options, "growth") !== !1, box = (x, yy, size) => ({ x, y: yy, w: size.width, h: size.height });
|
|
1696
1727
|
emptyCategoryMarkers(domain, area, requests);
|
|
1697
|
-
let totalAt = (ci
|
|
1698
|
-
...spec,
|
|
1699
|
-
magnitude: Math.abs(value) >= 1e9 ? "bn" : Math.abs(value) >= 1e6 ? "m" : "k",
|
|
1700
|
-
decimals: 1,
|
|
1701
|
-
significantDigits: void 0
|
|
1702
|
-
}), linked = new Map(requests.flatMap((req) => req.printedIn ? [[req.printedIn, req.id]] : [])), authoredPart = (ci) => {
|
|
1728
|
+
let totalAt = (ci) => stackTotalText(domain, ci, totalFmt), fullTotals = cats.map((_, ci) => totalAt(ci)), linked = new Map(requests.flatMap((req) => req.printedIn ? [[req.printedIn, req.id]] : [])), authoredPart = (ci) => {
|
|
1703
1729
|
let id = linked.get(`grandTotal:${cats[ci].id}`), series = id && domain.dataSeries.find((s) => id === `segment:${s.id}:${cats[ci].id}`);
|
|
1704
1730
|
return series && printsValue(series.vals[ci].labelOverride) ? requests.find((req) => req.id === id)?.text : void 0;
|
|
1705
|
-
}, totals =
|
|
1731
|
+
}, totals = fullTotals.map((total, ci) => {
|
|
1706
1732
|
let text = total && !total.net ? authoredPart(ci) : void 0;
|
|
1707
1733
|
return text ? { ...total, text } : total;
|
|
1708
1734
|
}), toDateIds = toDateOnValues(domain), toDate = domain.options.strings?.toDate ?? chartString(domain.options, "toDate"), wordsAt = (ci, text, font) => {
|
|
@@ -1741,7 +1767,7 @@ function planColumnLabels(domain, area, scene, requests, warnings) {
|
|
|
1741
1767
|
lines: words?.lines ?? [text],
|
|
1742
1768
|
...words?.request,
|
|
1743
1769
|
// the note names a total by its one series, else as the stack's total ("Total 60 (Jan)"); a Net names itself.
|
|
1744
|
-
...net ? {} : { noteText: `${domain.dataSeries.length === 1 ? noteName(domain.dataSeries[0]) : chartString(domain.options, "total")} ${
|
|
1770
|
+
...net ? {} : { noteText: `${domain.dataSeries.length === 1 ? noteName(domain.dataSeries[0]) : chartString(domain.options, "total")} ${text}${words ? ` ${words.lines[1]}` : ""} (${noteName(c)})` },
|
|
1745
1771
|
typeRole: "label",
|
|
1746
1772
|
font: net ? strongFont : totalFont,
|
|
1747
1773
|
...rowFont && !net ? { fontStep: rowFont } : {},
|
|
@@ -1779,16 +1805,18 @@ function planColumnLabels(domain, area, scene, requests, warnings) {
|
|
|
1779
1805
|
return integrated ? PY_TICK_LEAD : reach !== void 0 && reach >= 4 ? reach + 3 : (scene.planEnds ?? 2) + 3;
|
|
1780
1806
|
};
|
|
1781
1807
|
for (let s of tickContent && domain.variant !== "stacked100" ? domain.refSeries : []) {
|
|
1782
|
-
let
|
|
1808
|
+
let partsOf = (ci, content) => composeParts(domain, content, domain.plottedOf(s, ci), null, cats[ci].label ?? cats[ci].id, s.label, !1, domain.valueSpec.forSeries(s)), textOf = (ci, content) => valueShareLines(partsOf(ci, content)).join(" "), nameless = domain.refStyle !== "marker" && domain.refSeries.length === 1 && tickContent.includes("series") && tickKeyed(domain.options, area.frame.legend, s.id) && cats.some((c, ci) => ci < cats.length - 1 && domain.plottedOf(s, ci) !== null && leadOf(ci, pyRef?.id === s.id && pyGrowth.has(c.id)) + measure(textOf(ci, tickContent), tickFont).width > band.step - band.bandwidth);
|
|
1783
1809
|
cats.forEach((c, ci) => {
|
|
1784
1810
|
let v = domain.plottedOf(s, ci);
|
|
1785
1811
|
if (v === null) return;
|
|
1786
|
-
let integrated = pyRef?.id === s.id && pyGrowth.has(c.id), ry = y(v), bx = band.position(ci),
|
|
1812
|
+
let integrated = pyRef?.id === s.id && pyGrowth.has(c.id), ry = y(v), bx = band.position(ci), parts = partsOf(ci, integrated && pyKeyed || nameless ? tickContent.filter((part) => part !== "series") : tickContent), text = valueShareLines(parts).join(" "), size = measure(text, tickFont), primaryX = bx + band.bandwidth + leadOf(ci, integrated);
|
|
1787
1813
|
requests.push({
|
|
1788
1814
|
id: `tick:${s.id}:${c.id}`,
|
|
1789
1815
|
kind: "tick",
|
|
1790
1816
|
owner: { seriesId: s.id, categoryId: c.id },
|
|
1791
1817
|
text,
|
|
1818
|
+
// The value part's text is the shown text: one formatter call.
|
|
1819
|
+
...tickContent.includes("absolute") ? { shows: { value: parts.find(([part]) => part === "absolute")[1] } } : {},
|
|
1792
1820
|
lines: [text],
|
|
1793
1821
|
typeRole: "label",
|
|
1794
1822
|
font: tickFont,
|
|
@@ -2127,7 +2155,7 @@ function bandKeyRow(domain, paints, eventKey) {
|
|
|
2127
2155
|
return { options: { position: "top" }, items };
|
|
2128
2156
|
}
|
|
2129
2157
|
function solveColumnFrame(domain, paints, warnings, eventKey) {
|
|
2130
|
-
let { options, theme, size, measure, anomaly, corridorShown, statFmt, netLineOn, netLineSeries, variant } = domain, claims = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height }), decorationFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, anomalyRuleLabelWidth = anomaly?.usable ? anomalyRuleReserve(anomalyRuleLines(theme, anomaly, corridorShown, statFmt, { token: "warn" }, options.strings), { family: theme.type.family, ...theme.type.label }, measure) : 0, decorationRight = Math.max(
|
|
2158
|
+
let { options, theme, size, measure, anomaly, corridorShown, statFmt, netLineOn, netLineSeries, variant } = domain, claims = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height }), decorationFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, anomalyRuleLabelWidth = anomaly?.usable ? anomalyRuleReserve(anomalyRuleLines(theme, anomaly, corridorShown, { statFmt, corridorFmt: domain.corridorFmt }, { token: "warn" }, options.strings), { family: theme.type.family, ...theme.type.label }, measure) : 0, decorationRight = Math.max(
|
|
2131
2159
|
netLineOn ? measure(netLineName(domain.dataSeries, netLineSeries, domain.stacks, options.strings), decorationFont).width + 12 : 0,
|
|
2132
2160
|
anomalyRuleLabelWidth
|
|
2133
2161
|
), tokenMargin = canvasMargin(theme, size.width), edgeNamesRight = options.seriesLabels?.at !== "left-edge" && rightEdgeSeriesLabels(domain).length > 0, margin = {
|
|
@@ -2579,6 +2607,7 @@ function annotateColumn(domain, area, scene, occupied, solveCtx, printedLabels)
|
|
|
2579
2607
|
measure: domain.measure,
|
|
2580
2608
|
format: domain.options.format,
|
|
2581
2609
|
locale: domain.options.locale?.language,
|
|
2610
|
+
levelSpec: percentLevels(dataSeries) ? { ...domain.valueSpec.percentSpec, suffix: "" } : domain.valueSpec.spec,
|
|
2582
2611
|
strings: domain.options.strings,
|
|
2583
2612
|
percentLevels: percentLevels(dataSeries),
|
|
2584
2613
|
sharesFormat: domain.variant === "stacked100",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
segmentLabelCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RLX6VODQ.js";
|
|
4
4
|
import {
|
|
5
5
|
rectsOverlap
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XAH4EWJT.js";
|
|
7
7
|
|
|
8
8
|
// src/core/label/slots.ts
|
|
9
9
|
function stackSegmentCandidates(rect, tsize, fits, fillCss, opts = {}) {
|