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
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
eyebrowFont,
|
|
6
6
|
figureRole
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W4ZLMK6Z.js";
|
|
8
8
|
import {
|
|
9
9
|
fittedLabel,
|
|
10
10
|
stepDownFont
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
12
12
|
import {
|
|
13
13
|
cardSize,
|
|
14
14
|
emitKpiSpark,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
lastObservedIndex,
|
|
18
18
|
lastObservedLabel,
|
|
19
19
|
lastObservedPriority
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LM4GVVPM.js";
|
|
21
21
|
import {
|
|
22
22
|
structureCount
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
24
24
|
import {
|
|
25
25
|
alignedLeft,
|
|
26
26
|
authoredTrackWidth,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-GKDUIDU6.js";
|
|
29
29
|
import {
|
|
30
30
|
chipPaints
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2HRDOBPS.js";
|
|
32
32
|
import {
|
|
33
33
|
bandFor
|
|
34
34
|
} from "./chunk-263SZKIL.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
chartSizing,
|
|
37
37
|
resolveSizing,
|
|
38
38
|
rowDrivenHeight
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YM4MVABU.js";
|
|
40
40
|
import {
|
|
41
41
|
PRIORITY,
|
|
42
42
|
composedTextRole,
|
|
@@ -49,22 +49,27 @@ import {
|
|
|
49
49
|
solveLabels,
|
|
50
50
|
textCarriesUnit,
|
|
51
51
|
unitPrinted
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-AUSZDYGE.js";
|
|
53
53
|
import {
|
|
54
|
+
RULE_SET,
|
|
55
|
+
defaultSetSpec,
|
|
54
56
|
differenceExample,
|
|
57
|
+
exactExampleSpec,
|
|
55
58
|
formatNonzeroWithSpec,
|
|
59
|
+
formatWithSpec,
|
|
60
|
+
joinedChangeSpec,
|
|
56
61
|
localized,
|
|
57
62
|
parseFormatExample,
|
|
63
|
+
percentChangeSpec,
|
|
58
64
|
sameScale,
|
|
59
65
|
specUnitKind,
|
|
60
66
|
withUnit
|
|
61
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-3JG764MI.js";
|
|
62
68
|
import {
|
|
63
69
|
MINUS,
|
|
64
70
|
chartStrings,
|
|
65
|
-
formatAutomaticPercent
|
|
66
|
-
|
|
67
|
-
} from "./chunk-MSYTF3DZ.js";
|
|
71
|
+
formatAutomaticPercent
|
|
72
|
+
} from "./chunk-FYFXOLWI.js";
|
|
68
73
|
import {
|
|
69
74
|
cellMeta
|
|
70
75
|
} from "./chunk-O3VN6BTL.js";
|
|
@@ -81,7 +86,7 @@ import {
|
|
|
81
86
|
resolveSurface,
|
|
82
87
|
resolveTheme,
|
|
83
88
|
textScaleOf
|
|
84
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-XAH4EWJT.js";
|
|
85
90
|
import {
|
|
86
91
|
DEFAULT_TARGET,
|
|
87
92
|
NormalizeError,
|
|
@@ -258,12 +263,12 @@ function layoutKpi(authored, options = {}) {
|
|
|
258
263
|
throw new NormalizeError("conflicting-options", "compare", "kpi accepts either delta or compare, not both", void 0, void 0, ["data", "compare"]);
|
|
259
264
|
if (data.compare && (data.compare.length < 1 || data.compare.length > 2))
|
|
260
265
|
throw new NormalizeError("invalid-count", "compare", "kpi compare requires one or two entries", void 0, void 0, ["data", "compare"]);
|
|
261
|
-
let value = data.value, valueBand = data.bands?.length ? bandFor(value, data.bands) : void 0, deltaScenario = normalizeScenario(data.delta?.scenario, "delta.scenario", "compare[].label"), example = data.format ?? options.format,
|
|
262
|
-
let r1 = Math.round(p * 10) / 10;
|
|
263
|
-
return formatAutomaticPercent(p, Number.isInteger(r1) ? 0 : 1, signed, options.locale?.language);
|
|
264
|
-
}, derived = {};
|
|
266
|
+
let value = data.value, valueBand = data.bands?.length ? bandFor(value, data.bands) : void 0, deltaScenario = normalizeScenario(data.delta?.scenario, "delta.scenario", "compare[].label"), example = data.format ?? options.format, authoredSpec = (text) => exactExampleSpec(text, options.locale?.language) ?? localized(parseFormatExample(text), options.locale?.language), spec = example ? authoredSpec(example) : void 0, referencePrinted = data.delta !== void 0 && deltaScenario === void 0 && typeof data.delta.vs == "number", printed = [value, ...referencePrinted ? [data.delta.vs] : []], changes = data.delta ? [value - Number(data.delta.vs)] : (data.compare ?? []).map((comparison) => value - Number(comparison.vs)), levelSpec = spec ? void 0 : defaultSetSpec(printed, options.locale?.language, options.unit, { cell: !0 }), fmt = spec ? (v) => formatNonzeroWithSpec(v, spec) : (v) => formatWithSpec(v, levelSpec), percentMeasure = spec !== void 0 && specUnitKind(spec) === "percent", diffSpec = example ? authoredSpec(differenceExample(example)) : void 0, pointChanges = levelSpec?.[RULE_SET]?.set.kind === "percent", changeSpec = levelSpec && (pointChanges ? { ...percentChangeSpec(changes, options.locale?.language, levelSpec.suffix), prefix: levelSpec.prefix } : joinedChangeSpec(levelSpec, changes)), fmtDiff = diffSpec ? (v) => formatNonzeroWithSpec(v, diffSpec) : (v) => formatWithSpec(v, { ...changeSpec, signed: !1 }), fmtSigned = diffSpec ? (v) => formatNonzeroWithSpec(v, { ...diffSpec, signed: !0 }) : (v) => formatWithSpec(v, changeSpec), relative = (vs) => typeof vs == "number" && vs > 0 && value >= 0 ? (value - vs) / vs * 100 : null, pctSpec = percentChangeSpec(data.delta ? [relative(data.delta.vs)] : (data.compare ?? []).map((comparison) => relative(comparison.vs)), options.locale?.language, "%"), fmtPct = (p, signed) => formatWithSpec(p, signed ? pctSpec : { ...pctSpec, signed: !1 }), sharePct = (p) => formatAutomaticPercent(p, Number.isInteger(Math.round(p * 10) / 10) ? 0 : 1, !1, options.locale?.language), valueFmt = fmt(value), derived = {};
|
|
265
267
|
valueBand && (derived.band = { tone: valueBand.tone ?? "neutral", ...valueBand.label ? { label: valueBand.label } : {} });
|
|
266
|
-
let comparisonVisuals = [],
|
|
268
|
+
let comparisonVisuals = [], comparisonShows = [], changeShows = (index, mode, pct, deltaAbs) => ({
|
|
269
|
+
...mode === "absolute" ? {} : { [`cmp${index}.percent`]: fmtPct(pct, !0) },
|
|
270
|
+
...mode === "relative" ? {} : { [`cmp${index}.delta`]: fmtSigned(deltaAbs) }
|
|
271
|
+
}), deltaText, deltaBody, caretDir, a11yDelta = "";
|
|
267
272
|
if (data.delta) {
|
|
268
273
|
let vs = data.delta.vs;
|
|
269
274
|
if (typeof vs != "number" || !Number.isFinite(vs))
|
|
@@ -276,7 +281,7 @@ function layoutKpi(authored, options = {}) {
|
|
|
276
281
|
suggest: "mode: 'absolute'"
|
|
277
282
|
}), vs > 0 && value >= 0 && (derived.deltaPct = deltaAbs / vs * 100), derived.tone = deltaAbs === 0 || direction === "neutral" ? "neutral" : deltaAbs > 0 == (direction === "higherIsBetter") ? "good" : "bad", caretDir = !carets || deltaAbs === 0 ? void 0 : deltaAbs > 0 ? "up" : "down";
|
|
278
283
|
let pct = derived.deltaPct, body = mode === "relative" ? fmtPct(pct, !0) : mode === "both" ? `${fmtPct(pct, !0)} (${fmtSigned(deltaAbs)})` : fmtSigned(deltaAbs), suffix = ` vs ${deltaScenario ?? fmt(vs)}`;
|
|
279
|
-
deltaText = `${body}${suffix}`, deltaBody = body;
|
|
284
|
+
deltaText = `${body}${suffix}`, deltaBody = body, comparisonShows.push(changeShows(0, mode, pct, deltaAbs));
|
|
280
285
|
let word = chartString(options, deltaAbs > 0 ? "up" : deltaAbs < 0 ? "down" : "unchanged"), magnitude = mode === "relative" ? fmtPct(Math.abs(pct), !1) : mode === "both" ? `${fmtPct(Math.abs(pct), !1)} (${fmtDiff(Math.abs(deltaAbs))})` : fmtDiff(Math.abs(deltaAbs));
|
|
281
286
|
a11yDelta = deltaAbs === 0 ? `, ${word}${suffix}` : `, ${word} ${magnitude}${suffix}`, derived.comparisons = [{
|
|
282
287
|
source: "delta",
|
|
@@ -304,7 +309,9 @@ function layoutKpi(authored, options = {}) {
|
|
|
304
309
|
message: refused === "sign-change" ? `value and compare[${index}].vs have opposite signs \u2014 relative delta suppressed, absolute shown` : `compare[${index}].vs is nonpositive \u2014 relative delta suppressed, absolute shown`,
|
|
305
310
|
owner: { seriesId: `compare-${index}` }
|
|
306
311
|
});
|
|
307
|
-
let body = mode === "relative" ? fmtPct(deltaPct, !0) : mode === "both" ? `${fmtPct(deltaPct, !0)} (${fmtSigned(deltaAbs)})` : fmtSigned(deltaAbs), firstLower = direction === "lowerIsBetter" && data.compare.findIndex((entry) => entry.direction === "lowerIsBetter") === index, displayed = `${body} ${label}
|
|
312
|
+
let body = mode === "relative" ? fmtPct(deltaPct, !0) : mode === "both" ? `${fmtPct(deltaPct, !0)} (${fmtSigned(deltaAbs)})` : fmtSigned(deltaAbs), firstLower = direction === "lowerIsBetter" && data.compare.findIndex((entry) => entry.direction === "lowerIsBetter") === index, displayed = `${body} ${label}`;
|
|
313
|
+
comparisonShows[index] = changeShows(index, mode, deltaPct, deltaAbs);
|
|
314
|
+
let record = {
|
|
308
315
|
source: "compare",
|
|
309
316
|
value,
|
|
310
317
|
vs: comparison.vs,
|
|
@@ -328,6 +335,7 @@ function layoutKpi(authored, options = {}) {
|
|
|
328
335
|
let first = derived.comparisons[0];
|
|
329
336
|
derived.deltaAbs = first.deltaAbs, first.deltaPct !== null && (derived.deltaPct = first.deltaPct), derived.tone = first.tone, a11yDelta = derived.comparisons.map((comparison) => `, ${comparison.displayed}`).join("");
|
|
330
337
|
}
|
|
338
|
+
let attainmentFigure;
|
|
331
339
|
if (data.attainment) {
|
|
332
340
|
let attainment = data.attainment;
|
|
333
341
|
if (typeof attainment.vs != "number" || !Number.isFinite(attainment.vs))
|
|
@@ -340,7 +348,7 @@ function layoutKpi(authored, options = {}) {
|
|
|
340
348
|
severity: "warn",
|
|
341
349
|
message: "attainment.vs is nonpositive \u2014 attainment is not meaningful",
|
|
342
350
|
owner: { seriesId: "attainment" }
|
|
343
|
-
}), derived.attainment = {
|
|
351
|
+
}), attainmentFigure = suppressed ? "n.m." : pct > 999 ? ">999%" : pct < -999 ? `<${MINUS}999%` : sharePct(pct), derived.attainment = {
|
|
344
352
|
value,
|
|
345
353
|
vs: attainment.vs,
|
|
346
354
|
label,
|
|
@@ -349,7 +357,7 @@ function layoutKpi(authored, options = {}) {
|
|
|
349
357
|
// the attainment states the same shortfall or lead.
|
|
350
358
|
tone: attainment.tone ?? (suppressed ? void 0 : derived.comparisons?.find((comparison) => comparison.vs === attainment.vs)?.tone) ?? "neutral",
|
|
351
359
|
state: suppressed ? "ref-nonpositive" : "value",
|
|
352
|
-
displayed: `${
|
|
360
|
+
displayed: `${attainmentFigure} ${label}`
|
|
353
361
|
};
|
|
354
362
|
}
|
|
355
363
|
let occupied = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height }), margin = { top: 12, right: 12, bottom: 12, left: 12, ...options.margin }, subtitle = options.title ? resolveSubtitle(options.subtitle) ?? (data.label ? { measure: data.label } : void 0) : resolveSubtitle(options.subtitle), frameTheme = options.title && subtitle?.measure === data.label ? { ...theme, type: { ...theme.type, subtitle: { ...theme.type.subtitle, size: Math.max(scaleTextPx(13, textScaleOf(options)), theme.type.subtitle.size) } } } : theme, frameResult = solveFrame(
|
|
@@ -391,7 +399,7 @@ function layoutKpi(authored, options = {}) {
|
|
|
391
399
|
endpointLabel,
|
|
392
400
|
endpointPriority,
|
|
393
401
|
endpointFormat,
|
|
394
|
-
{ heroText:
|
|
402
|
+
{ heroText: valueFmt, locale: options.locale?.language, ...data.spark.labels ? { periods: data.spark.labels } : {} }
|
|
395
403
|
), occupied.claim(sparkRect, "mark", { seriesId: "spark" });
|
|
396
404
|
}
|
|
397
405
|
let contentBottom = sparkRect ? sparkRect.y - 4 : plot.y + plot.h, textScale = textScaleOf(options), labelFont = eyebrowFont(theme, textScale), deltaFont = { family: theme.type.family, ...theme.type.label }, chipSize = Math.max(theme.type.footnote.size, readerFloorPx(target, "label", textScale)), chipFont = { family: theme.type.family, size: chipSize, weight: theme.type.label.weight, lineHeight: 1.2 }, chipH = Math.max(CHIP_H, Math.ceil(measure("0", chipFont).height + 2 * CHIP_PAD_Y)), textComparisons = options.comparisons === "text", compareFont = textComparisons ? deltaFont : chipFont, compareAnatomy = textComparisons ? TEXT_ANATOMY : { ...CHIP_ANATOMY, h: chipH }, figure = figureRole(theme), surface = resolveSurface(theme), chipInk = (tone) => chipPaints(theme, tone).ink, valueY = plot.y;
|
|
@@ -420,9 +428,9 @@ function layoutKpi(authored, options = {}) {
|
|
|
420
428
|
...frameResult.nodes.flatMap((node) => node.t === "text" ? node.lines : []),
|
|
421
429
|
...!options.title && kindOn("category") ? [data.label] : [],
|
|
422
430
|
data.note?.trim(),
|
|
423
|
-
|
|
431
|
+
valueFmt,
|
|
424
432
|
...options[KPI_HOST_TEXT] ?? []
|
|
425
|
-
], unitBeside = unit && !unitPrinted({ subtitle, unit, unitShown: options.unitShown }) && !around.some((text) => typeof text == "string" && textCarriesUnit(text, unit)) ? unit : void 0, valueText = withUnit(
|
|
433
|
+
], unitBeside = unit && !unitPrinted({ subtitle, unit, unitShown: options.unitShown }) && !around.some((text) => typeof text == "string" && textCarriesUnit(text, unit)) ? unit : void 0, valueText = withUnit(valueFmt, unitBeside), hero = kpiHeroSizesPx(target, theme.type.title.size, textScale), sharedFigure = options?.[KPI_VALUE_SIZE], baseSize = sharedFigure ?? hero.preferred, minimumValue = measure(valueText, { family: figure.family, size: hero.minimum, weight: figure.weight, lineHeight: 1.2 }), minimumValueH = minimumValue.height, deltaFloor = readerFloorPx(target, "label", textScale), deltaSuffix = deltaBody === void 0 ? "" : deltaText.slice(deltaBody.length).trim(), wrapDelta = (font, width) => !showDelta || measure(deltaText, font).width <= width ? [] : measure(deltaBody, font).width <= width && measure(deltaSuffix, font).width <= width ? [deltaBody, deltaSuffix] : wrapWhole(deltaText, font, width, measure), deltaWrapped = wrapDelta(deltaFont, Math.max(4, plot.w - caretPad)), deltaOneLine = deltaText === void 0 ? [] : [deltaText], deltaLines = deltaWrapped.length === 2 ? deltaWrapped : deltaOneLine, deltaBlock = (font, lines = deltaLines) => ({
|
|
426
434
|
w: Math.max(...lines.map((line) => measure(line, font).width)),
|
|
427
435
|
h: measure(lines[0], font).height + (lines.length - 1) * lineBox(font)
|
|
428
436
|
}), minimumDeltaH = showDelta ? deltaBlock({ ...deltaFont, size: Math.min(deltaFloor, deltaFont.size) }, deltaOneLine).h : 0, comparisonH = valueGap + comparisonRowH + attainmentRowH + attainmentGap, noteFont = { family: theme.type.family, ...theme.type.footnote }, noteBlock = (font) => {
|
|
@@ -477,6 +485,7 @@ function layoutKpi(authored, options = {}) {
|
|
|
477
485
|
kind: "total",
|
|
478
486
|
owner: { categoryId: "kpi" },
|
|
479
487
|
text: valueText,
|
|
488
|
+
shows: { value: valueFmt },
|
|
480
489
|
lines: [valueText],
|
|
481
490
|
font: valueFont,
|
|
482
491
|
typeRole: "kpiValue",
|
|
@@ -542,6 +551,8 @@ function layoutKpi(authored, options = {}) {
|
|
|
542
551
|
kind: "total",
|
|
543
552
|
owner: { categoryId: "kpi" },
|
|
544
553
|
text: valueText,
|
|
554
|
+
// The number before any unit the card sets beside it.
|
|
555
|
+
shows: { value: valueFmt },
|
|
545
556
|
lines: [valueText],
|
|
546
557
|
font: valueFont,
|
|
547
558
|
typeRole: "kpiValue",
|
|
@@ -712,8 +723,8 @@ function layoutKpi(authored, options = {}) {
|
|
|
712
723
|
};
|
|
713
724
|
}
|
|
714
725
|
if (node.id === "label:note:kpi") return { ...node, part: "kpiNote" };
|
|
715
|
-
if (node.id === "label:total:value") return { ...node, display: { value: valueText } };
|
|
716
|
-
if (node.id === "label:spark:last" && node.t === "text") return { ...node, display: { value: node.lines.join(" ") } };
|
|
726
|
+
if (node.id === "label:total:value") return { ...node, display: { ...node.display, value: valueText } };
|
|
727
|
+
if (node.id === "label:spark:last" && node.t === "text") return { ...node, display: { ...node.display, value: node.lines.join(" ") } };
|
|
717
728
|
if (node.id.startsWith("label:spark:period:") && node.t === "text") return { ...node, ink: { token: "inkMuted" }, part: "kpiSparkPeriod" };
|
|
718
729
|
if (node.id === "label:point:delta" && deltaText !== void 0)
|
|
719
730
|
return { ...node, display: { value: deltaText } };
|
|
@@ -740,7 +751,13 @@ function layoutKpi(authored, options = {}) {
|
|
|
740
751
|
comparisonNodeIds: data.compare ? comparisonLabels.flatMap((label) => label?.nodeId ? [label.nodeId] : []) : void 0,
|
|
741
752
|
attainmentNodeId: attainmentLabel?.nodeId,
|
|
742
753
|
sparkNodeId
|
|
743
|
-
},
|
|
754
|
+
}, drawnLabel = (label) => label !== void 0 && !label.hidden, kpiOwner = { categoryId: "kpi" }, shown = [{ owner: kpiOwner, shows: { value: valueFmt } }];
|
|
755
|
+
comparisonShows.forEach((shows, index) => shown.push({
|
|
756
|
+
owner: kpiOwner,
|
|
757
|
+
shows,
|
|
758
|
+
...drawnLabel(data.delta ? deltaLabel : comparisonLabels[index]) ? { drawn: !0 } : {}
|
|
759
|
+
})), derived.attainment !== void 0 && derived.attainment.pct !== null && attainmentFigure !== void 0 && drawnLabel(attainmentLabel) && shown.push({ owner: kpiOwner, shows: { "field:attainment": attainmentFigure }, drawn: !0 }), marks.shown = shown;
|
|
760
|
+
let sparkEndpoint = allLabels.find((label) => label.id === "spark:last"), sparkPhrase = sparkDrawable ? chartString(options, "kpiSparkDesc", { v1: sparkVals.length, v2: sparkEndpoint && !sparkEndpoint.hidden ? chartString(options, "endingAt", { v1: sparkEndpoint.text }) : "" }) : "", attainmentPhrase = derived.attainment ? derived.attainment.state === "ref-nonpositive" ? chartString(options, "attainmentNonpositive", { v1: derived.attainment.label }) : `, ${derived.attainment.displayed}` : "";
|
|
744
761
|
return {
|
|
745
762
|
type: "kpi",
|
|
746
763
|
size,
|
|
@@ -2,14 +2,15 @@ import {
|
|
|
2
2
|
clipTrendToDomain,
|
|
3
3
|
fitLogTicks,
|
|
4
4
|
olsFit,
|
|
5
|
-
olsMoments
|
|
6
|
-
|
|
5
|
+
olsMoments,
|
|
6
|
+
trendRateTexts
|
|
7
|
+
} from "./chunk-QMQZC2KW.js";
|
|
7
8
|
import {
|
|
8
9
|
preparePolyline
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7UZUXPFM.js";
|
|
10
11
|
import {
|
|
11
12
|
INTERVAL_TICK
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EZ5KUBYF.js";
|
|
13
14
|
import {
|
|
14
15
|
DEFAULT_OTHERS_SHADE
|
|
15
16
|
} from "./chunk-RQ5DNYLG.js";
|
|
@@ -18,21 +19,21 @@ import {
|
|
|
18
19
|
} from "./chunk-EKQK5D6G.js";
|
|
19
20
|
import {
|
|
20
21
|
warnSliverLabels
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RLX6VODQ.js";
|
|
22
23
|
import {
|
|
23
24
|
gapMarkerNode
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5QMM354E.js";
|
|
25
26
|
import {
|
|
26
27
|
chartString as chartString2,
|
|
27
28
|
localeStrings,
|
|
28
29
|
planNearZeroTails
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XHEG2BG6.js";
|
|
30
31
|
import {
|
|
31
32
|
categoryBandFromCenters
|
|
32
33
|
} from "./chunk-CDZHNLO6.js";
|
|
33
34
|
import {
|
|
34
35
|
trendTimeUnit
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-25JXYOSX.js";
|
|
36
37
|
import {
|
|
37
38
|
categoryLineAlign,
|
|
38
39
|
dayUnit,
|
|
@@ -46,7 +47,7 @@ import {
|
|
|
46
47
|
valueAxisTitleRequest,
|
|
47
48
|
warnSpreadOverflow,
|
|
48
49
|
yearRowRequests
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-YM4MVABU.js";
|
|
50
51
|
import {
|
|
51
52
|
AREA_FILL_PART,
|
|
52
53
|
LAST_RESORT_PENALTY,
|
|
@@ -63,37 +64,38 @@ import {
|
|
|
63
64
|
toDateFits,
|
|
64
65
|
toDateLabel,
|
|
65
66
|
unitPrinted
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-AUSZDYGE.js";
|
|
67
68
|
import {
|
|
68
69
|
disclosureNote
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-WD5NJHZG.js";
|
|
70
71
|
import {
|
|
71
72
|
defaultAnnotationId
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PPOUKS24.js";
|
|
73
74
|
import {
|
|
74
75
|
emptyIdRecord
|
|
75
76
|
} from "./chunk-LINZPU5D.js";
|
|
76
77
|
import {
|
|
78
|
+
RULE_SET,
|
|
77
79
|
defaultFormatSpec,
|
|
78
80
|
formatWithSpec,
|
|
81
|
+
isExactExample,
|
|
79
82
|
parseISODate,
|
|
83
|
+
ruleFormatter,
|
|
80
84
|
seriesRasterFormatter,
|
|
81
|
-
trendRateFormatter,
|
|
82
85
|
withUnit
|
|
83
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-3JG764MI.js";
|
|
84
87
|
import {
|
|
85
88
|
NOT_AVAILABLE,
|
|
86
89
|
NOT_MEANINGFUL,
|
|
87
90
|
chartString,
|
|
88
91
|
distinctDecimalLift,
|
|
89
|
-
formatAutomaticNumber,
|
|
90
92
|
formatAutomaticPercent,
|
|
91
93
|
formatExactNumber,
|
|
92
94
|
notApplicableGlyph,
|
|
93
95
|
numberRange,
|
|
94
96
|
shareDecimals,
|
|
95
97
|
stringFields
|
|
96
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-FYFXOLWI.js";
|
|
97
99
|
import {
|
|
98
100
|
HATCH_STRENGTH_DEFAULT,
|
|
99
101
|
LABEL_PLATE_RADIUS,
|
|
@@ -127,7 +129,7 @@ import {
|
|
|
127
129
|
sideAwayFrom,
|
|
128
130
|
strokeToken,
|
|
129
131
|
textScaleOf
|
|
130
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-XAH4EWJT.js";
|
|
131
133
|
import {
|
|
132
134
|
PALETTE_NORMAL_FLOOR,
|
|
133
135
|
palettePerceptualDistance
|
|
@@ -209,8 +211,16 @@ function drawnXs(domain, unit) {
|
|
|
209
211
|
return unit === "period" ? domain.cats.map((_, ci) => domain.population?.positions[ci] ?? domain.timeline?.positions[ci] ?? ci) : trendXs(domain.cats, unit);
|
|
210
212
|
}
|
|
211
213
|
var TREND_UNIT_KEY = { day: "trendPerDay", week: "trendPerWeek", month: "trendPerMonth", quarter: "trendPerQuarter", year: "trendPerYear", period: "trendPerPeriod", second: "trendPerSecond", minute: "trendPerMinute", hour: "trendPerHour" };
|
|
214
|
+
function lineTrendRates(domain, trends) {
|
|
215
|
+
let { options } = domain;
|
|
216
|
+
return trendRateTexts(trends, (fit) => {
|
|
217
|
+
if (domain.rebased) return {};
|
|
218
|
+
let series = domain.drawnSeries.find((s) => s.id === fit.id);
|
|
219
|
+
return { example: series.format ?? options.format, unit: series.vals.some((v) => v.isPct) ? "%" : series.unit ?? options.unit };
|
|
220
|
+
}, options.locale?.language, !0, domain.valueSpec.spec[RULE_SET]?.words);
|
|
221
|
+
}
|
|
212
222
|
function lineTrendLabel(domain, fit) {
|
|
213
|
-
let { options } = domain, label = typeof options.trend == "object" ? options.trend.label : void 0, series = domain.drawnSeries.find((s) => s.id === fit.id),
|
|
223
|
+
let { options } = domain, label = typeof options.trend == "object" ? options.trend.label : void 0, series = domain.drawnSeries.find((s) => s.id === fit.id), slope = domain.trendRates.get(fit.id), r2 = fit.r2 === null ? chartString2(options, "trendUndefined") : ruleFormatter(domain.trends.flatMap((t) => t.r2 === null ? [] : [t.r2]), options.locale?.language)(fit.r2);
|
|
214
224
|
return chartString2(options, "lineTrendKey", {
|
|
215
225
|
v1: label ?? chartString2(options, "linearTrend"),
|
|
216
226
|
v2: series.label,
|
|
@@ -375,7 +385,7 @@ function buildEndpointSeeds(input) {
|
|
|
375
385
|
if (labelOnly !== void 0 && !labelOnly.has(series.id)) return;
|
|
376
386
|
let ci = lastIdxOf.get(series.id);
|
|
377
387
|
if (ci === void 0) return;
|
|
378
|
-
let plotted = pv[rowOf.get(series)][ci], abs = rebased ? plotted : absOf(series, ci), pct = variant === "stacked100-area" && !input.sharesWithheld.has(cats[ci].id) ? plotted : null, source = rebased ? void 0 : series.vals[ci]?.format ? { ...series, format: series.vals[ci].format } : series, compose = (content, seriesLabel) => composeText(content, abs, pct, cats[ci].label ?? cats[ci].id, seriesLabel, endUnitSuffix2, series.vals[ci].isPct, source, cats[ci].id);
|
|
388
|
+
let plotted = pv[rowOf.get(series)][ci], abs = rebased ? plotted : absOf(series, ci), pct = variant === "stacked100-area" && !input.sharesWithheld.has(cats[ci].id) ? plotted : null, source = rebased ? void 0 : series.vals[ci]?.format ? { ...series, format: series.vals[ci].format } : series, compose = (content, seriesLabel) => composeText(content, abs, pct, cats[ci].label ?? cats[ci].id, seriesLabel, endUnitSuffix2, series.vals[ci].isPct, source, cats[ci].id), override = series.vals[ci].labelOverride, valueShows = typeof override == "string" ? override.includes("${value}") ? input.composeShows?.(variant === "stacked100-area" ? ["percent"] : ["absolute"], abs, pct, "", "", endUnitSuffix2, series.vals[ci].isPct, source, cats[ci].id) : void 0 : override === !1 ? void 0 : input.composeShows?.(valueParts, abs, pct, cats[ci].label ?? cats[ci].id, "", endUnitSuffix2, series.vals[ci].isPct, source, cats[ci].id);
|
|
379
389
|
seeds.push({
|
|
380
390
|
id: `series:${series.id}`,
|
|
381
391
|
kind: "series",
|
|
@@ -386,6 +396,7 @@ function buildEndpointSeeds(input) {
|
|
|
386
396
|
fullText: series.label,
|
|
387
397
|
...series.shortLabel ? { shortText: series.shortLabel } : {},
|
|
388
398
|
valueText: typeof series.vals[ci].labelOverride == "string" ? authoredCellText(series.vals[ci].labelOverride, { composeText, variant, abs, pct, isPct: series.vals[ci].isPct, unitSuffix: endUnitSuffix2, source, categoryId: cats[ci].id }) : series.vals[ci].labelOverride === !1 ? "" : compose(valueParts, ""),
|
|
399
|
+
...valueShows ? { valueShows } : {},
|
|
389
400
|
zeroText: composeText(valueParts, 0, 0, "", "", endUnitSuffix2, !1, source),
|
|
390
401
|
// Every printed part is zero at its precision: the absolute value by
|
|
391
402
|
// its raw number, a share by its printed text.
|
|
@@ -395,7 +406,7 @@ function buildEndpointSeeds(input) {
|
|
|
395
406
|
}), seeds;
|
|
396
407
|
}
|
|
397
408
|
function toEndLabel(seed, text, lines, width, labelH) {
|
|
398
|
-
return { id: seed.id, kind: seed.kind, ...seed.shared ? { shared: !0 } : {}, s: seed.s, dataIdx: seed.dataIdx, ci: seed.ci, text, w: width, lines, h: Math.max(1, lines.length) * labelH, ...seed.valueText ? { valueText: seed.valueText } : {} };
|
|
409
|
+
return { id: seed.id, kind: seed.kind, ...seed.shared ? { shared: !0 } : {}, s: seed.s, dataIdx: seed.dataIdx, ci: seed.ci, text, w: width, lines, h: Math.max(1, lines.length) * labelH, ...seed.valueText ? { valueText: seed.valueText, ...seed.valueShows ? { valueShows: seed.valueShows } : {} } : {} };
|
|
399
410
|
}
|
|
400
411
|
function oneLineLabels(seeds, textOf, labelFont, labelH, measure) {
|
|
401
412
|
return seeds.flatMap((seed) => {
|
|
@@ -620,7 +631,7 @@ function placeEndpointLabels(input) {
|
|
|
620
631
|
owner: { seriesId: label.s.id, categoryId: input.cats[label.ci].id },
|
|
621
632
|
text: label.text,
|
|
622
633
|
lines: label.lines,
|
|
623
|
-
...label.valueText && label.text.endsWith(` ${label.valueText}`) ? { printsFor: [{ seriesId: label.s.id, categoryId: input.cats[label.ci].id }] } : {},
|
|
634
|
+
...label.valueText && label.text.endsWith(` ${label.valueText}`) ? { printsFor: [{ seriesId: label.s.id, categoryId: input.cats[label.ci].id }], ...label.valueShows ? { shows: label.valueShows } : {} } : {},
|
|
624
635
|
...label.title !== void 0 ? { title: label.title } : {},
|
|
625
636
|
typeRole: "label",
|
|
626
637
|
font: label.font ?? input.labelFont,
|
|
@@ -644,22 +655,65 @@ function pointLabelSeeds(input) {
|
|
|
644
655
|
for (let ci of input.categoryIndices ?? drawn) {
|
|
645
656
|
let category = cats[ci], value = row[ci];
|
|
646
657
|
if (value === null) continue;
|
|
647
|
-
let cell = series.vals[ci],
|
|
658
|
+
let cell = series.vals[ci], args = pointValueArgs(input, ci, last), text = args.composeText(input.content, ...args.values);
|
|
648
659
|
if (typeof cell.labelOverride == "string" && (text = authoredCellText(cell.labelOverride, {
|
|
649
|
-
composeText,
|
|
660
|
+
composeText: args.composeText,
|
|
650
661
|
variant: input.variant,
|
|
651
|
-
abs,
|
|
652
|
-
pct,
|
|
662
|
+
abs: args.values[0],
|
|
663
|
+
pct: args.values[1],
|
|
653
664
|
isPct: cell.isPct,
|
|
654
|
-
unitSuffix,
|
|
655
|
-
source,
|
|
665
|
+
unitSuffix: args.values[4],
|
|
666
|
+
source: args.values[6],
|
|
656
667
|
categoryId: category.id
|
|
657
668
|
})), !text && cell.labelOverride !== !1) continue;
|
|
658
|
-
let endpoint = ci === drawn[0] || ci === last, extreme = value === min || value === max, highlighted = input.highlights.has(series.id) || input.highlights.has(category.id) || input.pointHighlights?.has(category.id), priority = cell.priority ?? (endpoint ? PRIORITY.endpoint : extreme ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(value))) + (highlighted ? PRIORITY.highlightBonus : 0);
|
|
659
|
-
seeds.push({ ci, text, w: input.measure(text || "0", input.labelFont).width, priority, suppressed: cell.labelOverride === !1, extreme, highlighted: highlighted === !0 });
|
|
669
|
+
let shows = typeof cell.labelOverride == "string" ? cell.labelOverride.includes("${value}") ? args.composeShows?.(input.variant === "stacked100-area" ? ["percent"] : ["absolute"], ...args.values) : void 0 : cell.labelOverride === !1 ? void 0 : args.composeShows?.(input.content, ...args.values), endpoint = ci === drawn[0] || ci === last, extreme = value === min || value === max, highlighted = input.highlights.has(series.id) || input.highlights.has(category.id) || input.pointHighlights?.has(category.id), priority = cell.priority ?? (endpoint ? PRIORITY.endpoint : extreme ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(value))) + (highlighted ? PRIORITY.highlightBonus : 0);
|
|
670
|
+
seeds.push({ ci, text, w: input.measure(text || "0", input.labelFont).width, priority, suppressed: cell.labelOverride === !1, extreme, highlighted: highlighted === !0, ...shows ? { shows } : {} });
|
|
660
671
|
}
|
|
661
672
|
return seeds;
|
|
662
673
|
}
|
|
674
|
+
function pointValueArgs(input, ci, last) {
|
|
675
|
+
let { series, row, cats } = input, category = cats[ci], value = row[ci], cell = series.vals[ci], source = input.rebased ? void 0 : cell.format ? { ...series, format: cell.format } : series, pct = input.variant === "stacked100-area" && !input.sharesWithheld.has(category.id) ? value : null, abs = input.rebased ? value : input.absOf(series, ci), unitSuffix = input.unitOnEvery || ci === last ? input.endUnitSuffix : "", end = ci === last;
|
|
676
|
+
return {
|
|
677
|
+
composeText: end ? input.composeEndText ?? input.composeText : input.composeText,
|
|
678
|
+
composeShows: end ? input.composeEndShows ?? input.composeShows : input.composeShows,
|
|
679
|
+
values: [abs, pct, category.label ?? category.id, series.label, unitSuffix, cell.isPct, source, category.id]
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
function pointWouldShows(input) {
|
|
683
|
+
let any = input.composeShows !== void 0 && input.drawnSeries.some((series) => series.vals.length > 0), lastOf = /* @__PURE__ */ new Map(), last = (series, row) => {
|
|
684
|
+
if (!lastOf.has(series)) {
|
|
685
|
+
let at;
|
|
686
|
+
for (let ci = row.length - 1; ci >= 0; ci--) if (row[ci] !== null) {
|
|
687
|
+
at = ci;
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
lastOf.set(series, at);
|
|
691
|
+
}
|
|
692
|
+
return lastOf.get(series);
|
|
693
|
+
}, textsAt = (series, ci) => {
|
|
694
|
+
let row = input.pv[input.rowOf.get(series)];
|
|
695
|
+
if (row[ci] === null || row[ci] === void 0) return;
|
|
696
|
+
let content = ["absolute"], args = pointValueArgs({ ...input, series, row, content }, ci, last(series, row));
|
|
697
|
+
return args.composeShows?.(content, ...args.values);
|
|
698
|
+
};
|
|
699
|
+
return {
|
|
700
|
+
any,
|
|
701
|
+
at: (seriesId, categoryId) => {
|
|
702
|
+
let series = any ? input.drawnSeries.find((item) => item.id === seriesId) : void 0, ci = series ? input.cats.findIndex((category) => category.id === categoryId) : -1;
|
|
703
|
+
return series && ci >= 0 ? textsAt(series, ci) : void 0;
|
|
704
|
+
},
|
|
705
|
+
all: () => {
|
|
706
|
+
let shown = [];
|
|
707
|
+
if (!any) return shown;
|
|
708
|
+
for (let series of input.drawnSeries)
|
|
709
|
+
input.pv[input.rowOf.get(series)].forEach((_, ci) => {
|
|
710
|
+
let shows = textsAt(series, ci);
|
|
711
|
+
shows && shown.push({ owner: { seriesId: series.id, categoryId: input.cats[ci].id }, shows });
|
|
712
|
+
});
|
|
713
|
+
return shown;
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
}
|
|
663
717
|
function buildPointCandidates(input) {
|
|
664
718
|
let { series, dataIdx, row } = input;
|
|
665
719
|
return pointLabelSeeds(input).map((seed) => {
|
|
@@ -715,6 +769,7 @@ function pushPointRequests(input) {
|
|
|
715
769
|
role: composedTextRole(candidate.text),
|
|
716
770
|
owner: { seriesId: input.series.id, categoryId: category.id },
|
|
717
771
|
text: candidate.text,
|
|
772
|
+
...candidate.shows ? { shows: candidate.shows } : {},
|
|
718
773
|
lines: [candidate.text],
|
|
719
774
|
typeRole: "label",
|
|
720
775
|
font: input.labelFont,
|
|
@@ -823,6 +878,7 @@ function pushPointRequests(input) {
|
|
|
823
878
|
role: composedTextRole(candidate.text),
|
|
824
879
|
owner: { seriesId: input.series.id, categoryId: category.id },
|
|
825
880
|
text: candidate.text,
|
|
881
|
+
...candidate.shows ? { shows: candidate.shows } : {},
|
|
826
882
|
lines: words?.lines ?? [candidate.text],
|
|
827
883
|
...words?.request,
|
|
828
884
|
typeRole: "label",
|
|
@@ -877,7 +933,7 @@ function pointLabelEndRoom(input) {
|
|
|
877
933
|
function pointValueWidths(input) {
|
|
878
934
|
let widths = /* @__PURE__ */ new Map();
|
|
879
935
|
for (let { series, row, content, only } of pointLabelSelection(input))
|
|
880
|
-
for (let seed of pointLabelSeeds({ ...input, series, row, content, categoryIndices: only }))
|
|
936
|
+
for (let seed of pointLabelSeeds({ ...input, composeShows: void 0, composeEndShows: void 0, series, row, content, categoryIndices: only }))
|
|
881
937
|
seed.suppressed || widths.set(`${series.id}:${seed.ci}`, seed.w);
|
|
882
938
|
return widths;
|
|
883
939
|
}
|
|
@@ -1142,7 +1198,7 @@ function placeBumpTieLabels(input) {
|
|
|
1142
1198
|
});
|
|
1143
1199
|
}
|
|
1144
1200
|
function joinTieValues(input) {
|
|
1145
|
-
let { bump, labelRequests, font, measure } = input;
|
|
1201
|
+
let { bump, labelRequests, font, measure } = input, printed = [];
|
|
1146
1202
|
for (let tie of bump?.ties ?? []) {
|
|
1147
1203
|
let ids = new Set(tie.seriesIds.map((id) => `point:${id}:${tie.categoryId}`)), values = labelRequests.filter((request) => ids.has(request.id));
|
|
1148
1204
|
if (values.length === 0) continue;
|
|
@@ -1151,7 +1207,8 @@ function joinTieValues(input) {
|
|
|
1151
1207
|
let request = labelRequests[index];
|
|
1152
1208
|
ids.has(request.id) && request !== keep && labelRequests.splice(index, 1);
|
|
1153
1209
|
}
|
|
1154
|
-
|
|
1210
|
+
let shows = values[0].shows;
|
|
1211
|
+
if (shows && printed.push({ labelId: (note ?? values[0]).id, owners: tie.seriesIds.map((seriesId) => ({ seriesId, categoryId: tie.categoryId })), shows }), !note) continue;
|
|
1155
1212
|
let text = `${note.text} \xB7 ${values[0].text}`, w = measure(text, font).width, before = note.candidates[0]?.rect.w ?? w;
|
|
1156
1213
|
note.text = text, note.lines = [text];
|
|
1157
1214
|
let bare = note.candidates.find((candidate) => candidate.lines)?.lines?.[0], bareText = bare === void 0 ? void 0 : `${bare} \xB7 ${values[0].text}`, bareW = bareText === void 0 ? 0 : measure(bareText, font).width;
|
|
@@ -1168,6 +1225,7 @@ function joinTieValues(input) {
|
|
|
1168
1225
|
}
|
|
1169
1226
|
});
|
|
1170
1227
|
}
|
|
1228
|
+
return printed;
|
|
1171
1229
|
}
|
|
1172
1230
|
function startLabelCandidates(input) {
|
|
1173
1231
|
let { slots, desiredY, leaderFrom, width, height, outsideRankBand } = input;
|
|
@@ -2192,7 +2250,7 @@ function buildFanPaints(input) {
|
|
|
2192
2250
|
}
|
|
2193
2251
|
function fanBoundText(lo, hi, fmt, spec) {
|
|
2194
2252
|
let a = fmt(lo), b = fmt(hi);
|
|
2195
|
-
if (a !== b || !(hi > lo)) return [a, b];
|
|
2253
|
+
if (a !== b || !(hi > lo) || spec[RULE_SET]) return [a, b];
|
|
2196
2254
|
let plain = { ...defaultFormatSpec(spec.locale), thousandsSep: spec.thousandsSep };
|
|
2197
2255
|
for (let digits = 1; digits <= 15; digits++)
|
|
2198
2256
|
if (lo.toFixed(digits) !== hi.toFixed(digits)) return [formatWithSpec(lo, { ...plain, decimals: digits }), formatWithSpec(hi, { ...plain, decimals: digits })];
|
|
@@ -2284,20 +2342,33 @@ function lineText(env, domain) {
|
|
|
2284
2342
|
}, contentOf = (kind, dflt) => {
|
|
2285
2343
|
let s = kindSetting(kind);
|
|
2286
2344
|
return s === !1 ? null : Array.isArray(s) ? s : dflt;
|
|
2287
|
-
},
|
|
2288
|
-
let
|
|
2289
|
-
|
|
2345
|
+
}, exactAt = (source) => {
|
|
2346
|
+
let example = source?.format ?? options.format;
|
|
2347
|
+
return example !== void 0 && isExactExample(example);
|
|
2348
|
+
}, composeParts = (extra) => (content, abs, pct, catLabel, serLabel, unitSuffix = "", authoredPct = !1, source, categoryId) => {
|
|
2349
|
+
let parts = [], valueExtra = exactAt(source) || !(source?.format ?? options.format) ? 0 : extra, shareText = !authoredPct && source && categoryId !== void 0 ? domain.shareTexts.get(`${categoryId}\0${source.id}`) : void 0, lifted = (value, percent) => {
|
|
2350
|
+
let spec = seriesRasterFormatter(source?.format ?? options.format, domain.seriesNorm.flatMap((s) => s.vals.map((v) => v.v)), options.locale?.language, source?.unit ?? options.unit).spec;
|
|
2290
2351
|
return formatWithSpec(value, {
|
|
2291
2352
|
...spec,
|
|
2292
|
-
decimals: Math.min(20, spec.decimals +
|
|
2353
|
+
decimals: Math.min(20, spec.decimals + valueExtra),
|
|
2293
2354
|
wholeFrom: void 0,
|
|
2294
2355
|
currencyWhole: void 0,
|
|
2295
2356
|
...percent && !source?.format && !options.format ? { suffix: "%" } : {}
|
|
2296
2357
|
});
|
|
2297
2358
|
};
|
|
2298
2359
|
for (let c of content)
|
|
2299
|
-
c === "absolute" && abs !== null ? parts.push(withUnit(
|
|
2300
|
-
return parts
|
|
2360
|
+
c === "absolute" && abs !== null ? parts.push([c, withUnit(valueExtra ? lifted(abs, authoredPct) : (authoredPct && source && !source.format ? valueSpec.fmtPercent : source ? valueSpec.forSeries(source) : fmt)(abs), unitSuffix, !0)]) : c === "percent" && pct !== null ? parts.push([c, shareText ?? (extra ? formatAutomaticPercent(pct, Math.min(20, (authoredPct ? Math.abs(pct) < 1 && pct !== 0 ? 1 : 0 : shareDecimals(pct)) + extra), !1, options.locale?.language) : authoredPct ? env.authoredPctFmt(pct) : env.pctFmt(pct))]) : c === "category" && catLabel ? parts.push([c, catLabel]) : c === "series" && serLabel && parts.push([c, serLabel]);
|
|
2361
|
+
return parts;
|
|
2362
|
+
}, compose = (extra) => {
|
|
2363
|
+
let of = composeParts(extra);
|
|
2364
|
+
return (...args) => of(...args).map(([, part]) => part).join(" ");
|
|
2365
|
+
}, shows = (extra) => {
|
|
2366
|
+
let of = composeParts(extra);
|
|
2367
|
+
return (...args) => {
|
|
2368
|
+
let parts = of(...args), value = parts.find(([kind]) => kind === "absolute")?.[1], share = parts.find(([kind]) => kind === "percent")?.[1];
|
|
2369
|
+
if (!(value === void 0 && share === void 0))
|
|
2370
|
+
return { ...value === void 0 ? {} : { value }, ...share === void 0 ? {} : { "share.percent": share } };
|
|
2371
|
+
};
|
|
2301
2372
|
}, composeText = compose(0), endExtra = env.isBump ? 0 : distinctDecimalLift(domain.drawnSeries.flatMap((series) => {
|
|
2302
2373
|
let ci = domain.lastIdxOf.get(series.id);
|
|
2303
2374
|
if (ci === void 0) return [];
|
|
@@ -2305,9 +2376,10 @@ function lineText(env, domain) {
|
|
|
2305
2376
|
let share = domain.variant === "stacked100-area", value = share ? domain.endpoints[series.id]?.value ?? null : domain.rebased ? domain.pv[domain.rowOf.get(series)][ci] : domain.absOf(series, ci);
|
|
2306
2377
|
if (value === null) return [];
|
|
2307
2378
|
let cell = series.vals[ci], source = domain.rebased ? void 0 : cell.format ? { ...series, format: cell.format } : series;
|
|
2308
|
-
return [{ value, format: (extra) => compose(extra)(share ? ["percent"] : ["absolute"], value, value, "", "", "", cell.isPct, source) }];
|
|
2309
|
-
})), composeEndText = endExtra ? compose(endExtra) : composeText,
|
|
2310
|
-
|
|
2379
|
+
return !share && (exactAt(source) || !(source?.format ?? options.format)) ? [] : [{ value, format: (extra) => compose(extra)(share ? ["percent"] : ["absolute"], value, value, "", "", "", cell.isPct, source) }];
|
|
2380
|
+
})), composeEndText = endExtra ? compose(endExtra) : composeText, composeShows = domain.rebased ? () => {
|
|
2381
|
+
} : shows(0), composeEndShows = endExtra && !domain.rebased ? shows(endExtra) : composeShows, printsZero = (abs, authoredPct = !1, source) => valueSpec.roundsToZeroAt(abs, authoredPct && source && !source.format ? {} : source), { theme, measure } = env, tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, nameFont = labelFont;
|
|
2382
|
+
return { kindSetting, contentOf, composeText, composeEndText, composeShows, composeEndShows, printsZero, tickFont, secondaryFont: secondaryFont(theme), labelFont, nameFont, labelH: measure("0", labelFont).height };
|
|
2311
2383
|
}
|
|
2312
2384
|
function heroPlan(env, domain, warnings) {
|
|
2313
2385
|
let { drawnSeries, fan, variant, options } = domain, activeFan = fan != null && fan.origin !== null, emphasis = options.emphasis ?? (activeFan ? "first" : "none"), heroEligible = !env.isBump && variant === "line" && // An active fan's centre is the subject even as the only drawn line (the
|
|
@@ -2995,7 +3067,7 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
|
|
|
2995
3067
|
y,
|
|
2996
3068
|
pathFor,
|
|
2997
3069
|
reversePathTail,
|
|
2998
|
-
fmt: domain.fmt,
|
|
3070
|
+
fmt: domain.fanFmt ?? domain.fmt,
|
|
2999
3071
|
numberSpec: domain.valueSpec.spec,
|
|
3000
3072
|
occupied: claims,
|
|
3001
3073
|
warnings,
|
|
@@ -3080,6 +3152,7 @@ function claimValueLines(annList, meanValue, meanValueFor, cats, area, claims) {
|
|
|
3080
3152
|
export {
|
|
3081
3153
|
trendTimeline,
|
|
3082
3154
|
fitLineTrends,
|
|
3155
|
+
lineTrendRates,
|
|
3083
3156
|
lineTrendLabel,
|
|
3084
3157
|
lineTrendKeys,
|
|
3085
3158
|
screenEdges,
|
|
@@ -3109,6 +3182,7 @@ export {
|
|
|
3109
3182
|
prepareEndpointLabels,
|
|
3110
3183
|
placeInlineSeriesLabels,
|
|
3111
3184
|
placeEndpointLabels,
|
|
3185
|
+
pointWouldShows,
|
|
3112
3186
|
lineToDateIds,
|
|
3113
3187
|
pointLabelSelection,
|
|
3114
3188
|
defaultValueContent,
|