boardplot 0.61.0 → 0.62.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 +19 -0
- package/README.md +2 -2
- package/dist/{ReaderBox-75LYQMSA.js → ReaderBox-5QFALZHR.js} +5 -5
- package/dist/{annotateEngine-CL6ZSRGG.js → annotateEngine-ONWZYNEM.js} +1 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-CWP5ZYVQ.js → chunk-23YYVMWH.js} +1 -1
- package/dist/{chunk-MNPNLXSI.js → chunk-2MK5437T.js} +7 -7
- package/dist/{chunk-V3YQQDR4.js → chunk-2P5KBQLT.js} +4 -4
- package/dist/{chunk-WVYC6MR6.js → chunk-2VUEIEUO.js} +2 -2
- package/dist/{chunk-TASEX7VA.js → chunk-2YXO645A.js} +1 -1
- package/dist/{chunk-36KGPRMX.js → chunk-35JGEMCK.js} +35 -28
- package/dist/{chunk-VITZVVCD.js → chunk-3DXOZRRW.js} +3 -3
- package/dist/{chunk-RV6JDD6S.js → chunk-3H72EFNC.js} +4 -4
- package/dist/{chunk-RDJ3ZU6O.js → chunk-3KYSWAEH.js} +13 -8
- package/dist/{chunk-WQPMBAG2.js → chunk-3QJVBKRX.js} +37 -37
- package/dist/{chunk-T2DGSOAH.js → chunk-3YSLEJPV.js} +1 -1
- package/dist/{chunk-DBKMJWPO.js → chunk-3Z4I6LNK.js} +1 -1
- package/dist/{chunk-OYCEFOIW.js → chunk-476R7YF4.js} +16 -16
- package/dist/{chunk-P3CZFAFA.js → chunk-47IEMR6C.js} +22 -18
- package/dist/{chunk-757IKZZU.js → chunk-4HZKH4HS.js} +2 -2
- package/dist/{chunk-BKUTKQMT.js → chunk-4NGKSJBX.js} +72 -22
- package/dist/{chunk-ZT5Q6BRT.js → chunk-4SK4IGMK.js} +3 -3
- package/dist/{chunk-QK2OFTEB.js → chunk-4TTNLFTJ.js} +1 -1
- package/dist/{chunk-RD24ORGR.js → chunk-4XDWZJUX.js} +2 -1
- package/dist/{chunk-TS472T4D.js → chunk-5FG24HFB.js} +4 -4
- package/dist/{chunk-2X6672YL.js → chunk-5J2PQ5EZ.js} +4 -4
- package/dist/{chunk-IXCDKCYE.js → chunk-5LUHGXXE.js} +1 -1
- package/dist/{chunk-FYFXOLWI.js → chunk-5OUURZ2T.js} +70 -58
- package/dist/{chunk-OLEUVUH3.js → chunk-64D7CHCE.js} +4 -4
- package/dist/{chunk-WOTRCVA5.js → chunk-6LYMOF2S.js} +3 -3
- package/dist/{chunk-6R6LM337.js → chunk-6MXRNA4Z.js} +17 -17
- package/dist/{chunk-3GL23VOF.js → chunk-6OM5IYNK.js} +65 -10
- package/dist/{chunk-JTCXK7AG.js → chunk-6PR23T2O.js} +1 -1
- package/dist/{chunk-VGOZOBNB.js → chunk-6QQPQ2TX.js} +1 -1
- package/dist/{chunk-BQBD6Q5J.js → chunk-6RRK3VFP.js} +1 -1
- package/dist/{chunk-YM7MO7WI.js → chunk-6WEJGZVQ.js} +1 -1
- package/dist/{chunk-SJORKHHL.js → chunk-6XDX3MIU.js} +5 -5
- package/dist/{chunk-Y7O3T4DF.js → chunk-75OLP5KB.js} +32 -32
- package/dist/{chunk-UIHGGWES.js → chunk-77LQEREO.js} +1 -1
- package/dist/{chunk-PRVX4PAO.js → chunk-7JSGG67J.js} +1 -1
- package/dist/{chunk-57XHIICM.js → chunk-7NUNEVOU.js} +14 -9
- package/dist/{chunk-7ZPHJOG6.js → chunk-7OT6CVQT.js} +1 -1
- package/dist/{chunk-EU45YU5W.js → chunk-7R43Y35G.js} +1 -1
- package/dist/{chunk-HTLEHU5D.js → chunk-7RAF2HJA.js} +2 -2
- package/dist/{chunk-5JZQXMXU.js → chunk-7S57SH2K.js} +9 -9
- package/dist/{chunk-HS4DLZ6H.js → chunk-7ZYGEPY2.js} +52 -28
- package/dist/{chunk-2KGF6AIK.js → chunk-ABUJPENV.js} +53 -42
- package/dist/{chunk-EV3GY7Y3.js → chunk-ADVFTNDL.js} +4 -4
- package/dist/{chunk-NNOKYAFB.js → chunk-AFONROHX.js} +2 -2
- package/dist/{chunk-MYYDNK72.js → chunk-AO73FLJT.js} +4 -4
- package/dist/{chunk-L6OMA45Q.js → chunk-AU2TQN6F.js} +3 -3
- package/dist/{chunk-NJKUODK3.js → chunk-BFHAYXUU.js} +2 -2
- package/dist/{chunk-6U4J3T2G.js → chunk-BFJKH4AX.js} +1 -1
- package/dist/{chunk-3JG764MI.js → chunk-BHO5H4AF.js} +43 -15
- package/dist/{chunk-E7FWHKCI.js → chunk-BKZF27CE.js} +2 -2
- package/dist/{chunk-VFXGAEUO.js → chunk-BR2ADMLU.js} +1 -1
- package/dist/{chunk-OP7K5NSS.js → chunk-BZUHBKMK.js} +4 -4
- package/dist/{chunk-RTSSUQ25.js → chunk-C2X6NYMY.js} +1 -1
- package/dist/{chunk-R3IPQHWC.js → chunk-C3ULVZI7.js} +2 -2
- package/dist/{chunk-ESZIJ5Z6.js → chunk-CFT6W2QY.js} +3 -3
- package/dist/{chunk-2BF6HZV7.js → chunk-CPBJII5T.js} +5 -5
- package/dist/{chunk-B62SEOJC.js → chunk-CTRPRU4Y.js} +16 -13
- package/dist/{chunk-7D65YEEY.js → chunk-CWBM7MXM.js} +3 -3
- package/dist/{chunk-OIMT2SSN.js → chunk-CZZXZFYL.js} +2 -2
- package/dist/{chunk-7SSN5ECA.js → chunk-D2I2BUR6.js} +1 -1
- package/dist/{chunk-ASRICUAD.js → chunk-DCFK2BUL.js} +2 -2
- package/dist/{chunk-JXHTZVSV.js → chunk-DVQR5SFL.js} +2 -2
- package/dist/{chunk-6JOLPUTW.js → chunk-DWEVPNNE.js} +2 -2
- package/dist/{chunk-NCKINI7K.js → chunk-DYG4XMCC.js} +5 -5
- package/dist/{chunk-ZMZNMVPR.js → chunk-E46KFVP5.js} +11 -11
- package/dist/{chunk-DITI57ZB.js → chunk-EKKRDPVW.js} +1 -1
- package/dist/{chunk-PH274WAF.js → chunk-ELFF5YO7.js} +8 -8
- package/dist/{chunk-YO7LCXKN.js → chunk-EPRJX5BI.js} +2 -2
- package/dist/{chunk-OGD23BIK.js → chunk-EPS7N5ZS.js} +5 -2
- package/dist/{chunk-MM2ADIPB.js → chunk-ERIMFXE3.js} +1 -1
- package/dist/{chunk-IKTAVMF2.js → chunk-ESS7GAO5.js} +15 -15
- package/dist/{chunk-TIVUSWGT.js → chunk-EW77WN7V.js} +2 -2
- package/dist/{chunk-56PPEORW.js → chunk-F2IGRFYM.js} +23 -23
- package/dist/{chunk-XGJZRPHC.js → chunk-F7LDXGWD.js} +11 -11
- package/dist/{chunk-JZK6ZPUM.js → chunk-FC6H5ATA.js} +2 -2
- package/dist/{chunk-FTIQ6TI2.js → chunk-FI5VGWUQ.js} +2 -2
- package/dist/{chunk-YSKLERPF.js → chunk-FPF73SCJ.js} +18 -15
- package/dist/{chunk-JEAUVQTV.js → chunk-FSRAPSO7.js} +25 -25
- package/dist/{chunk-JLJ4QRAE.js → chunk-FXKGNJYB.js} +17 -17
- package/dist/{chunk-25JXYOSX.js → chunk-FXQH2QJN.js} +1 -1
- package/dist/{chunk-EL5E6O3K.js → chunk-GA7CIH6N.js} +23 -18
- package/dist/{chunk-KTFUYWN2.js → chunk-GCOFMXFJ.js} +5 -5
- package/dist/{chunk-OQKVFWAO.js → chunk-GGWYJNHH.js} +4 -4
- package/dist/{chunk-352V2W5P.js → chunk-GNSAYVND.js} +2 -2
- package/dist/{chunk-UFKLGMYZ.js → chunk-H7K3RXBQ.js} +1 -1
- package/dist/{chunk-EAMZDY55.js → chunk-HCAPGTEA.js} +1 -1
- package/dist/{chunk-2T22INLD.js → chunk-HUU76QHF.js} +1 -1
- package/dist/{chunk-CVUHCNQO.js → chunk-HV6OKHM6.js} +1 -1
- package/dist/{chunk-SSVOJXFR.js → chunk-HYBGISXA.js} +3 -3
- package/dist/{chunk-EWG3PCYJ.js → chunk-I37SEVQ4.js} +104 -68
- package/dist/{chunk-B76O5YXI.js → chunk-I3UJHKCS.js} +3 -3
- package/dist/{chunk-IIKM6NXU.js → chunk-I56NIVFF.js} +4 -4
- package/dist/{chunk-5DH5ACTO.js → chunk-IDMGFWB7.js} +132 -114
- package/dist/{chunk-YDYZWCUQ.js → chunk-IHZNRJEV.js} +1 -1
- package/dist/{chunk-RT4V47U6.js → chunk-IMKHDTEQ.js} +1 -1
- package/dist/{chunk-LEPXK7RN.js → chunk-ISNWAYX2.js} +3 -3
- package/dist/{chunk-G3CVCW5K.js → chunk-ITPXKZXT.js} +82 -79
- package/dist/{chunk-L5RZFP5B.js → chunk-J233F6JA.js} +3 -3
- package/dist/{chunk-EQDLZGZO.js → chunk-J6WWK4VC.js} +1 -1
- package/dist/{chunk-NJVXE2DU.js → chunk-J77EYTIA.js} +2 -2
- package/dist/{chunk-YZW4VLSO.js → chunk-JCZ64D4G.js} +4 -4
- package/dist/{chunk-VE6P436Y.js → chunk-JEC6YG2C.js} +34 -20
- package/dist/{chunk-GRMAYSIG.js → chunk-JV3S3OCN.js} +19 -18
- package/dist/{chunk-F2IHSUPI.js → chunk-K2ZDFPYP.js} +5 -5
- package/dist/{chunk-RXC3XU62.js → chunk-K3METEEY.js} +131 -30
- package/dist/{chunk-JLZFXNUE.js → chunk-K464WFSQ.js} +4 -4
- package/dist/{chunk-CYMSES53.js → chunk-KDRI3KHH.js} +7 -2
- package/dist/{chunk-QSMKLDAO.js → chunk-KK7UXU2E.js} +3 -3
- package/dist/{chunk-LLHCEZV2.js → chunk-KNTNUQNS.js} +8 -8
- package/dist/{chunk-QZAT46PP.js → chunk-KRSI6U6L.js} +1 -0
- package/dist/{chunk-T6XSXJDQ.js → chunk-KU5WGRQJ.js} +26 -26
- package/dist/{chunk-KY5MSTME.js → chunk-KWBG3P7W.js} +4 -4
- package/dist/{chunk-U2YWY6FH.js → chunk-KWKJYMXJ.js} +3 -3
- package/dist/{chunk-THKVAXTQ.js → chunk-KWTVCTWS.js} +246 -83
- package/dist/{chunk-7ZHM37LQ.js → chunk-KZ7ECRPL.js} +3 -3
- package/dist/{chunk-HUCUNGHB.js → chunk-L46NAICE.js} +5 -5
- package/dist/{chunk-64577PGJ.js → chunk-L4VGGSB3.js} +4 -4
- package/dist/{chunk-YXHSM7QL.js → chunk-L6T7FXEM.js} +6 -6
- package/dist/{chunk-XMI7SCPX.js → chunk-LE6QYQRU.js} +2 -2
- package/dist/{chunk-WDLWWEHZ.js → chunk-LIMLKOX7.js} +1 -1
- package/dist/{chunk-H5YDEIY2.js → chunk-LK5V7U6C.js} +5 -5
- package/dist/{chunk-533SNVDD.js → chunk-LNBYRD5Q.js} +4 -4
- package/dist/{chunk-USK77VAZ.js → chunk-LTEGXWSU.js} +4 -4
- package/dist/{chunk-TB734IYI.js → chunk-LUIHCUMB.js} +4 -4
- package/dist/{chunk-TL5ICZT2.js → chunk-MAA5IGGT.js} +2 -2
- package/dist/{chunk-MNVMTW7K.js → chunk-MDGVRYXX.js} +18 -18
- package/dist/{chunk-M2LYZUQA.js → chunk-MEIDC7ZF.js} +4 -4
- package/dist/{chunk-XTECBM5K.js → chunk-MTJZT6F2.js} +5 -5
- package/dist/{chunk-P3TOPI3M.js → chunk-MUYU6KTM.js} +1 -1
- package/dist/{chunk-F2WMTUWC.js → chunk-MVA2JWM4.js} +2 -2
- package/dist/{chunk-EIQTUVJT.js → chunk-MYDVNJAA.js} +1 -1
- package/dist/{chunk-I3GRAQHO.js → chunk-NFEVGJJ6.js} +13 -13
- package/dist/{chunk-JUTMQGKU.js → chunk-NFSG2WBI.js} +4 -4
- package/dist/{chunk-UERGJOG4.js → chunk-NFYF7P6H.js} +36 -28
- package/dist/{chunk-E6IN6QDF.js → chunk-NL2K3CZM.js} +5 -5
- package/dist/{chunk-VJAZFGBY.js → chunk-NTONEZH5.js} +20 -20
- package/dist/{chunk-QER2YJHC.js → chunk-NTSJ2RXB.js} +4 -4
- package/dist/{chunk-OIPBVU7G.js → chunk-NVPORMKX.js} +15 -15
- package/dist/{chunk-PGKGK43I.js → chunk-NXA2CNVU.js} +16 -10
- package/dist/{chunk-R2RLERPT.js → chunk-NYROTVGH.js} +1 -1
- package/dist/{chunk-IKH3DWS2.js → chunk-NZHIXLKM.js} +19 -17
- package/dist/{chunk-5ZGCGIHG.js → chunk-OCANU74G.js} +3 -3
- package/dist/{chunk-EM33NXGZ.js → chunk-OF4VHET3.js} +4 -4
- package/dist/{chunk-UXJXA4NP.js → chunk-OJLXBFI3.js} +1 -1
- package/dist/{chunk-BJ5GI5ZB.js → chunk-OLXZXEKQ.js} +1 -1
- package/dist/{chunk-FKRL2ZB2.js → chunk-OQGSYQLE.js} +1 -1
- package/dist/{chunk-A4UL5GIM.js → chunk-OQQGM2TM.js} +1 -1
- package/dist/{chunk-EOPDGMDS.js → chunk-OQRTTGYP.js} +22 -1
- package/dist/{chunk-35RSAHLK.js → chunk-OQTD4GN4.js} +1 -1
- package/dist/{chunk-UXAON5DO.js → chunk-OXWIBDJP.js} +2 -2
- package/dist/{chunk-F7QCIJAY.js → chunk-OYDZO5BR.js} +1 -1
- package/dist/{chunk-OR7KKODW.js → chunk-PDUF6EII.js} +9 -9
- package/dist/{chunk-XLP6U3FG.js → chunk-PHRQAWK4.js} +2 -2
- package/dist/{chunk-FY3VV7TF.js → chunk-PM5D5KYQ.js} +67 -30
- package/dist/{chunk-TI5PPS3L.js → chunk-Q5BD6PMX.js} +19 -19
- package/dist/{chunk-LMDU5MNF.js → chunk-QEEE2WH5.js} +4 -4
- package/dist/{chunk-OUSYBIGE.js → chunk-QMGCL5FR.js} +4 -4
- package/dist/{chunk-M4IIJ24E.js → chunk-QMZPQU65.js} +2 -2
- package/dist/{chunk-7VWXXBTC.js → chunk-QSNEZ4UR.js} +1 -1
- package/dist/{chunk-LT7IY2L3.js → chunk-QSWLPQCW.js} +27 -23
- package/dist/{chunk-FBUAKQAI.js → chunk-R55LS2W2.js} +24 -24
- package/dist/{chunk-TWMVAPG2.js → chunk-RDXJAEZ4.js} +4 -4
- package/dist/{chunk-VR3HLYAT.js → chunk-RDZNRSAB.js} +2 -2
- package/dist/{chunk-K2RZKPQ2.js → chunk-RFUSBITY.js} +1 -1
- package/dist/{chunk-NSQBT4CM.js → chunk-RIGQU57Y.js} +7 -7
- package/dist/{chunk-YBMYW7LD.js → chunk-RNA5GO3B.js} +2 -2
- package/dist/{chunk-LH5URXDJ.js → chunk-RODV3OHP.js} +294 -180
- package/dist/{chunk-EKYVRXTE.js → chunk-RPK657TE.js} +16 -2
- package/dist/{chunk-KJF7SLOA.js → chunk-SAVO62PW.js} +1 -1
- package/dist/{chunk-JE54IO26.js → chunk-SB2DHY53.js} +18 -18
- package/dist/{chunk-NHQKHMIS.js → chunk-SBHPRHKB.js} +4 -4
- package/dist/{chunk-JIVNJBXI.js → chunk-SBPFCQNK.js} +4 -4
- package/dist/{chunk-GSR6UO7H.js → chunk-SFPHP3CC.js} +2 -2
- package/dist/{chunk-GCZHZVNX.js → chunk-SIZW5V4G.js} +16 -12
- package/dist/{chunk-S7AHPU2N.js → chunk-SJ5KVLTG.js} +1 -1
- package/dist/{chunk-4ORV4RGE.js → chunk-SJZLWRRY.js} +8 -8
- package/dist/{chunk-RMBWY5JE.js → chunk-SOAB4G33.js} +4 -4
- package/dist/{chunk-LPLRXEOT.js → chunk-ST2IQX7U.js} +57 -17
- package/dist/{chunk-6U7VIQLV.js → chunk-T33R2CM3.js} +7 -7
- package/dist/{chunk-3553PK6F.js → chunk-T4ZE7AIX.js} +2 -2
- package/dist/{chunk-NWJ4DXAZ.js → chunk-TCQ733WC.js} +15 -15
- package/dist/{chunk-X4NDN6PQ.js → chunk-TGTKAIDU.js} +15 -10
- package/dist/{chunk-W2QJDTAR.js → chunk-U4PDXI67.js} +4 -4
- package/dist/{chunk-5EU5DLA3.js → chunk-UGTYYTPP.js} +2 -2
- package/dist/{chunk-PCHV6KYJ.js → chunk-UL3RNOYB.js} +3 -3
- package/dist/{chunk-6QUQEN75.js → chunk-UOTZH4TG.js} +2 -2
- package/dist/{chunk-LHQFDRQV.js → chunk-UQSH52UJ.js} +4 -4
- package/dist/{chunk-SGTSTGIP.js → chunk-UWT66OAR.js} +1 -1
- package/dist/{chunk-GNB4JQTB.js → chunk-V4NJTLJP.js} +12 -12
- package/dist/{chunk-SY7JC3PH.js → chunk-V4YJRZHE.js} +1 -1
- package/dist/{chunk-YUEJZBME.js → chunk-V5Y3CXSU.js} +4 -4
- package/dist/{chunk-H26UA4UM.js → chunk-VZFPQMYN.js} +9 -9
- package/dist/{chunk-ULXSTWJF.js → chunk-W35C2SL3.js} +2 -2
- package/dist/{chunk-TFYVBPGR.js → chunk-W6ZCXWOK.js} +1 -1
- package/dist/{chunk-P2QIWGFU.js → chunk-WDP7IDGF.js} +13 -13
- package/dist/{chunk-RZQU5DHD.js → chunk-WDQJ2DRZ.js} +14 -14
- package/dist/{chunk-DOVEWKJ6.js → chunk-WKBW4JFU.js} +1 -1
- package/dist/{chunk-OLAPTOUH.js → chunk-WM65Q3AL.js} +1 -1
- package/dist/{chunk-55BVHNZQ.js → chunk-WO6ZJCAO.js} +4 -4
- package/dist/chunk-WSRGEK5T.js +89 -0
- package/dist/{chunk-MBRVSKFJ.js → chunk-WXGBSBHQ.js} +13 -12
- package/dist/{chunk-7JM235F7.js → chunk-WXOSGKMS.js} +8 -8
- package/dist/{chunk-V4XTBNZD.js → chunk-XBASXPUJ.js} +2 -2
- package/dist/{chunk-BVE5LPOA.js → chunk-XDDFM3BH.js} +6 -6
- package/dist/{chunk-7WC2N4QZ.js → chunk-XJOCPL6R.js} +2 -2
- package/dist/{chunk-24O6BRKD.js → chunk-XJSI7ZO2.js} +1 -1
- package/dist/{chunk-4ZIFMZO4.js → chunk-XKGZWQF7.js} +3 -3
- package/dist/{chunk-WY7FHINS.js → chunk-XLHURGH3.js} +5 -5
- package/dist/{chunk-UGH3CLTZ.js → chunk-XWQDNJ36.js} +4 -4
- package/dist/{chunk-QJPI55S5.js → chunk-YBQ4F27M.js} +4 -4
- package/dist/{chunk-WK6LQCUT.js → chunk-YDT6QZZK.js} +9 -9
- package/dist/{chunk-YRWJBS6C.js → chunk-YE6B7P6Q.js} +1 -1
- package/dist/{chunk-WSHSR3B2.js → chunk-YERTQ576.js} +4 -4
- package/dist/{chunk-GEQSZ5RE.js → chunk-YF4DIQJR.js} +3 -3
- package/dist/{chunk-LFL4KMKF.js → chunk-YHLKL4R5.js} +3 -3
- package/dist/{chunk-I4A4MY3S.js → chunk-YHSY6CVM.js} +4 -4
- package/dist/{chunk-XC53YNZG.js → chunk-YJGZ3AOW.js} +2 -2
- package/dist/{chunk-F37PADCM.js → chunk-YKK25QM4.js} +4 -4
- package/dist/{chunk-YUJK6ZYO.js → chunk-YMBJHKTY.js} +2 -2
- package/dist/{chunk-EV7AATQM.js → chunk-YTFU2B5K.js} +2 -2
- package/dist/{chunk-GZ6MPJKY.js → chunk-YUIITZCO.js} +3 -3
- package/dist/{chunk-XHEG2BG6.js → chunk-Z3VCVPYX.js} +1 -1
- package/dist/{chunk-FNDDKZ4Z.js → chunk-ZB4WVG7Q.js} +1 -1
- package/dist/{chunk-JG35YUYX.js → chunk-ZCB5MLPW.js} +3 -3
- package/dist/{chunk-BF6KECQD.js → chunk-ZDQ2EWWH.js} +32 -28
- package/dist/{chunk-LL7ZU6BT.js → chunk-ZG46HLGN.js} +108 -81
- package/dist/chunk-ZGL2P56Z.js +11 -0
- package/dist/{chunk-WBIMWGV7.js → chunk-ZIAPNZ6R.js} +4 -4
- package/dist/{chunk-Z2WGJH2P.js → chunk-ZLIVUVIV.js} +28 -16
- package/dist/{chunk-32FGSRR3.js → chunk-ZMCTTTR2.js} +4 -4
- package/dist/{chunk-LTYDEWKW.js → chunk-ZYJZ624V.js} +5 -5
- package/dist/cli/index.js +2 -2
- package/dist/{core-NL6TMYOZ.js → core-2DRDBSL7.js} +2 -1
- package/dist/{core-CTI37JP5.js → core-2VAPYQDA.js} +2 -1
- package/dist/{core-XINQIYQ6.js → core-3JGHUUZZ.js} +2 -1
- package/dist/{core-LCX7EK3Y.js → core-3KMBTZ32.js} +2 -1
- package/dist/{core-EQP4ERQK.js → core-4HEB3CRT.js} +2 -1
- package/dist/{core-3H2PZVYN.js → core-4WT74WGL.js} +2 -1
- package/dist/{core-UPPUXBWO.js → core-4ZUNKYYC.js} +2 -1
- package/dist/{core-4SX63YE4.js → core-5VCTJDQM.js} +2 -1
- package/dist/{core-NPCHUGTV.js → core-AJANHLTB.js} +2 -1
- package/dist/{core-OO22DXBW.js → core-AL3TDBHQ.js} +5 -1
- package/dist/{core-76KPBWTL.js → core-ATBNPTR5.js} +2 -1
- package/dist/{core-QACGDEDF.js → core-BIEUVBZK.js} +2 -1
- package/dist/{core-RZ5ZDSQL.js → core-C2CCLPE5.js} +2 -1
- package/dist/{core-BEBRTX5W.js → core-C3VC6YEV.js} +2 -1
- package/dist/{core-LSN2YKO4.js → core-DCWAUTD4.js} +2 -1
- package/dist/{core-7LODBY2T.js → core-GYDBZC7Q.js} +2 -1
- package/dist/{core-SERUDXVA.js → core-H3RRJPQK.js} +2 -1
- package/dist/{core-GGKGWGHO.js → core-HAMHEP3M.js} +2 -1
- package/dist/{core-FZJOKAFE.js → core-HRBOWCHO.js} +2 -1
- package/dist/{core-ZYLCLTFQ.js → core-IHG5XK6Q.js} +2 -1
- package/dist/{core-2SCAWP7F.js → core-JNA7L23P.js} +2 -1
- package/dist/{core-UOATHRZG.js → core-JTHVZEC4.js} +2 -1
- package/dist/{core-2ZRSLX2J.js → core-JXCXTDYK.js} +2 -1
- package/dist/{core-DZVYQFBX.js → core-LL2O5PBD.js} +2 -1
- package/dist/{core-S56FGRAT.js → core-NNHCWP3B.js} +2 -1
- package/dist/{core-E6Q3H52Q.js → core-OM3DGO6B.js} +2 -1
- package/dist/{core-7PNZRGK7.js → core-QH3H6ZPI.js} +2 -1
- package/dist/{core-V55HGH7X.js → core-QKDNA6KJ.js} +2 -1
- package/dist/{core-2IWCOLCX.js → core-R6OE3ORL.js} +2 -1
- package/dist/{core-Y3WI32MB.js → core-RZI7LRK3.js} +2 -1
- package/dist/{core-J7ZHSASB.js → core-SXBMOZ3W.js} +2 -1
- package/dist/{core-W5WF7FHA.js → core-TXADFQ3I.js} +2 -1
- package/dist/{core-UYTRLCZY.js → core-UOB4JKCT.js} +2 -1
- package/dist/{core-7RSXZIVD.js → core-WIV43MFA.js} +2 -1
- package/dist/{core-B7TS5HK6.js → core-XDPELH2B.js} +2 -1
- package/dist/{core-DICZFWV4.js → core-YKHQUOAW.js} +2 -1
- package/dist/{core-ZFXHFRWI.js → core-ZXGKAECT.js} +2 -1
- package/dist/{dataTable-72HO6PCW.js → dataTable-JBVSQNJX.js} +3 -2
- package/dist/{engine-UCMXMWGA.js → engine-QUEIPS7M.js} +26 -13
- package/dist/fixtures.js +2 -1
- package/dist/fonts.js +4 -4
- package/dist/index.js +21 -20
- package/dist/{main-NS5NPNQ7.js → main-V264O3WR.js} +8 -7
- package/dist/mcp/server.js +14 -13
- package/dist/react/bar.js +3 -1
- package/dist/react/bartable.js +3 -1
- package/dist/react/box.js +3 -1
- package/dist/react/bullet.js +3 -1
- package/dist/react/butterfly.js +3 -1
- package/dist/react/choropleth.js +3 -1
- package/dist/react/cohort.js +3 -1
- package/dist/react/column.js +3 -1
- package/dist/react/combo.js +3 -1
- package/dist/react/creative.js +3 -1
- package/dist/react/diagram.js +3 -1
- package/dist/react/dimswitch.js +2 -1
- package/dist/react/dot.js +3 -1
- package/dist/react/export.js +19 -18
- package/dist/react/funnel.js +3 -1
- package/dist/react/gantt.js +3 -1
- package/dist/react/grid.js +5 -1
- package/dist/react/heatmap.js +3 -1
- package/dist/react/histogram.js +3 -1
- package/dist/react/index.js +86 -84
- package/dist/react/kpi.js +3 -1
- package/dist/react/likert.js +3 -1
- package/dist/react/line.js +3 -1
- package/dist/react/mekko.js +3 -1
- package/dist/react/pareto.js +3 -1
- package/dist/react/pie.js +3 -1
- package/dist/react/prepare.js +23 -21
- package/dist/react/pvm.js +3 -1
- package/dist/react/pyramid.js +3 -1
- package/dist/react/sankey.js +3 -1
- package/dist/react/scatter.js +3 -1
- package/dist/react/slope.js +3 -1
- package/dist/react/sparkline.js +3 -1
- package/dist/react/spec.js +12 -10
- package/dist/react/status.js +3 -1
- package/dist/react/story.js +4 -3
- package/dist/react/table.js +2 -1
- package/dist/react/theme.js +4 -3
- package/dist/react/tilemap.js +3 -1
- package/dist/react/treemap.js +3 -1
- package/dist/react/variance.js +3 -1
- package/dist/react/waffle.js +3 -1
- package/dist/react/waterfall.js +3 -1
- package/dist/{resvg-ZYEZTSUO.js → resvg-M5HJ3ME3.js} +1 -1
- package/dist/{rowsModule-QGCXTE6X.js → rowsModule-6UL4SSUC.js} +1 -1
- package/dist/{schema-CWOPBOK4.js → schema-3FSG2YXY.js} +1 -1
- package/dist/{schema-4SRLAXUP.js → schema-5PQPGEZQ.js} +1 -1
- package/dist/{schema-GAUZZRA4.js → schema-6LUORZNN.js} +1 -1
- package/dist/{schema-AGKSRVXN.js → schema-6MDHX2E7.js} +1 -1
- package/dist/{schema-UEZQN4WK.js → schema-7HXHGBUN.js} +1 -1
- package/dist/{schema-G6KGEQRD.js → schema-ACOD4XKI.js} +1 -1
- package/dist/{schema-C3PYINCY.js → schema-B3I7XBP3.js} +1 -1
- package/dist/{schema-MCA4J2BP.js → schema-CCOTGURZ.js} +1 -1
- package/dist/{schema-FSX7WR7M.js → schema-E5O7M5KM.js} +1 -1
- package/dist/{schema-RRZXOF5G.js → schema-EWATAK6Z.js} +1 -1
- package/dist/{schema-2BFNQ5GW.js → schema-FEBMLOZG.js} +1 -1
- package/dist/{schema-WWWWEQAR.js → schema-FL57LIU2.js} +1 -1
- package/dist/{schema-YUMFWHIE.js → schema-FTRAVEX3.js} +2 -1
- package/dist/{schema-E2WWDYU5.js → schema-GSKCG2WP.js} +1 -1
- package/dist/{schema-6WNG4LCV.js → schema-HVDY6QXK.js} +1 -1
- package/dist/{schema-3IXLM7X4.js → schema-I267TVQ4.js} +1 -1
- package/dist/{schema-6PLNMFVY.js → schema-IG2WGTQO.js} +1 -1
- package/dist/{schema-ZFUX3UIO.js → schema-ITZQDKSE.js} +1 -1
- package/dist/{schema-JKZBRZSI.js → schema-LCOGZNQF.js} +1 -1
- package/dist/{schema-7WNRP7FW.js → schema-MC3CQNPR.js} +1 -1
- package/dist/{schema-AMIFJ2JX.js → schema-MP2QNFCN.js} +1 -1
- package/dist/{schema-FOBGNU5I.js → schema-NYCMLGOW.js} +1 -1
- package/dist/{schema-ENLWEZOI.js → schema-OML7XS7J.js} +1 -1
- package/dist/{schema-7XQMEJII.js → schema-QAAVXXYR.js} +1 -1
- package/dist/{schema-XQSP5QAX.js → schema-QPYFXSEQ.js} +1 -1
- package/dist/{schema-JJIXQIBN.js → schema-RJBIXN5U.js} +1 -1
- package/dist/{schema-MM7JPYI7.js → schema-RW47HWVO.js} +1 -1
- package/dist/{schema-PVUWOLUB.js → schema-S7Q4YR7R.js} +1 -1
- package/dist/{schema-OIY565PO.js → schema-SWVWMZY3.js} +1 -1
- package/dist/{schema-EAYC5DVH.js → schema-T3RSFE2V.js} +1 -1
- package/dist/{schema-O5HGNE3W.js → schema-T4CGWZLB.js} +4 -2
- package/dist/{schema-2XGHH7PU.js → schema-TXYKZ5NT.js} +1 -1
- package/dist/{schema-ZBIIPJAI.js → schema-U6CZI6XG.js} +1 -1
- package/dist/{schema-BK2TU6XT.js → schema-XE4WY64H.js} +1 -1
- package/dist/{schema-ETH6WXZU.js → schema-YDWVXQPK.js} +1 -1
- package/dist/{schema-GQPXSWIR.js → schema-YPGXVI22.js} +1 -1
- package/dist/{schema-GFRB4BJW.js → schema-ZMOIP2BK.js} +1 -1
- package/dist/{specValidation-5AI56FM3.js → specValidation-6LVTTHZI.js} +2 -1
- package/dist/theme.js +3 -3
- package/dist/{themeShapeRules-GGBYWZY7.js → themeShapeRules-NDEXKFC7.js} +1 -1
- package/dist/types/core/charts/bar/layout.d.ts +1 -1
- package/dist/types/core/charts/column/model.d.ts +3 -1
- package/dist/types/core/charts/grid/metricStack.d.ts +35 -3
- package/dist/types/core/charts/grid/metricStackSchema.d.ts +8 -0
- package/dist/types/core/charts/grid/schema.d.ts +5 -0
- package/dist/types/core/charts/scatter/layout.d.ts +18 -1
- package/dist/types/core/charts/scatter/marks.d.ts +94 -0
- package/dist/types/core/charts/scatter/zones.d.ts +52 -0
- package/dist/types/core/fontMetrics/index.d.ts +3 -1
- package/dist/types/core/fontMetrics/injected.d.ts +1 -0
- package/dist/types/core/frame.d.ts +7 -2
- package/dist/types/core/label/occupied.d.ts +1 -1
- package/dist/types/core/registry.d.ts +2 -0
- package/dist/types/core/request.d.ts +7 -0
- package/dist/types/core/sizing.d.ts +9 -0
- package/dist/types/core/themeGeometry.d.ts +184 -0
- package/dist/types/core/types/options.d.ts +6 -0
- package/dist/types/core/types/scene.d.ts +11 -0
- package/dist/types/core/types/theme.d.ts +11 -0
- package/dist/types/react/hover/placement.d.ts +11 -0
- package/dist/types/react/prepare.d.ts +2 -1
- package/dist/types/react/useHover.d.ts +1 -0
- package/dist/validate.js +8 -6
- package/docs/manual.md +4 -2
- package/docs/reference/fixtures.md +3 -0
- package/docs/reference/grid.md +23 -10
- package/docs/reference/options.md +3 -0
- package/docs/reference/react.md +2 -0
- package/docs/reference/theme.md +4 -1
- package/package.json +1 -1
- package/dist/chunk-BOQQARLT.js +0 -89
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SIZE_TOLERANCE,
|
|
3
3
|
heightOmitted
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
5
5
|
import {
|
|
6
6
|
zeroLifts
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5OUURZ2T.js";
|
|
8
8
|
import {
|
|
9
9
|
TARGET_SIZE
|
|
10
10
|
} from "./chunk-RJICOOB3.js";
|
|
11
11
|
|
|
12
12
|
// src/core/charts/tableFit.ts
|
|
13
|
+
var reportWidthFloor;
|
|
14
|
+
function withTableWidthHint(run) {
|
|
15
|
+
let previous = reportWidthFloor, width;
|
|
16
|
+
reportWidthFloor = (floor) => {
|
|
17
|
+
width = Math.min(width ?? 1 / 0, Math.ceil(floor));
|
|
18
|
+
};
|
|
19
|
+
try {
|
|
20
|
+
return { value: run(), width };
|
|
21
|
+
} finally {
|
|
22
|
+
reportWidthFloor = previous;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
13
25
|
function liftOrFallback(layoutAs, costs, lifted = !1) {
|
|
14
26
|
let before = zeroLifts.count, full = layoutAs("full");
|
|
15
27
|
if (!lifted && zeroLifts.count === before) return full;
|
|
@@ -61,6 +73,8 @@ function checkedTightAdvice(geometry, nextAt) {
|
|
|
61
73
|
}
|
|
62
74
|
|
|
63
75
|
export {
|
|
76
|
+
reportWidthFloor,
|
|
77
|
+
withTableWidthHint,
|
|
64
78
|
liftOrFallback,
|
|
65
79
|
missesSize,
|
|
66
80
|
tightSpacingWarning,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seatsPastBlockers,
|
|
3
3
|
stackSegmentCandidates
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DCFK2BUL.js";
|
|
5
5
|
import {
|
|
6
6
|
cellFields,
|
|
7
7
|
normalizeCategorySeries
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
hasLabelPosition,
|
|
11
11
|
positionBarLabel,
|
|
12
12
|
refuseLabelPosition
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MYDVNJAA.js";
|
|
14
14
|
import {
|
|
15
15
|
roundWholes
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YHLKL4R5.js";
|
|
17
17
|
import {
|
|
18
18
|
compositionBasis,
|
|
19
19
|
mixedSignsWarning,
|
|
@@ -22,26 +22,26 @@ import {
|
|
|
22
22
|
sk,
|
|
23
23
|
stackParts,
|
|
24
24
|
withoutShareMean
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MTJZT6F2.js";
|
|
26
26
|
import {
|
|
27
27
|
segmentTooShort
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XBASXPUJ.js";
|
|
29
29
|
import {
|
|
30
30
|
valueLineExtent
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XKGZWQF7.js";
|
|
32
32
|
import {
|
|
33
33
|
isIncomplete,
|
|
34
34
|
warnIncompleteComposition,
|
|
35
35
|
warnShareRoundingDrift
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4SK4IGMK.js";
|
|
37
37
|
import {
|
|
38
38
|
runAnnotatePass
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KWKJYMXJ.js";
|
|
40
40
|
import {
|
|
41
41
|
breakUnsupported,
|
|
42
42
|
chartPalette,
|
|
43
43
|
chartTheme
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YE6B7P6Q.js";
|
|
45
45
|
import {
|
|
46
46
|
mekkoAmount,
|
|
47
47
|
mekkoStackingMode,
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
restLabel,
|
|
51
51
|
restSum,
|
|
52
52
|
topNCut
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-HCAPGTEA.js";
|
|
54
54
|
import {
|
|
55
55
|
noTotal
|
|
56
56
|
} from "./chunk-KZKWDFIS.js";
|
|
57
57
|
import {
|
|
58
58
|
structureCount
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-IHZNRJEV.js";
|
|
60
60
|
import {
|
|
61
61
|
PLOT_FLOOR_PX,
|
|
62
62
|
PLOT_FLOOR_RECT,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
tickFormatter,
|
|
81
81
|
valueAxisTitleBand,
|
|
82
82
|
valueAxisTitleRequest
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
84
84
|
import {
|
|
85
85
|
prepareFractionData
|
|
86
86
|
} from "./chunk-QXHFELIA.js";
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
solveLabels,
|
|
106
106
|
unitPrinted,
|
|
107
107
|
withAuthoredFootnotes
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
109
109
|
import {
|
|
110
110
|
disclosureNote,
|
|
111
111
|
disclosuresShown
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-I3UJHKCS.js";
|
|
113
113
|
import {
|
|
114
114
|
emptyIdRecord
|
|
115
115
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
roundedNumber,
|
|
127
127
|
specUnitKind,
|
|
128
128
|
withUnit
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-BHO5H4AF.js";
|
|
130
130
|
import {
|
|
131
131
|
authoredDecimals,
|
|
132
132
|
chartStrings,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
printedShare,
|
|
137
137
|
shareDecimals,
|
|
138
138
|
shareSetFormatter
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-5OUURZ2T.js";
|
|
140
140
|
import {
|
|
141
141
|
canvasMargin,
|
|
142
142
|
cleanFloat,
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
textScaleOf,
|
|
167
167
|
typeWidthClass,
|
|
168
168
|
withSegmentSeams
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-4NGKSJBX.js";
|
|
170
170
|
import {
|
|
171
171
|
DEFAULT_TARGET,
|
|
172
172
|
NormalizeError,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
} from "./chunk-RJICOOB3.js";
|
|
180
180
|
import {
|
|
181
181
|
defaultMeasurer
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-77LQEREO.js";
|
|
183
183
|
import {
|
|
184
184
|
maxOf,
|
|
185
185
|
minOf,
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
sharedKeys2,
|
|
5
5
|
sharedKeys5,
|
|
6
6
|
sharedKeys9
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5LUHGXXE.js";
|
|
8
8
|
import {
|
|
9
9
|
optionKeyCheck
|
|
10
10
|
} from "./chunk-Z6H5ED2I.js";
|
|
11
11
|
import {
|
|
12
12
|
createChartComponent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-35JGEMCK.js";
|
|
14
14
|
import {
|
|
15
15
|
lineCore
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-R55LS2W2.js";
|
|
17
17
|
import {
|
|
18
18
|
registeredType
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-D2I2BUR6.js";
|
|
20
20
|
|
|
21
21
|
// src/react/charts/line.ts
|
|
22
22
|
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: { show: 0, min: 0, max: 0, tickStep: 0, includeZero: 0, percent: 0, log: 0, reverse: 0, gridlines: 0 }, categoryAxis: { crossesBetween: 0, dateTicks: 0 }, scaleGroup: { y: 0, id: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, rounding: 0, interactive: 0, annotations: sharedKeys9, trend: { label: 0 }, window: { last: 0, decimate: 0, maxPoints: 0 }, viewDomain: { x: 0 }, xAxis: { type: 0, zone: 0, min: 0, max: 0, tickStep: { unit: 0, step: 0 }, ticks: { "[]": { value: 0, label: 0 } }, format: 0, title: 0, unit: 0, maxTicks: 0 }, anomaly: { method: 0, k: 0, baseline: 0, label: 0, low: 0, high: 0 }, events: sharedKeys1, axisTitles: { primary: 0 }, endLabelPlacement: 0, variant: 0, bump: { direction: 0, focus: 0 }, seriesLabels: { only: 0 }, pointLabelSide: 0, valueLabels: 0, latestPoint: { series: 0, marker: 0 }, emphasis: 0, othersShade: 0, highlightMode: 0, scenarioStyle: { "*": { width: 0, ink: 0 } }, rebase100: { at: 0 }, ratioTier: sharedKeys2, interpolate: 0, phases: { "[]": { id: 0, label: 0, from: 0, to: 0, tone: 0, rank: 0 } }, gapFill: { between: 0, positiveTone: 0, negativeTone: 0 }, fan: { of: 0, bands: { "[]": { low: 0, high: 0, label: 0 } }, showBounds: 0 }, targets: { "[]": { at: 0, value: 0, label: 0, seriesId: 0 } }, methodNote: 0, referenceBands: { "[]": { id: 0, value: 0, low: 0, high: 0, label: 0, description: 0 } } }, labels: ["category", "series", "point", "restSeries", "percentIndicator", "axisTitle"] }), LineChart = createChartComponent(registeredType(lineCore), checkOptionKeys);
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
sharedKeys10,
|
|
4
4
|
sharedKeys5,
|
|
5
5
|
sharedKeys9
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5LUHGXXE.js";
|
|
7
7
|
import {
|
|
8
8
|
optionKeyCheck
|
|
9
9
|
} from "./chunk-Z6H5ED2I.js";
|
|
10
10
|
import {
|
|
11
11
|
createChartComponent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-35JGEMCK.js";
|
|
13
13
|
import {
|
|
14
14
|
mekkoCore
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SB2DHY53.js";
|
|
16
16
|
import {
|
|
17
17
|
registeredType
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-D2I2BUR6.js";
|
|
19
19
|
|
|
20
20
|
// src/react/charts/mekko.ts
|
|
21
21
|
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPosition: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: sharedKeys0, scaleGroup: { y: 0, id: 0 }, sort: { categories: 0, segments: 0 }, topN: { n: 0, rest: 0, restLabel: 0, showRestCount: 0, threshold: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, rounding: 0, interactive: 0, annotations: sharedKeys9, axisTitles: { primary: 0 }, variant: 0, widthSeriesId: 0, ridge: 0 }, labels: ["category", "segment", "total", "axisTitle"] }), MekkoChart = createChartComponent(registeredType(mekkoCore), checkOptionKeys);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
columnOverridesOption
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6PR23T2O.js";
|
|
4
4
|
import {
|
|
5
5
|
addDuplicateIdIssues,
|
|
6
6
|
baseOptionsSchema,
|
|
7
7
|
idSchema,
|
|
8
8
|
primaryAxisTitleSchema,
|
|
9
9
|
refusedBaseOptions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EPS7N5ZS.js";
|
|
11
11
|
|
|
12
12
|
// src/core/charts/box/schema.ts
|
|
13
13
|
import * as z from "zod";
|
|
@@ -2,27 +2,27 @@ import {
|
|
|
2
2
|
columnOrderOption,
|
|
3
3
|
columnOverridesOption,
|
|
4
4
|
columnVisibilityOption
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6PR23T2O.js";
|
|
6
6
|
import {
|
|
7
7
|
isMetricStackData,
|
|
8
8
|
normalizeMetricStack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ST2IQX7U.js";
|
|
10
10
|
import {
|
|
11
11
|
addDuplicateIdIssues,
|
|
12
12
|
baseOptionsSchema,
|
|
13
13
|
idRecord,
|
|
14
14
|
refusedBaseOptions,
|
|
15
15
|
retiredKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EPS7N5ZS.js";
|
|
17
17
|
import {
|
|
18
18
|
normalizeGridData
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WKBW4JFU.js";
|
|
20
20
|
import {
|
|
21
21
|
ownedDocumentCopy
|
|
22
22
|
} from "./chunk-U52PNFPX.js";
|
|
23
23
|
import {
|
|
24
24
|
getChartSchemas
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
26
26
|
import {
|
|
27
27
|
NormalizeError
|
|
28
28
|
} from "./chunk-RJICOOB3.js";
|
|
@@ -42,8 +42,8 @@ var id = z.string().min(1), range = z.strictObject({
|
|
|
42
42
|
measures: z.array(z.strictObject({
|
|
43
43
|
id: id.describe("Unique source measure id."),
|
|
44
44
|
label: id.describe("Source measure label; also the stacked-column legend label."),
|
|
45
|
-
values: z.array(z.number().nonnegative().finite().nullable()).min(1).describe("Source
|
|
46
|
-
})).min(1).describe("Raw source
|
|
45
|
+
values: z.array(z.number().nonnegative().finite().nullable()).min(1).describe("Source values, one per category: counts, or amounts such as spend. Null means unavailable.")
|
|
46
|
+
})).min(1).describe("Raw source values stored once. Rates, amounts per unit and readouts are computed from these values."),
|
|
47
47
|
panels: z.array(z.strictObject({
|
|
48
48
|
id: id.describe("Unique panel id; state scopes use this id."),
|
|
49
49
|
type: z.enum(["column", "line"]).describe("Columns, stacked columns for a multi-measure sum, or a line with points."),
|
|
@@ -51,12 +51,15 @@ var id = z.string().min(1), range = z.strictObject({
|
|
|
51
51
|
unit: id.describe("Measure unit in the readout gutter. A unit in words names each value on the hover card ('Cases per month: 800'); a sign or code such as '$' or 'EUR k' stays on the number."),
|
|
52
52
|
measure: z.union([
|
|
53
53
|
z.strictObject({ sum: fields.describe("Measures added for each category. Columns stack the inputs in order.") }),
|
|
54
|
-
z.strictObject({ numerator: fields.describe("Measures summed for the rate numerator."), denominator: id.describe("Source measure for the rate denominator; the result is a percentage
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
z.strictObject({ numerator: fields.describe("Measures summed for the rate numerator."), denominator: id.describe("Source measure for the rate denominator; the result is a percentage, a share of a count. For an amount per unit, such as cost per order, use ratio and per.") }),
|
|
55
|
+
z.strictObject({ ratio: fields.describe("Measures added for the amount, such as spend."), per: id.describe("Source measure of the units, such as orders. Each category's value is the sum of ratio divided by per, with no factor 100; it is n/a when an input is null or per is 0. A window divides the sum of ratio over its categories by the sum of per, never the mean of the category values: spend 100 and 300 on 10 and 20 orders is 13.33 per order. The change readout is the percent change of the two window values. One mark per category.") })
|
|
56
|
+
]).describe("Engine-computed panel measure: a sum, a rate in percent, or an amount per unit."),
|
|
57
|
+
readout: z.union([z.literal("change"), z.strictObject({ base: id.describe("Base measure for the remaining-per-100 chain.") })]).describe("change compares grid windows; base computes a volume-weighted mature rate and remaining-per-100 span, for rate panels only."),
|
|
57
58
|
emphasis: z.boolean().optional().describe("Use the theme accent. At most one panel may be emphasised."),
|
|
58
|
-
divisor: z.number().positive().optional().describe("Display divisor for sum marks and their change span, for example 1000. The headline percent is unitless."),
|
|
59
|
-
decimals: z.number().int().min(0).max(6).optional().describe("Decimal places of the marks and the change span. A panel with divisor and without decimals prints 0 for
|
|
59
|
+
divisor: z.number().positive().optional().describe("Display divisor for sum or per-unit marks and their change span, for example 1000. The headline percent is unitless."),
|
|
60
|
+
decimals: z.number().int().min(0).max(6).optional().describe("Decimal places of the marks and the change span. A panel with divisor and without decimals prints 0 for sums and amounts per unit and 1 for rates; a panel with neither prints by the default number rule."),
|
|
61
|
+
keyTitle: id.optional().describe("Caption over the key of a stacked panel, such as 'By plan', in muted small text. A panel without a key prints none."),
|
|
62
|
+
segmentShares: z.boolean().optional().describe("true prints each segment's share of its column, in whole percent that add up to 100, inside the segment of the base and the focus columns of a stacked panel. It applies under options.stack.variant 'focus'; the focus column prints the shares of the key. A share that has no room in its segment is left out; the key still carries it. Without the focus look, or on a panel that stacks no measures, it does nothing and warns option-ignored. Absent: no segment labels.")
|
|
60
63
|
})).min(2).max(5).describe("Two to five panels in top-down reading order."),
|
|
61
64
|
states: z.strictObject({
|
|
62
65
|
maturing: z.strictObject({
|
|
@@ -82,6 +85,7 @@ var id = z.string().min(1), range = z.strictObject({
|
|
|
82
85
|
ctx.addIssue({ code: "custom", path: error.segments?.slice(1), message: error.message });
|
|
83
86
|
}
|
|
84
87
|
}).describe("Metric stack: shared categories and source measures, top-down panels with computed readouts. Use options.stack."), metricStackOptionsSchema = z.strictObject({
|
|
88
|
+
variant: z.enum(["focus"]).optional().describe("'focus': the value-first look. The compare window is the focus: each panel prints its focus value first, in the theme role type.display, then the change and the base value ('+86% from $272'), and a stacked panel keys each measure with its share of the focus value. The focus categories take the accent, the base window a dark neutral and the other categories a light neutral; a dashed line marks the base level in each panel. In React, hover and keyboard focus move the focus to one category. Needs data.windows and readout 'change' in every panel; a stack with readout { base } panels ignores it and warns option-ignored. Absent: today's look."),
|
|
85
89
|
heights: z.array(z.number().positive()).min(2).max(5).optional().describe("Plot heights in layout pixels, one per panel in top-down order. Use rows for proportional heights instead."),
|
|
86
90
|
columnVisibility: columnVisibilityOption("grid").describe("False leaves a seat of the one gutter track out, with its height: unit, headline or span. The panel name stays. Hiding headline and span also drops the method line. The values stay in the marks."),
|
|
87
91
|
columnOverrides: columnOverridesOption("grid", ["width", "align"]),
|
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
} from "./chunk-M4YLED7M.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutButterfly
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FXKGNJYB.js";
|
|
7
7
|
import {
|
|
8
8
|
structureCount
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IHZNRJEV.js";
|
|
10
10
|
import {
|
|
11
11
|
chartSizing
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
13
13
|
import {
|
|
14
14
|
HOST_CLAIMS,
|
|
15
15
|
authoredNotes,
|
|
16
16
|
claimId,
|
|
17
17
|
withAuthoredFootnotes,
|
|
18
18
|
withUnprintedClaims
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
20
20
|
import {
|
|
21
21
|
disclosureNote,
|
|
22
22
|
keepShownNotes
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-I3UJHKCS.js";
|
|
24
24
|
import {
|
|
25
25
|
emptyIdRecord
|
|
26
26
|
} from "./chunk-LINZPU5D.js";
|
|
27
27
|
import {
|
|
28
28
|
formatterFromExample,
|
|
29
29
|
ruleFormatter
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BHO5H4AF.js";
|
|
31
31
|
import {
|
|
32
32
|
chartStrings,
|
|
33
33
|
formatAutomaticPercent
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5OUURZ2T.js";
|
|
35
35
|
import {
|
|
36
36
|
isPctCell
|
|
37
37
|
} from "./chunk-O3VN6BTL.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
resolveTheme,
|
|
41
41
|
strokeToken,
|
|
42
42
|
themeForWidth
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-4NGKSJBX.js";
|
|
44
44
|
import {
|
|
45
45
|
NormalizeError,
|
|
46
46
|
TARGET_SIZE,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sharedKeys10,
|
|
3
3
|
sharedKeys5
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5LUHGXXE.js";
|
|
5
5
|
import {
|
|
6
6
|
optionKeyCheck
|
|
7
7
|
} from "./chunk-Z6H5ED2I.js";
|
|
8
8
|
import {
|
|
9
9
|
createChartComponent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-35JGEMCK.js";
|
|
11
11
|
import {
|
|
12
12
|
sankeyCore
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E46KFVP5.js";
|
|
14
14
|
import {
|
|
15
15
|
registeredType
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D2I2BUR6.js";
|
|
17
17
|
|
|
18
18
|
// src/react/charts/sankey.ts
|
|
19
19
|
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, scaleGroup: { y: 0, id: 0 }, highlight: 0, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, linkColor: 0, order: 0, other: { share: 0, label: 0 }, nodeValue: 0, columnOverrides: { "*": { width: 0 } }, linkValue: 0 } }), SankeyChart = createChartComponent(registeredType(sankeyCore), checkOptionKeys);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sumConsistentShares
|
|
3
|
+
} from "./chunk-YHLKL4R5.js";
|
|
1
4
|
import {
|
|
2
5
|
ownedDocumentCopy
|
|
3
6
|
} from "./chunk-U52PNFPX.js";
|
|
@@ -7,17 +10,18 @@ import {
|
|
|
7
10
|
formatWithSpec,
|
|
8
11
|
percentChangeSpec,
|
|
9
12
|
statisticSet
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BHO5H4AF.js";
|
|
11
14
|
import {
|
|
12
15
|
NOT_AVAILABLE,
|
|
13
16
|
formatAutomaticNumber,
|
|
14
17
|
roundHalfUp
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5OUURZ2T.js";
|
|
16
19
|
import {
|
|
17
20
|
NormalizeError
|
|
18
21
|
} from "./chunk-RJICOOB3.js";
|
|
19
22
|
|
|
20
23
|
// src/core/charts/grid/metricStack.ts
|
|
24
|
+
var addedMeasures = (measure) => "sum" in measure ? measure.sum : "ratio" in measure ? measure.ratio : measure.numerator;
|
|
21
25
|
function isMetricStackData(raw) {
|
|
22
26
|
return raw !== null && typeof raw == "object" && Object.hasOwn(raw, "measures") && Object.hasOwn(raw, "categories");
|
|
23
27
|
}
|
|
@@ -40,7 +44,7 @@ var stackRound = (value, decimals) => value === null ? null : Math.sign(value) *
|
|
|
40
44
|
function panelPrint(panel, values, parts, locale) {
|
|
41
45
|
let divisor = panel.divisor ?? 1;
|
|
42
46
|
if (panel.decimals !== void 0 || panel.divisor !== void 0) {
|
|
43
|
-
let decimals = panel.decimals ?? ("
|
|
47
|
+
let decimals = panel.decimals ?? ("denominator" in panel.measure ? 1 : 0), text = (value, suffix = "") => formatAutomaticNumber(value, { automatic: panel.decimals === void 0, decimals, suffix, magnitude: "none", locale });
|
|
44
48
|
return {
|
|
45
49
|
mark: (value) => text(value / divisor),
|
|
46
50
|
span: (_, suffix) => (value) => {
|
|
@@ -49,7 +53,7 @@ function panelPrint(panel, values, parts, locale) {
|
|
|
49
53
|
}
|
|
50
54
|
};
|
|
51
55
|
}
|
|
52
|
-
let rate2 =
|
|
56
|
+
let rate2 = "denominator" in panel.measure, members = [...values, ..."sum" in panel.measure ? parts.flat() : []].filter((value) => value !== null), spec = defaultSetSpec(members, locale, rate2 ? void 0 : panel.unit, rate2 ? { kind: "percent" } : {});
|
|
53
57
|
return {
|
|
54
58
|
mark: (value) => formatWithSpec(value, spec),
|
|
55
59
|
span: (ends, suffix) => {
|
|
@@ -61,7 +65,7 @@ function panelPrint(panel, values, parts, locale) {
|
|
|
61
65
|
}
|
|
62
66
|
};
|
|
63
67
|
}
|
|
64
|
-
var add = (values) => values.some((v) => v === null) ? null : values.reduce((a, b) => a + b, 0), rate = (num, den) => num === null || den === null || den === 0 ? null : num / den * 100;
|
|
68
|
+
var add = (values) => values.some((v) => v === null) ? null : values.reduce((a, b) => a + b, 0), rate = (num, den) => num === null || den === null || den === 0 ? null : num / den * 100, perUnit = (amount, units) => amount === null || units === null || units === 0 ? null : amount / units;
|
|
65
69
|
function normalizeMetricStack(raw) {
|
|
66
70
|
let data = ownedDocumentCopy(raw), unique = (ids2, field2) => {
|
|
67
71
|
new Set(ids2).size !== ids2.length && stackError(field2, "Ids must be unique");
|
|
@@ -71,13 +75,13 @@ function normalizeMetricStack(raw) {
|
|
|
71
75
|
ids.has(id) || stackError("data.panels", `Unknown measure '${id}'`);
|
|
72
76
|
};
|
|
73
77
|
for (let measure of data.measures)
|
|
74
|
-
(measure.values.length !== data.categories.length || measure.values.some((v) => v !== null && (!Number.isFinite(v) || v < 0))) && stackError("data.measures", `Measure '${measure.id}' needs one non-negative finite
|
|
78
|
+
(measure.values.length !== data.categories.length || measure.values.some((v) => v !== null && (!Number.isFinite(v) || v < 0))) && stackError("data.measures", `Measure '${measure.id}' needs one non-negative finite value or null per category`);
|
|
75
79
|
let emphasis = data.panels.flatMap((p, i) => p.emphasis ? [i] : []);
|
|
76
80
|
emphasis.length > 1 && stackError(`data.panels.${emphasis[1]}.emphasis`, `Only one panel may carry emphasis; panels ${emphasis.map((i) => `'${data.panels[i].id}'`).join(", ")} are emphasised`);
|
|
77
81
|
for (let panel of data.panels) {
|
|
78
82
|
panel.type !== "column" && panel.type !== "line" && stackError("data.panels", "Stack panels use column or line");
|
|
79
|
-
let fields =
|
|
80
|
-
fields.length === 0 && stackError("data.panels", "A measure expression needs at least one source measure"), unique(fields, "data.panels"), fields.forEach(field), "denominator" in panel.measure && field(panel.measure.denominator), typeof panel.readout == "object" ? (field(panel.readout.base), "denominator" in panel.measure || stackError("data.panels", "A weighted readout needs a rate measure")) : (panel.readout !== "change" || !data.windows) && stackError("data.windows", "A change readout needs base and compare windows"), panel.divisor !== void 0 && (!Number.isFinite(panel.divisor) || panel.divisor <= 0) && stackError("data.panels", "divisor must be positive"), "denominator" in panel.measure && panel.divisor !== void 0 && panel.divisor !== 1 && stackError("data.panels", "Rate panels are percentages; divisor must be 1"), panel.decimals !== void 0 && (!Number.isInteger(panel.decimals) || panel.decimals < 0 || panel.decimals > 6) && stackError("data.panels", "decimals must be an integer from 0 to 6");
|
|
83
|
+
let fields = addedMeasures(panel.measure);
|
|
84
|
+
fields.length === 0 && stackError("data.panels", "A measure expression needs at least one source measure"), unique(fields, "data.panels"), fields.forEach(field), "denominator" in panel.measure && field(panel.measure.denominator), "per" in panel.measure && field(panel.measure.per), typeof panel.readout == "object" ? (field(panel.readout.base), "per" in panel.measure && stackError("data.panels", `Panel '${panel.id}' computes an amount per unit, which reads its change only; use readout: 'change'`), "denominator" in panel.measure || stackError("data.panels", "A weighted readout needs a rate measure")) : (panel.readout !== "change" || !data.windows) && stackError("data.windows", "A change readout needs base and compare windows"), panel.divisor !== void 0 && (!Number.isFinite(panel.divisor) || panel.divisor <= 0) && stackError("data.panels", "divisor must be positive"), "denominator" in panel.measure && panel.divisor !== void 0 && panel.divisor !== 1 && stackError("data.panels", "Rate panels are percentages; divisor must be 1"), panel.decimals !== void 0 && (!Number.isInteger(panel.decimals) || panel.decimals < 0 || panel.decimals > 6) && stackError("data.panels", "decimals must be an integer from 0 to 6");
|
|
81
85
|
}
|
|
82
86
|
let validPanels = data.panels.map((p) => p.id).join(", "), panelScope = (scope, contiguous, field2) => {
|
|
83
87
|
let duplicate = scope.find((id, i) => scope.indexOf(id) !== i);
|
|
@@ -125,7 +129,10 @@ function normalizeMetricStack(raw) {
|
|
|
125
129
|
}
|
|
126
130
|
return data;
|
|
127
131
|
}
|
|
128
|
-
function
|
|
132
|
+
function withCompareWindow(data, window) {
|
|
133
|
+
return { ...data, windows: { ...data.windows, compare: window } };
|
|
134
|
+
}
|
|
135
|
+
function computeMetricStack(data, locale, na = NOT_AVAILABLE, shares = !1) {
|
|
129
136
|
let grain = metricStackGrain(data), measures = new Map(data.measures.map((m) => [m.id, m])), maturing = data.states?.maturing ? stackRange(data, data.states.maturing) : [], partial = data.categories.flatMap((c, i) => c.partial ? [i] : []), mature = data.categories.map((_, i) => i).filter((i) => !partial.includes(i) && !maturing.includes(i)), windowSum = (ids) => mature.length ? add(mature.flatMap((i) => ids.map((id) => measures.get(id).values[i]))) : null, weightedMembers = data.panels.flatMap((panel) => {
|
|
130
137
|
if (typeof panel.readout != "object" || panel.divisor !== void 0 || panel.decimals !== void 0) return [];
|
|
131
138
|
let expr = panel.measure, base = windowSum([panel.readout.base]), denominator = windowSum([expr.denominator]), numerator = windowSum(expr.numerator);
|
|
@@ -135,10 +142,10 @@ function computeMetricStack(data, locale, na = NOT_AVAILABLE) {
|
|
|
135
142
|
rule: weightedSpec[RULE_SET]
|
|
136
143
|
};
|
|
137
144
|
return { panels: data.panels.map((panel) => {
|
|
138
|
-
let expr = panel.measure, fields =
|
|
139
|
-
let num = add(
|
|
140
|
-
return "sum" in expr ? num : rate(num, measures.get(expr.denominator).values[i]);
|
|
141
|
-
}), states = data.categories.map((c, i) => c.partial ? "partial" : maturing.includes(i) && data.states.maturing.panels.includes(panel.id) ? "maturing" : "mature");
|
|
145
|
+
let expr = panel.measure, fields = addedMeasures(expr), sources = fields.map((id) => measures.get(id).values), values = data.categories.map((_, i) => {
|
|
146
|
+
let num = add(sources.map((v) => v[i]));
|
|
147
|
+
return "sum" in expr ? num : "per" in expr ? perUnit(num, measures.get(expr.per).values[i]) : rate(num, measures.get(expr.denominator).values[i]);
|
|
148
|
+
}), parts = "per" in expr ? [] : sources, states = data.categories.map((c, i) => c.partial ? "partial" : maturing.includes(i) && data.states.maturing.panels.includes(panel.id) ? "maturing" : "mature");
|
|
142
149
|
data.states?.partial?.panels.includes(panel.id) && partial.forEach((i) => {
|
|
143
150
|
values[i] = null;
|
|
144
151
|
});
|
|
@@ -151,17 +158,49 @@ function computeMetricStack(data, locale, na = NOT_AVAILABLE) {
|
|
|
151
158
|
}, aggregate = (key, indexes) => {
|
|
152
159
|
let num = sum(`${key}:sum`, fields, indexes);
|
|
153
160
|
if ("sum" in expr) return make(key, "ratio@1", [ref(num), { ref: `${key}:category-count`, value: indexes.length }], indexes.length ? num.output.raw === null ? null : num.output.raw / indexes.length : null);
|
|
161
|
+
if ("per" in expr) {
|
|
162
|
+
let units = sum(`${key}:per`, [expr.per], indexes);
|
|
163
|
+
return make(key, "ratio@1", [ref(num), ref(units)], perUnit(num.output.raw, units.output.raw));
|
|
164
|
+
}
|
|
154
165
|
let den = sum(`${key}:denominator`, [expr.denominator], indexes), raw = make(`${key}:raw`, "share@1", [ref(num), ref(den)], rate(num.output.raw, den.output.raw));
|
|
155
166
|
return make(key, "round-decimals@1", [ref(raw), { ref: "decimals", value: 1 }], stackRound(raw.output.raw, 1));
|
|
156
|
-
}, readout;
|
|
167
|
+
}, readout, shareTexts, segmentTexts;
|
|
157
168
|
if (panel.readout === "change") {
|
|
158
|
-
let baseIndexes = stackRange(data, data.windows.base), compareIndexes = stackRange(data, data.windows.compare), base = aggregate("base", baseIndexes), compare = aggregate("compare", compareIndexes), isRate = "denominator" in expr, unrounded = (key, rounded) => isRate ? claims.find((c) => c.id === `stack:${panel.id}:${key}:raw`) : rounded, startOperand = unrounded("base", base), endOperand = unrounded("compare", compare), authored = panel.divisor !== void 0 || panel.decimals !== void 0,
|
|
169
|
+
let baseIndexes = stackRange(data, data.windows.base), compareIndexes = stackRange(data, data.windows.compare), base = aggregate("base", baseIndexes), compare = aggregate("compare", compareIndexes), isRate = "denominator" in expr, unrounded = (key, rounded) => isRate ? claims.find((c) => c.id === `stack:${panel.id}:${key}:raw`) : rounded, startOperand = unrounded("base", base), endOperand = unrounded("compare", compare), authored = panel.divisor !== void 0 || panel.decimals !== void 0, a = startOperand.output.raw, b = endOperand.output.raw, change = make("change:raw", isRate ? "difference@1" : "percentDelta@1", [ref(endOperand), ref(startOperand)], a === null || b === null || !isRate && a === 0 ? null : isRate ? b - a : (b / a - 1) * 100), changeRaw = change.output.raw, changeSpec = changeRaw === null || authored ? void 0 : percentChangeSpec([changeRaw], locale, isRate ? "pp" : "%"), changeSet = changeSpec?.[RULE_SET], authoredDecimals = isRate ? panel.decimals ?? 1 : 0, headline = changeRaw === null ? null : changeSet === void 0 ? stackRound(changeRaw, authoredDecimals) : changeSet.rounded(changeRaw), headlineText = headline === null ? na : changeSpec === void 0 ? formatAutomaticNumber(headline, { decimals: authoredDecimals, suffix: isRate ? "pp" : "%", signed: !0, locale, magnitude: "none" }) : formatWithSpec(changeRaw, changeSpec);
|
|
159
170
|
make("headline", "round-decimals@1", [ref(change), { ref: "decimals", value: changeRaw === null ? 0 : changeSet === void 0 ? authoredDecimals : changeSet.groupOf(changeRaw).decimals }], headline, headlineText);
|
|
160
171
|
let divisor = panel.divisor ?? 1, suffix = isRate ? "%" : "", scaledRaw = (operand) => operand.output.raw === null ? null : operand.output.raw / divisor, spanEnd = print.span([scaledRaw(startOperand), scaledRaw(endOperand)], suffix), endpoint = (key, operand) => {
|
|
161
172
|
let scaled = divisor === 1 ? operand : make(`${key}:scaled`, "ratio@1", [ref(operand), { ref: "divisor", value: divisor }], scaledRaw(operand)), printed = scaled.output.raw === null ? void 0 : spanEnd(scaled.output.raw);
|
|
162
173
|
return make(key, "round-decimals@1", [ref(scaled), { ref: "decimals", value: printed?.decimals ?? panel.decimals ?? 0 }], printed?.rounded ?? null, printed?.text ?? na).output;
|
|
163
174
|
}, start = endpoint("before", startOperand), end = endpoint("after", endOperand), before = start.raw, after = end.raw, spanText = `${start.displayed} \u2192 ${end.displayed}`;
|
|
164
|
-
|
|
175
|
+
if (shares && "sum" in expr && parts.length > 1) {
|
|
176
|
+
let total = claims.find((c) => c.id === `stack:${panel.id}:compare:sum`), raws = expr.sum.map((id) => {
|
|
177
|
+
let part = sum(`share:${id}:sum`, [id], compareIndexes);
|
|
178
|
+
return make(`share:${id}:raw`, "share@1", [ref(part), ref(total)], rate(part.output.raw, total.output.raw));
|
|
179
|
+
}), values2 = raws.map((raw) => raw.output.raw), rounded = values2.every((value) => value !== null) ? sumConsistentShares(values2, locale, void 0, 0) : null;
|
|
180
|
+
if (shareTexts = expr.sum.map((id, k) => {
|
|
181
|
+
let text = rounded?.texts[k] ?? na, claim = make(`share:${id}`, "round-sum-consistent@1", [...raws.map(ref), { ref: "decimals", value: 0 }], rounded?.values[k] ?? null, text);
|
|
182
|
+
return { id, text, claimId: claim.id };
|
|
183
|
+
}), panel.segmentShares) {
|
|
184
|
+
segmentTexts = data.categories.map(() => {
|
|
185
|
+
});
|
|
186
|
+
for (let i of /* @__PURE__ */ new Set([...baseIndexes, ...compareIndexes])) {
|
|
187
|
+
if (expr.sum.some((id) => measures.get(id).values[i] === null)) continue;
|
|
188
|
+
let at = data.categories[i].id, column = sum(`segment:${at}:sum`, expr.sum, [i]), raws2 = expr.sum.map((id) => make(
|
|
189
|
+
`segment:${at}:${id}:raw`,
|
|
190
|
+
"share@1",
|
|
191
|
+
[ref(sum(`segment:${at}:${id}:sum`, [id], [i])), ref(column)],
|
|
192
|
+
rate(measures.get(id).values[i], column.output.raw)
|
|
193
|
+
)), values3 = raws2.map((raw) => raw.output.raw);
|
|
194
|
+
if (values3.some((value) => value === null)) continue;
|
|
195
|
+
let rounded2 = sumConsistentShares(values3, locale, void 0, 0);
|
|
196
|
+
rounded2 && (segmentTexts[i] = expr.sum.map((id, k) => {
|
|
197
|
+
let claim = make(`segment:${at}:${id}`, "round-sum-consistent@1", [...raws2.map(ref), { ref: "decimals", value: 0 }], rounded2.values[k], rounded2.texts[k]);
|
|
198
|
+
return { id, text: claim.output.displayed, claimId: claim.id };
|
|
199
|
+
}));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
readout = { panelId: panel.id, method: isRate ? "rounded-rate-change" : "per" in expr ? "ratio-change" : "average-change", grain, categoryIds: { base: baseIndexes.map((i) => data.categories[i].id), compare: compareIndexes.map((i) => data.categories[i].id) }, headline, before, after, headlineText, spanText, claims };
|
|
165
204
|
} else {
|
|
166
205
|
let rateExpr = expr, avg = aggregate("rate", mature), base = sum("chain:base", [panel.readout.base], mature), beforeSum = sum("chain:before", [rateExpr.denominator], mature), afterSum = sum("chain:after", fields, mature), chainRate = (operand) => rate(operand.output.raw, base.output.raw), authored = panel.divisor !== void 0 || panel.decimals !== void 0, fixed = (n, decimals, suffix = "") => n === null ? na : formatAutomaticNumber(n, { decimals, suffix, locale, magnitude: "none" }), endpoint = (key, operand) => {
|
|
167
206
|
let raw = make(`${key}:raw`, "share@1", [ref(operand), ref(base)], chainRate(operand)), value = raw.output.raw, own = authored || value === null || value === 100, rounded = own ? value === 100 ? 100 : stackRound(value, 1) : weightedSet.rule.rounded(value), decimals = own ? value === 100 && !authored ? 0 : 1 : Math.max(0, weightedSet.rule.groupOf(value).decimals), text = own ? fixed(rounded, rounded === 100 ? 0 : 1) : weightedSet.text(value);
|
|
@@ -171,7 +210,7 @@ function computeMetricStack(data, locale, na = NOT_AVAILABLE) {
|
|
|
171
210
|
let headline = avg.output.raw, headlineText = inSet ? weightedSet.text(rateRaw, "%") : fixed(headline, 1, "%");
|
|
172
211
|
avg.output.displayed = headlineText, readout = { panelId: panel.id, method: "weighted-rate", grain, categoryIds: { mature: mature.map((i) => data.categories[i].id) }, headline, before: start.raw, after: end.raw, headlineText, spanText: `${start.displayed} \u2192 ${end.displayed}`, claims };
|
|
173
212
|
}
|
|
174
|
-
return { panel, values, parts, states, readout, format: print.mark };
|
|
213
|
+
return { panel, values, parts, states, readout, format: print.mark, ...shareTexts ? { shares: shareTexts } : {}, ...segmentTexts ? { segmentShares: segmentTexts } : {} };
|
|
175
214
|
}), maturing, mature, partial };
|
|
176
215
|
}
|
|
177
216
|
|
|
@@ -181,5 +220,6 @@ export {
|
|
|
181
220
|
stackRange,
|
|
182
221
|
metricStackGrain,
|
|
183
222
|
normalizeMetricStack,
|
|
223
|
+
withCompareWindow,
|
|
184
224
|
computeMetricStack
|
|
185
225
|
};
|
|
@@ -6,32 +6,32 @@ import {
|
|
|
6
6
|
} from "./chunk-UTWLJ6AZ.js";
|
|
7
7
|
import {
|
|
8
8
|
BoardplotThemeContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3Z4I6LNK.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveSharedScale,
|
|
12
12
|
sharedScaleValueAxis
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-C3ULVZI7.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveThemeRequest
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XJOCPL6R.js";
|
|
17
17
|
import {
|
|
18
18
|
chartRegistryRevision,
|
|
19
19
|
onChartRegistered
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
21
21
|
import {
|
|
22
22
|
haloPaint,
|
|
23
23
|
repaintGeometry,
|
|
24
24
|
repaintScene,
|
|
25
25
|
resolvePaint
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
27
27
|
import {
|
|
28
28
|
themeGeometryTokens
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OQRTTGYP.js";
|
|
30
30
|
import {
|
|
31
31
|
hatchPaint,
|
|
32
32
|
isHatchPattern,
|
|
33
33
|
unsetRolesAsFallback
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4NGKSJBX.js";
|
|
35
35
|
|
|
36
36
|
// src/react/ScaleGroup.tsx
|
|
37
37
|
import { useMemo, useSyncExternalStore } from "react";
|