boardplot 0.61.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -2
  3. package/dist/{ReaderBox-75LYQMSA.js → ReaderBox-5QFALZHR.js} +5 -5
  4. package/dist/{annotateEngine-CL6ZSRGG.js → annotateEngine-ONWZYNEM.js} +1 -1
  5. package/dist/build-identity.json +3 -3
  6. package/dist/{chunk-CWP5ZYVQ.js → chunk-23YYVMWH.js} +1 -1
  7. package/dist/{chunk-MNPNLXSI.js → chunk-2MK5437T.js} +7 -7
  8. package/dist/{chunk-V3YQQDR4.js → chunk-2P5KBQLT.js} +4 -4
  9. package/dist/{chunk-WVYC6MR6.js → chunk-2VUEIEUO.js} +2 -2
  10. package/dist/{chunk-TASEX7VA.js → chunk-2YXO645A.js} +1 -1
  11. package/dist/{chunk-36KGPRMX.js → chunk-35JGEMCK.js} +35 -28
  12. package/dist/{chunk-VITZVVCD.js → chunk-3DXOZRRW.js} +3 -3
  13. package/dist/{chunk-RV6JDD6S.js → chunk-3H72EFNC.js} +4 -4
  14. package/dist/{chunk-RDJ3ZU6O.js → chunk-3KYSWAEH.js} +13 -8
  15. package/dist/{chunk-WQPMBAG2.js → chunk-3QJVBKRX.js} +37 -37
  16. package/dist/{chunk-T2DGSOAH.js → chunk-3YSLEJPV.js} +1 -1
  17. package/dist/{chunk-DBKMJWPO.js → chunk-3Z4I6LNK.js} +1 -1
  18. package/dist/{chunk-OYCEFOIW.js → chunk-476R7YF4.js} +16 -16
  19. package/dist/{chunk-P3CZFAFA.js → chunk-47IEMR6C.js} +22 -18
  20. package/dist/{chunk-757IKZZU.js → chunk-4HZKH4HS.js} +2 -2
  21. package/dist/{chunk-BKUTKQMT.js → chunk-4NGKSJBX.js} +72 -22
  22. package/dist/{chunk-ZT5Q6BRT.js → chunk-4SK4IGMK.js} +3 -3
  23. package/dist/{chunk-QK2OFTEB.js → chunk-4TTNLFTJ.js} +1 -1
  24. package/dist/{chunk-RD24ORGR.js → chunk-4XDWZJUX.js} +2 -1
  25. package/dist/{chunk-TS472T4D.js → chunk-5FG24HFB.js} +4 -4
  26. package/dist/{chunk-2X6672YL.js → chunk-5J2PQ5EZ.js} +4 -4
  27. package/dist/{chunk-IXCDKCYE.js → chunk-5LUHGXXE.js} +1 -1
  28. package/dist/{chunk-FYFXOLWI.js → chunk-5OUURZ2T.js} +70 -58
  29. package/dist/{chunk-OLEUVUH3.js → chunk-64D7CHCE.js} +4 -4
  30. package/dist/{chunk-WOTRCVA5.js → chunk-6LYMOF2S.js} +3 -3
  31. package/dist/{chunk-6R6LM337.js → chunk-6MXRNA4Z.js} +17 -17
  32. package/dist/{chunk-3GL23VOF.js → chunk-6OM5IYNK.js} +65 -10
  33. package/dist/{chunk-JTCXK7AG.js → chunk-6PR23T2O.js} +1 -1
  34. package/dist/{chunk-VGOZOBNB.js → chunk-6QQPQ2TX.js} +1 -1
  35. package/dist/{chunk-BQBD6Q5J.js → chunk-6RRK3VFP.js} +1 -1
  36. package/dist/{chunk-YM7MO7WI.js → chunk-6WEJGZVQ.js} +1 -1
  37. package/dist/{chunk-SJORKHHL.js → chunk-6XDX3MIU.js} +5 -5
  38. package/dist/{chunk-Y7O3T4DF.js → chunk-75OLP5KB.js} +32 -32
  39. package/dist/{chunk-UIHGGWES.js → chunk-77LQEREO.js} +1 -1
  40. package/dist/{chunk-PRVX4PAO.js → chunk-7JSGG67J.js} +1 -1
  41. package/dist/{chunk-57XHIICM.js → chunk-7NUNEVOU.js} +14 -9
  42. package/dist/{chunk-7ZPHJOG6.js → chunk-7OT6CVQT.js} +1 -1
  43. package/dist/{chunk-EU45YU5W.js → chunk-7R43Y35G.js} +1 -1
  44. package/dist/{chunk-HTLEHU5D.js → chunk-7RAF2HJA.js} +2 -2
  45. package/dist/{chunk-5JZQXMXU.js → chunk-7S57SH2K.js} +9 -9
  46. package/dist/{chunk-HS4DLZ6H.js → chunk-7ZYGEPY2.js} +52 -28
  47. package/dist/{chunk-2KGF6AIK.js → chunk-ABUJPENV.js} +53 -42
  48. package/dist/{chunk-EV3GY7Y3.js → chunk-ADVFTNDL.js} +4 -4
  49. package/dist/{chunk-NNOKYAFB.js → chunk-AFONROHX.js} +2 -2
  50. package/dist/{chunk-MYYDNK72.js → chunk-AO73FLJT.js} +4 -4
  51. package/dist/{chunk-L6OMA45Q.js → chunk-AU2TQN6F.js} +3 -3
  52. package/dist/{chunk-NJKUODK3.js → chunk-BFHAYXUU.js} +2 -2
  53. package/dist/{chunk-6U4J3T2G.js → chunk-BFJKH4AX.js} +1 -1
  54. package/dist/{chunk-3JG764MI.js → chunk-BHO5H4AF.js} +43 -15
  55. package/dist/{chunk-E7FWHKCI.js → chunk-BKZF27CE.js} +2 -2
  56. package/dist/{chunk-VFXGAEUO.js → chunk-BR2ADMLU.js} +1 -1
  57. package/dist/{chunk-OP7K5NSS.js → chunk-BZUHBKMK.js} +4 -4
  58. package/dist/{chunk-RTSSUQ25.js → chunk-C2X6NYMY.js} +1 -1
  59. package/dist/{chunk-R3IPQHWC.js → chunk-C3ULVZI7.js} +2 -2
  60. package/dist/{chunk-ESZIJ5Z6.js → chunk-CFT6W2QY.js} +3 -3
  61. package/dist/{chunk-2BF6HZV7.js → chunk-CPBJII5T.js} +5 -5
  62. package/dist/{chunk-B62SEOJC.js → chunk-CTRPRU4Y.js} +16 -13
  63. package/dist/{chunk-7D65YEEY.js → chunk-CWBM7MXM.js} +3 -3
  64. package/dist/{chunk-OIMT2SSN.js → chunk-CZZXZFYL.js} +2 -2
  65. package/dist/{chunk-7SSN5ECA.js → chunk-D2I2BUR6.js} +1 -1
  66. package/dist/{chunk-ASRICUAD.js → chunk-DCFK2BUL.js} +2 -2
  67. package/dist/{chunk-JXHTZVSV.js → chunk-DVQR5SFL.js} +2 -2
  68. package/dist/{chunk-6JOLPUTW.js → chunk-DWEVPNNE.js} +2 -2
  69. package/dist/{chunk-NCKINI7K.js → chunk-DYG4XMCC.js} +5 -5
  70. package/dist/{chunk-ZMZNMVPR.js → chunk-E46KFVP5.js} +11 -11
  71. package/dist/{chunk-DITI57ZB.js → chunk-EKKRDPVW.js} +1 -1
  72. package/dist/{chunk-PH274WAF.js → chunk-ELFF5YO7.js} +8 -8
  73. package/dist/{chunk-YO7LCXKN.js → chunk-EPRJX5BI.js} +2 -2
  74. package/dist/{chunk-OGD23BIK.js → chunk-EPS7N5ZS.js} +5 -2
  75. package/dist/{chunk-MM2ADIPB.js → chunk-ERIMFXE3.js} +1 -1
  76. package/dist/{chunk-IKTAVMF2.js → chunk-ESS7GAO5.js} +15 -15
  77. package/dist/{chunk-TIVUSWGT.js → chunk-EW77WN7V.js} +2 -2
  78. package/dist/{chunk-56PPEORW.js → chunk-F2IGRFYM.js} +23 -23
  79. package/dist/{chunk-XGJZRPHC.js → chunk-F7LDXGWD.js} +11 -11
  80. package/dist/{chunk-JZK6ZPUM.js → chunk-FC6H5ATA.js} +2 -2
  81. package/dist/{chunk-FTIQ6TI2.js → chunk-FI5VGWUQ.js} +2 -2
  82. package/dist/{chunk-YSKLERPF.js → chunk-FPF73SCJ.js} +18 -15
  83. package/dist/{chunk-JEAUVQTV.js → chunk-FSRAPSO7.js} +25 -25
  84. package/dist/{chunk-JLJ4QRAE.js → chunk-FXKGNJYB.js} +17 -17
  85. package/dist/{chunk-25JXYOSX.js → chunk-FXQH2QJN.js} +1 -1
  86. package/dist/{chunk-EL5E6O3K.js → chunk-GA7CIH6N.js} +23 -18
  87. package/dist/{chunk-KTFUYWN2.js → chunk-GCOFMXFJ.js} +5 -5
  88. package/dist/{chunk-OQKVFWAO.js → chunk-GGWYJNHH.js} +4 -4
  89. package/dist/{chunk-352V2W5P.js → chunk-GNSAYVND.js} +2 -2
  90. package/dist/{chunk-UFKLGMYZ.js → chunk-H7K3RXBQ.js} +1 -1
  91. package/dist/{chunk-EAMZDY55.js → chunk-HCAPGTEA.js} +1 -1
  92. package/dist/{chunk-2T22INLD.js → chunk-HUU76QHF.js} +1 -1
  93. package/dist/{chunk-CVUHCNQO.js → chunk-HV6OKHM6.js} +1 -1
  94. package/dist/{chunk-SSVOJXFR.js → chunk-HYBGISXA.js} +3 -3
  95. package/dist/{chunk-EWG3PCYJ.js → chunk-I37SEVQ4.js} +104 -68
  96. package/dist/{chunk-B76O5YXI.js → chunk-I3UJHKCS.js} +3 -3
  97. package/dist/{chunk-IIKM6NXU.js → chunk-I56NIVFF.js} +4 -4
  98. package/dist/{chunk-5DH5ACTO.js → chunk-IDMGFWB7.js} +132 -114
  99. package/dist/{chunk-YDYZWCUQ.js → chunk-IHZNRJEV.js} +1 -1
  100. package/dist/{chunk-RT4V47U6.js → chunk-IMKHDTEQ.js} +1 -1
  101. package/dist/{chunk-LEPXK7RN.js → chunk-ISNWAYX2.js} +3 -3
  102. package/dist/{chunk-G3CVCW5K.js → chunk-ITPXKZXT.js} +82 -79
  103. package/dist/{chunk-L5RZFP5B.js → chunk-J233F6JA.js} +3 -3
  104. package/dist/{chunk-EQDLZGZO.js → chunk-J6WWK4VC.js} +1 -1
  105. package/dist/{chunk-NJVXE2DU.js → chunk-J77EYTIA.js} +2 -2
  106. package/dist/{chunk-YZW4VLSO.js → chunk-JCZ64D4G.js} +4 -4
  107. package/dist/{chunk-VE6P436Y.js → chunk-JEC6YG2C.js} +34 -20
  108. package/dist/{chunk-GRMAYSIG.js → chunk-JV3S3OCN.js} +19 -18
  109. package/dist/{chunk-F2IHSUPI.js → chunk-K2ZDFPYP.js} +5 -5
  110. package/dist/{chunk-RXC3XU62.js → chunk-K3METEEY.js} +131 -30
  111. package/dist/{chunk-JLZFXNUE.js → chunk-K464WFSQ.js} +4 -4
  112. package/dist/{chunk-CYMSES53.js → chunk-KDRI3KHH.js} +7 -2
  113. package/dist/{chunk-QSMKLDAO.js → chunk-KK7UXU2E.js} +3 -3
  114. package/dist/{chunk-LLHCEZV2.js → chunk-KNTNUQNS.js} +8 -8
  115. package/dist/{chunk-QZAT46PP.js → chunk-KRSI6U6L.js} +1 -0
  116. package/dist/{chunk-T6XSXJDQ.js → chunk-KU5WGRQJ.js} +26 -26
  117. package/dist/{chunk-KY5MSTME.js → chunk-KWBG3P7W.js} +4 -4
  118. package/dist/{chunk-U2YWY6FH.js → chunk-KWKJYMXJ.js} +3 -3
  119. package/dist/{chunk-THKVAXTQ.js → chunk-KWTVCTWS.js} +246 -83
  120. package/dist/{chunk-7ZHM37LQ.js → chunk-KZ7ECRPL.js} +3 -3
  121. package/dist/{chunk-HUCUNGHB.js → chunk-L46NAICE.js} +5 -5
  122. package/dist/{chunk-64577PGJ.js → chunk-L4VGGSB3.js} +4 -4
  123. package/dist/{chunk-YXHSM7QL.js → chunk-L6T7FXEM.js} +6 -6
  124. package/dist/{chunk-XMI7SCPX.js → chunk-LE6QYQRU.js} +2 -2
  125. package/dist/{chunk-WDLWWEHZ.js → chunk-LIMLKOX7.js} +1 -1
  126. package/dist/{chunk-H5YDEIY2.js → chunk-LK5V7U6C.js} +5 -5
  127. package/dist/{chunk-533SNVDD.js → chunk-LNBYRD5Q.js} +4 -4
  128. package/dist/{chunk-USK77VAZ.js → chunk-LTEGXWSU.js} +4 -4
  129. package/dist/{chunk-TB734IYI.js → chunk-LUIHCUMB.js} +4 -4
  130. package/dist/{chunk-TL5ICZT2.js → chunk-MAA5IGGT.js} +2 -2
  131. package/dist/{chunk-MNVMTW7K.js → chunk-MDGVRYXX.js} +18 -18
  132. package/dist/{chunk-M2LYZUQA.js → chunk-MEIDC7ZF.js} +4 -4
  133. package/dist/{chunk-XTECBM5K.js → chunk-MTJZT6F2.js} +5 -5
  134. package/dist/{chunk-P3TOPI3M.js → chunk-MUYU6KTM.js} +1 -1
  135. package/dist/{chunk-F2WMTUWC.js → chunk-MVA2JWM4.js} +2 -2
  136. package/dist/{chunk-EIQTUVJT.js → chunk-MYDVNJAA.js} +1 -1
  137. package/dist/{chunk-I3GRAQHO.js → chunk-NFEVGJJ6.js} +13 -13
  138. package/dist/{chunk-JUTMQGKU.js → chunk-NFSG2WBI.js} +4 -4
  139. package/dist/{chunk-UERGJOG4.js → chunk-NFYF7P6H.js} +36 -28
  140. package/dist/{chunk-E6IN6QDF.js → chunk-NL2K3CZM.js} +5 -5
  141. package/dist/{chunk-VJAZFGBY.js → chunk-NTONEZH5.js} +20 -20
  142. package/dist/{chunk-QER2YJHC.js → chunk-NTSJ2RXB.js} +4 -4
  143. package/dist/{chunk-OIPBVU7G.js → chunk-NVPORMKX.js} +15 -15
  144. package/dist/{chunk-PGKGK43I.js → chunk-NXA2CNVU.js} +16 -10
  145. package/dist/{chunk-R2RLERPT.js → chunk-NYROTVGH.js} +1 -1
  146. package/dist/{chunk-IKH3DWS2.js → chunk-NZHIXLKM.js} +19 -17
  147. package/dist/{chunk-5ZGCGIHG.js → chunk-OCANU74G.js} +3 -3
  148. package/dist/{chunk-EM33NXGZ.js → chunk-OF4VHET3.js} +4 -4
  149. package/dist/{chunk-UXJXA4NP.js → chunk-OJLXBFI3.js} +1 -1
  150. package/dist/{chunk-BJ5GI5ZB.js → chunk-OLXZXEKQ.js} +1 -1
  151. package/dist/{chunk-FKRL2ZB2.js → chunk-OQGSYQLE.js} +1 -1
  152. package/dist/{chunk-A4UL5GIM.js → chunk-OQQGM2TM.js} +1 -1
  153. package/dist/{chunk-EOPDGMDS.js → chunk-OQRTTGYP.js} +22 -1
  154. package/dist/{chunk-35RSAHLK.js → chunk-OQTD4GN4.js} +1 -1
  155. package/dist/{chunk-UXAON5DO.js → chunk-OXWIBDJP.js} +2 -2
  156. package/dist/{chunk-F7QCIJAY.js → chunk-OYDZO5BR.js} +1 -1
  157. package/dist/{chunk-OR7KKODW.js → chunk-PDUF6EII.js} +9 -9
  158. package/dist/{chunk-XLP6U3FG.js → chunk-PHRQAWK4.js} +2 -2
  159. package/dist/{chunk-FY3VV7TF.js → chunk-PM5D5KYQ.js} +67 -30
  160. package/dist/{chunk-TI5PPS3L.js → chunk-Q5BD6PMX.js} +19 -19
  161. package/dist/{chunk-LMDU5MNF.js → chunk-QEEE2WH5.js} +4 -4
  162. package/dist/{chunk-OUSYBIGE.js → chunk-QMGCL5FR.js} +4 -4
  163. package/dist/{chunk-M4IIJ24E.js → chunk-QMZPQU65.js} +2 -2
  164. package/dist/{chunk-7VWXXBTC.js → chunk-QSNEZ4UR.js} +1 -1
  165. package/dist/{chunk-LT7IY2L3.js → chunk-QSWLPQCW.js} +27 -23
  166. package/dist/{chunk-FBUAKQAI.js → chunk-R55LS2W2.js} +24 -24
  167. package/dist/{chunk-TWMVAPG2.js → chunk-RDXJAEZ4.js} +4 -4
  168. package/dist/{chunk-VR3HLYAT.js → chunk-RDZNRSAB.js} +2 -2
  169. package/dist/{chunk-K2RZKPQ2.js → chunk-RFUSBITY.js} +1 -1
  170. package/dist/{chunk-NSQBT4CM.js → chunk-RIGQU57Y.js} +7 -7
  171. package/dist/{chunk-YBMYW7LD.js → chunk-RNA5GO3B.js} +2 -2
  172. package/dist/{chunk-LH5URXDJ.js → chunk-RODV3OHP.js} +294 -180
  173. package/dist/{chunk-EKYVRXTE.js → chunk-RPK657TE.js} +16 -2
  174. package/dist/{chunk-KJF7SLOA.js → chunk-SAVO62PW.js} +1 -1
  175. package/dist/{chunk-JE54IO26.js → chunk-SB2DHY53.js} +18 -18
  176. package/dist/{chunk-NHQKHMIS.js → chunk-SBHPRHKB.js} +4 -4
  177. package/dist/{chunk-JIVNJBXI.js → chunk-SBPFCQNK.js} +4 -4
  178. package/dist/{chunk-GSR6UO7H.js → chunk-SFPHP3CC.js} +2 -2
  179. package/dist/{chunk-GCZHZVNX.js → chunk-SIZW5V4G.js} +16 -12
  180. package/dist/{chunk-S7AHPU2N.js → chunk-SJ5KVLTG.js} +1 -1
  181. package/dist/{chunk-4ORV4RGE.js → chunk-SJZLWRRY.js} +8 -8
  182. package/dist/{chunk-RMBWY5JE.js → chunk-SOAB4G33.js} +4 -4
  183. package/dist/{chunk-LPLRXEOT.js → chunk-ST2IQX7U.js} +57 -17
  184. package/dist/{chunk-6U7VIQLV.js → chunk-T33R2CM3.js} +7 -7
  185. package/dist/{chunk-3553PK6F.js → chunk-T4ZE7AIX.js} +2 -2
  186. package/dist/{chunk-NWJ4DXAZ.js → chunk-TCQ733WC.js} +15 -15
  187. package/dist/{chunk-X4NDN6PQ.js → chunk-TGTKAIDU.js} +15 -10
  188. package/dist/{chunk-W2QJDTAR.js → chunk-U4PDXI67.js} +4 -4
  189. package/dist/{chunk-5EU5DLA3.js → chunk-UGTYYTPP.js} +2 -2
  190. package/dist/{chunk-PCHV6KYJ.js → chunk-UL3RNOYB.js} +3 -3
  191. package/dist/{chunk-6QUQEN75.js → chunk-UOTZH4TG.js} +2 -2
  192. package/dist/{chunk-LHQFDRQV.js → chunk-UQSH52UJ.js} +4 -4
  193. package/dist/{chunk-SGTSTGIP.js → chunk-UWT66OAR.js} +1 -1
  194. package/dist/{chunk-GNB4JQTB.js → chunk-V4NJTLJP.js} +12 -12
  195. package/dist/{chunk-SY7JC3PH.js → chunk-V4YJRZHE.js} +1 -1
  196. package/dist/{chunk-YUEJZBME.js → chunk-V5Y3CXSU.js} +4 -4
  197. package/dist/{chunk-H26UA4UM.js → chunk-VZFPQMYN.js} +9 -9
  198. package/dist/{chunk-ULXSTWJF.js → chunk-W35C2SL3.js} +2 -2
  199. package/dist/{chunk-TFYVBPGR.js → chunk-W6ZCXWOK.js} +1 -1
  200. package/dist/{chunk-P2QIWGFU.js → chunk-WDP7IDGF.js} +13 -13
  201. package/dist/{chunk-RZQU5DHD.js → chunk-WDQJ2DRZ.js} +14 -14
  202. package/dist/{chunk-DOVEWKJ6.js → chunk-WKBW4JFU.js} +1 -1
  203. package/dist/{chunk-OLAPTOUH.js → chunk-WM65Q3AL.js} +1 -1
  204. package/dist/{chunk-55BVHNZQ.js → chunk-WO6ZJCAO.js} +4 -4
  205. package/dist/chunk-WSRGEK5T.js +89 -0
  206. package/dist/{chunk-MBRVSKFJ.js → chunk-WXGBSBHQ.js} +13 -12
  207. package/dist/{chunk-7JM235F7.js → chunk-WXOSGKMS.js} +8 -8
  208. package/dist/{chunk-V4XTBNZD.js → chunk-XBASXPUJ.js} +2 -2
  209. package/dist/{chunk-BVE5LPOA.js → chunk-XDDFM3BH.js} +6 -6
  210. package/dist/{chunk-7WC2N4QZ.js → chunk-XJOCPL6R.js} +2 -2
  211. package/dist/{chunk-24O6BRKD.js → chunk-XJSI7ZO2.js} +1 -1
  212. package/dist/{chunk-4ZIFMZO4.js → chunk-XKGZWQF7.js} +3 -3
  213. package/dist/{chunk-WY7FHINS.js → chunk-XLHURGH3.js} +5 -5
  214. package/dist/{chunk-UGH3CLTZ.js → chunk-XWQDNJ36.js} +4 -4
  215. package/dist/{chunk-QJPI55S5.js → chunk-YBQ4F27M.js} +4 -4
  216. package/dist/{chunk-WK6LQCUT.js → chunk-YDT6QZZK.js} +9 -9
  217. package/dist/{chunk-YRWJBS6C.js → chunk-YE6B7P6Q.js} +1 -1
  218. package/dist/{chunk-WSHSR3B2.js → chunk-YERTQ576.js} +4 -4
  219. package/dist/{chunk-GEQSZ5RE.js → chunk-YF4DIQJR.js} +3 -3
  220. package/dist/{chunk-LFL4KMKF.js → chunk-YHLKL4R5.js} +3 -3
  221. package/dist/{chunk-I4A4MY3S.js → chunk-YHSY6CVM.js} +4 -4
  222. package/dist/{chunk-XC53YNZG.js → chunk-YJGZ3AOW.js} +2 -2
  223. package/dist/{chunk-F37PADCM.js → chunk-YKK25QM4.js} +4 -4
  224. package/dist/{chunk-YUJK6ZYO.js → chunk-YMBJHKTY.js} +2 -2
  225. package/dist/{chunk-EV7AATQM.js → chunk-YTFU2B5K.js} +2 -2
  226. package/dist/{chunk-GZ6MPJKY.js → chunk-YUIITZCO.js} +3 -3
  227. package/dist/{chunk-XHEG2BG6.js → chunk-Z3VCVPYX.js} +1 -1
  228. package/dist/{chunk-FNDDKZ4Z.js → chunk-ZB4WVG7Q.js} +1 -1
  229. package/dist/{chunk-JG35YUYX.js → chunk-ZCB5MLPW.js} +3 -3
  230. package/dist/{chunk-BF6KECQD.js → chunk-ZDQ2EWWH.js} +32 -28
  231. package/dist/{chunk-LL7ZU6BT.js → chunk-ZG46HLGN.js} +108 -81
  232. package/dist/chunk-ZGL2P56Z.js +11 -0
  233. package/dist/{chunk-WBIMWGV7.js → chunk-ZIAPNZ6R.js} +4 -4
  234. package/dist/{chunk-Z2WGJH2P.js → chunk-ZLIVUVIV.js} +28 -16
  235. package/dist/{chunk-32FGSRR3.js → chunk-ZMCTTTR2.js} +4 -4
  236. package/dist/{chunk-LTYDEWKW.js → chunk-ZYJZ624V.js} +5 -5
  237. package/dist/cli/index.js +2 -2
  238. package/dist/{core-NL6TMYOZ.js → core-2DRDBSL7.js} +2 -1
  239. package/dist/{core-CTI37JP5.js → core-2VAPYQDA.js} +2 -1
  240. package/dist/{core-XINQIYQ6.js → core-3JGHUUZZ.js} +2 -1
  241. package/dist/{core-LCX7EK3Y.js → core-3KMBTZ32.js} +2 -1
  242. package/dist/{core-EQP4ERQK.js → core-4HEB3CRT.js} +2 -1
  243. package/dist/{core-3H2PZVYN.js → core-4WT74WGL.js} +2 -1
  244. package/dist/{core-UPPUXBWO.js → core-4ZUNKYYC.js} +2 -1
  245. package/dist/{core-4SX63YE4.js → core-5VCTJDQM.js} +2 -1
  246. package/dist/{core-NPCHUGTV.js → core-AJANHLTB.js} +2 -1
  247. package/dist/{core-OO22DXBW.js → core-AL3TDBHQ.js} +5 -1
  248. package/dist/{core-76KPBWTL.js → core-ATBNPTR5.js} +2 -1
  249. package/dist/{core-QACGDEDF.js → core-BIEUVBZK.js} +2 -1
  250. package/dist/{core-RZ5ZDSQL.js → core-C2CCLPE5.js} +2 -1
  251. package/dist/{core-BEBRTX5W.js → core-C3VC6YEV.js} +2 -1
  252. package/dist/{core-LSN2YKO4.js → core-DCWAUTD4.js} +2 -1
  253. package/dist/{core-7LODBY2T.js → core-GYDBZC7Q.js} +2 -1
  254. package/dist/{core-SERUDXVA.js → core-H3RRJPQK.js} +2 -1
  255. package/dist/{core-GGKGWGHO.js → core-HAMHEP3M.js} +2 -1
  256. package/dist/{core-FZJOKAFE.js → core-HRBOWCHO.js} +2 -1
  257. package/dist/{core-ZYLCLTFQ.js → core-IHG5XK6Q.js} +2 -1
  258. package/dist/{core-2SCAWP7F.js → core-JNA7L23P.js} +2 -1
  259. package/dist/{core-UOATHRZG.js → core-JTHVZEC4.js} +2 -1
  260. package/dist/{core-2ZRSLX2J.js → core-JXCXTDYK.js} +2 -1
  261. package/dist/{core-DZVYQFBX.js → core-LL2O5PBD.js} +2 -1
  262. package/dist/{core-S56FGRAT.js → core-NNHCWP3B.js} +2 -1
  263. package/dist/{core-E6Q3H52Q.js → core-OM3DGO6B.js} +2 -1
  264. package/dist/{core-7PNZRGK7.js → core-QH3H6ZPI.js} +2 -1
  265. package/dist/{core-V55HGH7X.js → core-QKDNA6KJ.js} +2 -1
  266. package/dist/{core-2IWCOLCX.js → core-R6OE3ORL.js} +2 -1
  267. package/dist/{core-Y3WI32MB.js → core-RZI7LRK3.js} +2 -1
  268. package/dist/{core-J7ZHSASB.js → core-SXBMOZ3W.js} +2 -1
  269. package/dist/{core-W5WF7FHA.js → core-TXADFQ3I.js} +2 -1
  270. package/dist/{core-UYTRLCZY.js → core-UOB4JKCT.js} +2 -1
  271. package/dist/{core-7RSXZIVD.js → core-WIV43MFA.js} +2 -1
  272. package/dist/{core-B7TS5HK6.js → core-XDPELH2B.js} +2 -1
  273. package/dist/{core-DICZFWV4.js → core-YKHQUOAW.js} +2 -1
  274. package/dist/{core-ZFXHFRWI.js → core-ZXGKAECT.js} +2 -1
  275. package/dist/{dataTable-72HO6PCW.js → dataTable-JBVSQNJX.js} +3 -2
  276. package/dist/{engine-UCMXMWGA.js → engine-QUEIPS7M.js} +26 -13
  277. package/dist/fixtures.js +2 -1
  278. package/dist/fonts.js +4 -4
  279. package/dist/index.js +21 -20
  280. package/dist/{main-NS5NPNQ7.js → main-V264O3WR.js} +8 -7
  281. package/dist/mcp/server.js +14 -13
  282. package/dist/react/bar.js +3 -1
  283. package/dist/react/bartable.js +3 -1
  284. package/dist/react/box.js +3 -1
  285. package/dist/react/bullet.js +3 -1
  286. package/dist/react/butterfly.js +3 -1
  287. package/dist/react/choropleth.js +3 -1
  288. package/dist/react/cohort.js +3 -1
  289. package/dist/react/column.js +3 -1
  290. package/dist/react/combo.js +3 -1
  291. package/dist/react/creative.js +3 -1
  292. package/dist/react/diagram.js +3 -1
  293. package/dist/react/dimswitch.js +2 -1
  294. package/dist/react/dot.js +3 -1
  295. package/dist/react/export.js +19 -18
  296. package/dist/react/funnel.js +3 -1
  297. package/dist/react/gantt.js +3 -1
  298. package/dist/react/grid.js +5 -1
  299. package/dist/react/heatmap.js +3 -1
  300. package/dist/react/histogram.js +3 -1
  301. package/dist/react/index.js +86 -84
  302. package/dist/react/kpi.js +3 -1
  303. package/dist/react/likert.js +3 -1
  304. package/dist/react/line.js +3 -1
  305. package/dist/react/mekko.js +3 -1
  306. package/dist/react/pareto.js +3 -1
  307. package/dist/react/pie.js +3 -1
  308. package/dist/react/prepare.js +23 -21
  309. package/dist/react/pvm.js +3 -1
  310. package/dist/react/pyramid.js +3 -1
  311. package/dist/react/sankey.js +3 -1
  312. package/dist/react/scatter.js +3 -1
  313. package/dist/react/slope.js +3 -1
  314. package/dist/react/sparkline.js +3 -1
  315. package/dist/react/spec.js +12 -10
  316. package/dist/react/status.js +3 -1
  317. package/dist/react/story.js +4 -3
  318. package/dist/react/table.js +2 -1
  319. package/dist/react/theme.js +4 -3
  320. package/dist/react/tilemap.js +3 -1
  321. package/dist/react/treemap.js +3 -1
  322. package/dist/react/variance.js +3 -1
  323. package/dist/react/waffle.js +3 -1
  324. package/dist/react/waterfall.js +3 -1
  325. package/dist/{resvg-ZYEZTSUO.js → resvg-M5HJ3ME3.js} +1 -1
  326. package/dist/{rowsModule-QGCXTE6X.js → rowsModule-6UL4SSUC.js} +1 -1
  327. package/dist/{schema-CWOPBOK4.js → schema-3FSG2YXY.js} +1 -1
  328. package/dist/{schema-4SRLAXUP.js → schema-5PQPGEZQ.js} +1 -1
  329. package/dist/{schema-GAUZZRA4.js → schema-6LUORZNN.js} +1 -1
  330. package/dist/{schema-AGKSRVXN.js → schema-6MDHX2E7.js} +1 -1
  331. package/dist/{schema-UEZQN4WK.js → schema-7HXHGBUN.js} +1 -1
  332. package/dist/{schema-G6KGEQRD.js → schema-ACOD4XKI.js} +1 -1
  333. package/dist/{schema-C3PYINCY.js → schema-B3I7XBP3.js} +1 -1
  334. package/dist/{schema-MCA4J2BP.js → schema-CCOTGURZ.js} +1 -1
  335. package/dist/{schema-FSX7WR7M.js → schema-E5O7M5KM.js} +1 -1
  336. package/dist/{schema-RRZXOF5G.js → schema-EWATAK6Z.js} +1 -1
  337. package/dist/{schema-2BFNQ5GW.js → schema-FEBMLOZG.js} +1 -1
  338. package/dist/{schema-WWWWEQAR.js → schema-FL57LIU2.js} +1 -1
  339. package/dist/{schema-YUMFWHIE.js → schema-FTRAVEX3.js} +2 -1
  340. package/dist/{schema-E2WWDYU5.js → schema-GSKCG2WP.js} +1 -1
  341. package/dist/{schema-6WNG4LCV.js → schema-HVDY6QXK.js} +1 -1
  342. package/dist/{schema-3IXLM7X4.js → schema-I267TVQ4.js} +1 -1
  343. package/dist/{schema-6PLNMFVY.js → schema-IG2WGTQO.js} +1 -1
  344. package/dist/{schema-ZFUX3UIO.js → schema-ITZQDKSE.js} +1 -1
  345. package/dist/{schema-JKZBRZSI.js → schema-LCOGZNQF.js} +1 -1
  346. package/dist/{schema-7WNRP7FW.js → schema-MC3CQNPR.js} +1 -1
  347. package/dist/{schema-AMIFJ2JX.js → schema-MP2QNFCN.js} +1 -1
  348. package/dist/{schema-FOBGNU5I.js → schema-NYCMLGOW.js} +1 -1
  349. package/dist/{schema-ENLWEZOI.js → schema-OML7XS7J.js} +1 -1
  350. package/dist/{schema-7XQMEJII.js → schema-QAAVXXYR.js} +1 -1
  351. package/dist/{schema-XQSP5QAX.js → schema-QPYFXSEQ.js} +1 -1
  352. package/dist/{schema-JJIXQIBN.js → schema-RJBIXN5U.js} +1 -1
  353. package/dist/{schema-MM7JPYI7.js → schema-RW47HWVO.js} +1 -1
  354. package/dist/{schema-PVUWOLUB.js → schema-S7Q4YR7R.js} +1 -1
  355. package/dist/{schema-OIY565PO.js → schema-SWVWMZY3.js} +1 -1
  356. package/dist/{schema-EAYC5DVH.js → schema-T3RSFE2V.js} +1 -1
  357. package/dist/{schema-O5HGNE3W.js → schema-T4CGWZLB.js} +4 -2
  358. package/dist/{schema-2XGHH7PU.js → schema-TXYKZ5NT.js} +1 -1
  359. package/dist/{schema-ZBIIPJAI.js → schema-U6CZI6XG.js} +1 -1
  360. package/dist/{schema-BK2TU6XT.js → schema-XE4WY64H.js} +1 -1
  361. package/dist/{schema-ETH6WXZU.js → schema-YDWVXQPK.js} +1 -1
  362. package/dist/{schema-GQPXSWIR.js → schema-YPGXVI22.js} +1 -1
  363. package/dist/{schema-GFRB4BJW.js → schema-ZMOIP2BK.js} +1 -1
  364. package/dist/{specValidation-5AI56FM3.js → specValidation-6LVTTHZI.js} +2 -1
  365. package/dist/theme.js +3 -3
  366. package/dist/{themeShapeRules-GGBYWZY7.js → themeShapeRules-NDEXKFC7.js} +1 -1
  367. package/dist/types/core/charts/bar/layout.d.ts +1 -1
  368. package/dist/types/core/charts/column/model.d.ts +3 -1
  369. package/dist/types/core/charts/grid/metricStack.d.ts +35 -3
  370. package/dist/types/core/charts/grid/metricStackSchema.d.ts +8 -0
  371. package/dist/types/core/charts/grid/schema.d.ts +5 -0
  372. package/dist/types/core/charts/scatter/layout.d.ts +18 -1
  373. package/dist/types/core/charts/scatter/marks.d.ts +94 -0
  374. package/dist/types/core/charts/scatter/zones.d.ts +52 -0
  375. package/dist/types/core/fontMetrics/index.d.ts +3 -1
  376. package/dist/types/core/fontMetrics/injected.d.ts +1 -0
  377. package/dist/types/core/frame.d.ts +7 -2
  378. package/dist/types/core/label/occupied.d.ts +1 -1
  379. package/dist/types/core/registry.d.ts +2 -0
  380. package/dist/types/core/request.d.ts +7 -0
  381. package/dist/types/core/sizing.d.ts +9 -0
  382. package/dist/types/core/themeGeometry.d.ts +184 -0
  383. package/dist/types/core/types/options.d.ts +6 -0
  384. package/dist/types/core/types/scene.d.ts +11 -0
  385. package/dist/types/core/types/theme.d.ts +11 -0
  386. package/dist/types/react/hover/placement.d.ts +11 -0
  387. package/dist/types/react/prepare.d.ts +2 -1
  388. package/dist/types/react/useHover.d.ts +1 -0
  389. package/dist/validate.js +8 -6
  390. package/docs/manual.md +4 -2
  391. package/docs/reference/fixtures.md +3 -0
  392. package/docs/reference/grid.md +23 -10
  393. package/docs/reference/options.md +3 -0
  394. package/docs/reference/react.md +2 -0
  395. package/docs/reference/theme.md +4 -1
  396. package/package.json +1 -1
  397. package/dist/chunk-BOQQARLT.js +0 -89
@@ -2,19 +2,19 @@ import {
2
2
  sharedKeys10,
3
3
  sharedKeys5,
4
4
  sharedKeys9
5
- } from "./chunk-IXCDKCYE.js";
5
+ } from "./chunk-5LUHGXXE.js";
6
6
  import {
7
7
  optionKeyCheck
8
8
  } from "./chunk-Z6H5ED2I.js";
9
9
  import {
10
10
  createChartComponent
11
- } from "./chunk-36KGPRMX.js";
11
+ } from "./chunk-35JGEMCK.js";
12
12
  import {
13
13
  heatmapCore
14
- } from "./chunk-UXAON5DO.js";
14
+ } from "./chunk-OXWIBDJP.js";
15
15
  import {
16
16
  registeredType
17
- } from "./chunk-7SSN5ECA.js";
17
+ } from "./chunk-D2I2BUR6.js";
18
18
 
19
19
  // src/react/charts/heatmap.ts
20
20
  var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, scaleGroup: { y: 0, id: 0 }, sort: { categories: 0, segments: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, interactive: 0, annotations: sharedKeys9, scale: 0, variant: 0, cap: { pct: 0, abs: 0 }, breaks: 0, bubble: { levels: 0, sizeLabel: 0, colorLabel: 0, track: 0 }, columnOverrides: { "*": { width: 0, align: 0, headAlign: 0, label: 0 } }, minBase: 0, missing: 0 }, labels: ["category", "series", "point"] }), HeatmapChart = createChartComponent(registeredType(heatmapCore), checkOptionKeys);
@@ -2,54 +2,54 @@ import {
2
2
  floorValueLabel,
3
3
  printedValueLabel,
4
4
  valueLabelPlotFloor
5
- } from "./chunk-CVUHCNQO.js";
5
+ } from "./chunk-HV6OKHM6.js";
6
6
  import {
7
7
  stackSegmentCandidates
8
- } from "./chunk-ASRICUAD.js";
8
+ } from "./chunk-DCFK2BUL.js";
9
9
  import {
10
10
  hasLabelPosition,
11
11
  positionBarLabel
12
- } from "./chunk-EIQTUVJT.js";
12
+ } from "./chunk-MYDVNJAA.js";
13
13
  import {
14
14
  STACK_ROOM,
15
15
  digitSeat,
16
16
  digitSeatEdge,
17
17
  segmentTooShort
18
- } from "./chunk-V4XTBNZD.js";
18
+ } from "./chunk-XBASXPUJ.js";
19
19
  import {
20
20
  axisBreakHeightOrderWarning,
21
21
  axisBreakInvalid,
22
22
  breakReversesOrder,
23
23
  breakStyleRefusal
24
- } from "./chunk-KJF7SLOA.js";
24
+ } from "./chunk-SAVO62PW.js";
25
25
  import {
26
26
  valueLineExtent
27
- } from "./chunk-4ZIFMZO4.js";
27
+ } from "./chunk-XKGZWQF7.js";
28
28
  import {
29
29
  runAnnotatePass
30
- } from "./chunk-U2YWY6FH.js";
30
+ } from "./chunk-KWKJYMXJ.js";
31
31
  import {
32
32
  GUTTER_MAX_SHARE,
33
33
  fitColumn,
34
34
  stepDownFont
35
- } from "./chunk-352V2W5P.js";
35
+ } from "./chunk-GNSAYVND.js";
36
36
  import {
37
37
  chartPalette,
38
38
  chartTheme
39
- } from "./chunk-YRWJBS6C.js";
39
+ } from "./chunk-YE6B7P6Q.js";
40
40
  import {
41
41
  widthsThatFit
42
- } from "./chunk-RTSSUQ25.js";
42
+ } from "./chunk-C2X6NYMY.js";
43
43
  import {
44
44
  BRACKET_GAP,
45
45
  BRACKET_TICK
46
46
  } from "./chunk-R4MVXUAG.js";
47
47
  import {
48
48
  categoryBandFromCenters
49
- } from "./chunk-OLAPTOUH.js";
49
+ } from "./chunk-WM65Q3AL.js";
50
50
  import {
51
51
  structureCount
52
- } from "./chunk-YDYZWCUQ.js";
52
+ } from "./chunk-IHZNRJEV.js";
53
53
  import {
54
54
  generatedIdWarnings
55
55
  } from "./chunk-SXAZDIGM.js";
@@ -79,12 +79,13 @@ import {
79
79
  valueAxisTitleBand,
80
80
  valueAxisTitleRequest,
81
81
  yieldToRotatedName
82
- } from "./chunk-FY3VV7TF.js";
82
+ } from "./chunk-PM5D5KYQ.js";
83
83
  import {
84
84
  HEIGHT_STRUCTURE,
85
85
  PRIORITY,
86
86
  SERIES_VALUE_GAP,
87
87
  authoredNotes,
88
+ collectFrameClaims,
88
89
  composedTextRole,
89
90
  distinguishSeries,
90
91
  fitText,
@@ -102,10 +103,11 @@ import {
102
103
  solveFrame,
103
104
  solveLabels,
104
105
  withUnprintedClaims
105
- } from "./chunk-Z2WGJH2P.js";
106
+ } from "./chunk-ZLIVUVIV.js";
106
107
  import {
108
+ copyFrame,
107
109
  disclosureNote
108
- } from "./chunk-B76O5YXI.js";
110
+ } from "./chunk-I3UJHKCS.js";
109
111
  import {
110
112
  emptyIdRecord
111
113
  } from "./chunk-LINZPU5D.js";
@@ -117,13 +119,13 @@ import {
117
119
  percentChangeSpec,
118
120
  seriesRasterFormatter,
119
121
  signedFormatterFromExample
120
- } from "./chunk-3JG764MI.js";
122
+ } from "./chunk-BHO5H4AF.js";
121
123
  import {
122
124
  authoredDecimals,
123
125
  changePercentText,
124
126
  chartStrings,
125
127
  formatAutomaticNumber
126
- } from "./chunk-FYFXOLWI.js";
128
+ } from "./chunk-5OUURZ2T.js";
127
129
  import {
128
130
  cellMeta,
129
131
  cellValue,
@@ -151,7 +153,7 @@ import {
151
153
  strokeToken,
152
154
  textScaleOf,
153
155
  withSegmentSeams
154
- } from "./chunk-BKUTKQMT.js";
156
+ } from "./chunk-4NGKSJBX.js";
155
157
  import {
156
158
  NormalizeError,
157
159
  accessibleTitle,
@@ -161,8 +163,9 @@ import {
161
163
  resolveSize
162
164
  } from "./chunk-RJICOOB3.js";
163
165
  import {
164
- defaultMeasurer
165
- } from "./chunk-UIHGGWES.js";
166
+ defaultMeasurer,
167
+ isCachedTextMeasurer
168
+ } from "./chunk-77LQEREO.js";
166
169
  import {
167
170
  maxOf,
168
171
  minOf,
@@ -300,47 +303,47 @@ function layoutVerticalWaterfall(data, options) {
300
303
  let withBridgeGap = (geometry) => ({
301
304
  ...geometry,
302
305
  scene: insetBridgeEnds(geometry.scene)
303
- }), pad = 0, cut = 0, lay = (band, enforceBreakOrder) => layoutWaterfallWithPad(data, options, band, !0, void 0, enforceBreakOrder, cut), pass = lay(pad, !options.annotations?.length), hiddenCount = (geometry) => geometry.labels.filter((label) => label.hidden !== void 0 && label.hidden !== "redundant").length;
304
- if (options.bracketRow !== "span" && options.annotations?.some((a) => a.kind === "bracket") && pass.geometry.labels.some((label) => label.id.startsWith("annotation:") && label.hidden !== void 0 && label.hidden !== "redundant")) {
305
- let own = layoutWaterfallWithPad(data, { ...options, bracketRow: "span" }, pad, !0, void 0, !options.annotations.length);
306
- if (hiddenCount(own.geometry) < hiddenCount(pass.geometry)) return layoutVerticalWaterfall(data, { ...options, bracketRow: "span" });
306
+ }), pad = 0, cut = 0, prepare = () => prepareWaterfall(data, options), prepared = isCachedTextMeasurer(options.measure ?? defaultMeasurer) ? prepare() : void 0, lay = (band, enforceBreakOrder) => (prepared ?? prepare())(band, enforceBreakOrder, cut), pass = lay(pad, !options.annotations?.length), hiddenCount = (geometry) => geometry.labels.filter((label) => label.hidden !== void 0 && label.hidden !== "redundant").length;
307
+ if (options.bracketRow !== "span" && options.annotations?.some((a) => a.kind === "bracket") && pass.labels.some((label) => label.id.startsWith("annotation:") && label.hidden !== void 0 && label.hidden !== "redundant")) {
308
+ let own = prepareWaterfall(data, { ...options, bracketRow: "span" })(pad, !options.annotations.length);
309
+ if (hiddenCount(own) < hiddenCount(pass)) return layoutVerticalWaterfall(data, { ...options, bracketRow: "span" });
307
310
  }
308
311
  if ((pass.bracketSlack ?? 0) >= 1) {
309
312
  cut = Math.floor(pass.bracketSlack);
310
313
  let next = lay(pad, !options.annotations?.length);
311
- (next.bracketSlack ?? -1) < 0 || hiddenCount(next.geometry) > hiddenCount(pass.geometry) || (next.geometry.warnings?.length ?? 0) > (pass.geometry.warnings?.length ?? 0) ? cut = 0 : pass = next;
314
+ (next.bracketSlack ?? -1) < 0 || hiddenCount(next) > hiddenCount(pass) || (next.warnings?.length ?? 0) > (pass.warnings?.length ?? 0) ? cut = 0 : pass = next;
312
315
  }
313
316
  let cagr = growthArms(options, data), unseated = (geometry) => geometry.labels.some((label) => label.id.startsWith("annotation:") && label.hidden === "collision");
314
- for (; cagr && pad < 48 && (unseated(pass.geometry) || pad < 18 && pass.annotationLegDeficit > 0); )
317
+ for (; cagr && pad < 48 && (unseated(pass) || pad < 18 && pass.annotationLegDeficit > 0); )
315
318
  pad += 6, pass = lay(pad, !1);
316
- pad > 0 && (pad = unseated(pass.geometry) ? 18 : pad + 4, pass = lay(pad, !1));
319
+ pad > 0 && (pad = unseated(pass) ? 18 : pad + 4, pass = lay(pad, !1));
317
320
  for (let i = 0; i < 3 && pass.annotationLegDeficit > 0.5; i++)
318
321
  pad += Math.ceil(pass.annotationLegDeficit) + 2, pass = lay(pad, !1);
319
322
  let freeSeated = (geometry) => geometry.labels.some((label) => label.id.startsWith("annotation:") && label.slot === "freeSpot"), noteHidden = (geometry) => geometry.labels.some((label) => label.id.startsWith("annotation:") && label.hidden);
320
- if (!cagr && freeSeated(pass.geometry)) {
321
- let warned = pass.geometry.warnings?.length ?? 0;
323
+ if (!cagr && freeSeated(pass)) {
324
+ let warned = pass.warnings?.length ?? 0;
322
325
  for (let grown = 6; grown <= 48; grown += 6) {
323
326
  let next = lay(grown, !1);
324
- if (!freeSeated(next.geometry) && !noteHidden(next.geometry) && (next.geometry.warnings?.length ?? 0) <= warned) {
327
+ if (!freeSeated(next) && !noteHidden(next) && (next.warnings?.length ?? 0) <= warned) {
325
328
  pass = next;
326
329
  break;
327
330
  }
328
331
  }
329
332
  }
330
- if (pass.unsafeBreak && (pass = pass.repairBreak(), cagr && unseated(pass.geometry))) {
333
+ if (pass.unsafeBreak && (pass = pass.repairBreak(), cagr && unseated(pass))) {
331
334
  let repairPad = pad, repaired = pass;
332
- for (; repairPad < 48 && unseated(repaired.geometry); )
335
+ for (; repairPad < 48 && unseated(repaired); )
333
336
  repairPad += 6, repaired = lay(repairPad, !0);
334
- if (!unseated(repaired.geometry)) {
337
+ if (!unseated(repaired)) {
335
338
  let settled = lay(repairPad + 4, !0);
336
- pass = unseated(settled.geometry) ? repaired : settled;
339
+ pass = unseated(settled) ? repaired : settled;
337
340
  }
338
341
  }
339
- if (hiddenCount(pass.geometry) > 0 && options.annotations?.some((a) => totalChangeBracket(a, data))) {
342
+ if (hiddenCount(pass) > 0 && options.annotations?.some((a) => totalChangeBracket(a, data))) {
340
343
  let arrow = layoutVerticalWaterfall(data, { ...options, annotations: options.annotations.map((a) => (a.kind === "diff" || a.kind === "delta") && totalChangeBracket(a, data) ? { ...a, placement: "label" } : a) });
341
- if (hiddenCount(arrow) < hiddenCount(pass.geometry)) return arrow;
344
+ if (hiddenCount(arrow) < hiddenCount(pass)) return arrow;
342
345
  }
343
- return withBridgeGap(pass.geometry);
346
+ return withBridgeGap(pass.finish());
344
347
  }
345
348
  function layoutHorizontalWaterfall(data, options) {
346
349
  let authoredAnnotations = options.annotations ?? [], verticalOptions = {
@@ -350,7 +353,7 @@ function layoutHorizontalWaterfall(data, options) {
350
353
  // Offsets are screen pixels, so only the final horizontal solve applies them.
351
354
  labelOffsets: void 0,
352
355
  annotations: []
353
- }, source = layoutWaterfallWithPad(data, verticalOptions, 0, !1).geometry, plot = source.plot, theme = chartTheme(options), measure = options.measure ?? defaultMeasurer, nameFont = { family: theme.type.family, ...theme.type.axis }, bands = options.columnOverrides, wantedName = bands?.label?.width, wantedValue = bands?.value?.width, wordFloor = wantedName === void 0 ? 0 : Math.max(48, 20 + Math.ceil(Math.max(0, ...data.items.flatMap((item) => (item.label ?? item.id).split(/\s+/).map((word) => measure(word, nameFont).width))))), valueLabelWidth = Math.max(
356
+ }, source = prepareWaterfall(data, verticalOptions, !1)(0).finish(), plot = source.plot, theme = chartTheme(options), measure = options.measure ?? defaultMeasurer, nameFont = { family: theme.type.family, ...theme.type.axis }, bands = options.columnOverrides, wantedName = bands?.label?.width, wantedValue = bands?.value?.width, wordFloor = wantedName === void 0 ? 0 : Math.max(48, 20 + Math.ceil(Math.max(0, ...data.items.flatMap((item) => (item.label ?? item.id).split(/\s+/).map((word) => measure(word, nameFont).width))))), valueLabelWidth = Math.max(
354
357
  0,
355
358
  maxOf(source.labels.filter(
356
359
  (label) => (label.kind === "segment" || label.kind === "total") && !label.hidden
@@ -600,7 +603,7 @@ function automaticBreak(allItems, levels, totals, line) {
600
603
  let to = floorTwoDigits(runLo - span / 4), axisBreak = { from: floorTwoDigits(Math.min(totalMin * 0.05, (runHi - to) * 0.4)), to }, drawn = [...deltaLevels, ...line ? [line.lo, line.hi] : []];
601
604
  return invalidLinearBreakReason([0, runHi], axisBreak, drawn) ? void 0 : axisBreak;
602
605
  }
603
- function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, automaticOverride, enforceBreakOrder = !0, bracketCut = 0) {
606
+ function prepareWaterfall(data, options, categoryRow = !0) {
604
607
  let fmtPlain = (value, settings = {}) => formatAutomaticNumber(value, { locale: options.locale?.language, ...settings }), warnings = [], theme = chartTheme(options), paletteRamp = chartPalette(theme, options.palette, warnings), size = resolveSize(options.size), measure = options.measure ?? defaultMeasurer, highlights = new Set(resolveHighlight(options.highlight)), signBridge = isSignBridge(theme, options), signSteps = stepsBySign(theme, options), connectorStroke = { token: signBridge ? "inkMeta" : "leader" }, connectorDash = dashToken(theme, signBridge ? "dotted" : "reference"), stepTones = /* @__PURE__ */ new Map(), paintWarningRules = highlights.size > 0 ? [{ kind: "highlight-reads-as-loss", chart: "waterfall", before: warnings.length }] : [];
605
608
  paintWarningRules.length && warnings.push(...highlightPaintWarnings(theme, "waterfall"));
606
609
  let build = options.build ?? "up";
@@ -814,9 +817,9 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
814
817
  let level = levels[it.id];
815
818
  (min < Math.min(level.start, level.end) || max > Math.max(level.start, level.end)) && (level.min = min, level.max = max);
816
819
  }
817
- let preparedWarnings = warnings.slice(), recommendBreak = options.valueAxis?.break === void 0 || options.valueAxis.break === !1;
818
- return drawBridge(options, automaticOverride, enforceBreakOrder);
819
- function drawBridge(options2, automaticOverride2, enforceBreakOrder2 = !0) {
820
+ let preparedWarnings = warnings.slice(), recommendBreak = options.valueAxis?.break === void 0 || options.valueAxis.break === !1, growthBand = growthArms(options, data), frames = growthBand && isCachedTextMeasurer(measure) ? /* @__PURE__ */ new Map() : void 0;
821
+ return (pad, enforceBreakOrder = !0, cut = 0) => drawBridge(options, pad, cut, void 0, enforceBreakOrder);
822
+ function drawBridge(options2, extraAnnPad, bracketCut, automaticOverride, enforceBreakOrder = !0) {
820
823
  let warnings2 = preparedWarnings.slice(), occupied = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height }), margin = { ...canvasMargin(theme, size.width), ...options2.margin }, legendItems = [...segmentCatalog.values()].map((identity) => ({
821
824
  id: identity.id,
822
825
  label: identity.label ?? identity.id,
@@ -855,7 +858,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
855
858
  let rank = new Map(legendOpts.order.map((id, i) => [id, i]));
856
859
  legendItems.sort((a, b) => (rank.get(a.id) ?? 999) - (rank.get(b.id) ?? 999));
857
860
  }
858
- let breakOption = options2.valueAxis?.break, requestedBreak = typeof breakOption == "object" ? breakOption : void 0, autoBreak = breakOption === "auto" ? automaticOverride2 ?? automaticBreak(allItems, levels, totals, valueLineExtent(options2.annotations)) : void 0, axisBreak = requestedBreak ?? autoBreak, breakNote = axisBreak ? disclosureNote(chartString(options2, "axisBreakNote", { v1: fmtPlain(axisBreak.from), v2: fmtPlain(axisBreak.to) })) : void 0, frameResult = solveFrame(
861
+ let breakOption = options2.valueAxis?.break, requestedBreak = typeof breakOption == "object" ? breakOption : void 0, autoBreak = breakOption === "auto" ? automaticOverride ?? automaticBreak(allItems, levels, totals, valueLineExtent(options2.annotations)) : void 0, axisBreak = requestedBreak ?? autoBreak, breakNote = axisBreak ? disclosureNote(chartString(options2, "axisBreakNote", { v1: fmtPlain(axisBreak.from), v2: fmtPlain(axisBreak.to) })) : void 0, frameForBand = (claims) => solveFrame(
859
862
  {
860
863
  size,
861
864
  margin,
@@ -865,8 +868,19 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
865
868
  theme,
866
869
  measure
867
870
  },
868
- occupied
869
- ), tickFont = { family: theme.type.family, ...theme.type.axis }, segmentValueWidth = categoryRow && options2.bandFraction === void 0 && options2.labels !== !1 && cases.length === 0 ? Math.max(0, maxOf(items.filter((it) => it.totalSegments ? derivedTotalSegments.has(it.id) : it.authoredSegments && !(it.segments.some((seg) => seg.value > 0) && it.segments.some((seg) => seg.value < 0))).flatMap((it) => segmentsFor(it).map((seg) => measure(it.type === "delta" ? fmtSigned(seg.value) : fmt(seg.value), { family: theme.type.family, ...theme.type.label }).width + 4)))) : 0, fractionFor = (w) => {
871
+ claims
872
+ ), frameResult;
873
+ if (frames) {
874
+ let saved = frames.get(breakNote);
875
+ if (!saved) {
876
+ let claims = [];
877
+ saved = { result: frameForBand(collectFrameClaims(claims)), claims }, frames.set(breakNote, saved);
878
+ }
879
+ for (let claim of saved.claims) occupied.claim(claim.rect, claim.kind, claim.owner);
880
+ frameResult = { ...saved.result, frame: copyFrame(saved.result.frame) };
881
+ } else
882
+ frameResult = frameForBand(occupied);
883
+ let tickFont = { family: theme.type.family, ...theme.type.axis }, segmentValueWidth = categoryRow && options2.bandFraction === void 0 && options2.labels !== !1 && cases.length === 0 ? Math.max(0, maxOf(items.filter((it) => it.totalSegments ? derivedTotalSegments.has(it.id) : it.authoredSegments && !(it.segments.some((seg) => seg.value > 0) && it.segments.some((seg) => seg.value < 0))).flatMap((it) => segmentsFor(it).map((seg) => measure(it.type === "delta" ? fmtSigned(seg.value) : fmt(seg.value), { family: theme.type.family, ...theme.type.label }).width + 4)))) : 0, fractionFor = (w) => {
870
884
  let base = options2.bandFraction ?? 0.62;
871
885
  if (segmentValueWidth === 0) return base;
872
886
  let step = w / (items.length + 0.1);
@@ -891,7 +905,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
891
905
  categoryRow && ({ plan: catPlan, band, x0: plotLeft, width: plotWidth } = yieldToRotatedName(catPlan, band, items.length, plotLeft, plotWidth, bandFor, planRow));
892
906
  let catOverhang = widthBeforeRow - plotWidth, catInfos = catPlan.infos, catFont = catPlan.font, catRowH = catPlan.rowHeight, catTickMaxLines = catPlan.maxLines, CAT_TIER_GAP = 4, catStaggerExtra = catPlan.rowHeight - catTickMaxLines * catFont.size * (catFont.lineHeight ?? 1.2), catBandH = categoryRow ? catPlan.rowHeight + 8 : 0;
893
907
  categoryRow && pushAll(warnings2, catPlan.warnings);
894
- let bracketLabelH = measure("X", { family: theme.type.family, ...theme.type.label }).height, bracketRoom = (options2.annotations ?? []).some((a) => a.kind === "bracket") ? Math.max(0, Math.ceil(2 * bracketLabelH + 8) - bracketCut) : 0, annPad = (growthArms(options2, data) ? 12 + extraAnnPad : extraAnnPad) + bracketRoom, axisTitle = categoryRow && axisTitleAllowed(options2.labels) ? planValueAxisTitle(options2.axisTitles?.primary, theme, measure, plotWidth) : void 0, axisTitleBand = valueAxisTitleBand(axisTitle, theme, measure, annPad), plot = {
908
+ let bracketLabelH = measure("X", { family: theme.type.family, ...theme.type.label }).height, bracketRoom = (options2.annotations ?? []).some((a) => a.kind === "bracket") ? Math.max(0, Math.ceil(2 * bracketLabelH + 8) - bracketCut) : 0, annPad = (growthBand ? 12 + extraAnnPad : extraAnnPad) + bracketRoom, axisTitle = categoryRow && axisTitleAllowed(options2.labels) ? planValueAxisTitle(options2.axisTitles?.primary, theme, measure, plotWidth) : void 0, axisTitleBand = valueAxisTitleBand(axisTitle, theme, measure, annPad), plot = {
895
909
  x: plotLeft,
896
910
  y: frameResult.plot.y + 8 + annPad + axisTitleBand,
897
911
  w: plotWidth,
@@ -922,7 +936,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
922
936
  });
923
937
  }
924
938
  let labelFont = { family: theme.type.family, ...theme.type.label }, segmentFont = { ...labelFont, size: Math.min(labelFont.size, secondaryType(theme).size) }, strongFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, hangingEnd = Math.min(0, minOf(allItems.map((it) => (it.type === "delta" ? levels[it.id].end - levels[it.id].start : totals[it.id]) < 0 ? traversalExtrema[it.id].min : 0))), hangingRoom = options2.labels === !1 || !categoryRow ? 0 : measure("0", strongFont).height + 4, hangingReserve = hangingLabelReserve(plot.h, [dLo, dHi], hangingEnd, hangingRoom);
925
- categoryRow && !growthArms(options2, data) && ["fit", "wrap", "font-down"].includes(catPlan.step) && fixedPlotChrome(frameResult, catBandH + 8 + axisTitleBand), plot.h = plotHeightAfter(frameResult, size.height, plot.h - hangingReserve);
939
+ categoryRow && !growthBand && ["fit", "wrap", "font-down"].includes(catPlan.step) && fixedPlotChrome(frameResult, catBandH + 8 + axisTitleBand), plot.h = plotHeightAfter(frameResult, size.height, plot.h - hangingReserve);
926
940
  let y = activeBreak ? brokenLinearScale([dLo, dHi], [plot.y + plot.h, plot.y], activeBreak) : linearScale([dLo, dHi], [plot.y + plot.h, plot.y]), unsafeBreak = !1;
927
941
  if (activeBreak) {
928
942
  let steps = allItems.filter((it) => it.type === "delta").flatMap((it) => {
@@ -935,7 +949,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
935
949
  let traversal = traversalExtrema[it.id];
936
950
  return { value: Math.abs(totals[it.id]), start: traversal.min, end: traversal.max };
937
951
  });
938
- if (unsafeBreak = breakReversesOrder(y, totalBars, steps), enforceBreakOrder2 && unsafeBreak) {
952
+ if (unsafeBreak = breakReversesOrder(y, totalBars, steps), enforceBreakOrder && unsafeBreak) {
939
953
  if (autoBreak) {
940
954
  let maxStepInk = maxOf(steps.map((step) => Math.abs(step.end - step.start))), totalMin = minOf(totalBars.map((total) => total.value)), pixelsPerUnit = Math.abs(y(dHi) - y(autoBreak.to)) / (dHi - autoBreak.to), margin2 = Math.max(1 / pixelsPerUnit, maxStepInk * 0.01), moved = { from: autoBreak.from, to: floorTwoDigits(totalMin + autoBreak.from - maxStepInk - margin2) }, drawn = [
941
955
  ...allItems.flatMap((it) => [traversalExtrema[it.id].min, traversalExtrema[it.id].max]),
@@ -945,10 +959,10 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
945
959
  })()
946
960
  ];
947
961
  if (!invalidLinearBreakReason([dLo, dHi], moved, drawn))
948
- return drawBridge(options2, moved);
962
+ return drawBridge(options2, extraAnnPad, bracketCut, moved);
949
963
  }
950
- let result = drawBridge({ ...options2, valueAxis: { ...options2.valueAxis, break: !1 } });
951
- return requestedBreak && result.geometry.warnings.push(axisBreakHeightOrderWarning()), result;
964
+ let result = drawBridge({ ...options2, valueAxis: { ...options2.valueAxis, break: !1 } }, extraAnnPad, bracketCut);
965
+ return requestedBreak && result.warnings.push(axisBreakHeightOrderWarning()), result;
952
966
  }
953
967
  }
954
968
  let y0 = y(0), catRowY = (dateNumericTicks ? plot.y + plot.h + hangingReserve : categoryRowTop(y, minOf(allItems.map((it) => traversalExtrema[it.id].min)), hangingEnd, hangingRoom)) + 6, nodes = [...frameResult.nodes], marks = { bars: [], connectors: [] }, labelRequests = axisTitle ? [valueAxisTitleRequest(axisTitle, { x: plot.x, y: frameResult.plot.y + 4 }, "start", "axis:y:title")] : [], withheld = [], undrawnShown = [], wouldBeTexts = /* @__PURE__ */ new Map(), baselineId = "axis:baseline";
@@ -1375,74 +1389,78 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
1375
1389
  }
1376
1390
  });
1377
1391
  pushAll(warnings2, annResult.warnings);
1378
- let allLabels = [...solved.placed, ...annResult.labels];
1379
- haloOverpaintedInsideLabels(nodes, allLabels, theme), pushAll(nodes, annResult.nodes), pushAll(
1380
- nodes,
1381
- labelsToNodes(
1382
- theme,
1383
- allLabels,
1384
- (l) => (
1385
- // A category label is drawn at the font its row was measured at.
1386
- l.kind === "total" || boldValueIds.has(l.id) ? strongFont : l.kind === "segment" ? segmentFont : l.kind === "category" ? catFont : l.kind === "annotation" || l.kind === "valueLine" ? { ...labelFont, weight: emphasisWeight(theme) } : labelFont
1387
- ),
1388
- nodes
1389
- )
1390
- );
1391
- let first = items[0], last = items[items.length - 1], stepsDesc = (bridge) => bridge.map(
1392
- (it) => it.type === "delta" ? `${it.label} ${labelRequests.find((label) => label.id === `sum:${it.id}`)?.text ?? wouldBeTexts.get(`sum:${it.id}`) ?? fmtSigned(levels[it.id].end - levels[it.id].start)}` : `${it.label} ${labelRequests.find((label) => label.id === `total:${it.id}`)?.text ?? wouldBeTexts.get(`total:${it.id}`) ?? fmt(totals[it.id])}`
1393
- ).join(", "), a11yDesc = cases.length > 0 ? chartString(options2, "waterfallCasesDesc", { v1: cases.length, v2: cases.map((c, k) => `${c.label ?? c.id}: ${stepsDesc(caseItems[k])}`).join(". ") }) : stepsDesc(items), geometry = withUnprintedClaims({
1394
- type: "waterfall",
1395
- size,
1396
- sizing: {
1397
- ...bandSizing("waterfall", size, plot.w + catOverhang, band.step, minPlotW),
1398
- ...nodes.some((node) => node.part === "barBreak") ? { [HEIGHT_STRUCTURE]: !0 } : {}
1399
- },
1400
- plot,
1401
- scene: withSegmentSeams(nodes, theme),
1392
+ let allLabels = [...solved.placed, ...annResult.labels], finish = () => {
1393
+ haloOverpaintedInsideLabels(nodes, allLabels, theme), pushAll(nodes, annResult.nodes), pushAll(
1394
+ nodes,
1395
+ labelsToNodes(
1396
+ theme,
1397
+ allLabels,
1398
+ (l) => (
1399
+ // A category label is drawn at the font its row was measured at.
1400
+ l.kind === "total" || boldValueIds.has(l.id) ? strongFont : l.kind === "segment" ? segmentFont : l.kind === "category" ? catFont : l.kind === "annotation" || l.kind === "valueLine" ? { ...labelFont, weight: emphasisWeight(theme) } : labelFont
1401
+ ),
1402
+ nodes
1403
+ )
1404
+ );
1405
+ let first = items[0], last = items[items.length - 1], stepsDesc = (bridge) => bridge.map(
1406
+ (it) => it.type === "delta" ? `${it.label} ${labelRequests.find((label) => label.id === `sum:${it.id}`)?.text ?? wouldBeTexts.get(`sum:${it.id}`) ?? fmtSigned(levels[it.id].end - levels[it.id].start)}` : `${it.label} ${labelRequests.find((label) => label.id === `total:${it.id}`)?.text ?? wouldBeTexts.get(`total:${it.id}`) ?? fmt(totals[it.id])}`
1407
+ ).join(", "), a11yDesc = cases.length > 0 ? chartString(options2, "waterfallCasesDesc", { v1: cases.length, v2: cases.map((c, k) => `${c.label ?? c.id}: ${stepsDesc(caseItems[k])}`).join(". ") }) : stepsDesc(items);
1408
+ return withUnprintedClaims({
1409
+ type: "waterfall",
1410
+ size,
1411
+ sizing: {
1412
+ ...bandSizing("waterfall", size, plot.w + catOverhang, band.step, minPlotW),
1413
+ ...nodes.some((node) => node.part === "barBreak") ? { [HEIGHT_STRUCTURE]: !0 } : {}
1414
+ },
1415
+ plot,
1416
+ scene: withSegmentSeams(nodes, theme),
1417
+ labels: allLabels,
1418
+ axes: [
1419
+ {
1420
+ axis: "x",
1421
+ baselineNodeId: baselineId,
1422
+ ticks: items.map((it, i) => ({
1423
+ at: it.id,
1424
+ pos: band.center(i),
1425
+ labelId: `category:${it.id}`
1426
+ }))
1427
+ }
1428
+ ],
1429
+ annotations: annResult.placed,
1430
+ legend: frameResult.legend,
1431
+ frame: frameResult.frame,
1432
+ marks,
1433
+ derived: {
1434
+ levels,
1435
+ totals,
1436
+ totalBasis,
1437
+ tickBand: {
1438
+ reserved: catBandH,
1439
+ measuredLines: catTickMaxLines,
1440
+ lineHeight: catFont.size * 1.2,
1441
+ extra: catStaggerExtra,
1442
+ dateNumeric: dateNumericTicks,
1443
+ position: "below"
1444
+ }
1445
+ },
1446
+ a11y: {
1447
+ title: accessibleTitle(options2.title, chartString(options2, "waterfallTitle", { v1: first.label, v2: last.label })),
1448
+ counts: [...cases.length ? [structureCount("cases", cases.length, void 0, options2)] : []],
1449
+ desc: chartString(options2, "waterfallDesc", { v1: build === "down" ? chartString(options2, "buildDownClause") : "", v2: a11yDesc })
1450
+ },
1451
+ ...paintWarningRules.length ? { paintWarningRules } : {},
1452
+ warnings: warnings2,
1453
+ debug: { occupied: occupied.snapshot(), decisions: [...solved.decisions, ...annResult.decisions] }
1454
+ }, withheld.flatMap((request) => requestClaims(request, options2) ?? []));
1455
+ }, bracketLabels = new Set(annResult.placed.filter((placed) => placed.kind === "bracket").map((placed) => `annotation:${placed.id}`)), onRow = bracketRowFree !== void 0 && options2.bracketRow !== "span" && annResult.labels.filter((label) => bracketLabels.has(label.id) && label.hidden === void 0).every((label) => label.rect.y + label.rect.h + 3 >= bracketRow - 0.5);
1456
+ return {
1402
1457
  labels: allLabels,
1403
- axes: [
1404
- {
1405
- axis: "x",
1406
- baselineNodeId: baselineId,
1407
- ticks: items.map((it, i) => ({
1408
- at: it.id,
1409
- pos: band.center(i),
1410
- labelId: `category:${it.id}`
1411
- }))
1412
- }
1413
- ],
1414
- annotations: annResult.placed,
1415
- legend: frameResult.legend,
1416
- frame: frameResult.frame,
1417
- marks,
1418
- derived: {
1419
- levels,
1420
- totals,
1421
- totalBasis,
1422
- tickBand: {
1423
- reserved: catBandH,
1424
- measuredLines: catTickMaxLines,
1425
- lineHeight: catFont.size * 1.2,
1426
- extra: catStaggerExtra,
1427
- dateNumeric: dateNumericTicks,
1428
- position: "below"
1429
- }
1430
- },
1431
- a11y: {
1432
- title: accessibleTitle(options2.title, chartString(options2, "waterfallTitle", { v1: first.label, v2: last.label })),
1433
- counts: [...cases.length ? [structureCount("cases", cases.length, void 0, options2)] : []],
1434
- desc: chartString(options2, "waterfallDesc", { v1: build === "down" ? chartString(options2, "buildDownClause") : "", v2: a11yDesc })
1435
- },
1436
- ...paintWarningRules.length ? { paintWarningRules } : {},
1437
1458
  warnings: warnings2,
1438
- debug: { occupied: occupied.snapshot(), decisions: [...solved.decisions, ...annResult.decisions] }
1439
- }, withheld.flatMap((request) => requestClaims(request, options2) ?? [])), bracketLabels = new Set(annResult.placed.filter((placed) => placed.kind === "bracket").map((placed) => `annotation:${placed.id}`)), onRow = bracketRowFree !== void 0 && options2.bracketRow !== "span" && annResult.labels.filter((label) => bracketLabels.has(label.id) && label.hidden === void 0).every((label) => label.rect.y + label.rect.h + 3 >= bracketRow - 0.5);
1440
- return {
1441
- geometry,
1459
+ finish,
1442
1460
  annotationLegDeficit: annResult.legDeficit,
1443
1461
  unsafeBreak,
1444
1462
  ...onRow ? { bracketSlack: Math.min(bracketRowFree - bracketTopRow, bracketRoom) } : {},
1445
- ...unsafeBreak && !enforceBreakOrder2 ? { repairBreak: () => drawBridge(options2) } : {}
1463
+ ...unsafeBreak && !enforceBreakOrder ? { repairBreak: () => drawBridge(options2, extraAnnPad, bracketCut) } : {}
1446
1464
  };
1447
1465
  }
1448
1466
  function normalizeItem(raw, i) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chartStrings
3
- } from "./chunk-FYFXOLWI.js";
3
+ } from "./chunk-5OUURZ2T.js";
4
4
 
5
5
  // src/core/strings/structureCounts.ts
6
6
  var EN = {
@@ -5,7 +5,7 @@ import {
5
5
  resolveSurface,
6
6
  semanticPalettePaint,
7
7
  strokeToken
8
- } from "./chunk-BKUTKQMT.js";
8
+ } from "./chunk-4NGKSJBX.js";
9
9
 
10
10
  // src/core/charts/table/headFace.ts
11
11
  var HEAD_KEEPS = /[([]|\p{Ll}\p{Lu}/u, INNER_CAPITAL = /\p{Ll}\p{Lu}/u, HEAD_PARTS = /[^\s,]+|[\s,]+/gu;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  layoutCombo
3
- } from "./chunk-JEAUVQTV.js";
3
+ } from "./chunk-FSRAPSO7.js";
4
4
  import {
5
5
  withEventsDescribed
6
- } from "./chunk-VGOZOBNB.js";
6
+ } from "./chunk-6QQPQ2TX.js";
7
7
  import {
8
8
  calendarCategories,
9
9
  chartSizing
10
- } from "./chunk-FY3VV7TF.js";
10
+ } from "./chunk-PM5D5KYQ.js";
11
11
  import {
12
12
  prepareFractionData
13
13
  } from "./chunk-QXHFELIA.js";