boardplot 0.60.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 +49 -0
- package/README.md +2 -2
- package/dist/{ReaderBox-JJX4J7GC.js → ReaderBox-5QFALZHR.js} +5 -5
- package/dist/{annotateEngine-KNRKDLY3.js → annotateEngine-ONWZYNEM.js} +1 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-D4SXBDA4.js → chunk-23YYVMWH.js} +1 -1
- package/dist/{chunk-OMUW75ZR.js → chunk-2MK5437T.js} +7 -7
- package/dist/{chunk-CDFZV6LR.js → chunk-2P5KBQLT.js} +4 -4
- package/dist/{chunk-EH23CIC5.js → chunk-2VUEIEUO.js} +2 -2
- package/dist/{chunk-TASEX7VA.js → chunk-2YXO645A.js} +1 -1
- package/dist/{chunk-YHIBABKS.js → chunk-35JGEMCK.js} +35 -28
- package/dist/{chunk-XWGAANY4.js → chunk-3DXOZRRW.js} +3 -3
- package/dist/{chunk-PP23D6QV.js → chunk-3H72EFNC.js} +4 -4
- package/dist/{chunk-RDJ3ZU6O.js → chunk-3KYSWAEH.js} +13 -8
- package/dist/{chunk-XMRLQDOR.js → chunk-3QJVBKRX.js} +37 -37
- package/dist/{chunk-XVFUJRRC.js → chunk-3YSLEJPV.js} +1 -1
- package/dist/{chunk-DBKMJWPO.js → chunk-3Z4I6LNK.js} +1 -1
- package/dist/{chunk-J5QVU7GS.js → chunk-476R7YF4.js} +24 -20
- package/dist/{chunk-MA57XWZA.js → chunk-47IEMR6C.js} +85 -79
- package/dist/{chunk-ZNA4JHHG.js → chunk-4HZKH4HS.js} +2 -2
- package/dist/{chunk-CQ6WHTRL.js → chunk-4NGKSJBX.js} +109 -23
- package/dist/{chunk-DEJKDFS3.js → chunk-4SK4IGMK.js} +3 -3
- package/dist/{chunk-OL6HVC6K.js → chunk-4TTNLFTJ.js} +1 -1
- package/dist/{chunk-L2VWHKTJ.js → chunk-4XDWZJUX.js} +3 -1
- package/dist/{chunk-66FOKRUF.js → chunk-5FG24HFB.js} +4 -4
- package/dist/{chunk-HLQ74GAX.js → chunk-5J2PQ5EZ.js} +4 -4
- package/dist/{chunk-7BQK2UDV.js → chunk-5LUHGXXE.js} +1 -1
- package/dist/{chunk-FYFXOLWI.js → chunk-5OUURZ2T.js} +70 -58
- package/dist/{chunk-UNO3WZR2.js → chunk-64D7CHCE.js} +4 -4
- package/dist/{chunk-SBYKLBDV.js → chunk-6LYMOF2S.js} +4 -4
- package/dist/{chunk-52YYGKXG.js → chunk-6MXRNA4Z.js} +17 -17
- package/dist/{chunk-IDVHLD2L.js → chunk-6OM5IYNK.js} +68 -11
- package/dist/{chunk-B7UWG6XJ.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-OYLZRQTX.js → chunk-6XDX3MIU.js} +5 -5
- package/dist/{chunk-5XAU6JH5.js → chunk-75OLP5KB.js} +35 -35
- package/dist/{chunk-UIHGGWES.js → chunk-77LQEREO.js} +1 -1
- package/dist/{chunk-PRVX4PAO.js → chunk-7JSGG67J.js} +1 -1
- package/dist/{chunk-RTN422GQ.js → chunk-7NUNEVOU.js} +14 -9
- package/dist/{chunk-2ZDFX75P.js → chunk-7OT6CVQT.js} +1 -1
- package/dist/{chunk-QCDJGYFU.js → chunk-7R43Y35G.js} +1 -1
- package/dist/{chunk-XLX3TUFO.js → chunk-7RAF2HJA.js} +2 -2
- package/dist/{chunk-CROGQZFW.js → chunk-7S57SH2K.js} +9 -9
- package/dist/{chunk-LWRLVDFU.js → chunk-7ZYGEPY2.js} +52 -28
- package/dist/{chunk-N5DPRWQ6.js → chunk-ABUJPENV.js} +53 -42
- package/dist/{chunk-C63YFMCB.js → chunk-ADVFTNDL.js} +4 -4
- package/dist/{chunk-MOPY5REE.js → chunk-AFONROHX.js} +3 -3
- package/dist/{chunk-EGCELTRX.js → chunk-AO73FLJT.js} +4 -4
- package/dist/{chunk-U75MMLNQ.js → chunk-AU2TQN6F.js} +4 -4
- package/dist/{chunk-34XJCEPN.js → chunk-BFHAYXUU.js} +2 -2
- package/dist/{chunk-UKEI7JDA.js → chunk-BFJKH4AX.js} +3 -2
- package/dist/{chunk-3JG764MI.js → chunk-BHO5H4AF.js} +43 -15
- package/dist/{chunk-T73SF424.js → chunk-BKZF27CE.js} +2 -2
- package/dist/{chunk-BXZNLMMH.js → chunk-BR2ADMLU.js} +2 -2
- package/dist/{chunk-BIRB4FIZ.js → chunk-BZUHBKMK.js} +4 -4
- package/dist/{chunk-N7BPP6ZZ.js → chunk-C2X6NYMY.js} +1 -1
- package/dist/{chunk-NOC5PYN3.js → chunk-C3ULVZI7.js} +2 -2
- package/dist/{chunk-JUVSZGY7.js → chunk-CFT6W2QY.js} +3 -3
- package/dist/{chunk-7KIULDTU.js → chunk-CPBJII5T.js} +5 -5
- package/dist/{chunk-LUYV7PHY.js → chunk-CTRPRU4Y.js} +16 -13
- package/dist/{chunk-3HKY4LAR.js → chunk-CWBM7MXM.js} +4 -4
- package/dist/{chunk-ZQ6AEWKM.js → chunk-CZZXZFYL.js} +2 -2
- package/dist/{chunk-TDVNIVU4.js → chunk-D2I2BUR6.js} +1 -1
- package/dist/{chunk-VRG7GG7T.js → chunk-DCFK2BUL.js} +2 -2
- package/dist/{chunk-5OV7VOGV.js → chunk-DVQR5SFL.js} +2 -2
- package/dist/{chunk-GZYMHC44.js → chunk-DWEVPNNE.js} +2 -2
- package/dist/{chunk-RQT52BP4.js → chunk-DYG4XMCC.js} +5 -5
- package/dist/{chunk-PCITI5ED.js → chunk-E46KFVP5.js} +11 -11
- package/dist/{chunk-DITI57ZB.js → chunk-EKKRDPVW.js} +1 -1
- package/dist/{chunk-UGAZT73S.js → chunk-ELFF5YO7.js} +8 -8
- package/dist/{chunk-2KICOGFN.js → chunk-EPRJX5BI.js} +2 -2
- package/dist/{chunk-JOX252XQ.js → chunk-EPS7N5ZS.js} +8 -3
- package/dist/{chunk-AGR4VJ2Y.js → chunk-ERIMFXE3.js} +1 -1
- package/dist/{chunk-TSGSZAAN.js → chunk-ESS7GAO5.js} +15 -15
- package/dist/{chunk-VTUSC24F.js → chunk-EW77WN7V.js} +2 -2
- package/dist/{chunk-CLZPPLDA.js → chunk-F2IGRFYM.js} +57 -33
- package/dist/{chunk-WQ2TZNGR.js → chunk-F7LDXGWD.js} +11 -11
- package/dist/{chunk-SDAVHADX.js → chunk-FC6H5ATA.js} +2 -2
- package/dist/{chunk-ISNHKFCU.js → chunk-FI5VGWUQ.js} +2 -2
- package/dist/{chunk-Q53IWBTJ.js → chunk-FPF73SCJ.js} +18 -15
- package/dist/{chunk-4S3DTNEQ.js → chunk-FSRAPSO7.js} +28 -28
- package/dist/{chunk-ID65JMYY.js → chunk-FXKGNJYB.js} +17 -17
- package/dist/{chunk-25JXYOSX.js → chunk-FXQH2QJN.js} +1 -1
- package/dist/{chunk-GDS7LEGY.js → chunk-GA7CIH6N.js} +23 -18
- package/dist/{chunk-GYEBEF4S.js → chunk-GCOFMXFJ.js} +5 -5
- package/dist/{chunk-Q4SQGAEI.js → chunk-GGWYJNHH.js} +4 -4
- package/dist/{chunk-64M7YDMJ.js → chunk-GNSAYVND.js} +2 -2
- package/dist/{chunk-X725AGYP.js → chunk-H7K3RXBQ.js} +2 -2
- package/dist/{chunk-I5LFCHNQ.js → chunk-HCAPGTEA.js} +1 -1
- package/dist/{chunk-RF6ZHX5F.js → chunk-HUU76QHF.js} +1 -1
- package/dist/{chunk-TZOHCW4R.js → chunk-HV6OKHM6.js} +1 -1
- package/dist/{chunk-7OLE7R46.js → chunk-HYBGISXA.js} +3 -3
- package/dist/{chunk-E7GO4KFZ.js → chunk-I37SEVQ4.js} +127 -79
- package/dist/{chunk-ZCOGCNT7.js → chunk-I3UJHKCS.js} +3 -3
- package/dist/{chunk-VSAX2PYB.js → chunk-I56NIVFF.js} +4 -4
- package/dist/{chunk-2KDELDD4.js → chunk-IDMGFWB7.js} +134 -116
- package/dist/{chunk-YDYZWCUQ.js → chunk-IHZNRJEV.js} +1 -1
- package/dist/{chunk-EFU2RCCR.js → chunk-IMKHDTEQ.js} +1 -1
- package/dist/{chunk-PYJZ7CCP.js → chunk-ISNWAYX2.js} +3 -3
- package/dist/{chunk-6IRPZUWJ.js → chunk-ITPXKZXT.js} +83 -79
- package/dist/{chunk-PS45RNDC.js → chunk-J233F6JA.js} +3 -3
- package/dist/{chunk-PSUSHJFV.js → chunk-J6WWK4VC.js} +1 -1
- package/dist/{chunk-DXKMCMIH.js → chunk-J77EYTIA.js} +2 -2
- package/dist/{chunk-D7FFMBHF.js → chunk-JCZ64D4G.js} +4 -4
- package/dist/{chunk-LUIHWUZB.js → chunk-JEC6YG2C.js} +34 -20
- package/dist/{chunk-BNBCHZ6D.js → chunk-JV3S3OCN.js} +19 -18
- package/dist/{chunk-7KZN3TXQ.js → chunk-K2ZDFPYP.js} +5 -5
- package/dist/{chunk-WPHEUEO3.js → chunk-K3METEEY.js} +133 -30
- package/dist/{chunk-WWFUZXCW.js → chunk-K464WFSQ.js} +4 -4
- package/dist/{chunk-T52ZPSGL.js → chunk-KDRI3KHH.js} +7 -2
- package/dist/{chunk-K7CONTAT.js → chunk-KK7UXU2E.js} +3 -3
- package/dist/{chunk-5SPL5QEB.js → chunk-KNTNUQNS.js} +8 -8
- package/dist/{chunk-QZAT46PP.js → chunk-KRSI6U6L.js} +1 -0
- package/dist/{chunk-SC2363Q7.js → chunk-KU5WGRQJ.js} +72 -44
- package/dist/{chunk-C7SY7RYQ.js → chunk-KWBG3P7W.js} +4 -4
- package/dist/{chunk-ZXT3OS6U.js → chunk-KWKJYMXJ.js} +3 -3
- package/dist/{chunk-XKKII2K5.js → chunk-KWTVCTWS.js} +246 -83
- package/dist/{chunk-ZOQRX5V7.js → chunk-KZ7ECRPL.js} +4 -4
- package/dist/{chunk-VCENIUYM.js → chunk-L46NAICE.js} +5 -5
- package/dist/{chunk-2OKDNNCY.js → chunk-L4VGGSB3.js} +4 -4
- package/dist/{chunk-76IZNTNL.js → chunk-L6T7FXEM.js} +6 -6
- package/dist/{chunk-2E2MK4XM.js → chunk-LE6QYQRU.js} +2 -2
- package/dist/{chunk-WDLWWEHZ.js → chunk-LIMLKOX7.js} +1 -1
- package/dist/{chunk-2FSJFKUH.js → chunk-LK5V7U6C.js} +5 -5
- package/dist/{chunk-6RQCZA7X.js → chunk-LNBYRD5Q.js} +4 -4
- package/dist/{chunk-CVLTU3T4.js → chunk-LTEGXWSU.js} +4 -4
- package/dist/{chunk-MXC5QMPC.js → chunk-LUIHCUMB.js} +4 -4
- package/dist/{chunk-GOVRBONO.js → chunk-MAA5IGGT.js} +2 -2
- package/dist/{chunk-RLRVSX4I.js → chunk-MDGVRYXX.js} +20 -20
- package/dist/{chunk-7TGG57QF.js → chunk-MEIDC7ZF.js} +4 -4
- package/dist/{chunk-RWVM4EVE.js → chunk-MTJZT6F2.js} +5 -5
- package/dist/{chunk-AXKZLSON.js → chunk-MUYU6KTM.js} +1 -1
- package/dist/{chunk-RPS7G77V.js → chunk-MVA2JWM4.js} +2 -2
- package/dist/{chunk-LCTLW4ZW.js → chunk-MYDVNJAA.js} +1 -1
- package/dist/{chunk-3PFNYRBD.js → chunk-NFEVGJJ6.js} +13 -13
- package/dist/{chunk-HXAWJC32.js → chunk-NFSG2WBI.js} +4 -4
- package/dist/{chunk-K7NCVUIB.js → chunk-NFYF7P6H.js} +36 -28
- package/dist/{chunk-ZT7QX7UQ.js → chunk-NL2K3CZM.js} +5 -5
- package/dist/{chunk-A2RKEC66.js → chunk-NTONEZH5.js} +20 -20
- package/dist/{chunk-GGXAAOKT.js → chunk-NTSJ2RXB.js} +4 -4
- package/dist/{chunk-OJWJMG6B.js → chunk-NVPORMKX.js} +15 -15
- package/dist/{chunk-NJNMKQHG.js → chunk-NXA2CNVU.js} +125 -31
- package/dist/{chunk-R2RLERPT.js → chunk-NYROTVGH.js} +1 -1
- package/dist/{chunk-W74Y5AUG.js → chunk-NZHIXLKM.js} +19 -17
- package/dist/{chunk-UIOZDIUB.js → chunk-OCANU74G.js} +3 -3
- package/dist/{chunk-IF4PERIE.js → chunk-OF4VHET3.js} +4 -4
- package/dist/{chunk-UXJXA4NP.js → chunk-OJLXBFI3.js} +1 -1
- package/dist/{chunk-5HOIOQK3.js → chunk-OLXZXEKQ.js} +1 -1
- package/dist/{chunk-UNBUFCQT.js → chunk-OQGSYQLE.js} +1 -1
- package/dist/{chunk-MZCJ22O4.js → chunk-OQQGM2TM.js} +1 -1
- package/dist/{chunk-FPWADEL6.js → chunk-OQRTTGYP.js} +22 -1
- package/dist/{chunk-XUEX5WTR.js → chunk-OQTD4GN4.js} +1 -1
- package/dist/{chunk-HOQJIUTX.js → chunk-OXWIBDJP.js} +2 -2
- package/dist/{chunk-F7QCIJAY.js → chunk-OYDZO5BR.js} +1 -1
- package/dist/{chunk-5PC6VOEW.js → chunk-PDUF6EII.js} +9 -9
- package/dist/{chunk-GEFUIQUO.js → chunk-PHRQAWK4.js} +2 -2
- package/dist/{chunk-NF74JTTK.js → chunk-PM5D5KYQ.js} +67 -30
- package/dist/{chunk-QF6NFIBD.js → chunk-Q5BD6PMX.js} +22 -22
- package/dist/{chunk-UHFSDVW2.js → chunk-QEEE2WH5.js} +4 -4
- package/dist/{chunk-BG2RBCJP.js → chunk-QMGCL5FR.js} +4 -4
- package/dist/{chunk-DXSYY6XR.js → chunk-QMZPQU65.js} +2 -2
- package/dist/{chunk-7VWXXBTC.js → chunk-QSNEZ4UR.js} +1 -1
- package/dist/{chunk-BHYY6VMQ.js → chunk-QSWLPQCW.js} +27 -23
- package/dist/{chunk-LVC2YJGV.js → chunk-R55LS2W2.js} +28 -28
- package/dist/{chunk-BLTQ2L6U.js → chunk-RDXJAEZ4.js} +4 -4
- package/dist/{chunk-OVYQJDRW.js → chunk-RDZNRSAB.js} +2 -2
- package/dist/{chunk-VHZ4MXJO.js → chunk-RFUSBITY.js} +1 -1
- package/dist/{chunk-4VKYFELK.js → chunk-RIGQU57Y.js} +7 -7
- package/dist/{chunk-DEUOC3IL.js → chunk-RNA5GO3B.js} +2 -2
- package/dist/{chunk-IFRDI7EF.js → chunk-RODV3OHP.js} +294 -180
- package/dist/{chunk-CPKPQQV6.js → chunk-RPK657TE.js} +16 -2
- package/dist/{chunk-HMWN6FTW.js → chunk-SAVO62PW.js} +1 -1
- package/dist/{chunk-3ADWX4BM.js → chunk-SB2DHY53.js} +18 -18
- package/dist/{chunk-BIQ5LJEC.js → chunk-SBHPRHKB.js} +4 -4
- package/dist/{chunk-TMY4PWDQ.js → chunk-SBPFCQNK.js} +4 -4
- package/dist/{chunk-PZZAVTLQ.js → chunk-SFPHP3CC.js} +2 -2
- package/dist/{chunk-PLVYTK2H.js → chunk-SIZW5V4G.js} +18 -14
- package/dist/{chunk-Y4BJ7D5F.js → chunk-SJ5KVLTG.js} +1 -1
- package/dist/{chunk-PGZGBVTS.js → chunk-SJZLWRRY.js} +8 -8
- package/dist/{chunk-A3AKNPLZ.js → chunk-SOAB4G33.js} +4 -4
- package/dist/{chunk-LPLRXEOT.js → chunk-ST2IQX7U.js} +57 -17
- package/dist/{chunk-E4XQSRH6.js → chunk-T33R2CM3.js} +7 -7
- package/dist/{chunk-FWPPZB4G.js → chunk-T4ZE7AIX.js} +2 -2
- package/dist/{chunk-HTXICOSJ.js → chunk-TCQ733WC.js} +15 -15
- package/dist/{chunk-J3GYX5BJ.js → chunk-TGTKAIDU.js} +20 -15
- package/dist/{chunk-AE6X6RRH.js → chunk-U4PDXI67.js} +4 -4
- package/dist/{chunk-JXMOPQXC.js → chunk-UGTYYTPP.js} +2 -2
- package/dist/{chunk-Y5ROVCMQ.js → chunk-UL3RNOYB.js} +3 -3
- package/dist/{chunk-MYBBZNYN.js → chunk-UOTZH4TG.js} +2 -2
- package/dist/{chunk-ZH4DRVFN.js → chunk-UQSH52UJ.js} +4 -4
- package/dist/{chunk-PL43U5GM.js → chunk-UWT66OAR.js} +1 -1
- package/dist/{chunk-QTT4AJY5.js → chunk-V4NJTLJP.js} +14 -14
- package/dist/{chunk-SY7JC3PH.js → chunk-V4YJRZHE.js} +1 -1
- package/dist/{chunk-FP4INYSU.js → chunk-V5Y3CXSU.js} +4 -4
- package/dist/{chunk-TTY4CA7M.js → chunk-VZFPQMYN.js} +9 -9
- package/dist/{chunk-C26Z5AEW.js → chunk-W35C2SL3.js} +3 -3
- package/dist/{chunk-X5I3LGHD.js → chunk-W6ZCXWOK.js} +1 -1
- package/dist/{chunk-TUYKMVYV.js → chunk-WDP7IDGF.js} +13 -13
- package/dist/{chunk-L3B46VGP.js → chunk-WDQJ2DRZ.js} +14 -14
- package/dist/{chunk-3HKL6KJ6.js → chunk-WKBW4JFU.js} +1 -1
- package/dist/chunk-WM65Q3AL.js +69 -0
- package/dist/{chunk-HPNQ3GKK.js → chunk-WO6ZJCAO.js} +4 -4
- package/dist/chunk-WSRGEK5T.js +89 -0
- package/dist/{chunk-NGKZRGQL.js → chunk-WXGBSBHQ.js} +13 -12
- package/dist/{chunk-XDGAJVCG.js → chunk-WXOSGKMS.js} +8 -8
- package/dist/{chunk-6BAUUBP2.js → chunk-XBASXPUJ.js} +2 -2
- package/dist/{chunk-O6E2LWGK.js → chunk-XDDFM3BH.js} +6 -6
- package/dist/{chunk-ENVV7LI4.js → chunk-XJOCPL6R.js} +2 -2
- package/dist/{chunk-ETSWVJB6.js → chunk-XJSI7ZO2.js} +1 -1
- package/dist/chunk-XKGZWQF7.js +63 -0
- package/dist/{chunk-ZLH7XSHV.js → chunk-XLHURGH3.js} +5 -5
- package/dist/{chunk-LGNAFFIL.js → chunk-XWQDNJ36.js} +4 -4
- package/dist/{chunk-ZS24JHBP.js → chunk-YBQ4F27M.js} +4 -4
- package/dist/{chunk-ZIC22PSH.js → chunk-YDT6QZZK.js} +9 -9
- package/dist/{chunk-BJS6TLLE.js → chunk-YE6B7P6Q.js} +1 -1
- package/dist/{chunk-UF7OWARN.js → chunk-YERTQ576.js} +4 -4
- package/dist/{chunk-GNK7RTO4.js → chunk-YF4DIQJR.js} +4 -4
- package/dist/{chunk-7XO74NDR.js → chunk-YHLKL4R5.js} +3 -3
- package/dist/{chunk-E6KUWZ5W.js → chunk-YHSY6CVM.js} +4 -4
- package/dist/{chunk-RYH3JFCL.js → chunk-YJGZ3AOW.js} +2 -2
- package/dist/{chunk-5DTMIKDX.js → chunk-YKK25QM4.js} +4 -4
- package/dist/{chunk-3WC2TA6C.js → chunk-YMBJHKTY.js} +3 -3
- package/dist/{chunk-TLKRYDH3.js → chunk-YTFU2B5K.js} +2 -2
- package/dist/{chunk-AH2L44TR.js → chunk-YUIITZCO.js} +3 -3
- package/dist/{chunk-XHEG2BG6.js → chunk-Z3VCVPYX.js} +1 -1
- package/dist/{chunk-MF6XGFHB.js → chunk-ZB4WVG7Q.js} +7 -3
- package/dist/{chunk-YCTBPRV4.js → chunk-ZCB5MLPW.js} +3 -3
- package/dist/{chunk-DP5CXMZW.js → chunk-ZDQ2EWWH.js} +32 -28
- package/dist/{chunk-FG2VET62.js → chunk-ZG46HLGN.js} +108 -81
- package/dist/chunk-ZGL2P56Z.js +11 -0
- package/dist/{chunk-6USMWXB3.js → chunk-ZIAPNZ6R.js} +4 -4
- package/dist/{chunk-Q7GDGSTK.js → chunk-ZLIVUVIV.js} +28 -16
- package/dist/{chunk-IRCLNPLJ.js → chunk-ZMCTTTR2.js} +4 -4
- package/dist/{chunk-STRN4XOX.js → chunk-ZYJZ624V.js} +5 -5
- package/dist/cli/index.js +2 -2
- package/dist/{core-32KM4AJG.js → core-2DRDBSL7.js} +2 -1
- package/dist/{core-OZLK2EJW.js → core-2VAPYQDA.js} +2 -1
- package/dist/{core-STATMGC7.js → core-3JGHUUZZ.js} +2 -1
- package/dist/{core-6N5ONDKG.js → core-3KMBTZ32.js} +3 -1
- package/dist/{core-J5DSGZZR.js → core-4HEB3CRT.js} +2 -1
- package/dist/{core-2JHH5LLH.js → core-4WT74WGL.js} +3 -1
- package/dist/{core-JFORSZQS.js → core-4ZUNKYYC.js} +2 -1
- package/dist/{core-RYEENVFZ.js → core-5VCTJDQM.js} +2 -1
- package/dist/{core-FRVHGKYW.js → core-AJANHLTB.js} +2 -1
- package/dist/{core-7II27MGX.js → core-AL3TDBHQ.js} +5 -1
- package/dist/{core-AAC2ESXF.js → core-ATBNPTR5.js} +2 -1
- package/dist/{core-REYW2XB3.js → core-BIEUVBZK.js} +3 -1
- package/dist/{core-COGECGZY.js → core-C2CCLPE5.js} +2 -1
- package/dist/{core-XHSGRJDP.js → core-C3VC6YEV.js} +3 -1
- package/dist/{core-V2RMMBMO.js → core-DCWAUTD4.js} +2 -1
- package/dist/{core-X4SPCV6G.js → core-GYDBZC7Q.js} +3 -1
- package/dist/{core-255NAAUA.js → core-H3RRJPQK.js} +2 -1
- package/dist/{core-BTKBKGCU.js → core-HAMHEP3M.js} +3 -1
- package/dist/{core-CELQJZJB.js → core-HRBOWCHO.js} +2 -1
- package/dist/{core-WU6DBIAM.js → core-IHG5XK6Q.js} +2 -1
- package/dist/{core-L4EGZ73S.js → core-JNA7L23P.js} +3 -1
- package/dist/{core-QYAXEGWD.js → core-JTHVZEC4.js} +2 -1
- package/dist/{core-YTTTVHUH.js → core-JXCXTDYK.js} +3 -1
- package/dist/{core-TBQAFBDU.js → core-LL2O5PBD.js} +3 -1
- package/dist/{core-HRHUGQNB.js → core-NNHCWP3B.js} +2 -1
- package/dist/{core-FLCLKSGA.js → core-OM3DGO6B.js} +2 -1
- package/dist/{core-GCYDQRFM.js → core-QH3H6ZPI.js} +2 -1
- package/dist/{core-YVWLKGAN.js → core-QKDNA6KJ.js} +2 -1
- package/dist/{core-W4NG6WON.js → core-R6OE3ORL.js} +2 -1
- package/dist/{core-NARJSEGI.js → core-RZI7LRK3.js} +5 -1
- package/dist/{core-6GE3EMCB.js → core-SXBMOZ3W.js} +2 -1
- package/dist/{core-GETUMW6I.js → core-TXADFQ3I.js} +3 -1
- package/dist/{core-SUFLQLWC.js → core-UOB4JKCT.js} +2 -1
- package/dist/{core-56KTQ7DK.js → core-WIV43MFA.js} +2 -1
- package/dist/{core-W3XIUTU7.js → core-XDPELH2B.js} +4 -1
- package/dist/{core-F7ASDBXB.js → core-YKHQUOAW.js} +2 -1
- package/dist/{core-QLJQOZGJ.js → core-ZXGKAECT.js} +4 -1
- package/dist/{dataTable-OI4CVMFJ.js → dataTable-JBVSQNJX.js} +3 -2
- package/dist/{engine-3SQQ2S5U.js → engine-QUEIPS7M.js} +44 -18
- package/dist/fixtures.js +2 -1
- package/dist/fonts.js +4 -4
- package/dist/index.js +21 -20
- package/dist/{main-TWTT3Q2R.js → main-V264O3WR.js} +8 -7
- package/dist/mcp/server.js +14 -13
- package/dist/react/bar.js +5 -1
- package/dist/react/bartable.js +3 -1
- package/dist/react/box.js +3 -1
- package/dist/react/bullet.js +4 -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 +4 -1
- package/dist/react/combo.js +4 -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 +6 -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 +4 -1
- package/dist/react/index.js +86 -84
- package/dist/react/kpi.js +3 -1
- package/dist/react/likert.js +5 -1
- package/dist/react/line.js +3 -1
- package/dist/react/mekko.js +4 -1
- package/dist/react/pareto.js +3 -1
- package/dist/react/pie.js +3 -1
- package/dist/react/prepare.js +24 -22
- package/dist/react/pvm.js +4 -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 +4 -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 +4 -1
- package/dist/react/waffle.js +3 -1
- package/dist/react/waterfall.js +4 -1
- package/dist/{resvg-ZYEZTSUO.js → resvg-M5HJ3ME3.js} +1 -1
- package/dist/{rowsModule-BULW5KS2.js → rowsModule-6UL4SSUC.js} +1 -1
- package/dist/{schema-D3ELHESU.js → schema-3FSG2YXY.js} +1 -1
- package/dist/{schema-PBMYZKBK.js → schema-5PQPGEZQ.js} +1 -1
- package/dist/{schema-SUDJBIHX.js → schema-6LUORZNN.js} +1 -1
- package/dist/{schema-LGYHJPXU.js → schema-6MDHX2E7.js} +1 -1
- package/dist/{schema-4HGZZNUL.js → schema-7HXHGBUN.js} +1 -1
- package/dist/{schema-5SVPR3EU.js → schema-ACOD4XKI.js} +1 -1
- package/dist/{schema-AM2KS6ZC.js → schema-B3I7XBP3.js} +1 -1
- package/dist/{schema-4YIYGGOJ.js → schema-CCOTGURZ.js} +1 -1
- package/dist/{schema-GYVYJEL3.js → schema-E5O7M5KM.js} +1 -1
- package/dist/{schema-PAKZIYQF.js → schema-EWATAK6Z.js} +1 -1
- package/dist/{schema-NNNG7CWG.js → schema-FEBMLOZG.js} +1 -1
- package/dist/{schema-GYTWCCNA.js → schema-FL57LIU2.js} +1 -1
- package/dist/{schema-NI5B642U.js → schema-FTRAVEX3.js} +2 -1
- package/dist/{schema-FBIEOKO2.js → schema-GSKCG2WP.js} +1 -1
- package/dist/{schema-FPDLOIA6.js → schema-HVDY6QXK.js} +1 -1
- package/dist/{schema-XKPUXAVB.js → schema-I267TVQ4.js} +1 -1
- package/dist/{schema-IYLRZNFB.js → schema-IG2WGTQO.js} +1 -1
- package/dist/{schema-YCKUQ3FF.js → schema-ITZQDKSE.js} +1 -1
- package/dist/{schema-C25ECGJL.js → schema-LCOGZNQF.js} +1 -1
- package/dist/{schema-A4U4RDKJ.js → schema-MC3CQNPR.js} +1 -1
- package/dist/{schema-FQWENOJY.js → schema-MP2QNFCN.js} +1 -1
- package/dist/{schema-CBLNGK2F.js → schema-NYCMLGOW.js} +1 -1
- package/dist/{schema-GTLGAPCU.js → schema-OML7XS7J.js} +1 -1
- package/dist/{schema-IYBZPCM4.js → schema-QAAVXXYR.js} +1 -1
- package/dist/{schema-3LRC5TOZ.js → schema-QPYFXSEQ.js} +1 -1
- package/dist/{schema-WDKBCN3V.js → schema-RJBIXN5U.js} +1 -1
- package/dist/{schema-P2JYSV32.js → schema-RW47HWVO.js} +1 -1
- package/dist/{schema-TRPPZCIR.js → schema-S7Q4YR7R.js} +1 -1
- package/dist/{schema-YVBUY7NH.js → schema-SWVWMZY3.js} +1 -1
- package/dist/{schema-LX4EXDTI.js → schema-T3RSFE2V.js} +1 -1
- package/dist/{schema-KPZVLE6A.js → schema-T4CGWZLB.js} +4 -2
- package/dist/{schema-VH4AW62Z.js → schema-TXYKZ5NT.js} +1 -1
- package/dist/{schema-5OLQ54J5.js → schema-U6CZI6XG.js} +1 -1
- package/dist/{schema-SQ2GYLMI.js → schema-XE4WY64H.js} +1 -1
- package/dist/{schema-HAMPGUH3.js → schema-YDWVXQPK.js} +1 -1
- package/dist/{schema-KBV2JB2A.js → schema-YPGXVI22.js} +1 -1
- package/dist/{schema-2ACHQTR3.js → schema-ZMOIP2BK.js} +1 -1
- package/dist/{specValidation-5J6DDCHF.js → specValidation-6LVTTHZI.js} +2 -1
- package/dist/theme.js +3 -3
- package/dist/{themeShapeRules-MOUDTDUB.js → themeShapeRules-NDEXKFC7.js} +1 -1
- package/dist/types/core/annotate.d.ts +9 -0
- package/dist/types/core/annotateFields.d.ts +36 -1
- package/dist/types/core/annotateTargets.d.ts +2 -0
- 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/data.d.ts +2 -0
- package/dist/types/core/types/options.d.ts +10 -0
- package/dist/types/core/types/scene.d.ts +11 -0
- package/dist/types/core/types/theme.d.ts +26 -2
- package/dist/types/react/hover/engine.d.ts +5 -1
- package/dist/types/react/hover/labelCard.d.ts +33 -2
- 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/types/theme.d.ts +1 -1
- package/dist/validate.js +8 -6
- package/docs/manual.md +4 -2
- package/docs/reference/bar.md +2 -2
- package/docs/reference/bullet.md +1 -1
- package/docs/reference/butterfly.md +1 -1
- package/docs/reference/column.md +2 -2
- package/docs/reference/combo.md +2 -2
- package/docs/reference/dot.md +2 -2
- package/docs/reference/fixtures.md +3 -0
- package/docs/reference/grid.md +25 -12
- package/docs/reference/heatmap.md +1 -1
- package/docs/reference/line.md +2 -2
- package/docs/reference/mekko.md +2 -2
- package/docs/reference/options.md +6 -1
- package/docs/reference/pvm.md +1 -1
- package/docs/reference/react.md +4 -2
- package/docs/reference/scatter.md +1 -1
- package/docs/reference/slope.md +2 -2
- package/docs/reference/sparkline.md +1 -0
- package/docs/reference/table.md +1 -1
- package/docs/reference/theme.md +5 -1
- package/docs/reference/variance.md +1 -1
- package/docs/reference/waterfall.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-6AIHN5S6.js +0 -89
- package/dist/chunk-CDZHNLO6.js +0 -42
- package/dist/chunk-QPWRHDLZ.js +0 -17
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
INSIDE_MIN_H,
|
|
3
3
|
INSIDE_MIN_W
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XBASXPUJ.js";
|
|
5
5
|
import {
|
|
6
6
|
warnMissingValue
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4SK4IGMK.js";
|
|
8
8
|
import {
|
|
9
9
|
annotateEngine,
|
|
10
10
|
runAnnotatePass
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KWKJYMXJ.js";
|
|
12
12
|
import {
|
|
13
13
|
chartPalette,
|
|
14
14
|
chartTheme
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YE6B7P6Q.js";
|
|
16
16
|
import {
|
|
17
17
|
labelOn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OQGSYQLE.js";
|
|
19
19
|
import {
|
|
20
20
|
structureCount
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IHZNRJEV.js";
|
|
22
22
|
import {
|
|
23
23
|
alignedLeft,
|
|
24
24
|
authoredTrackWidth,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
sideKeyGivesWay,
|
|
34
34
|
sideKeyOff,
|
|
35
35
|
warnSpreadOverflow
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
37
37
|
import {
|
|
38
38
|
prepareFractionData
|
|
39
39
|
} from "./chunk-QXHFELIA.js";
|
|
@@ -56,17 +56,17 @@ import {
|
|
|
56
56
|
solveFrame,
|
|
57
57
|
solveLabels,
|
|
58
58
|
withUnprintedClaims
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
60
60
|
import {
|
|
61
61
|
disclosureNote
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-I3UJHKCS.js";
|
|
63
63
|
import {
|
|
64
64
|
emptyIdRecord
|
|
65
65
|
} from "./chunk-LINZPU5D.js";
|
|
66
66
|
import {
|
|
67
67
|
formatterFromExample,
|
|
68
68
|
seriesRasterFormatter
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-BHO5H4AF.js";
|
|
70
70
|
import {
|
|
71
71
|
MINUS,
|
|
72
72
|
chartStrings,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
formatAutomaticPercent,
|
|
75
75
|
notApplicableGlyph,
|
|
76
76
|
smallRateDecimals
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-5OUURZ2T.js";
|
|
78
78
|
import {
|
|
79
79
|
cellMeta,
|
|
80
80
|
cellValue,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
solidMutedPlan,
|
|
100
100
|
strokeToken,
|
|
101
101
|
withSegmentSeams
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-4NGKSJBX.js";
|
|
103
103
|
import {
|
|
104
104
|
NormalizeError,
|
|
105
105
|
accessibleTitle,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
} from "./chunk-RJICOOB3.js";
|
|
112
112
|
import {
|
|
113
113
|
defaultMeasurer
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-77LQEREO.js";
|
|
115
115
|
import {
|
|
116
116
|
maxOf,
|
|
117
117
|
pushAll
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-6JXBLQJ2.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutHeatmap
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7ZYGEPY2.js";
|
|
7
7
|
import {
|
|
8
8
|
hostedLayout
|
|
9
9
|
} from "./chunk-ZQ5ILQ5A.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
fittedLabel,
|
|
17
17
|
gutterBudget,
|
|
18
18
|
stepDownFont
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GNSAYVND.js";
|
|
20
20
|
import {
|
|
21
21
|
chartTheme
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YE6B7P6Q.js";
|
|
23
23
|
import {
|
|
24
24
|
AVERAGE_ROW_ID,
|
|
25
25
|
deriveRetention,
|
|
@@ -29,14 +29,14 @@ import {
|
|
|
29
29
|
fitsRoom,
|
|
30
30
|
widthsThatFit,
|
|
31
31
|
withoutWidths
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-C2X6NYMY.js";
|
|
33
33
|
import {
|
|
34
34
|
structureCount
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-IHZNRJEV.js";
|
|
36
36
|
import {
|
|
37
37
|
missesSize,
|
|
38
38
|
tightSpacingWarning
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RPK657TE.js";
|
|
40
40
|
import {
|
|
41
41
|
fieldHeadFont,
|
|
42
42
|
fieldHeadText,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
headRule,
|
|
45
45
|
totalGround,
|
|
46
46
|
totalRule
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-IMKHDTEQ.js";
|
|
48
48
|
import {
|
|
49
49
|
tableRuleInk
|
|
50
50
|
} from "./chunk-Z2MGTKDR.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
rowSizing,
|
|
62
62
|
sideKeyGivesWay,
|
|
63
63
|
spareShare
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
65
65
|
import {
|
|
66
66
|
HOST_CLAIMS,
|
|
67
67
|
PRIORITY,
|
|
@@ -80,24 +80,24 @@ import {
|
|
|
80
80
|
textCarriesCohortUnit,
|
|
81
81
|
withAuthoredFootnotes,
|
|
82
82
|
withUnprintedClaims
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
84
84
|
import {
|
|
85
85
|
disclosureNote,
|
|
86
86
|
keepShownNotes,
|
|
87
87
|
staticFrame
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-I3UJHKCS.js";
|
|
89
89
|
import {
|
|
90
90
|
defaultSetSpec,
|
|
91
91
|
formatWithSpec,
|
|
92
92
|
formatterFromExample,
|
|
93
93
|
ruleFormatter
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-BHO5H4AF.js";
|
|
95
95
|
import {
|
|
96
96
|
chartStrings,
|
|
97
97
|
formatAutomaticNumber,
|
|
98
98
|
formatExactNumber,
|
|
99
99
|
numberRange
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-5OUURZ2T.js";
|
|
101
101
|
import {
|
|
102
102
|
canvasMargin,
|
|
103
103
|
clamp,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
strokeToken,
|
|
113
113
|
tableEmphasis,
|
|
114
114
|
textScaleOf
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-4NGKSJBX.js";
|
|
116
116
|
import {
|
|
117
117
|
NormalizeError,
|
|
118
118
|
TARGET_SIZE,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
} from "./chunk-RJICOOB3.js";
|
|
123
123
|
import {
|
|
124
124
|
defaultMeasurer
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-77LQEREO.js";
|
|
126
126
|
import {
|
|
127
127
|
maxOf,
|
|
128
128
|
minOf,
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RULE_SET,
|
|
3
|
+
defaultSetSpec,
|
|
4
|
+
formatWithSpec,
|
|
5
|
+
formatterFromExample
|
|
6
|
+
} from "./chunk-BHO5H4AF.js";
|
|
7
|
+
import {
|
|
8
|
+
pushAll
|
|
9
|
+
} from "./chunk-WYJEOMNY.js";
|
|
10
|
+
|
|
11
|
+
// src/core/annotateFields.ts
|
|
12
|
+
function categoryBandFromCenters(ids, plot, centerOf, axis) {
|
|
13
|
+
return (categoryId) => {
|
|
14
|
+
let ci = ids.indexOf(categoryId);
|
|
15
|
+
if (ci < 0) return null;
|
|
16
|
+
if (axis === "x") {
|
|
17
|
+
let left = ci === 0 ? plot.x : (centerOf(ci - 1) + centerOf(ci)) / 2, right = ci === ids.length - 1 ? plot.x + plot.w : (centerOf(ci) + centerOf(ci + 1)) / 2;
|
|
18
|
+
return { x: left, w: right - left };
|
|
19
|
+
}
|
|
20
|
+
let top = ci === 0 ? plot.y : (centerOf(ci - 1) + centerOf(ci)) / 2, bottom = ci === ids.length - 1 ? plot.y + plot.h : (centerOf(ci) + centerOf(ci + 1)) / 2;
|
|
21
|
+
return { y: top, h: bottom - top };
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function categoryTargetFields(ids, plot, centerOf, axis) {
|
|
25
|
+
return {
|
|
26
|
+
categoryIds: ids,
|
|
27
|
+
resolveCategoryBand: categoryBandFromCenters(ids, plot, centerOf, axis),
|
|
28
|
+
bandPlot: plot
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function spliceAnnotationNodes(nodes, annotationNodes, owners) {
|
|
32
|
+
let behind = (node) => (node.part === "band" || node.part === "attainment") && (owners === void 0 || owners.has(node.owner?.annotationId ?? "")), front = annotationNodes.filter(behind), rest = nodes.splice(0);
|
|
33
|
+
pushAll(nodes, front), pushAll(nodes, rest), pushAll(nodes, annotationNodes.filter((node) => !behind(node)));
|
|
34
|
+
}
|
|
35
|
+
function isCategoryAlongY(band) {
|
|
36
|
+
return !("x" in band);
|
|
37
|
+
}
|
|
38
|
+
function valueLineHasTargetExtras(ann) {
|
|
39
|
+
return ann.kind !== "valueLine" ? !1 : ann.tolerance !== void 0 || ann.attainment !== void 0;
|
|
40
|
+
}
|
|
41
|
+
function valueLineNeedsSharedPass(ann) {
|
|
42
|
+
return ann.kind !== "valueLine" ? !1 : valueLineHasTargetExtras(ann) || ann.from !== void 0 || ann.to !== void 0 || ann.seriesId !== void 0;
|
|
43
|
+
}
|
|
44
|
+
function finitePair(low, high) {
|
|
45
|
+
return typeof low != "number" || typeof high != "number" || !Number.isFinite(low) || !Number.isFinite(high) || low === high ? null : { low, high };
|
|
46
|
+
}
|
|
47
|
+
function toleranceBounds(value, tolerance) {
|
|
48
|
+
if (typeof tolerance == "number")
|
|
49
|
+
return !Number.isFinite(tolerance) || tolerance <= 0 ? "tolerance must be a positive finite number" : { low: value - tolerance, high: value + tolerance };
|
|
50
|
+
let pair = finitePair(tolerance.low, tolerance.high);
|
|
51
|
+
return pair || "tolerance bounds need finite, unequal 'low' and 'high'";
|
|
52
|
+
}
|
|
53
|
+
function bandBoundText(input, v) {
|
|
54
|
+
return input.format ? formatterFromExample(input.format, input.locale)(v) : formatWithSpec(v, { ...input.levelSpec?.[RULE_SET]?.set.kind === "number" ? input.levelSpec : defaultSetSpec([v], input.locale), prefix: "", suffix: "" });
|
|
55
|
+
}
|
|
56
|
+
var TOLERANCE_FILL = { token: "others", tint: 0.45 };
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
categoryBandFromCenters,
|
|
60
|
+
categoryTargetFields,
|
|
61
|
+
spliceAnnotationNodes,
|
|
62
|
+
isCategoryAlongY,
|
|
63
|
+
valueLineHasTargetExtras,
|
|
64
|
+
valueLineNeedsSharedPass,
|
|
65
|
+
finitePair,
|
|
66
|
+
toleranceBounds,
|
|
67
|
+
bandBoundText,
|
|
68
|
+
TOLERANCE_FILL
|
|
69
|
+
};
|
|
@@ -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
|
treemapCore
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CTRPRU4Y.js";
|
|
14
14
|
import {
|
|
15
15
|
registeredType
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D2I2BUR6.js";
|
|
17
17
|
|
|
18
18
|
// src/react/charts/treemap.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 } }, legend: { position: 0, order: 0 }, valueAxis: { show: 0, min: 0, max: 0, includeZero: 0, percent: 0, gridlines: 0 }, scaleGroup: { y: 0, id: 0 }, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, variant: 0, order: 0, cellValue: 0, total: 0 } }), TreemapChart = createChartComponent(registeredType(treemapCore), checkOptionKeys);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
chartTypeAliases,
|
|
3
|
+
schemaLoaders
|
|
4
|
+
} from "./chunk-3QJVBKRX.js";
|
|
5
|
+
import {
|
|
6
|
+
registeredType
|
|
7
|
+
} from "./chunk-D2I2BUR6.js";
|
|
8
|
+
import {
|
|
9
|
+
caseInsensitiveValue,
|
|
10
|
+
getChart,
|
|
11
|
+
getChartSchemas,
|
|
12
|
+
registerChartSchemas
|
|
13
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
14
|
+
import {
|
|
15
|
+
registerChartCoreLoader
|
|
16
|
+
} from "./chunk-6RRK3VFP.js";
|
|
17
|
+
|
|
18
|
+
// src/react/coreLoaders.ts
|
|
19
|
+
var coreLoaders = {
|
|
20
|
+
bar: () => import("./core-XDPELH2B.js").then((module) => module.barCore),
|
|
21
|
+
bartable: () => import("./core-4ZUNKYYC.js").then((module) => module.bartableCore),
|
|
22
|
+
box: () => import("./core-QKDNA6KJ.js").then((module) => module.boxCore),
|
|
23
|
+
bullet: () => import("./core-C3VC6YEV.js").then((module) => module.bulletCore),
|
|
24
|
+
butterfly: () => import("./core-NNHCWP3B.js").then((module) => module.butterflyCore),
|
|
25
|
+
choropleth: () => import("./core-2DRDBSL7.js").then((module) => module.choroplethCore),
|
|
26
|
+
cohort: () => import("./core-3JGHUUZZ.js").then((module) => module.cohortCore),
|
|
27
|
+
column: () => import("./core-LL2O5PBD.js").then((module) => module.columnCore),
|
|
28
|
+
combo: () => import("./core-BIEUVBZK.js").then((module) => module.comboCore),
|
|
29
|
+
creative: () => import("./core-OM3DGO6B.js").then((module) => module.creativeCore),
|
|
30
|
+
diagram: () => import("./core-H3RRJPQK.js").then((module) => module.diagramCore),
|
|
31
|
+
dimswitch: () => import("./core-WIV43MFA.js").then((module) => module.dimswitchCore),
|
|
32
|
+
dot: () => import("./core-RZI7LRK3.js").then((module) => module.dotCore),
|
|
33
|
+
funnel: () => import("./core-IHG5XK6Q.js").then((module) => module.funnelCore),
|
|
34
|
+
gantt: () => import("./core-5VCTJDQM.js").then((module) => module.ganttCore),
|
|
35
|
+
grid: () => import("./core-AL3TDBHQ.js").then((module) => module.gridCore),
|
|
36
|
+
heatmap: () => import("./core-4HEB3CRT.js").then((module) => module.heatmapCore),
|
|
37
|
+
histogram: () => import("./core-JXCXTDYK.js").then((module) => module.histogramCore),
|
|
38
|
+
kpi: () => import("./core-2VAPYQDA.js").then((module) => module.kpiCore),
|
|
39
|
+
likert: () => import("./core-ZXGKAECT.js").then((module) => module.likertCore),
|
|
40
|
+
line: () => import("./core-DCWAUTD4.js").then((module) => module.lineCore),
|
|
41
|
+
mekko: () => import("./core-3KMBTZ32.js").then((module) => module.mekkoCore),
|
|
42
|
+
pareto: () => import("./core-TXADFQ3I.js").then((module) => module.paretoCore),
|
|
43
|
+
pie: () => import("./core-HRBOWCHO.js").then((module) => module.pieCore),
|
|
44
|
+
pvm: () => import("./core-HAMHEP3M.js").then((module) => module.pvmCore),
|
|
45
|
+
pyramid: () => import("./core-AJANHLTB.js").then((module) => module.pyramidCore),
|
|
46
|
+
sankey: () => import("./core-JTHVZEC4.js").then((module) => module.sankeyCore),
|
|
47
|
+
scatter: () => import("./core-QH3H6ZPI.js").then((module) => module.scatterCore),
|
|
48
|
+
slope: () => import("./core-JNA7L23P.js").then((module) => module.slopeCore),
|
|
49
|
+
sparkline: () => import("./core-C2CCLPE5.js").then((module) => module.sparklineCore),
|
|
50
|
+
status: () => import("./core-SXBMOZ3W.js").then((module) => module.statusCore),
|
|
51
|
+
table: () => import("./core-ATBNPTR5.js").then((module) => module.tableCore),
|
|
52
|
+
tilemap: () => import("./core-R6OE3ORL.js").then((module) => module.tilemapCore),
|
|
53
|
+
treemap: () => import("./core-UOB4JKCT.js").then((module) => module.treemapCore),
|
|
54
|
+
variance: () => import("./core-GYDBZC7Q.js").then((module) => module.varianceCore),
|
|
55
|
+
waffle: () => import("./core-YKHQUOAW.js").then((module) => module.waffleCore),
|
|
56
|
+
waterfall: () => import("./core-4WT74WGL.js").then((module) => module.waterfallCore)
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// src/react/loadChartTypes.ts
|
|
60
|
+
var aliasOwners = /* @__PURE__ */ new Map();
|
|
61
|
+
for (let [type, aliases] of Object.entries(chartTypeAliases))
|
|
62
|
+
for (let alias of aliases) aliasOwners.set(alias, type);
|
|
63
|
+
function knownChartType(name) {
|
|
64
|
+
return name = caseInsensitiveValue(name, [...Object.keys(coreLoaders), ...aliasOwners.keys()]) ?? name, Object.hasOwn(coreLoaders, name) ? name : aliasOwners.get(name);
|
|
65
|
+
}
|
|
66
|
+
async function loadChartTypes(names, parts) {
|
|
67
|
+
let types = [...new Set(names.map(knownChartType).filter((type) => type !== void 0))];
|
|
68
|
+
await Promise.all(types.flatMap((type) => [
|
|
69
|
+
parts.schemas && getChartSchemas(type) === void 0 ? schemaLoaders[type]().then((schemas) => {
|
|
70
|
+
registerChartSchemas(schemas, chartTypeAliases[type]);
|
|
71
|
+
}) : void 0,
|
|
72
|
+
parts.cores && getChart(type) === void 0 ? coreLoaders[type]().then((core) => {
|
|
73
|
+
registeredType(core);
|
|
74
|
+
}) : void 0
|
|
75
|
+
]));
|
|
76
|
+
}
|
|
77
|
+
registerChartCoreLoader({
|
|
78
|
+
knows: (type) => knownChartType(type) !== void 0,
|
|
79
|
+
load: (type) => loadChartTypes([type], { schemas: !1, cores: !0 })
|
|
80
|
+
});
|
|
81
|
+
function registeredTypeWithPanelCores(core) {
|
|
82
|
+
return registeredType(core);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
knownChartType,
|
|
87
|
+
loadChartTypes,
|
|
88
|
+
registeredTypeWithPanelCores
|
|
89
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
TILED_BANDS,
|
|
6
6
|
layoutColumn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I37SEVQ4.js";
|
|
8
8
|
import {
|
|
9
9
|
iqr,
|
|
10
10
|
quantileType7,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./chunk-VXZFQKBJ.js";
|
|
13
13
|
import {
|
|
14
14
|
labelOn
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OQGSYQLE.js";
|
|
16
16
|
import {
|
|
17
17
|
AUTO_LEGEND,
|
|
18
18
|
axisTitleAllowed,
|
|
19
19
|
chartSizing,
|
|
20
20
|
isAutomaticLegend
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
22
22
|
import {
|
|
23
23
|
HOST_CLAIMS,
|
|
24
24
|
PRIORITY,
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
solveLabels,
|
|
31
31
|
withAuthoredFootnotes,
|
|
32
32
|
withUnprintedClaims
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
34
34
|
import {
|
|
35
35
|
disclosureNote,
|
|
36
36
|
keepShownNotes
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-I3UJHKCS.js";
|
|
38
38
|
import {
|
|
39
39
|
MAGNITUDE_DIVISOR,
|
|
40
40
|
RULE_SET,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
roundedNumber,
|
|
49
49
|
ruleFormatter,
|
|
50
50
|
withChartMarks
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BHO5H4AF.js";
|
|
52
52
|
import {
|
|
53
53
|
MINUS,
|
|
54
54
|
chartNumberMarks,
|
|
@@ -57,21 +57,22 @@ import {
|
|
|
57
57
|
nonzeroDecimals,
|
|
58
58
|
shareSetFormatter,
|
|
59
59
|
stringFields
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-5OUURZ2T.js";
|
|
61
61
|
import {
|
|
62
62
|
createOccupiedIndex,
|
|
63
63
|
panelTypeClass,
|
|
64
64
|
resolveTheme,
|
|
65
65
|
strokeToken,
|
|
66
66
|
themeForWidth
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-4NGKSJBX.js";
|
|
68
68
|
import {
|
|
69
69
|
NormalizeError,
|
|
70
70
|
resolveSize
|
|
71
71
|
} from "./chunk-RJICOOB3.js";
|
|
72
72
|
import {
|
|
73
|
-
defaultMeasurer
|
|
74
|
-
|
|
73
|
+
defaultMeasurer,
|
|
74
|
+
isCachedTextMeasurer
|
|
75
|
+
} from "./chunk-77LQEREO.js";
|
|
75
76
|
import {
|
|
76
77
|
maxOf,
|
|
77
78
|
pushAll
|
|
@@ -582,7 +583,7 @@ function layoutHistogram(data, options = {}) {
|
|
|
582
583
|
let tailBins = ((geometry) => {
|
|
583
584
|
let bars2 = new Map(geometry.marks.bars.map((bar) => [bar.categoryId, bar]));
|
|
584
585
|
return counts.flatMap((count, index) => index !== openIndex && count > 0 && (bars2.get(binId(index))?.rect.h ?? 1) < 1 ? [index] : []);
|
|
585
|
-
})(column), countFmt = ruleFormatter(counts, options.locale?.language, {}), tail = [];
|
|
586
|
+
})(column), countFmt = ruleFormatter(counts, options.locale?.language, {}), beforeTail = column, tail = [];
|
|
586
587
|
if (tailBins.length > 0 && options.labels !== !1 && (tail = tailBins.slice(0, 3).map((index) => ({
|
|
587
588
|
kind: "callout",
|
|
588
589
|
id: `tail-${binId(index)}`,
|
|
@@ -594,7 +595,7 @@ function layoutHistogram(data, options = {}) {
|
|
|
594
595
|
if (kept.length < tail.length) {
|
|
595
596
|
tail = kept;
|
|
596
597
|
let { annotations: _dropped, ...rest } = columnOptions;
|
|
597
|
-
columnOptions = kept.length > 0 ? { ...rest, annotations: kept } : rest, column = layoutBins(delegateData, columnOptions);
|
|
598
|
+
columnOptions = kept.length > 0 ? { ...rest, annotations: kept } : rest, column = kept.length === 0 && options.valueAxis?.show !== !1 && isCachedTextMeasurer(options.measure ?? defaultMeasurer) ? beforeTail : layoutBins(delegateData, columnOptions);
|
|
598
599
|
}
|
|
599
600
|
}
|
|
600
601
|
let drawnCounts = (geometry) => geometry.labels.filter((label) => label.kind === "point" && !label.hidden).length;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
classFloor,
|
|
4
4
|
memoLayout,
|
|
5
5
|
prepareTableExecutor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZG46HLGN.js";
|
|
7
7
|
import {
|
|
8
8
|
hostedLayout
|
|
9
9
|
} from "./chunk-ZQ5ILQ5A.js";
|
|
@@ -17,21 +17,21 @@ import {
|
|
|
17
17
|
dimswitchRowId,
|
|
18
18
|
hostPeriods,
|
|
19
19
|
partialNoteWarning
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YDT6QZZK.js";
|
|
21
21
|
import {
|
|
22
22
|
withUnprintedCells
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QMZPQU65.js";
|
|
24
24
|
import {
|
|
25
25
|
prepareTableData,
|
|
26
26
|
resolvePreparedTable,
|
|
27
27
|
resolveTable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TGTKAIDU.js";
|
|
29
29
|
import {
|
|
30
30
|
checkedTightAdvice
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RPK657TE.js";
|
|
32
32
|
import {
|
|
33
33
|
ENGINE_NOTES
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ELFF5YO7.js";
|
|
35
35
|
import {
|
|
36
36
|
CARD_MIN_WIDTH,
|
|
37
37
|
PLAN_ONLY,
|
|
@@ -42,11 +42,11 @@ import {
|
|
|
42
42
|
isWidthProbe,
|
|
43
43
|
layoutKey,
|
|
44
44
|
ownPlanInput
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
46
46
|
import {
|
|
47
47
|
engineNote,
|
|
48
48
|
engineNoteMeta
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-I3UJHKCS.js";
|
|
50
50
|
import {
|
|
51
51
|
TARGET_SIZE
|
|
52
52
|
} from "./chunk-RJICOOB3.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PRIORITY
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
4
4
|
import {
|
|
5
5
|
readerFloorPx,
|
|
6
6
|
solidMutedPlan,
|
|
7
7
|
strokeToken
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4NGKSJBX.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_TARGET
|
|
11
11
|
} from "./chunk-RJICOOB3.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutColumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I37SEVQ4.js";
|
|
4
4
|
import {
|
|
5
5
|
barChromeFloor,
|
|
6
6
|
layoutBar
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KU5WGRQJ.js";
|
|
8
8
|
import {
|
|
9
9
|
prepareRangeData
|
|
10
10
|
} from "./chunk-ZPQ3VOAE.js";
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
} from "./chunk-4PKUS5MG.js";
|
|
15
15
|
import {
|
|
16
16
|
withEventsDescribed
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6QQPQ2TX.js";
|
|
18
18
|
import {
|
|
19
19
|
SIZE_TOLERANCE,
|
|
20
20
|
calendarCategories,
|
|
21
21
|
chartSizing,
|
|
22
22
|
fitsSize
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
24
24
|
import {
|
|
25
25
|
prepareFractionData
|
|
26
26
|
} from "./chunk-QXHFELIA.js";
|
|
27
27
|
import {
|
|
28
28
|
authoredStrings
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5OUURZ2T.js";
|
|
30
30
|
import {
|
|
31
31
|
panelTypeClass,
|
|
32
32
|
resolveTheme,
|
|
33
33
|
textScaleOf
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4NGKSJBX.js";
|
|
35
35
|
import {
|
|
36
36
|
TARGET_SIZE
|
|
37
37
|
} from "./chunk-RJICOOB3.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveChartRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K3METEEY.js";
|
|
4
4
|
import {
|
|
5
5
|
themeForDensity
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
7
7
|
|
|
8
8
|
// src/react/themeRequest.ts
|
|
9
9
|
function resolveThemeRequest(request, settings) {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
chartString
|
|
3
|
+
} from "./chunk-ZB4WVG7Q.js";
|
|
4
|
+
import {
|
|
5
|
+
TOLERANCE_FILL,
|
|
6
|
+
bandBoundText,
|
|
7
|
+
toleranceBounds,
|
|
8
|
+
valueLineHasTargetExtras
|
|
9
|
+
} from "./chunk-WM65Q3AL.js";
|
|
10
|
+
import {
|
|
11
|
+
defaultAnnotationId
|
|
12
|
+
} from "./chunk-PPOUKS24.js";
|
|
13
|
+
import {
|
|
14
|
+
localeStrings
|
|
15
|
+
} from "./chunk-5OUURZ2T.js";
|
|
16
|
+
import {
|
|
17
|
+
maxOf,
|
|
18
|
+
minOf
|
|
19
|
+
} from "./chunk-WYJEOMNY.js";
|
|
20
|
+
|
|
21
|
+
// src/core/valueLineDomain.ts
|
|
22
|
+
function valueLineExtent(annotations, axis = "primary") {
|
|
23
|
+
let values = (annotations ?? []).flatMap((a) => a.kind === "valueLine" && Number.isFinite(a.value) && (a.axis ?? "primary") === axis && a.seriesId === void 0 && (a.from === void 0 && a.to === void 0 || valueLineHasTargetExtras(a)) ? [a.value] : []);
|
|
24
|
+
return values.length ? { lo: minOf(values), hi: maxOf(values) } : null;
|
|
25
|
+
}
|
|
26
|
+
function drawnToleranceBands(annotations, meanValue, categoryIds) {
|
|
27
|
+
return toleranceBands(annotations, meanValue, categoryIds).map(({ lo, hi }) => ({ lo, hi }));
|
|
28
|
+
}
|
|
29
|
+
function toleranceBands(annotations, meanValue, categoryIds) {
|
|
30
|
+
return (annotations ?? []).flatMap((a, index) => {
|
|
31
|
+
if (a.kind !== "valueLine" || a.tolerance === void 0 || (a.axis ?? "primary") !== "primary" || a.seriesId !== void 0) return [];
|
|
32
|
+
let spanned = a.from !== void 0 || a.to !== void 0, value = typeof a.value == "number" ? a.value : spanned ? void 0 : meanValue;
|
|
33
|
+
if (value === void 0 || !Number.isFinite(value)) return [];
|
|
34
|
+
if (spanned && !(a.from !== void 0 && a.to !== void 0 && categoryIds.includes(a.from) && categoryIds.includes(a.to))) return [];
|
|
35
|
+
let band = toleranceBounds(value, a.tolerance);
|
|
36
|
+
return typeof band == "string" ? [] : [{ lo: Math.min(band.low, band.high), hi: Math.max(band.low, band.high), line: a, index }];
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
var toleranceKeyId = (annotationId) => `__tolerance:${annotationId}`;
|
|
40
|
+
function toleranceLegendKeys(annotations, meanValue, categoryIds, text) {
|
|
41
|
+
let words = { locale: text.locale, strings: text.strings };
|
|
42
|
+
return toleranceBands(annotations, meanValue, categoryIds).map(({ lo, hi, line, index }) => {
|
|
43
|
+
let mean = line.value === void 0 || line.value === "mean", name = typeof line.label == "string" ? line.label.split("${value}").map((part) => part.replace(/\s+/g, " ").replace(/^[\s:=()–-]+|[\s:=()–-]+$/g, "")).find(Boolean) ?? "" : line.label === void 0 && mean ? text.strings?.average ?? localeStrings(text.locale).average : "", range = chartString(words, "valueLineRange", { v1: bandBoundText(text, lo), v2: bandBoundText(text, hi) });
|
|
44
|
+
return {
|
|
45
|
+
id: toleranceKeyId(defaultAnnotationId(line, index)),
|
|
46
|
+
label: name ? chartString(words, "valueLineRangeKey", { name, range }) : chartString(words, "valueLineRangeKeyPlain", { range }),
|
|
47
|
+
paint: TOLERANCE_FILL,
|
|
48
|
+
stroke: { token: "axis" },
|
|
49
|
+
width: 0.75
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function toleranceKeyed(annotations, drawn) {
|
|
54
|
+
let ids = new Set((drawn ?? []).map((item) => item.id));
|
|
55
|
+
return new Set((annotations ?? []).flatMap((a, index) => ids.has(toleranceKeyId(defaultAnnotationId(a, index))) ? [defaultAnnotationId(a, index)] : []));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
valueLineExtent,
|
|
60
|
+
drawnToleranceBands,
|
|
61
|
+
toleranceLegendKeys,
|
|
62
|
+
toleranceKeyed
|
|
63
|
+
};
|