boardplot 0.56.0 → 0.57.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 +110 -0
- package/README.md +3 -3
- package/dist/{ReaderBox-GLCKYXBU.js → ReaderBox-GCIITQCX.js} +4 -4
- package/dist/{annotateEngine-QVNAE3EH.js → annotateEngine-JMZI6QEG.js} +1 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-CKGSGRP7.js → chunk-26WNBTWB.js} +20 -4
- package/dist/{chunk-UBCVBBJJ.js → chunk-2AJWRVZ2.js} +4 -3
- package/dist/{chunk-XMP2DNLI.js → chunk-2BHLRHF2.js} +2 -2
- package/dist/{chunk-2NRHD2G7.js → chunk-2HD5RY2U.js} +11 -3
- package/dist/{chunk-6QDMRPXI.js → chunk-2I76VFMZ.js} +184 -239
- package/dist/{chunk-XC5IRUEL.js → chunk-2KCK63DD.js} +2 -2
- package/dist/{chunk-ZEYBI47P.js → chunk-2WTD3GCR.js} +11 -3
- package/dist/{chunk-BTDGWHGJ.js → chunk-2X6XY4K4.js} +4 -4
- package/dist/{chunk-5S3JQ5AT.js → chunk-3DUGZ7ML.js} +149 -118
- package/dist/{chunk-JTFKRDDA.js → chunk-3LNVEE5Z.js} +1 -1
- package/dist/{chunk-JCAGVAB3.js → chunk-43PCSBVQ.js} +563 -10
- package/dist/{chunk-F2EVCJ4U.js → chunk-4JNHF6JW.js} +10 -10
- package/dist/{chunk-ECBUFKCP.js → chunk-4RN4OM6I.js} +3 -3
- package/dist/{chunk-A2GAWGVJ.js → chunk-4U2WSW6F.js} +20 -20
- package/dist/{chunk-CCDXK5NA.js → chunk-53OEKS4L.js} +5 -3
- package/dist/{chunk-YPYD6OJ3.js → chunk-54HEIM2A.js} +2 -2
- package/dist/{chunk-IGJ2G5C6.js → chunk-5H4HFRDO.js} +6 -6
- package/dist/{chunk-EMFUZKYK.js → chunk-5HTGSB6Y.js} +3 -3
- package/dist/{chunk-WXJ5MHLH.js → chunk-5JTRCSBN.js} +1 -1
- package/dist/{chunk-67QSW5RW.js → chunk-5P4MXWKP.js} +3 -3
- package/dist/{chunk-EBB4PYBN.js → chunk-5RHP7YTL.js} +5 -5
- package/dist/{chunk-VVXKFU72.js → chunk-5TUDYKNL.js} +35 -27
- package/dist/{chunk-HZUAEMN5.js → chunk-5WSIH4SR.js} +1 -1
- package/dist/{chunk-KF7HD3EH.js → chunk-62JZL6FW.js} +43 -35
- package/dist/{chunk-S7NRL66K.js → chunk-6EE6XEMA.js} +4 -4
- package/dist/chunk-6JXBLQJ2.js +32 -0
- package/dist/{chunk-KBJMLXNW.js → chunk-6KHRMK3I.js} +14 -14
- package/dist/{chunk-2DOEZ5QY.js → chunk-6LQKU6YN.js} +4 -4
- package/dist/chunk-6VU2XI3W.js +89 -0
- package/dist/{chunk-DQ7YMQVX.js → chunk-6WJOHZPW.js} +5 -5
- package/dist/{chunk-ZMPH2OC4.js → chunk-6XU5XGYV.js} +7 -8
- package/dist/{chunk-MAFPVR4G.js → chunk-6ZN2XJFI.js} +10 -5
- package/dist/{chunk-PQLAZEQV.js → chunk-72OJBDRB.js} +204 -59
- package/dist/{chunk-T2YDWT54.js → chunk-73O6AOAA.js} +43 -30
- package/dist/{chunk-4JHMCXOB.js → chunk-76UL4CT4.js} +60 -24
- package/dist/chunk-7BQK2UDV.js +13 -0
- package/dist/{chunk-7PPMT5EJ.js → chunk-7EQU2TUN.js} +300 -64
- package/dist/{chunk-2HTYGMMG.js → chunk-7FAO4ICF.js} +2 -2
- package/dist/{chunk-6WHWXCHJ.js → chunk-7MYJUJZV.js} +6 -2
- package/dist/{chunk-CB4CERXZ.js → chunk-7P7D6WXR.js} +11 -2
- package/dist/{chunk-RT66UTLJ.js → chunk-A33MFWHW.js} +2 -2
- package/dist/{chunk-4JC3SE4G.js → chunk-A6XCVOC5.js} +1 -1
- package/dist/{chunk-QWCLWFKC.js → chunk-AFA32LHN.js} +132 -36
- package/dist/{chunk-T2CYNDYU.js → chunk-AFGQXMKT.js} +235 -80
- package/dist/{chunk-HOU2MZHC.js → chunk-AKJO6N4K.js} +2 -2
- package/dist/{chunk-MRAP2UVV.js → chunk-ANNQJWDX.js} +10 -10
- package/dist/{chunk-LGNJCPFP.js → chunk-AOIZJ7GR.js} +7 -7
- package/dist/chunk-B5A7X2BA.js +44 -0
- package/dist/{chunk-SS4YGK3E.js → chunk-BDCKHLUB.js} +15 -15
- package/dist/{chunk-XHRUXZD7.js → chunk-BFDPY7JM.js} +10 -3
- package/dist/{chunk-BK6P6KMW.js → chunk-BM2A3IGQ.js} +1 -1
- package/dist/{chunk-GQT2SY2S.js → chunk-BO5EJBLH.js} +247 -127
- package/dist/chunk-BQIADGJB.js +23 -0
- package/dist/{chunk-PJBEJR2U.js → chunk-BY5JGQFZ.js} +24 -7
- package/dist/{chunk-SXD3OYAR.js → chunk-C5SQEYTQ.js} +76 -55
- package/dist/{chunk-3465633G.js → chunk-CEMXGMQN.js} +2 -2
- package/dist/{chunk-AMR4SUAN.js → chunk-CIDOL4FO.js} +5 -5
- package/dist/{chunk-E7V3OHQQ.js → chunk-CT4RFZO4.js} +6 -6
- package/dist/{chunk-7Q37C6GZ.js → chunk-CV3NC75L.js} +1 -1
- package/dist/{chunk-FFJGC2DX.js → chunk-D3PQAVFW.js} +22 -12
- package/dist/{chunk-52WNCUIN.js → chunk-D5G67OER.js} +1 -1
- package/dist/{chunk-MOS6WFWM.js → chunk-D5RAVZ5C.js} +6 -7
- package/dist/{chunk-FNRPQIQE.js → chunk-DJBMA4FW.js} +4 -4
- package/dist/{chunk-4DZFR52I.js → chunk-DPUCT567.js} +2 -2
- package/dist/{chunk-TE4M52AA.js → chunk-DYSEZVIJ.js} +18 -2
- package/dist/{chunk-SA46CNMS.js → chunk-ED7GLWTF.js} +4 -1
- package/dist/{chunk-R5MEBBAA.js → chunk-EDBUVDRI.js} +117 -67
- package/dist/{chunk-TUW5IYGA.js → chunk-EEBMK6T6.js} +6 -6
- package/dist/{chunk-RLMC5CUP.js → chunk-EEL2N4Y6.js} +7 -8
- package/dist/{chunk-CF4NMRN7.js → chunk-EFKFZNQC.js} +24 -18
- package/dist/{chunk-UPTXFTKH.js → chunk-EHNGPUTO.js} +6 -6
- package/dist/{chunk-BISJK67O.js → chunk-EHQLLZCQ.js} +48 -21
- package/dist/{chunk-U3A6FMSI.js → chunk-EWR6WVOV.js} +6 -6
- package/dist/{chunk-RMC4OONA.js → chunk-EY4OA4OF.js} +985 -663
- package/dist/{chunk-YYJORENB.js → chunk-F4JAGDPD.js} +5 -5
- package/dist/{chunk-ZY72LSQK.js → chunk-FAFUMSPR.js} +33 -24
- package/dist/{chunk-CYKXROFG.js → chunk-FERP4WS3.js} +19 -9
- package/dist/{chunk-N5HN5QGH.js → chunk-FF7MV4D4.js} +1 -1
- package/dist/{chunk-O7REHICC.js → chunk-FJKFYQ5I.js} +10 -10
- package/dist/chunk-FL3FQ2YA.js +27 -0
- package/dist/{chunk-YOOHNQ3L.js → chunk-FX5VZK5F.js} +4 -0
- package/dist/{chunk-7M2GK7XQ.js → chunk-G5BUGYIL.js} +68 -16
- package/dist/{chunk-QZIHKQRH.js → chunk-G5CELEUR.js} +6 -6
- package/dist/{chunk-ZJFJ2IKQ.js → chunk-GADI2DU7.js} +11 -10
- package/dist/{chunk-F6OLHND5.js → chunk-GAFEN3H7.js} +2 -2
- package/dist/{chunk-GM3EGUYW.js → chunk-GHFTKVJN.js} +1 -1
- package/dist/chunk-GKDUIDU6.js +138 -0
- package/dist/{chunk-OJ5CQV7H.js → chunk-GKQLKUMF.js} +186 -82
- package/dist/{chunk-EGGDPDYJ.js → chunk-GS5UG6QD.js} +1 -1
- package/dist/{chunk-5TWY3ZIC.js → chunk-H2POQ4LB.js} +5 -5
- package/dist/{chunk-KD5GOR2K.js → chunk-H3EWFSWI.js} +93 -52
- package/dist/{chunk-CHAS5A5B.js → chunk-H6EJ63QN.js} +18 -16
- package/dist/{chunk-GIHH6VC2.js → chunk-HB3TH7GY.js} +3 -3
- package/dist/{chunk-FMDNJ6PC.js → chunk-HC6WHTBX.js} +2 -2
- package/dist/{chunk-63Y3ROZ7.js → chunk-HDSHS2QZ.js} +45 -30
- package/dist/{chunk-KTHFHD6C.js → chunk-HFFKN7PA.js} +11 -6
- package/dist/{chunk-QSMGZOT5.js → chunk-HGPFEG2L.js} +7 -8
- package/dist/{chunk-2YO4WRJN.js → chunk-HVX2E26J.js} +35 -25
- package/dist/{chunk-KLB2QC24.js → chunk-I3DLERI7.js} +1 -1
- package/dist/{chunk-SPSGUFTI.js → chunk-I4NUYVP5.js} +1 -1
- package/dist/{chunk-LKMFMNQX.js → chunk-I5ZADE2U.js} +1 -1
- package/dist/{chunk-CPGASWNN.js → chunk-I65OLJ2X.js} +1 -1
- package/dist/{chunk-SRAV6FPB.js → chunk-I6QGYRY4.js} +3 -3
- package/dist/{chunk-NCLRZQR6.js → chunk-I7KDPCC7.js} +3 -3
- package/dist/{chunk-6EYTD777.js → chunk-IFURKTOL.js} +2 -2
- package/dist/{chunk-Y54LU4CU.js → chunk-IPWUBZ4P.js} +1 -1
- package/dist/{chunk-BIGQKCU7.js → chunk-IRXTNSZL.js} +9 -9
- package/dist/{chunk-2FKEF2AC.js → chunk-IUVJVMKS.js} +11 -11
- package/dist/{chunk-ZKJ5L35C.js → chunk-IVQT2E3Y.js} +28 -17
- package/dist/{chunk-7DAH2E4T.js → chunk-IW3YUMPI.js} +2 -2
- package/dist/chunk-IXM6BAM4.js +53 -0
- package/dist/{chunk-YMTXTQCN.js → chunk-IZRTNCJQ.js} +5 -5
- package/dist/{chunk-QGFKSDQO.js → chunk-J22ETKDJ.js} +2 -2
- package/dist/{chunk-HJRNBKIT.js → chunk-JARJP576.js} +3 -3
- package/dist/{chunk-DD6RVD3S.js → chunk-JHWDTV4K.js} +5 -1
- package/dist/{chunk-P4SMC4BY.js → chunk-JIH52I36.js} +79 -79
- package/dist/{chunk-KQCKK3LD.js → chunk-JKXJWCJ5.js} +69 -34
- package/dist/{chunk-WI5VOSQX.js → chunk-JMOBA5ES.js} +2 -2
- package/dist/{chunk-AGDDH6XY.js → chunk-JMXNXLAC.js} +5 -1
- package/dist/{chunk-R2IKOLBK.js → chunk-JRRSKCGG.js} +3 -3
- package/dist/{chunk-IVRYF7QA.js → chunk-JSA3ESEJ.js} +1 -1
- package/dist/{chunk-WBETBGSC.js → chunk-K6Y4HBK7.js} +31 -31
- package/dist/{chunk-Z55DXFWS.js → chunk-KAAB2DIV.js} +23 -13
- package/dist/{chunk-UZLR25BW.js → chunk-KF3ZHLHQ.js} +7 -8
- package/dist/{chunk-GELSK76Y.js → chunk-KGS5Z7SL.js} +3 -3
- package/dist/{chunk-E2ZUBP4Q.js → chunk-KIXNHDXS.js} +7 -8
- package/dist/{chunk-7VMEM3LN.js → chunk-KJLH5EHD.js} +26 -26
- package/dist/{chunk-KLIZXSBK.js → chunk-KLQKHA3T.js} +6 -6
- package/dist/chunk-KQ2WZ6BY.js +11 -0
- package/dist/{chunk-DF3XEFQ7.js → chunk-KUMJI5B6.js} +10 -10
- package/dist/{chunk-SE7MJ2LQ.js → chunk-L2XRUG4P.js} +7 -8
- package/dist/{chunk-JYBT2JNY.js → chunk-LE3LSEUL.js} +27 -2
- package/dist/{chunk-75WIUG2W.js → chunk-LFX5BERN.js} +140 -60
- package/dist/{chunk-MJPXHCBW.js → chunk-LGMV7ZV4.js} +4 -4
- package/dist/{chunk-3V62N3Z7.js → chunk-LO3AGGE3.js} +7 -8
- package/dist/{chunk-7KSUMFBK.js → chunk-LSKCKGCF.js} +5 -1
- package/dist/{chunk-NHC2ADGI.js → chunk-LSR3SBJ4.js} +45 -34
- package/dist/{chunk-V634AXDM.js → chunk-LUZ7HXBT.js} +1 -1
- package/dist/{chunk-5PPQIF4D.js → chunk-LW4ZQGVL.js} +2 -2
- package/dist/{chunk-H3IBJQ5A.js → chunk-M2OQK2FO.js} +1 -1
- package/dist/{chunk-4LTN7SND.js → chunk-M74H7QYD.js} +1 -1
- package/dist/{chunk-TXBO2LWM.js → chunk-MOQFYJ3F.js} +6 -6
- package/dist/{chunk-VPL3JYC6.js → chunk-MQ5EKWIG.js} +51 -9
- package/dist/{chunk-X3KCQEYZ.js → chunk-MTCDGSYW.js} +9 -1
- package/dist/{chunk-FCECYJVA.js → chunk-NCCDEUHD.js} +1 -1
- package/dist/{chunk-IGVAWAOK.js → chunk-NIDH22DI.js} +31 -7
- package/dist/{chunk-5DTCOOLU.js → chunk-NINK4G7U.js} +2 -2
- package/dist/{chunk-HHXIVFAU.js → chunk-NO7GRVUU.js} +10 -8
- package/dist/{chunk-X23SZHV5.js → chunk-NRYERHEI.js} +6 -6
- package/dist/{chunk-V5JQQMFQ.js → chunk-O4D27FKH.js} +1 -1
- package/dist/{chunk-I7H5DU34.js → chunk-O7Y6RJ4D.js} +21 -9
- package/dist/{chunk-2NN676RI.js → chunk-OAT6FWKL.js} +7 -8
- package/dist/{chunk-JHWYG7V5.js → chunk-OF7FMGH5.js} +6 -6
- package/dist/{chunk-GLQ3KCTY.js → chunk-OKM5LYYP.js} +7 -8
- package/dist/{chunk-JCIXYOND.js → chunk-OTGNVAI4.js} +2 -2
- package/dist/{chunk-EIL3KHAL.js → chunk-PSYPB22T.js} +3 -3
- package/dist/{chunk-JXBZIJCG.js → chunk-PYGEIPPH.js} +1 -1
- package/dist/{chunk-KZJ5VM6E.js → chunk-PZ3TQFSY.js} +15 -1
- package/dist/{chunk-K3VZ5QJK.js → chunk-Q7VPTN5X.js} +4 -4
- package/dist/{chunk-ZVM5TFGR.js → chunk-QFIRPOXR.js} +6 -2
- package/dist/{chunk-YHD2FZFP.js → chunk-QHPJ5ZKS.js} +6 -6
- package/dist/{chunk-QLANK3VN.js → chunk-QLWUFEKR.js} +6 -6
- package/dist/{chunk-64LJDGJH.js → chunk-QNLESRH6.js} +3 -1
- package/dist/{chunk-RJGCYGC3.js → chunk-QRZESG66.js} +38 -27
- package/dist/{chunk-76Q7E3TM.js → chunk-QYOZ46ZQ.js} +70 -23
- package/dist/{chunk-E555EDOQ.js → chunk-QZMLSK43.js} +221 -62
- package/dist/{chunk-NGA7ICG4.js → chunk-RDJ3ZU6O.js} +16 -13
- package/dist/{chunk-6MJUW5R5.js → chunk-RHBQ2Q5H.js} +95 -44
- package/dist/{chunk-ZYQYX66L.js → chunk-RHVP62HI.js} +6 -6
- package/dist/{chunk-F5BYLT3M.js → chunk-RMVCKO6N.js} +13 -11
- package/dist/chunk-RRPTQGRU.js +47 -0
- package/dist/{chunk-IRXVV65V.js → chunk-S2TSXUYP.js} +6 -6
- package/dist/{chunk-OG2YUVBW.js → chunk-SD6ENKTO.js} +7 -2
- package/dist/{chunk-6AMN7IKJ.js → chunk-SHAAMKN7.js} +43 -22
- package/dist/{chunk-DLUNQHFO.js → chunk-SHCW2TCA.js} +9 -9
- package/dist/{chunk-54ROMBU7.js → chunk-SSZB3VXG.js} +17 -17
- package/dist/chunk-SXAZDIGM.js +84 -0
- package/dist/{chunk-QHRE2M6V.js → chunk-T2L5H2WW.js} +4 -3
- package/dist/{chunk-RPIKNMZA.js → chunk-T3WCDDIL.js} +7 -2
- package/dist/{chunk-JIEVDGAF.js → chunk-T5MBORBK.js} +1 -1
- package/dist/{chunk-32LLDRPI.js → chunk-TDDSWNGD.js} +23 -15
- package/dist/{chunk-7VVHTOE7.js → chunk-TGR6PRKG.js} +2 -2
- package/dist/{chunk-QJWLNP64.js → chunk-TKERVBJ3.js} +7 -8
- package/dist/{chunk-43GGVT7W.js → chunk-TMXRTYGT.js} +10 -4
- package/dist/{chunk-BIVL764T.js → chunk-TQ5HHNM3.js} +2 -2
- package/dist/{chunk-WN3HEU3P.js → chunk-TWRFVW3J.js} +4 -2
- package/dist/{chunk-7FKY6YWU.js → chunk-TXMS7QUJ.js} +3 -3
- package/dist/{chunk-O6ZTIDWB.js → chunk-UBXIGE2P.js} +3 -2
- package/dist/{chunk-JTC5SEAQ.js → chunk-UCIAHSJK.js} +2 -2
- package/dist/{chunk-BVYIKLQ5.js → chunk-UD6U4EF5.js} +1 -1
- package/dist/{chunk-DMAMWUYY.js → chunk-UFZXZJJG.js} +5 -5
- package/dist/{chunk-SNQ7D5R7.js → chunk-UIHGGWES.js} +51 -11
- package/dist/{chunk-27OIGDRK.js → chunk-UP4JSNDR.js} +1 -1
- package/dist/{chunk-JEUL777U.js → chunk-USFIDSTO.js} +7 -5
- package/dist/{chunk-PZ46S2SY.js → chunk-V3UE3TB7.js} +2 -2
- package/dist/{chunk-KDSYZLF6.js → chunk-V5IFI3FV.js} +8 -1
- package/dist/{chunk-BSATR6ZO.js → chunk-V62B23VC.js} +13 -1
- package/dist/{chunk-WWGPTEQB.js → chunk-VFLMBA2M.js} +66 -16
- package/dist/{chunk-5P2TTHBZ.js → chunk-VM5CQ7CG.js} +2 -2
- package/dist/{chunk-UREXN6WG.js → chunk-VMGTNB6H.js} +6 -6
- package/dist/{chunk-2NSQIPAA.js → chunk-VT7PBGL2.js} +6 -6
- package/dist/{chunk-CXETOLPX.js → chunk-VY2NPB2Q.js} +1 -1
- package/dist/{chunk-F77TMAUY.js → chunk-VY67Q6CJ.js} +18 -18
- package/dist/{chunk-7STMIK2X.js → chunk-W5SVS4B6.js} +2 -2
- package/dist/{chunk-MD6DCQMA.js → chunk-W7Q6PLT4.js} +37 -37
- package/dist/{chunk-JVZTKQFS.js → chunk-WDAZ2MT4.js} +8 -4
- package/dist/{chunk-MZACASZY.js → chunk-WE5WVQE4.js} +13 -1
- package/dist/chunk-WJQX7HBH.js +54 -0
- package/dist/{chunk-MS7O3KDJ.js → chunk-WKWCNS6K.js} +6 -6
- package/dist/{chunk-4KQHKPB3.js → chunk-WSKZZ2ZB.js} +11 -12
- package/dist/{chunk-SMHZXHHD.js → chunk-WZB6R2ZX.js} +6 -4
- package/dist/{chunk-37PKNVLS.js → chunk-X5OVVMZX.js} +1 -1
- package/dist/{chunk-MPO5TVGF.js → chunk-XFCBH3TI.js} +3 -3
- package/dist/{chunk-CAJ54IEP.js → chunk-XJUZC53Y.js} +1 -1
- package/dist/chunk-XN7JDII2.js +2047 -0
- package/dist/{chunk-4KMZAK6J.js → chunk-XNV7VOIT.js} +4 -4
- package/dist/{chunk-YK2KWNTU.js → chunk-XR7VOF2V.js} +9 -7
- package/dist/{chunk-WTQAG2OT.js → chunk-XYUXB5VK.js} +8 -3
- package/dist/{chunk-QB5HV4IY.js → chunk-Y5IKCXQR.js} +7 -8
- package/dist/{chunk-FNMH5WEY.js → chunk-Y5WHM2Q5.js} +1 -1
- package/dist/{chunk-IGNBQT23.js → chunk-Y7Q3VEYC.js} +96 -5
- package/dist/{chunk-L6YVK6VC.js → chunk-YB6QGOCO.js} +1 -1
- package/dist/{chunk-BYCJ6TKI.js → chunk-YBYV56FS.js} +3 -3
- package/dist/{chunk-DLDDRXAI.js → chunk-YCUNFAEE.js} +77 -37
- package/dist/{chunk-V7F4F6JA.js → chunk-YFI5PN5O.js} +5 -7
- package/dist/{chunk-ZL6IHMOW.js → chunk-YGPLUENN.js} +88 -58
- package/dist/chunk-YGZEG3JV.js +123 -0
- package/dist/{chunk-JGFHNAHS.js → chunk-YJGFT63R.js} +8 -3
- package/dist/{chunk-XQMYQ4TN.js → chunk-YNHPPZ7S.js} +1 -1
- package/dist/{chunk-EZZ533MH.js → chunk-YO5UKKCQ.js} +1 -1
- package/dist/{chunk-YZZLIYPA.js → chunk-YTEJYLU7.js} +5 -1
- package/dist/{chunk-CCJP6QZO.js → chunk-Z257SH5U.js} +1 -1
- package/dist/{chunk-ETMHDCEH.js → chunk-Z2BDTZDT.js} +13 -11
- package/dist/{chunk-MOK3ZS6P.js → chunk-ZDD3MJ2H.js} +1 -1
- package/dist/{chunk-6364WO5D.js → chunk-ZNX5J7D7.js} +2 -2
- package/dist/{chunk-UZTQUPTB.js → chunk-ZSYU6LIH.js} +4 -4
- package/dist/{chunk-JFFREZGT.js → chunk-ZTSJ7NY6.js} +6 -2
- package/dist/chunk-ZV3SNRJI.js +122 -0
- package/dist/cli/index.js +1 -1
- package/dist/{core-MU4ALRR7.js → core-4M4RY7MX.js} +4 -1
- package/dist/{core-XW7UJFJZ.js → core-4PW4MXWR.js} +4 -1
- package/dist/{core-LB5M7XL4.js → core-5S5CJHBG.js} +5 -1
- package/dist/{core-LGJZUP6H.js → core-7TTM4KRP.js} +6 -1
- package/dist/{core-GSILPKUR.js → core-7XKNJM7Y.js} +4 -1
- package/dist/{core-JDFUZFRH.js → core-A7HXVSKB.js} +5 -1
- package/dist/{core-K3JX5WPM.js → core-AMWCZTOT.js} +2 -1
- package/dist/{core-BLHEJ5OK.js → core-AVA4XLQ2.js} +4 -1
- package/dist/{core-ILPXXC2Z.js → core-BJZEJ63L.js} +5 -1
- package/dist/{core-3KLQSYWB.js → core-CCB3IXGD.js} +4 -1
- package/dist/{core-BBNY2BX4.js → core-D2OIGYC7.js} +2 -1
- package/dist/{core-4RR6VSXM.js → core-DMDAXVMY.js} +3 -1
- package/dist/{core-HDNWVLJW.js → core-EMSJRGSE.js} +4 -1
- package/dist/{core-A5AKUB7H.js → core-FCSA74RT.js} +2 -1
- package/dist/{core-WZ4CHVYL.js → core-FTQBESDS.js} +3 -1
- package/dist/{core-G3LXHW73.js → core-GS4DXDDG.js} +4 -1
- package/dist/{core-H5HO2CED.js → core-JDZDBTID.js} +2 -1
- package/dist/{core-VKZSQFRG.js → core-L3UR75IJ.js} +2 -1
- package/dist/{core-AR2T32Y3.js → core-MAW4S3KA.js} +4 -1
- package/dist/{core-4HFVG4CP.js → core-N2JEWJ7D.js} +3 -1
- package/dist/{core-BOG33BFD.js → core-OBPTBKX6.js} +4 -1
- package/dist/{core-HTD5RHE7.js → core-OFPPRHYY.js} +5 -1
- package/dist/{core-ZLSQHZ3I.js → core-QFAVWFI3.js} +4 -1
- package/dist/{core-TCSW24N6.js → core-QM34237W.js} +4 -1
- package/dist/{core-WJNK7F2J.js → core-SKMHEA4Y.js} +5 -1
- package/dist/{core-7S3XMW5O.js → core-T3OSZOVV.js} +2 -1
- package/dist/{core-7Y5BZZON.js → core-UNX4ZV4M.js} +4 -1
- package/dist/{core-DFZMOO7E.js → core-VRVL6LIM.js} +5 -1
- package/dist/{core-J2JD5ODO.js → core-VT35VDVS.js} +4 -1
- package/dist/{core-TKZZZ6UW.js → core-VWYXK2R3.js} +4 -1
- package/dist/{core-E2XOSHPR.js → core-WNT6ZMRO.js} +5 -1
- package/dist/{core-RR2CAZC5.js → core-WP73P4CW.js} +4 -1
- package/dist/{core-DD62MWEW.js → core-WPEYRK6Y.js} +2 -1
- package/dist/{core-YMXYUGF5.js → core-WXZJ7V7S.js} +2 -1
- package/dist/{core-5UF44NDI.js → core-XKXDXALI.js} +3 -1
- package/dist/{core-GLOZY6Z7.js → core-ZACFV6XR.js} +2 -1
- package/dist/{core-QPSAYRFT.js → core-ZSERZGK6.js} +5 -1
- package/dist/{dataTable-CNDRVGA5.js → dataTable-7IO546LM.js} +10 -2
- package/dist/{engine-FVEIM3WV.js → engine-US3N6UCH.js} +17 -9
- package/dist/fixtures.js +3 -1
- package/dist/fonts.js +1 -1
- package/dist/geo/dach.js +1 -1
- package/dist/geo/de-states.js +1 -1
- package/dist/geo/eu27.js +1 -1
- package/dist/geo/europe.js +1 -1
- package/dist/geo/index.js +2 -2
- package/dist/geo/us-states.js +1 -1
- package/dist/geo/world.js +1 -1
- package/dist/index.js +31 -19
- package/dist/{main-THU6VIVU.js → main-2UWKGUHR.js} +27 -13
- package/dist/mcp/server.js +23 -13
- package/dist/react/bar.js +6 -1
- package/dist/react/bartable.js +8 -1
- package/dist/react/box.js +6 -1
- package/dist/react/bullet.js +7 -1
- package/dist/react/butterfly.js +6 -1
- package/dist/react/choropleth.js +8 -1
- package/dist/react/cohort.js +9 -1
- package/dist/react/column.js +6 -1
- package/dist/react/combo.js +6 -1
- package/dist/react/creative.js +8 -1
- package/dist/react/diagram.js +8 -1
- package/dist/react/dimswitch.js +6 -1
- package/dist/react/dot.js +6 -1
- package/dist/react/export.js +25 -18
- package/dist/react/funnel.js +6 -1
- package/dist/react/gantt.js +7 -1
- package/dist/react/grid.js +5 -1
- package/dist/react/heatmap.js +7 -1
- package/dist/react/histogram.js +6 -1
- package/dist/react/index.js +93 -84
- package/dist/react/kpi.js +7 -1
- package/dist/react/likert.js +6 -1
- package/dist/react/line.js +6 -1
- package/dist/react/mekko.js +6 -1
- package/dist/react/pareto.js +6 -1
- package/dist/react/pie.js +6 -1
- package/dist/react/prepare.js +35 -20
- package/dist/react/pvm.js +7 -1
- package/dist/react/pyramid.js +6 -1
- package/dist/react/sankey.js +8 -1
- package/dist/react/scatter.js +6 -1
- package/dist/react/slope.js +7 -1
- package/dist/react/sparkline.js +7 -1
- package/dist/react/spec.js +17 -11
- package/dist/react/status.js +7 -1
- package/dist/react/story.js +4 -2
- package/dist/react/table.js +6 -1
- package/dist/react/theme.js +8 -3
- package/dist/react/tilemap.js +7 -1
- package/dist/react/treemap.js +7 -1
- package/dist/react/variance.js +6 -1
- package/dist/react/waffle.js +7 -1
- package/dist/react/waterfall.js +7 -1
- package/dist/rows.js +3 -2
- package/dist/{rowsModule-LI6KOS46.js → rowsModule-DYDVHBAX.js} +2 -1
- package/dist/{schema-ZQSIR5UC.js → schema-3KMU5737.js} +1 -1
- package/dist/{schema-YLE4XXQQ.js → schema-4JRNXEZF.js} +3 -1
- package/dist/{schema-KPEPBGAX.js → schema-626QXX4G.js} +3 -1
- package/dist/{schema-72EEMYS3.js → schema-6PL46VXZ.js} +3 -1
- package/dist/{schema-JH57NFXJ.js → schema-6V5K3J2V.js} +4 -1
- package/dist/{schema-H2EC4GAQ.js → schema-A2XUZUCV.js} +3 -1
- package/dist/{schema-QPOBZUAR.js → schema-CNJ4Y6CT.js} +3 -1
- package/dist/{schema-5KDEQBBT.js → schema-DHMMGDTI.js} +3 -1
- package/dist/{schema-BKUFZLLI.js → schema-F2Q6MH7W.js} +3 -1
- package/dist/{schema-PL3EU6EQ.js → schema-FC6J6KZC.js} +5 -1
- package/dist/{schema-AXRDF6ND.js → schema-FGE5YK3S.js} +3 -1
- package/dist/{schema-5DUTAVO7.js → schema-FSYDLMGD.js} +1 -1
- package/dist/{schema-PQZWO3BP.js → schema-G5KSSI5W.js} +1 -1
- package/dist/{schema-25INXAMY.js → schema-GXOG4MXL.js} +1 -1
- package/dist/{schema-AMT7P7KB.js → schema-HEB6ZDI5.js} +3 -1
- package/dist/{schema-HH5HOORE.js → schema-I44IDRGD.js} +1 -1
- package/dist/{schema-VYECMPON.js → schema-IFTIMTS3.js} +1 -1
- package/dist/{schema-QCIE6M2P.js → schema-IUY7VYHJ.js} +3 -1
- package/dist/{schema-M5JBHQIV.js → schema-J4HCSD5C.js} +5 -2
- package/dist/{schema-B2GCEYXD.js → schema-JCU6LTYD.js} +1 -1
- package/dist/{schema-FDFQKIO5.js → schema-JJWORI7D.js} +3 -1
- package/dist/{schema-GNTKL5DN.js → schema-K4V4PYBO.js} +3 -1
- package/dist/{schema-L5U4OROI.js → schema-LGLQBRC4.js} +3 -1
- package/dist/{schema-THXXFY6I.js → schema-MD22QYZU.js} +1 -1
- package/dist/{schema-7NSV542V.js → schema-MGETMQYC.js} +3 -1
- package/dist/{schema-ZG6ZKFRZ.js → schema-MQB6CE5V.js} +3 -1
- package/dist/{schema-OU35XA3Z.js → schema-NMIYKGHE.js} +3 -1
- package/dist/{schema-5ZTGVQAJ.js → schema-NOBNFD2F.js} +3 -1
- package/dist/{schema-MMVPMJEF.js → schema-OXO2XY4Y.js} +1 -1
- package/dist/{schema-LOQ3AFC7.js → schema-PHIHMDVB.js} +1 -1
- package/dist/{schema-ZEVJMFLV.js → schema-UXWKA3PI.js} +3 -1
- package/dist/{schema-GN6GAIU5.js → schema-WBOPCTPC.js} +1 -1
- package/dist/{schema-BBTXTWYI.js → schema-WFGDVBJK.js} +1 -1
- package/dist/{schema-J7TNCZIP.js → schema-WX2RS4OU.js} +3 -1
- package/dist/{schema-QORUB6EK.js → schema-XIHAKX3B.js} +18 -1
- package/dist/{schema-R5Y6NVBH.js → schema-XRSORYBI.js} +3 -1
- package/dist/{schema-CGQID64D.js → schema-YDZCGL56.js} +3 -1
- package/dist/{specValidation-VHLGDEME.js → specValidation-XGELWQUU.js} +2 -1
- package/dist/theme.js +5 -1
- package/dist/types/core/charts/bartable/types.d.ts +14 -1
- package/dist/types/core/charts/box/types.d.ts +3 -1
- package/dist/types/core/charts/choropleth/layout.d.ts +1 -5
- package/dist/types/core/charts/choropleth/types.d.ts +19 -0
- package/dist/types/core/charts/cohort/types.d.ts +16 -3
- package/dist/types/core/charts/creative/types.d.ts +21 -0
- package/dist/types/core/charts/dimswitch/compile.d.ts +15 -2
- package/dist/types/core/charts/dimswitch/types.d.ts +24 -1
- package/dist/types/core/charts/gantt/calendar.d.ts +20 -0
- package/dist/types/core/charts/gantt/columns.d.ts +56 -0
- package/dist/types/core/charts/gantt/layout.d.ts +8 -2
- package/dist/types/core/charts/gantt/model.d.ts +296 -0
- package/dist/types/core/charts/grid/metricStack.d.ts +9 -0
- package/dist/types/core/charts/grid/metricStackSchema.d.ts +13 -0
- package/dist/types/core/charts/histogram/types.d.ts +8 -0
- package/dist/types/core/charts/likert/layout.d.ts +10 -8
- package/dist/types/core/charts/pvm/types.d.ts +9 -1
- package/dist/types/core/charts/pyramid/types.d.ts +3 -1
- package/dist/types/core/charts/sankey/types.d.ts +5 -1
- package/dist/types/core/charts/status/layout.d.ts +3 -0
- package/dist/types/core/charts/table/resolve.d.ts +14 -0
- package/dist/types/core/footer.d.ts +2 -0
- package/dist/types/core/formatSpec.d.ts +10 -0
- package/dist/types/core/frame.d.ts +1 -1
- package/dist/types/core/geo/types.d.ts +2 -0
- package/dist/types/core/geometry.d.ts +1 -1
- package/dist/types/core/normalize/shared.d.ts +2 -0
- package/dist/types/core/registry.d.ts +4 -5
- package/dist/types/core/request.d.ts +6 -0
- package/dist/types/core/schema/capability.d.ts +20 -7
- package/dist/types/core/schema/generatedColumns.d.ts +168 -0
- package/dist/types/core/text.d.ts +16 -0
- package/dist/types/core/themeGeometry.d.ts +9 -0
- package/dist/types/core/timeAxis.d.ts +6 -1
- package/dist/types/core/types/diagram.d.ts +7 -0
- package/dist/types/core/types/options.d.ts +83 -12
- package/dist/types/core/types/table.d.ts +21 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/types/react/barrelCharts.d.ts +16 -5
- package/dist/types/react/charts/butterfly.d.ts +2 -2
- package/dist/types/react/charts/dot.d.ts +7 -1
- package/dist/types/react/charts/pareto.d.ts +4 -1
- package/dist/types/react/charts/variance.d.ts +3 -1
- package/dist/types/react/hover/labelCard.d.ts +11 -2
- package/dist/types/react/prepare.d.ts +7 -1
- package/dist/types/theme.d.ts +2 -0
- package/dist/validate.js +15 -5
- package/docs/manual.md +31 -3
- package/docs/reference/bar.md +3 -0
- package/docs/reference/bartable.md +16 -1
- package/docs/reference/box.md +8 -1
- package/docs/reference/bullet.md +12 -1
- package/docs/reference/butterfly.md +7 -1
- package/docs/reference/choropleth.md +14 -1
- package/docs/reference/cohort.md +25 -5
- package/docs/reference/column.md +1 -0
- package/docs/reference/combo.md +1 -0
- package/docs/reference/creative.md +13 -0
- package/docs/reference/diagram.md +5 -0
- package/docs/reference/dimswitch.md +50 -32
- package/docs/reference/dot.md +7 -2
- package/docs/reference/fixtures.md +57 -0
- package/docs/reference/funnel.md +5 -0
- package/docs/reference/gantt.md +10 -2
- package/docs/reference/grid.md +9 -2
- package/docs/reference/heatmap.md +6 -0
- package/docs/reference/histogram.md +2 -2
- package/docs/reference/kpi.md +5 -1
- package/docs/reference/likert.md +8 -0
- package/docs/reference/options.md +4 -3
- package/docs/reference/pareto.md +1 -1
- package/docs/reference/pvm.md +7 -1
- package/docs/reference/pyramid.md +6 -0
- package/docs/reference/react.md +1 -2
- package/docs/reference/sankey.md +6 -2
- package/docs/reference/slope.md +6 -0
- package/docs/reference/sparkline.md +1 -1
- package/docs/reference/status.md +7 -1
- package/docs/reference/table.md +16 -4
- package/docs/reference/tilemap.md +1 -1
- package/docs/reference/treemap.md +1 -1
- package/docs/reference/waffle.md +1 -1
- package/docs/reference/waterfall.md +4 -1
- package/package.json +1 -1
- package/dist/chunk-FG5L2LUK.js +0 -89
- package/dist/chunk-IFQN4GKK.js +0 -1852
- package/dist/chunk-O36WX56O.js +0 -13
- package/dist/chunk-WIVFIVFZ.js +0 -27
- package/dist/chunk-ZWNRLIFT.js +0 -24
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seatsPastBlockers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7FAO4ICF.js";
|
|
4
4
|
import {
|
|
5
5
|
fittedLabel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XFCBH3TI.js";
|
|
7
7
|
import {
|
|
8
8
|
chartTheme
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IW3YUMPI.js";
|
|
10
10
|
import {
|
|
11
11
|
chartString
|
|
12
12
|
} from "./chunk-VJ7VBB6S.js";
|
|
13
13
|
import {
|
|
14
14
|
structureCount
|
|
15
15
|
} from "./chunk-XCROSJ2Z.js";
|
|
16
|
+
import {
|
|
17
|
+
generatedIdList,
|
|
18
|
+
generatedIdWarnings
|
|
19
|
+
} from "./chunk-SXAZDIGM.js";
|
|
16
20
|
import {
|
|
17
21
|
ACCEPTANCE_PROBE,
|
|
18
22
|
AUTO_LEGEND,
|
|
@@ -25,7 +29,7 @@ import {
|
|
|
25
29
|
rowDrivenHeight,
|
|
26
30
|
rowSizing,
|
|
27
31
|
spread1DResult
|
|
28
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AFGQXMKT.js";
|
|
29
33
|
import {
|
|
30
34
|
CROSSABLE_RULE_PART,
|
|
31
35
|
PRIORITY,
|
|
@@ -46,15 +50,15 @@ import {
|
|
|
46
50
|
segmentHitsRect,
|
|
47
51
|
solveFrame,
|
|
48
52
|
solveLabels
|
|
49
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-WSKZZ2ZB.js";
|
|
50
54
|
import {
|
|
51
55
|
disclosureNote,
|
|
52
56
|
disclosuresShown
|
|
53
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WZB6R2ZX.js";
|
|
54
58
|
import {
|
|
55
59
|
parseISODate,
|
|
56
60
|
utcDate
|
|
57
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-D3PQAVFW.js";
|
|
58
62
|
import {
|
|
59
63
|
canvasMargin,
|
|
60
64
|
contrastInkPaint,
|
|
@@ -71,7 +75,7 @@ import {
|
|
|
71
75
|
separationStroke,
|
|
72
76
|
strokeToken,
|
|
73
77
|
surfaceFloorPaint
|
|
74
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-JARJP576.js";
|
|
75
79
|
import {
|
|
76
80
|
contrastRatio
|
|
77
81
|
} from "./chunk-DRHQG44U.js";
|
|
@@ -84,7 +88,7 @@ import {
|
|
|
84
88
|
accessibleTitle,
|
|
85
89
|
resolveHighlight,
|
|
86
90
|
resolveSize
|
|
87
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-FX5VZK5F.js";
|
|
88
92
|
import {
|
|
89
93
|
maxOf,
|
|
90
94
|
minOf,
|
|
@@ -93,7 +97,7 @@ import {
|
|
|
93
97
|
import {
|
|
94
98
|
compareText,
|
|
95
99
|
defaultMeasurer
|
|
96
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-UIHGGWES.js";
|
|
97
101
|
|
|
98
102
|
// src/core/charts/gantt/calendar.ts
|
|
99
103
|
var DAY_MS = 864e5;
|
|
@@ -117,26 +121,27 @@ function floorTo(unit, d) {
|
|
|
117
121
|
return utcDate(d.getUTCFullYear(), 0, 1);
|
|
118
122
|
}
|
|
119
123
|
}
|
|
120
|
-
function nextOf(unit, d) {
|
|
124
|
+
function nextOf(unit, d, step = 1) {
|
|
121
125
|
switch (unit) {
|
|
122
126
|
case "week":
|
|
123
|
-
return utcDate(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate() + 7);
|
|
127
|
+
return utcDate(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate() + 7 * step);
|
|
124
128
|
case "month":
|
|
125
|
-
return utcDate(d.getUTCFullYear(), d.getUTCMonth() +
|
|
129
|
+
return utcDate(d.getUTCFullYear(), d.getUTCMonth() + step, 1);
|
|
126
130
|
case "quarter":
|
|
127
|
-
return utcDate(d.getUTCFullYear(), d.getUTCMonth() + 3, 1);
|
|
131
|
+
return utcDate(d.getUTCFullYear(), d.getUTCMonth() + 3 * step, 1);
|
|
128
132
|
case "year":
|
|
129
|
-
return utcDate(d.getUTCFullYear() +
|
|
133
|
+
return utcDate(d.getUTCFullYear() + step, 0, 1);
|
|
130
134
|
}
|
|
131
135
|
}
|
|
132
136
|
function ceilTo(unit, d) {
|
|
133
137
|
let f = floorTo(unit, d);
|
|
134
138
|
return dayNum(f) === dayNum(d) ? f : nextOf(unit, f);
|
|
135
139
|
}
|
|
136
|
-
|
|
137
|
-
|
|
140
|
+
var SHORTEST_DAYS = { week: 7, month: 28, quarter: 89, year: 365 };
|
|
141
|
+
function boundariesOf(unit, fromDay, toDay, width) {
|
|
142
|
+
let step = Math.max(1, Math.ceil((toDay - fromDay) / SHORTEST_DAYS[unit] / width)), out = [], d = floorTo(unit, dateFromDay(fromDay));
|
|
138
143
|
for (; dayNum(d) < toDay; )
|
|
139
|
-
out.push(d), d = nextOf(unit, d);
|
|
144
|
+
out.push(d), d = nextOf(unit, d, step);
|
|
140
145
|
return out;
|
|
141
146
|
}
|
|
142
147
|
var TIERS = {
|
|
@@ -146,8 +151,76 @@ var TIERS = {
|
|
|
146
151
|
weeks: { major: "month", minor: "week", majorFmts: ["MMM yyyy", "MMM"], minorFmts: ["'W'w"] }
|
|
147
152
|
};
|
|
148
153
|
|
|
154
|
+
// src/core/charts/gantt/columns.ts
|
|
155
|
+
var MAX_COLS = 3, COLUMN_PLAN = /* @__PURE__ */ Symbol("ganttColumnPlan"), columnPlan = (options) => options[COLUMN_PLAN], labelsOnly = (overrides) => overrides && Object.fromEntries(Object.entries(overrides).flatMap(([id, column]) => column.label === void 0 ? [] : [[id, { label: column.label }]]));
|
|
156
|
+
function resolveGanttColumns(options) {
|
|
157
|
+
let plain = columnPlan(options)?.plain === !0, overrides = plain ? labelsOnly(options.columnOverrides) : options.columnOverrides, meta = Array.from({ length: MAX_COLS }, (_, k) => overrides?.[`meta${k}`]), headers = meta.some((column) => column?.label !== void 0) ? meta.map((column, k) => column?.label ?? options.colHeaders?.[k] ?? "") : options.colHeaders, order = plain ? [] : options.columnOrder ?? [], plotAt = order.indexOf("plot"), metaAt = order.indexOf("meta"), placesBlocks = plotAt >= 0 || metaAt >= 0;
|
|
158
|
+
return {
|
|
159
|
+
...overrides?.name ? { name: overrides.name } : {},
|
|
160
|
+
meta,
|
|
161
|
+
headers,
|
|
162
|
+
metaAfter: plotAt >= 0 && (metaAt < 0 || plotAt < metaAt),
|
|
163
|
+
authored: meta.some(Boolean) || placesBlocks,
|
|
164
|
+
layoutAuthored: placesBlocks || [overrides?.name, ...meta].some((column) => column?.width !== void 0 || column?.align !== void 0 || column?.headAlign !== void 0)
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function alignedX(x, track, w, align) {
|
|
168
|
+
return align === "right" ? x + track - w : align === "center" ? x + (track - w) / 2 : x;
|
|
169
|
+
}
|
|
170
|
+
function ganttColumnWarnings(env, rows, stacked, widths) {
|
|
171
|
+
let { columnOverrides: overrides, columnOrder: order } = env.options;
|
|
172
|
+
if (overrides === void 0 && order === void 0) return [];
|
|
173
|
+
let count = Math.min(MAX_COLS, Math.max(0, ...rows.map((row) => row.cols.length))), metaIds = Array.from({ length: count }, (_, k) => `meta${k}`), warnings = [
|
|
174
|
+
...generatedIdWarnings("gantt", "columnOverrides", overrides, ["name", ...metaIds]),
|
|
175
|
+
...generatedIdWarnings("gantt", "columnOrder", order, [...count ? ["meta"] : [], "plot"])
|
|
176
|
+
], layoutKeys = Object.entries(overrides ?? {}).filter(([, column]) => column.width !== void 0 || column.align !== void 0 || column.headAlign !== void 0).map(([id]) => id);
|
|
177
|
+
return !stacked && columnPlan(env.options)?.plain ? (layoutKeys.length && warnings.push({
|
|
178
|
+
code: "option-ignored",
|
|
179
|
+
severity: "warn",
|
|
180
|
+
field: ["options", "columnOverrides"],
|
|
181
|
+
message: `width, align and headAlign of ${layoutKeys.join(", ")} would hide a label or miss the height on this canvas, so they do nothing here; label still prints`,
|
|
182
|
+
suggest: "Widen the chart, or lower the width."
|
|
183
|
+
}), order?.length && warnings.push({
|
|
184
|
+
code: "option-ignored",
|
|
185
|
+
severity: "warn",
|
|
186
|
+
field: ["options", "columnOrder"],
|
|
187
|
+
message: "columnOrder would hide a label on this canvas, so it does nothing here",
|
|
188
|
+
suggest: "Widen the chart."
|
|
189
|
+
}), warnings) : stacked ? (layoutKeys.length && warnings.push({
|
|
190
|
+
code: "option-ignored",
|
|
191
|
+
severity: "warn",
|
|
192
|
+
field: ["options", "columnOverrides"],
|
|
193
|
+
message: `this canvas draws the gantt in its stacked form, which has no columns, so width, align and headAlign of ${layoutKeys.join(", ")} do nothing here; label still prints`,
|
|
194
|
+
suggest: "Widen the chart or lower the width to draw the columns."
|
|
195
|
+
}), order?.length && warnings.push({
|
|
196
|
+
code: "option-ignored",
|
|
197
|
+
severity: "warn",
|
|
198
|
+
field: ["options", "columnOrder"],
|
|
199
|
+
message: "this canvas draws the gantt in its stacked form, where the metadata sits on each name line, so columnOrder does nothing here",
|
|
200
|
+
suggest: "Widen the chart to draw the columns."
|
|
201
|
+
}), warnings) : (widths.floored.length && warnings.push({
|
|
202
|
+
code: "generated-column-width-floored",
|
|
203
|
+
severity: "warn",
|
|
204
|
+
field: ["options", "columnOverrides"],
|
|
205
|
+
message: `columnOverrides width of ${widths.floored.join(", ")} is under what the text needs, so the column stays as wide as its text`,
|
|
206
|
+
suggest: "Raise the width, or shorten the text."
|
|
207
|
+
}), widths.nameGaveWay && warnings.push({
|
|
208
|
+
code: "generated-column-width-floored",
|
|
209
|
+
severity: "warn",
|
|
210
|
+
field: ["options", "columnOverrides"],
|
|
211
|
+
message: `columnOverrides width of name wraps the row names, and the rows would not fit this height, so the column is ${Math.round(widths.name ?? 0)} px wide`,
|
|
212
|
+
suggest: "Raise the width, or make the chart taller."
|
|
213
|
+
}), widths.capped.length && warnings.push({
|
|
214
|
+
code: "generated-column-width-capped",
|
|
215
|
+
severity: "warn",
|
|
216
|
+
field: ["options", "columnOverrides"],
|
|
217
|
+
message: `columnOverrides width of ${widths.capped.join(", ")} leaves too little timeline on this canvas, so it gave way. Ids: ${generatedIdList("gantt", "columnOverrides")}`,
|
|
218
|
+
suggest: "Lower the width, or widen the chart."
|
|
219
|
+
}), warnings);
|
|
220
|
+
}
|
|
221
|
+
|
|
149
222
|
// src/core/charts/gantt/domain.ts
|
|
150
|
-
var ITEM_KINDS = ["bar", "milestone", "chevron", "bracket", "shade", "rule"]
|
|
223
|
+
var ITEM_KINDS = ["bar", "milestone", "chevron", "bracket", "shade", "rule"];
|
|
151
224
|
function resolveGanttEnv(options, warnings) {
|
|
152
225
|
let theme = resolveSemanticPaletteTheme(
|
|
153
226
|
chartTheme(options),
|
|
@@ -156,6 +229,7 @@ function resolveGanttEnv(options, warnings) {
|
|
|
156
229
|
), tick = { family: theme.type.family, ...theme.type.axis };
|
|
157
230
|
return {
|
|
158
231
|
options,
|
|
232
|
+
columns: resolveGanttColumns(options),
|
|
159
233
|
theme,
|
|
160
234
|
surface: resolveSurface(theme),
|
|
161
235
|
size: resolveSize(options.size),
|
|
@@ -429,8 +503,8 @@ function resolveGanttDomain(data, env, warnings) {
|
|
|
429
503
|
return {
|
|
430
504
|
rows,
|
|
431
505
|
...calendar,
|
|
432
|
-
majorStarts: boundariesOf(calendar.tier.major, calendar.d0Day, calendar.d1Day),
|
|
433
|
-
minorStarts: boundariesOf(calendar.tier.minor, calendar.d0Day, calendar.d1Day),
|
|
506
|
+
majorStarts: boundariesOf(calendar.tier.major, calendar.d0Day, calendar.d1Day, env.size.width),
|
|
507
|
+
minorStarts: boundariesOf(calendar.tier.minor, calendar.d0Day, calendar.d1Day, env.size.width),
|
|
434
508
|
events,
|
|
435
509
|
// Above three events the labels move to numbered footnotes. Badge events print their own label and never count.
|
|
436
510
|
eventBadgeMode: events.filter((event) => !event.badge).length > 3,
|
|
@@ -499,12 +573,12 @@ function separatedFill(ctx, authored, rowId) {
|
|
|
499
573
|
};
|
|
500
574
|
}
|
|
501
575
|
function backgroundLayers(ctx, domain) {
|
|
502
|
-
let { env, band, body, nodes } = ctx, { options, surface } = env, { rows, todayDay, d0Day } = domain, { rowsTop, rowsBottom } = band, { x, bodyX
|
|
576
|
+
let { env, band, body, nodes } = ctx, { options, surface } = env, { rows, todayDay, d0Day } = domain, { rowsTop, rowsBottom } = band, { x, bodyX } = body, elapsed = [];
|
|
503
577
|
if (options.rowTint && rows.forEach((r, i) => {
|
|
504
578
|
i % 2 === 1 && nodes.push({
|
|
505
579
|
t: "rect",
|
|
506
580
|
id: `rowTint:${r.id}`,
|
|
507
|
-
rect: { x: body.inner.x, y: band.rowY[i], w:
|
|
581
|
+
rect: { x: body.inner.x, y: band.rowY[i], w: body.rowsRight - body.inner.x, h: band.stacked ? band.rowY[i + 1] - band.rowY[i] : band.rowHs[i] },
|
|
508
582
|
fill: ganttRowPaint(),
|
|
509
583
|
owner: { categoryId: r.id },
|
|
510
584
|
part: "rowTint"
|
|
@@ -553,7 +627,7 @@ function backgroundLayers(ctx, domain) {
|
|
|
553
627
|
});
|
|
554
628
|
for (let i = 1; i <= rows.length; i++) {
|
|
555
629
|
let y = band.rowY[i];
|
|
556
|
-
nodes.push({ t: "line", id: `rowRule:${i}`, x1: body.inner.x, y1: y, x2:
|
|
630
|
+
nodes.push({ t: "line", id: `rowRule:${i}`, x1: body.inner.x, y1: y, x2: body.rowsRight, y2: y, stroke: { token: "grid" }, width: strokeToken(env.theme, "hair"), owner: {}, part: "rowRule" });
|
|
557
631
|
}
|
|
558
632
|
return { elapsed, shades };
|
|
559
633
|
}
|
|
@@ -893,7 +967,7 @@ function stackedCells(env, row) {
|
|
|
893
967
|
});
|
|
894
968
|
}
|
|
895
969
|
function stackedHeaders(env, rows) {
|
|
896
|
-
let count = Math.min(MAX_COLS, Math.max(0, maxOf(rows.map((row) => row.cols.length)))), headers = Array.from({ length: count }, (_, k) => ({ k, text: env.
|
|
970
|
+
let count = Math.min(MAX_COLS, Math.max(0, maxOf(rows.map((row) => row.cols.length)))), headers = Array.from({ length: count }, (_, k) => ({ k, text: env.columns.headers?.[k]?.trim() ?? "" })).filter((header) => header.text && rows.some((row) => row.cols[header.k]?.text));
|
|
897
971
|
return headers.map((header, i) => {
|
|
898
972
|
let line = i < headers.length - 1 ? `${header.text} \xB7` : header.text;
|
|
899
973
|
return { ...header, line, w: env.measure(line, env.fonts.headerMajor).width };
|
|
@@ -906,10 +980,12 @@ function stackedLineWidth(env, domain, plotW) {
|
|
|
906
980
|
let { options, fonts, measure } = env, rows = domain.rows.filter((row) => !row.shared), fontOf = (r) => r.indent === 0 ? fonts.strong : fonts.label, gap = stackedGap(env), nameW = (r) => Math.min(r.indent, 6) * INDENT_PX + measure(r.label.trim().split(/\s+/).join(" "), fontOf(r)).width + (r.sublabel ? gap.name + measure(r.sublabel, fonts.label).width : 0), lineW = Math.max(0, maxOf(rows.map((row) => {
|
|
907
981
|
let cells = stackedCells(env, row);
|
|
908
982
|
return nameW(row) + (cells.length ? gap.name + cells.reduce((sum, cell) => sum + cell.w, 0) + (cells.length - 1) * gap.cell : 0);
|
|
909
|
-
})), stackedHeaders(env, domain.rows).reduce((sum, header) => sum + header.w, 0));
|
|
983
|
+
})), stackedHeaders(env, domain.rows).reduce((sum, header) => sum + header.w, 0) + stackedNameHeadW(env));
|
|
910
984
|
if (lineW > plotW) return;
|
|
911
|
-
|
|
912
|
-
|
|
985
|
+
if (columnPlan(options)?.stacked) return lineW;
|
|
986
|
+
let columns = planMetadataColumns(domain.rows, env.columns.headers, 0, options.mode === "compact" ? COMPACT_COLUMN_CAP : COLUMN_CAP, 0, 0, fonts.label, fonts.headerMajor, measure, options.target), count = Math.min(MAX_COLS, Math.max(0, maxOf(domain.rows.map((row) => row.cols.length)))), tableTimeline = plotW - Math.max(0, maxOf(rows.map(nameW))) - 12 - columns.colWs.reduce((sum, width) => sum + width, 0) - (columns.colWs.length ? 4 : 0);
|
|
987
|
+
if (!(columns.colWs.length >= count && tableTimeline >= STACKED_TIMELINE_SHARE * plotW))
|
|
988
|
+
return env.columns.layoutAuthored && authoredColumnsFit(env, domain, plotW) ? void 0 : lineW;
|
|
913
989
|
}
|
|
914
990
|
function colorKey(env, domain, paints, warnings) {
|
|
915
991
|
let byColor = /* @__PURE__ */ new Map();
|
|
@@ -1010,7 +1086,7 @@ function ganttFrame(env, domain, paints, warnings, milestoneKey = [], heightOpen
|
|
|
1010
1086
|
measure
|
|
1011
1087
|
},
|
|
1012
1088
|
claims
|
|
1013
|
-
), plot0 = frame.plot, headerRowH = measure("Q1 2026", fonts.headerMajor).height + 6, headerH = 2 * headerRowH, markerLabelH = Math.max(measure(chartString(env.options, "today"), fonts.strong).height, measure(chartString(env.options, "eventName"), fonts.tick).height), markerStrip = markerBand(domain, markerLabelH) + badgeStrip(env, domain), headerTop = plot0.y + markerStrip, lineW = stackedLineWidth(env, domain, plot0.w), stackedFloor = domain.rows.length * STACKED_LANE_FLOOR + domain.rows.filter((row) => !row.shared).length * (measure("Hg", fonts.strong).height + STACKED_NAME_AIR) + measure("Hg", fonts.headerMajor).height + 6, stackedLineW = lineW !== void 0 && (heightOpen || plot0.h - markerStrip - headerH >= stackedFloor) ? lineW : void 0, stacked = stackedLineW !== void 0, n = domain.rows.length, sharedLine = stacked && sharedLabelsNeedLine(domain, plot0), named = domain.rows.filter((row) => !row.shared || sharedLine).length, nameLineH = stacked ? measure("Hg", fonts.strong).height + STACKED_NAME_AIR : 0, colHeaderH = stacked && stackedHeaders(env, domain.rows).length > 0 ? measure("Hg", fonts.headerMajor).height + 6 : 0, rowsTop = headerTop + headerH + colHeaderH, bodyH = Math.max(10, plot0.y + plot0.h - rowsTop), lanePitch = stacked ? domain.milestones.clusterRowH > GANTT_ROW_PITCH ? domain.milestones.clusterRowH : STACKED_LANE_PITCH : domain.milestones.clusterRowH, names = stacked ? void 0 : rowNames(env, domain, plot0.w, !1, headerTop, headerH), floors = domain.rows.map((_, i) => {
|
|
1089
|
+
), plot0 = frame.plot, headerRowH = measure("Q1 2026", fonts.headerMajor).height + 6, headerH = 2 * headerRowH, markerLabelH = Math.max(measure(chartString(env.options, "today"), fonts.strong).height, measure(chartString(env.options, "eventName"), fonts.tick).height), markerStrip = markerBand(domain, markerLabelH) + badgeStrip(env, domain), headerTop = plot0.y + markerStrip, lineW = stackedLineWidth(env, domain, plot0.w), stackedFloor = domain.rows.length * STACKED_LANE_FLOOR + domain.rows.filter((row) => !row.shared).length * (measure("Hg", fonts.strong).height + STACKED_NAME_AIR) + measure("Hg", fonts.headerMajor).height + 6, stackedLineW = lineW !== void 0 && (heightOpen || plot0.h - markerStrip - headerH >= stackedFloor) ? lineW : void 0, stacked = stackedLineW !== void 0, n = domain.rows.length, sharedLine = stacked && sharedLabelsNeedLine(domain, plot0), named = domain.rows.filter((row) => !row.shared || sharedLine).length, nameLineH = stacked ? measure("Hg", fonts.strong).height + STACKED_NAME_AIR : 0, colHeaderH = stacked && (stackedHeaders(env, domain.rows).length > 0 || stackedNameHeadW(env) > 0) ? measure("Hg", fonts.headerMajor).height + 6 : 0, rowsTop = headerTop + headerH + colHeaderH, bodyH = Math.max(10, plot0.y + plot0.h - rowsTop), lanePitch = stacked ? domain.milestones.clusterRowH > GANTT_ROW_PITCH ? domain.milestones.clusterRowH : STACKED_LANE_PITCH : domain.milestones.clusterRowH, names = stacked ? void 0 : rowNames(env, domain, plot0.w, !1, headerTop, headerH), floors = domain.rows.map((_, i) => {
|
|
1014
1090
|
let floor = names ? rowTextFloor(names.rowLabels[i]) : 0;
|
|
1015
1091
|
return floor > MIN_ROW_H ? floor : 0;
|
|
1016
1092
|
}), pitches = domain.rows.map((row, i) => Math.max(lanePitch, domain.milestones.flagPitch.get(row.id) ?? 0, floors[i] > 0 ? floors[i] + LABEL_PAD : 0)), extra = pitches.reduce((sum, pitch) => sum + pitch - lanePitch, 0), squeezed = squeezeRows(pitches, floors, Math.max(6 * n, bodyH - named * nameLineH)), uneven = extra > 0 || squeezed.pinned, rowH = uneven ? lanePitch * squeezed.scale : Math.min(lanePitch, Math.max(6, (bodyH - named * nameLineH) / n)), rowHs = uneven ? squeezed.heights : pitches.map(() => rowH), rowY = [rowsTop];
|
|
@@ -1065,11 +1141,11 @@ function completeRowName(row, font, measure, subFont) {
|
|
|
1065
1141
|
...row.sublabel ? { sub: { text: row.sublabel, w: measure(row.sublabel, subFont).width, h: subFont.size } } : {}
|
|
1066
1142
|
};
|
|
1067
1143
|
}
|
|
1068
|
-
function planMetadataColumns(rows, headers, startX, cap, headerY, headerH, font, headerFont, measure, target) {
|
|
1069
|
-
let count = Math.min(MAX_COLS, Math.max(0, maxOf(rows.map((row) => row.cols.length)))), fitCell = (text, cellFont, reserve = 0) => {
|
|
1070
|
-
let fitted = fitText(text, cellFont, cap - reserve, 1, measure, { target, typeRole: cellFont === headerFont ? "axis" : "label" });
|
|
1144
|
+
function planMetadataColumns(rows, headers, startX, cap, headerY, headerH, font, headerFont, measure, target, authored) {
|
|
1145
|
+
let count = Math.min(MAX_COLS, Math.max(0, maxOf(rows.map((row) => row.cols.length)))), fitCell = (text, cellFont, k, reserve = 0) => {
|
|
1146
|
+
let fitted = fitText(text, cellFont, (authored?.keepAll || authored?.widths[k] !== void 0 ? AUTHORED_CAP : cap) - reserve, 1, measure, { target, typeRole: cellFont === headerFont ? "axis" : "label" });
|
|
1071
1147
|
return { text: fitted.lines[0] ?? "", ...fitted.title ? { title: fitted.title } : {} };
|
|
1072
|
-
}, allTexts = rows.map((row) => row.cols.slice(0, count).map((cell) => cell.tone ? { ...fitCell(cell.text, font, SWATCH_RESERVE), tone: cell.tone } : fitCell(cell.text, font))), allHeaders = Array.from({ length: count }, (_, index) => fitCell(headers?.[index] ?? "", headerFont)), shown = allHeaders.flatMap((header, index) => header.title === void 0 && allTexts.every((row) => row[index]?.title === void 0) ? [index] : []), colTexts = allTexts.map((row) => shown.flatMap((index) => row[index] ? [row[index]] : [])), headerCells = shown.map((index) => allHeaders[index]), dropped = rows.flatMap((row) => row.cols.slice(0, count).flatMap((cell, index) => shown.includes(index) || !cell.text ? [] : [{
|
|
1148
|
+
}, allTexts = rows.map((row) => row.cols.slice(0, count).map((cell, k) => cell.tone ? { ...fitCell(cell.text, font, k, SWATCH_RESERVE), tone: cell.tone } : fitCell(cell.text, font, k))), allHeaders = Array.from({ length: count }, (_, index) => fitCell(headers?.[index] ?? "", headerFont, index)), shown = allHeaders.flatMap((header, index) => header.title === void 0 && allTexts.every((row) => row[index]?.title === void 0) ? [index] : []), colTexts = allTexts.map((row) => shown.flatMap((index) => row[index] ? [row[index]] : [])), headerCells = shown.map((index) => allHeaders[index]), dropped = rows.flatMap((row) => row.cols.slice(0, count).flatMap((cell, index) => shown.includes(index) || !cell.text ? [] : [{
|
|
1073
1149
|
id: `col:${row.id}:hidden${index}`,
|
|
1074
1150
|
kind: "activity",
|
|
1075
1151
|
typeRole: "label",
|
|
@@ -1083,14 +1159,20 @@ function planMetadataColumns(rows, headers, startX, cap, headerY, headerH, font,
|
|
|
1083
1159
|
owed: !0,
|
|
1084
1160
|
noteText: `${cell.text} (${row.label})`,
|
|
1085
1161
|
candidates: []
|
|
1086
|
-
}])), headerTexts = headerCells.map((cell) => cell.text),
|
|
1162
|
+
}])), headerTexts = headerCells.map((cell) => cell.text), contentWs = headerTexts.map((text, index) => Math.max(
|
|
1087
1163
|
12,
|
|
1088
1164
|
measure(text, headerFont).width,
|
|
1089
1165
|
maxOf(colTexts.map((row) => row[index]?.text ? measure(row[index].text, font).width + (row[index].tone ? SWATCH_RESERVE : 0) : 0))
|
|
1090
|
-
)
|
|
1166
|
+
)), widthOf = (index) => authored?.widths[shown[index]], colWs = contentWs.map((content, index) => {
|
|
1167
|
+
let width = widthOf(index);
|
|
1168
|
+
return width !== void 0 ? Math.max(width, content + AUTHORED_MIN_GAP) : authored?.flushEnd && index === contentWs.length - 1 ? content : content + 10;
|
|
1169
|
+
}), aligned = authored ? colWs.map((width, index) => ({
|
|
1170
|
+
inner: authored.flushEnd && index === colWs.length - 1 ? width : Math.max(contentWs[index], width - 10),
|
|
1171
|
+
...authored.overrides[shown[index]]?.align ? { align: authored.overrides[shown[index]].align } : {}
|
|
1172
|
+
})) : void 0, colXs = [], headerRequests = [], x = startX;
|
|
1091
1173
|
return headerTexts.forEach((text, index) => {
|
|
1092
1174
|
if (colXs.push(x), text) {
|
|
1093
|
-
let size = measure(text, headerFont);
|
|
1175
|
+
let size = measure(text, headerFont), override = authored?.overrides[shown[index]], headAlign = override?.headAlign ?? override?.align;
|
|
1094
1176
|
headerRequests.push({
|
|
1095
1177
|
id: "colHeader:" + index,
|
|
1096
1178
|
kind: "activity",
|
|
@@ -1104,20 +1186,29 @@ function planMetadataColumns(rows, headers, startX, cap, headerY, headerH, font,
|
|
|
1104
1186
|
candidates: [{
|
|
1105
1187
|
slot: "columnHeader",
|
|
1106
1188
|
penalty: 0,
|
|
1107
|
-
rect: { x, y: headerY + (headerH - size.height) / 2, w: size.width, h: size.height }
|
|
1189
|
+
rect: { x: headAlign ? alignedX(x, aligned[index].inner, size.width, headAlign) : x, y: headerY + (headerH - size.height) / 2, w: size.width, h: size.height }
|
|
1108
1190
|
}]
|
|
1109
1191
|
});
|
|
1110
1192
|
}
|
|
1111
1193
|
x += colWs[index];
|
|
1112
|
-
}), {
|
|
1194
|
+
}), {
|
|
1195
|
+
colTexts,
|
|
1196
|
+
colWs,
|
|
1197
|
+
colXs,
|
|
1198
|
+
headerRequests: [...headerRequests, ...dropped],
|
|
1199
|
+
...authored ? { aligned, shown, floors: contentWs.map((content) => content + AUTHORED_MIN_GAP) } : {}
|
|
1200
|
+
};
|
|
1113
1201
|
}
|
|
1114
|
-
function stackedColumns(env, rows, band, right) {
|
|
1202
|
+
function stackedColumns(env, rows, band, left, right) {
|
|
1115
1203
|
let headers = stackedHeaders(env, rows);
|
|
1116
1204
|
return {
|
|
1117
1205
|
colTexts: rows.map((row) => stackedCells(env, row).map((cell) => ({ text: cell.text, ...cell.tone ? { tone: cell.tone } : {} }))),
|
|
1118
1206
|
colWs: [],
|
|
1119
1207
|
colXs: [],
|
|
1120
|
-
headerRequests:
|
|
1208
|
+
headerRequests: [
|
|
1209
|
+
...stackedNameHeadW(env) > 0 ? [nameHeadRequest(env, env.columns.name.label.trim(), { x: left, w: 0 }, band.rowsTop - band.colHeaderH, band.colHeaderH, left)] : [],
|
|
1210
|
+
...headers.length === 0 ? [] : stackedHeaderRequests(env, headers, band, right)
|
|
1211
|
+
]
|
|
1121
1212
|
};
|
|
1122
1213
|
}
|
|
1123
1214
|
function stackedHeaderRequests(env, headers, band, right) {
|
|
@@ -1138,18 +1229,118 @@ function stackedHeaderRequests(env, headers, band, right) {
|
|
|
1138
1229
|
};
|
|
1139
1230
|
}).reverse();
|
|
1140
1231
|
}
|
|
1141
|
-
|
|
1232
|
+
function stackedNameHeadW(env) {
|
|
1233
|
+
let label = env.columns.name?.label?.trim();
|
|
1234
|
+
return label ? env.measure(label, env.fonts.headerMajor).width + stackedGap(env).name : 0;
|
|
1235
|
+
}
|
|
1236
|
+
function nameHeadRequest(env, text, band, y, h, x) {
|
|
1237
|
+
let font = env.fonts.headerMajor, size = env.measure(text, font), align = env.columns.name?.headAlign ?? env.columns.name?.align;
|
|
1238
|
+
return {
|
|
1239
|
+
id: "colHeader:name",
|
|
1240
|
+
kind: "activity",
|
|
1241
|
+
owner: {},
|
|
1242
|
+
text,
|
|
1243
|
+
lines: [text],
|
|
1244
|
+
font,
|
|
1245
|
+
typeRole: "axis",
|
|
1246
|
+
priority: PRIORITY.total,
|
|
1247
|
+
candidates: [{ slot: "columnHeader", penalty: 0, rect: { x: x ?? (align ? alignedX(band.x, band.w, size.width, align) : band.x), y: y + (h - size.height) / 2, w: size.width, h: size.height } }]
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
var COLUMN_CAP = 90, COMPACT_COLUMN_CAP = 30, AUTHORED_CAP = 1e6, AUTHORED_MIN_GAP = 4, MINIMUM_TIMELINE = 80, NO_AUTHORED_WIDTHS = { meta: [], keepAll: !1, floored: [], capped: [] };
|
|
1251
|
+
function nameFloorW(env, rows) {
|
|
1252
|
+
let { fonts, measure } = env, fontOf = (r) => r.indent === 0 ? fonts.strong : fonts.label;
|
|
1253
|
+
return Math.max(0, maxOf(rows.filter((row) => !row.shared).map((row) => nameBandW(completeRowName(row, fontOf(row), measure, fonts.label)))), nameHeadW(env));
|
|
1254
|
+
}
|
|
1255
|
+
function columnRoom(env, domain, plotW, hasColumns) {
|
|
1256
|
+
let laneReserve = domain.milestones.laneLabelW && env.options.mode !== "compact" ? 12 + domain.milestones.laneLabelW : 0;
|
|
1257
|
+
return plotW - 12 - (hasColumns ? env.columns.metaAfter ? 12 : 4 : 0) - Math.max(MINIMUM_TIMELINE, columnPlan(env.options)?.minimumTimeline ?? 0) - laneReserve;
|
|
1258
|
+
}
|
|
1259
|
+
function authoredColumnsFit(env, domain, plotW) {
|
|
1260
|
+
let { name, meta } = env.columns, { rows } = domain, plan = planMetadataColumns(
|
|
1261
|
+
rows,
|
|
1262
|
+
env.columns.headers,
|
|
1263
|
+
0,
|
|
1264
|
+
COLUMN_CAP,
|
|
1265
|
+
0,
|
|
1266
|
+
0,
|
|
1267
|
+
env.fonts.label,
|
|
1268
|
+
env.fonts.headerMajor,
|
|
1269
|
+
env.measure,
|
|
1270
|
+
env.options.target,
|
|
1271
|
+
{ overrides: meta, widths: meta.map((column) => column?.width), flushEnd: !1, keepAll: !0 }
|
|
1272
|
+
);
|
|
1273
|
+
return plan.colWs.reduce((sum, width) => sum + width, 0) + Math.max(name?.width ?? 0, nameFloorW(env, rows)) <= columnRoom(env, domain, plotW, plan.colWs.length > 0);
|
|
1274
|
+
}
|
|
1275
|
+
function authoredWidths(env, domain, plotW) {
|
|
1276
|
+
let { name, meta } = env.columns;
|
|
1277
|
+
if (!env.columns.layoutAuthored) return NO_AUTHORED_WIDTHS;
|
|
1278
|
+
let { fonts, measure, options } = env, { rows } = domain, nameFloor = nameFloorW(env, rows), widths = meta.map((column) => column?.width), plan = planMetadataColumns(
|
|
1279
|
+
rows,
|
|
1280
|
+
env.columns.headers,
|
|
1281
|
+
0,
|
|
1282
|
+
columnCap(env, rows, plotW),
|
|
1283
|
+
0,
|
|
1284
|
+
0,
|
|
1285
|
+
fonts.label,
|
|
1286
|
+
fonts.headerMajor,
|
|
1287
|
+
measure,
|
|
1288
|
+
options.target,
|
|
1289
|
+
{ overrides: meta, widths, flushEnd: !1, keepAll: !0 }
|
|
1290
|
+
), floored = [
|
|
1291
|
+
...name?.width !== void 0 && name.width < nameFloor ? ["name"] : [],
|
|
1292
|
+
...plan.shown.flatMap((k, index) => widths[k] !== void 0 && widths[k] < plan.floors[index] ? [`meta${k}`] : [])
|
|
1293
|
+
], drawn = plan.colWs.slice(), room = columnRoom(env, domain, plotW, drawn.length > 0), stepW = name?.width === void 0 ? void 0 : steppedNameW(env, domain, plotW, Math.max(name.width, nameFloor), room - drawn.reduce((sum, width) => sum + width, 0)), nameW = name?.width === void 0 ? void 0 : stepW ?? Math.max(name.width, nameFloor), excess = drawn.reduce((sum, width) => sum + width, 0) + (nameW ?? nameFloor) - room, capped = [];
|
|
1294
|
+
for (let index = drawn.length - 1; index >= 0 && excess > 0; index--) {
|
|
1295
|
+
let k = plan.shown[index];
|
|
1296
|
+
if (widths[k] === void 0) continue;
|
|
1297
|
+
let cut = Math.min(excess, drawn[index] - plan.floors[index]);
|
|
1298
|
+
cut <= 0 || (drawn[index] -= cut, widths[k] = drawn[index], excess -= cut, capped.push(`meta${k}`));
|
|
1299
|
+
}
|
|
1300
|
+
if (excess > 0 && nameW !== void 0 && nameW > nameFloor) {
|
|
1301
|
+
let cut = Math.min(excess, nameW - nameFloor);
|
|
1302
|
+
nameW -= cut, excess -= cut, capped.push("name");
|
|
1303
|
+
}
|
|
1304
|
+
return excess > 0 && meta.forEach((column, k) => {
|
|
1305
|
+
column?.width !== void 0 && !capped.includes(`meta${k}`) && capped.push(`meta${k}`), widths[k] = void 0;
|
|
1306
|
+
}), {
|
|
1307
|
+
...nameW === void 0 ? {} : { name: nameW },
|
|
1308
|
+
...stepW === void 0 ? {} : { nameGaveWay: !0 },
|
|
1309
|
+
meta: widths,
|
|
1310
|
+
keepAll: excess <= 0,
|
|
1311
|
+
floored: stepW === void 0 ? floored : floored.filter((id) => id !== "name"),
|
|
1312
|
+
capped
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
var singleLineNameW = (env, row) => Math.min(row.indent, 6) * INDENT_PX + env.measure(row.label.trim().split(/\s+/).join(" "), row.indent === 0 ? env.fonts.strong : env.fonts.label).width;
|
|
1316
|
+
function steppedNameW(env, domain, plotW, from, available) {
|
|
1317
|
+
let step = columnPlan(env.options)?.nameStep;
|
|
1318
|
+
if (step === void 0) return;
|
|
1319
|
+
let budget = defaultNameBudget(env, domain.rows, plotW, available), steps = [...new Set(domain.rows.map((row) => singleLineNameW(env, row)))].filter((width) => width > from && width <= budget).sort((a, b) => a - b);
|
|
1320
|
+
return steps[Math.min(step, steps.length - 1)];
|
|
1321
|
+
}
|
|
1322
|
+
function defaultNameBudget(env, rows, plotW, available) {
|
|
1323
|
+
let { fonts, measure } = env, fontOf = (r) => r.indent === 0 ? fonts.strong : fonts.label, named = rows.filter((row) => !row.shared), narrowest = Math.max(0, maxOf(named.map((row) => nameBandW(completeRowName(row, fontOf(row), measure, fonts.label))))), natural = Math.max(0, maxOf(named.map((row) => Math.min(row.indent, 6) * INDENT_PX + Math.max(measure(row.label, fontOf(row)).width, row.sublabel ? measure(row.sublabel, fonts.label).width : 0))));
|
|
1324
|
+
return Math.max(narrowest, Math.min(natural, plotW * 0.3, available));
|
|
1325
|
+
}
|
|
1326
|
+
function nameHeadW(env) {
|
|
1327
|
+
let label = env.columns.name?.label?.trim();
|
|
1328
|
+
return label ? env.measure(label, env.fonts.headerMajor).width : 0;
|
|
1329
|
+
}
|
|
1330
|
+
function authoredPlan(env, widths, flushEnd) {
|
|
1331
|
+
return env.columns.authored || env.columns.layoutAuthored ? { overrides: env.columns.meta, widths: widths.meta, flushEnd, keepAll: widths.keepAll } : void 0;
|
|
1332
|
+
}
|
|
1142
1333
|
function columnCap(env, rows, plotW) {
|
|
1143
|
-
let { fonts, measure } = env, colWs = planMetadataColumns(rows, env.
|
|
1334
|
+
let { fonts, measure } = env, colWs = planMetadataColumns(rows, env.columns.headers, 0, COLUMN_CAP, 0, 0, fonts.label, fonts.headerMajor, measure, env.options.target).colWs;
|
|
1144
1335
|
if (colWs.length === 0) return COLUMN_CAP;
|
|
1145
1336
|
let named = rows.filter((row) => !row.shared), fontOf = (r) => r.indent === 0 ? fonts.strong : fonts.label, narrowest = maxOf(named.map((row) => nameBandW(completeRowName(row, fontOf(row), measure, fonts.label)))), natural = maxOf(named.map((row) => Math.min(row.indent, 6) * INDENT_PX + Math.max(measure(row.label, fontOf(row)).width, row.sublabel ? measure(row.sublabel, fonts.label).width : 0))), names = Math.max(narrowest, Math.min(natural, plotW * 0.3));
|
|
1146
1337
|
return plotW - names - 12 - colWs.reduce((sum, width) => sum + width, 0) - 4 >= STACKED_TIMELINE_SHARE * plotW ? COLUMN_CAP : COMPACT_COLUMN_CAP;
|
|
1147
1338
|
}
|
|
1148
1339
|
var nameBandW = (name) => name.indentPx + Math.max(name.w, name.sub?.w ?? 0);
|
|
1149
1340
|
function rowNames(env, domain, plotW, stacked, headerTop, headerH) {
|
|
1150
|
-
let { fonts, measure } = env, { rows, milestones } = domain, measuredColumns = planMetadataColumns(
|
|
1341
|
+
let { fonts, measure } = env, { rows, milestones } = domain, widths = authoredWidths(env, domain, plotW), measuredColumns = planMetadataColumns(
|
|
1151
1342
|
rows,
|
|
1152
|
-
env.
|
|
1343
|
+
env.columns.headers,
|
|
1153
1344
|
0,
|
|
1154
1345
|
columnCap(env, rows, plotW),
|
|
1155
1346
|
headerTop,
|
|
@@ -1157,8 +1348,9 @@ function rowNames(env, domain, plotW, stacked, headerTop, headerH) {
|
|
|
1157
1348
|
fonts.label,
|
|
1158
1349
|
fonts.headerMajor,
|
|
1159
1350
|
measure,
|
|
1160
|
-
env.options.target
|
|
1161
|
-
|
|
1351
|
+
env.options.target,
|
|
1352
|
+
authoredPlan(env, widths, env.columns.metaAfter)
|
|
1353
|
+
).colWs, rowFontOf = (r) => r.indent === 0 ? fonts.strong : fonts.label, completeNames = rows.map((row) => completeRowName(row, rowFontOf(row), measure, fonts.label)), minimumLabelBandW = Math.max(0, maxOf(completeNames.filter((_, i) => !rows[i].shared).map(nameBandW))), minimumTimeline = 80, laneLabelW = milestones.laneLabelW, laneReserve = laneLabelW && env.options.mode !== "compact" ? 12 + laneLabelW : 0, availableNames = plotW - 12 - measuredColumns.reduce((sum, width) => sum + width, 0) - (measuredColumns.length ? env.columns.metaAfter ? 12 : 4 : 0) - minimumTimeline - laneReserve, nameBudget = widths.name ?? defaultNameBudget(env, rows, plotW, availableNames);
|
|
1162
1354
|
return { rowLabels: stacked ? completeNames.map((name, i) => {
|
|
1163
1355
|
let text = rows[i].label.trim().split(/\s+/).join(" ");
|
|
1164
1356
|
return { ...name, lines: [text], w: measure(text, name.font).width, h: name.font.size };
|
|
@@ -1168,9 +1360,9 @@ function rowNames(env, domain, plotW, stacked, headerTop, headerH) {
|
|
|
1168
1360
|
}), minimumLabelBandW };
|
|
1169
1361
|
}
|
|
1170
1362
|
function ganttBody(env, domain, frame, band, warnings) {
|
|
1171
|
-
let { fonts, measure } = env, { rows, milestones, d0Day, d1Day } = domain, plot0 = frame.plot, planColumns = (startX) => planMetadataColumns(
|
|
1363
|
+
let { fonts, measure } = env, { rows, milestones, d0Day, d1Day } = domain, plot0 = frame.plot, metaAfter = env.columns.metaAfter && !band.stacked, widths = band.stacked ? NO_AUTHORED_WIDTHS : authoredWidths(env, domain, plot0.w), planColumns = (startX) => planMetadataColumns(
|
|
1172
1364
|
rows,
|
|
1173
|
-
env.
|
|
1365
|
+
env.columns.headers,
|
|
1174
1366
|
startX,
|
|
1175
1367
|
columnCap(env, rows, plot0.w),
|
|
1176
1368
|
band.headerTop,
|
|
@@ -1178,8 +1370,11 @@ function ganttBody(env, domain, frame, band, warnings) {
|
|
|
1178
1370
|
fonts.label,
|
|
1179
1371
|
fonts.headerMajor,
|
|
1180
1372
|
measure,
|
|
1181
|
-
env.options.target
|
|
1182
|
-
|
|
1373
|
+
env.options.target,
|
|
1374
|
+
authoredPlan(env, widths, metaAfter)
|
|
1375
|
+
), laneLabelW = milestones.laneLabelW, { rowLabels, minimumLabelBandW } = band.names ?? rowNames(env, domain, plot0.w, band.stacked, band.headerTop, band.headerH), namesW = Math.max(0, maxOf(rowLabels.filter((_, i) => !rows[i].shared).map(nameBandW))), labelBandW = band.stacked || !env.columns.name ? namesW : Math.max(namesW, widths.name ?? 0, nameHeadW(env)), plotRight = plot0.x + plot0.w, metaW = (plan) => plan.colWs.reduce((sum, width) => sum + width, 0), columns = band.stacked ? stackedColumns(env, rows, band, plot0.x, plotRight) : planColumns(metaAfter ? plotRight - metaW(planColumns(0)) : plot0.x + labelBandW + 12), colCount = columns.colWs.length, metaGap = colCount > 0 ? metaAfter ? 12 : 4 : 0, trailing = metaAfter ? metaW(columns) + metaGap : 0, bodyX = band.stacked ? plot0.x : metaAfter ? plot0.x + labelBandW + 12 : plot0.x + labelBandW + 12 + columns.colWs.reduce((sum, width) => sum + width, 0) + (colCount > 0 ? 4 : 0), availableBodyW = Math.max(40, plotRight - bodyX - trailing), nameLabel = env.columns.name?.label?.trim();
|
|
1376
|
+
nameLabel && !band.stacked && columns.headerRequests.push(nameHeadRequest(env, nameLabel, { x: plot0.x, w: labelBandW }, band.headerTop, band.headerH));
|
|
1377
|
+
let laneGap = 12, laneEnabled = !band.stacked && !env.options[NO_LANE] && laneLabelW > 0 && env.options.mode !== "compact" && availableBodyW >= 80 + laneGap + laneLabelW;
|
|
1183
1378
|
laneLabelW > 0 && !laneEnabled && !band.stacked && !env.options[NO_LANE] && warnings.push({
|
|
1184
1379
|
code: "milestone-lane-overflow",
|
|
1185
1380
|
severity: "warn",
|
|
@@ -1209,6 +1404,10 @@ function ganttBody(env, domain, frame, band, warnings) {
|
|
|
1209
1404
|
labelBandW: band.stacked ? 0 : labelBandW,
|
|
1210
1405
|
minimumLabelBandW,
|
|
1211
1406
|
columns,
|
|
1407
|
+
metaGap,
|
|
1408
|
+
rowsRight: metaAfter ? plotRight : bodyX + bodyW,
|
|
1409
|
+
timelineRight: plotRight - trailing,
|
|
1410
|
+
authoredWidths: widths,
|
|
1212
1411
|
bodyX,
|
|
1213
1412
|
bodyW,
|
|
1214
1413
|
laneGap,
|
|
@@ -1253,7 +1452,7 @@ function spanLabel(ctx, row, place) {
|
|
|
1253
1452
|
insidePaint: ctx.paints.item(it)
|
|
1254
1453
|
}), inside = insideAt("insideCenter", cx - tsize.width / 2, 0), insideStart = insideAt("insideStart", rect.x + 3, 1), insideEnd = insideAt("insideEnd", rect.x + rect.w - tsize.width - 3, 2), shapeEnd = rect.x + rect.w - Math.min(9, rect.h * 0.6, rect.w) * tsize.height / rect.h - 2, insideShape = it.kind === "chevron" && shapeEnd - rect.x - 1.5 >= tsize.width ? [insideAt("insideShape", Math.max(rect.x + 1.5, Math.min(shapeEnd - tsize.width, inside.rect.x)), 0.25)] : [], rowH = ctx.band.rowH, milestoneHalf = Math.max(3, Math.min(rowH * 0.32, 8)), offCentre = (ctx.band.rowHs[ctx.domain.rows.findIndex((row2) => row2.id === it.rowId)] - rect.h) / 2 - 2 >= tsize.height + 2 ? [rect.y - 2 - tsize.height, rect.y + rect.h + 2].map((y, i) => ({ slot: i ? "belowBar" : "aboveBar", rect: { ...insideStart.rect, y }, penalty: 5 + i })) : [], rowMilestoneItems = ctx.domain.rows.find((row2) => row2.id === it.rowId).items.filter((item) => item.kind === "milestone"), rowMilestones = rowMilestoneItems.map((item) => ({ x: ctx.body.x(item.startDay + 0.5), halfWidth: milestoneHalf }));
|
|
1255
1454
|
if (ctx.flagRows.has(it.rowId)) {
|
|
1256
|
-
let flagSeats = planRowFlags(ctx.domain, ctx.body, row).seats, timeline = { ...rect, x: ctx.body.bodyX, w: ctx.body.
|
|
1455
|
+
let flagSeats = planRowFlags(ctx.domain, ctx.body, row).seats, timeline = { ...rect, x: ctx.body.bodyX, w: ctx.body.timelineRight - ctx.body.bodyX };
|
|
1257
1456
|
offCentre = offCentre.flatMap((candidate) => {
|
|
1258
1457
|
let above = candidate.slot === "aboveBar";
|
|
1259
1458
|
return spanFreeRuns(timeline, rowMilestoneItems.filter((item) => (flagSeats.get(item.id)?.above ?? above) === above).map((item) => ({ x: ctx.body.x(item.startDay + 0.5), halfWidth: milestoneHalf }))).filter((run) => run.end - run.start >= tsize.width).map((run) => ({
|
|
@@ -1276,7 +1475,7 @@ function spanLabel(ctx, row, place) {
|
|
|
1276
1475
|
], nextToArrow = (seat) => {
|
|
1277
1476
|
let [from, to] = seat.x >= rect.x + rect.w ? [rect.x + rect.w, seat.x] : [seat.x + seat.w, rect.x];
|
|
1278
1477
|
return !(arrowRetry || ctx.crossRules && ctx.body.ruleClaims.length > 0) || ![...otherMarks, ...ctx.spanClearance ?? []].some((other) => other.y < seat.y + seat.h && seat.y < other.y + other.h && other.x < to && other.x + other.w > from);
|
|
1279
|
-
}, past = (ctx.spanClearance ? seatsPastBlockers(backed.rect, "x", ctx.body.bodyX, ctx.body.
|
|
1478
|
+
}, past = (ctx.spanClearance ? seatsPastBlockers(backed.rect, "x", ctx.body.bodyX, ctx.body.timelineRight, pastObstacles, 3) : []).filter(nextToArrow).map((rect2, index) => ({ ...backed, slot: `backedPast:${index + 1}`, rect: rect2, penalty: 4.5 + index * 0.1 })), duration = it.endDay - it.startDay, seats = clearOfLeader((fits ? [inside, ...insideShape, ...slideCandidates, insideStart, insideEnd, right, left, ...past, ...offCentre] : [ctx.crossRules ? { ...right, overRules: !0 } : right, left, backed, ...past, ...offCentre]).filter(clearOfMarks));
|
|
1280
1479
|
ctx.requests.push({
|
|
1281
1480
|
id: `item:${it.rowId}:${it.id}`,
|
|
1282
1481
|
kind: "item",
|
|
@@ -1343,7 +1542,7 @@ function milestoneLabel(ctx, row, place) {
|
|
|
1343
1542
|
let laneCenterY = body.clusteredLabelY.get(it.id), flags = [];
|
|
1344
1543
|
if (number === void 0 && ctx.flagRows.has(row.row.id)) {
|
|
1345
1544
|
let { seats, flagHalf, lineH } = planRowFlags(ctx.domain, body, row), seat = seats.get(it.id), rect = seat && { x: seat.x, y: seat.above ? cy - flagHalf - 4 - tsize.height - seat.level * lineH : cy + flagHalf + 4 + seat.level * lineH, w: tsize.width, h: tsize.height };
|
|
1346
|
-
seat && rect && rectContains({ ...rowBox, w: body.
|
|
1545
|
+
seat && rect && rectContains({ ...rowBox, w: body.timelineRight - lo }, rect) && flags.push({
|
|
1347
1546
|
slot: seat.above ? "flagAbove" : "flagBelow",
|
|
1348
1547
|
rect,
|
|
1349
1548
|
penalty: -1,
|
|
@@ -1380,7 +1579,7 @@ function milestoneLabel(ctx, row, place) {
|
|
|
1380
1579
|
}
|
|
1381
1580
|
var FLAG_GAP = 4;
|
|
1382
1581
|
function planRowFlags(domain, body, row) {
|
|
1383
|
-
let right = body.
|
|
1582
|
+
let right = body.timelineRight, flags = row.items.filter((item) => domain.milestones.byId.has(item.it.id)).map((item) => {
|
|
1384
1583
|
let size = domain.milestones.byId.get(item.it.id).size;
|
|
1385
1584
|
return { id: item.it.id, cx: item.cx, w: size.width, h: size.height, x: Math.min(item.cx, right - size.width) };
|
|
1386
1585
|
}).sort((a, b) => b.x - a.x || (a.id < b.id ? -1 : a.id > b.id ? 1 : 0)), placed = [], seats = /* @__PURE__ */ new Map();
|
|
@@ -1425,9 +1624,9 @@ var SUBLABEL_GAP = 2;
|
|
|
1425
1624
|
function activityLabels(ctx, place) {
|
|
1426
1625
|
let { row: r, index: i, cy } = place;
|
|
1427
1626
|
if (r.shared) return;
|
|
1428
|
-
let { env, body } = ctx, { label } = env.fonts, rl = body.rowLabels[i], nameCy = ctx.band.rowY[i] + ctx.band.nameLineH / 2, nameY = ctx.band.stacked ? nameCy - rl.h / 2 : cy - (rl.h + (rl.sub ? SUBLABEL_GAP + rl.sub.h : 0)) / 2, priority = PRIORITY.endpoint + (env.highlights.has(r.id) ? PRIORITY.highlightBonus : 0);
|
|
1627
|
+
let { env, body } = ctx, { label } = env.fonts, rl = body.rowLabels[i], nameCy = ctx.band.rowY[i] + ctx.band.nameLineH / 2, nameY = ctx.band.stacked ? nameCy - rl.h / 2 : cy - (rl.h + (rl.sub ? SUBLABEL_GAP + rl.sub.h : 0)) / 2, priority = PRIORITY.endpoint + (env.highlights.has(r.id) ? PRIORITY.highlightBonus : 0), nameAlign = ctx.band.stacked ? void 0 : env.columns.name?.align, nameX = (w) => nameAlign ? alignedX(body.inner.x + rl.indentPx, body.labelBandW - rl.indentPx, w, nameAlign) : body.inner.x + rl.indentPx, nameLineAlign = nameAlign === "right" ? { align: "end" } : nameAlign === "center" ? { align: "middle" } : {};
|
|
1429
1628
|
if (rl.sub) {
|
|
1430
|
-
let rect = ctx.band.stacked ? { x: body.inner.x + rl.indentPx + rl.w + stackedGap(env).name, y: nameCy - rl.sub.h / 2, w: rl.sub.w, h: rl.sub.h } : { x:
|
|
1629
|
+
let rect = ctx.band.stacked ? { x: body.inner.x + rl.indentPx + rl.w + stackedGap(env).name, y: nameCy - rl.sub.h / 2, w: rl.sub.w, h: rl.sub.h } : { x: nameX(rl.sub.w), y: nameY + rl.h + SUBLABEL_GAP, w: rl.sub.w, h: rl.sub.h };
|
|
1431
1630
|
ctx.requests.push({
|
|
1432
1631
|
id: `sublabel:${r.id}`,
|
|
1433
1632
|
kind: "activity",
|
|
@@ -1448,8 +1647,9 @@ function activityLabels(ctx, place) {
|
|
|
1448
1647
|
text: r.label,
|
|
1449
1648
|
...fittedLabel({ lines: rl.lines, w: rl.w, h: rl.h, font: rl.font, ...rl.title ? { title: rl.title } : {} }, rl.baseFont),
|
|
1450
1649
|
font: rl.baseFont,
|
|
1650
|
+
...nameLineAlign,
|
|
1451
1651
|
priority,
|
|
1452
|
-
candidates: [{ slot: "left", rect: { x:
|
|
1652
|
+
candidates: [{ slot: "left", rect: { x: nameX(rl.w), y: nameY, w: rl.w, h: rl.h }, penalty: 0 }]
|
|
1453
1653
|
}), ctx.band.stacked) {
|
|
1454
1654
|
stackedCellLabels(ctx, place, nameCy);
|
|
1455
1655
|
return;
|
|
@@ -1457,7 +1657,7 @@ function activityLabels(ctx, place) {
|
|
|
1457
1657
|
body.columns.colTexts[i].forEach((cell, k) => {
|
|
1458
1658
|
let text = cell.text;
|
|
1459
1659
|
if (!text) return;
|
|
1460
|
-
let tsize = env.measure(text, label);
|
|
1660
|
+
let tsize = env.measure(text, label), cellW = (cell.tone ? SWATCH_RESERVE : 0) + tsize.width, aligned = body.columns.aligned?.[k];
|
|
1461
1661
|
ctx.requests.push({
|
|
1462
1662
|
id: `col:${r.id}:${k}`,
|
|
1463
1663
|
kind: "activity",
|
|
@@ -1472,7 +1672,7 @@ function activityLabels(ctx, place) {
|
|
|
1472
1672
|
priority: PRIORITY.extreme,
|
|
1473
1673
|
candidates: [{
|
|
1474
1674
|
slot: "left",
|
|
1475
|
-
rect: { x: body.columns.colXs[k], y: cy - label.size / 2, w:
|
|
1675
|
+
rect: { x: aligned?.align ? alignedX(body.columns.colXs[k], aligned.inner, cellW, aligned.align) : body.columns.colXs[k], y: cy - label.size / 2, w: cellW, h: label.size },
|
|
1476
1676
|
penalty: 0
|
|
1477
1677
|
}]
|
|
1478
1678
|
});
|
|
@@ -1543,7 +1743,7 @@ function labelNodes(env, domain, labels) {
|
|
|
1543
1743
|
), rules = new Set(domain.rows.flatMap((row) => row.items.filter((it) => it.kind === "rule").map((it) => it.id)));
|
|
1544
1744
|
return nodes.map((node) => node.t !== "text" ? node : badges.has(node.id.replace(/^label:/, "")) ? { ...node, ink: contrastInkPaint(badges.get(node.id.replace(/^label:/, ""))) } : node.id.startsWith("label:sublabel:") || node.part === "item" && rules.has(node.owner.segmentId ?? "") ? { ...node, ink: { token: "inkMuted" } } : node);
|
|
1545
1745
|
}
|
|
1546
|
-
var spills = (label, bar) => label.slot === "insideBacked" && !rectContains(bar, label.rect);
|
|
1746
|
+
var spills = (label, bar) => label.slot === "insideBacked" && !rectContains(bar, label.rect), stackedForms = /* @__PURE__ */ new WeakSet();
|
|
1547
1747
|
function assembleGanttGeometry(input) {
|
|
1548
1748
|
let { env, domain, frame, band, body } = input, { solved } = input, { size, options } = env, spans = new Map(input.geometry.rows.flatMap((row) => row.items.filter((item) => ["bar", "chevron", "shade"].includes(item.it.kind)).map((item) => [item.it.id, { row, item }]))), unsafe = new Set(solved.placed.filter((label) => {
|
|
1549
1749
|
let span = spans.get(label.owner.segmentId ?? "");
|
|
@@ -1587,15 +1787,14 @@ function assembleGanttGeometry(input) {
|
|
|
1587
1787
|
message: `Arrow name '${label.text}' has no clear label seat at this size`,
|
|
1588
1788
|
suggest: "increase chart width or shorten the arrow name"
|
|
1589
1789
|
});
|
|
1590
|
-
let { rows, granularity, d0Day, d1Day, milestones } = domain, n = rows.length, { colWs } = body.columns, laneLabelW = milestones.laneLabelW
|
|
1591
|
-
return {
|
|
1790
|
+
let { rows, granularity, d0Day, d1Day, milestones } = domain, n = rows.length, { colWs } = body.columns, laneLabelW = milestones.laneLabelW, assembled = {
|
|
1592
1791
|
type: "gantt",
|
|
1593
1792
|
size,
|
|
1594
1793
|
sizing: rowSizing("gantt", size, {
|
|
1595
1794
|
chromeH: size.height - band.bodyH,
|
|
1596
1795
|
minimumRowsH: band.stacked ? n * Math.max(STACKED_LANE_FLOOR, input.keyRowHeight) + rows.filter((row) => !row.shared || band.sharedLine).length * band.nameLineH : body.rowLabels.reduce((sum, label) => sum + Math.max(MIN_ROW_H, input.keyRowHeight, rowTextFloor(label)), 0),
|
|
1597
1796
|
naturalRowsH: Math.max(band.naturalRowsH, (input.cardHeight ?? 0) - (size.height - band.bodyH)),
|
|
1598
|
-
minWidth: band.stacked ? size.width - body.inner.w + Math.max(80, band.stackedLineW) : size.width - body.inner.w + body.minimumLabelBandW + 12 + colWs.reduce((sum, width) => sum + width, 0) + (colWs.length ?
|
|
1797
|
+
minWidth: band.stacked ? size.width - body.inner.w + Math.max(80, band.stackedLineW) : size.width - body.inner.w + body.minimumLabelBandW + 12 + colWs.reduce((sum, width) => sum + width, 0) + (colWs.length ? body.metaGap : 0) + 80 + (laneLabelW && options.mode !== "compact" ? body.laneGap + laneLabelW : 0)
|
|
1599
1798
|
}),
|
|
1600
1799
|
plot: body.plot,
|
|
1601
1800
|
scene: [...frame.nodes, ...gridAroundLabels([...input.geometry.nodes, ...input.annotated.nodes], solved.placed, spans), ...labelNodes(env, domain, solved.placed)],
|
|
@@ -1629,6 +1828,7 @@ function assembleGanttGeometry(input) {
|
|
|
1629
1828
|
warnings: input.warnings,
|
|
1630
1829
|
debug: { occupied: input.occupied.snapshot(), decisions: solved.decisions }
|
|
1631
1830
|
};
|
|
1831
|
+
return band.stacked && stackedForms.add(assembled), assembled;
|
|
1632
1832
|
}
|
|
1633
1833
|
function gridAroundLabels(nodes, placed, spans) {
|
|
1634
1834
|
let labels = placed.filter((label) => !label.hidden);
|
|
@@ -1724,7 +1924,7 @@ function layoutGanttPass(data, options = {}, keyed = /* @__PURE__ */ new Set(),
|
|
|
1724
1924
|
let hidden = solved.placed.filter((label) => label.hidden).length, laneUsed = solved.placed.some((label) => label.kind === "item" && !label.hidden && domain.milestones.laneIds.has(label.owner.segmentId ?? "") && label.rect.x + label.rect.w > body.bodyX + body.bodyW + 0.5), wide = layoutGanttPass(data, { ...options, [NO_LANE]: !0 }, keyed, autoHeight, { rows: flags.rows }), wideHidden = wide.refused ? 1 / 0 : wide.labels.filter((label) => label.hidden).length, flagsFit = flags.rows.size > 0 && [...domain.milestones.byId].every(([id, entry]) => wide.labels.some((label) => !label.hidden && label.owner.segmentId === id && label.text === entry.text));
|
|
1725
1925
|
if (wideHidden < hidden || wideHidden === hidden && (!laneUsed || flagsFit)) return wide;
|
|
1726
1926
|
}
|
|
1727
|
-
pushAll(warnings, solved.warnings);
|
|
1927
|
+
pushAll(warnings, solved.warnings), pushAll(warnings, ganttColumnWarnings(env, domain.rows, band.stacked, body.authoredWidths));
|
|
1728
1928
|
let openHeight = autoHeight || options[TARGET_SIZE]?.fixed.height === !1, cardHeight;
|
|
1729
1929
|
if (openHeight && size.width < 480 && panelTypeClass(options) === void 0 && !options[ACCEPTANCE_PROBE]) {
|
|
1730
1930
|
let host = options[FORCE_COMPACT] ? fullCardOptions.get(data) ?? options : options, internal = host, wider = {
|
|
@@ -1741,7 +1941,43 @@ function layoutGanttPass(data, options = {}, keyed = /* @__PURE__ */ new Set(),
|
|
|
1741
1941
|
}
|
|
1742
1942
|
return assembleGanttGeometry({ env, domain, frame, band, body, geometry, annotated, solved, occupied, warnings, keyRowHeight, cardHeight, flagRows: flags.rows });
|
|
1743
1943
|
}
|
|
1944
|
+
var printedKey = (label) => `${label.owner.categoryId}|${label.owner.segmentId}|${label.text.replace(/ ·$/, "")}`, isPrinted = (label) => !label.hidden && /^(item|col|activity|sublabel):/.test(label.id), isKeyNumber = (label) => label.id.startsWith("item:") && /^\d+$/.test(label.text);
|
|
1945
|
+
function layoutAuthoredColumns(data, options) {
|
|
1946
|
+
let draw = (plan) => layoutGanttLabelled(data, { ...options, [COLUMN_PLAN]: plan }), plain = draw({ plain: !0 }), authored = draw({}), fixedHeight = !heightOmitted(options.size) && options[TARGET_SIZE]?.fixed.height !== !1, fitsHeight = (geo) => !fixedHeight || geo.size.height >= geo.sizing.minHeight, fits = (geo) => !geo.refused && geo.size.width >= geo.sizing.minWidth && fitsHeight(geo);
|
|
1947
|
+
if (!fits(plain)) return authored;
|
|
1948
|
+
let printed = plain.labels.filter((label) => isPrinted(label) && !isKeyNumber(label)).map(printedKey), keeps = (geo) => {
|
|
1949
|
+
let drawn = new Set(geo.labels.filter(isPrinted).map(printedKey));
|
|
1950
|
+
return !geo.refused && printed.every((key) => drawn.has(key));
|
|
1951
|
+
}, stands = (geo) => fits(geo) && keeps(geo);
|
|
1952
|
+
if (stands(authored)) return authored;
|
|
1953
|
+
let narrowest = (low, high, plan, passes, last) => {
|
|
1954
|
+
let best = last;
|
|
1955
|
+
for (; high - low > 1; ) {
|
|
1956
|
+
let middle = Math.floor((low + high) / 2), geo = draw(plan(middle));
|
|
1957
|
+
passes(geo) ? (high = middle, best = geo) : low = middle;
|
|
1958
|
+
}
|
|
1959
|
+
return best;
|
|
1960
|
+
}, isStacked = stackedForms.has(plain);
|
|
1961
|
+
if (options.columnOverrides?.name?.width !== void 0 && !fitsHeight(authored)) {
|
|
1962
|
+
let lastStep = data.rows.length - 1, widest2 = draw({ nameStep: lastStep });
|
|
1963
|
+
if (fitsHeight(widest2)) {
|
|
1964
|
+
let step = narrowest(-1, lastStep, (nameStep) => ({ nameStep }), fitsHeight, widest2);
|
|
1965
|
+
if (stands(step)) return step;
|
|
1966
|
+
}
|
|
1967
|
+
if (isStacked) return plain;
|
|
1968
|
+
let stacked = draw({ stacked: !0 });
|
|
1969
|
+
return stands(stacked) ? stacked : plain;
|
|
1970
|
+
}
|
|
1971
|
+
if (isStacked) return plain;
|
|
1972
|
+
let widest = draw({ minimumTimeline: authored.size.width });
|
|
1973
|
+
if (!keeps(widest)) return plain;
|
|
1974
|
+
let capped = narrowest(MINIMUM_TIMELINE, authored.size.width, (minimumTimeline) => ({ minimumTimeline }), keeps, widest);
|
|
1975
|
+
return stands(capped) ? capped : plain;
|
|
1976
|
+
}
|
|
1744
1977
|
function layoutGantt(data, options = {}) {
|
|
1978
|
+
return columnPlan(options) === void 0 && resolveGanttColumns(options).layoutAuthored ? layoutAuthoredColumns(data, options) : layoutGanttLabelled(data, options);
|
|
1979
|
+
}
|
|
1980
|
+
function layoutGanttLabelled(data, options = {}) {
|
|
1745
1981
|
let first = layoutGanttPass(data, options);
|
|
1746
1982
|
if (options.labels === !1 || options.labels?.item === !1 || options[ACCEPTANCE_PROBE] && options[TARGET_SIZE]?.fixed.height === !1 && first.size.width >= first.sizing.minWidth) return first;
|
|
1747
1983
|
let labels = new Map(first.labels.filter((label) => label.kind === "item").map((label) => [label.owner.segmentId, label])), crossings = new Set(first.warnings.filter((warning) => warning.code === "label-leader-crossing").map((warning) => warning.owner?.segmentId)), suspects = first.marks.rows.flatMap((row) => row.itemNodes.filter((mark) => {
|