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
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
seatValuesOnGround,
|
|
14
14
|
shadesFills,
|
|
15
15
|
withoutEvents
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U4WG46QP.js";
|
|
17
17
|
import {
|
|
18
18
|
preparePolyline
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7UZUXPFM.js";
|
|
20
20
|
import {
|
|
21
21
|
FORCE_CATEGORY_RANKS,
|
|
22
22
|
STAIRCASE,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
staircaseRoom,
|
|
34
34
|
staircaseState,
|
|
35
35
|
withCategoryRanks
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GIJM4MP4.js";
|
|
37
37
|
import {
|
|
38
38
|
ANOMALY_FLAG_GAP,
|
|
39
39
|
ANOMALY_FLAG_H,
|
|
@@ -50,10 +50,10 @@ import {
|
|
|
50
50
|
lineAnomalyFurniture,
|
|
51
51
|
refuseAnomalySpec,
|
|
52
52
|
seatFlaggedValues
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-EZ5KUBYF.js";
|
|
54
54
|
import {
|
|
55
55
|
stackSegmentCandidates
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-XUGEYHOQ.js";
|
|
57
57
|
import {
|
|
58
58
|
REFERENCE_MARKER_R,
|
|
59
59
|
rankValueLabels,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
referenceMarkerPaint,
|
|
63
63
|
referenceTickGeometry,
|
|
64
64
|
withBandValueNotes
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-REIIGIJG.js";
|
|
66
66
|
import {
|
|
67
67
|
cellFields,
|
|
68
68
|
normalizeCategorySeries
|
|
@@ -75,12 +75,12 @@ import {
|
|
|
75
75
|
hasLabelPosition,
|
|
76
76
|
positionBarLabel,
|
|
77
77
|
refuseLabelPosition
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-7UUSHA7H.js";
|
|
79
79
|
import {
|
|
80
80
|
roundingUnavailable,
|
|
81
81
|
shareRoundingNotes,
|
|
82
82
|
sumConsistentShares
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-4YKS2JDE.js";
|
|
84
84
|
import {
|
|
85
85
|
averageMarkerLine,
|
|
86
86
|
averageMarkerMean,
|
|
@@ -91,12 +91,12 @@ import {
|
|
|
91
91
|
sk,
|
|
92
92
|
stackParts,
|
|
93
93
|
warnIncompleteStacks
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-7QUWM5W6.js";
|
|
95
95
|
import {
|
|
96
96
|
applyCategoryViewport,
|
|
97
97
|
liveWindowOptions,
|
|
98
98
|
viewportMeanSpan
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-R2RLERPT.js";
|
|
100
100
|
import {
|
|
101
101
|
haloOverRules,
|
|
102
102
|
linesSize,
|
|
@@ -104,27 +104,27 @@ import {
|
|
|
104
104
|
valueRowCrowded,
|
|
105
105
|
valueShareLines,
|
|
106
106
|
warnShareParts
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-RLX6VODQ.js";
|
|
108
108
|
import {
|
|
109
109
|
valueLineExtent
|
|
110
110
|
} from "./chunk-QPWRHDLZ.js";
|
|
111
111
|
import {
|
|
112
112
|
isIncomplete
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-5QMM354E.js";
|
|
114
114
|
import {
|
|
115
115
|
emitEventLane,
|
|
116
116
|
percentLevels,
|
|
117
117
|
runAnnotatePass,
|
|
118
118
|
settleEventLane
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-QDFX2KAP.js";
|
|
120
120
|
import {
|
|
121
121
|
stepDownFont
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
123
123
|
import {
|
|
124
124
|
breakUnsupported,
|
|
125
125
|
chartPalette,
|
|
126
126
|
chartTheme
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-AIPOSNVG.js";
|
|
128
128
|
import {
|
|
129
129
|
NO_STACK_MEAN,
|
|
130
130
|
noTotal,
|
|
@@ -139,10 +139,10 @@ import {
|
|
|
139
139
|
VALUE_LINE_RESERVE,
|
|
140
140
|
hiddenValueLineReserve,
|
|
141
141
|
namedLineText
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-R4MVXUAG.js";
|
|
143
143
|
import {
|
|
144
144
|
structureCount
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
146
146
|
import {
|
|
147
147
|
CATEGORY_ROW_FROM_END,
|
|
148
148
|
CATEGORY_ROW_VERTICAL,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
verticalNameRect,
|
|
175
175
|
yearRowRequests,
|
|
176
176
|
yieldToRotatedName
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-YM4MVABU.js";
|
|
178
178
|
import {
|
|
179
179
|
AREA_FILL_PART,
|
|
180
180
|
DEFER_DENSITY_NOTES,
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
toDateRoom,
|
|
213
213
|
withAuthoredFootnotes,
|
|
214
214
|
withCategoryNoteNames
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-AUSZDYGE.js";
|
|
216
216
|
import {
|
|
217
217
|
copyFrame,
|
|
218
218
|
disclosureNote,
|
|
@@ -221,32 +221,36 @@ import {
|
|
|
221
221
|
rankKeyShown,
|
|
222
222
|
recordFreedChrome,
|
|
223
223
|
wrapFootnote
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-WD5NJHZG.js";
|
|
225
225
|
import {
|
|
226
226
|
defaultAnnotationId
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-PPOUKS24.js";
|
|
228
228
|
import {
|
|
229
229
|
emptyIdRecord
|
|
230
230
|
} from "./chunk-LINZPU5D.js";
|
|
231
231
|
import {
|
|
232
|
+
RULE_SET,
|
|
233
|
+
defaultSetSpec,
|
|
234
|
+
engineFormatterFromExample,
|
|
232
235
|
formatStatWithSpec,
|
|
236
|
+
formatWithSpec,
|
|
233
237
|
formatterFromExample,
|
|
234
238
|
parseFormatExample,
|
|
239
|
+
percentChangeSpec,
|
|
235
240
|
percentRasterFormatter,
|
|
236
241
|
roundedNumber,
|
|
242
|
+
ruleStatistics,
|
|
237
243
|
sameUnit,
|
|
238
244
|
seriesRasterFormatter,
|
|
239
|
-
|
|
240
|
-
} from "./chunk-
|
|
245
|
+
statisticFormatter
|
|
246
|
+
} from "./chunk-3JG764MI.js";
|
|
241
247
|
import {
|
|
242
248
|
NOT_AVAILABLE,
|
|
243
|
-
autoDecimals,
|
|
244
249
|
chartString,
|
|
245
|
-
formatAutomaticNumber,
|
|
246
250
|
formatAutomaticPercent,
|
|
247
251
|
formatShare,
|
|
248
252
|
withLocaleStrings
|
|
249
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-FYFXOLWI.js";
|
|
250
254
|
import {
|
|
251
255
|
canvasMargin,
|
|
252
256
|
cleanSum,
|
|
@@ -274,7 +278,7 @@ import {
|
|
|
274
278
|
strokeToken,
|
|
275
279
|
textScaleOf,
|
|
276
280
|
withSegmentSeams
|
|
277
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-XAH4EWJT.js";
|
|
278
282
|
import {
|
|
279
283
|
curvePathFromSegments,
|
|
280
284
|
drawnStroke,
|
|
@@ -389,8 +393,8 @@ function prepareComboEndpointTexts(series, textOf, engine) {
|
|
|
389
393
|
let first = /* @__PURE__ */ new Map(), last = /* @__PURE__ */ new Map(), add = (target, item, ci) => {
|
|
390
394
|
let authoredOnly = !(target === first ? typeof engine.first == "function" ? engine.first(item) : engine.first : engine.last), value = item.vals[ci];
|
|
391
395
|
if (authoredOnly && typeof value.labelOverride != "string") return;
|
|
392
|
-
let composed = textOf(item, ci), text = typeof value.labelOverride == "string" ? value.labelOverride.replace(/\$\{value\}/g, composed) : composed;
|
|
393
|
-
(text ||
|
|
396
|
+
let composed = textOf(item, ci), text = typeof value.labelOverride == "string" ? value.labelOverride.replace(/\$\{value\}/g, composed.text) : composed.text, override = value.labelOverride, shows = override === !1 || typeof override == "string" && !override.includes("${value}") ? void 0 : composed.shows;
|
|
397
|
+
(text || override === !1) && target.set(item.id, { text, ci, suppressed: override === !1, ...shows ? { shows } : {} });
|
|
394
398
|
};
|
|
395
399
|
for (let item of series) {
|
|
396
400
|
let firstCi = item.vals.findIndex((value) => value.v !== null);
|
|
@@ -559,6 +563,7 @@ function comboEndpointRequest(input) {
|
|
|
559
563
|
kind: "point",
|
|
560
564
|
owner: { seriesId: s.id, categoryId: lastCat.id },
|
|
561
565
|
text,
|
|
566
|
+
...input.shows ? { shows: input.shows } : {},
|
|
562
567
|
lines: [text],
|
|
563
568
|
typeRole: "label",
|
|
564
569
|
font: labelFont,
|
|
@@ -775,7 +780,7 @@ function rightAxis(options, gate, raw, primary, secondarySpec, fixed) {
|
|
|
775
780
|
for (let d = 0; d <= 3; d++)
|
|
776
781
|
if (Math.abs(tv - Number(tv.toFixed(d))) < 1e-9) return d;
|
|
777
782
|
return 3;
|
|
778
|
-
})) : 0, secTickFmt = secAxisFmtSrc ?
|
|
783
|
+
})) : 0, secTickFmt = secAxisFmtSrc ? engineFormatterFromExample(secAxisFmtSrc, options.locale?.language) : secFmtSrc ? engineFormatterFromExample(secFmtSrc, options.locale?.language) : secondaryAllPct ? (tv) => formatAutomaticPercent(tv, pctDecimals, !1, lang) : tickFormatter(secondarySpec.spec, secTickValues);
|
|
779
784
|
return secOpt?.show === !1 ? { secFmtSrc, secondaryDomain, rightTicks: [] } : { secFmtSrc, secondaryDomain, rightTicks: secTickValues.map((tv) => ({ at: tv, text: secTickFmt(tv) })) };
|
|
780
785
|
}
|
|
781
786
|
if (ruler) {
|
|
@@ -919,11 +924,11 @@ function comboAnomalyModel(spec, cats, lines, secondary, primary, pctFmt, locale
|
|
|
919
924
|
["options", "anomaly"]
|
|
920
925
|
);
|
|
921
926
|
refuseAnomalySpec(spec);
|
|
922
|
-
let series = lineSeries[0], onSecondary = series.axis === "secondary" && secondary !== primary, raster = onSecondary ? secondary : primary, isPct = series.vals.some((val) => val.isPct), fmt = isPct ? pctFmt : raster.fmt, statFmt = isPct ? (v) => formatAutomaticPercent(v, 2, !1, locale) : (v) => formatStatWithSpec(v, raster.spec), present = cats.flatMap((c, ci) => {
|
|
927
|
+
let series = lineSeries[0], onSecondary = series.axis === "secondary" && secondary !== primary, raster = onSecondary ? secondary : primary, isPct = series.vals.some((val) => val.isPct), fmt = isPct ? pctFmt : raster.fmt, statSpec = isPct ? raster.percentSpec : raster.spec, rule = ruleStatistics(statSpec, fmt), statFmt = rule ? (v) => formatStatWithSpec(v, statSpec) : isPct ? (v) => formatAutomaticPercent(v, 2, !1, locale) : (v) => formatStatWithSpec(v, raster.spec), present = cats.flatMap((c, ci) => {
|
|
923
928
|
let value = series.vals[ci]?.v;
|
|
924
929
|
return value == null || !Number.isFinite(value) ? [] : [{ categoryId: c.id, value }];
|
|
925
930
|
});
|
|
926
|
-
return { ...anomalyModel(spec, present, fmt, statFmt, locale, warnings, strings), seriesId: series.id, statFmt, onSecondary };
|
|
931
|
+
return { ...anomalyModel(spec, present, fmt, statFmt, locale, warnings, strings, rule), seriesId: series.id, statFmt, rule, onSecondary };
|
|
927
932
|
}
|
|
928
933
|
var TOTALS_AXIS = /* @__PURE__ */ Symbol("boardplot.comboTotalsAxis"), SECONDARY_FULL_DOMAIN = /* @__PURE__ */ Symbol("boardplot.secondaryFullDomain"), LINE_BAND_CLEARANCE = /* @__PURE__ */ Symbol("boardplot.lineBandClearance"), FLOAT_BAND_CLEARANCE = /* @__PURE__ */ Symbol("boardplot.floatBandClearance");
|
|
929
934
|
function secondaryPrimaryRange(options, secondary, fallback) {
|
|
@@ -943,17 +948,14 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
943
948
|
let columns = dataSeries.filter((s) => s.kind === "column"), lines = dataSeries.filter((s) => s.kind !== "column"), chartInterpolation = options.interpolate ?? "linear", gate = comboAxisGate(options, seriesNorm, columns, lines, warnings), { secondaryActive } = gate;
|
|
944
949
|
comboUnitConflicts(options, seriesNorm, dataSeries, secondaryActive, warnings);
|
|
945
950
|
let rasterFor = (axis) => {
|
|
946
|
-
let group = seriesNorm.filter((s) => (s.axis ?? "primary") === axis), units = new Set(group.flatMap((s) => s.unit === void 0 || s.unit === "%" || s.vals.every((val) => val.isPct) ? [] : [s.unit])), printed = axis === "primary" && options.format ? seriesNorm.filter((s) => !s.format) : group, shared2 = units.size === 1 ? [...units][0] : void 0, unnamed = units.size === 0
|
|
951
|
+
let group = seriesNorm.filter((s) => (s.axis ?? "primary") === axis), units = new Set(group.flatMap((s) => s.unit === void 0 || s.unit === "%" || s.vals.every((val) => val.isPct) ? [] : [s.unit])), printed = axis === "primary" && options.format ? seriesNorm.filter((s) => !s.format) : group, shared2 = units.size === 1 ? [...units][0] : void 0, unnamed = units.size === 0 ? options.unit : void 0;
|
|
947
952
|
return seriesRasterFormatter(
|
|
948
953
|
axis === "primary" ? options.format : void 0,
|
|
949
954
|
printed.flatMap((s) => s.vals.filter((val) => !val.isPct).map((val) => val.v)),
|
|
950
955
|
options.locale?.language,
|
|
951
|
-
axis === "primary" ? options.unit ?? shared2 : shared2 ?? unnamed
|
|
952
|
-
options.target,
|
|
953
|
-
axis === "primary" ? options.defaultFormat : void 0,
|
|
954
|
-
columns.length > 1
|
|
956
|
+
axis === "primary" ? options.unit ?? shared2 : shared2 ?? unnamed
|
|
955
957
|
);
|
|
956
|
-
}, valueSpec = rasterFor("primary"), fmt = valueSpec.fmt, secondarySpec = secondaryActive ? rasterFor("secondary") : valueSpec,
|
|
958
|
+
}, valueSpec = rasterFor("primary"), fmt = valueSpec.fmt, secondarySpec = secondaryActive ? rasterFor("secondary") : valueSpec, pctValues = seriesNorm.flatMap((s) => s.vals.filter((val) => val.isPct).map((val) => val.v)), pctSpec = options.format ? void 0 : { ...defaultSetSpec(pctValues, options.locale?.language, void 0, { kind: "percent" }), suffix: "%" }, pctFmt = pctSpec ? (value) => formatWithSpec(value, pctSpec) : percentRasterFormatter(pctValues, options.locale?.language), sourceMean = options.viewDomain || options.window ? columns.length > 0 && cats.length > 0 ? columns.reduce((sum, series) => sum + series.vals.reduce((n, value) => n + (value.v ?? 0), 0), 0) / cats.length : primaryLineMean(lines.map((s) => ({ s, pts: [] })), secondaryActive) : void 0, addsOver = (series) => stackAdds(series.map((s) => ({ label: s.label, unit: s.unit, pctCells: s.vals.some((val) => val.isPct) })), options.unit, void 0), columnsAdd = addsOver(columns), averageRun = comboAverageRun(options, cats, columns, lines, warnings, addsOver), anomalyRun = options.anomaly ? comboAnomalyModel(options.anomaly, cats, lines, secondarySpec, valueSpec, pctFmt, options.locale?.language, warnings, options.strings) : void 0, population = applyCategoryViewport({
|
|
957
959
|
domain: options.viewDomain,
|
|
958
960
|
window: options.window,
|
|
959
961
|
categories: cats,
|
|
@@ -976,7 +978,7 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
976
978
|
disclosuresShown(options)
|
|
977
979
|
);
|
|
978
980
|
let shareTexts = /* @__PURE__ */ new Map(), roundingAdjustments = [];
|
|
979
|
-
options.rounding
|
|
981
|
+
options.rounding === "sum-consistent" && columns.length > 1 && cats.forEach((c, ci) => {
|
|
980
982
|
if (!anyByCat[ci] || negBot[ci] < 0 || !(posTop[ci] > 0) || incompleteCats.has(c.id) || columns.some((s) => s.vals[ci].isPct)) return;
|
|
981
983
|
let shares = columns.map((s) => s.vals[ci].v / posTop[ci] * 100), rounded = sumConsistentShares(shares, options.locale?.language);
|
|
982
984
|
rounded?.warning ? warnings.push(roundingUnavailable(c.label ?? c.id, rounded.warning)) : rounded && columns.forEach((s, si) => {
|
|
@@ -1057,7 +1059,7 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
1057
1059
|
model: anomalyRun.anomaly,
|
|
1058
1060
|
seriesId: anomalyRun.seriesId,
|
|
1059
1061
|
statFmt: anomalyRun.statFmt,
|
|
1060
|
-
...anomalyCorridor(anomalyRun.anomaly, anomalyRun.values, extent[0], extent[1], anomalyRun.statFmt, out, options.strings)
|
|
1062
|
+
...anomalyCorridor(anomalyRun.anomaly, anomalyRun.values, extent[0], extent[1], anomalyRun.statFmt, out, options.strings, anomalyRun.rule)
|
|
1061
1063
|
};
|
|
1062
1064
|
}, ticksFromLabels = anatomy && shared !== void 0 && columns.length > 0 && anomalyRun === void 0 && comboValueLabels(options, !0, cats.length) === "all" && options.labels !== !1 && (options.labels === void 0 || options.labels.grandTotal !== !1) && options[TOTALS_AXIS] !== !0 && options.valueAxis?.show === void 0 && options.secondaryAxis?.show === void 0, resolved = {
|
|
1063
1065
|
anomaly: anomalyFor(primary, right.secondaryDomain, warnings),
|
|
@@ -1130,11 +1132,13 @@ function growthItems(domain, lang) {
|
|
|
1130
1132
|
let a = at[0], b = at[at.length - 1], first = values[a], last = values[b];
|
|
1131
1133
|
if (!(first > 0)) return;
|
|
1132
1134
|
let span = a === 0 && b === cats.length - 1 ? "" : `${label(a)}\u2013${label(b)}`, head = name.split(",")[0].trim();
|
|
1133
|
-
return { text:
|
|
1135
|
+
return { text: "", rate: (last / first - 1) * 100, name: [name, span].filter(Boolean).join(", "), short: [head, span].filter(Boolean).join(", "), last };
|
|
1134
1136
|
}, line = lines.find((s) => s.axis === "secondary" && s.kind === "line"), lineGrowth = line && growth(line.vals.map((val) => val.v), line.label);
|
|
1135
1137
|
line && lineGrowth && items.push({ seriesId: line.id, ...lineGrowth, axis: "secondary", ink: "ink" });
|
|
1136
1138
|
let columnGrowth = columns.length > 0 ? growth(cats.map((c, ci) => anyByCat[ci] ? stackTotals[c.id] : null), columns.length === 1 ? columns[0].label : "") : void 0;
|
|
1137
|
-
|
|
1139
|
+
columnGrowth && items.push({ seriesId: columns[0].id, ...columnGrowth, axis: "primary", ink: "inkMuted" });
|
|
1140
|
+
let spec = percentChangeSpec(items.map((item) => item.rate), lang, "%");
|
|
1141
|
+
return items.map(({ rate, ...item }) => ({ ...item, text: formatWithSpec(rate, spec) }));
|
|
1138
1142
|
}
|
|
1139
1143
|
function growthStatements(env, domain) {
|
|
1140
1144
|
let { options } = domain, { theme, measure, size } = env, valueFont = { ...{ family: theme.type.family, ...theme.type.label }, weight: emphasisWeight(theme) }, nameFont = valueFont, items = domain.anatomy && options.dualAxis?.growth ? growthItems(domain, options.locale?.language) : [], oneLineW = items.length > 0 ? GROWTH_GAP + maxOf(items.map((item) => measure(growthLine(item), valueFont).width)) : 0, oneLine = items.length > 0 && oneLineW <= size.width * GROWTH_ONE_LINE_SHARE, reserve = items.length === 0 ? 0 : oneLine ? oneLineW : GROWTH_GAP + maxOf(items.flatMap((item) => {
|
|
@@ -1388,11 +1392,27 @@ function kindSetting(domain, kind) {
|
|
|
1388
1392
|
let v = l?.[kind];
|
|
1389
1393
|
return v === void 0 ? !0 : v;
|
|
1390
1394
|
}
|
|
1391
|
-
function
|
|
1392
|
-
let { abs, isPct, share } = value, parts = [];
|
|
1395
|
+
function composeParts(domain, content, value, catLabel, serLabel, valueFmt) {
|
|
1396
|
+
let { abs, isPct, share } = value, parts = [], shows = {};
|
|
1393
1397
|
for (let c of content)
|
|
1394
|
-
c === "absolute"
|
|
1395
|
-
|
|
1398
|
+
if ((c === "absolute" || c === "percent" && isPct) && abs !== null) {
|
|
1399
|
+
let text = valueFmt(abs);
|
|
1400
|
+
parts.push([c, text]), shows.value ??= text;
|
|
1401
|
+
} else if (c === "percent" && share !== void 0 && share !== null) {
|
|
1402
|
+
let text = value.shareText ?? formatShare(share, domain.options.locale?.language);
|
|
1403
|
+
parts.push([c, text]), shows["share.percent"] ??= text;
|
|
1404
|
+
} else c === "category" && catLabel ? parts.push([c, catLabel]) : c === "series" && serLabel && parts.push([c, serLabel]);
|
|
1405
|
+
return { parts, shows: Object.keys(shows).length > 0 ? shows : void 0 };
|
|
1406
|
+
}
|
|
1407
|
+
function composeLines(...args) {
|
|
1408
|
+
return valueShareLines(composeParts(...args).parts);
|
|
1409
|
+
}
|
|
1410
|
+
function composeWithShows(override, ...args) {
|
|
1411
|
+
let { parts, shows } = composeParts(...args);
|
|
1412
|
+
return {
|
|
1413
|
+
text: valueShareLines(parts).join(" "),
|
|
1414
|
+
shows: override === !1 || typeof override == "string" && !override.includes("${value}") ? void 0 : shows
|
|
1415
|
+
};
|
|
1396
1416
|
}
|
|
1397
1417
|
function composeText(...args) {
|
|
1398
1418
|
return composeLines(...args).join(" ");
|
|
@@ -1446,7 +1466,8 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1446
1466
|
lines,
|
|
1447
1467
|
(series, ci) => {
|
|
1448
1468
|
let value = series.vals[ci];
|
|
1449
|
-
return
|
|
1469
|
+
return composeWithShows(
|
|
1470
|
+
void 0,
|
|
1450
1471
|
domain,
|
|
1451
1472
|
pointContent ?? ["absolute"],
|
|
1452
1473
|
{ abs: value.v, isPct: value.isPct },
|
|
@@ -1469,11 +1490,11 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1469
1490
|
markerR: 2.75,
|
|
1470
1491
|
width: axisW - rightAxisReserve - growthReserve,
|
|
1471
1492
|
adjacent: { first: showPrimaryAxis, last: rightAxisActive }
|
|
1472
|
-
}), anomalyReserve = domain.anomaly ? anomalyRuleReserve(anomalyRuleLines(theme, domain.anomaly.model, domain.anomaly.corridorShown, domain.anomaly
|
|
1493
|
+
}), anomalyReserve = domain.anomaly ? anomalyRuleReserve(anomalyRuleLines(theme, domain.anomaly.model, domain.anomaly.corridorShown, domain.anomaly, { token: "warn" }, options.strings), labelFont, measure) : 0, valueLineFont = { ...labelFont, weight: emphasisWeight(theme) }, rightLineLabels = (domain.options.annotations ?? []).filter((a) => a.kind !== "event").flatMap((annotation, index) => {
|
|
1473
1494
|
if (annotation.kind !== "valueLine" || annotation.label === !1 || (annotation.side ?? "right") !== "right") return [];
|
|
1474
1495
|
let value = typeof annotation.value == "number" ? annotation.value : domain.columnsAdd ? domain.sourceMean ?? (columns.length > 0 && cats.length > 0 ? cats.reduce((sum, _, ci) => sum + domain.posTop[ci] + domain.negBot[ci], 0) / cats.length : primaryLineMean(domain.lines.map((s) => ({ s, pts: [] })), domain.secondaryActive)) : void 0;
|
|
1475
1496
|
if (value === void 0) return [];
|
|
1476
|
-
let example = annotation.format ?? domain.options.format,
|
|
1497
|
+
let example = annotation.format ?? domain.options.format, level = domain.valueSpec[RULE_SET] ? { ...domain.valueSpec, prefix: "", suffix: "", signed: !1 } : defaultSetSpec([value], domain.options.locale?.language, domain.options.unit), fmt = example ? formatterFromExample(example, domain.options.locale?.language) : typeof annotation.value == "number" ? (v) => formatWithSpec(v, level) : statisticFormatter([value], level), span = domain.meanSpan({ from: annotation.from, to: annotation.to }), text = typeof annotation.label == "string" ? namedLineText(annotation.label, fmt(value), value, annotation.id ?? "") : `${options.strings.average} ${fmt(value)}${span ? ` (${span})` : ""}`;
|
|
1477
1498
|
return [{
|
|
1478
1499
|
id: defaultAnnotationId(annotation, index),
|
|
1479
1500
|
text,
|
|
@@ -1657,7 +1678,7 @@ function segmentLabels(env, domain, area, geometry, paints, requests, warnings)
|
|
|
1657
1678
|
warnShareParts(warnings, mixedSigns, unavailable);
|
|
1658
1679
|
let tooWide = !1, first = requests.length;
|
|
1659
1680
|
for (let { s, si, ci, v, rect } of geometry.segments) {
|
|
1660
|
-
let c = domain.cats[ci], val = s.vals[ci], share = shareBasis[ci] > 0 ? v / shareBasis[ci] * 100 : null,
|
|
1681
|
+
let c = domain.cats[ci], val = s.vals[ci], share = shareBasis[ci] > 0 ? v / shareBasis[ci] * 100 : null, composed = composeParts(domain, content, { abs: v, isPct: val.isPct, share, shareText: domain.shareTexts.get(`${c.id}\0${s.id}`) }, c.label ?? c.id, s.label, domain.valueFmtOf(s, val)), lines = valueShareLines(composed.parts), text = lines.join(" "), shows = val.labelOverride === !1 || typeof val.labelOverride == "string" && !val.labelOverride.includes("${value}") ? void 0 : composed.shows, single = v !== 0 && onePartDrawn(domain.columns.map((column) => column.vals[ci].v)), printed = val.isPct || share !== null ? content : content.filter((part) => part !== "percent");
|
|
1661
1682
|
if (typeof val.labelOverride == "string" && (text = val.labelOverride.replace(/\$\{value\}/g, text), lines = [text]), !text && val.labelOverride !== !1) continue;
|
|
1662
1683
|
let tsize = linesSize(lines, labelFont, env.measure), fits = tsize.height + 2 <= rect.h && tsize.width + 4 <= band.bandwidth, sliver = env.density !== "full" && rect.h < SLIVER_MIN_H, hl = env.highlights.has(c.id) || env.highlights.has(s.id), priority = val.priority ?? PRIORITY.interior + Math.min(99, Math.abs(v)) + (hl ? PRIORITY.highlightBonus : 0);
|
|
1663
1684
|
typeof val.labelOverride != "string" && val.labelOverride !== !1 && !sliver && !single && env.density !== "full" && tsize.width > rect.w && (tooWide = !0), requests.push({
|
|
@@ -1669,6 +1690,7 @@ function segmentLabels(env, domain, area, geometry, paints, requests, warnings)
|
|
|
1669
1690
|
...single && printed.length === 1 && printed[0] === "absolute" && (typeof val.labelOverride != "string" || totalValueAlone && totalColumn(domain, ci) === s) ? { printedIn: `grandTotal:${c.id}` } : {},
|
|
1670
1691
|
owner: { seriesId: s.id, categoryId: c.id },
|
|
1671
1692
|
text,
|
|
1693
|
+
...shows ? { shows } : {},
|
|
1672
1694
|
lines,
|
|
1673
1695
|
...lines.length > 1 ? { align: "middle" } : {},
|
|
1674
1696
|
typeRole: "label",
|
|
@@ -1704,9 +1726,13 @@ function insideSeats(candidates, rect, labelH) {
|
|
|
1704
1726
|
function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes = []) {
|
|
1705
1727
|
let gtContent = domain.columns.length > 0 && domain.columnsAdd ? contentOf(domain, "grandTotal", ["absolute"]) : null;
|
|
1706
1728
|
if (!gtContent) return;
|
|
1707
|
-
let { posTop, negBot } = domain, { y, band, strongFont } = area, authored = /* @__PURE__ */ new Set(), bare = /* @__PURE__ */ new Set(), linked = new Map(requests.flatMap((req) => req.printedIn ? [[req.printedIn, req.id]] : [])), valueAlone = gtContent.join() === "absolute", shares = domain.options[FIRST_END_BELOW_TOTALS] === !0, backLink = (id, words) => !words && valueAlone && linked.has(id) ? { printedIn: linked.get(id) } : {}, crossesRules = domain.averageMarkerId !== void 0 || (domain.options.annotations ?? []).some((annotation) => annotation.kind === "valueLine"),
|
|
1729
|
+
let { posTop, negBot } = domain, { y, band, strongFont } = area, authored = /* @__PURE__ */ new Set(), bare = /* @__PURE__ */ new Set(), linked = new Map(requests.flatMap((req) => req.printedIn ? [[req.printedIn, req.id]] : [])), valueAlone = gtContent.join() === "absolute", shares = domain.options[FIRST_END_BELOW_TOTALS] === !0, backLink = (id, words) => !words && valueAlone && linked.has(id) ? { printedIn: linked.get(id) } : {}, crossesRules = domain.averageMarkerId !== void 0 || (domain.options.annotations ?? []).some((annotation) => annotation.kind === "valueLine"), totals = domain.cats.map((c, ci) => {
|
|
1730
|
+
if (!domain.anyByCat[ci]) return null;
|
|
1731
|
+
let cell = totalColumn(domain, ci)?.vals[ci];
|
|
1732
|
+
return composeWithShows(cell?.labelOverride, domain, gtContent, { abs: domain.stackTotals[c.id], isPct: cell?.isPct ?? !1 }, c.label ?? c.id, "", domain.totalFmtOf(ci));
|
|
1733
|
+
}), totalShows = totals.map((total) => total?.shows), texts = domain.cats.map((c, ci) => {
|
|
1708
1734
|
if (!domain.anyByCat[ci]) return null;
|
|
1709
|
-
let cell = totalColumn(domain, ci)?.vals[ci], composed =
|
|
1735
|
+
let cell = totalColumn(domain, ci)?.vals[ci], composed = totals[ci].text, override = cell?.labelOverride;
|
|
1710
1736
|
return override === !1 ? null : (typeof override == "string" && authored.add(c.id), namesOnly(cell?.isPct ? gtContent : gtContent.filter((part) => part !== "percent"), override).printsFor && bare.add(c.id), (typeof override == "string" ? override.replace(/\$\{value\}/g, composed) : composed) || null);
|
|
1711
1737
|
}), anatomyFont = domain.anatomy && domain.columns.length === 1 ? { ...strongFont } : void 0, insideFont = anatomyFont && texts.every((text) => text === null || env.measure(text, anatomyFont).width + 4 <= band.bandwidth) ? anatomyFont : void 0, toDateIds = insideFont ? /* @__PURE__ */ new Set() : toDateOnTotals(env, domain), toDate = domain.options.strings?.toDate ?? chartString(domain.options, "toDate"), wordsAt = (ci, text, font) => {
|
|
1712
1738
|
let id = domain.cats[ci].id, words = toDateIds.has(id) ? toDate : !insideFont && domain.columnsAdd && domain.incompleteCats.has(id) && disclosuresShown(domain.options) ? domain.options.strings.incomplete : void 0;
|
|
@@ -1736,14 +1762,18 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1736
1762
|
return v !== null && (above ? v > 0 : v < 0);
|
|
1737
1763
|
});
|
|
1738
1764
|
return top === void 0 ? 0 : Math.abs(y(top.vals[ci].v) - y(0));
|
|
1739
|
-
})(), inside = (dy, slot) => insideDepth >= tsize.height + dy ? { ...at(slot, above ? edgeY + dy : edgeY - tsize.height - dy, 2), ...paints.top(ci, above) } : void 0, lowered = () => {
|
|
1765
|
+
})(), inside = (dy, slot) => insideDepth >= tsize.height + dy ? { ...at(slot, above ? edgeY + dy : edgeY - tsize.height - dy, 2), ...paints.top(ci, above) } : void 0, lowered = (insideEnd2) => {
|
|
1766
|
+
let seats = [], clears = (seat2) => strokes.every((stroke) => !stroke.hits(seat2.rect, STROKE_CLEAR2)), further = insideEnd2 !== void 0 && !clears(insideEnd2);
|
|
1740
1767
|
if (strokes.length > 0) for (let dy = 12; dy <= 12 + tsize.height; dy++) {
|
|
1741
|
-
let
|
|
1742
|
-
if (!
|
|
1743
|
-
if (
|
|
1768
|
+
let seat2 = inside(dy, "insideEndLowered");
|
|
1769
|
+
if (!seat2) break;
|
|
1770
|
+
if (clears(seat2) && (seats.push({ ...seat2, pad: 0 }), !further))
|
|
1771
|
+
break;
|
|
1744
1772
|
}
|
|
1745
|
-
|
|
1746
|
-
|
|
1773
|
+
if (seats.length > 0) return seats;
|
|
1774
|
+
let seat = inside(12, "insideEndLowered");
|
|
1775
|
+
return seat ? [seat] : [];
|
|
1776
|
+
}, curveStartsOnTop = ci === 0 && shares && lineYs(ci).some((ly) => Math.abs(ly - edgeY) < 0.5), insideEnd = inside(8, "insideEnd"), leftX = cx - LEFT_SEAT_AIR - (curveStartsOnTop ? 2.75 : 0) - tsize.width, leftSeat = ci === 0 && tsize.width + 4 > band.bandwidth && strokes.length > 0 && above && leftX >= LEFT_SEAT_MIN_X ? [{ slot: "aboveStackLeft", rect: { x: leftX, y: edgeY - tsize.height - 4, w: tsize.width, h: tsize.height }, penalty: 2 }] : [], lift = curveStartsOnTop && above ? clearLift({ ...at("aboveStack", edgeY - tsize.height - 4, 0).rect }, strokes, 2 * tsize.height + 4) : void 0, liftedSeat = lift !== void 0 && lift >= 2.75 ? [at("aboveStackLifted", edgeY - tsize.height - 4 - lift - 2, 1)] : [], named = {
|
|
1747
1777
|
noteText: `${domain.columns.length === 1 ? noteName(domain.columns[0]) : chartString(domain.options, "total")} ${text}${words ? ` ${words.lines[1]}` : ""} (${noteName(c)})`,
|
|
1748
1778
|
claimIds: [`stack:total:${c.id}`]
|
|
1749
1779
|
};
|
|
@@ -1757,6 +1787,7 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1757
1787
|
...backLink(`grandTotal:${c.id}`, void 0),
|
|
1758
1788
|
owner: { categoryId: c.id },
|
|
1759
1789
|
text,
|
|
1790
|
+
...totalShows[ci] ? { shows: totalShows[ci] } : {},
|
|
1760
1791
|
lines: [text],
|
|
1761
1792
|
typeRole: "label",
|
|
1762
1793
|
font: insideFont,
|
|
@@ -1775,6 +1806,7 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1775
1806
|
...backLink(`grandTotal:${c.id}`, words),
|
|
1776
1807
|
owner: { categoryId: c.id },
|
|
1777
1808
|
text,
|
|
1809
|
+
...totalShows[ci] ? { shows: totalShows[ci] } : {},
|
|
1778
1810
|
lines: words?.lines ?? [text],
|
|
1779
1811
|
...words?.request,
|
|
1780
1812
|
typeRole: "label",
|
|
@@ -1793,10 +1825,10 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1793
1825
|
],
|
|
1794
1826
|
edgeY,
|
|
1795
1827
|
lineYs(ci),
|
|
1796
|
-
|
|
1828
|
+
insideEnd,
|
|
1797
1829
|
domain.columns.length > 1,
|
|
1798
1830
|
// Last of all, one step further in: a line marker just inside the column top blocks the inside end by a fraction of a pixel.
|
|
1799
|
-
lowered()
|
|
1831
|
+
lowered(insideEnd)
|
|
1800
1832
|
)
|
|
1801
1833
|
});
|
|
1802
1834
|
});
|
|
@@ -1809,12 +1841,13 @@ function referenceLabels(env, domain, area, requests) {
|
|
|
1809
1841
|
for (let s of domain.refs) domain.cats.forEach((c, ci) => {
|
|
1810
1842
|
let val = s.vals[ci];
|
|
1811
1843
|
if (val.v === null) return;
|
|
1812
|
-
let
|
|
1844
|
+
let composed = composeParts(domain, content, { abs: val.v, isPct: val.isPct }, c.label ?? c.id, s.label, domain.valueFmtOf(s, val)), text = valueShareLines(composed.parts).join(" "), { width: w, height: h } = env.measure(text, tickFont), ry = y(val.v), seat = (slot, x, top, penalty) => ({ slot, rect: { x, y: top, w, h }, penalty }), cx = band.center(ci), right = band.position(ci) + band.bandwidth + 5;
|
|
1813
1845
|
requests.push({
|
|
1814
1846
|
id: `tick:${s.id}:${c.id}`,
|
|
1815
1847
|
kind: "tick",
|
|
1816
1848
|
owner: { seriesId: s.id, categoryId: c.id },
|
|
1817
1849
|
text,
|
|
1850
|
+
...composed.shows ? { shows: composed.shows } : {},
|
|
1818
1851
|
lines: [text],
|
|
1819
1852
|
typeRole: "label",
|
|
1820
1853
|
font: tickFont,
|
|
@@ -1832,7 +1865,7 @@ function referenceLabels(env, domain, area, requests) {
|
|
|
1832
1865
|
});
|
|
1833
1866
|
});
|
|
1834
1867
|
}
|
|
1835
|
-
function nearestOwnMarkFirst(outer, edgeY, lineYs, inside, tieIsOwn, insideLast) {
|
|
1868
|
+
function nearestOwnMarkFirst(outer, edgeY, lineYs, inside, tieIsOwn, insideLast = []) {
|
|
1836
1869
|
let own = (c) => {
|
|
1837
1870
|
let cy = c.rect.y + c.rect.h / 2;
|
|
1838
1871
|
return lineYs.every((ly) => Math.abs(ly - edgeY) < 0.5 ? tieIsOwn : Math.abs(cy - ly) > Math.abs(cy - edgeY));
|
|
@@ -1841,7 +1874,7 @@ function nearestOwnMarkFirst(outer, edgeY, lineYs, inside, tieIsOwn, insideLast)
|
|
|
1841
1874
|
...outer.filter(own),
|
|
1842
1875
|
...inside ? [inside] : [],
|
|
1843
1876
|
...outer.filter((c) => !own(c)).map((c) => ({ ...c, lastResort: !0 })),
|
|
1844
|
-
...insideLast
|
|
1877
|
+
...insideLast
|
|
1845
1878
|
].map((c, penalty) => ({ ...c, penalty }));
|
|
1846
1879
|
}
|
|
1847
1880
|
function categoryLabels(domain, area, requests) {
|
|
@@ -1878,7 +1911,7 @@ function linePointLabels(env, domain, area, geometry, requests, strokes, fills)
|
|
|
1878
1911
|
if (area.first.get(s.id)?.ci === point.ci || area.last.get(s.id)?.ci === point.ci) continue;
|
|
1879
1912
|
let cell = s.vals[point.ci], override = cell.labelOverride, extreme = cell.v === min || cell.v === max, flagged = flaggedContent !== null && override === void 0 && flaggedAt(s, point.ci), engine = content !== null && override === void 0 && (mode === "all" || extreme) || flagged;
|
|
1880
1913
|
if (typeof override != "string" && !engine) continue;
|
|
1881
|
-
let category = domain.cats[point.ci], valueFmt = domain.valueFmtOf(s, cell), text = typeof override == "string" ? override
|
|
1914
|
+
let category = domain.cats[point.ci], valueFmt = domain.valueFmtOf(s, cell), { text: composed, shows } = typeof override == "string" ? composeWithShows(override, domain, ["absolute"], { abs: cell.v ?? 0, isPct: cell.isPct }, category.label ?? category.id, s.label, valueFmt) : composeWithShows(override, domain, content ?? flaggedContent, { abs: cell.v, isPct: cell.isPct }, category.label ?? category.id, s.label, valueFmt), text = typeof override == "string" ? override.replace(/\$\{value\}/g, composed) : composed;
|
|
1882
1915
|
if (!text) continue;
|
|
1883
1916
|
let size = env.measure(text, labelFont), below = sideAwayFrom(point, others) === "below", centeredX = Math.max(frame.plot.x, Math.min(point.x - size.width / 2, frame.plot.x + frame.plot.w - size.width)), aboveY = point.y - labelH - ABOVE_POINT_GAP, lift = domain.anatomy ? clearLift({ x: centeredX, y: aboveY, w: size.width, h: labelH }, strokes, labelH) : void 0, free = [
|
|
1884
1917
|
{ slot: "above", y: aboveY, penalty: below ? 1 : 0 },
|
|
@@ -1894,6 +1927,7 @@ function linePointLabels(env, domain, area, geometry, requests, strokes, fills)
|
|
|
1894
1927
|
role: composedTextRole(text),
|
|
1895
1928
|
owner: { seriesId: s.id, categoryId: category.id },
|
|
1896
1929
|
text,
|
|
1930
|
+
...shows ? { shows } : {},
|
|
1897
1931
|
lines: [text],
|
|
1898
1932
|
typeRole: "label",
|
|
1899
1933
|
font: labelFont,
|
|
@@ -1999,6 +2033,7 @@ function planComboLabels(env, domain, area, geometry, paints, warnings) {
|
|
|
1999
2033
|
last: endpoint.point,
|
|
2000
2034
|
lastCat: domain.cats[endpoint.point.ci],
|
|
2001
2035
|
text: endpoint.end.text,
|
|
2036
|
+
...endpoint.end.shows ? { shows: endpoint.end.shows } : {},
|
|
2002
2037
|
labelFont,
|
|
2003
2038
|
measure: env.measure,
|
|
2004
2039
|
MARKER_R: 2.75,
|
|
@@ -2089,7 +2124,7 @@ function columnMarks(ctx) {
|
|
|
2089
2124
|
if (v === null) return;
|
|
2090
2125
|
let v0 = v >= 0 ? pos : neg, v1 = v0 + v;
|
|
2091
2126
|
if (v >= 0 ? pos = v1 : neg = v1, g.segEdges.set(sk(s.id, c.id), { v0, v1, v }), v === 0) return;
|
|
2092
|
-
let rect = { x: bx, y: y(Math.max(v0, v1)), w: bw, h: Math.max(Math.abs(y(v0) - y(v1)), 0.5) }, nodeId = `mark:${s.id}:${c.id}`, cellFill = paints.cell(s, val, c, si), cellPat = paints.pattern(s, val, c), washed = "tint" in cellFill && cellFill.tint !== void 0, cellSep = cellPat || washed || markOutlineOff(cellFill, env.theme) ? void 0 : segmentSeparationStroke(cellFill, env.theme.color.background, env.theme);
|
|
2127
|
+
let rect = { x: bx, y: y(Math.max(v0, v1)), w: bw, h: Math.max(Math.abs(y(v0) - y(v1)), 0.5) }, nodeId = `mark:${s.id}:${c.id}`, cellFill = paints.cell(s, val, c, si), cellPat = paints.pattern(s, val, c), washed = "tint" in cellFill && cellFill.tint !== void 0, valueText = domain.valueFmtOf(s, val)(v), cellSep = cellPat || washed || markOutlineOff(cellFill, env.theme) ? void 0 : segmentSeparationStroke(cellFill, env.theme.color.background, env.theme);
|
|
2093
2128
|
nodes.push({
|
|
2094
2129
|
t: "rect",
|
|
2095
2130
|
id: nodeId,
|
|
@@ -2100,7 +2135,8 @@ function columnMarks(ctx) {
|
|
|
2100
2135
|
...washed ? {} : { separation: { fillStep: !0, fill: cellFill, backing: { token: "background" }, pattern: cellPat } },
|
|
2101
2136
|
owner: { seriesId: s.id, categoryId: c.id },
|
|
2102
2137
|
part: "segment",
|
|
2103
|
-
|
|
2138
|
+
// Its label's value text, also where it draws none: as the segment or the single column's total prints it.
|
|
2139
|
+
display: { value: valueText, shows: { value: valueText } }
|
|
2104
2140
|
}), claims.claim(rect, "mark", { seriesId: s.id, categoryId: c.id }, "segment"), segs.push({ seriesId: s.id, rect, nodeId }), g.segments.push({ s, si, ci, v, rect });
|
|
2105
2141
|
});
|
|
2106
2142
|
let stackTop = y(pos), stackBot = y(neg);
|
|
@@ -2114,7 +2150,7 @@ function columnMarks(ctx) {
|
|
|
2114
2150
|
cats.forEach((c, ci) => {
|
|
2115
2151
|
let v = s.vals[ci].v;
|
|
2116
2152
|
if (v === null) return;
|
|
2117
|
-
let ry = y(v), bx = band.position(ci), bw = band.bandwidth, owner = { seriesId: s.id, categoryId: c.id }, id = `ref:${s.id}:${c.id}`,
|
|
2153
|
+
let ry = y(v), bx = band.position(ci), bw = band.bandwidth, owner = { seriesId: s.id, categoryId: c.id }, id = `ref:${s.id}:${c.id}`, text = domain.valueFmtOf(s, s.vals[ci])(v), display = { value: text, shows: { value: text } };
|
|
2118
2154
|
if (style === "marker") {
|
|
2119
2155
|
let cx = band.center(ci);
|
|
2120
2156
|
nodes.push({ t: "circle", id, cx, cy: ry, ...referenceMarkerPaint(env.theme, paints.ref(s)), owner, part: "referenceMarker", display });
|
|
@@ -2250,12 +2286,17 @@ function lineMark(ctx, plan, areaNodeId, ringed) {
|
|
|
2250
2286
|
let c = cats[p.ci], markerNodeId;
|
|
2251
2287
|
if (markerShape !== "none" && (full || c.partial === !0)) {
|
|
2252
2288
|
markerNodeId = `marker:${s.id}:${c.id}`;
|
|
2253
|
-
let hollow = c.partial === !0 || paints.lineHollow(s), markerFill = hollow ? { token: "background" } : paint, owner = { seriesId: s.id, categoryId: c.id }, value = s.vals[p.ci],
|
|
2289
|
+
let hollow = c.partial === !0 || paints.lineHollow(s), markerFill = hollow ? { token: "background" } : paint, owner = { seriesId: s.id, categoryId: c.id }, value = s.vals[p.ci], text = domain.valueFmtOf(s, value)(value.v), display = { value: text, shows: { value: text } };
|
|
2254
2290
|
g.nodes.push(anatomyDots && !hollow ? { t: "circle", id: markerNodeId, cx: p.x, cy: p.y, r: ANATOMY_DOT_R, fill: markerFill, stroke: { token: "background" }, strokeWidth: strokeToken(env.theme, "mark"), owner, part: "marker", display } : markerShape === "square" ? { t: "rect", id: markerNodeId, rect: { x: p.x - 2.75, y: p.y - 2.75, w: 2.75 * 2, h: 2.75 * 2 }, fill: markerFill, ...hollow ? { stroke: paint, strokeWidth: strokeToken(env.theme, "mark") } : {}, owner, part: "marker", display } : markerShape === "triangle" || markerShape === "diamond" ? { t: "path", id: markerNodeId, d: markerPath(markerShape, p), fill: markerFill, ...hollow ? { stroke: paint, width: strokeToken(env.theme, "mark") } : {}, owner, part: "marker", display } : { t: "circle", id: markerNodeId, cx: p.x, cy: p.y, r: 2.75, fill: markerFill, stroke: hollow ? paint : { token: "background" }, strokeWidth: strokeToken(env.theme, "mark"), owner, part: "marker", display });
|
|
2255
2291
|
let claimR = markerShape === "triangle" || markerShape === "diamond" ? 4 + (hollow ? strokeToken(env.theme, "mark") / 2 : 0) : 2.75 + 1;
|
|
2256
2292
|
g.claims.claim({ x: p.x - claimR, y: p.y - claimR, w: claimR * 2, h: claimR * 2 }, "mark", { seriesId: s.id, categoryId: c.id });
|
|
2257
2293
|
}
|
|
2258
2294
|
markPoints.push({ categoryId: c.id, x: p.x, y: p.y, markerNodeId });
|
|
2295
|
+
let cell = s.vals[p.ci];
|
|
2296
|
+
if (!markerNodeId) {
|
|
2297
|
+
let endShown = [ctx.area.first.get(s.id), ctx.area.last.get(s.id)].find((end) => end?.ci === p.ci)?.shows?.value;
|
|
2298
|
+
(g.marks.shown ??= []).push({ owner: { seriesId: s.id, categoryId: c.id }, shows: { value: endShown ?? domain.valueFmtOf(s, cell)(cell.v) } });
|
|
2299
|
+
}
|
|
2259
2300
|
}
|
|
2260
2301
|
let latest = domain.options.latestPoint;
|
|
2261
2302
|
(latest === void 0 ? inkLead : latest === "ring" && s.id === ringed) && latestPointRing(env.theme, g, s, pts.filter((p) => {
|
|
@@ -2315,6 +2356,7 @@ function comboAnomalyMarks(env, domain, anomaly, area, geometry) {
|
|
|
2315
2356
|
anomaly: anomaly.model,
|
|
2316
2357
|
corridorShown: anomaly.corridorShown,
|
|
2317
2358
|
statFmt: anomaly.statFmt,
|
|
2359
|
+
corridorFmt: anomaly.corridorFmt,
|
|
2318
2360
|
fmt: domain.valueFmtOf(series),
|
|
2319
2361
|
corridorPaint: columnCorridorPaint(domain.options.colorblindSafe),
|
|
2320
2362
|
plot: area.plot,
|
|
@@ -2377,6 +2419,7 @@ function annotateCombo(env, domain, area, geometry, occupied, solveCtx, labelReq
|
|
|
2377
2419
|
measure: env.measure,
|
|
2378
2420
|
format: domain.options.format,
|
|
2379
2421
|
locale: domain.options.locale?.language,
|
|
2422
|
+
levelSpec: domain.valueSpec,
|
|
2380
2423
|
strings: domain.options.strings,
|
|
2381
2424
|
valueLinePercentLevels: domain.options.unit === "%" || percentLevels([...columns, ...domain.lines.filter((series) => series.axis === "primary")]),
|
|
2382
2425
|
secondaryPercentLevels: !!domain.options.secondaryAxis?.ruler || secondarySeries.length > 0 && secondarySeries.every((series) => series.unit === "%" || percentLevels([series])),
|
|
@@ -2394,7 +2437,15 @@ function annotateCombo(env, domain, area, geometry, occupied, solveCtx, labelReq
|
|
|
2394
2437
|
});
|
|
2395
2438
|
}
|
|
2396
2439
|
function assembleComboGeometry(input) {
|
|
2397
|
-
let { env, domain, area, geometry, solved, annotated, warnings, lane } = input, { cats, columns, lines, refs, fmt, stackTotals, secondaryDomain } = domain, { frame, catPlan, band, plot, showCatTickRow, strongFont, labelFont, tickFont } = area, catFont = catPlan.font, allLabels = [...solved.placed, ...annotated.labels],
|
|
2440
|
+
let { env, domain, area, geometry, solved, annotated, warnings, lane } = input, { cats, columns, lines, refs, fmt, stackTotals, secondaryDomain } = domain, { frame, catPlan, band, plot, showCatTickRow, strongFont, labelFont, tickFont } = area, catFont = catPlan.font, allLabels = [...solved.placed, ...annotated.labels], shown = [...geometry.marks.shown ?? []], totalShows = /* @__PURE__ */ new Map();
|
|
2441
|
+
for (let label of allLabels) {
|
|
2442
|
+
let categoryId = label.owner.categoryId;
|
|
2443
|
+
if (label.kind !== "grandTotal" || label.hidden !== void 0 || !label.shows || categoryId === void 0) continue;
|
|
2444
|
+
totalShows.set(categoryId, label.shows);
|
|
2445
|
+
let ci = cats.findIndex((c) => c.id === categoryId), single = ci < 0 ? void 0 : totalColumn(domain, ci);
|
|
2446
|
+
single && shown.push({ owner: { seriesId: single.id, categoryId }, shows: label.shows, drawn: !0 });
|
|
2447
|
+
}
|
|
2448
|
+
let nodes = [...frame.nodes, ...geometry.nodes];
|
|
2398
2449
|
spliceAnnotationNodes(nodes, annotated.nodes);
|
|
2399
2450
|
let lastFill = nodes.reduce((at, node, i) => node.part === "area" ? i : at, -1);
|
|
2400
2451
|
if (lastFill >= 0) {
|
|
@@ -2426,7 +2477,8 @@ function assembleComboGeometry(input) {
|
|
|
2426
2477
|
columns.length > 0 ? chartString2(domain.options, "stackedColumnSeriesDesc", { v1: columns.length, v2: columns.map((s) => s.label).join(", ") }) : "",
|
|
2427
2478
|
lines.length > 0 ? chartString2(domain.options, "lineAreaSeriesDesc", { v1: lines.length, v2: lines.map((s) => s.label).join(", ") }) : "",
|
|
2428
2479
|
refs.length > 0 ? chartString2(domain.options, "referenceSeriesCount", { v1: refs.length }) : ""
|
|
2429
|
-
].filter(Boolean).join(chartString2(domain.options, "plusClause")), totalsAdd = columns.length > 0 && domain.columnsAdd, a11yDesc = chartString2(domain.options, "comboDescStart", { v1: cats.length, v2: partsDesc }) + (domain.secondaryActive ? chartString2(domain.options, "secondaryAxisDesc") : "") +
|
|
2480
|
+
].filter(Boolean).join(chartString2(domain.options, "plusClause")), totalsAdd = columns.length > 0 && domain.columnsAdd, a11yDesc = chartString2(domain.options, "comboDescStart", { v1: cats.length, v2: partsDesc }) + (domain.secondaryActive ? chartString2(domain.options, "secondaryAxisDesc") : "") + // Each total as the chart shows it: its drawn label's text, else as that label formats it.
|
|
2481
|
+
(totalsAdd ? chartString2(domain.options, "columnTotalsSentence", { v1: cats.map((c, ci) => `${c.label ?? c.id} ${domain.anyByCat[ci] ? totalShows.get(c.id)?.value ?? domain.totalFmtOf(ci)(stackTotals[c.id]) : NOT_AVAILABLE}`).join(", ") }) : ".") + anomalyA11y({ options: domain.options, anomaly: domain.anomaly, fmt: domain.anomaly ? domain.valueFmtOf(domain.lines.find((s) => s.id === domain.anomaly.seriesId)) : fmt, cats }), paintWarningRules = [];
|
|
2430
2482
|
pushAll(warnings, rectSeriesAdjacentWarnings(nodes, input.paints.css, "vertical", env.highlights, env.theme, { rules: paintWarningRules, before: warnings.filter((warning) => !["pie-ramp-crowded", "likert-ramp-invisible", "band-lightness-insufficient", "series-adjacent-similar", "highlight-reads-as-loss"].includes(warning.code)).length }));
|
|
2431
2483
|
let catTickMaxLines = catPlan.maxLines, clearance = domain.options[LINE_BAND_CLEARANCE], floatClearance = domain.options[FLOAT_BAND_CLEARANCE];
|
|
2432
2484
|
return {
|
|
@@ -2444,7 +2496,7 @@ function assembleComboGeometry(input) {
|
|
|
2444
2496
|
annotations: lane ? [...annotated.placed, ...lane.placed] : annotated.placed,
|
|
2445
2497
|
legend: frame.legend,
|
|
2446
2498
|
frame: frame.frame,
|
|
2447
|
-
marks: geometry.marks,
|
|
2499
|
+
marks: shown.length > 0 ? { ...geometry.marks, shown } : geometry.marks,
|
|
2448
2500
|
derived: {
|
|
2449
2501
|
stackTotals: totalsAdd ? stackTotals : {},
|
|
2450
2502
|
stackParts: totalsAdd ? stackParts(stackTotals, cats, columns, (si, ci) => columns[si].vals[ci].v) : {},
|