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,10 +1,10 @@
1
1
  import {
2
2
  chartRefusals,
3
3
  isRefused
4
- } from "./chunk-PZ46S2SY.js";
4
+ } from "./chunk-UCKUAKYQ.js";
5
5
  import {
6
6
  prepareFractionAnnotations
7
- } from "./chunk-CPGASWNN.js";
7
+ } from "./chunk-42QKUSHJ.js";
8
8
  import {
9
9
  ASPECT_CAPS,
10
10
  COMPACT_SOURCE_LINES,
@@ -18,8 +18,6 @@ import {
18
18
  UNVERIFIED_DENSITY_REFUSALS,
19
19
  aspectClassFor,
20
20
  authoredNotes,
21
- boundsOf,
22
- createOccupiedIndex,
23
21
  cutWithTitle,
24
22
  dataOrder,
25
23
  dateTickKeep,
@@ -42,7 +40,6 @@ import {
42
40
  needsSeriesKey,
43
41
  owedHiddenLabels,
44
42
  plotChromeFloor,
45
- rectsOverlap,
46
43
  reportLabelOmissions,
47
44
  scatterGroupIdentities,
48
45
  scatterGroupNameIsDrawn,
@@ -55,22 +52,27 @@ import {
55
52
  withDensityNotes,
56
53
  withHiddenLabelNote,
57
54
  withNoteInA11y
58
- } from "./chunk-4KQHKPB3.js";
55
+ } from "./chunk-I5VDW2XZ.js";
59
56
  import {
60
57
  COMPACT_OMITTED_NOTES,
61
58
  copyFrame,
62
59
  disclosureNote,
60
+ footerPlans,
63
61
  freedChromeOf,
64
62
  liveFooterExtra,
65
63
  partNeedOf,
66
64
  rankKeyShown,
65
+ slotDemandHeight,
67
66
  staticFrame,
68
67
  withEngineNotes
69
- } from "./chunk-SMHZXHHD.js";
68
+ } from "./chunk-DZYTXZNS.js";
70
69
  import {
71
70
  DATE_NAME_LANGUAGES,
72
71
  dateNames
73
72
  } from "./chunk-QBR6IKIX.js";
73
+ import {
74
+ emptyIdRecord
75
+ } from "./chunk-LINZPU5D.js";
74
76
  import {
75
77
  MAGNITUDE_DIVISOR,
76
78
  decimalCap,
@@ -78,10 +80,11 @@ import {
78
80
  neededDecimals,
79
81
  parseISODate,
80
82
  utcDate
81
- } from "./chunk-FFJGC2DX.js";
83
+ } from "./chunk-Z6DUNKFU.js";
82
84
  import {
83
85
  AUTO_MAX_DECIMALS,
84
86
  chartString,
87
+ currentSmallValues,
85
88
  singleStops,
86
89
  withChartDefaultStrings,
87
90
  withLocaleStrings,
@@ -89,20 +92,31 @@ import {
89
92
  withSmallValues,
90
93
  wordLanguage
91
94
  } from "./chunk-MSYTF3DZ.js";
95
+ import {
96
+ cellValue
97
+ } from "./chunk-O3VN6BTL.js";
98
+ import {
99
+ presentationInfo
100
+ } from "./chunk-OZLKEBCD.js";
92
101
  import {
93
102
  DEFAULT_PRESET,
94
103
  GRAMMAR_STROKE,
95
104
  REMOVED_NAMES,
96
105
  TABLE_HEAD_PARTS,
97
106
  WIDE_CANVAS_MIN_WIDTH,
107
+ boundsOf,
98
108
  casingUnderFills,
109
+ classStepWidth,
99
110
  colorblindRoles,
111
+ createOccupiedIndex,
100
112
  fillEdges,
101
113
  gridDash,
102
114
  labelsOnFills,
115
+ layoutStepKey,
103
116
  libraryPatch,
104
117
  marksOnBands,
105
118
  panelTypeClass,
119
+ rectsOverlap,
106
120
  referenceLineClearance,
107
121
  removedNameWarnings,
108
122
  resolveTargetTheme,
@@ -114,15 +128,14 @@ import {
114
128
  tableHeadFloorPx,
115
129
  textScaleOf,
116
130
  textSizeOf,
117
- typeWidthClass,
118
131
  withoutOrphanAnnotationMarks
119
- } from "./chunk-HJRNBKIT.js";
132
+ } from "./chunk-TX5FSNAU.js";
120
133
  import {
121
134
  loadedDeferred
122
- } from "./chunk-DRHQG44U.js";
135
+ } from "./chunk-BQBD6Q5J.js";
123
136
  import {
124
137
  cubicPoint
125
- } from "./chunk-JYAZPMSA.js";
138
+ } from "./chunk-6IUK6PAH.js";
126
139
  import {
127
140
  addWhereAbsent,
128
141
  toJsonPointer
@@ -131,25 +144,182 @@ import {
131
144
  DEFAULT_TARGET,
132
145
  NormalizeError,
133
146
  TARGET_SIZE,
134
- naturalOutputSize,
147
+ normalizeCategory,
148
+ normalizeSeriesValues,
149
+ ranksCategories,
135
150
  resolveCanvasOptions,
136
151
  resolveSize,
137
152
  resolveSubtitle,
138
153
  resolveTargetSize,
139
154
  targetFloorsPx,
140
155
  withDefaultTarget
141
- } from "./chunk-YOOHNQ3L.js";
142
- import {
143
- maxOf,
144
- minOf,
145
- pushAll
146
- } from "./chunk-WYJEOMNY.js";
156
+ } from "./chunk-RJICOOB3.js";
147
157
  import {
148
158
  compareText,
149
159
  defaultMeasurer,
160
+ isCachedTextMeasurer,
150
161
  measureText,
151
162
  wrapText
152
- } from "./chunk-SNQ7D5R7.js";
163
+ } from "./chunk-UIHGGWES.js";
164
+ import {
165
+ maxOf,
166
+ minOf,
167
+ pushAll
168
+ } from "./chunk-WYJEOMNY.js";
169
+
170
+ // src/core/layoutPlan.ts
171
+ var functionIds = /* @__PURE__ */ new WeakMap(), nextFunctionId = 0, keyFunction = (_key, value) => typeof value != "function" ? value : (functionIds.has(value) || functionIds.set(value, nextFunctionId++), `function ${functionIds.get(value)}`), inputs;
172
+ function withPlanInputs(run) {
173
+ if (inputs) return run();
174
+ inputs = { json: /* @__PURE__ */ new WeakMap(), themes: /* @__PURE__ */ new WeakMap(), texts: /* @__PURE__ */ new WeakMap() };
175
+ try {
176
+ return run();
177
+ } finally {
178
+ inputs = void 0;
179
+ }
180
+ }
181
+ function memoExactInputKey(value, read) {
182
+ if (!inputs) return read(value);
183
+ let readers = inputs.exactKeys ??= /* @__PURE__ */ new Map(), keys = readers.get(read);
184
+ if (keys || readers.set(read, keys = /* @__PURE__ */ new WeakMap()), keys.has(value)) return keys.get(value);
185
+ let key = read(value);
186
+ return keys.set(value, key), key;
187
+ }
188
+ function requestMemo(scope, key, compute) {
189
+ if (!inputs) return compute();
190
+ let results = inputs.results ??= /* @__PURE__ */ new WeakMap(), byKey = results.get(scope);
191
+ if (byKey || results.set(scope, byKey = /* @__PURE__ */ new Map()), byKey.has(key)) return byKey.get(key);
192
+ let value = compute();
193
+ return byKey.set(key, value), value;
194
+ }
195
+ function inputJson(value) {
196
+ let key = inputs?.json.get(value);
197
+ return key === void 0 && (key = JSON.stringify(value, keyFunction), inputs?.json.set(value, key)), key;
198
+ }
199
+ var inputVersions = /* @__PURE__ */ new WeakMap(), ownedInputVersions = /* @__PURE__ */ new WeakMap(), nextInputVersion = 0;
200
+ function ownPlanInput(value) {
201
+ ownedInputVersions.has(value) || ownedInputVersions.set(value, nextInputVersion++);
202
+ }
203
+ function inputVersion(value) {
204
+ let owned = ownedInputVersions.get(value);
205
+ if (owned !== void 0) return owned;
206
+ let json = inputJson(value), known = inputVersions.get(value);
207
+ return (!known || known.json !== json) && inputVersions.set(value, known = { json, version: nextInputVersion++ }), known.version;
208
+ }
209
+ var themeVersions = /* @__PURE__ */ new Map(), nextThemeVersion = 0;
210
+ function themeVersion(theme) {
211
+ let version = inputs?.themes.get(theme);
212
+ if (version !== void 0) return version;
213
+ let json = inputJson(theme);
214
+ return version = themeVersions.get(json), version === void 0 && (themeVersions.size >= 256 && themeVersions.delete(themeVersions.keys().next().value), themeVersions.set(json, version = nextThemeVersion++)), inputs?.themes.set(theme, version), version;
215
+ }
216
+ function optionKey(options) {
217
+ let valueKey = (value) => value !== null && typeof value == "object" ? inputJson(value) : JSON.stringify(value, keyFunction), fields = [];
218
+ for (let key of Object.keys(options)) {
219
+ if (key === "theme") continue;
220
+ let value = valueKey(options[key]);
221
+ value !== void 0 && fields.push(JSON.stringify(key) + ":" + value);
222
+ }
223
+ let theme = options.theme, symbols = Object.getOwnPropertySymbols(options).map((symbol) => "[" + (JSON.stringify(symbol.description) ?? "null") + "," + (valueKey(options[symbol]) ?? "null") + "]");
224
+ return "[{" + fields.join(",") + "}," + (valueKey(theme && typeof theme == "object" ? themeVersion(theme) : theme) ?? "null") + ",[" + symbols.join(",") + "]," + JSON.stringify(currentSmallValues()) + "]";
225
+ }
226
+ function layoutKey(data, options) {
227
+ let cap = layoutStepKey();
228
+ return (cap ? cap + ":" : "") + inputVersion(data) + ":" + optionKey(options);
229
+ }
230
+ var measurers = /* @__PURE__ */ new WeakMap(), wrappedMeasurers = /* @__PURE__ */ new WeakSet(), sameFont = (a, b) => a.family === b.family && a.size === b.size && a.weight === b.weight && a.style === b.style && a.letterSpacing === b.letterSpacing && a.tabular === b.tabular && a.lineHeight === b.lineHeight;
231
+ function tableTextMeasure(raw) {
232
+ if (isCachedTextMeasurer(raw) || wrappedMeasurers.has(raw)) return raw;
233
+ let wrapped = measurers.get(raw);
234
+ return wrapped || (wrapped = (text, font) => {
235
+ if (!inputs) return raw(text, font);
236
+ let fonts = inputs.texts.get(raw);
237
+ fonts || inputs.texts.set(raw, fonts = { families: /* @__PURE__ */ new Map() });
238
+ let plan = fonts.last;
239
+ if (!plan || !sameFont(plan.font, font)) {
240
+ let family = fonts.families.get(font.family);
241
+ family || fonts.families.set(font.family, family = /* @__PURE__ */ new Map());
242
+ let key = font.size * 4096 + font.weight, variants = family.get(key);
243
+ variants || family.set(key, variants = []), plan = variants.find((candidate) => sameFont(candidate.font, font)), plan || (plan = { font: { ...font }, texts: /* @__PURE__ */ new Map() }, variants.push(plan)), fonts.last = plan;
244
+ }
245
+ let result = plan.texts.get(text);
246
+ return result || plan.texts.set(text, result = { ...raw(text, font) }), result;
247
+ }, Object.defineProperty(wrapped, "capHeight", { get: () => raw.capHeight }), measurers.set(raw, wrapped), wrappedMeasurers.add(wrapped)), wrapped;
248
+ }
249
+ var PLAN_ONLY = /* @__PURE__ */ Symbol("tablePlanOnly"), PLAN = /* @__PURE__ */ Symbol("tableLayoutPlan");
250
+ function deferLayout(geometry, draw, cuts) {
251
+ return geometry[PLAN] = { draw, cuts, warnings: geometry.warnings.length }, geometry;
252
+ }
253
+ function isPlanned(value) {
254
+ return value[PLAN] !== void 0;
255
+ }
256
+ function plannedCutCount(value) {
257
+ let plan = value[PLAN];
258
+ return typeof plan?.cuts == "function" && (plan.cuts = plan.cuts()), plan?.cuts;
259
+ }
260
+ function materializeLayout(geometry) {
261
+ let plan = geometry[PLAN];
262
+ if (!plan) return geometry;
263
+ let drawn2 = plan.rendered ??= plan.draw(), result = {
264
+ ...geometry,
265
+ scene: drawn2.scene,
266
+ marks: drawn2.marks,
267
+ debug: drawn2.debug,
268
+ labels: drawn2.labels,
269
+ axes: drawn2.axes,
270
+ annotations: drawn2.annotations,
271
+ warnings: [...geometry.warnings.slice(0, plan.warnings), ...drawn2.warnings.slice(plan.warnings), ...geometry.warnings.slice(plan.warnings)],
272
+ ...drawn2.paintWarningRules === void 0 ? {} : { paintWarningRules: drawn2.paintWarningRules }
273
+ };
274
+ return delete result[PLAN], copyPlannedValue(result);
275
+ }
276
+ function copyPlannedValue(value, copies = /* @__PURE__ */ new Map()) {
277
+ if (value === null || typeof value != "object") return value;
278
+ let known = copies.get(value);
279
+ if (known !== void 0) return known;
280
+ if (Array.isArray(value)) {
281
+ let copy2 = [];
282
+ copies.set(value, copy2);
283
+ for (let entry of value) copy2.push(entry !== null && typeof entry == "object" ? copyPlannedValue(entry, copies) : entry);
284
+ return copy2;
285
+ }
286
+ if (value instanceof Map) {
287
+ let copy2 = /* @__PURE__ */ new Map();
288
+ copies.set(value, copy2);
289
+ for (let [key, entry] of value)
290
+ copy2.set(key !== null && typeof key == "object" ? copyPlannedValue(key, copies) : key, entry !== null && typeof entry == "object" ? copyPlannedValue(entry, copies) : entry);
291
+ return copy2;
292
+ }
293
+ if (value instanceof Set) {
294
+ let copy2 = /* @__PURE__ */ new Set();
295
+ copies.set(value, copy2);
296
+ for (let entry of value) copy2.add(entry !== null && typeof entry == "object" ? copyPlannedValue(entry, copies) : entry);
297
+ return copy2;
298
+ }
299
+ let prototype = Object.getPrototypeOf(value);
300
+ if (prototype !== Object.prototype && prototype !== null) return value;
301
+ let copy = footerPlans.has(value) ? copyFrame(value) : prototype === null ? emptyIdRecord() : {};
302
+ copies.set(value, copy);
303
+ for (let key of Reflect.ownKeys(value)) {
304
+ let source = value[key], entry = source !== null && typeof source == "object" ? copyPlannedValue(source, copies) : source;
305
+ typeof key == "symbol" && !Object.prototype.propertyIsEnumerable.call(value, key) ? Object.defineProperty(copy, key, { value: entry, configurable: !0 }) : key === "__proto__" ? Object.defineProperty(copy, key, { value: entry, enumerable: !0, writable: !0, configurable: !0 }) : copy[key] = entry;
306
+ }
307
+ return copy;
308
+ }
309
+ var requestResults = /* @__PURE__ */ new WeakMap();
310
+ function contentKey(data, options, resolved) {
311
+ let cap = layoutStepKey();
312
+ return `${cap ? cap + ":" : ""}${inputJson(data)}:${optionKey(options)}:${inputJson(resolved)}`;
313
+ }
314
+ function requestKey(data, options, resolved) {
315
+ return `${layoutKey(data, options)}:${inputJson(resolved)}`;
316
+ }
317
+ function repeatedResult(data, options, resolved, layout) {
318
+ return withPlanInputs(() => {
319
+ let key = requestKey(data, options, resolved), byKey = requestResults.get(data);
320
+ return byKey || requestResults.set(data, byKey = /* @__PURE__ */ new Map()), byKey.size >= 32 && !byKey.has(key) && byKey.delete(byKey.keys().next().value), byKey.has(key) || byKey.set(key, layout()), copyPlannedValue(byKey.get(key));
321
+ });
322
+ }
153
323
 
154
324
  // src/core/inputConversion.ts
155
325
  function caseInsensitiveValue(value, allowed) {
@@ -510,7 +680,12 @@ function prepareLegendLayout(definition, data, origins = /* @__PURE__ */ new Wea
510
680
  let column = options;
511
681
  if (definition.type === "column" && options?.legend === "none" && column?.seriesLabels !== void 0 && !column.valueAxis?.percent && (column.variant ?? "grouped") === "grouped") {
512
682
  let keyed = draw(Object.assign({}, options, { legend: void 0 }));
513
- if (!keyed.refused) return keyed;
683
+ if (!keyed.refused)
684
+ return keyed.warnings = keyed.warnings.map((warning) => {
685
+ if (warning.code !== "series-labels-ignored") return warning;
686
+ let { fix: _fix, ...kept } = warning;
687
+ return kept;
688
+ }), keyed;
514
689
  }
515
690
  return draw(options);
516
691
  });
@@ -829,7 +1004,7 @@ function yearRowRequests(plan, top) {
829
1004
  function categoryLineAlign(plan, index) {
830
1005
  return plan.rotation === 0 && (plan.infos[index]?.lines.length ?? 0) > 1 ? { align: "middle" } : {};
831
1006
  }
832
- var SIN45 = Math.SQRT1_2, ROTATED_NAME_AIR = 5, nth = (k) => `${k}${k % 100 >= 11 && k % 100 <= 13 ? "th" : ["th", "st", "nd", "rd"][k % 10] ?? "th"}`, ROTATED_HEIGHT_SHARE = 0.3, VERTICAL_HEIGHT_SHARE = 0.5, VERTICAL_MIN_WIDTH = 130, VERTICAL_MAX_LINES = 3;
1007
+ var SIN45 = Math.SQRT1_2, MIN_PLOT_WIDTH = 10, ROTATED_NAME_AIR = 5, nth = (k) => `${k}${k % 100 >= 11 && k % 100 <= 13 ? "th" : ["th", "st", "nd", "rd"][k % 10] ?? "th"}`, ROTATED_HEIGHT_SHARE = 0.3, VERTICAL_HEIGHT_SHARE = 0.5, VERTICAL_MIN_WIDTH = 130, VERTICAL_MAX_LINES = 3;
833
1008
  function stackedName(label, font, room, lines, measure) {
834
1009
  let least = Math.floor((measure(label, font).width - (lines - 1) * measure(" ", font).width) / lines) - 2;
835
1010
  if (least > room) return;
@@ -1394,14 +1569,20 @@ function rotatedClaimRect(anchorX, anchorY, lineHeight, rowTop) {
1394
1569
  let y = Math.max(anchorY - lineHeight * SIN45 / 2, rowTop === void 0 ? -1 / 0 : rowTop + 3);
1395
1570
  return { x: anchorX - lineHeight, y, w: lineHeight, h: lineHeight };
1396
1571
  }
1397
- function rotatedLeftOverhang(plan, centers, minX) {
1572
+ function rotatedLeftOverhang(plan, centers, minX, plotWidth) {
1398
1573
  if (plan.rotation !== 45) return 0;
1399
1574
  let lineH = plan.font.size * (plan.font.lineHeight ?? 1.2), overhang = 0;
1400
1575
  return plan.infos.forEach((info, i) => {
1401
1576
  if (!plan.keep[i]) return;
1402
1577
  let left = centers[i] - (info.w + lineH) * SIN45;
1403
1578
  overhang = Math.max(overhang, minX - left);
1404
- }), Math.ceil(overhang);
1579
+ }), Math.min(Math.ceil(overhang), Math.max(0, Math.floor(plotWidth - MIN_PLOT_WIDTH)));
1580
+ }
1581
+ function yieldToRotatedName(plan, band, count, x0, width, bandAt, planAt) {
1582
+ let overhang = rotatedLeftOverhang(plan, ((b) => Array.from({ length: count }, (_, i) => b.center(i)))(band), 4, width);
1583
+ if (overhang <= 0) return { plan, band, x0, width };
1584
+ let narrowed = bandAt(x0 + overhang, width - overhang), narrowPlan = planAt(narrowed);
1585
+ return narrowPlan.rotation !== 0 ? { plan: narrowPlan, band: narrowed, x0: x0 + overhang, width: width - overhang } : { plan: planAt(band, !1), band, x0, width };
1405
1586
  }
1406
1587
  function verticalNameRect(centerX, rowTop, width, font, lines = 1) {
1407
1588
  let lineH = font.size * (font.lineHeight ?? 1.2), pivotX = centerX + font.size * VERTICAL_CAP_SHARE / 2 - (lines - 1) * lineH / 2, pivotY = rowTop + 4 + lineH * SIN45 / 2;
@@ -1666,8 +1847,8 @@ function aspectHeight(policy, size) {
1666
1847
  }
1667
1848
  var TALL_ASPECT_CAP_WIDTH = 720;
1668
1849
  function hostlessHeight(policy, width, fallbackHeight, card = !1) {
1669
- let full = aspectHeight(policy, { width, height: fallbackHeight }), aspect = card && policy.fit === "fill" && policy.aspect !== "16:9" && width < WIDE_CANVAS_MIN_WIDTH ? Math.min(full, aspectHeight(policy, { width: TALL_ASPECT_CAP_WIDTH, height: fallbackHeight })) : full, floor = card && policy.fit === "fill" ? policy.minHeight : requestFloor(policy).height;
1670
- return card && policy.fit === "fill" && policy.aspect === "16:9" && width < WIDE_CANVAS_MIN_WIDTH ? floor : card && policy.fit === "fill" && floor > aspect && width < WIDE_CANVAS_MIN_WIDTH ? Math.ceil(floor) : policy.fit === "fill" && floor > aspect ? ladderHeights(width).find((step) => step.height >= floor)?.height ?? floor : Math.max(floor, aspect);
1850
+ let full = aspectHeight(policy, { width, height: fallbackHeight }), aspect = card && policy.fit === "fill" && policy.aspect !== "16:9" && classStepWidth(width) < WIDE_CANVAS_MIN_WIDTH ? Math.min(full, aspectHeight(policy, { width: TALL_ASPECT_CAP_WIDTH, height: fallbackHeight })) : full, floor = card && policy.fit === "fill" ? policy.minHeight : requestFloor(policy).height;
1851
+ return card && policy.fit === "fill" && policy.aspect === "16:9" && classStepWidth(width) < WIDE_CANVAS_MIN_WIDTH ? floor : card && policy.fit === "fill" && floor > aspect && classStepWidth(width) < WIDE_CANVAS_MIN_WIDTH ? Math.ceil(floor) : policy.fit === "fill" && floor > aspect ? ladderHeights(width).find((step) => step.height >= floor)?.height ?? floor : Math.max(floor, aspect);
1671
1852
  }
1672
1853
  var PLOT_FLOOR_PX = { report: 160, print: 160, slide: 160, dashboard: 140 }, PLOT_FLOOR_SHARE = 0.5, NARROW_SHARE_WIDTH = 600, NARROW_PLOT_FLOOR_SHARE = 0.4;
1673
1854
  function plotFloorShare(width, options) {
@@ -1716,7 +1897,7 @@ function plotRepairHeight(geometry, target) {
1716
1897
  );
1717
1898
  }
1718
1899
  function autoPlotPx(target, width) {
1719
- return width >= WIDE_CANVAS_MIN_WIDTH ? PLOT_FLOOR_PX[target] : Math.max(PLOT_FLOOR_PX[target], Math.round(150 + 0.115 * width));
1900
+ return classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH ? PLOT_FLOOR_PX[target] : Math.max(PLOT_FLOOR_PX[target], Math.round(150 + 0.115 * width));
1720
1901
  }
1721
1902
  var STACKED_COLUMN_PLOT_PX = 80, STACKED_COLUMN_WIDE_PLOT_PX = 65;
1722
1903
  function stackedColumnPlotPx(type, options, width) {
@@ -1725,9 +1906,9 @@ function stackedColumnPlotPx(type, options, width) {
1725
1906
  }
1726
1907
  var AREA100_PLOT_PX = 40, VARIANCE_ABSOLUTE_PLOT_PX = 45, VARIANCE_RELATIVE_NARROW_PLOT_PX = -25, MEKKO_UNIT_NARROW_PLOT_PX = -40;
1727
1908
  function wholeBridgePlotPx(type, options, width) {
1728
- if (type !== "waterfall" && type !== "pvm" || width === void 0 || width >= WIDE_CANVAS_MIN_WIDTH) return 0;
1729
- let bridge = options;
1730
- return bridge?.valueAxis?.break !== void 0 && bridge.valueAxis.break !== !1 ? 0 : type === "pvm" ? width < CARD_CLASS_WIDTH ? 20 : width < 720 ? 55 : 40 : bridge?.variant === "horizontal" ? width < CARD_CLASS_WIDTH ? 0 : width < 720 ? 15 : width < 960 ? 40 : 60 : width < 400 ? 80 : width < 720 ? 72 : Math.max(73, 100 - (width - 720) * 27 / 240);
1909
+ if (type !== "waterfall" && type !== "pvm" || width === void 0 || classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH) return 0;
1910
+ let narrow = classStepWidth(width) < 720, bridge = options;
1911
+ return bridge?.valueAxis?.break !== void 0 && bridge.valueAxis.break !== !1 ? 0 : type === "pvm" ? width < CARD_CLASS_WIDTH ? 20 : narrow ? 55 : 40 : bridge?.variant === "horizontal" ? width < CARD_CLASS_WIDTH ? 0 : narrow ? 15 : width < 960 ? 40 : 60 : width < 400 ? 80 : narrow ? 72 : Math.max(73, 100 - (width - 720) * 27 / 240);
1731
1912
  }
1732
1913
  function typePlotPx(type, options, width) {
1733
1914
  if (type === "waterfall" || type === "pvm") return wholeBridgePlotPx(type, options, width);
@@ -1875,7 +2056,7 @@ function fitLayout(definition, data, options) {
1875
2056
  }
1876
2057
  var mekkoHeightFloors = /* @__PURE__ */ new WeakMap();
1877
2058
  function prepareFitLayout(definition, data, origins = /* @__PURE__ */ new WeakMap()) {
1878
- let probes = /* @__PURE__ */ new Map(), heightFloors = definition.type === "mekko" ? mekkoHeightFloors.get(origins) ?? /* @__PURE__ */ new Map() : void 0;
2059
+ let probes = /* @__PURE__ */ new Map(), memoKeys = definition.type === "table" || definition.type === "dimswitch" ? {} : void 0, heightFloors = definition.type === "mekko" ? mekkoHeightFloors.get(origins) ?? /* @__PURE__ */ new Map() : void 0;
1879
2060
  heightFloors && mekkoHeightFloors.set(origins, heightFloors);
1880
2061
  let at = (runOptions, compact) => {
1881
2062
  let size = runOptions?.size, targetSize = runOptions?.[TARGET_SIZE], fixed = targetSize?.fixed, key = `${typeof size == "object" ? `${size?.width}x${size?.height}:${size?.unit}` : String(size)}:${compact}:${forcedCompact(runOptions)}:${String(runOptions?.mode)}:${runOptions?.belowMinimum}:${fixed?.width}:${fixed?.height}:${targetSize?.sizePx.width}:${targetSize?.sizePx.height}:${isWidthProbe(definition.type, runOptions)}:${runOptions?.[ACCEPTANCE_PROBE]}`, result = probes.get(key);
@@ -1891,7 +2072,7 @@ function prepareFitLayout(definition, data, origins = /* @__PURE__ */ new WeakMa
1891
2072
  ]) : "", floor2 = fixedMekko ? heightFloors?.get(floorKey) : void 0;
1892
2073
  if (floor2 && runOptions?.[FIXED_SIZE_PROBE] && requested.height + SIZE_TOLERANCE < floor2.minHeight)
1893
2074
  return sizeRefusal(definition.type, definition.title, requested, { ...floor2 });
1894
- result = fitSizeMemo(definition, data, runOptions, compact), fixedMekko && result.sizing && (result.refused ? plotChromeFloor.has(result) : plotChromeFloor.has(result.frame)) && heightFloors.set(floorKey, result.sizing), probes.set(key, result);
2075
+ result = fitSizeMemo(definition, data, runOptions, compact, memoKeys), fixedMekko && result.sizing && (result.refused ? plotChromeFloor.has(result) : plotChromeFloor.has(result.frame)) && heightFloors.set(floorKey, result.sizing), probes.set(key, result);
1895
2076
  }
1896
2077
  let copy = { ...result, ...result.sizing ? { sizing: { ...result.sizing } } : {} }, floor = plotChromeFloor.get(result);
1897
2078
  return floor !== void 0 && plotChromeFloor.set(copy, floor), origins.set(copy, result), copy;
@@ -1903,14 +2084,14 @@ function prepareFitLayout(definition, data, origins = /* @__PURE__ */ new WeakMa
1903
2084
  let width = resolveSize(options.size, options.target).width;
1904
2085
  width < CARD_CLASS_WIDTH && cardClassHeight(definition, data, options, width);
1905
2086
  }
1906
- let fitted = fitOrRepair(definition, data, options, at), copy = copyLayout(fitted);
1907
- return origins.set(copy, origins.get(fitted) ?? fitted), copy.refused || sourceFollowsContent(copy, options), withPlotFloorWarning(copy, options, definition.title);
2087
+ let fitted = fitOrRepair(definition, data, options, at), owned = !fitted.refused && !options?.[PLAN_ONLY] && isPlanned(fitted), selected = !fitted.refused && !options?.[PLAN_ONLY] ? materializeLayout(fitted) : fitted, copy = owned ? selected : copyLayout(selected);
2088
+ return owned && !copy.refused && (copy.a11y.desc = singleStops(copy.a11y.desc)), origins.set(copy, origins.get(fitted) ?? fitted), !copy.refused && !options?.[PLAN_ONLY] && sourceFollowsContent(copy, options), withPlotFloorWarning(copy, options, definition.title);
1908
2089
  } finally {
1909
2090
  borrowed || (memo.active = !1, memo.heights.clear(), memo.references = void 0);
1910
2091
  }
1911
2092
  }));
1912
2093
  return run.finish = () => {
1913
- probes.clear(), heightFloors?.clear();
2094
+ probes.clear(), heightFloors?.clear(), memoKeys && (memoKeys.scope = void 0, memoKeys.parts = void 0);
1914
2095
  }, run;
1915
2096
  }
1916
2097
  function copyLayout(result) {
@@ -2051,14 +2232,14 @@ function grownForNotes(definition, data, options, first, compact = !1, atSize) {
2051
2232
  let width = first.size.width, at = (height) => {
2052
2233
  let layout = fitOnce(definition, data, { ...options, size: { width, height } }, compact, atSize);
2053
2234
  return !layout.refused && layout.sizing && widthOnly(options?.size) && (layout.sizing = { ...layout.sizing, naturalHeight: Math.max(layout.sizing.naturalHeight, layout.size.height) }), layout;
2054
- }, target = options.target, share = autoPlotShare(definition, options, width), fill = declaredSizing(definition, options).fit !== "content" && definition.type !== "grid", short = (layout) => fill && !layout.refused && plotFloorHeight(layout, target, PLOT_FLOOR_PX[target], share, freedChromeOf(layout.frame)) > layout.size.height + SIZE_TOLERANCE, ladder = ladderHeights(width).map((step) => step.height).filter((height) => height > first.size.height * (1 + LADDER_TOLERANCE)), steps = width >= WIDE_CANVAS_MIN_WIDTH || ladder.length > 0 ? ladder : [Math.ceil(first.size.height * (1 + NOTE_GROWTH_SHARE))], below = first.size.height, top;
2235
+ }, target = options.target, share = autoPlotShare(definition, options, width), fill = declaredSizing(definition, options).fit !== "content" && definition.type !== "grid", short = (layout) => fill && !layout.refused && plotFloorHeight(layout, target, PLOT_FLOOR_PX[target], share, freedChromeOf(layout.frame)) > layout.size.height + SIZE_TOLERANCE, ladder = ladderHeights(width).map((step) => step.height).filter((height) => height > first.size.height * (1 + LADDER_TOLERANCE)), steps = classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH || ladder.length > 0 ? ladder : [Math.ceil(first.size.height * (1 + NOTE_GROWTH_SHARE))], below = first.size.height, top;
2055
2236
  for (let height of steps) {
2056
2237
  let next = at(height);
2057
2238
  if (next.refused || (top = next), next.refused || owes(next) || short(next)) {
2058
2239
  below = height;
2059
2240
  continue;
2060
2241
  }
2061
- if (width >= WIDE_CANVAS_MIN_WIDTH) return next;
2242
+ if (classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH) return next;
2062
2243
  let best2 = next, low2 = below, high2 = height;
2063
2244
  for (; high2 - low2 > 1; ) {
2064
2245
  let mid = Math.floor((low2 + high2) / 2), probe = at(mid);
@@ -2067,7 +2248,7 @@ function grownForNotes(definition, data, options, first, compact = !1, atSize) {
2067
2248
  return best2;
2068
2249
  }
2069
2250
  let noted = (layout) => layout.refused ? 1 / 0 : layout.labels.filter(notedForSize).length;
2070
- if (width >= WIDE_CANVAS_MIN_WIDTH || top === void 0 || noted(top) >= noted(first) || short(top)) return first;
2251
+ if (classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH || top === void 0 || noted(top) >= noted(first) || short(top)) return first;
2071
2252
  let goal = noted(top), best = top, low = first.size.height, high = top.size.height;
2072
2253
  for (; high - low > 1; ) {
2073
2254
  let mid = Math.floor((low + high) / 2), probe = at(mid);
@@ -2092,7 +2273,7 @@ function grownForFurniture(definition, data, options, first, compact = !1, atSiz
2092
2273
  return !layout.refused && layout.sizing && widthOnly(options?.size) && (layout.sizing = { ...layout.sizing, naturalHeight: Math.max(layout.sizing.naturalHeight, layout.size.height) }), layout;
2093
2274
  }, steps = ladderHeights(width).map((step) => step.height).filter((height2) => height2 > first.size.height).sort((a, b) => a - b), top = steps.at(-1);
2094
2275
  if (top === void 0 || Math.ceil(furnitureShare(first) * first.size.height / budget) > top) return first;
2095
- if (width >= WIDE_CANVAS_MIN_WIDTH) {
2276
+ if (classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH) {
2096
2277
  for (let height2 of steps) {
2097
2278
  let next = at(height2);
2098
2279
  if (!over(next)) return next;
@@ -2109,7 +2290,11 @@ function grownForFurniture(definition, data, options, first, compact = !1, atSiz
2109
2290
  }
2110
2291
  return first;
2111
2292
  }
2112
- var HARD_MINIMUM = /* @__PURE__ */ Symbol("boardplot.hardMinimum"), LAYOUT_CALL = /* @__PURE__ */ Symbol("boardplot.layoutCall"), FULL_LAYOUT_PROBE = /* @__PURE__ */ Symbol("boardplot.fullLayoutProbe"), VERIFY_ADVICE = /* @__PURE__ */ Symbol("boardplot.verifyAdvice"), FORCE_COMPACT = /* @__PURE__ */ Symbol("boardplot.forceCompact"), WIDTH_PROBE = /* @__PURE__ */ Symbol("boardplot.widthProbe"), FIXED_SIZE_PROBE = /* @__PURE__ */ Symbol("boardplot.fixedSizeProbe"), ACCEPTANCE_PROBE = /* @__PURE__ */ Symbol("boardplot.acceptanceProbe");
2293
+ var HARD_MINIMUM = /* @__PURE__ */ Symbol("boardplot.hardMinimum"), LAYOUT_CALL = /* @__PURE__ */ Symbol("boardplot.layoutCall"), FULL_LAYOUT_PROBE = /* @__PURE__ */ Symbol("boardplot.fullLayoutProbe"), VERIFY_ADVICE = /* @__PURE__ */ Symbol("boardplot.verifyAdvice"), FORCE_COMPACT = /* @__PURE__ */ Symbol("boardplot.forceCompact"), NARROW_FORM = /* @__PURE__ */ Symbol("boardplot.narrowForm"), NARROW_FORM_TYPES = /* @__PURE__ */ new Set(["bullet", "grid", "heatmap", "status", "waffle", "waterfall"]), SIDE_KEY_OFF = /* @__PURE__ */ Symbol("boardplot.sideKeyOff"), sideKeyOff = (options) => options[SIDE_KEY_OFF] === !0;
2294
+ function sideKeyGivesWay(options, geo, again) {
2295
+ return options.mode !== "compact" || sideKeyOff(options) || geo.refused || !geo.sizing || geo.sizing.minWidth <= geo.size.width + SIZE_TOLERANCE || !geo.frame?.warnings?.some((warning) => warning.code === "legend-beside-plot") ? geo : again({ ...options, [SIDE_KEY_OFF]: !0 });
2296
+ }
2297
+ var WIDTH_PROBE = /* @__PURE__ */ Symbol("boardplot.widthProbe"), FIXED_SIZE_PROBE = /* @__PURE__ */ Symbol("boardplot.fixedSizeProbe"), ACCEPTANCE_PROBE = /* @__PURE__ */ Symbol("boardplot.acceptanceProbe");
2113
2298
  function isWidthProbe(type, options) {
2114
2299
  return options?.[WIDTH_PROBE] === type && options?.belowMinimum === "refuse" && panelTypeClass(options) === void 0;
2115
2300
  }
@@ -2134,13 +2319,21 @@ function compactReplacesRefusal(definition, options, data) {
2134
2319
  return !(requested.fixed.height && !fitsSize(requested.sizePx, declaredSizing(definition, options)));
2135
2320
  }
2136
2321
  var CARD_HEIGHT_MEMO = /* @__PURE__ */ Symbol("boardplot.cardHeightMemo");
2322
+ function sameContent(a, b, depth = 0) {
2323
+ if (a === b) return !0;
2324
+ if (depth > 24 || typeof a != "object" || typeof b != "object" || a === null || b === null) return !1;
2325
+ let proto = Object.getPrototypeOf(a);
2326
+ if (proto !== Object.getPrototypeOf(b) || !Array.isArray(a) && proto !== Object.prototype && proto !== null) return !1;
2327
+ let keys = Reflect.ownKeys(a);
2328
+ return keys.length === Reflect.ownKeys(b).length && keys.every((key) => Object.hasOwn(b, key) && sameContent(a[key], b[key], depth + 1));
2329
+ }
2137
2330
  function cardReferenceHeight(data, options, wider, draw, capture) {
2138
2331
  let memo = options[CARD_HEIGHT_MEMO];
2139
2332
  if (!memo?.active) {
2140
2333
  let result2 = draw(wider);
2141
2334
  return result2.refused ? void 0 : result2.size.height;
2142
2335
  }
2143
- let same = (a, b) => a === b || Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((item, i) => item === b[i]), entries = memo.references ??= [], match = entries.find((entry) => entry.data === data && resolveSize(entry.options.size, entry.options.target).width === resolveSize(wider.size, wider.target).width && [.../* @__PURE__ */ new Set([...Object.keys(entry.options), ...Object.keys(wider)])].every((key) => key === "size" || same(entry.options[key], wider[key])));
2336
+ let entries = memo.references ??= [], match = entries.find((entry) => entry.data === data && resolveSize(entry.options.size, entry.options.target).width === resolveSize(wider.size, wider.target).width && [.../* @__PURE__ */ new Set([...Object.keys(entry.options), ...Object.keys(wider)])].every((key) => key === "size" || sameContent(entry.options[key], wider[key])));
2144
2337
  if (match)
2145
2338
  return match.restore?.(), match.height;
2146
2339
  let result = draw({ ...wider, [CARD_HEIGHT_MEMO]: memo }), height = result.refused ? void 0 : result.size.height;
@@ -2167,10 +2360,23 @@ function fitOnce(definition, data, options, compactFallback, atSize) {
2167
2360
  let declared = declaredSizing(definition, options);
2168
2361
  if (widthOnly(options?.size)) {
2169
2362
  let contentHeight2 = function() {
2170
- for (let pass = 0; pass < 4; pass++) {
2363
+ let refusedProbe = !1;
2364
+ for (let pass = 0; pass < (definition.type === "grid" ? 6 : 4); pass++) {
2171
2365
  let probe = at(width, height), natural = probe.sizing?.naturalHeight;
2172
2366
  if (natural === height || (definition.type === "table" || definition.type === "dimswitch") && !probe.refused && probe.size.height === natural || definition.type === "pie" && !probe.refused && settledAutoHeight.has(probe.frame) && probe.size.height === natural) return probe;
2173
- if (natural === void 0 || (height = natural, probe.sizing?.fit !== "content")) break;
2367
+ if (natural === void 0) break;
2368
+ if (definition.type === "grid" && probe.sizing?.fit !== "content") {
2369
+ if (probe.refused && pass === 0) {
2370
+ refusedProbe = !0, height = natural;
2371
+ continue;
2372
+ }
2373
+ if (probe.refused) break;
2374
+ if (refusedProbe && !slotDemandHeight.has(probe.frame)) return probe;
2375
+ }
2376
+ let slotGrid = !probe.refused && slotDemandHeight.has(probe.frame) && probe.sizing?.fit !== "content";
2377
+ if (slotGrid && natural < height) return probe;
2378
+ let grew = natural > height;
2379
+ if (height = natural, !(slotGrid && grew) && probe.sizing?.fit !== "content") break;
2174
2380
  }
2175
2381
  return at(width, height);
2176
2382
  };
@@ -2198,7 +2404,7 @@ function fitOnce(definition, data, options, compactFallback, atSize) {
2198
2404
  return tall.refused ? settled : tall;
2199
2405
  }
2200
2406
  if (!nested) {
2201
- let plotShare = autoPlotShare(definition, options, width), floorShare = autoPlotShare(definition, { ...options, [PLOT_SHARE]: void 0 }, width), freed = (r) => r.refused ? 0 : freedChromeOf(r.frame);
2407
+ let plotShare = autoPlotShare(definition, options, width), floorShare = autoPlotShare(definition, { ...options, [PLOT_SHARE]: void 0 }, width), freed = (r) => r.refused ? 0 : freedChromeOf(r.frame), ownStart = height;
2202
2408
  width < CARD_CLASS_WIDTH && (height = Math.max(height, cardClassHeight(definition, data, options, width, !0) ?? 0));
2203
2409
  let wholeAxis = { ...options, valueAxis: { ...options.valueAxis, break: !1 } }, drawnProbe = declared.aspect === "16:9" && options?.valueAxis?.break === "auto" && wholeBridgePlotPx(definition.type, wholeAxis, width) !== 0 ? at(width, height) : void 0, allowanceOptions = drawnProbe && !drawnProbe.refused && !drawnProbe.axes.some((axis) => axis.break) && !drawnProbe.scene.some((node) => node.t === "line" && (node.part === "barBreak" || node.part === "axisBreak")) ? wholeAxis : options, plotPx = declared.aspect === "16:9" ? autoPlotPx(target, width) + typePlotPx(definition.type, allowanceOptions, width) : PLOT_FLOOR_PX[target], search = (plotPx2, startHeight) => {
2204
2410
  let height2 = startHeight, previous, directRefusal, triedDirectRefusal = !1;
@@ -2247,7 +2453,12 @@ function fitOnce(definition, data, options, compactFallback, atSize) {
2247
2453
  height2 = floor > height2 ? floor : need;
2248
2454
  }
2249
2455
  return at(width, height2);
2250
- }, first = search(plotPx, height), plainPx = declared.aspect === "16:9" ? autoPlotPx(target, width) + typePlotPx(definition.type, options) : plotPx;
2456
+ }, first = search(plotPx, height);
2457
+ if (height > ownStart && first.refused && first.size.width + SIZE_TOLERANCE < (first.sizing?.minWidth ?? 0)) {
2458
+ let own = search(plotPx, ownStart);
2459
+ if (!own.refused) return own;
2460
+ }
2461
+ let plainPx = declared.aspect === "16:9" ? autoPlotPx(target, width) + typePlotPx(definition.type, options) : plotPx;
2251
2462
  if (plainPx === plotPx || hiddenForSpace(first) === 0) return first;
2252
2463
  let plain = search(plainPx, height);
2253
2464
  if (hiddenForSpace(plain) >= hiddenForSpace(first)) return first;
@@ -2280,7 +2491,7 @@ function withLayoutMemo(run) {
2280
2491
  if (layoutMemo) return run();
2281
2492
  layoutMemo = /* @__PURE__ */ new Map();
2282
2493
  try {
2283
- return withEngineNotes(() => withCategoryRowPlans(run));
2494
+ return withPlanInputs(() => withEngineNotes(() => withCategoryRowPlans(run)));
2284
2495
  } finally {
2285
2496
  layoutMemo = void 0, memoSymbolIds = /* @__PURE__ */ new Map();
2286
2497
  }
@@ -2293,7 +2504,7 @@ function memoId(value) {
2293
2504
  let id = memoObjectIds.get(value);
2294
2505
  return id === void 0 && memoObjectIds.set(value, id = ++memoNextId), id;
2295
2506
  }
2296
- function memoKey(value, depth = 0) {
2507
+ function memoKey(value, depth = 0, parts) {
2297
2508
  if (--memoKeyBudget < 0) throw MEMO_KEY_TOO_LONG;
2298
2509
  switch (typeof value) {
2299
2510
  case "string":
@@ -2341,7 +2552,21 @@ function memoKey(value, depth = 0) {
2341
2552
  let out = "{";
2342
2553
  if (depth === 0) {
2343
2554
  let ordered = Reflect.ownKeys(object).filter((key) => object[key] !== void 0).map((key) => [memoName(key), key]).sort((a, b) => a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0);
2344
- for (let [name, key] of ordered) out += `${name}:${memoKey(object[key], 1)},`;
2555
+ if (!parts) {
2556
+ for (let [name, key] of ordered) out += `${name}:${memoKey(object[key], 1)},`;
2557
+ return `${out}}`;
2558
+ }
2559
+ for (let [name, key] of ordered) {
2560
+ let value2 = object[key], held = parts.get(key), text;
2561
+ if (held && Object.is(held.value, value2)) {
2562
+ if ((memoKeyBudget -= held.cost) < 0) throw MEMO_KEY_TOO_LONG;
2563
+ text = held.text;
2564
+ } else {
2565
+ let before = memoKeyBudget;
2566
+ text = memoKey(value2, 1), parts.set(key, { value: value2, text, cost: before - memoKeyBudget });
2567
+ }
2568
+ out += `${name}:${text},`;
2569
+ }
2345
2570
  return `${out}}`;
2346
2571
  }
2347
2572
  for (let key of Reflect.ownKeys(object)) {
@@ -2360,7 +2585,7 @@ function memoCopy(result) {
2360
2585
  let copy = { ...result, warnings: [...result.warnings], ...result.sizing ? { sizing: { ...result.sizing } } : {} }, floor = plotChromeFloor.get(result);
2361
2586
  return floor !== void 0 && plotChromeFloor.set(copy, floor), copy;
2362
2587
  }
2363
- function fitSizeMemo(definition, data, options, compactFallback) {
2588
+ function fitSizeMemo(definition, data, options, compactFallback, keys) {
2364
2589
  let memo = layoutMemo;
2365
2590
  if (!memo || data === null || typeof data != "object" || panelTypeClass(options) !== void 0 || definition.type === "gantt" && options?.[ACCEPTANCE_PROBE])
2366
2591
  return fitSize(definition, data, options, compactFallback);
@@ -2369,17 +2594,17 @@ function fitSizeMemo(definition, data, options, compactFallback) {
2369
2594
  let { [PLOT_SHARE]: _share, ...rest } = keyed;
2370
2595
  keyed = rest;
2371
2596
  }
2372
- memoKeyBudget = MEMO_KEY_LIMIT, memoKeyData = data;
2597
+ keys && keys.scope !== memo && (keys.scope = memo, keys.parts = /* @__PURE__ */ new Map()), memoKeyBudget = MEMO_KEY_LIMIT, memoKeyData = data;
2373
2598
  let optionsKey;
2374
2599
  try {
2375
- optionsKey = memoKey(keyed);
2600
+ optionsKey = memoKey(keyed, 0, keys?.parts);
2376
2601
  } catch (error) {
2377
2602
  if (error !== MEMO_KEY_TOO_LONG) throw error;
2378
2603
  return fitSize(definition, data, options, compactFallback);
2379
2604
  } finally {
2380
2605
  memoKeyData = void 0;
2381
2606
  }
2382
- let key = `${memoId(definition)}|${memoId(data)}|${compactFallback}|${definition.type === "gantt" && card ? memoId(card) : ""}|${optionsKey}`, entry = memo.get(key) ?? {};
2607
+ let key = `${memoId(definition)}|${memoId(data)}|${compactFallback}|${definition.type === "gantt" && card ? memoId(card) : ""}|${layoutStepKey()}|${optionsKey}`, entry = memo.get(key) ?? {};
2383
2608
  if (entry.result) return memoCopy(entry.result);
2384
2609
  let shared = entry.byShare?.get(share);
2385
2610
  if (shared)
@@ -2405,13 +2630,17 @@ function columnBarFloor(geometry) {
2405
2630
  let bars = geometry.marks?.bars ?? [], thinnest = Math.min(...bars.map((bar) => bar.rect.w).filter((w) => w > 0));
2406
2631
  return !Number.isFinite(thinnest) || thinnest >= MIN_COLUMN_BAR ? 0 : Math.min(CARD_MIN_WIDTH, Math.ceil(geometry.size.width - geometry.plot.w + geometry.plot.w * MIN_COLUMN_BAR / thinnest));
2407
2632
  }
2633
+ function sizeGate(definition, data, options, compactFallback, declared = declaredSizing(definition, options), requested = resolveSize(options?.size, options?.target)) {
2634
+ let nested = panelTypeClass(options) !== void 0, floor = requestFloor(declared), growsFull = definition.type === "pie" && !(options?.[TARGET_SIZE] ?? resolveTargetSize(options?.target ?? DEFAULT_TARGET, options?.size)).fixed.height, tight = !nested && (compactFallback || belowMinimum(declared, growsFull ? { ...requested, height: declared.minHeight } : requested, options, definition.type)), gateWidth = definition.type === "column" && !columnCannotFit(data, options, requested.width) ? Math.min(floor.width, NARROW_MIN_WIDTH) : floor.width, gatePolicy = tight ? { ...declared, minWidth: gateWidth, minHeight: floor.height } : declared;
2635
+ return { tight, gatePolicy };
2636
+ }
2408
2637
  function fitSize(definition, data, options, compactFallback) {
2409
- let declared = declaredSizing(definition, options), requested = resolveSize(options?.size, options?.target), nested = panelTypeClass(options) !== void 0, floor = requestFloor(declared), growsFull = definition.type === "pie" && !(options?.[TARGET_SIZE] ?? resolveTargetSize(options?.target ?? DEFAULT_TARGET, options?.size)).fixed.height, tight = !nested && (compactFallback || belowMinimum(declared, growsFull ? { ...requested, height: declared.minHeight } : requested, options, definition.type)), gateWidth = definition.type === "column" && !columnCannotFit(data, options, requested.width) ? Math.min(floor.width, NARROW_MIN_WIDTH) : floor.width, gatePolicy = tight ? { ...declared, minWidth: gateWidth, minHeight: floor.height } : declared;
2638
+ let declared = declaredSizing(definition, options), requested = resolveSize(options?.size, options?.target), nested = panelTypeClass(options) !== void 0, floor = requestFloor(declared), { tight, gatePolicy } = sizeGate(definition, data, options, compactFallback, declared, requested);
2410
2639
  if (!nested && !fitsSize(requested, definition.type === "grid" ? { ...gatePolicy, minHeight: 0 } : gatePolicy))
2411
2640
  return sizeRefusal(definition.type, definition.title, requested, resolveSizing(gatePolicy, requested));
2412
2641
  let mode = tight || definition.type !== "mekko" && options?.mode === "compact" ? "compact" : "full", layoutOptions = mode === "compact" ? compactOptions(definition.type, options ?? {}, tight ? floor : void 0, requested.width) : options, rawOptions = definition.type === "kpi" ? { ...layoutOptions, typeClass: "M" } : layoutOptions, layout = (runOptions) => {
2413
2642
  let clean = withoutCallState(runOptions), memo = runOptions?.[CARD_HEIGHT_MEMO];
2414
- return definition.layout(data, definition.type === "gantt" ? {
2643
+ return definition.layout(data, definition.type === "table" || definition.type === "dimswitch" ? { ...clean, [PLAN_ONLY]: !0 } : definition.type === "gantt" ? {
2415
2644
  ...clean,
2416
2645
  ...memo ? { [CARD_HEIGHT_MEMO]: memo } : {},
2417
2646
  ...runOptions?.[ACCEPTANCE_PROBE] ? { [ACCEPTANCE_PROBE]: !0 } : {}
@@ -2512,15 +2741,14 @@ var BUDGETED_LISTS = {
2512
2741
  cohort: ["cohorts"]
2513
2742
  }, TOP_N_TYPES = /* @__PURE__ */ new Set(["bar", "butterfly", "column", "dot", "mekko", "pareto", "likert", "pyramid", "variance"]), VIEWPORT_TYPES = /* @__PURE__ */ new Set(["column", "combo"]);
2514
2743
  function barTotalsAtLeast(data, threshold) {
2515
- let series = data?.series, categories = data?.categories ?? [], totals = new Float64Array(categories.length);
2516
- if (Array.isArray(series)) for (let one of series) {
2517
- let values = one?.values;
2518
- if (Array.isArray(values))
2519
- for (let i = 0; i < totals.length && i < values.length; i += 1) {
2520
- let cell = values[i], value = typeof cell == "number" ? cell : cell?.v;
2521
- typeof value == "number" && Number.isFinite(value) && (totals[i] = totals[i] + value);
2522
- }
2523
- }
2744
+ let { categories, series } = data;
2745
+ if (!Array.isArray(series) || !Array.isArray(categories)) return 0;
2746
+ let cats = categories.map(normalizeCategory), totals = new Float64Array(cats.length);
2747
+ series.forEach((one, index) => {
2748
+ ranksCategories(one) && normalizeSeriesValues(one, cats, index).forEach((cell, i) => {
2749
+ totals[i] = totals[i] + (cellValue(cell) ?? 0);
2750
+ });
2751
+ });
2524
2752
  let count = 0;
2525
2753
  for (let total of totals) Math.abs(total) >= threshold && (count += 1);
2526
2754
  return count;
@@ -2534,7 +2762,7 @@ function drawnCount(type, key, list, data, options) {
2534
2762
  let topN = options?.topN;
2535
2763
  if (TOP_N_TYPES.has(type) && topN?.n !== void 0 && topN.n > 0 && !(type === "column" && options?.anomaly)) {
2536
2764
  let kept = Math.min(count, type === "bar" ? Math.max(1, topN.n) : topN.n);
2537
- type === "bar" && topN.threshold !== void 0 && (kept = Math.min(kept, Math.max(1, barTotalsAtLeast(data, topN.threshold)))), count = Math.min(count, kept + (type === "dot" || type === "variance" || topN.rest === !1 || kept === count ? 0 : 1));
2765
+ (type === "bar" || type === "column") && topN.threshold !== void 0 && (kept = Math.min(kept, Math.max(1, barTotalsAtLeast(data, topN.threshold)))), count = Math.min(count, kept + (type === "dot" || type === "variance" || topN.rest === !1 || kept === count ? 0 : 1));
2538
2766
  }
2539
2767
  if (VIEWPORT_TYPES.has(type) && key === "categories") {
2540
2768
  let ends = options?.viewDomain?.x;
@@ -2818,12 +3046,12 @@ function thinAxisTicks(ticks, scale, orient, format, font, measure, labelX, keep
2818
3046
  let keep = sweepHide(itemsFor(ticks), 2);
2819
3047
  return ticks.filter((_, index) => keep[index]);
2820
3048
  }
2821
- function inferLinearYDomain(geometry) {
2822
- let ticks = geometry.axes.find((axis) => axis.axis === "y")?.ticks.filter((tick) => typeof tick.at == "number");
3049
+ function inferLinearYDomain(geometry, axisName = "y") {
3050
+ let ticks = geometry.axes.find((axis) => axis.axis === axisName)?.ticks.filter((tick) => typeof tick.at == "number");
2823
3051
  if (!ticks || ticks.length < 2) return null;
2824
3052
  let a = ticks[0], b = ticks.find((tick) => tick.pos !== a.pos);
2825
3053
  if (!b) return null;
2826
- let valueAt = (position) => a.at + (position - a.pos) * (b.at - a.at) / (b.pos - a.pos), roundDomain = (value) => Math.round(value * 1e9) / 1e9, bounds = [valueAt(geometry.plot.y), valueAt(geometry.plot.y + geometry.plot.h)].map(roundDomain);
3054
+ let valueAt = (position) => a.at + (position - a.pos) * (b.at - a.at) / (b.pos - a.pos), roundDomain = (value) => Math.round(value * 1e9) / 1e9, [start, length] = axisName === "y" ? [geometry.plot.y, geometry.plot.h] : [geometry.plot.x, geometry.plot.w], bounds = [valueAt(start), valueAt(start + length)].map(roundDomain);
2827
3055
  return [Math.min(bounds[0], bounds[1]), Math.max(bounds[0], bounds[1])];
2828
3056
  }
2829
3057
  var BREAK_HALF_SEPARATION = 2;
@@ -3045,46 +3273,6 @@ function measureValueAxisWidth(domain, format, theme, measure, tickCount = 5, fo
3045
3273
  return maxOf(values.map((value) => measure(fmt(value), font).width)) + 8;
3046
3274
  }
3047
3275
 
3048
- // src/core/themeGeometry.ts
3049
- function themeGeometryTokens(theme, target) {
3050
- return {
3051
- ...target === void 0 ? {} : { target },
3052
- scenario: theme.scenario,
3053
- pattern: { ...theme.pattern, hatchColor: theme.pattern.hatchColor ?? "segment" },
3054
- stroke: theme.stroke,
3055
- dash: theme.dash,
3056
- type: theme.type,
3057
- space: theme.space,
3058
- surface: theme.surface,
3059
- // Label ink and the grid dash are baked into the scene, so a switch relayouts as their siblings do.
3060
- labels: theme.labels,
3061
- valueAxis: theme.valueAxis,
3062
- // The outline and edge switches are recomputed by a repaint (repaintSeparation, decideFillEdges);
3063
- // every other mark key (marker, radius, tint, caret, bar label side) is baked into the layout.
3064
- marks: theme.marks && (({ restOutline: _r, sliceOutline: _s, othersOutline: _o, contrastEdge: _c, ...rest }) => rest)(theme.marks),
3065
- // Table sizes, pads, weights, rules and glyphs are geometry; its inks, rule ink and bar grounds are colour.
3066
- table: theme.table && (({ inks: _inks, ruleInk: _ruleInk, bar: _bar, ...rest }) => rest)(theme.table),
3067
- legend: theme.legend?.auto ?? !1,
3068
- seriesOverflow: theme.color.seriesOverflow ?? "repeatLast",
3069
- seriesCount: theme.color.series.length
3070
- };
3071
- }
3072
- function presentationInfo(geometry, target, inheritedClass, textScale = 1) {
3073
- let floors = targetFloorsPx(target), minimumScale = 0.9;
3074
- for (let node of geometry.scene) {
3075
- if (node.t !== "text" || node.lines.every((line) => line.length === 0) || node.opacity === 0) continue;
3076
- let tableHead = TABLE_HEAD_PARTS.has(node.part ?? "");
3077
- minimumScale = Math.max(minimumScale, (tableHead ? tableHeadFloorPx(target) : floors[node.typeRole ?? "label"]) / node.font.size);
3078
- }
3079
- return {
3080
- target,
3081
- typeClass: geometry.type === "kpi" || geometry.type === "bullet" ? "M" : inheritedClass ?? typeWidthClass(geometry.size.width),
3082
- naturalSize: naturalOutputSize(target, geometry.size),
3083
- minDisplayWidth: geometry.size.width * minimumScale,
3084
- ...textScale === 1 ? {} : { textScale }
3085
- };
3086
- }
3087
-
3088
3276
  // src/core/calendarData.ts
3089
3277
  function withCalendarLabels(data, language, label) {
3090
3278
  let categories = data?.categories;
@@ -3151,9 +3339,9 @@ function registerChart(def) {
3151
3339
  theme: { preset: typeof ref == "string" ? ref : ref?.preset ?? DEFAULT_PRESET, overrides: theme }
3152
3340
  })))), prepared = def.defaultStrings ? withChartDefaultStrings(localized, def.defaultStrings(localized)) : localized;
3153
3341
  def.type === "grid" && (data = inheritGridTarget(data, target, textScale, textSize)), def.categoryLabels && (data = withCalendarLabels(data, authored?.locale?.language, def.categoryLabels));
3154
- let origins = /* @__PURE__ */ new WeakMap(), legendLayout = prepareLegendLayout(def, data, origins), noteLayouts = /* @__PURE__ */ new WeakMap(), noteRuns = [], layoutBody = ((options) => {
3342
+ let origins = /* @__PURE__ */ new WeakMap(), layoutDefinition = def.prepareLayout ? { ...def, layout: def.prepareLayout(data, prepared) } : def, legendLayout = prepareLegendLayout(layoutDefinition, data, origins), noteLayouts = /* @__PURE__ */ new WeakMap(), noteRuns = [], layoutBody = ((options) => {
3155
3343
  let sizeTarget = options?.size === void 0 && ["kpi", "bullet", "sparkline"].includes(def.type) && (target === "slide" || target === "print") ? "report" : target, resolved = panelTypeClass(prepared) !== void 0 && options?.size !== void 0 ? { sizePx: resolveSize(options.size, target), fixed: { width: !0, height: !0 } } : resolveTargetSize(sizeTarget, options?.size), frame = options, current = { ...prepared };
3156
- for (let key of ["size", "mode", "belowMinimum", FORCE_COMPACT, WIDTH_PROBE, FIXED_SIZE_PROBE])
3344
+ for (let key of ["size", "mode", "belowMinimum", FORCE_COMPACT, WIDTH_PROBE, FIXED_SIZE_PROBE, PLAN_ONLY])
3157
3345
  frame && Object.hasOwn(frame, key) ? current[key] = frame[key] : delete current[key];
3158
3346
  options = {
3159
3347
  ...current,
@@ -3196,7 +3384,7 @@ function registerChart(def) {
3196
3384
  let origin = origins.get(geo2) ?? geo2, variants = noteLayouts.get(origin);
3197
3385
  variants || noteLayouts.set(origin, variants = /* @__PURE__ */ new Map());
3198
3386
  let noteKey = JSON.stringify([...noted]), noteRun = variants.get(noteKey);
3199
- noteRun || (noteRun = prepareLegendLayout(def, data, origins), variants.set(noteKey, noteRun), noteRuns.push(noteRun)), next = noteRun(noteOptions);
3387
+ noteRun || (noteRun = prepareLegendLayout(layoutDefinition, data, origins), variants.set(noteKey, noteRun), noteRuns.push(noteRun)), next = noteRun(noteOptions);
3200
3388
  }
3201
3389
  let moved2 = !staticFrame.pinned && (geo2.mode === "compact" || !resolved.fixed.height) && next.refused && next.warnings[0]?.code === "size-below-floor" ? withNoteInA11y(noteOptions) : void 0, movedLine = moved2 ? hiddenNoteLine(noteOptions) : void 0, inA11y = moved2 && movedLine ? { ...moved2, footnotes: authoredNotes(moved2).filter((note) => note !== movedLine) } : moved2;
3202
3390
  if (inA11y) {
@@ -3215,12 +3403,13 @@ function registerChart(def) {
3215
3403
  }
3216
3404
  return { geo: geo2, noteRefused: !1 };
3217
3405
  }, sClassMinimum = (minimum, size) => {
3218
- if (nested || isWidthProbe(def.type, options) || minimum.aspect !== "content" || size.width < 720 || minimum.minWidth >= 720) return minimum;
3406
+ if (nested || isWidthProbe(def.type, options) || minimum.aspect !== "content" || classStepWidth(size.width) < 720 || minimum.minWidth >= 720) return minimum;
3219
3407
  let at = Math.max(Math.ceil(minimum.minWidth), CARD_MIN_WIDTH), probe;
3220
3408
  try {
3221
3409
  probe = legendLayout(withoutForcedCompact({
3222
3410
  ...layoutOptions,
3223
3411
  [FIXED_SIZE_PROBE]: !0,
3412
+ ...def.type === "table" || def.type === "dimswitch" ? { [PLAN_ONLY]: !0 } : {},
3224
3413
  ...def.type === "gantt" && !resolved.fixed.height ? { [ACCEPTANCE_PROBE]: !0 } : {},
3225
3414
  size: resolved.fixed.height ? { width: at, height: Math.max(size.height, minimum.minHeight) } : { width: at }
3226
3415
  }));
@@ -3240,7 +3429,7 @@ function registerChart(def) {
3240
3429
  if (!isRefused(compact)) return compact;
3241
3430
  let full = named(withoutForcedCompact(runOptions), probeHeight).geo;
3242
3431
  return isRefused(full) && compact.warnings[0]?.code === "size-below-floor" ? compact : full;
3243
- }, probeAt = (width, height) => hostView({ ...layoutOptions, size: { width, height } });
3432
+ }, probeAt = (width, height) => hostView({ ...layoutOptions, size: { width, height }, ...def.type === "table" || def.type === "dimswitch" ? { [PLAN_ONLY]: !0 } : {} });
3244
3433
  for (let pass = 0; pass < 6; pass++) {
3245
3434
  let width = Math.max(geo.size.width, floor.minWidth), probe = probeAt(width, Math.max(geo.size.height, floor.minHeight));
3246
3435
  if (!isRefused(probe) && floor.minHeight <= geo.size.height) return sizeRefusal(def.type, def.title, geo.size, sClassMinimum(floor, geo.size));
@@ -3249,7 +3438,8 @@ function registerChart(def) {
3249
3438
  ...layoutOptions,
3250
3439
  size: { width, height },
3251
3440
  [FIXED_SIZE_PROBE]: def.type !== "gantt",
3252
- [ACCEPTANCE_PROBE]: !0
3441
+ [ACCEPTANCE_PROBE]: !0,
3442
+ ...def.type === "table" || def.type === "dimswitch" ? { [PLAN_ONLY]: !0 } : {}
3253
3443
  }, def.type === "gantt"));
3254
3444
  for (!resolved.fixed.height && accepts(low + 1) && (high = low + 1); high - low > 1; ) {
3255
3445
  let mid = Math.floor((low + high) / 2);
@@ -3286,9 +3476,12 @@ function registerChart(def) {
3286
3476
  let probe = named(withoutForcedCompact({ ...layoutOptions, size: { width: geo.size.width, height: natural } })), need = probe.geo.refused ? probe.geo.sizing : void 0;
3287
3477
  probe.noteRefused && probe.geo.warnings[0]?.code === "size-below-floor" && need && need.minWidth <= geo.size.width && need.minHeight > natural && (geo.sizing = { ...geo.sizing, naturalHeight: need.minHeight });
3288
3478
  }
3289
- geo.sizing && (geo.sizing = sClassMinimum(geo.sizing, geo.size)), fillEdges(geo, theme), geo.scene = groundEdges(geo.scene, () => theme, !1), labelsOnFills(geo), referenceLineClearance(geo), withoutOrphanAnnotationMarks(geo), withoutRepeatedAxisBreaks(geo), geo.scene = casingUnderFills(geo.scene), geo.scene = stampHatchLook(geo.scene, options?.hatchStrength);
3290
- let bandPairs = marksOnBands(geo.scene);
3291
- bandPairs.length > 0 && (geo.paintWarningRules = [...geo.paintWarningRules ?? [], { kind: "mark-lost-on-band", pairs: bandPairs, before: geo.warnings.length }], pushAll(geo.warnings, markLostOnBandWarnings(theme, bandPairs))), options?.a11y?.title !== void 0 && (geo.a11y.includeTitle = options.a11y.title);
3479
+ if (geo.sizing && (geo.sizing = sClassMinimum(geo.sizing, geo.size)), !options[PLAN_ONLY]) {
3480
+ fillEdges(geo, theme), geo.scene = groundEdges(geo.scene, () => theme, !1), labelsOnFills(geo), referenceLineClearance(geo), withoutOrphanAnnotationMarks(geo), withoutRepeatedAxisBreaks(geo), geo.scene = casingUnderFills(geo.scene), geo.scene = stampHatchLook(geo.scene, options?.hatchStrength);
3481
+ let bandPairs = marksOnBands(geo.scene);
3482
+ bandPairs.length > 0 && (geo.paintWarningRules = [...geo.paintWarningRules ?? [], { kind: "mark-lost-on-band", pairs: bandPairs, before: geo.warnings.length }], pushAll(geo.warnings, markLostOnBandWarnings(theme, bandPairs)));
3483
+ }
3484
+ options?.a11y?.title !== void 0 && (geo.a11y.includeTitle = options.a11y.title);
3292
3485
  let frameWarnings = geo.frame.warnings ?? [];
3293
3486
  for (let warning of frameWarnings)
3294
3487
  geo.warnings.includes(warning) || geo.warnings.push(warning);
@@ -3308,7 +3501,7 @@ function registerChart(def) {
3308
3501
  severity: "warn",
3309
3502
  message: `${truncated.length} placed label(s) omit text; the reading lists their full text in labelsTruncated`,
3310
3503
  suggest: "give the labels more room or shorten their text"
3311
- }), pushAll(geo.warnings, unmatchedIdWarnings(geo, data, def.type === "sankey" ? void 0 : options?.highlight, pins, nested)), geo.presentation = presentationInfo(geo, target, panelTypeClass(options), textScale), pushAll(geo.warnings, removedNames), geo;
3504
+ }), pushAll(geo.warnings, unmatchedIdWarnings(geo, data, def.type === "sankey" ? void 0 : options?.highlight, pins, options?.labelOffsets, nested)), options[PLAN_ONLY] || (geo.presentation = presentationInfo(geo, target, panelTypeClass(options), textScale)), pushAll(geo.warnings, removedNames), geo;
3312
3505
  }), layout2 = ((options) => withSmallValues(prepared.smallValues, () => layoutBody(options)));
3313
3506
  return layout2.finish = () => {
3314
3507
  legendLayout.finish();
@@ -3338,6 +3531,11 @@ function registerChart(def) {
3338
3531
  if (def.namesMustPrint === !0 && !full.refused && full.mode !== "compact" && lostCategoryNames(full).length > 0) {
3339
3532
  let compact2 = compactFallbackApplies(def, options, data) ? layoutOnce({ ...options, [FORCE_COMPACT]: !0 }) : full;
3340
3533
  if (compact2 !== full && !isRefused(compact2) && lostCategoryNames(compact2).length === 0) return compact2;
3534
+ let natural = full.sizing?.naturalHeight;
3535
+ if (!resolveTargetSize(options?.target ?? DEFAULT_TARGET, options?.size).fixed.height && natural !== void 0 && natural > full.size.height && !options?.[FIXED_SIZE_PROBE]) {
3536
+ let taller = layoutOnce({ ...options, size: { width: full.size.width, height: Math.ceil(natural) } });
3537
+ if (!isRefused(taller) && lostCategoryNames(taller).length === 0) return taller;
3538
+ }
3341
3539
  let wider = widerForNames(full, options, layoutOnce);
3342
3540
  return wider || hiddenLabelCollision(def.title, full, new Map(lostCategoryNames(full).map((label) => [label.id, label.text])));
3343
3541
  }
@@ -3382,7 +3580,7 @@ function registerChart(def) {
3382
3580
  run2.finish();
3383
3581
  }
3384
3582
  }, probes = /* @__PURE__ */ new Map(), run = ((runOptions) => withLayoutMemo(() => {
3385
- let size = runOptions?.size, key = `${typeof size == "object" ? `${size?.width}x${size?.height}:${size?.unit}` : String(size)}:${String(runOptions?.mode)}:${runOptions?.belowMinimum}:${runOptions?.[FULL_LAYOUT_PROBE]}:${runOptions?.[FORCE_COMPACT]}:${runOptions?.[WIDTH_PROBE]}:${runOptions?.[FIXED_SIZE_PROBE]}`, cached = memo.active ? probes.get(key) : void 0;
3583
+ let size = runOptions?.size, key = `${typeof size == "object" ? `${size?.width}x${size?.height}:${size?.unit}` : String(size)}:${String(runOptions?.mode)}:${runOptions?.belowMinimum}:${runOptions?.[FULL_LAYOUT_PROBE]}:${runOptions?.[FORCE_COMPACT]}:${runOptions?.[WIDTH_PROBE]}:${runOptions?.[FIXED_SIZE_PROBE]}:${runOptions?.[PLAN_ONLY]}`, cached = memo.active ? probes.get(key) : void 0;
3386
3584
  if (cached !== void 0) return cached;
3387
3585
  let fullProbe2 = runOptions?.[FULL_LAYOUT_PROBE] === !0, callOptions = { ...runOptions, [CARD_HEIGHT_MEMO]: memo }, geo = layoutPlain(labelled, callOptions, layoutOnce, fullProbe2), lost = !fullProbe2 && narrowShareApplies(def, runOptions) ? hiddenForSpace(geo) : 0;
3388
3586
  if (lost > 0) {
@@ -3401,8 +3599,8 @@ function registerChart(def) {
3401
3599
  run.probe = (at) => run({ ...at, [FULL_LAYOUT_PROBE]: !0 }), run.finish = () => {
3402
3600
  probes.clear(), layoutOnce.finish(), borrowed || (memo.active = !1, memo.heights.clear(), memo.references = void 0);
3403
3601
  };
3404
- let variable = /* @__PURE__ */ new Set(["size", "mode", "belowMinimum", LAYOUT_CALL, FULL_LAYOUT_PROBE, FORCE_COMPACT, WIDTH_PROBE, ACCEPTANCE_PROBE]);
3405
- return run.accepts = (d, at) => d === data && [.../* @__PURE__ */ new Set([...Reflect.ownKeys(options ?? {}), ...Reflect.ownKeys(at ?? {})])].every((key) => variable.has(key) || options?.[key] === at?.[key]), run;
3602
+ let variable = /* @__PURE__ */ new Set(["size", "mode", "belowMinimum", LAYOUT_CALL, FULL_LAYOUT_PROBE, FORCE_COMPACT, WIDTH_PROBE, ACCEPTANCE_PROBE, PLAN_ONLY]);
3603
+ return (def.type === "table" || def.type === "dimswitch") && variable.add(FIXED_SIZE_PROBE), run.accepts = (d, at) => d === data && [.../* @__PURE__ */ new Set([...Reflect.ownKeys(options ?? {}), ...Reflect.ownKeys(at ?? {})])].every((key) => variable.has(key) || options?.[key] === at?.[key]), run;
3406
3604
  }, layout = (data, options) => {
3407
3605
  let prepared = options?.[LAYOUT_CALL];
3408
3606
  if (prepared?.accepts(data, options)) return prepared(options);
@@ -3421,7 +3619,7 @@ function registerChart(def) {
3421
3619
  return description !== void 0 && !geo.refused && (geo.a11y.desc = description, geo.story && (geo.story.desc = description)), geo;
3422
3620
  });
3423
3621
  };
3424
- registry.set(def.type, { ...def, sizing, layout: layoutWithFooter, [LAYOUT_CALL]: createLayout });
3622
+ registry.set(def.type, { ...def, sizing, layout: def.finishLayout?.(layoutWithFooter) ?? layoutWithFooter, [LAYOUT_CALL]: createLayout });
3425
3623
  for (let alias of aliases)
3426
3624
  aliasIndex.set(alias, def.type);
3427
3625
  registryRevision += 1;
@@ -3460,7 +3658,7 @@ function inheritGridTarget(data, target, textScale, textSize) {
3460
3658
  if (entry.type === "text" || entry.type === "legend") return entry;
3461
3659
  let { textScale: _own, textSize: ownSize, ...options } = entry.options ?? {};
3462
3660
  if (ownSize !== void 0 && ownSize !== textSize)
3463
- throw new NormalizeError("grid-panel-text-size", "options.textSize", "a grid panel cannot set its own textSize", "set textSize once on the grid");
3661
+ throw new NormalizeError("grid-panel-text-size", "options.textSize", "a grid panel cannot set its own textSize", "set textSize once on the grid", void 0, ["options", "textSize"]);
3464
3662
  return { ...entry, options: { ...options, target, ...textSize !== void 0 ? { textSize } : textScale === 1 ? {} : { textScale } } };
3465
3663
  }, grid = data;
3466
3664
  return {
@@ -3487,23 +3685,28 @@ function hiddenLabelCollision(title, geo, owed, noteMissing = !1) {
3487
3685
  suggest: "Shorten or move the named labels, or remove the colliding element."
3488
3686
  }] };
3489
3687
  }
3490
- function unmatchedIdWarnings(geo, data, highlight, pins, nested) {
3688
+ function unmatchedIdWarnings(geo, data, highlight, pins, offsets, nested) {
3491
3689
  let list = (ids) => {
3492
3690
  let all = [...new Set(ids)];
3493
3691
  return all.length > 20 ? `${all.slice(0, 20).join(", ")} and ${all.length - 20} more` : all.join(", ") || "none";
3494
3692
  }, warnings = [], asked = typeof highlight == "string" ? [highlight] : Array.isArray(highlight) ? highlight.filter((id) => typeof id == "string") : [];
3495
3693
  if (asked.length > 0 && !geo.warnings.some((warning) => warning.code === "highlight-unknown-id")) {
3496
- let owned = geo.scene.flatMap((node) => [
3694
+ let seriesOnly = geo.type === "line" || geo.type === "slope", dataSeries = seriesOnly ? new Set(geo.marks.series.map((series) => series.seriesId)) : void 0, owned = geo.scene.flatMap((node) => dataSeries ? node.owner?.seriesId !== void 0 && dataSeries.has(node.owner.seriesId) ? [node.owner.seriesId] : [] : [
3497
3695
  ...node.id?.includes("/") ? [node.id.slice(0, node.id.indexOf("/"))] : [],
3498
3696
  ...Object.values(node.owner ?? {}).filter((id) => typeof id == "string")
3499
3697
  ]), points = data?.points;
3500
3698
  Array.isArray(points) && pushAll(owned, points.map((point) => point?.group).filter((id) => typeof id == "string"));
3501
- let known = new Set(owned), unknown = asked.filter((id) => !known.has(id));
3699
+ let known = new Set(owned);
3700
+ if (geo.type === "line") {
3701
+ let series = geo.marks.series;
3702
+ for (let entry of series) for (let point of entry.points) point.highlighted && known.add(point.categoryId);
3703
+ }
3704
+ let unknown = [...new Set(asked.filter((id) => !known.has(id)))];
3502
3705
  unknown.length > 0 && warnings.push({
3503
3706
  code: "highlight-unknown-id",
3504
3707
  severity: "warn",
3505
- message: `highlight names ${unknown.map((id) => `'${id}'`).join(", ")}, which no mark of this chart carries, so nothing is highlighted for it; ids here: ${list(owned)}`,
3506
- suggest: "Name a series, category, point or row id of this chart.",
3708
+ message: seriesOnly ? `highlight names ${unknown.map((id) => `'${id}'`).join(", ")}, which cannot highlight a drawn data series${geo.type === "line" ? " or eligible point" : ""} of this chart; series ids here: ${list(owned)}${geo.type === "line" ? ". Category emphasis works only on a plain line with one data series and no fan." : ""}` : `highlight names ${unknown.map((id) => `'${id}'`).join(", ")}, which no mark of this chart carries, so nothing is highlighted for it; ids here: ${list(owned)}`,
3709
+ suggest: seriesOnly ? "Name a drawn data series id of this chart, or remove the highlight." : "Name a series, category, point or row id of this chart.",
3507
3710
  // A grid panel's field is relative to the panel; the grid names the panel in the message.
3508
3711
  ...nested ? {} : { field: ["options", "highlight"] }
3509
3712
  });
@@ -3520,6 +3723,18 @@ function unmatchedIdWarnings(geo, data, highlight, pins, nested) {
3520
3723
  ...nested ? {} : { field: ["options", "labelPlacements", id] }
3521
3724
  });
3522
3725
  }
3726
+ let moved2 = Object.keys(offsets ?? {});
3727
+ if (moved2.length > 0) {
3728
+ let labels = [...geo.labels.map((label) => label.id), ...geo.debug.decisions.map((decision) => decision.labelId)], own = geo.type === "grid" ? labels.filter((id) => !id.includes("/")) : labels, known = new Set(own);
3729
+ for (let id of moved2.filter((key) => !known.has(key)))
3730
+ warnings.push({
3731
+ code: "label-offset-unknown",
3732
+ severity: "warn",
3733
+ message: `labelOffsets names label '${id}', which this chart does not draw, so the offset does nothing; label ids: ${list(own)}`,
3734
+ suggest: geo.type === "grid" ? "Set labelOffsets in the options of the panel that draws the label." : "Use a label id from the list, or remove the offset.",
3735
+ ...nested ? {} : { field: ["options", "labelOffsets", id] }
3736
+ });
3737
+ }
3523
3738
  return warnings;
3524
3739
  }
3525
3740
  function noPlottedValuesWarning(data) {
@@ -3600,16 +3815,31 @@ var unsupported = [
3600
3815
  ];
3601
3816
 
3602
3817
  export {
3603
- themeGeometryTokens,
3604
- presentationInfo,
3818
+ withPlanInputs,
3819
+ memoExactInputKey,
3820
+ requestMemo,
3821
+ ownPlanInput,
3822
+ optionKey,
3823
+ layoutKey,
3824
+ tableTextMeasure,
3825
+ PLAN_ONLY,
3826
+ deferLayout,
3827
+ isPlanned,
3828
+ plannedCutCount,
3829
+ materializeLayout,
3830
+ copyPlannedValue,
3831
+ contentKey,
3832
+ repeatedResult,
3605
3833
  caseInsensitiveValue,
3606
3834
  inputConversion,
3607
3835
  replaceInputValue,
3608
3836
  crowdedTailCut,
3837
+ ITEM_BUDGET,
3609
3838
  COMBO_LIMIT,
3610
3839
  checkPointBudget,
3611
3840
  typeDocLints,
3612
3841
  themeForDensity,
3842
+ omittedCompactNotes,
3613
3843
  AUTO_LEGEND,
3614
3844
  isAutomaticLegend,
3615
3845
  normalizedName,
@@ -3688,6 +3918,7 @@ export {
3688
3918
  categoryCutLint,
3689
3919
  rotatedClaimRect,
3690
3920
  rotatedLeftOverhang,
3921
+ yieldToRotatedName,
3691
3922
  verticalNameRect,
3692
3923
  tallestContentHeight,
3693
3924
  rowDrivenHeight,
@@ -3732,11 +3963,16 @@ export {
3732
3963
  FULL_LAYOUT_PROBE,
3733
3964
  VERIFY_ADVICE,
3734
3965
  FORCE_COMPACT,
3966
+ NARROW_FORM,
3967
+ NARROW_FORM_TYPES,
3968
+ sideKeyOff,
3969
+ sideKeyGivesWay,
3735
3970
  WIDTH_PROBE,
3736
3971
  FIXED_SIZE_PROBE,
3737
3972
  ACCEPTANCE_PROBE,
3738
3973
  isWidthProbe,
3739
3974
  compactFallbackApplies,
3740
3975
  CARD_HEIGHT_MEMO,
3741
- cardReferenceHeight
3976
+ cardReferenceHeight,
3977
+ sizeGate
3742
3978
  };