boardplot 0.56.0 → 0.58.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.
Files changed (552) hide show
  1. package/CHANGELOG.md +408 -0
  2. package/README.md +49 -15
  3. package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-VGSL4NJK.js} +1 -1
  4. package/dist/{ReaderBox-GLCKYXBU.js → ReaderBox-MHMXIDAJ.js} +8 -7
  5. package/dist/{annotateEngine-QVNAE3EH.js → annotateEngine-753KQBNN.js} +2 -1
  6. package/dist/build-identity.json +3 -3
  7. package/dist/{chunk-HZUAEMN5.js → chunk-2CQBBN7M.js} +4 -4
  8. package/dist/{chunk-K3VZ5QJK.js → chunk-2ETK5TSA.js} +4 -4
  9. package/dist/{chunk-HHXIVFAU.js → chunk-2ETSI2EL.js} +11 -9
  10. package/dist/{chunk-ECBUFKCP.js → chunk-2GRXHWRH.js} +3 -3
  11. package/dist/{chunk-ZVM5TFGR.js → chunk-2HII2B6S.js} +6 -2
  12. package/dist/{chunk-WBETBGSC.js → chunk-2LC2H3ZM.js} +1003 -907
  13. package/dist/chunk-2NX7EO7H.js +23 -0
  14. package/dist/{chunk-52WNCUIN.js → chunk-2QI2PK2O.js} +1 -1
  15. package/dist/{chunk-QWCLWFKC.js → chunk-2VKQQLP7.js} +180 -58
  16. package/dist/chunk-3DOVXJ6K.js +602 -0
  17. package/dist/{chunk-CAJ54IEP.js → chunk-3E6NLODZ.js} +1 -1
  18. package/dist/{chunk-MOS6WFWM.js → chunk-3HA4IJTO.js} +9 -9
  19. package/dist/{chunk-JCIXYOND.js → chunk-3HPPTQEW.js} +4 -4
  20. package/dist/{chunk-7VVHTOE7.js → chunk-3KT2647F.js} +4 -2
  21. package/dist/{chunk-O6ZTIDWB.js → chunk-3MFVJMP6.js} +3 -2
  22. package/dist/{chunk-KQCKK3LD.js → chunk-3P3FKPFN.js} +170 -73
  23. package/dist/{chunk-WI5VOSQX.js → chunk-3XAJSMYD.js} +2 -2
  24. package/dist/{chunk-CPGASWNN.js → chunk-42QKUSHJ.js} +13 -3
  25. package/dist/{chunk-QB5HV4IY.js → chunk-44JU3VOT.js} +7 -8
  26. package/dist/{chunk-BYCJ6TKI.js → chunk-44K75CYE.js} +3 -3
  27. package/dist/{chunk-MS7O3KDJ.js → chunk-4FNM4D57.js} +6 -6
  28. package/dist/{chunk-BVYIKLQ5.js → chunk-4ROZ4TFL.js} +1 -1
  29. package/dist/{chunk-3V62N3Z7.js → chunk-4VV3KUFT.js} +7 -8
  30. package/dist/{chunk-MAFPVR4G.js → chunk-54YO56IK.js} +10 -5
  31. package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
  32. package/dist/{chunk-6AMN7IKJ.js → chunk-5JEU6MWC.js} +49 -28
  33. package/dist/{chunk-NCLRZQR6.js → chunk-5JIB4VJA.js} +18 -10
  34. package/dist/{chunk-SXD3OYAR.js → chunk-5OP3E2ZD.js} +205 -96
  35. package/dist/{chunk-SS4YGK3E.js → chunk-5SLBD4BT.js} +72 -304
  36. package/dist/{chunk-XMP2DNLI.js → chunk-5SVGTQTW.js} +4 -4
  37. package/dist/chunk-5U567TYU.js +23 -0
  38. package/dist/chunk-5ZLF4S7X.js +40 -0
  39. package/dist/{chunk-T2YDWT54.js → chunk-5ZMTQATF.js} +261 -147
  40. package/dist/{chunk-WXJ5MHLH.js → chunk-62BDQTO6.js} +2 -2
  41. package/dist/chunk-64K3V4VN.js +25 -0
  42. package/dist/{chunk-BK6P6KMW.js → chunk-67YJJJIB.js} +1 -1
  43. package/dist/{chunk-32LLDRPI.js → chunk-6DJNFT2K.js} +42 -32
  44. package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
  45. package/dist/{chunk-7STMIK2X.js → chunk-6JFQCVNN.js} +4 -4
  46. package/dist/chunk-6JXBLQJ2.js +32 -0
  47. package/dist/{chunk-5TWY3ZIC.js → chunk-6XPV6M3Q.js} +5 -5
  48. package/dist/{chunk-MPO5TVGF.js → chunk-6ZDSEITW.js} +3 -3
  49. package/dist/{chunk-75WIUG2W.js → chunk-72HVDLMT.js} +172 -78
  50. package/dist/chunk-75NU5RLX.js +24 -0
  51. package/dist/chunk-76GPN6AT.js +72 -0
  52. package/dist/chunk-7BQK2UDV.js +13 -0
  53. package/dist/{chunk-CF4NMRN7.js → chunk-7CAYRPJV.js} +45 -25
  54. package/dist/{chunk-U3A6FMSI.js → chunk-7GWWBHVQ.js} +7 -7
  55. package/dist/{chunk-CHAS5A5B.js → chunk-7NYUFMLJ.js} +149 -86
  56. package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
  57. package/dist/chunk-A65B23JK.js +113 -0
  58. package/dist/{chunk-4KMZAK6J.js → chunk-A7R6FUS6.js} +4 -4
  59. package/dist/{chunk-E2ZUBP4Q.js → chunk-AEVGUOPB.js} +7 -8
  60. package/dist/chunk-AHIK2N72.js +53 -0
  61. package/dist/{chunk-KLB2QC24.js → chunk-AICO24HJ.js} +5 -2
  62. package/dist/{chunk-7KSUMFBK.js → chunk-AJGSCVVW.js} +5 -1
  63. package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
  64. package/dist/{chunk-E7V3OHQQ.js → chunk-AN2V2LC4.js} +37 -22
  65. package/dist/{chunk-JIEVDGAF.js → chunk-AOFUA5XP.js} +1 -1
  66. package/dist/chunk-B5A7X2BA.js +44 -0
  67. package/dist/{chunk-2HTYGMMG.js → chunk-BCMEGJRX.js} +2 -2
  68. package/dist/{chunk-KD5GOR2K.js → chunk-BDIKWR45.js} +124 -69
  69. package/dist/{chunk-FNRPQIQE.js → chunk-BG6AIWAK.js} +4 -6
  70. package/dist/{chunk-ZMPH2OC4.js → chunk-BOT6W3VB.js} +7 -8
  71. package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
  72. package/dist/{chunk-2DOEZ5QY.js → chunk-BZ67BJBH.js} +11 -10
  73. package/dist/{chunk-UBCVBBJJ.js → chunk-C47POAC5.js} +4 -3
  74. package/dist/{chunk-O7REHICC.js → chunk-C5OBPO4Z.js} +36 -28
  75. package/dist/{chunk-IGNBQT23.js → chunk-CCAAI56H.js} +121 -10
  76. package/dist/{chunk-RPIKNMZA.js → chunk-CDUR3KWV.js} +7 -2
  77. package/dist/{chunk-MZACASZY.js → chunk-CMPHT2LS.js} +14 -2
  78. package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
  79. package/dist/{chunk-IVRYF7QA.js → chunk-CR5FP5SF.js} +1 -1
  80. package/dist/{chunk-DD6RVD3S.js → chunk-D2TQX7UJ.js} +5 -1
  81. package/dist/{chunk-VVXKFU72.js → chunk-DEANHDXU.js} +62 -41
  82. package/dist/{chunk-GM3EGUYW.js → chunk-DHGE46UK.js} +1 -1
  83. package/dist/{chunk-UZTQUPTB.js → chunk-DIHX6NUB.js} +5 -5
  84. package/dist/{chunk-MD6DCQMA.js → chunk-DILQ34NW.js} +37 -37
  85. package/dist/{chunk-YMTXTQCN.js → chunk-DJKRYJP7.js} +6 -6
  86. package/dist/{chunk-JCAGVAB3.js → chunk-DKLC6QLF.js} +1200 -21
  87. package/dist/{chunk-SRAV6FPB.js → chunk-DNHTMCUP.js} +3 -3
  88. package/dist/{chunk-CKGSGRP7.js → chunk-DORE2RHL.js} +21 -5
  89. package/dist/{chunk-SMHZXHHD.js → chunk-DZYTXZNS.js} +15 -5
  90. package/dist/chunk-E262NRFP.js +39 -0
  91. package/dist/{chunk-V5JQQMFQ.js → chunk-E5YF236N.js} +4 -1
  92. package/dist/{chunk-IGJ2G5C6.js → chunk-EBUK7HJP.js} +6 -6
  93. package/dist/{chunk-ZL6IHMOW.js → chunk-ECBHC272.js} +198 -119
  94. package/dist/{chunk-SA46CNMS.js → chunk-ED7GLWTF.js} +4 -1
  95. package/dist/chunk-EFW43JQJ.js +24 -0
  96. package/dist/{chunk-5P2TTHBZ.js → chunk-EHRRHSPV.js} +2 -2
  97. package/dist/{chunk-JXBZIJCG.js → chunk-EILNJQMN.js} +32 -12
  98. package/dist/{chunk-GELSK76Y.js → chunk-ERDKMZ7O.js} +3 -3
  99. package/dist/{chunk-T2CYNDYU.js → chunk-ETRAPN5G.js} +366 -130
  100. package/dist/{chunk-JEUL777U.js → chunk-ETUKDEGL.js} +21 -12
  101. package/dist/chunk-F2ET5ZTT.js +49 -0
  102. package/dist/{chunk-2YO4WRJN.js → chunk-F3XOBFS4.js} +40 -29
  103. package/dist/{chunk-SPSGUFTI.js → chunk-FB6X7QHA.js} +1 -1
  104. package/dist/{chunk-5PPQIF4D.js → chunk-FGW54I23.js} +7 -8
  105. package/dist/{chunk-JTC5SEAQ.js → chunk-FP5B5XIL.js} +7 -3
  106. package/dist/{chunk-RJGCYGC3.js → chunk-FRHQGA5Q.js} +86 -250
  107. package/dist/{chunk-YZZLIYPA.js → chunk-FRR7BJ3B.js} +5 -1
  108. package/dist/{chunk-4DZFR52I.js → chunk-FVWHEM2N.js} +7 -5
  109. package/dist/{chunk-YPYD6OJ3.js → chunk-FWSMENKH.js} +2 -2
  110. package/dist/{chunk-YYJORENB.js → chunk-FWTUGNSF.js} +8 -8
  111. package/dist/{chunk-GIHH6VC2.js → chunk-FZKDZQ6U.js} +10 -6
  112. package/dist/{chunk-S7NRL66K.js → chunk-G4FF6G3I.js} +26 -17
  113. package/dist/{chunk-PQLAZEQV.js → chunk-GB6BZSTL.js} +248 -92
  114. package/dist/chunk-GCIHRRDJ.js +24 -0
  115. package/dist/{chunk-X3KCQEYZ.js → chunk-GHCU6OSE.js} +9 -1
  116. package/dist/chunk-GKDUIDU6.js +138 -0
  117. package/dist/chunk-GO66OCN7.js +24 -0
  118. package/dist/chunk-GOFS336W.js +24 -0
  119. package/dist/{chunk-AGDDH6XY.js → chunk-GQYT7G4F.js} +5 -1
  120. package/dist/{chunk-WN3HEU3P.js → chunk-GUTLXO7Q.js} +140 -89
  121. package/dist/chunk-H3VICNTN.js +47 -0
  122. package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
  123. package/dist/{chunk-CB4CERXZ.js → chunk-HBQHSZ6S.js} +11 -2
  124. package/dist/chunk-HTQGJQZN.js +124 -0
  125. package/dist/{chunk-F77TMAUY.js → chunk-HUQRO6VF.js} +39 -36
  126. package/dist/{chunk-4KQHKPB3.js → chunk-I5VDW2XZ.js} +543 -509
  127. package/dist/{chunk-43GGVT7W.js → chunk-I5VNHDPR.js} +11 -4
  128. package/dist/{chunk-4LTN7SND.js → chunk-IDXYHDQY.js} +1 -1
  129. package/dist/{chunk-Y54LU4CU.js → chunk-IIWZJ5ZM.js} +1 -1
  130. package/dist/{chunk-FMDNJ6PC.js → chunk-IPBOREIY.js} +2 -2
  131. package/dist/chunk-IU335UO7.js +27 -0
  132. package/dist/{chunk-JVZTKQFS.js → chunk-IVDTP6SV.js} +9 -5
  133. package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
  134. package/dist/{chunk-EIL3KHAL.js → chunk-J4QRB6DQ.js} +5 -5
  135. package/dist/{chunk-3465633G.js → chunk-JCMGKQVS.js} +3 -3
  136. package/dist/{chunk-YK2KWNTU.js → chunk-JM7UTLF3.js} +28 -14
  137. package/dist/{chunk-CXETOLPX.js → chunk-JNDWRV34.js} +4 -4
  138. package/dist/{chunk-DLUNQHFO.js → chunk-JSRQTDZZ.js} +26 -24
  139. package/dist/{chunk-WTQAG2OT.js → chunk-JT3UTEWZ.js} +8 -3
  140. package/dist/{chunk-GQT2SY2S.js → chunk-JUYRDZSV.js} +291 -151
  141. package/dist/{chunk-LKMFMNQX.js → chunk-JVGL2SCN.js} +1 -1
  142. package/dist/{chunk-4JC3SE4G.js → chunk-JY4LTPOV.js} +1 -1
  143. package/dist/chunk-K7XPTQBJ.js +267 -0
  144. package/dist/{chunk-P4SMC4BY.js → chunk-KGBUXMFP.js} +120 -86
  145. package/dist/{chunk-XC5IRUEL.js → chunk-KIE5V3DA.js} +2 -2
  146. package/dist/{chunk-RT66UTLJ.js → chunk-KU4PCG4W.js} +2 -2
  147. package/dist/{chunk-VPL3JYC6.js → chunk-KVBLTAO7.js} +52 -10
  148. package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
  149. package/dist/{chunk-PJBEJR2U.js → chunk-KWIP5YRA.js} +24 -7
  150. package/dist/{chunk-JYBT2JNY.js → chunk-LE3LSEUL.js} +27 -2
  151. package/dist/{chunk-R2IKOLBK.js → chunk-LG6M2JTH.js} +3 -3
  152. package/dist/{chunk-DF3XEFQ7.js → chunk-LIE2WSB4.js} +21 -18
  153. package/dist/{chunk-Z55DXFWS.js → chunk-LJDATBPB.js} +26 -16
  154. package/dist/{chunk-KLIZXSBK.js → chunk-LMMS675D.js} +10 -9
  155. package/dist/{chunk-MRAP2UVV.js → chunk-LPKGZ664.js} +286 -35
  156. package/dist/{chunk-JFFREZGT.js → chunk-LPMSGO7L.js} +6 -2
  157. package/dist/chunk-LQWINE7K.js +211 -0
  158. package/dist/{chunk-6MJUW5R5.js → chunk-MKMMQDIY.js} +139 -71
  159. package/dist/{chunk-F5BYLT3M.js → chunk-MQ4IEDM5.js} +462 -138
  160. package/dist/{chunk-QGFKSDQO.js → chunk-MRM4KJ2O.js} +2 -2
  161. package/dist/{chunk-ETMHDCEH.js → chunk-MX2OZHIT.js} +102 -42
  162. package/dist/{chunk-6EYTD777.js → chunk-MXUPMGRY.js} +2 -2
  163. package/dist/{chunk-2FKEF2AC.js → chunk-NHU26HQ7.js} +58 -35
  164. package/dist/{chunk-KBJMLXNW.js → chunk-NQVJ4FPY.js} +161 -78
  165. package/dist/chunk-NZ7FX3AE.js +65 -0
  166. package/dist/chunk-OALBVELJ.js +23 -0
  167. package/dist/{chunk-5S3JQ5AT.js → chunk-OGZ4UPYK.js} +183 -137
  168. package/dist/{chunk-6WHWXCHJ.js → chunk-OMNB27GM.js} +7 -3
  169. package/dist/{chunk-EGGDPDYJ.js → chunk-OO63YP35.js} +1 -1
  170. package/dist/{chunk-ZYQYX66L.js → chunk-OPYDTW5Q.js} +6 -6
  171. package/dist/{chunk-A2GAWGVJ.js → chunk-OSJN7KDS.js} +68 -39
  172. package/dist/{chunk-RMC4OONA.js → chunk-OSJXIW6I.js} +1030 -1123
  173. package/dist/{chunk-X23SZHV5.js → chunk-OVVE42P4.js} +6 -6
  174. package/dist/{chunk-CCJP6QZO.js → chunk-OZA7HA6L.js} +1 -1
  175. package/dist/chunk-OZLKEBCD.js +54 -0
  176. package/dist/{chunk-TE4M52AA.js → chunk-P6DEFCMQ.js} +18 -2
  177. package/dist/{chunk-AMR4SUAN.js → chunk-PDTIQL3B.js} +6 -6
  178. package/dist/{chunk-BIVL764T.js → chunk-PJ5BYZPN.js} +2 -2
  179. package/dist/{chunk-BISJK67O.js → chunk-PK7Z7WRJ.js} +98 -46
  180. package/dist/{chunk-7VMEM3LN.js → chunk-PL6NWB5U.js} +178 -113
  181. package/dist/chunk-PMT75APP.js +94 -0
  182. package/dist/chunk-PP6A4X55.js +11 -0
  183. package/dist/{chunk-I7H5DU34.js → chunk-PPCH3PLO.js} +25 -13
  184. package/dist/{chunk-BIGQKCU7.js → chunk-PPE6S7WU.js} +42 -24
  185. package/dist/{chunk-2NSQIPAA.js → chunk-PT7KSIEO.js} +23 -36
  186. package/dist/{chunk-KZJ5VM6E.js → chunk-PZ3TQFSY.js} +15 -1
  187. package/dist/{chunk-ZJFJ2IKQ.js → chunk-QAUGRVRU.js} +122 -23
  188. package/dist/{chunk-BTDGWHGJ.js → chunk-QMFWZG2P.js} +39 -19
  189. package/dist/{chunk-L6YVK6VC.js → chunk-QZGGCE45.js} +2 -2
  190. package/dist/{chunk-67QSW5RW.js → chunk-R2RJQ3BM.js} +4 -4
  191. package/dist/{chunk-ZY72LSQK.js → chunk-R7HBIQ63.js} +102 -61
  192. package/dist/{chunk-4JHMCXOB.js → chunk-RBNDZLYS.js} +77 -36
  193. package/dist/chunk-RCSY4CT4.js +2170 -0
  194. package/dist/{chunk-NGA7ICG4.js → chunk-RDJ3ZU6O.js} +16 -13
  195. package/dist/{chunk-2NN676RI.js → chunk-RHQRPJHS.js} +7 -8
  196. package/dist/chunk-RI6XQKWJ.js +26 -0
  197. package/dist/{chunk-YOOHNQ3L.js → chunk-RJICOOB3.js} +18 -8
  198. package/dist/{chunk-5DTCOOLU.js → chunk-RLAVNCQJ.js} +2 -2
  199. package/dist/{chunk-CYKXROFG.js → chunk-ROPPWJQB.js} +23 -12
  200. package/dist/{chunk-54ROMBU7.js → chunk-SELOV32X.js} +105 -50
  201. package/dist/{chunk-TUW5IYGA.js → chunk-SQI4NWTQ.js} +9 -9
  202. package/dist/{chunk-ZEYBI47P.js → chunk-SRJ74CMG.js} +11 -3
  203. package/dist/{chunk-NHC2ADGI.js → chunk-STWOURLG.js} +253 -144
  204. package/dist/chunk-SWMFXSVW.js +23 -0
  205. package/dist/chunk-SXAZDIGM.js +84 -0
  206. package/dist/{chunk-EMFUZKYK.js → chunk-SZ5VGWDY.js} +3 -3
  207. package/dist/{chunk-R5MEBBAA.js → chunk-T26G23RS.js} +442 -119
  208. package/dist/{chunk-QHRE2M6V.js → chunk-T2L5H2WW.js} +4 -3
  209. package/dist/chunk-T7GPIJ4L.js +89 -0
  210. package/dist/{chunk-MJPXHCBW.js → chunk-TAEB3RU6.js} +5 -5
  211. package/dist/{chunk-V7F4F6JA.js → chunk-TBDIMTRD.js} +37 -16
  212. package/dist/{chunk-63Y3ROZ7.js → chunk-TFFPEWNP.js} +102 -64
  213. package/dist/{chunk-EZZ533MH.js → chunk-TMEUK2WS.js} +6 -2
  214. package/dist/{chunk-37PKNVLS.js → chunk-TVOMGNFQ.js} +1 -1
  215. package/dist/{chunk-HJRNBKIT.js → chunk-TX5FSNAU.js} +436 -30
  216. package/dist/{chunk-V634AXDM.js → chunk-U52PNFPX.js} +1 -1
  217. package/dist/{chunk-QLANK3VN.js → chunk-U74AWJ3X.js} +6 -6
  218. package/dist/chunk-UC7LBW7N.js +26 -0
  219. package/dist/{chunk-PZ46S2SY.js → chunk-UCKUAKYQ.js} +2 -2
  220. package/dist/{chunk-KF7HD3EH.js → chunk-UCYL3YA7.js} +77 -55
  221. package/dist/{chunk-HOU2MZHC.js → chunk-UD2GI3CS.js} +11 -4
  222. package/dist/{chunk-SNQ7D5R7.js → chunk-UIHGGWES.js} +51 -11
  223. package/dist/{chunk-LGNJCPFP.js → chunk-ULQIC76A.js} +10 -13
  224. package/dist/{chunk-KTHFHD6C.js → chunk-UY34DDUM.js} +11 -6
  225. package/dist/{chunk-6QDMRPXI.js → chunk-UYMFLWM6.js} +215 -258
  226. package/dist/{chunk-KDSYZLF6.js → chunk-V5IFI3FV.js} +8 -1
  227. package/dist/{chunk-JTFKRDDA.js → chunk-V7FV66KL.js} +1 -1
  228. package/dist/{chunk-27OIGDRK.js → chunk-V7NUJEJE.js} +1 -1
  229. package/dist/{chunk-CCDXK5NA.js → chunk-VESSIKBG.js} +8 -3
  230. package/dist/{chunk-QSMGZOT5.js → chunk-VRFJAF3R.js} +7 -8
  231. package/dist/chunk-VS2R3OGN.js +34 -0
  232. package/dist/{chunk-RLMC5CUP.js → chunk-VS5B4J2D.js} +7 -8
  233. package/dist/{chunk-7M2GK7XQ.js → chunk-W4R6SGU3.js} +252 -121
  234. package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
  235. package/dist/{chunk-7DAH2E4T.js → chunk-WFBN2HXR.js} +2 -2
  236. package/dist/{chunk-DLDDRXAI.js → chunk-WJS6SAWA.js} +296 -145
  237. package/dist/{chunk-WWGPTEQB.js → chunk-WQYNKF33.js} +73 -22
  238. package/dist/{chunk-64LJDGJH.js → chunk-WUP6C4ZD.js} +4 -2
  239. package/dist/{chunk-F2EVCJ4U.js → chunk-X24WAHHV.js} +87 -43
  240. package/dist/{chunk-OJ5CQV7H.js → chunk-X3UCQPVV.js} +209 -96
  241. package/dist/{chunk-7FKY6YWU.js → chunk-X46PSAJ7.js} +6 -6
  242. package/dist/{chunk-H3IBJQ5A.js → chunk-XD5XB22R.js} +2 -2
  243. package/dist/chunk-XDIAQEYK.js +28 -0
  244. package/dist/{chunk-7PPMT5EJ.js → chunk-XFPNYHX3.js} +372 -105
  245. package/dist/{chunk-FCECYJVA.js → chunk-XIBVAKCO.js} +1 -1
  246. package/dist/{chunk-OG2YUVBW.js → chunk-XMX4PCFL.js} +8 -3
  247. package/dist/{chunk-2NRHD2G7.js → chunk-XRRG4MBM.js} +12 -4
  248. package/dist/{chunk-FNMH5WEY.js → chunk-XTFO6D4L.js} +1 -1
  249. package/dist/chunk-XWRI3N5O.js +70 -0
  250. package/dist/{chunk-ZKJ5L35C.js → chunk-XXPLPSOE.js} +36 -25
  251. package/dist/{chunk-XQMYQ4TN.js → chunk-XZXZNI7A.js} +1 -1
  252. package/dist/{chunk-E555EDOQ.js → chunk-YEJZ2OYS.js} +490 -182
  253. package/dist/chunk-YGZEG3JV.js +123 -0
  254. package/dist/{chunk-F6OLHND5.js → chunk-Z3WQXVFV.js} +2 -2
  255. package/dist/{chunk-FFJGC2DX.js → chunk-Z6DUNKFU.js} +173 -40
  256. package/dist/{chunk-N5HN5QGH.js → chunk-Z6H5ED2I.js} +1 -1
  257. package/dist/{chunk-7Q37C6GZ.js → chunk-ZBOOMLHD.js} +1 -1
  258. package/dist/{chunk-MOK3ZS6P.js → chunk-ZDJ7C64T.js} +1 -1
  259. package/dist/{chunk-GLQ3KCTY.js → chunk-ZGZLEUKM.js} +7 -8
  260. package/dist/{chunk-YHD2FZFP.js → chunk-ZHRGX225.js} +6 -6
  261. package/dist/{chunk-76Q7E3TM.js → chunk-ZIVCPXXL.js} +510 -646
  262. package/dist/{chunk-BSATR6ZO.js → chunk-ZNRSYS76.js} +21 -3
  263. package/dist/{chunk-DMAMWUYY.js → chunk-ZSLTSCTI.js} +5 -5
  264. package/dist/{chunk-IGVAWAOK.js → chunk-ZSYFQSPF.js} +43 -9
  265. package/dist/cli/index.js +8 -3
  266. package/dist/{core-7Y5BZZON.js → core-43GLGBOY.js} +8 -1
  267. package/dist/{core-7S3XMW5O.js → core-5GI3ERXO.js} +4 -1
  268. package/dist/{core-K3JX5WPM.js → core-5L7TMK7I.js} +6 -1
  269. package/dist/{core-LB5M7XL4.js → core-7TO4OVY5.js} +6 -1
  270. package/dist/{core-ILPXXC2Z.js → core-BJVENHFQ.js} +7 -1
  271. package/dist/{core-JDFUZFRH.js → core-BX4MFWKC.js} +6 -1
  272. package/dist/{core-XW7UJFJZ.js → core-C3KXTOIZ.js} +7 -1
  273. package/dist/{core-WJNK7F2J.js → core-C5Y6BFLL.js} +7 -1
  274. package/dist/{core-WZ4CHVYL.js → core-CLUSJ2SK.js} +5 -1
  275. package/dist/{core-TCSW24N6.js → core-E3IN2VVH.js} +5 -1
  276. package/dist/{core-MU4ALRR7.js → core-FD67NQOV.js} +6 -1
  277. package/dist/{core-YMXYUGF5.js → core-FDKMLRAK.js} +5 -1
  278. package/dist/{core-VKZSQFRG.js → core-FL6Z3VVX.js} +5 -1
  279. package/dist/{core-5UF44NDI.js → core-JC7JUFPY.js} +8 -1
  280. package/dist/{core-RR2CAZC5.js → core-JF33TADA.js} +8 -1
  281. package/dist/{core-4RR6VSXM.js → core-JH32ZAKM.js} +4 -1
  282. package/dist/{core-G3LXHW73.js → core-JYYZPPQV.js} +7 -1
  283. package/dist/{core-4HFVG4CP.js → core-KJTKCV4U.js} +4 -1
  284. package/dist/{core-GSILPKUR.js → core-LCQPE5Y6.js} +8 -1
  285. package/dist/{core-GLOZY6Z7.js → core-LHVGWE54.js} +6 -1
  286. package/dist/{core-J2JD5ODO.js → core-OVSNBOCE.js} +9 -1
  287. package/dist/{core-BLHEJ5OK.js → core-PPEC236B.js} +5 -1
  288. package/dist/{core-ZLSQHZ3I.js → core-QTJZDK5H.js} +5 -1
  289. package/dist/{core-TKZZZ6UW.js → core-R3YZCOUZ.js} +7 -1
  290. package/dist/{core-HTD5RHE7.js → core-RIBW5XU4.js} +7 -1
  291. package/dist/{core-AR2T32Y3.js → core-RJFILBWL.js} +8 -1
  292. package/dist/{core-A5AKUB7H.js → core-RWSXEKTE.js} +4 -1
  293. package/dist/{core-DD62MWEW.js → core-SOPPZLEH.js} +5 -1
  294. package/dist/{core-HDNWVLJW.js → core-TBUZCXLX.js} +5 -1
  295. package/dist/{core-BOG33BFD.js → core-TZ5QLTAX.js} +5 -1
  296. package/dist/{core-H5HO2CED.js → core-U7E5W4MY.js} +3 -1
  297. package/dist/{core-QPSAYRFT.js → core-UBNVSL44.js} +7 -1
  298. package/dist/{core-E2XOSHPR.js → core-UDRD4WIU.js} +6 -1
  299. package/dist/{core-DFZMOO7E.js → core-UVJZ4HY2.js} +7 -1
  300. package/dist/{core-LGJZUP6H.js → core-X7WWYQH4.js} +8 -1
  301. package/dist/{core-BBNY2BX4.js → core-XP56X47I.js} +5 -1
  302. package/dist/{core-3KLQSYWB.js → core-XQG54CYG.js} +6 -1
  303. package/dist/{dataTable-CNDRVGA5.js → dataTable-U7W4I6IF.js} +15 -2
  304. package/dist/{engine-FVEIM3WV.js → engine-O5V26MGR.js} +32 -19
  305. package/dist/fixtures.js +4 -1
  306. package/dist/flags-BVLSAXT3.js +10 -0
  307. package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
  308. package/dist/fonts.js +1 -1
  309. package/dist/geo/dach.js +1 -1
  310. package/dist/geo/de-states.js +1 -1
  311. package/dist/geo/eu27.js +1 -1
  312. package/dist/geo/europe.js +1 -1
  313. package/dist/geo/index.js +2 -2
  314. package/dist/geo/us-states.js +1 -1
  315. package/dist/geo/world.js +1 -1
  316. package/dist/index.js +41 -22
  317. package/dist/{main-THU6VIVU.js → main-35GS47XC.js} +68 -123
  318. package/dist/mcp/server.js +131 -118
  319. package/dist/react/bar.js +10 -1
  320. package/dist/react/bartable.js +10 -1
  321. package/dist/react/box.js +8 -1
  322. package/dist/react/bullet.js +10 -1
  323. package/dist/react/butterfly.js +10 -1
  324. package/dist/react/choropleth.js +10 -1
  325. package/dist/react/cohort.js +11 -1
  326. package/dist/react/column.js +10 -1
  327. package/dist/react/combo.js +10 -1
  328. package/dist/react/creative.js +11 -1
  329. package/dist/react/diagram.js +10 -1
  330. package/dist/react/dimswitch.js +11 -1
  331. package/dist/react/dot.js +9 -1
  332. package/dist/react/export.js +36 -18
  333. package/dist/react/funnel.js +9 -1
  334. package/dist/react/gantt.js +9 -1
  335. package/dist/react/grid.js +10 -1
  336. package/dist/react/heatmap.js +9 -1
  337. package/dist/react/histogram.js +11 -1
  338. package/dist/react/index.js +101 -85
  339. package/dist/react/kpi.js +10 -1
  340. package/dist/react/likert.js +11 -1
  341. package/dist/react/line.js +9 -1
  342. package/dist/react/mekko.js +10 -1
  343. package/dist/react/pareto.js +11 -1
  344. package/dist/react/pie.js +9 -1
  345. package/dist/react/prepare.js +49 -21
  346. package/dist/react/pvm.js +12 -1
  347. package/dist/react/pyramid.js +10 -1
  348. package/dist/react/sankey.js +10 -1
  349. package/dist/react/scatter.js +8 -1
  350. package/dist/react/slope.js +10 -1
  351. package/dist/react/sparkline.js +10 -1
  352. package/dist/react/spec.js +24 -14
  353. package/dist/react/status.js +9 -1
  354. package/dist/react/story.js +5 -2
  355. package/dist/react/table.js +9 -1
  356. package/dist/react/theme.js +10 -3
  357. package/dist/react/tilemap.js +9 -1
  358. package/dist/react/treemap.js +9 -1
  359. package/dist/react/variance.js +10 -1
  360. package/dist/react/waffle.js +9 -1
  361. package/dist/react/waterfall.js +11 -1
  362. package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
  363. package/dist/rows.js +3 -2
  364. package/dist/{rowsModule-LI6KOS46.js → rowsModule-H2S6WW4D.js} +2 -1
  365. package/dist/{schema-CGQID64D.js → schema-2R32F6AW.js} +1 -1
  366. package/dist/{schema-H2EC4GAQ.js → schema-2TPGJGVR.js} +1 -1
  367. package/dist/{schema-THXXFY6I.js → schema-47BG2TZA.js} +1 -3
  368. package/dist/{schema-AMT7P7KB.js → schema-56MOEOVR.js} +1 -1
  369. package/dist/{schema-GNTKL5DN.js → schema-5MSR4LNN.js} +1 -1
  370. package/dist/{schema-5ZTGVQAJ.js → schema-5RIYEWE6.js} +1 -1
  371. package/dist/{schema-LOQ3AFC7.js → schema-A26ZNGTZ.js} +1 -3
  372. package/dist/{schema-MMVPMJEF.js → schema-ALBF6V7Y.js} +1 -3
  373. package/dist/{schema-BKUFZLLI.js → schema-BA6WP5YZ.js} +1 -1
  374. package/dist/{schema-PQZWO3BP.js → schema-CBL2SMVR.js} +1 -3
  375. package/dist/{schema-BBTXTWYI.js → schema-CWKGLDSR.js} +1 -3
  376. package/dist/{schema-5KDEQBBT.js → schema-DBIQFL56.js} +1 -1
  377. package/dist/{schema-KPEPBGAX.js → schema-DL7V6NN2.js} +1 -1
  378. package/dist/{schema-PL3EU6EQ.js → schema-DUVJMFKQ.js} +4 -2
  379. package/dist/{schema-L5U4OROI.js → schema-ECJERHKF.js} +2 -1
  380. package/dist/{schema-YLE4XXQQ.js → schema-EDSEKZDJ.js} +1 -1
  381. package/dist/{schema-HH5HOORE.js → schema-ESR6ZIK4.js} +1 -3
  382. package/dist/{schema-5DUTAVO7.js → schema-F7TWGLRZ.js} +1 -3
  383. package/dist/{schema-B2GCEYXD.js → schema-FGB6IGZM.js} +1 -3
  384. package/dist/{schema-7NSV542V.js → schema-FKGGTM4Z.js} +2 -1
  385. package/dist/{schema-72EEMYS3.js → schema-FU2AFIEE.js} +1 -1
  386. package/dist/{schema-QORUB6EK.js → schema-JNJFCYBM.js} +18 -1
  387. package/dist/{schema-JH57NFXJ.js → schema-JYZ4RF6S.js} +2 -1
  388. package/dist/{schema-25INXAMY.js → schema-K7F6TEDK.js} +1 -2
  389. package/dist/{schema-OU35XA3Z.js → schema-KAK6DZX4.js} +1 -1
  390. package/dist/{schema-R5Y6NVBH.js → schema-MOKWIGF7.js} +1 -1
  391. package/dist/{schema-ZQSIR5UC.js → schema-MQT6BMNK.js} +1 -3
  392. package/dist/{schema-FDFQKIO5.js → schema-MR3BPPQR.js} +1 -1
  393. package/dist/{schema-VYECMPON.js → schema-OPXZYIW7.js} +1 -3
  394. package/dist/{schema-ZEVJMFLV.js → schema-PV7JGX5H.js} +1 -1
  395. package/dist/{schema-QPOBZUAR.js → schema-PWPQF5RC.js} +1 -1
  396. package/dist/{schema-GN6GAIU5.js → schema-PYQEUC5P.js} +1 -3
  397. package/dist/{schema-M5JBHQIV.js → schema-QPIC5MAG.js} +9 -2
  398. package/dist/{schema-QCIE6M2P.js → schema-R42VXFIS.js} +1 -1
  399. package/dist/{schema-J7TNCZIP.js → schema-TVUJNEX7.js} +1 -1
  400. package/dist/{schema-AXRDF6ND.js → schema-Y4TI2T3T.js} +1 -1
  401. package/dist/{schema-ZG6ZKFRZ.js → schema-ZU2EU2VP.js} +1 -1
  402. package/dist/{specValidation-VHLGDEME.js → specValidation-2NHJT7TQ.js} +4 -1
  403. package/dist/theme.js +7 -2
  404. package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
  405. package/dist/types/core/annotate.d.ts +27 -2
  406. package/dist/types/core/annotateArms.d.ts +3 -1
  407. package/dist/types/core/annotateTargets.d.ts +4 -0
  408. package/dist/types/core/annotationOrigin.d.ts +13 -0
  409. package/dist/types/core/axis.d.ts +2 -2
  410. package/dist/types/core/charts/band/stacks.d.ts +7 -1
  411. package/dist/types/core/charts/bartable/types.d.ts +14 -1
  412. package/dist/types/core/charts/box/types.d.ts +3 -1
  413. package/dist/types/core/charts/choropleth/layout.d.ts +1 -5
  414. package/dist/types/core/charts/choropleth/types.d.ts +19 -0
  415. package/dist/types/core/charts/cohort/types.d.ts +16 -3
  416. package/dist/types/core/charts/column/model.d.ts +13 -0
  417. package/dist/types/core/charts/combo/layout.d.ts +7 -0
  418. package/dist/types/core/charts/creative/types.d.ts +21 -0
  419. package/dist/types/core/charts/dimswitch/compile.d.ts +15 -2
  420. package/dist/types/core/charts/dimswitch/types.d.ts +24 -1
  421. package/dist/types/core/charts/gantt/calendar.d.ts +24 -0
  422. package/dist/types/core/charts/gantt/columns.d.ts +56 -0
  423. package/dist/types/core/charts/gantt/layout.d.ts +8 -2
  424. package/dist/types/core/charts/gantt/model.d.ts +296 -0
  425. package/dist/types/core/charts/grid/metricStack.d.ts +9 -0
  426. package/dist/types/core/charts/grid/metricStackSchema.d.ts +13 -0
  427. package/dist/types/core/charts/grid/normalize.d.ts +5 -0
  428. package/dist/types/core/charts/grid/schema.d.ts +2 -2
  429. package/dist/types/core/charts/histogram/types.d.ts +8 -0
  430. package/dist/types/core/charts/likert/layout.d.ts +10 -8
  431. package/dist/types/core/charts/pareto/layout.d.ts +2 -0
  432. package/dist/types/core/charts/pvm/types.d.ts +10 -1
  433. package/dist/types/core/charts/pyramid/types.d.ts +3 -1
  434. package/dist/types/core/charts/sankey/types.d.ts +5 -1
  435. package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
  436. package/dist/types/core/charts/scatter/model.d.ts +5 -0
  437. package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
  438. package/dist/types/core/charts/status/layout.d.ts +3 -0
  439. package/dist/types/core/charts/table/resolve.d.ts +22 -3
  440. package/dist/types/core/charts/table/view.d.ts +24 -1
  441. package/dist/types/core/claims/browser.d.ts +2 -0
  442. package/dist/types/core/claims/ids.d.ts +38 -0
  443. package/dist/types/core/deferred.d.ts +1 -0
  444. package/dist/types/core/doc/diagnostics.d.ts +3 -2
  445. package/dist/types/core/footer.d.ts +2 -0
  446. package/dist/types/core/formatSpec.d.ts +43 -14
  447. package/dist/types/core/frame.d.ts +26 -59
  448. package/dist/types/core/frameText.d.ts +203 -0
  449. package/dist/types/core/geo/types.d.ts +2 -0
  450. package/dist/types/core/geometry.d.ts +3 -1
  451. package/dist/types/core/label/categoryRow.d.ts +19 -2
  452. package/dist/types/core/label/solver.d.ts +23 -2
  453. package/dist/types/core/normalize/shared.d.ts +14 -2
  454. package/dist/types/core/notes.d.ts +15 -2
  455. package/dist/types/core/reading.d.ts +12 -1
  456. package/dist/types/core/registry.d.ts +4 -5
  457. package/dist/types/core/request.d.ts +7 -1
  458. package/dist/types/core/schema/capability.d.ts +32 -7
  459. package/dist/types/core/schema/generatedColumns.d.ts +168 -0
  460. package/dist/types/core/seriesIdentity.d.ts +4 -1
  461. package/dist/types/core/sizing.d.ts +32 -1
  462. package/dist/types/core/structureCounts.d.ts +3 -1
  463. package/dist/types/core/text.d.ts +16 -0
  464. package/dist/types/core/theme.d.ts +33 -4
  465. package/dist/types/core/themeGeometry.d.ts +9 -0
  466. package/dist/types/core/themeRules.d.ts +2 -0
  467. package/dist/types/core/timeAxis.d.ts +6 -1
  468. package/dist/types/core/types/annotations.d.ts +74 -4
  469. package/dist/types/core/types/diagram.d.ts +7 -0
  470. package/dist/types/core/types/options.d.ts +118 -15
  471. package/dist/types/core/types/scene.d.ts +30 -2
  472. package/dist/types/core/types/table.d.ts +27 -3
  473. package/dist/types/core/types/theme.d.ts +23 -0
  474. package/dist/types/index.d.ts +2 -0
  475. package/dist/types/react/TableChart.d.ts +5 -0
  476. package/dist/types/react/barrelCharts.d.ts +16 -5
  477. package/dist/types/react/charts/butterfly.d.ts +2 -2
  478. package/dist/types/react/charts/dot.d.ts +7 -1
  479. package/dist/types/react/charts/pareto.d.ts +4 -1
  480. package/dist/types/react/charts/variance.d.ts +3 -1
  481. package/dist/types/react/hover/labelCard.d.ts +11 -2
  482. package/dist/types/react/prepare.d.ts +7 -1
  483. package/dist/types/theme.d.ts +2 -0
  484. package/dist/validate.js +23 -6
  485. package/docs/TELEMETRY.md +2 -2
  486. package/docs/manual.md +283 -65
  487. package/docs/reference/bar.md +15 -4
  488. package/docs/reference/bartable.md +17 -2
  489. package/docs/reference/box.md +15 -4
  490. package/docs/reference/bullet.md +21 -6
  491. package/docs/reference/butterfly.md +17 -6
  492. package/docs/reference/choropleth.md +16 -5
  493. package/docs/reference/cohort.md +25 -5
  494. package/docs/reference/column.md +19 -4
  495. package/docs/reference/combo.md +11 -5
  496. package/docs/reference/creative.md +17 -8
  497. package/docs/reference/diagram.md +6 -1
  498. package/docs/reference/dimswitch.md +71 -118
  499. package/docs/reference/dot.md +16 -7
  500. package/docs/reference/fixtures.md +94 -1
  501. package/docs/reference/funnel.md +14 -5
  502. package/docs/reference/gantt.md +17 -16
  503. package/docs/reference/grid.md +13 -3
  504. package/docs/reference/heatmap.md +16 -6
  505. package/docs/reference/histogram.md +2 -2
  506. package/docs/reference/kpi.md +5 -1
  507. package/docs/reference/likert.md +17 -4
  508. package/docs/reference/line.md +18 -5
  509. package/docs/reference/mekko.md +10 -5
  510. package/docs/reference/options.md +20 -15
  511. package/docs/reference/pareto.md +9 -5
  512. package/docs/reference/pie.md +9 -5
  513. package/docs/reference/pvm.md +16 -6
  514. package/docs/reference/pyramid.md +14 -4
  515. package/docs/reference/react.md +6 -7
  516. package/docs/reference/sankey.md +7 -3
  517. package/docs/reference/scatter.md +8 -4
  518. package/docs/reference/slope.md +15 -5
  519. package/docs/reference/sparkline.md +1 -1
  520. package/docs/reference/status.md +7 -1
  521. package/docs/reference/table.md +41 -110
  522. package/docs/reference/theme.md +12 -4
  523. package/docs/reference/tilemap.md +2 -4
  524. package/docs/reference/treemap.md +1 -1
  525. package/docs/reference/variance.md +12 -6
  526. package/docs/reference/waffle.md +1 -1
  527. package/docs/reference/warnings.md +1077 -0
  528. package/docs/reference/waterfall.md +20 -5
  529. package/docs/use-cases.md +25 -13
  530. package/llms.txt +19 -6
  531. package/package.json +18 -3
  532. package/dist/chunk-6364WO5D.js +0 -47
  533. package/dist/chunk-DQ7YMQVX.js +0 -26
  534. package/dist/chunk-EBB4PYBN.js +0 -24
  535. package/dist/chunk-FG5L2LUK.js +0 -89
  536. package/dist/chunk-IFQN4GKK.js +0 -1852
  537. package/dist/chunk-IRXVV65V.js +0 -24
  538. package/dist/chunk-JGFHNAHS.js +0 -22
  539. package/dist/chunk-JHWYG7V5.js +0 -24
  540. package/dist/chunk-M4SPKUZE.js +0 -7
  541. package/dist/chunk-O36WX56O.js +0 -13
  542. package/dist/chunk-QJWLNP64.js +0 -24
  543. package/dist/chunk-QZIHKQRH.js +0 -26
  544. package/dist/chunk-SE7MJ2LQ.js +0 -24
  545. package/dist/chunk-TXBO2LWM.js +0 -25
  546. package/dist/chunk-UPTXFTKH.js +0 -25
  547. package/dist/chunk-UREXN6WG.js +0 -25
  548. package/dist/chunk-UZLR25BW.js +0 -24
  549. package/dist/chunk-WIVFIVFZ.js +0 -27
  550. package/dist/chunk-WZL4EEBS.js +0 -11
  551. package/dist/chunk-XHRUXZD7.js +0 -28
  552. package/dist/chunk-ZWNRLIFT.js +0 -24
@@ -1,18 +1,22 @@
1
1
  import {
2
2
  seatsPastBlockers
3
- } from "./chunk-2HTYGMMG.js";
3
+ } from "./chunk-BCMEGJRX.js";
4
4
  import {
5
5
  fittedLabel
6
- } from "./chunk-MPO5TVGF.js";
6
+ } from "./chunk-6ZDSEITW.js";
7
7
  import {
8
8
  chartTheme
9
- } from "./chunk-7DAH2E4T.js";
9
+ } from "./chunk-WFBN2HXR.js";
10
10
  import {
11
11
  chartString
12
12
  } from "./chunk-VJ7VBB6S.js";
13
13
  import {
14
14
  structureCount
15
- } from "./chunk-XCROSJ2Z.js";
15
+ } from "./chunk-KW4JXWHO.js";
16
+ import {
17
+ generatedIdList,
18
+ generatedIdWarnings
19
+ } from "./chunk-SXAZDIGM.js";
16
20
  import {
17
21
  ACCEPTANCE_PROBE,
18
22
  AUTO_LEGEND,
@@ -24,15 +28,16 @@ import {
24
28
  heightOmitted,
25
29
  rowDrivenHeight,
26
30
  rowSizing,
31
+ sideKeyGivesWay,
32
+ sideKeyOff,
27
33
  spread1DResult
28
- } from "./chunk-T2CYNDYU.js";
34
+ } from "./chunk-ETRAPN5G.js";
29
35
  import {
30
36
  CROSSABLE_RULE_PART,
31
37
  PRIORITY,
32
38
  SWATCH_RESERVE,
33
39
  authoredFootnoteCount,
34
40
  composedTextRole,
35
- createOccupiedIndex,
36
41
  fitText,
37
42
  formatDate,
38
43
  frameTextOptions,
@@ -41,23 +46,25 @@ import {
41
46
  leaderPieces,
42
47
  normalizeLegendOption,
43
48
  numberedFootnotesWith,
44
- rectContains,
45
- rectsOverlap,
46
- segmentHitsRect,
47
49
  solveFrame,
48
- solveLabels
49
- } from "./chunk-4KQHKPB3.js";
50
+ solveLabels,
51
+ withUnprintedClaims
52
+ } from "./chunk-I5VDW2XZ.js";
50
53
  import {
51
54
  disclosureNote,
52
55
  disclosuresShown
53
- } from "./chunk-SMHZXHHD.js";
56
+ } from "./chunk-DZYTXZNS.js";
57
+ import {
58
+ annotationRef
59
+ } from "./chunk-F2ET5ZTT.js";
54
60
  import {
55
61
  parseISODate,
56
62
  utcDate
57
- } from "./chunk-FFJGC2DX.js";
63
+ } from "./chunk-Z6DUNKFU.js";
58
64
  import {
59
65
  canvasMargin,
60
66
  contrastInkPaint,
67
+ createOccupiedIndex,
61
68
  dashToken,
62
69
  emphasisWeight,
63
70
  ganttRowPaint,
@@ -65,35 +72,38 @@ import {
65
72
  markRoleToken,
66
73
  paintColor,
67
74
  panelTypeClass,
75
+ rectContains,
76
+ rectsOverlap,
68
77
  resolveSemanticPaletteTheme,
69
78
  resolveSurface,
79
+ segmentHitsRect,
70
80
  semanticPalettePaint,
71
81
  separationStroke,
72
82
  strokeToken,
73
83
  surfaceFloorPaint
74
- } from "./chunk-HJRNBKIT.js";
84
+ } from "./chunk-TX5FSNAU.js";
75
85
  import {
76
86
  contrastRatio
77
- } from "./chunk-DRHQG44U.js";
87
+ } from "./chunk-BQBD6Q5J.js";
78
88
  import {
79
89
  fmtPathNumber
80
- } from "./chunk-JYAZPMSA.js";
90
+ } from "./chunk-6IUK6PAH.js";
81
91
  import {
82
92
  NormalizeError,
83
93
  TARGET_SIZE,
84
94
  accessibleTitle,
85
95
  resolveHighlight,
86
96
  resolveSize
87
- } from "./chunk-YOOHNQ3L.js";
97
+ } from "./chunk-RJICOOB3.js";
98
+ import {
99
+ compareText,
100
+ defaultMeasurer
101
+ } from "./chunk-UIHGGWES.js";
88
102
  import {
89
103
  maxOf,
90
104
  minOf,
91
105
  pushAll
92
106
  } from "./chunk-WYJEOMNY.js";
93
- import {
94
- compareText,
95
- defaultMeasurer
96
- } from "./chunk-SNQ7D5R7.js";
97
107
 
98
108
  // src/core/charts/gantt/calendar.ts
99
109
  var DAY_MS = 864e5;
@@ -103,6 +113,10 @@ function dayNum(d) {
103
113
  function dateFromDay(n) {
104
114
  return new Date(n * DAY_MS);
105
115
  }
116
+ var MIN_ISO_DAY = dayNum(utcDate(0, 0, 1)), MAX_ISO_DAY = dayNum(utcDate(9999, 11, 31));
117
+ function isISODay(n) {
118
+ return Number.isSafeInteger(n) && n >= MIN_ISO_DAY && n <= MAX_ISO_DAY;
119
+ }
106
120
  function floorTo(unit, d) {
107
121
  switch (unit) {
108
122
  case "week": {
@@ -117,26 +131,27 @@ function floorTo(unit, d) {
117
131
  return utcDate(d.getUTCFullYear(), 0, 1);
118
132
  }
119
133
  }
120
- function nextOf(unit, d) {
134
+ function nextOf(unit, d, step = 1) {
121
135
  switch (unit) {
122
136
  case "week":
123
- return utcDate(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate() + 7);
137
+ return utcDate(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate() + 7 * step);
124
138
  case "month":
125
- return utcDate(d.getUTCFullYear(), d.getUTCMonth() + 1, 1);
139
+ return utcDate(d.getUTCFullYear(), d.getUTCMonth() + step, 1);
126
140
  case "quarter":
127
- return utcDate(d.getUTCFullYear(), d.getUTCMonth() + 3, 1);
141
+ return utcDate(d.getUTCFullYear(), d.getUTCMonth() + 3 * step, 1);
128
142
  case "year":
129
- return utcDate(d.getUTCFullYear() + 1, 0, 1);
143
+ return utcDate(d.getUTCFullYear() + step, 0, 1);
130
144
  }
131
145
  }
132
146
  function ceilTo(unit, d) {
133
147
  let f = floorTo(unit, d);
134
148
  return dayNum(f) === dayNum(d) ? f : nextOf(unit, f);
135
149
  }
136
- function boundariesOf(unit, fromDay, toDay) {
137
- let out = [], d = floorTo(unit, dateFromDay(fromDay));
150
+ var SHORTEST_DAYS = { week: 7, month: 28, quarter: 89, year: 365 };
151
+ function boundariesOf(unit, fromDay, toDay, width) {
152
+ let step = Math.max(1, Math.ceil((toDay - fromDay) / SHORTEST_DAYS[unit] / width)), out = [], d = floorTo(unit, dateFromDay(fromDay));
138
153
  for (; dayNum(d) < toDay; )
139
- out.push(d), d = nextOf(unit, d);
154
+ out.push(d), d = nextOf(unit, d, step);
140
155
  return out;
141
156
  }
142
157
  var TIERS = {
@@ -146,8 +161,76 @@ var TIERS = {
146
161
  weeks: { major: "month", minor: "week", majorFmts: ["MMM yyyy", "MMM"], minorFmts: ["'W'w"] }
147
162
  };
148
163
 
164
+ // src/core/charts/gantt/columns.ts
165
+ 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 }]]));
166
+ function resolveGanttColumns(options) {
167
+ 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;
168
+ return {
169
+ ...overrides?.name ? { name: overrides.name } : {},
170
+ meta,
171
+ headers,
172
+ metaAfter: plotAt >= 0 && (metaAt < 0 || plotAt < metaAt),
173
+ authored: meta.some(Boolean) || placesBlocks,
174
+ layoutAuthored: placesBlocks || [overrides?.name, ...meta].some((column) => column?.width !== void 0 || column?.align !== void 0 || column?.headAlign !== void 0)
175
+ };
176
+ }
177
+ function alignedX(x, track, w, align) {
178
+ return align === "right" ? x + track - w : align === "center" ? x + (track - w) / 2 : x;
179
+ }
180
+ function ganttColumnWarnings(env, rows, stacked, widths) {
181
+ let { columnOverrides: overrides, columnOrder: order } = env.options;
182
+ if (overrides === void 0 && order === void 0) return [];
183
+ let count = Math.min(MAX_COLS, Math.max(0, ...rows.map((row) => row.cols.length))), metaIds = Array.from({ length: count }, (_, k) => `meta${k}`), warnings = [
184
+ ...generatedIdWarnings("gantt", "columnOverrides", overrides, ["name", ...metaIds]),
185
+ ...generatedIdWarnings("gantt", "columnOrder", order, [...count ? ["meta"] : [], "plot"])
186
+ ], layoutKeys = Object.entries(overrides ?? {}).filter(([, column]) => column.width !== void 0 || column.align !== void 0 || column.headAlign !== void 0).map(([id]) => id);
187
+ return !stacked && columnPlan(env.options)?.plain ? (layoutKeys.length && warnings.push({
188
+ code: "option-ignored",
189
+ severity: "warn",
190
+ field: ["options", "columnOverrides"],
191
+ 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`,
192
+ suggest: "Widen the chart, or lower the width."
193
+ }), order?.length && warnings.push({
194
+ code: "option-ignored",
195
+ severity: "warn",
196
+ field: ["options", "columnOrder"],
197
+ message: "columnOrder would hide a label on this canvas, so it does nothing here",
198
+ suggest: "Widen the chart."
199
+ }), warnings) : stacked ? (layoutKeys.length && warnings.push({
200
+ code: "option-ignored",
201
+ severity: "warn",
202
+ field: ["options", "columnOverrides"],
203
+ 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`,
204
+ suggest: "Widen the chart or lower the width to draw the columns."
205
+ }), order?.length && warnings.push({
206
+ code: "option-ignored",
207
+ severity: "warn",
208
+ field: ["options", "columnOrder"],
209
+ message: "this canvas draws the gantt in its stacked form, where the metadata sits on each name line, so columnOrder does nothing here",
210
+ suggest: "Widen the chart to draw the columns."
211
+ }), warnings) : (widths.floored.length && warnings.push({
212
+ code: "generated-column-width-floored",
213
+ severity: "warn",
214
+ field: ["options", "columnOverrides"],
215
+ message: `columnOverrides width of ${widths.floored.join(", ")} is under what the text needs, so the column stays as wide as its text`,
216
+ suggest: "Raise the width, or shorten the text."
217
+ }), widths.nameGaveWay && warnings.push({
218
+ code: "generated-column-width-floored",
219
+ severity: "warn",
220
+ field: ["options", "columnOverrides"],
221
+ 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`,
222
+ suggest: "Raise the width, or make the chart taller."
223
+ }), widths.capped.length && warnings.push({
224
+ code: "generated-column-width-capped",
225
+ severity: "warn",
226
+ field: ["options", "columnOverrides"],
227
+ message: `columnOverrides width of ${widths.capped.join(", ")} leaves too little timeline on this canvas, so it gave way. Ids: ${generatedIdList("gantt", "columnOverrides")}`,
228
+ suggest: "Lower the width, or widen the chart."
229
+ }), warnings);
230
+ }
231
+
149
232
  // src/core/charts/gantt/domain.ts
150
- var ITEM_KINDS = ["bar", "milestone", "chevron", "bracket", "shade", "rule"], MAX_COLS = 3;
233
+ var ITEM_KINDS = ["bar", "milestone", "chevron", "bracket", "shade", "rule"];
151
234
  function resolveGanttEnv(options, warnings) {
152
235
  let theme = resolveSemanticPaletteTheme(
153
236
  chartTheme(options),
@@ -156,6 +239,7 @@ function resolveGanttEnv(options, warnings) {
156
239
  ), tick = { family: theme.type.family, ...theme.type.axis };
157
240
  return {
158
241
  options,
242
+ columns: resolveGanttColumns(options),
159
243
  theme,
160
244
  surface: resolveSurface(theme),
161
245
  size: resolveSize(options.size),
@@ -175,18 +259,25 @@ function resolveGanttEnv(options, warnings) {
175
259
  }
176
260
  };
177
261
  }
178
- var parseDay = (s, path) => {
262
+ var parseDay = (s, path, row, list, index, field) => {
179
263
  let d = parseISODate(s);
180
- if (!d) throw new NormalizeError("invalid-date", path, `invalid ISO date '${s}'`);
264
+ if (!d) throw new NormalizeError("invalid-date", path, `invalid ISO date '${s}'`, void 0, void 0, ["data", "rows", row, list, index, field]);
181
265
  return dayNum(d);
182
266
  };
267
+ function itemPointer(data, id, ...field) {
268
+ for (let [ri, row] of data.rows.entries()) {
269
+ if (row.kind === "cadence") continue;
270
+ let ii = row.items.findIndex((item) => item?.id === id);
271
+ if (ii >= 0) return ["data", "rows", ri, "items", ii, ...field];
272
+ }
273
+ }
183
274
  function normalizeRows(data, warnings) {
184
275
  if (!data || !Array.isArray(data.rows) || data.rows.length === 0)
185
- throw new NormalizeError("empty-data", "rows", "gantt requires at least one row");
276
+ throw new NormalizeError("empty-data", "rows", "gantt requires at least one row", void 0, void 0, ["data", "rows"]);
186
277
  let rowIds = /* @__PURE__ */ new Set(), markIds = /* @__PURE__ */ new Set(), itemById = /* @__PURE__ */ new Map(), rows = data.rows.map((raw, ri) => {
187
- if (!raw?.id) throw new NormalizeError("missing-id", `rows[${ri}]`, "row requires an id");
278
+ if (!raw?.id) throw new NormalizeError("missing-id", `rows[${ri}]`, "row requires an id", void 0, void 0, ["data", "rows", ri, "id"]);
188
279
  if (rowIds.has(raw.id))
189
- throw new NormalizeError("duplicate-id", `rows[${raw.id}]`, `duplicate row id '${raw.id}'`);
280
+ throw new NormalizeError("duplicate-id", `rows[${raw.id}]`, `duplicate row id '${raw.id}'`, void 0, void 0, ["data", "rows", ri, "id"]);
190
281
  rowIds.add(raw.id);
191
282
  let cols = (raw.cols ?? []).map((cell) => typeof cell == "string" ? { text: cell } : cell);
192
283
  cols.length > MAX_COLS && (warnings.push({
@@ -197,19 +288,21 @@ function normalizeRows(data, warnings) {
197
288
  }), cols = cols.slice(0, MAX_COLS));
198
289
  let items = (raw.kind === "cadence" ? [] : raw.items).map((it, ii) => {
199
290
  let path = `rows[${raw.id}].items[${ii}]`;
200
- if (!it?.id) throw new NormalizeError("missing-id", path, "item requires an id");
291
+ if (!it?.id) throw new NormalizeError("missing-id", path, "item requires an id", void 0, void 0, ["data", "rows", ri, "items", ii, "id"]);
201
292
  if (markIds.has(it.id))
202
- throw new NormalizeError("duplicate-id", path, `duplicate item id '${it.id}'`);
293
+ throw new NormalizeError("duplicate-id", path, `duplicate item id '${it.id}'`, void 0, void 0, ["data", "rows", ri, "items", ii, "id"]);
203
294
  if (!ITEM_KINDS.includes(it.kind))
204
295
  throw new NormalizeError(
205
296
  "invalid-kind",
206
297
  path,
207
298
  `unknown item kind '${String(it.kind)}'`,
208
- ITEM_KINDS.join(", ")
299
+ ITEM_KINDS.join(", "),
300
+ void 0,
301
+ ["data", "rows", ri, "items", ii, "kind"]
209
302
  );
210
- let startDay = parseDay(it.start, `${path}.start`), endIncl = it.end !== void 0 ? parseDay(it.end, `${path}.end`) : startDay;
303
+ let startDay = parseDay(it.start, `${path}.start`, ri, "items", ii, "start"), endIncl = it.end !== void 0 ? parseDay(it.end, `${path}.end`, ri, "items", ii, "end") : startDay;
211
304
  if (endIncl < startDay)
212
- throw new NormalizeError("invalid-range", path, `end '${it.end}' precedes start '${it.start}'`);
305
+ throw new NormalizeError("invalid-range", path, `end '${it.end}' precedes start '${it.start}'`, void 0, void 0, ["data", "rows", ri, "items", ii, "end"]);
213
306
  let norm = {
214
307
  id: it.id,
215
308
  rowId: raw.id,
@@ -228,8 +321,8 @@ function normalizeRows(data, warnings) {
228
321
  events: raw.events.map((event, ei) => {
229
322
  let path = `rows[${raw.id}].events[${ei}]`;
230
323
  if (markIds.has(event.id))
231
- throw new NormalizeError("duplicate-id", path, `duplicate cadence event id '${event.id}'`);
232
- return markIds.add(event.id), { id: event.id, day: parseDay(event.date, `${path}.date`) };
324
+ throw new NormalizeError("duplicate-id", path, `duplicate cadence event id '${event.id}'`, void 0, void 0, ["data", "rows", ri, "events", ei, "id"]);
325
+ return markIds.add(event.id), { id: event.id, day: parseDay(event.date, `${path}.date`, ri, "events", ei, "date") };
233
326
  }),
234
327
  marker: raw.marker ?? "diamond",
235
328
  colorRole: raw.colorRole
@@ -296,8 +389,10 @@ function resolveGanttEvents(options, anchorDayById, span, warnings) {
296
389
  ), eventIds = /* @__PURE__ */ new Set(), events = [];
297
390
  return authoredEvents.forEach((annotation, i) => {
298
391
  let id = annotation.id ?? `event-${i + 1}`;
299
- if (eventIds.has(id) || id === "today" || id === "elapsed")
300
- throw new NormalizeError("duplicate-id", `options.annotations[${i}]`, `duplicate event id '${id}'`);
392
+ if (eventIds.has(id) || id === "today" || id === "elapsed") {
393
+ let ref = annotationRef(annotation, i, `options.annotations[${i}]`), at2 = annotation.id === void 0 ? ref.segments : [...ref.segments, "id"];
394
+ throw new NormalizeError("duplicate-id", ref.name, `duplicate event id '${id}'`, void 0, void 0, ref.segments.length ? at2 : []);
395
+ }
301
396
  eventIds.add(id);
302
397
  let at = typeof annotation.at == "string" ? annotation.at : annotation.at && "categoryId" in annotation.at ? annotation.at.categoryId : null, date = at === null ? null : parseISODate(at), ruleDay = date ? dayNum(date) : at === null ? null : anchorDayById.get(at) ?? null;
303
398
  if (ruleDay === null) {
@@ -313,7 +408,7 @@ function resolveGanttEvents(options, anchorDayById, span, warnings) {
313
408
  if (day < span.d0Day || day >= span.d1Day) {
314
409
  warnings.push({
315
410
  code: "event-out-of-range",
316
- severity: "info",
411
+ severity: "warn",
317
412
  message: `event '${id}' at '${at}' lies outside the chart span \u2014 marker suppressed`,
318
413
  owner: { annotationId: id }
319
414
  });
@@ -398,23 +493,36 @@ function overlapWarnings(rows) {
398
493
  function resolveGanttDomain(data, env, warnings) {
399
494
  let { rows, itemById } = normalizeRows(data, warnings), allItems = rows.flatMap((r) => r.items), allCadenceDays = rows.flatMap((r) => r.cadence?.events.map((event) => event.day) ?? []);
400
495
  if (allItems.length === 0 && allCadenceDays.length === 0)
401
- throw new NormalizeError("empty-data", "rows", "gantt requires at least one item or cadence date");
496
+ throw new NormalizeError("empty-data", "rows", "gantt requires at least one item or cadence date", void 0, void 0, ["data", "rows"]);
402
497
  let anchorState = /* @__PURE__ */ new Map(), resolveAnchor = (it) => {
403
498
  let st = anchorState.get(it.id);
404
499
  if (st !== 2) {
405
500
  if (st === 1)
406
- throw new NormalizeError("anchor-cycle", it.path, `anchor cycle involving item '${it.id}'`);
501
+ throw new NormalizeError("anchor-cycle", it.path, `anchor cycle involving item '${it.id}'`, void 0, void 0, itemPointer(data, it.id, "anchor"));
407
502
  if (anchorState.set(it.id, 1), it.anchor) {
408
503
  let target = itemById.get(it.anchor.toItemId);
409
504
  if (!target)
410
505
  throw new NormalizeError(
411
506
  "unknown-anchor",
412
507
  it.path,
413
- `anchor target '${it.anchor.toItemId}' not found`
508
+ `anchor target '${it.anchor.toItemId}' not found`,
509
+ void 0,
510
+ void 0,
511
+ itemPointer(data, it.id, "anchor", "toItemId")
414
512
  );
415
513
  resolveAnchor(target);
416
514
  let edgeDay = it.anchor.edge === "start" ? target.startDay : target.endDay, duration = it.endDay - it.startDay;
417
- it.startDay = edgeDay + it.anchor.offsetDays, it.endDay = it.startDay + duration;
515
+ if (it.startDay = edgeDay + it.anchor.offsetDays, it.endDay = it.startDay + duration, !isISODay(it.startDay) || !isISODay(it.endDay - 1)) {
516
+ let pointer = itemPointer(data, it.id, "anchor"), hasOffset = (pointer ? data.rows[pointer[2]].items[pointer[4]]?.anchor : void 0)?.offsetDays !== void 0;
517
+ throw new NormalizeError(
518
+ "invalid-date",
519
+ hasOffset ? `${it.path}.anchor.offsetDays` : `${it.path}.anchor`,
520
+ hasOffset ? `anchor offset ${it.anchor.offsetDays} moves item '${it.id}' outside the ISO date range (0000-01-01 to 9999-12-31)` : `anchor moves item '${it.id}' outside the ISO date range (0000-01-01 to 9999-12-31)`,
521
+ hasOffset ? "Use a smaller offset in anchor.offsetDays so the item's resolved dates stay within years 0000 to 9999." : "Shorten the item or anchor it to an earlier edge so its resolved dates stay within years 0000 to 9999.",
522
+ void 0,
523
+ hasOffset ? itemPointer(data, it.id, "anchor", "offsetDays") : pointer
524
+ );
525
+ }
418
526
  }
419
527
  anchorState.set(it.id, 2);
420
528
  }
@@ -429,8 +537,8 @@ function resolveGanttDomain(data, env, warnings) {
429
537
  return {
430
538
  rows,
431
539
  ...calendar,
432
- majorStarts: boundariesOf(calendar.tier.major, calendar.d0Day, calendar.d1Day),
433
- minorStarts: boundariesOf(calendar.tier.minor, calendar.d0Day, calendar.d1Day),
540
+ majorStarts: boundariesOf(calendar.tier.major, calendar.d0Day, calendar.d1Day, env.size.width),
541
+ minorStarts: boundariesOf(calendar.tier.minor, calendar.d0Day, calendar.d1Day, env.size.width),
434
542
  events,
435
543
  // Above three events the labels move to numbered footnotes. Badge events print their own label and never count.
436
544
  eventBadgeMode: events.filter((event) => !event.badge).length > 3,
@@ -499,12 +607,12 @@ function separatedFill(ctx, authored, rowId) {
499
607
  };
500
608
  }
501
609
  function backgroundLayers(ctx, domain) {
502
- let { env, band, body, nodes } = ctx, { options, surface } = env, { rows, todayDay, d0Day } = domain, { rowsTop, rowsBottom } = band, { x, bodyX, bodyW } = body, elapsed = [];
610
+ let { env, band, body, nodes } = ctx, { options, surface } = env, { rows, todayDay, d0Day } = domain, { rowsTop, rowsBottom } = band, { x, bodyX } = body, elapsed = [];
503
611
  if (options.rowTint && rows.forEach((r, i) => {
504
612
  i % 2 === 1 && nodes.push({
505
613
  t: "rect",
506
614
  id: `rowTint:${r.id}`,
507
- rect: { x: body.inner.x, y: band.rowY[i], w: bodyX + bodyW - body.inner.x, h: band.stacked ? band.rowY[i + 1] - band.rowY[i] : band.rowHs[i] },
615
+ 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
616
  fill: ganttRowPaint(),
509
617
  owner: { categoryId: r.id },
510
618
  part: "rowTint"
@@ -553,7 +661,7 @@ function backgroundLayers(ctx, domain) {
553
661
  });
554
662
  for (let i = 1; i <= rows.length; i++) {
555
663
  let y = band.rowY[i];
556
- nodes.push({ t: "line", id: `rowRule:${i}`, x1: body.inner.x, y1: y, x2: bodyX + bodyW, y2: y, stroke: { token: "grid" }, width: strokeToken(env.theme, "hair"), owner: {}, part: "rowRule" });
664
+ 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
665
  }
558
666
  return { elapsed, shades };
559
667
  }
@@ -893,7 +1001,7 @@ function stackedCells(env, row) {
893
1001
  });
894
1002
  }
895
1003
  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.options.colHeaders?.[k]?.trim() ?? "" })).filter((header) => header.text && rows.some((row) => row.cols[header.k]?.text));
1004
+ 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
1005
  return headers.map((header, i) => {
898
1006
  let line = i < headers.length - 1 ? `${header.text} \xB7` : header.text;
899
1007
  return { ...header, line, w: env.measure(line, env.fonts.headerMajor).width };
@@ -906,10 +1014,12 @@ function stackedLineWidth(env, domain, plotW) {
906
1014
  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
1015
  let cells = stackedCells(env, row);
908
1016
  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));
1017
+ })), stackedHeaders(env, domain.rows).reduce((sum, header) => sum + header.w, 0) + stackedNameHeadW(env));
910
1018
  if (lineW > plotW) return;
911
- let columns = planMetadataColumns(domain.rows, options.colHeaders, 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);
912
- return columns.colWs.length < count || tableTimeline < STACKED_TIMELINE_SHARE * plotW ? lineW : void 0;
1019
+ if (columnPlan(options)?.stacked) return lineW;
1020
+ 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);
1021
+ if (!(columns.colWs.length >= count && tableTimeline >= STACKED_TIMELINE_SHARE * plotW))
1022
+ return env.columns.layoutAuthored && authoredColumnsFit(env, domain, plotW) ? void 0 : lineW;
913
1023
  }
914
1024
  function colorKey(env, domain, paints, warnings) {
915
1025
  let byColor = /* @__PURE__ */ new Map();
@@ -1006,11 +1116,12 @@ function ganttFrame(env, domain, paints, warnings, milestoneKey = [], heightOpen
1006
1116
  numberedDisclosures: keyDisclosed ? milestoneKey.map((_, i) => numbered.length - milestoneKey.length + i + 1) : [],
1007
1117
  pointedNotes: [...frameTextOptions(options).pointedNotes ?? [], ...domain.eventFootnotes, ...milestoneKey],
1008
1118
  legend: colorKey(env, domain, paints, warnings),
1119
+ ...sideKeyOff(options) ? { sideKeyGivesWay: !0 } : {},
1009
1120
  theme,
1010
1121
  measure
1011
1122
  },
1012
1123
  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) => {
1124
+ ), 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
1125
  let floor = names ? rowTextFloor(names.rowLabels[i]) : 0;
1015
1126
  return floor > MIN_ROW_H ? floor : 0;
1016
1127
  }), 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 +1176,11 @@ function completeRowName(row, font, measure, subFont) {
1065
1176
  ...row.sublabel ? { sub: { text: row.sublabel, w: measure(row.sublabel, subFont).width, h: subFont.size } } : {}
1066
1177
  };
1067
1178
  }
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" });
1179
+ function planMetadataColumns(rows, headers, startX, cap, headerY, headerH, font, headerFont, measure, target, authored) {
1180
+ let count = Math.min(MAX_COLS, Math.max(0, maxOf(rows.map((row) => row.cols.length)))), fitCell = (text, cellFont, k, reserve = 0) => {
1181
+ 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
1182
  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 ? [] : [{
1183
+ }, 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
1184
  id: `col:${row.id}:hidden${index}`,
1074
1185
  kind: "activity",
1075
1186
  typeRole: "label",
@@ -1083,14 +1194,20 @@ function planMetadataColumns(rows, headers, startX, cap, headerY, headerH, font,
1083
1194
  owed: !0,
1084
1195
  noteText: `${cell.text} (${row.label})`,
1085
1196
  candidates: []
1086
- }])), headerTexts = headerCells.map((cell) => cell.text), colWs = headerTexts.map((text, index) => Math.max(
1197
+ }])), headerTexts = headerCells.map((cell) => cell.text), contentWs = headerTexts.map((text, index) => Math.max(
1087
1198
  12,
1088
1199
  measure(text, headerFont).width,
1089
1200
  maxOf(colTexts.map((row) => row[index]?.text ? measure(row[index].text, font).width + (row[index].tone ? SWATCH_RESERVE : 0) : 0))
1090
- ) + 10), colXs = [], headerRequests = [], x = startX;
1201
+ )), widthOf = (index) => authored?.widths[shown[index]], colWs = contentWs.map((content, index) => {
1202
+ let width = widthOf(index);
1203
+ return width !== void 0 ? Math.max(width, content + AUTHORED_MIN_GAP) : authored?.flushEnd && index === contentWs.length - 1 ? content : content + 10;
1204
+ }), aligned = authored ? colWs.map((width, index) => ({
1205
+ inner: authored.flushEnd && index === colWs.length - 1 ? width : Math.max(contentWs[index], width - 10),
1206
+ ...authored.overrides[shown[index]]?.align ? { align: authored.overrides[shown[index]].align } : {}
1207
+ })) : void 0, colXs = [], headerRequests = [], x = startX;
1091
1208
  return headerTexts.forEach((text, index) => {
1092
1209
  if (colXs.push(x), text) {
1093
- let size = measure(text, headerFont);
1210
+ let size = measure(text, headerFont), override = authored?.overrides[shown[index]], headAlign = override?.headAlign ?? override?.align;
1094
1211
  headerRequests.push({
1095
1212
  id: "colHeader:" + index,
1096
1213
  kind: "activity",
@@ -1104,20 +1221,29 @@ function planMetadataColumns(rows, headers, startX, cap, headerY, headerH, font,
1104
1221
  candidates: [{
1105
1222
  slot: "columnHeader",
1106
1223
  penalty: 0,
1107
- rect: { x, y: headerY + (headerH - size.height) / 2, w: size.width, h: size.height }
1224
+ 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
1225
  }]
1109
1226
  });
1110
1227
  }
1111
1228
  x += colWs[index];
1112
- }), { colTexts, colWs, colXs, headerRequests: [...headerRequests, ...dropped] };
1229
+ }), {
1230
+ colTexts,
1231
+ colWs,
1232
+ colXs,
1233
+ headerRequests: [...headerRequests, ...dropped],
1234
+ ...authored ? { aligned, shown, floors: contentWs.map((content) => content + AUTHORED_MIN_GAP) } : {}
1235
+ };
1113
1236
  }
1114
- function stackedColumns(env, rows, band, right) {
1237
+ function stackedColumns(env, rows, band, left, right) {
1115
1238
  let headers = stackedHeaders(env, rows);
1116
1239
  return {
1117
1240
  colTexts: rows.map((row) => stackedCells(env, row).map((cell) => ({ text: cell.text, ...cell.tone ? { tone: cell.tone } : {} }))),
1118
1241
  colWs: [],
1119
1242
  colXs: [],
1120
- headerRequests: headers.length === 0 ? [] : stackedHeaderRequests(env, headers, band, right)
1243
+ headerRequests: [
1244
+ ...stackedNameHeadW(env) > 0 ? [nameHeadRequest(env, env.columns.name.label.trim(), { x: left, w: 0 }, band.rowsTop - band.colHeaderH, band.colHeaderH, left)] : [],
1245
+ ...headers.length === 0 ? [] : stackedHeaderRequests(env, headers, band, right)
1246
+ ]
1121
1247
  };
1122
1248
  }
1123
1249
  function stackedHeaderRequests(env, headers, band, right) {
@@ -1138,18 +1264,118 @@ function stackedHeaderRequests(env, headers, band, right) {
1138
1264
  };
1139
1265
  }).reverse();
1140
1266
  }
1141
- var COLUMN_CAP = 90, COMPACT_COLUMN_CAP = 30;
1267
+ function stackedNameHeadW(env) {
1268
+ let label = env.columns.name?.label?.trim();
1269
+ return label ? env.measure(label, env.fonts.headerMajor).width + stackedGap(env).name : 0;
1270
+ }
1271
+ function nameHeadRequest(env, text, band, y, h, x) {
1272
+ let font = env.fonts.headerMajor, size = env.measure(text, font), align = env.columns.name?.headAlign ?? env.columns.name?.align;
1273
+ return {
1274
+ id: "colHeader:name",
1275
+ kind: "activity",
1276
+ owner: {},
1277
+ text,
1278
+ lines: [text],
1279
+ font,
1280
+ typeRole: "axis",
1281
+ priority: PRIORITY.total,
1282
+ 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 } }]
1283
+ };
1284
+ }
1285
+ 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: [] };
1286
+ function nameFloorW(env, rows) {
1287
+ let { fonts, measure } = env, fontOf = (r) => r.indent === 0 ? fonts.strong : fonts.label;
1288
+ return Math.max(0, maxOf(rows.filter((row) => !row.shared).map((row) => nameBandW(completeRowName(row, fontOf(row), measure, fonts.label)))), nameHeadW(env));
1289
+ }
1290
+ function columnRoom(env, domain, plotW, hasColumns) {
1291
+ let laneReserve = domain.milestones.laneLabelW && env.options.mode !== "compact" ? 12 + domain.milestones.laneLabelW : 0;
1292
+ return plotW - 12 - (hasColumns ? env.columns.metaAfter ? 12 : 4 : 0) - Math.max(MINIMUM_TIMELINE, columnPlan(env.options)?.minimumTimeline ?? 0) - laneReserve;
1293
+ }
1294
+ function authoredColumnsFit(env, domain, plotW) {
1295
+ let { name, meta } = env.columns, { rows } = domain, plan = planMetadataColumns(
1296
+ rows,
1297
+ env.columns.headers,
1298
+ 0,
1299
+ COLUMN_CAP,
1300
+ 0,
1301
+ 0,
1302
+ env.fonts.label,
1303
+ env.fonts.headerMajor,
1304
+ env.measure,
1305
+ env.options.target,
1306
+ { overrides: meta, widths: meta.map((column) => column?.width), flushEnd: !1, keepAll: !0 }
1307
+ );
1308
+ 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);
1309
+ }
1310
+ function authoredWidths(env, domain, plotW) {
1311
+ let { name, meta } = env.columns;
1312
+ if (!env.columns.layoutAuthored) return NO_AUTHORED_WIDTHS;
1313
+ let { fonts, measure, options } = env, { rows } = domain, nameFloor = nameFloorW(env, rows), widths = meta.map((column) => column?.width), plan = planMetadataColumns(
1314
+ rows,
1315
+ env.columns.headers,
1316
+ 0,
1317
+ columnCap(env, rows, plotW),
1318
+ 0,
1319
+ 0,
1320
+ fonts.label,
1321
+ fonts.headerMajor,
1322
+ measure,
1323
+ options.target,
1324
+ { overrides: meta, widths, flushEnd: !1, keepAll: !0 }
1325
+ ), floored = [
1326
+ ...name?.width !== void 0 && name.width < nameFloor ? ["name"] : [],
1327
+ ...plan.shown.flatMap((k, index) => widths[k] !== void 0 && widths[k] < plan.floors[index] ? [`meta${k}`] : [])
1328
+ ], 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 = [];
1329
+ for (let index = drawn.length - 1; index >= 0 && excess > 0; index--) {
1330
+ let k = plan.shown[index];
1331
+ if (widths[k] === void 0) continue;
1332
+ let cut = Math.min(excess, drawn[index] - plan.floors[index]);
1333
+ cut <= 0 || (drawn[index] -= cut, widths[k] = drawn[index], excess -= cut, capped.push(`meta${k}`));
1334
+ }
1335
+ if (excess > 0 && nameW !== void 0 && nameW > nameFloor) {
1336
+ let cut = Math.min(excess, nameW - nameFloor);
1337
+ nameW -= cut, excess -= cut, capped.push("name");
1338
+ }
1339
+ return excess > 0 && meta.forEach((column, k) => {
1340
+ column?.width !== void 0 && !capped.includes(`meta${k}`) && capped.push(`meta${k}`), widths[k] = void 0;
1341
+ }), {
1342
+ ...nameW === void 0 ? {} : { name: nameW },
1343
+ ...stepW === void 0 ? {} : { nameGaveWay: !0 },
1344
+ meta: widths,
1345
+ keepAll: excess <= 0,
1346
+ floored: stepW === void 0 ? floored : floored.filter((id) => id !== "name"),
1347
+ capped
1348
+ };
1349
+ }
1350
+ 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;
1351
+ function steppedNameW(env, domain, plotW, from, available) {
1352
+ let step = columnPlan(env.options)?.nameStep;
1353
+ if (step === void 0) return;
1354
+ 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);
1355
+ return steps[Math.min(step, steps.length - 1)];
1356
+ }
1357
+ function defaultNameBudget(env, rows, plotW, available) {
1358
+ 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))));
1359
+ return Math.max(narrowest, Math.min(natural, plotW * 0.3, available));
1360
+ }
1361
+ function nameHeadW(env) {
1362
+ let label = env.columns.name?.label?.trim();
1363
+ return label ? env.measure(label, env.fonts.headerMajor).width : 0;
1364
+ }
1365
+ function authoredPlan(env, widths, flushEnd) {
1366
+ return env.columns.authored || env.columns.layoutAuthored ? { overrides: env.columns.meta, widths: widths.meta, flushEnd, keepAll: widths.keepAll } : void 0;
1367
+ }
1142
1368
  function columnCap(env, rows, plotW) {
1143
- let { fonts, measure } = env, colWs = planMetadataColumns(rows, env.options.colHeaders, 0, COLUMN_CAP, 0, 0, fonts.label, fonts.headerMajor, measure, env.options.target).colWs;
1369
+ 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
1370
  if (colWs.length === 0) return COLUMN_CAP;
1145
1371
  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
1372
  return plotW - names - 12 - colWs.reduce((sum, width) => sum + width, 0) - 4 >= STACKED_TIMELINE_SHARE * plotW ? COLUMN_CAP : COMPACT_COLUMN_CAP;
1147
1373
  }
1148
1374
  var nameBandW = (name) => name.indentPx + Math.max(name.w, name.sub?.w ?? 0);
1149
1375
  function rowNames(env, domain, plotW, stacked, headerTop, headerH) {
1150
- let { fonts, measure } = env, { rows, milestones } = domain, measuredColumns = planMetadataColumns(
1376
+ let { fonts, measure } = env, { rows, milestones } = domain, widths = authoredWidths(env, domain, plotW), measuredColumns = planMetadataColumns(
1151
1377
  rows,
1152
- env.options.colHeaders,
1378
+ env.columns.headers,
1153
1379
  0,
1154
1380
  columnCap(env, rows, plotW),
1155
1381
  headerTop,
@@ -1157,8 +1383,9 @@ function rowNames(env, domain, plotW, stacked, headerTop, headerH) {
1157
1383
  fonts.label,
1158
1384
  fonts.headerMajor,
1159
1385
  measure,
1160
- env.options.target
1161
- ).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 ? 4 : 0) - minimumTimeline - laneReserve, naturalNames = Math.max(0, maxOf(rows.filter((row) => !row.shared).map((row) => Math.min(row.indent, 6) * INDENT_PX + Math.max(measure(row.label, rowFontOf(row)).width, row.sublabel ? measure(row.sublabel, fonts.label).width : 0)))), nameBudget = Math.max(minimumLabelBandW, Math.min(naturalNames, plotW * 0.3, availableNames));
1386
+ env.options.target,
1387
+ authoredPlan(env, widths, env.columns.metaAfter)
1388
+ ).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
1389
  return { rowLabels: stacked ? completeNames.map((name, i) => {
1163
1390
  let text = rows[i].label.trim().split(/\s+/).join(" ");
1164
1391
  return { ...name, lines: [text], w: measure(text, name.font).width, h: name.font.size };
@@ -1168,9 +1395,9 @@ function rowNames(env, domain, plotW, stacked, headerTop, headerH) {
1168
1395
  }), minimumLabelBandW };
1169
1396
  }
1170
1397
  function ganttBody(env, domain, frame, band, warnings) {
1171
- let { fonts, measure } = env, { rows, milestones, d0Day, d1Day } = domain, plot0 = frame.plot, planColumns = (startX) => planMetadataColumns(
1398
+ 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
1399
  rows,
1173
- env.options.colHeaders,
1400
+ env.columns.headers,
1174
1401
  startX,
1175
1402
  columnCap(env, rows, plot0.w),
1176
1403
  band.headerTop,
@@ -1178,8 +1405,11 @@ function ganttBody(env, domain, frame, band, warnings) {
1178
1405
  fonts.label,
1179
1406
  fonts.headerMajor,
1180
1407
  measure,
1181
- env.options.target
1182
- ), laneLabelW = milestones.laneLabelW, { rowLabels, minimumLabelBandW } = band.names ?? rowNames(env, domain, plot0.w, band.stacked, band.headerTop, band.headerH), labelBandW = Math.max(0, maxOf(rowLabels.filter((_, i) => !rows[i].shared).map(nameBandW))), columns = band.stacked ? stackedColumns(env, rows, band, plot0.x + plot0.w) : planColumns(plot0.x + labelBandW + 12), colCount = columns.colWs.length, bodyX = band.stacked ? plot0.x : plot0.x + labelBandW + 12 + columns.colWs.reduce((sum, width) => sum + width, 0) + (colCount > 0 ? 4 : 0), availableBodyW = Math.max(40, plot0.x + plot0.w - bodyX), laneGap = 12, laneEnabled = !band.stacked && !env.options[NO_LANE] && laneLabelW > 0 && env.options.mode !== "compact" && availableBodyW >= 80 + laneGap + laneLabelW;
1408
+ env.options.target,
1409
+ authoredPlan(env, widths, metaAfter)
1410
+ ), 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();
1411
+ nameLabel && !band.stacked && columns.headerRequests.push(nameHeadRequest(env, nameLabel, { x: plot0.x, w: labelBandW }, band.headerTop, band.headerH));
1412
+ let laneGap = 12, laneEnabled = !band.stacked && !env.options[NO_LANE] && laneLabelW > 0 && env.options.mode !== "compact" && availableBodyW >= 80 + laneGap + laneLabelW;
1183
1413
  laneLabelW > 0 && !laneEnabled && !band.stacked && !env.options[NO_LANE] && warnings.push({
1184
1414
  code: "milestone-lane-overflow",
1185
1415
  severity: "warn",
@@ -1209,6 +1439,10 @@ function ganttBody(env, domain, frame, band, warnings) {
1209
1439
  labelBandW: band.stacked ? 0 : labelBandW,
1210
1440
  minimumLabelBandW,
1211
1441
  columns,
1442
+ metaGap,
1443
+ rowsRight: metaAfter ? plotRight : bodyX + bodyW,
1444
+ timelineRight: plotRight - trailing,
1445
+ authoredWidths: widths,
1212
1446
  bodyX,
1213
1447
  bodyW,
1214
1448
  laneGap,
@@ -1253,7 +1487,7 @@ function spanLabel(ctx, row, place) {
1253
1487
  insidePaint: ctx.paints.item(it)
1254
1488
  }), 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
1489
  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.inner.x + ctx.body.inner.w - ctx.body.bodyX };
1490
+ let flagSeats = planRowFlags(ctx.domain, ctx.body, row).seats, timeline = { ...rect, x: ctx.body.bodyX, w: ctx.body.timelineRight - ctx.body.bodyX };
1257
1491
  offCentre = offCentre.flatMap((candidate) => {
1258
1492
  let above = candidate.slot === "aboveBar";
1259
1493
  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 +1510,7 @@ function spanLabel(ctx, row, place) {
1276
1510
  ], nextToArrow = (seat) => {
1277
1511
  let [from, to] = seat.x >= rect.x + rect.w ? [rect.x + rect.w, seat.x] : [seat.x + seat.w, rect.x];
1278
1512
  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.inner.x + ctx.body.inner.w, 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));
1513
+ }, 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
1514
  ctx.requests.push({
1281
1515
  id: `item:${it.rowId}:${it.id}`,
1282
1516
  kind: "item",
@@ -1287,6 +1521,8 @@ function spanLabel(ctx, row, place) {
1287
1521
  font: fonts.label,
1288
1522
  // Keep the one span name before milestones compete for the row bands.
1289
1523
  priority: (rowMilestoneItems.length && offCentre.length ? PRIORITY.extreme + 1 : PRIORITY.interior) + Math.min(99, duration) + bonus(ctx.env, it),
1524
+ // A highlighted value passes the minimal density gate.
1525
+ ...bonus(ctx.env, it) > 0 ? { keepWhenDense: !0 } : {},
1290
1526
  candidates: ctx.crossRules ? crossingRules(ctx.body.ruleClaims, seats) : seats
1291
1527
  });
1292
1528
  }
@@ -1316,6 +1552,7 @@ function ruleLabel(ctx, place) {
1316
1552
  lines: [text],
1317
1553
  font: ctx.env.fonts.label,
1318
1554
  priority: PRIORITY.interior + Math.min(99, it.endDay - it.startDay) + bonus(ctx.env, it),
1555
+ ...bonus(ctx.env, it) > 0 ? { keepWhenDense: !0 } : {},
1319
1556
  candidates: [{ slot: "aboveRule", rect: { x: rect.x + 4, y: rect.y + rect.h - 4 - tsize.height, w: tsize.width, h: tsize.height }, penalty: 0, overRules: !0 }]
1320
1557
  });
1321
1558
  }
@@ -1343,7 +1580,7 @@ function milestoneLabel(ctx, row, place) {
1343
1580
  let laneCenterY = body.clusteredLabelY.get(it.id), flags = [];
1344
1581
  if (number === void 0 && ctx.flagRows.has(row.row.id)) {
1345
1582
  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.inner.x + body.inner.w - lo }, rect) && flags.push({
1583
+ seat && rect && rectContains({ ...rowBox, w: body.timelineRight - lo }, rect) && flags.push({
1347
1584
  slot: seat.above ? "flagAbove" : "flagBelow",
1348
1585
  rect,
1349
1586
  penalty: -1,
@@ -1380,7 +1617,7 @@ function milestoneLabel(ctx, row, place) {
1380
1617
  }
1381
1618
  var FLAG_GAP = 4;
1382
1619
  function planRowFlags(domain, body, row) {
1383
- let right = body.inner.x + body.inner.w, flags = row.items.filter((item) => domain.milestones.byId.has(item.it.id)).map((item) => {
1620
+ let right = body.timelineRight, flags = row.items.filter((item) => domain.milestones.byId.has(item.it.id)).map((item) => {
1384
1621
  let size = domain.milestones.byId.get(item.it.id).size;
1385
1622
  return { id: item.it.id, cx: item.cx, w: size.width, h: size.height, x: Math.min(item.cx, right - size.width) };
1386
1623
  }).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 +1662,9 @@ var SUBLABEL_GAP = 2;
1425
1662
  function activityLabels(ctx, place) {
1426
1663
  let { row: r, index: i, cy } = place;
1427
1664
  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);
1665
+ 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
1666
  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: body.inner.x + rl.indentPx, y: nameY + rl.h + SUBLABEL_GAP, w: rl.sub.w, h: rl.sub.h };
1667
+ 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
1668
  ctx.requests.push({
1432
1669
  id: `sublabel:${r.id}`,
1433
1670
  kind: "activity",
@@ -1448,8 +1685,9 @@ function activityLabels(ctx, place) {
1448
1685
  text: r.label,
1449
1686
  ...fittedLabel({ lines: rl.lines, w: rl.w, h: rl.h, font: rl.font, ...rl.title ? { title: rl.title } : {} }, rl.baseFont),
1450
1687
  font: rl.baseFont,
1688
+ ...nameLineAlign,
1451
1689
  priority,
1452
- candidates: [{ slot: "left", rect: { x: body.inner.x + rl.indentPx, y: nameY, w: rl.w, h: rl.h }, penalty: 0 }]
1690
+ candidates: [{ slot: "left", rect: { x: nameX(rl.w), y: nameY, w: rl.w, h: rl.h }, penalty: 0 }]
1453
1691
  }), ctx.band.stacked) {
1454
1692
  stackedCellLabels(ctx, place, nameCy);
1455
1693
  return;
@@ -1457,7 +1695,7 @@ function activityLabels(ctx, place) {
1457
1695
  body.columns.colTexts[i].forEach((cell, k) => {
1458
1696
  let text = cell.text;
1459
1697
  if (!text) return;
1460
- let tsize = env.measure(text, label);
1698
+ let tsize = env.measure(text, label), cellW = (cell.tone ? SWATCH_RESERVE : 0) + tsize.width, aligned = body.columns.aligned?.[k];
1461
1699
  ctx.requests.push({
1462
1700
  id: `col:${r.id}:${k}`,
1463
1701
  kind: "activity",
@@ -1472,7 +1710,7 @@ function activityLabels(ctx, place) {
1472
1710
  priority: PRIORITY.extreme,
1473
1711
  candidates: [{
1474
1712
  slot: "left",
1475
- rect: { x: body.columns.colXs[k], y: cy - label.size / 2, w: (cell.tone ? SWATCH_RESERVE : 0) + tsize.width, h: label.size },
1713
+ 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
1714
  penalty: 0
1477
1715
  }]
1478
1716
  });
@@ -1543,7 +1781,7 @@ function labelNodes(env, domain, labels) {
1543
1781
  ), rules = new Set(domain.rows.flatMap((row) => row.items.filter((it) => it.kind === "rule").map((it) => it.id)));
1544
1782
  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
1783
  }
1546
- var spills = (label, bar) => label.slot === "insideBacked" && !rectContains(bar, label.rect);
1784
+ var spills = (label, bar) => label.slot === "insideBacked" && !rectContains(bar, label.rect), stackedForms = /* @__PURE__ */ new WeakSet();
1547
1785
  function assembleGanttGeometry(input) {
1548
1786
  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
1787
  let span = spans.get(label.owner.segmentId ?? "");
@@ -1587,15 +1825,14 @@ function assembleGanttGeometry(input) {
1587
1825
  message: `Arrow name '${label.text}' has no clear label seat at this size`,
1588
1826
  suggest: "increase chart width or shorten the arrow name"
1589
1827
  });
1590
- let { rows, granularity, d0Day, d1Day, milestones } = domain, n = rows.length, { colWs } = body.columns, laneLabelW = milestones.laneLabelW;
1591
- return {
1828
+ let { rows, granularity, d0Day, d1Day, milestones } = domain, n = rows.length, { colWs } = body.columns, laneLabelW = milestones.laneLabelW, assembled = withUnprintedClaims({
1592
1829
  type: "gantt",
1593
1830
  size,
1594
1831
  sizing: rowSizing("gantt", size, {
1595
1832
  chromeH: size.height - band.bodyH,
1596
1833
  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
1834
  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 ? 4 : 0) + 80 + (laneLabelW && options.mode !== "compact" ? body.laneGap + laneLabelW : 0)
1835
+ 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
1836
  }),
1600
1837
  plot: body.plot,
1601
1838
  scene: [...frame.nodes, ...gridAroundLabels([...input.geometry.nodes, ...input.annotated.nodes], solved.placed, spans), ...labelNodes(env, domain, solved.placed)],
@@ -1628,7 +1865,8 @@ function assembleGanttGeometry(input) {
1628
1865
  },
1629
1866
  warnings: input.warnings,
1630
1867
  debug: { occupied: input.occupied.snapshot(), decisions: solved.decisions }
1631
- };
1868
+ }, [...input.geometry.elapsed, ...input.annotated.placed.filter((annotation) => !annotation.labelId)].map((annotation) => `annotation:${annotation.id}`));
1869
+ return band.stacked && stackedForms.add(assembled), assembled;
1632
1870
  }
1633
1871
  function gridAroundLabels(nodes, placed, spans) {
1634
1872
  let labels = placed.filter((label) => !label.hidden);
@@ -1654,16 +1892,7 @@ function layoutGanttPass(data, options = {}, keyed = /* @__PURE__ */ new Set(),
1654
1892
  let { [CARD_HEIGHT_MEMO]: _call, ...full } = options;
1655
1893
  fullCardOptions.set(data, full);
1656
1894
  }
1657
- let warnings = [];
1658
- options.format !== void 0 && warnings.push({
1659
- code: "format-unused",
1660
- severity: "warn",
1661
- field: ["options", "format"],
1662
- message: "'gantt' has no value labels of its own; options.format is ignored",
1663
- suggest: "Remove options.format. Gantt formats calendar dates through its date options.",
1664
- fix: [{ op: "remove", path: "/options/format" }]
1665
- });
1666
- let env = resolveGanttEnv(options, warnings), domain = resolveGanttDomain(data, env, warnings), heightOpen = autoHeight || options[TARGET_SIZE]?.fixed.height === !1;
1895
+ let warnings = [], env = resolveGanttEnv(options, warnings), domain = resolveGanttDomain(data, env, warnings), heightOpen = autoHeight || options[TARGET_SIZE]?.fixed.height === !1;
1667
1896
  if (heightOpen && flags.pitch) for (let [id, pitch] of flags.pitch) domain.milestones.flagPitch.set(id, pitch);
1668
1897
  let keyEntries = [...domain.milestones.byId.values()].filter((entry) => keyed.has(entry.item.id)), footnotesOff = options.footnotesOff === !0 || options.footnotes === !1, notesOff = footnotesOff || !disclosuresShown(options), keyNumbers = new Map(notesOff ? [] : keyEntries.map((entry, i) => [entry.item.id, authoredFootnoteCount(options) + domain.eventFootnotes.length + i + 1])), keyText = keyEntries.map((entry) => `${entry.text} (${domain.rows[entry.rowIndex].label})`), milestoneKey = notesOff && !footnotesOff ? [] : keyText, listedKey = notesOff && !footnotesOff ? keyText.map((text) => disclosureNote(text)) : [], keyRowHeight = keyEntries.length && !notesOff ? 32 + 2 * maxOf(keyEntries.map((entry) => entry.size.height)) : 0;
1669
1898
  keyEntries.length && !notesOff && (domain.milestones.clusterRowH = Math.max(domain.milestones.clusterRowH, keyRowHeight), warnings.push({
@@ -1697,6 +1926,7 @@ function layoutGanttPass(data, options = {}, keyed = /* @__PURE__ */ new Set(),
1697
1926
  focus: options.focus,
1698
1927
  density: options.labelDensity ?? "smart",
1699
1928
  pins: options.labelPlacements ?? {},
1929
+ labelOffsets: options.labelOffsets,
1700
1930
  measure: env.measure,
1701
1931
  plot: body.plot,
1702
1932
  canvas: { x: 0, y: 0, w: size.width, h: size.height },
@@ -1724,7 +1954,7 @@ function layoutGanttPass(data, options = {}, keyed = /* @__PURE__ */ new Set(),
1724
1954
  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
1955
  if (wideHidden < hidden || wideHidden === hidden && (!laneUsed || flagsFit)) return wide;
1726
1956
  }
1727
- pushAll(warnings, solved.warnings);
1957
+ pushAll(warnings, solved.warnings), pushAll(warnings, ganttColumnWarnings(env, domain.rows, band.stacked, body.authoredWidths));
1728
1958
  let openHeight = autoHeight || options[TARGET_SIZE]?.fixed.height === !1, cardHeight;
1729
1959
  if (openHeight && size.width < 480 && panelTypeClass(options) === void 0 && !options[ACCEPTANCE_PROBE]) {
1730
1960
  let host = options[FORCE_COMPACT] ? fullCardOptions.get(data) ?? options : options, internal = host, wider = {
@@ -1741,7 +1971,44 @@ function layoutGanttPass(data, options = {}, keyed = /* @__PURE__ */ new Set(),
1741
1971
  }
1742
1972
  return assembleGanttGeometry({ env, domain, frame, band, body, geometry, annotated, solved, occupied, warnings, keyRowHeight, cardHeight, flagRows: flags.rows });
1743
1973
  }
1974
+ 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);
1975
+ function layoutAuthoredColumns(data, options) {
1976
+ 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);
1977
+ if (!fits(plain)) return authored;
1978
+ let printed = plain.labels.filter((label) => isPrinted(label) && !isKeyNumber(label)).map(printedKey), keeps = (geo) => {
1979
+ let drawn = new Set(geo.labels.filter(isPrinted).map(printedKey));
1980
+ return !geo.refused && printed.every((key) => drawn.has(key));
1981
+ }, stands = (geo) => fits(geo) && keeps(geo);
1982
+ if (stands(authored)) return authored;
1983
+ let narrowest = (low, high, plan, passes, last) => {
1984
+ let best = last;
1985
+ for (; high - low > 1; ) {
1986
+ let middle = Math.floor((low + high) / 2), geo = draw(plan(middle));
1987
+ passes(geo) ? (high = middle, best = geo) : low = middle;
1988
+ }
1989
+ return best;
1990
+ }, isStacked = stackedForms.has(plain);
1991
+ if (options.columnOverrides?.name?.width !== void 0 && !fitsHeight(authored)) {
1992
+ let lastStep = data.rows.length - 1, widest2 = draw({ nameStep: lastStep });
1993
+ if (fitsHeight(widest2)) {
1994
+ let step = narrowest(-1, lastStep, (nameStep) => ({ nameStep }), fitsHeight, widest2);
1995
+ if (stands(step)) return step;
1996
+ }
1997
+ if (isStacked) return plain;
1998
+ let stacked = draw({ stacked: !0 });
1999
+ return stands(stacked) ? stacked : plain;
2000
+ }
2001
+ if (isStacked) return plain;
2002
+ let widest = draw({ minimumTimeline: authored.size.width });
2003
+ if (!keeps(widest)) return plain;
2004
+ let capped = narrowest(MINIMUM_TIMELINE, authored.size.width, (minimumTimeline) => ({ minimumTimeline }), keeps, widest);
2005
+ return stands(capped) ? capped : plain;
2006
+ }
1744
2007
  function layoutGantt(data, options = {}) {
2008
+ let geo = columnPlan(options) === void 0 && resolveGanttColumns(options).layoutAuthored ? layoutAuthoredColumns(data, options) : layoutGanttLabelled(data, options);
2009
+ return sideKeyGivesWay(options, geo, (keyAbove) => layoutGantt(data, keyAbove));
2010
+ }
2011
+ function layoutGanttLabelled(data, options = {}) {
1745
2012
  let first = layoutGanttPass(data, options);
1746
2013
  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
2014
  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) => {