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
|
@@ -6,24 +6,25 @@ import {
|
|
|
6
6
|
formattedValueText,
|
|
7
7
|
ownerContains,
|
|
8
8
|
signedPercentText
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-476R7YF4.js";
|
|
10
10
|
import {
|
|
11
11
|
eventHeading,
|
|
12
12
|
eventReading
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6QQPQ2TX.js";
|
|
14
14
|
import {
|
|
15
15
|
composedTextRole,
|
|
16
16
|
fitText,
|
|
17
17
|
lineBox
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
19
19
|
import {
|
|
20
20
|
parseFormatExample,
|
|
21
|
-
roundedNumber
|
|
22
|
-
|
|
21
|
+
roundedNumber,
|
|
22
|
+
unitMagnitude
|
|
23
|
+
} from "./chunk-BHO5H4AF.js";
|
|
23
24
|
import {
|
|
24
25
|
chartStrings,
|
|
25
26
|
joinSentences
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5OUURZ2T.js";
|
|
27
28
|
import {
|
|
28
29
|
boxGap,
|
|
29
30
|
panelTypeClass,
|
|
@@ -32,16 +33,16 @@ import {
|
|
|
32
33
|
resolveSurface,
|
|
33
34
|
resolveTheme,
|
|
34
35
|
strokeToken
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4NGKSJBX.js";
|
|
36
37
|
import {
|
|
37
38
|
mixColors,
|
|
38
39
|
parseColor,
|
|
39
40
|
relativeLuminance
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6RRK3VFP.js";
|
|
41
42
|
import {
|
|
42
43
|
defaultMeasurer,
|
|
43
44
|
graphemes
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-77LQEREO.js";
|
|
45
46
|
import {
|
|
46
47
|
maxOf,
|
|
47
48
|
pushAll
|
|
@@ -133,6 +134,25 @@ function fieldRow(field, locale) {
|
|
|
133
134
|
let label = `${field.label}:`, value = displayedValueText(field.value, locale);
|
|
134
135
|
return { kind: "field", label, value, text: `${label} ${value}`, values: [safeValue(field.value, locale)] };
|
|
135
136
|
}
|
|
137
|
+
var UNIT_WORD = /(?<!\p{L})\p{L}\p{Ll}{3,}(?!\p{L})/u;
|
|
138
|
+
function unitPhrase(unit) {
|
|
139
|
+
let text = unit?.trim();
|
|
140
|
+
return !!text && !/^\p{Sc}/u.test(text) && unitMagnitude(text) === void 0 && !SCALE_FIRST.test(text) && UNIT_WORD.test(text);
|
|
141
|
+
}
|
|
142
|
+
var SCALE_FIRST = /^(?:M|(?:k|mn|bn?|tn|tsd|mio|mrd|bio|thousands?|tausend|millions?|millionen|billions?|billionen|trillions?|milliard(?:en?|s)?)\.?)(?:\s|$)/iu;
|
|
143
|
+
function valueName(record, locale) {
|
|
144
|
+
let value = displayedValueText(record.value, locale);
|
|
145
|
+
if (record.valueLabel) return { heading: record.label, name: record.valueLabel, value };
|
|
146
|
+
let unit = record.value.unit?.trim();
|
|
147
|
+
if (unit && unitPhrase(unit) && value.endsWith(unit)) {
|
|
148
|
+
let number = value.slice(0, -unit.length).replace(/[\s\u00a0\u202f]+$/u, "");
|
|
149
|
+
if (number) return { heading: record.label, name: unit.replace(/^\p{L}/u, (letter) => letter.toUpperCase()), value: number };
|
|
150
|
+
}
|
|
151
|
+
return record.seriesLabel ? { heading: record.categoryLabel ?? record.label, name: record.seriesLabel, value } : { heading: record.label, value };
|
|
152
|
+
}
|
|
153
|
+
function unnamedText(row, record, locale) {
|
|
154
|
+
return row.kind !== "value" || record.event || record.cardFields ? row.text : `${record.valueLabel ? `${record.valueLabel}: ` : ""}${displayedValueText(record.value, locale)}`;
|
|
155
|
+
}
|
|
136
156
|
function cardContent(rows) {
|
|
137
157
|
return { rows, accessibleText: joinSentences(rows.map((row) => row.text)) };
|
|
138
158
|
}
|
|
@@ -140,13 +160,13 @@ function labelCardContent(record, locale, options) {
|
|
|
140
160
|
if (record.event) return eventCardContent(record.event);
|
|
141
161
|
if (record.cardFields)
|
|
142
162
|
return cardContent(record.fields.filter((field) => record.cardFields.includes(field.key)).map((field) => fieldRow(field, locale)));
|
|
143
|
-
let rows = [
|
|
144
|
-
{ kind: "title", text:
|
|
163
|
+
let named = valueName(record, locale), rows = [
|
|
164
|
+
{ kind: "title", text: named.heading },
|
|
145
165
|
{
|
|
146
166
|
kind: "value",
|
|
147
|
-
text: `${
|
|
148
|
-
label:
|
|
149
|
-
value:
|
|
167
|
+
text: `${named.name ? `${named.name}: ` : ""}${named.value}`,
|
|
168
|
+
label: named.name ? `${named.name}:` : "",
|
|
169
|
+
value: named.value,
|
|
150
170
|
pointed: !0,
|
|
151
171
|
values: [safeValue(record.value, locale)]
|
|
152
172
|
}
|
|
@@ -211,12 +231,12 @@ function sharedLabelCardContent(records, locale, options, scene = [], cache) {
|
|
|
211
231
|
{ ...record, fields: record.fields.filter((field) => field.key !== "date" || headingNamesDate(record, field.value)) },
|
|
212
232
|
locale,
|
|
213
233
|
options
|
|
214
|
-
).rows.slice(1), value = content[0];
|
|
234
|
+
).rows.slice(1), value = content[0] && unnamedText(content[0], record, locale);
|
|
215
235
|
member = value ? [{
|
|
216
|
-
...
|
|
217
|
-
label: name
|
|
218
|
-
value
|
|
219
|
-
text: `${name}
|
|
236
|
+
...content[0],
|
|
237
|
+
label: `${name}:`,
|
|
238
|
+
value,
|
|
239
|
+
text: `${name}: ${value}`,
|
|
220
240
|
series: !0,
|
|
221
241
|
swatch: seriesSwatch(record, scene)
|
|
222
242
|
}, ...content.slice(1)] : [], cache?.set(record, member);
|
|
@@ -230,7 +250,7 @@ function describedWithCard(description, reading) {
|
|
|
230
250
|
}
|
|
231
251
|
function shouldShowTableLabelCard(record, displayed, locale) {
|
|
232
252
|
let normalize = (text) => text.replace(/\s+/g, " ").trim(), rows = labelCardContent(record, locale).rows, { value } = record;
|
|
233
|
-
return rows.length > 2 || displayed === void 0 ? !0 : value.state === "value" && typeof value.raw == "number" && Number.isFinite(value.raw) && value.format && roundedNumber(value.raw, parseFormatExample(value.format)) === value.raw ? !1 : normalize(rows[1]
|
|
253
|
+
return rows.length > 2 || displayed === void 0 ? !0 : value.state === "value" && typeof value.raw == "number" && Number.isFinite(value.raw) && value.format && roundedNumber(value.raw, parseFormatExample(value.format)) === value.raw ? !1 : normalize(rows[1] ? unnamedText(rows[1], record, locale) : "") !== normalize(displayed);
|
|
234
254
|
}
|
|
235
255
|
function rowFont(row, theme) {
|
|
236
256
|
return cardFont(
|
|
@@ -239,7 +259,59 @@ function rowFont(row, theme) {
|
|
|
239
259
|
row.kind === "title" || row.pointed || row.kind === "value" && row.value === void 0 ? 600 : 400
|
|
240
260
|
);
|
|
241
261
|
}
|
|
242
|
-
var SOLVER_CLAIMS = /* @__PURE__ */ new Set(["funnel-row-lane"]), OUTSIDE_CHART_WEIGHT = 1, TEXT_GAP = 4, FRAME_INSET = 8, CLEAR_REACH = 48;
|
|
262
|
+
var SOLVER_CLAIMS = /* @__PURE__ */ new Set(["funnel-row-lane"]), OUTSIDE_CHART_WEIGHT = 1, TEXT_GAP = 4, FRAME_INSET = 8, CLEAR_REACH = 48, PATH_PAD = 8;
|
|
263
|
+
function pointsHull(points) {
|
|
264
|
+
let sorted = [...points].sort((a, b) => a.x - b.x || a.y - b.y).filter((point, index, all) => index === 0 || point.x !== all[index - 1].x || point.y !== all[index - 1].y);
|
|
265
|
+
if (sorted.length < 3) return sorted;
|
|
266
|
+
let cross = (o, a, b) => (a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x), half = (list) => list.reduce((hull, point) => {
|
|
267
|
+
for (; hull.length >= 2 && cross(hull[hull.length - 2], hull[hull.length - 1], point) <= 0; ) hull.pop();
|
|
268
|
+
return hull.push(point), hull;
|
|
269
|
+
}, []), lower = half(sorted), upper = half([...sorted].reverse());
|
|
270
|
+
return [...lower.slice(0, -1), ...upper.slice(0, -1)];
|
|
271
|
+
}
|
|
272
|
+
function nearPath(path, point, pad = PATH_PAD) {
|
|
273
|
+
return path.length ? path.length >= 3 && insideHull(path, point) ? !0 : path.some((a, index) => segmentDistance(a, path[(index + 1) % path.length], point) <= pad) : !1;
|
|
274
|
+
}
|
|
275
|
+
function meetsPath(path, rect, pad = PATH_PAD) {
|
|
276
|
+
if (!path.length) return !1;
|
|
277
|
+
let box = { x: rect.x - pad, y: rect.y - pad, w: rect.w + 2 * pad, h: rect.h + 2 * pad };
|
|
278
|
+
if (path.some((point) => rectContains(box, { ...point, w: 0, h: 0 }, 0))) return !0;
|
|
279
|
+
let corners = [{ x: box.x, y: box.y }, { x: box.x + box.w, y: box.y }, { x: box.x + box.w, y: box.y + box.h }, { x: box.x, y: box.y + box.h }];
|
|
280
|
+
return path.length >= 3 && corners.some((corner) => insideHull(path, corner)) ? !0 : path.some((a, index) => {
|
|
281
|
+
let b = path[(index + 1) % path.length];
|
|
282
|
+
return corners.some((c, side) => segmentsCross(a, b, c, corners[(side + 1) % 4]));
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
function insideHull(hull, point) {
|
|
286
|
+
let sides = hull.map((a, index) => {
|
|
287
|
+
let b = hull[(index + 1) % hull.length];
|
|
288
|
+
return (b.x - a.x) * (point.y - a.y) - (b.y - a.y) * (point.x - a.x);
|
|
289
|
+
});
|
|
290
|
+
return sides.every((side) => side >= 0) || sides.every((side) => side <= 0);
|
|
291
|
+
}
|
|
292
|
+
function segmentDistance(a, b, point) {
|
|
293
|
+
let dx = b.x - a.x, dy = b.y - a.y, t = dx || dy ? Math.max(0, Math.min(1, ((point.x - a.x) * dx + (point.y - a.y) * dy) / (dx * dx + dy * dy))) : 0;
|
|
294
|
+
return Math.hypot(point.x - (a.x + t * dx), point.y - (a.y + t * dy));
|
|
295
|
+
}
|
|
296
|
+
function segmentsCross(a, b, c, d) {
|
|
297
|
+
let side = (p, q, r) => Math.sign((q.x - p.x) * (r.y - p.y) - (q.y - p.y) * (r.x - p.x));
|
|
298
|
+
return side(a, b, c) !== side(a, b, d) && side(c, d, a) !== side(c, d, b);
|
|
299
|
+
}
|
|
300
|
+
function pathSlots(path, target, width, height, frame, band) {
|
|
301
|
+
let across = band === "x" ? "y" : "x", along = band, length = along === "x" ? width : height, depth = across === "y" ? height : width, start = Math.min(Math.max(rectCenter(target)[along] - length / 2, frame[along]), frame[along] + (along === "x" ? frame.w : frame.h) - length), low = start - PATH_PAD, high = start + length + PATH_PAD, min = 1 / 0, max = -1 / 0;
|
|
302
|
+
return path.forEach((a, index) => {
|
|
303
|
+
let b = path.length > 1 ? path[(index + 1) % path.length] : a, from = Math.max(Math.min(a[along], b[along]), low), to = Math.min(Math.max(a[along], b[along]), high);
|
|
304
|
+
if (!(from > to))
|
|
305
|
+
for (let at of [from, to]) {
|
|
306
|
+
let t = b[along] === a[along] ? 0 : (at - a[along]) / (b[along] - a[along]);
|
|
307
|
+
for (let value of b[along] === a[along] ? [a[across], b[across]] : [a[across] + t * (b[across] - a[across])])
|
|
308
|
+
min = Math.min(min, value), max = Math.max(max, value);
|
|
309
|
+
}
|
|
310
|
+
}), Number.isFinite(min) ? (band === "x" ? [["above", min - PATH_PAD - depth], ["below", max + PATH_PAD]] : [["left", min - PATH_PAD - depth], ["right", max + PATH_PAD]]).map(([side, value], index) => {
|
|
311
|
+
let rect = clampInto(frame, along === "x" ? { x: start, y: value, w: width, h: height } : { x: value, y: start, w: width, h: height });
|
|
312
|
+
return { slot: `card:path:${side}`, side, rect, penalty: index, phase: 2 };
|
|
313
|
+
}) : [];
|
|
314
|
+
}
|
|
243
315
|
function besideSlots(target, width, height, boundary, input, texts = []) {
|
|
244
316
|
let center = rectCenter(target), centerX = input.band === "y" && input.pointer ? input.pointer.x : center.x, centerY = input.band && input.pointer ? input.pointer.y : center.y, start = input.slots === "table" ? input.direction === "rtl" ? target.x + target.w - width : target.x : centerX - width / 2, sides = input.slots === "table" || input.band === "y" ? ["below", "above", "right", "left"] : ["right", "left", "above", "below"], seat = (side, index, gap, shift = 0, value) => {
|
|
245
317
|
let horizontal = side === "above" || side === "below", raw = {
|
|
@@ -272,7 +344,7 @@ function besideSlots(target, width, height, boundary, input, texts = []) {
|
|
|
272
344
|
function tableCardSlots(target, boundary, width, height, input) {
|
|
273
345
|
return besideSlots(target, width, height, boundary, { ...input, slots: "table" });
|
|
274
346
|
}
|
|
275
|
-
function selectCardSlot(candidates, forbidden, cost, pointer, clear, hidden) {
|
|
347
|
+
function selectCardSlot(candidates, forbidden, cost, pointer, clear, hidden, inWay) {
|
|
276
348
|
let scores = /* @__PURE__ */ new Map(), score = (slot) => {
|
|
277
349
|
let { x, y, w, h } = slot.rect, key = `${slot.side}:${x}:${y}:${w}:${h}`, cached = scores.get(key);
|
|
278
350
|
if (cached) return { ...cached, slot };
|
|
@@ -280,7 +352,7 @@ function selectCardSlot(candidates, forbidden, cost, pointer, clear, hidden) {
|
|
|
280
352
|
slot,
|
|
281
353
|
overlap,
|
|
282
354
|
cost: cost(slot),
|
|
283
|
-
safe: slot.fits !== !1 && overlap === 0 && !(pointer && rectContains(slot.rect, { ...pointer, w: 0, h: 0 }, 0)) && !(slot.phase < 2 && clear?.(slot) === !1),
|
|
355
|
+
safe: slot.fits !== !1 && overlap === 0 && !(pointer && rectContains(slot.rect, { ...pointer, w: 0, h: 0 }, 0)) && !(slot.phase < 2 && clear?.(slot) === !1) && inWay?.(slot) !== !0,
|
|
284
356
|
hidden: hidden?.(slot) ?? 0
|
|
285
357
|
};
|
|
286
358
|
return scores.set(key, result), result;
|
|
@@ -499,14 +571,23 @@ function layoutLabelCardContent(input, content) {
|
|
|
499
571
|
scene: rows.length ? cardScene(input, rows, seat.rect, measured, content.accessibleText) : []
|
|
500
572
|
};
|
|
501
573
|
}
|
|
502
|
-
function placeLabelCard(input, width, height) {
|
|
503
|
-
let texts = input.slots === "table" ? [] : input.occupied.filter((item) => item.kind !== "mark" && item.kind !== "reserved" && Math.min(item.rect.w, item.rect.h) > 2), hidden = (rect) => texts.filter((item) => overlapArea(rect, item.rect) > 0), seat =
|
|
574
|
+
function placeLabelCard(input, width, height, strict = !1) {
|
|
575
|
+
let texts = input.slots === "table" ? [] : input.occupied.filter((item) => item.kind !== "mark" && item.kind !== "reserved" && Math.min(item.rect.w, item.rect.h) > 2), hidden = (rect) => texts.filter((item) => overlapArea(rect, item.rect) > 0), path = input.slots === "table" ? void 0 : input.path, seat = searchSeat(input, width, height, texts, hidden);
|
|
576
|
+
if (!path) return seat;
|
|
577
|
+
let anchor = input.mark ?? input.target ?? input.record.anchor;
|
|
578
|
+
if (strict || !meetsPath(path, seat.rect) && hidden(seat.rect).length === 0 && (!anchor || boxGap(seat.rect, { w: 0, h: 0, ...anchor }) <= CLEAR_REACH))
|
|
579
|
+
return { ...seat, overPath: meetsPath(path, seat.rect) };
|
|
580
|
+
let beside = searchSeat({ ...input, path: void 0 }, width, height, texts, hidden);
|
|
581
|
+
return { ...beside, overPath: meetsPath(path, beside.rect) };
|
|
582
|
+
}
|
|
583
|
+
function searchSeat(input, width, height, texts, hidden) {
|
|
584
|
+
let seat = seatCard(input, width, height, texts), inWay = (rect) => input.path !== void 0 && meetsPath(input.path, rect), keepsPath = (next) => inWay(seat.slot.rect) || !inWay(next.slot.rect);
|
|
504
585
|
if (texts.length) {
|
|
505
586
|
let before = new Set(hidden(seat.slot.rect)), freed = [...before].some(chartWord) ? seatCard(input, width, height, texts, { readable: [] }) : void 0;
|
|
506
|
-
if (freed && !hidden(freed.slot.rect).some((item) => chartWord(item) || ownerContains(item.owner, input.record.target.owner)) && !(input.pointer && rectContains(freed.slot.rect, { ...input.pointer, w: 0, h: 0 }, 0))) seat = freed;
|
|
587
|
+
if (freed && !hidden(freed.slot.rect).some((item) => chartWord(item) || ownerContains(item.owner, input.record.target.owner)) && !(input.pointer && rectContains(freed.slot.rect, { ...input.pointer, w: 0, h: 0 }, 0)) && keepsPath(freed)) seat = freed;
|
|
507
588
|
else {
|
|
508
589
|
let improved = seatCard(input, width, height, texts, { readable: texts.filter((item) => !before.has(item)).map((item) => item.rect) });
|
|
509
|
-
hidden(improved.slot.rect).every((item) => before.has(item)) && (seat = improved);
|
|
590
|
+
hidden(improved.slot.rect).every((item) => before.has(item)) && keepsPath(improved) && (seat = improved);
|
|
510
591
|
}
|
|
511
592
|
}
|
|
512
593
|
let decisions = [{
|
|
@@ -522,7 +603,11 @@ function chartWord(item) {
|
|
|
522
603
|
return item.kind === "frame" || item.kind === "legend" || Object.keys(item.owner).length === 0;
|
|
523
604
|
}
|
|
524
605
|
function seatCard(input, width, height, texts, search) {
|
|
525
|
-
let occupied = search ? input.occupied.filter((item) => !SOLVER_CLAIMS.has(item.part ?? "")) : input.occupied, anchor = input.target ?? input.record.anchor, target = anchor ? { w: 0, h: 0, ...anchor } : void 0, viewport = input.boundary && (!target || !(input.boundary.w > 0 && input.boundary.h > 0) || boxGap(target, input.boundary) === 0), table = input.slots === "table", boundary = viewport ? input.boundary : insetFrame(input.chart ?? input.canvas, table ? 0 : FRAME_INSET, width, height), frame = { ...boundary, w: Math.max(0, boundary.w) || width, h: Math.max(0, boundary.h) || height }, coversPointer = (rect2) => input.pointer !== void 0 && rectContains(rect2, { ...input.pointer, w: 0, h: 0 }, 0), candidates = target ? table ? tableCardSlots(target, frame, width, height, input) : besideSlots(target, width, height, frame, input, search ? texts.map((item) => item.rect) : []) : frameSlots(frame, width, height), covered = (rect2) => cardCoverCost(rect2, occupied, table), coversFilledMark = (rect2) => occupied.some((item) => item.kind === "mark" && item.filled !== !1 && overlapArea(rect2, item.rect) > 0), chart = input.chart ?? input.canvas, outsideChart = (rect2) => table ? 0 : (rect2.w * rect2.h - overlapArea(rect2, chart)) * OUTSIDE_CHART_WEIGHT, coversText = (rect2) => texts.some((item) => overlapArea(rect2, item.rect) > 0), hiddenTexts = (rect2) => search ? texts.reduce((count, item) => count + (overlapArea(rect2, item.rect) > 0 ? 1 : 0), 0) : coversText(rect2) ? 1 : 0, own = texts.filter((item) => ownerContains(item.owner, input.record.target.owner) || search !== void 0 && chartWord(item)).map((item) => item.rect), active = [...input.forbidden ?? [], ...own, ...search?.readable ?? []], exclusion = target ? { ...target, w: target.w || 1e-3, h: target.h || 1e-3 } : void 0, forbidden = [...exclusion ? [exclusion] : [], ...table ? [] : active], pointer = table && !input.pointer && target ? target : { ...input.pointer ?? rectCenter(target ?? frame), w: 0, h: 0 }, cost = (slot) => Math.round((covered(slot.rect) + outsideChart(slot.rect) + activeCoverCost(slot.rect, table ? input.forbidden : active) + (coversPointer(slot.rect) ? slot.rect.w * slot.rect.h * 1e3 : 0) + boxGap(slot.rect, pointer) + (slot.side === input.previousSide ? 0 : 8)) * 1e3) / 1e3;
|
|
606
|
+
let occupied = search ? input.occupied.filter((item) => !SOLVER_CLAIMS.has(item.part ?? "")) : input.occupied, anchor = input.target ?? input.record.anchor, target = anchor ? { w: 0, h: 0, ...anchor } : void 0, viewport = input.boundary && (!target || !(input.boundary.w > 0 && input.boundary.h > 0) || boxGap(target, input.boundary) === 0), table = input.slots === "table", boundary = viewport ? input.boundary : insetFrame(input.chart ?? input.canvas, table ? 0 : FRAME_INSET, width, height), frame = { ...boundary, w: Math.max(0, boundary.w) || width, h: Math.max(0, boundary.h) || height }, coversPointer = (rect2) => input.pointer !== void 0 && rectContains(rect2, { ...input.pointer, w: 0, h: 0 }, 0), candidates = target ? table ? tableCardSlots(target, frame, width, height, input) : besideSlots(target, width, height, frame, input, search ? texts.map((item) => item.rect) : []) : frameSlots(frame, width, height), covered = (rect2) => cardCoverCost(rect2, occupied, table), coversFilledMark = (rect2) => occupied.some((item) => item.kind === "mark" && item.filled !== !1 && overlapArea(rect2, item.rect) > 0), chart = input.chart ?? input.canvas, outsideChart = (rect2) => table ? 0 : (rect2.w * rect2.h - overlapArea(rect2, chart)) * OUTSIDE_CHART_WEIGHT, coversText = (rect2) => texts.some((item) => overlapArea(rect2, item.rect) > 0), hiddenTexts = (rect2) => search ? texts.reduce((count, item) => count + (overlapArea(rect2, item.rect) > 0 ? 1 : 0), 0) : coversText(rect2) ? 1 : 0, own = texts.filter((item) => ownerContains(item.owner, input.record.target.owner) || search !== void 0 && chartWord(item)).map((item) => item.rect), active = [...input.forbidden ?? [], ...own, ...search?.readable ?? []], exclusion = target ? { ...target, w: target.w || 1e-3, h: target.h || 1e-3 } : void 0, forbidden = [...exclusion ? [exclusion] : [], ...table ? [] : active], pointer = table && !input.pointer && target ? target : { ...input.pointer ?? rectCenter(target ?? frame), w: 0, h: 0 }, cost = (slot) => Math.round((covered(slot.rect) + outsideChart(slot.rect) + activeCoverCost(slot.rect, table ? input.forbidden : active) + (coversPointer(slot.rect) ? slot.rect.w * slot.rect.h * 1e3 : 0) + boxGap(slot.rect, pointer) + (slot.side === input.previousSide ? 0 : 8)) * 1e3) / 1e3, path = table || !target ? void 0 : input.path;
|
|
607
|
+
if (path) {
|
|
608
|
+
let expand = candidates.expand, across = pathSlots(path, target, width, height, frame, input.band ?? "x");
|
|
609
|
+
candidates.expand = () => [...expand?.() ?? [], ...across];
|
|
610
|
+
}
|
|
526
611
|
if (target && !table) {
|
|
527
612
|
let area = intersect({ x: chart.x - width, y: chart.y - height, w: chart.w + 2 * width, h: chart.h + 2 * height }, frame);
|
|
528
613
|
candidates.clear = () => area ? clearSlots(area, width, height, texts.map((item) => item.rect), pointer, search ? target : void 0) : [], candidates.far = (slot) => boxGap(slot.rect, target) > CLEAR_REACH, candidates.clean = (slot) => covered(slot.rect) === 0 && !coversText(slot.rect), candidates.floor = (slot) => slot.penalty + outsideChart(slot.rect);
|
|
@@ -533,7 +618,8 @@ function seatCard(input, width, height, texts, search) {
|
|
|
533
618
|
cost,
|
|
534
619
|
input.pointer,
|
|
535
620
|
table ? void 0 : (slot) => !coversFilledMark(slot.rect) && !coversText(slot.rect),
|
|
536
|
-
table ? void 0 : (slot) => hiddenTexts(slot.rect)
|
|
621
|
+
table ? void 0 : (slot) => hiddenTexts(slot.rect),
|
|
622
|
+
path && ((slot) => meetsPath(path, slot.rect))
|
|
537
623
|
), rect = selected.rect, placement = covered(rect) > 0 || activeCoverCost(rect, forbidden) > 0 || activeCoverCost(rect, input.forbidden) > 0 ? "overlay" : target ? "beside" : "frame";
|
|
538
624
|
return { slot: selected, placement, tried: candidates.map((slot) => slot.slot) };
|
|
539
625
|
}
|
|
@@ -567,10 +653,16 @@ function overlayInputs(request, geometry) {
|
|
|
567
653
|
}), visit(child.geometry, fullPath, origin, theme);
|
|
568
654
|
}
|
|
569
655
|
};
|
|
570
|
-
|
|
656
|
+
visit(geometry, request.scope.panel, { x: 0, y: 0 });
|
|
657
|
+
let stack = geometry.derived?.metricStack;
|
|
658
|
+
return {
|
|
571
659
|
plot: { ...geometry.plot },
|
|
572
660
|
occupied: geometry.debug.occupied.map((item) => ({ ...item, rect: { ...item.rect }, owner: { ...item.owner } })),
|
|
573
|
-
...panels.length ? { panels } : {}
|
|
661
|
+
...panels.length ? { panels } : {},
|
|
662
|
+
...stack?.focusBand ? { focusBand: {
|
|
663
|
+
rect: { ...stack.focusBand },
|
|
664
|
+
panels: stack.panels.map((panel) => ({ panel: panel.id, plot: { ...panel.plot } }))
|
|
665
|
+
} } : {}
|
|
574
666
|
};
|
|
575
667
|
}
|
|
576
668
|
function panelOverlayTheme(panel, inherited) {
|
|
@@ -596,6 +688,8 @@ export {
|
|
|
596
688
|
sharedLabelCardContent,
|
|
597
689
|
describedWithCard,
|
|
598
690
|
shouldShowTableLabelCard,
|
|
691
|
+
pointsHull,
|
|
692
|
+
nearPath,
|
|
599
693
|
tableCardSlots,
|
|
600
694
|
selectCardSlot,
|
|
601
695
|
activeCoverCost,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
COLUMN_GAP,
|
|
6
6
|
COLUMN_MIN_WIDTH,
|
|
7
7
|
columnWidth
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U4PDXI67.js";
|
|
9
9
|
import {
|
|
10
10
|
layoutBar
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KU5WGRQJ.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFER_ADJACENT,
|
|
14
14
|
EXACT_DOMAIN,
|
|
@@ -21,22 +21,22 @@ import {
|
|
|
21
21
|
} from "./chunk-4PKUS5MG.js";
|
|
22
22
|
import {
|
|
23
23
|
INSIDE_MIN_H
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XBASXPUJ.js";
|
|
25
25
|
import {
|
|
26
26
|
marginBracketLayout
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YJGZ3AOW.js";
|
|
28
28
|
import {
|
|
29
29
|
shareDrift
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4SK4IGMK.js";
|
|
31
31
|
import {
|
|
32
32
|
BAND_PAD
|
|
33
33
|
} from "./chunk-R4MVXUAG.js";
|
|
34
34
|
import {
|
|
35
35
|
labelOn
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-OQGSYQLE.js";
|
|
37
37
|
import {
|
|
38
38
|
structureCount
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IHZNRJEV.js";
|
|
40
40
|
import {
|
|
41
41
|
alignedRight,
|
|
42
42
|
authoredTrackWidth,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
chartSizing,
|
|
52
52
|
heightOmitted,
|
|
53
53
|
rowSizing
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
55
55
|
import {
|
|
56
56
|
HOST_CLAIMS,
|
|
57
57
|
PRIORITY,
|
|
@@ -63,12 +63,12 @@ import {
|
|
|
63
63
|
resolvePaintWarnings,
|
|
64
64
|
withAuthoredFootnotes,
|
|
65
65
|
withUnprintedClaims
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
67
67
|
import {
|
|
68
68
|
disclosureNote,
|
|
69
69
|
keepShownNotes,
|
|
70
70
|
methodNote
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-I3UJHKCS.js";
|
|
72
72
|
import {
|
|
73
73
|
emptyIdRecord
|
|
74
74
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -81,10 +81,10 @@ import {
|
|
|
81
81
|
roundedNumber,
|
|
82
82
|
ruleFormatter,
|
|
83
83
|
withChartMarks
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-BHO5H4AF.js";
|
|
85
85
|
import {
|
|
86
86
|
chartStrings
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-5OUURZ2T.js";
|
|
88
88
|
import {
|
|
89
89
|
canvasMargin,
|
|
90
90
|
colorblindPaint,
|
|
@@ -98,10 +98,10 @@ import {
|
|
|
98
98
|
signedFillPaint,
|
|
99
99
|
themeForWidth,
|
|
100
100
|
unionRect
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-4NGKSJBX.js";
|
|
102
102
|
import {
|
|
103
103
|
PALETTE_NORMAL_FLOOR
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-6RRK3VFP.js";
|
|
105
105
|
import {
|
|
106
106
|
NormalizeError,
|
|
107
107
|
TARGET_SIZE,
|
|
@@ -110,8 +110,9 @@ import {
|
|
|
110
110
|
} from "./chunk-RJICOOB3.js";
|
|
111
111
|
import {
|
|
112
112
|
defaultMeasurer,
|
|
113
|
+
isCachedTextMeasurer,
|
|
113
114
|
wrapText
|
|
114
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-77LQEREO.js";
|
|
115
116
|
import {
|
|
116
117
|
maxOf,
|
|
117
118
|
minOf,
|
|
@@ -599,7 +600,7 @@ function layoutLikert(data, options) {
|
|
|
599
600
|
...positiveIndices.map((i) => seriesIdOf(i))
|
|
600
601
|
], legend = resolveLegend(opts.legend, legendOrder, warnings), netExample = `+${formatExampleText(opts.format ?? DEFAULT_SHARE_FORMAT).replace(/%/g, "")}`, netLabelExample = netExample, halves = oddScale && neutralMode === "split" ? { neg: seriesIdOf(neutralIndex, "neg"), pos: seriesIdOf(neutralIndex, "pos") } : void 0, optionOf = new Map(halves ? [[halves.neg, scale[neutralIndex].id], [halves.pos, scale[neutralIndex].id]] : []);
|
|
601
602
|
scale.forEach((option, i) => optionOf.set(seriesIdOf(i), option.id));
|
|
602
|
-
let likertClaims = ({ kind, owner: { seriesId, categoryId } }) => kind === "grandTotal" && summary === "net" ? [`likert:net:${categoryId}`] : kind === "segment" && optionOf.has(seriesId ?? "") ? [claimId("likert:share", categoryId, optionOf.get(seriesId))] : void 0, comparing = (opts.annotations ?? []).some((annotation) => annotation.kind === "cagr" || annotation.kind === "diff"), rightRoom = comparing ? 0 : void 0, brackets = {}, canvas = resolveSize(opts.size), fixedRows = theme.space.barRow !== void 0, stacked = canvas.width <= STACKED_MAX_WIDTH && !fixedRows && opts.bandFraction === void 0 && panelTypeClass(opts) === void 0, defaultFraction = fixedRows ? void 0 : BAND_FRACTION, statementFont = { family: theme.type.family, ...theme.type.label }, statementLineH = statementFont.size * (statementFont.lineHeight ?? 1.2), margin = { ...canvasMargin(theme, canvas.width), ...opts.margin }, statementW = Math.max(40, canvas.width - margin.left - margin.right), statements = stacked ? ordered.map((item) => wrapText(item.label, statementFont, statementW, 8, measure).lines) : [], statementH = statements.length ? maxOf(statements.map((lines) => lines.length)) * statementLineH : 0, rowBases = ordered.flatMap((item) => item.base === void 0 ? [] : [item.base]), baseWanted = (opts.base ?? "column") === "column" && rowBases.length > 0 && canvas.width >= COLUMN_MIN_WIDTH && !comparing, sharedBase = baseWanted && rowBases.length === ordered.length && maxOf(rowBases) === minOf(rowBases) ? rowBases[0] : void 0, baseTexts = baseWanted && sharedBase === void 0 ? ordered.flatMap((item) => item.base === void 0 ? [] : [{ id: item.id, text: baseFmt(item.base) }]) : [], { label: labelOverride, net: netOverride, base: baseOverride } = opts.columnOverrides ?? {}, baseHeadText = baseOverride?.label ?? chartString(opts, "baseHead"), baseNaturalW = baseTexts.length === 0 ? 0 : columnWidth(measure, baseTexts.map((cell) => ({ text: cell.text, font: statementFont })), { text: baseHeadText, font: statementFont }), netDrawn = summary === "net" && !comparing, nameDrawn = !stacked && labelOn(opts, "category"), plotFloor = trackPlotFloor(statementW), netRoom = netDrawn ? measure(netOverride?.label ?? chartString(opts, "netPp"), statementFont).width + COLUMN_GAP : 0, baseNaturalRoom = baseNaturalW > 0 ? baseNaturalW + COLUMN_GAP : 0, nameTrack = !nameDrawn || labelOverride?.width === void 0 ? void 0 : authoredTrackWidth("label", labelOverride.width, 24, statementW - plotFloor - netRoom - baseNaturalRoom, warnings), baseW = baseNaturalW === 0 || baseOverride?.width === void 0 ? baseNaturalW : authoredTrackWidth("base", baseOverride.width, baseNaturalW, statementW - plotFloor - COLUMN_GAP - netRoom - (nameTrack ?? 0), warnings), baseReserve = baseW > 0 ? baseW + COLUMN_GAP : 0;
|
|
603
|
+
let likertClaims = ({ kind, owner: { seriesId, categoryId } }) => kind === "grandTotal" && summary === "net" ? [`likert:net:${categoryId}`] : kind === "segment" && optionOf.has(seriesId ?? "") ? [claimId("likert:share", categoryId, optionOf.get(seriesId))] : void 0, comparing = (opts.annotations ?? []).some((annotation) => annotation.kind === "cagr" || annotation.kind === "diff"), rightRoom = comparing ? 0 : void 0, brackets = {}, canvas = resolveSize(opts.size), fixedRows = theme.space.barRow !== void 0, stacked = canvas.width <= STACKED_MAX_WIDTH && !fixedRows && opts.bandFraction === void 0 && panelTypeClass(opts) === void 0, checkBarNaturalHeight = !stacked || !!opts.annotations?.length || !isCachedTextMeasurer(measure), defaultFraction = fixedRows ? void 0 : BAND_FRACTION, statementFont = { family: theme.type.family, ...theme.type.label }, statementLineH = statementFont.size * (statementFont.lineHeight ?? 1.2), margin = { ...canvasMargin(theme, canvas.width), ...opts.margin }, statementW = Math.max(40, canvas.width - margin.left - margin.right), statements = stacked ? ordered.map((item) => wrapText(item.label, statementFont, statementW, 8, measure).lines) : [], statementH = statements.length ? maxOf(statements.map((lines) => lines.length)) * statementLineH : 0, rowBases = ordered.flatMap((item) => item.base === void 0 ? [] : [item.base]), baseWanted = (opts.base ?? "column") === "column" && rowBases.length > 0 && canvas.width >= COLUMN_MIN_WIDTH && !comparing, sharedBase = baseWanted && rowBases.length === ordered.length && maxOf(rowBases) === minOf(rowBases) ? rowBases[0] : void 0, baseTexts = baseWanted && sharedBase === void 0 ? ordered.flatMap((item) => item.base === void 0 ? [] : [{ id: item.id, text: baseFmt(item.base) }]) : [], { label: labelOverride, net: netOverride, base: baseOverride } = opts.columnOverrides ?? {}, baseHeadText = baseOverride?.label ?? chartString(opts, "baseHead"), baseNaturalW = baseTexts.length === 0 ? 0 : columnWidth(measure, baseTexts.map((cell) => ({ text: cell.text, font: statementFont })), { text: baseHeadText, font: statementFont }), netDrawn = summary === "net" && !comparing, nameDrawn = !stacked && labelOn(opts, "category"), plotFloor = trackPlotFloor(statementW), netRoom = netDrawn ? measure(netOverride?.label ?? chartString(opts, "netPp"), statementFont).width + COLUMN_GAP : 0, baseNaturalRoom = baseNaturalW > 0 ? baseNaturalW + COLUMN_GAP : 0, nameTrack = !nameDrawn || labelOverride?.width === void 0 ? void 0 : authoredTrackWidth("label", labelOverride.width, 24, statementW - plotFloor - netRoom - baseNaturalRoom, warnings), baseW = baseNaturalW === 0 || baseOverride?.width === void 0 ? baseNaturalW : authoredTrackWidth("base", baseOverride.width, baseNaturalW, statementW - plotFloor - COLUMN_GAP - netRoom - (nameTrack ?? 0), warnings), baseReserve = baseW > 0 ? baseW + COLUMN_GAP : 0;
|
|
603
604
|
columnOverrideWarnings("likert", opts.columnOverrides, [...nameDrawn ? ["label"] : [], ...netDrawn ? ["net"] : [], ...baseW > 0 ? ["base"] : []], ["net", "base"], warnings);
|
|
604
605
|
let blockIds = ["plot", ...netDrawn ? ["net"] : [], ...baseW > 0 ? ["base"] : []];
|
|
605
606
|
warnings.push(...generatedIdWarnings("likert", "columnOrder", opts.columnOrder, blockIds));
|
|
@@ -644,7 +645,8 @@ function layoutLikert(data, options) {
|
|
|
644
645
|
...netDrawn ? { [TOTAL_COLUMN]: tracks?.rights.net ?? canvas.width - margin.right - baseReserve } : {},
|
|
645
646
|
...rows2.bandPad ? { [BAND_PAD]: rows2.bandPad } : {}
|
|
646
647
|
},
|
|
647
|
-
likertAnnotationPass(data, shares, net, opts.format, brackets)
|
|
648
|
+
likertAnnotationPass(data, shares, net, opts.format, brackets),
|
|
649
|
+
checkBarNaturalHeight
|
|
648
650
|
));
|
|
649
651
|
for (let label of drawn.labels) label.kind === "segment" && label.hidden === "density" && delete label.owed;
|
|
650
652
|
return drawn;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fitBand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GNSAYVND.js";
|
|
4
4
|
import {
|
|
5
5
|
footnoteSuffix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZLIVUVIV.js";
|
|
7
7
|
import {
|
|
8
8
|
wrapText
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-77LQEREO.js";
|
|
10
10
|
import {
|
|
11
11
|
maxOf
|
|
12
12
|
} from "./chunk-WYJEOMNY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sweepHide
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
4
4
|
import {
|
|
5
5
|
MAGNITUDE_DIVISOR,
|
|
6
6
|
RULE_SET,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
tickScale,
|
|
13
13
|
trendRateFormatter,
|
|
14
14
|
withUnit
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BHO5H4AF.js";
|
|
16
16
|
import {
|
|
17
17
|
chartStrings
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5OUURZ2T.js";
|
|
19
19
|
import {
|
|
20
20
|
dashToken,
|
|
21
21
|
strokeToken
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4NGKSJBX.js";
|
|
23
23
|
import {
|
|
24
24
|
fmtPathNumber
|
|
25
25
|
} from "./chunk-6IUK6PAH.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
TABLE_HEAD_PARTS,
|
|
3
3
|
tableHeadFloorPx,
|
|
4
4
|
typeWidthClass
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4NGKSJBX.js";
|
|
6
6
|
import {
|
|
7
7
|
naturalOutputSize,
|
|
8
8
|
targetFloorsPx
|
|
@@ -10,6 +10,9 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/core/themeGeometry.ts
|
|
12
12
|
function themeGeometryTokens(theme, target) {
|
|
13
|
+
return geometryTokens(theme, target);
|
|
14
|
+
}
|
|
15
|
+
function geometryTokens(theme, target) {
|
|
13
16
|
return {
|
|
14
17
|
...target === void 0 ? {} : { target },
|
|
15
18
|
scenario: theme.scenario,
|
|
@@ -32,6 +35,23 @@ function themeGeometryTokens(theme, target) {
|
|
|
32
35
|
seriesCount: theme.color.series.length
|
|
33
36
|
};
|
|
34
37
|
}
|
|
38
|
+
function tableFitThemeTokens(theme, target) {
|
|
39
|
+
let tokens = geometryTokens(theme, target), type = { ...theme.type };
|
|
40
|
+
for (let role of ["title", "subtitle", "label", "axis", "footnote", "micro", "secondary"]) {
|
|
41
|
+
let font = type[role];
|
|
42
|
+
if (font?.family === type.family) {
|
|
43
|
+
let { family: _inherited, ...metrics } = font;
|
|
44
|
+
type[role] = metrics;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
...tokens,
|
|
49
|
+
type,
|
|
50
|
+
surface: void 0,
|
|
51
|
+
seriesCount: void 0,
|
|
52
|
+
space: { ...tokens.space, facetGap: void 0, labelPad: void 0 }
|
|
53
|
+
};
|
|
54
|
+
}
|
|
35
55
|
function presentationInfo(geometry, target, inheritedClass, textScale = 1) {
|
|
36
56
|
let floors = targetFloorsPx(target), minimumScale = 0.9;
|
|
37
57
|
for (let node of geometry.scene) {
|
|
@@ -50,5 +70,6 @@ function presentationInfo(geometry, target, inheritedClass, textScale = 1) {
|
|
|
50
70
|
|
|
51
71
|
export {
|
|
52
72
|
themeGeometryTokens,
|
|
73
|
+
tableFitThemeTokens,
|
|
53
74
|
presentationInfo
|
|
54
75
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutHeatmap
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7ZYGEPY2.js";
|
|
4
4
|
import {
|
|
5
5
|
yieldingWidths
|
|
6
6
|
} from "./chunk-YGZEG3JV.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
calendarCategories,
|
|
10
10
|
chartSizing,
|
|
11
11
|
sideKeyGivesWay
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PM5D5KYQ.js";
|
|
13
13
|
import {
|
|
14
14
|
prepareFractionData
|
|
15
15
|
} from "./chunk-QXHFELIA.js";
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
TableChart,
|
|
3
3
|
TableFloorRequestContext,
|
|
4
4
|
useRowsGate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NTONEZH5.js";
|
|
6
6
|
import {
|
|
7
7
|
sharedKeys10,
|
|
8
8
|
sharedKeys5,
|
|
9
9
|
sharedKeys7
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5LUHGXXE.js";
|
|
11
11
|
import {
|
|
12
12
|
optionKeyCheck
|
|
13
13
|
} from "./chunk-Z6H5ED2I.js";
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
frameSize,
|
|
19
19
|
linkedBinding,
|
|
20
20
|
rebindable
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MDGVRYXX.js";
|
|
22
22
|
import {
|
|
23
23
|
freezeValue,
|
|
24
24
|
useStableValue
|
|
25
25
|
} from "./chunk-UTWLJ6AZ.js";
|
|
26
26
|
import {
|
|
27
27
|
dimswitchCore
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WXOSGKMS.js";
|
|
29
29
|
import {
|
|
30
30
|
LABELS_ONLY,
|
|
31
31
|
PARTIAL_NOTE_OFF_FRAME,
|
|
@@ -34,24 +34,24 @@ import {
|
|
|
34
34
|
foreignRowId,
|
|
35
35
|
hiddenTotalFoldWarnings,
|
|
36
36
|
partialNoteWarning
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YDT6QZZK.js";
|
|
38
38
|
import {
|
|
39
39
|
ENGINE_NOTE_KINDS
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-V4NJTLJP.js";
|
|
41
41
|
import {
|
|
42
42
|
registeredType,
|
|
43
43
|
withRegistered
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-D2I2BUR6.js";
|
|
45
45
|
import {
|
|
46
46
|
ENGINE_NOTES
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ELFF5YO7.js";
|
|
48
48
|
import {
|
|
49
49
|
optionRefusals
|
|
50
50
|
} from "./chunk-YKYK6C7F.js";
|
|
51
51
|
import {
|
|
52
52
|
engineNoteMeta,
|
|
53
53
|
withEngineNotes
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-I3UJHKCS.js";
|
|
55
55
|
import {
|
|
56
56
|
retireChartSettings
|
|
57
57
|
} from "./chunk-JF743NNC.js";
|