boardplot 0.55.0 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/CHANGELOG.md +153 -0
  2. package/README.md +3 -3
  3. package/dist/{ReaderBox-3FFPHWSI.js → ReaderBox-GCIITQCX.js} +5 -5
  4. package/dist/{annotateEngine-ET4DM2OK.js → annotateEngine-JMZI6QEG.js} +1 -1
  5. package/dist/build-identity.json +3 -3
  6. package/dist/{chunk-RO2PSSAI.js → chunk-26WNBTWB.js} +21 -5
  7. package/dist/{chunk-3AJY353W.js → chunk-2AJWRVZ2.js} +4 -3
  8. package/dist/{chunk-NVGAEQ6M.js → chunk-2BHLRHF2.js} +2 -2
  9. package/dist/{chunk-CZ3WCG55.js → chunk-2HD5RY2U.js} +11 -3
  10. package/dist/{chunk-HR2BKLS3.js → chunk-2I76VFMZ.js} +186 -241
  11. package/dist/{chunk-3B3CFJ2H.js → chunk-2KCK63DD.js} +2 -2
  12. package/dist/{chunk-GDZI5ZJ7.js → chunk-2WTD3GCR.js} +11 -3
  13. package/dist/{chunk-EBC5TMI2.js → chunk-2X6XY4K4.js} +27 -10
  14. package/dist/{chunk-MJMOKPTF.js → chunk-3DUGZ7ML.js} +196 -138
  15. package/dist/{chunk-N5TZL74Y.js → chunk-3LNVEE5Z.js} +1 -1
  16. package/dist/{chunk-DB2JKPOX.js → chunk-43PCSBVQ.js} +567 -14
  17. package/dist/{chunk-WEMUCDPK.js → chunk-4JGBCBDZ.js} +1 -1
  18. package/dist/{chunk-7UPZPFHQ.js → chunk-4JNHF6JW.js} +12 -12
  19. package/dist/{chunk-4X3HNETE.js → chunk-4RN4OM6I.js} +3 -3
  20. package/dist/{chunk-Z7NHFNH3.js → chunk-4U2WSW6F.js} +107 -26
  21. package/dist/{chunk-6D4EO3S7.js → chunk-53OEKS4L.js} +5 -3
  22. package/dist/{chunk-E44W4EEG.js → chunk-54HEIM2A.js} +2 -2
  23. package/dist/{chunk-CLGUFVHM.js → chunk-5H4HFRDO.js} +6 -6
  24. package/dist/{chunk-SFG7NG23.js → chunk-5HTGSB6Y.js} +3 -3
  25. package/dist/{chunk-WXJ5MHLH.js → chunk-5JTRCSBN.js} +1 -1
  26. package/dist/{chunk-4Y7BA2NW.js → chunk-5P4MXWKP.js} +4 -4
  27. package/dist/{chunk-MLW72KWN.js → chunk-5RHP7YTL.js} +5 -5
  28. package/dist/{chunk-AB35GVPG.js → chunk-5TUDYKNL.js} +41 -31
  29. package/dist/{chunk-HZUAEMN5.js → chunk-5WSIH4SR.js} +1 -1
  30. package/dist/{chunk-YTCIGJUU.js → chunk-62JZL6FW.js} +45 -37
  31. package/dist/{chunk-S7NRL66K.js → chunk-6EE6XEMA.js} +4 -4
  32. package/dist/chunk-6JXBLQJ2.js +32 -0
  33. package/dist/{chunk-BGJRCG7N.js → chunk-6KHRMK3I.js} +46 -26
  34. package/dist/{chunk-3OZRODC4.js → chunk-6LQKU6YN.js} +4 -4
  35. package/dist/chunk-6VU2XI3W.js +89 -0
  36. package/dist/{chunk-E6HDUEGK.js → chunk-6WJOHZPW.js} +5 -5
  37. package/dist/{chunk-XJQXFVXY.js → chunk-6XU5XGYV.js} +7 -8
  38. package/dist/{chunk-QOWE55RR.js → chunk-6ZN2XJFI.js} +11 -6
  39. package/dist/{chunk-4WT3T5SH.js → chunk-72OJBDRB.js} +205 -60
  40. package/dist/{chunk-GFIT3FRE.js → chunk-73O6AOAA.js} +63 -47
  41. package/dist/{chunk-DEYAI662.js → chunk-76UL4CT4.js} +60 -24
  42. package/dist/chunk-7BQK2UDV.js +13 -0
  43. package/dist/{chunk-NHYKSPL4.js → chunk-7EQU2TUN.js} +304 -119
  44. package/dist/{chunk-FS6ZE5TG.js → chunk-7FAO4ICF.js} +2 -2
  45. package/dist/{chunk-LSF76AS3.js → chunk-7MYJUJZV.js} +6 -2
  46. package/dist/{chunk-D2QMNHCC.js → chunk-7P7D6WXR.js} +11 -2
  47. package/dist/{chunk-GCSCHK5Y.js → chunk-A33MFWHW.js} +3 -3
  48. package/dist/{chunk-3C24WWUQ.js → chunk-A6XCVOC5.js} +1 -1
  49. package/dist/{chunk-O7DVW3IE.js → chunk-AFA32LHN.js} +134 -37
  50. package/dist/{chunk-WALYNKBN.js → chunk-AFGQXMKT.js} +264 -88
  51. package/dist/{chunk-ZTMZOKVC.js → chunk-AKJO6N4K.js} +3 -3
  52. package/dist/{chunk-P6TA7M3G.js → chunk-ANNQJWDX.js} +11 -11
  53. package/dist/{chunk-KFGZMHIB.js → chunk-AOIZJ7GR.js} +7 -7
  54. package/dist/chunk-B5A7X2BA.js +44 -0
  55. package/dist/{chunk-HGT3UKDW.js → chunk-BDCKHLUB.js} +16 -16
  56. package/dist/{chunk-NUCYUKVH.js → chunk-BFDPY7JM.js} +10 -3
  57. package/dist/{chunk-BK6P6KMW.js → chunk-BM2A3IGQ.js} +1 -1
  58. package/dist/{chunk-H3AEYPRP.js → chunk-BO5EJBLH.js} +249 -129
  59. package/dist/chunk-BQIADGJB.js +23 -0
  60. package/dist/{chunk-F6CVYNDY.js → chunk-BY5JGQFZ.js} +24 -7
  61. package/dist/{chunk-WDIVAU5U.js → chunk-C5SQEYTQ.js} +78 -57
  62. package/dist/{chunk-NCZWLV7T.js → chunk-CEMXGMQN.js} +2 -2
  63. package/dist/{chunk-6H3OSHEY.js → chunk-CIDOL4FO.js} +5 -5
  64. package/dist/{chunk-WAPCCJUB.js → chunk-CT4RFZO4.js} +6 -6
  65. package/dist/{chunk-7Q37C6GZ.js → chunk-CV3NC75L.js} +1 -1
  66. package/dist/{chunk-GDVR3XHT.js → chunk-D3PQAVFW.js} +23 -13
  67. package/dist/{chunk-GMJFCBR6.js → chunk-D5G67OER.js} +1 -1
  68. package/dist/{chunk-BFFPYT3Y.js → chunk-D5RAVZ5C.js} +6 -7
  69. package/dist/{chunk-FQF7GSJK.js → chunk-DJBMA4FW.js} +4 -4
  70. package/dist/{chunk-4DZFR52I.js → chunk-DPUCT567.js} +2 -2
  71. package/dist/{chunk-ZHFUMVW7.js → chunk-DYSEZVIJ.js} +18 -2
  72. package/dist/{chunk-SA46CNMS.js → chunk-ED7GLWTF.js} +4 -1
  73. package/dist/{chunk-YXM4W3TN.js → chunk-EDBUVDRI.js} +118 -68
  74. package/dist/{chunk-JBMWRXDS.js → chunk-EEBMK6T6.js} +6 -6
  75. package/dist/{chunk-CYKIX3IQ.js → chunk-EEL2N4Y6.js} +7 -8
  76. package/dist/{chunk-PYV6ZIR6.js → chunk-EFKFZNQC.js} +24 -18
  77. package/dist/{chunk-IOKWBUQP.js → chunk-EHNGPUTO.js} +6 -6
  78. package/dist/{chunk-ZBSNF5F7.js → chunk-EHQLLZCQ.js} +49 -22
  79. package/dist/{chunk-ONKSGT2M.js → chunk-EWR6WVOV.js} +6 -6
  80. package/dist/{chunk-MTRV3BJL.js → chunk-EY4OA4OF.js} +1005 -666
  81. package/dist/{chunk-Y3L655X6.js → chunk-F4JAGDPD.js} +6 -6
  82. package/dist/{chunk-LRCO4G7C.js → chunk-FAFUMSPR.js} +35 -26
  83. package/dist/{chunk-63L35UCI.js → chunk-FERP4WS3.js} +19 -9
  84. package/dist/{chunk-N5HN5QGH.js → chunk-FF7MV4D4.js} +1 -1
  85. package/dist/{chunk-G63WXSQP.js → chunk-FJKFYQ5I.js} +23 -18
  86. package/dist/chunk-FL3FQ2YA.js +27 -0
  87. package/dist/{chunk-YOOHNQ3L.js → chunk-FX5VZK5F.js} +4 -0
  88. package/dist/{chunk-37A6CLR5.js → chunk-G5BUGYIL.js} +70 -18
  89. package/dist/{chunk-JU7S52HI.js → chunk-G5CELEUR.js} +6 -6
  90. package/dist/{chunk-EW47LNWH.js → chunk-GADI2DU7.js} +11 -10
  91. package/dist/{chunk-F6OLHND5.js → chunk-GAFEN3H7.js} +2 -2
  92. package/dist/{chunk-EXDMYV5W.js → chunk-GC4WOLV3.js} +1 -1
  93. package/dist/{chunk-WFSOKGGA.js → chunk-GHFTKVJN.js} +1 -1
  94. package/dist/chunk-GKDUIDU6.js +138 -0
  95. package/dist/{chunk-LA5OYJ5P.js → chunk-GKQLKUMF.js} +188 -84
  96. package/dist/{chunk-LLDKKEUD.js → chunk-GS5UG6QD.js} +1 -1
  97. package/dist/{chunk-BWVNCLUS.js → chunk-H2POQ4LB.js} +5 -5
  98. package/dist/{chunk-WSJDLZSZ.js → chunk-H3EWFSWI.js} +97 -53
  99. package/dist/{chunk-XPOMQWXY.js → chunk-H6EJ63QN.js} +20 -18
  100. package/dist/{chunk-Q3E74U2W.js → chunk-HB3TH7GY.js} +3 -3
  101. package/dist/{chunk-MLGEBFEX.js → chunk-HC6WHTBX.js} +2 -2
  102. package/dist/{chunk-X7XTIM6U.js → chunk-HDSHS2QZ.js} +47 -32
  103. package/dist/{chunk-QBJDHFJJ.js → chunk-HFFKN7PA.js} +11 -6
  104. package/dist/{chunk-K5S3K6QK.js → chunk-HGPFEG2L.js} +7 -8
  105. package/dist/{chunk-7Z73MM35.js → chunk-HVX2E26J.js} +46 -26
  106. package/dist/{chunk-KAYBRD4F.js → chunk-I3DLERI7.js} +2 -2
  107. package/dist/{chunk-SPSGUFTI.js → chunk-I4NUYVP5.js} +1 -1
  108. package/dist/{chunk-OHGEDG46.js → chunk-I5ZADE2U.js} +1 -1
  109. package/dist/{chunk-CPGASWNN.js → chunk-I65OLJ2X.js} +1 -1
  110. package/dist/{chunk-LAVVML3X.js → chunk-I6QGYRY4.js} +3 -3
  111. package/dist/{chunk-N7N5NIAU.js → chunk-I7KDPCC7.js} +3 -3
  112. package/dist/{chunk-UF3HSFAE.js → chunk-IFURKTOL.js} +3 -3
  113. package/dist/{chunk-Y54LU4CU.js → chunk-IPWUBZ4P.js} +1 -1
  114. package/dist/{chunk-IQDMZ33D.js → chunk-IRXTNSZL.js} +10 -10
  115. package/dist/{chunk-GD5TYS5R.js → chunk-IUVJVMKS.js} +13 -13
  116. package/dist/{chunk-E5OEWMNX.js → chunk-IVQT2E3Y.js} +66 -36
  117. package/dist/{chunk-7DAH2E4T.js → chunk-IW3YUMPI.js} +2 -2
  118. package/dist/chunk-IXM6BAM4.js +53 -0
  119. package/dist/{chunk-XVUQMZWV.js → chunk-IZRTNCJQ.js} +5 -5
  120. package/dist/{chunk-KZH2QI6S.js → chunk-J22ETKDJ.js} +2 -2
  121. package/dist/{chunk-HJRNBKIT.js → chunk-JARJP576.js} +3 -3
  122. package/dist/{chunk-4YHZSPAJ.js → chunk-JHWDTV4K.js} +5 -1
  123. package/dist/{chunk-PQYJZMCR.js → chunk-JIH52I36.js} +79 -79
  124. package/dist/{chunk-LFUJTEJO.js → chunk-JKXJWCJ5.js} +71 -36
  125. package/dist/{chunk-2BP6X5GX.js → chunk-JMOBA5ES.js} +2 -2
  126. package/dist/{chunk-2TAK2ELB.js → chunk-JMXNXLAC.js} +5 -1
  127. package/dist/{chunk-Z5V6ZM76.js → chunk-JRRSKCGG.js} +3 -3
  128. package/dist/{chunk-IVRYF7QA.js → chunk-JSA3ESEJ.js} +1 -1
  129. package/dist/{chunk-NOCIN2EM.js → chunk-K6Y4HBK7.js} +32 -32
  130. package/dist/{chunk-WQT6HIIY.js → chunk-KAAB2DIV.js} +23 -13
  131. package/dist/{chunk-GM2HIU6C.js → chunk-KF3ZHLHQ.js} +7 -8
  132. package/dist/{chunk-3XOWXLLQ.js → chunk-KGS5Z7SL.js} +3 -3
  133. package/dist/{chunk-AIU4GZV5.js → chunk-KIXNHDXS.js} +7 -8
  134. package/dist/{chunk-ILFQ75N4.js → chunk-KJLH5EHD.js} +29 -29
  135. package/dist/{chunk-UIYXMPDW.js → chunk-KLQKHA3T.js} +6 -6
  136. package/dist/chunk-KQ2WZ6BY.js +11 -0
  137. package/dist/{chunk-5SLJGRUO.js → chunk-KUMJI5B6.js} +32 -18
  138. package/dist/{chunk-XYYRHGQI.js → chunk-L2XRUG4P.js} +7 -8
  139. package/dist/{chunk-JYBT2JNY.js → chunk-LE3LSEUL.js} +27 -2
  140. package/dist/{chunk-RTXRIZYU.js → chunk-LFX5BERN.js} +167 -70
  141. package/dist/{chunk-D7G27EYZ.js → chunk-LGMV7ZV4.js} +4 -4
  142. package/dist/{chunk-H4VDQ7OE.js → chunk-LO3AGGE3.js} +7 -8
  143. package/dist/{chunk-UNMIUILK.js → chunk-LSKCKGCF.js} +5 -1
  144. package/dist/{chunk-CVIW2MV4.js → chunk-LSR3SBJ4.js} +78 -37
  145. package/dist/{chunk-V634AXDM.js → chunk-LUZ7HXBT.js} +1 -1
  146. package/dist/{chunk-B3AXM3MT.js → chunk-LW4ZQGVL.js} +2 -2
  147. package/dist/{chunk-H3IBJQ5A.js → chunk-M2OQK2FO.js} +1 -1
  148. package/dist/{chunk-AZM4YNRE.js → chunk-M74H7QYD.js} +2 -2
  149. package/dist/{chunk-M427S3G7.js → chunk-MOQFYJ3F.js} +6 -6
  150. package/dist/{chunk-QRVIS2QB.js → chunk-MQ5EKWIG.js} +51 -9
  151. package/dist/{chunk-LHKDZAWN.js → chunk-MSYTF3DZ.js} +10 -3
  152. package/dist/{chunk-LD4LML5P.js → chunk-MTCDGSYW.js} +9 -1
  153. package/dist/{chunk-KHRAJDBM.js → chunk-NCCDEUHD.js} +1 -1
  154. package/dist/{chunk-IGVAWAOK.js → chunk-NIDH22DI.js} +31 -7
  155. package/dist/{chunk-IF2ZABAM.js → chunk-NINK4G7U.js} +2 -2
  156. package/dist/{chunk-F5V7YFKS.js → chunk-NO7GRVUU.js} +10 -8
  157. package/dist/{chunk-EBVJCVXL.js → chunk-NRYERHEI.js} +6 -6
  158. package/dist/{chunk-OJ2BPQGQ.js → chunk-O4D27FKH.js} +1 -1
  159. package/dist/{chunk-RYPJB3RO.js → chunk-O7Y6RJ4D.js} +23 -11
  160. package/dist/{chunk-2C4SYWZ3.js → chunk-OAT6FWKL.js} +7 -8
  161. package/dist/{chunk-VL7WLE4H.js → chunk-OF7FMGH5.js} +6 -6
  162. package/dist/{chunk-V3MSLNSD.js → chunk-OKM5LYYP.js} +7 -8
  163. package/dist/{chunk-YV5KYGE5.js → chunk-OQQMDSCC.js} +1 -1
  164. package/dist/{chunk-QKWBDH2L.js → chunk-OTGNVAI4.js} +2 -2
  165. package/dist/{chunk-HFRQLMKK.js → chunk-PSYPB22T.js} +3 -3
  166. package/dist/{chunk-JXBZIJCG.js → chunk-PYGEIPPH.js} +1 -1
  167. package/dist/{chunk-KZJ5VM6E.js → chunk-PZ3TQFSY.js} +15 -1
  168. package/dist/{chunk-MQYIBGZE.js → chunk-Q7VPTN5X.js} +4 -4
  169. package/dist/{chunk-XZLU3G23.js → chunk-QFIRPOXR.js} +6 -2
  170. package/dist/{chunk-QBRRJ5OR.js → chunk-QHPJ5ZKS.js} +6 -6
  171. package/dist/{chunk-R27IDIJI.js → chunk-QLWUFEKR.js} +6 -6
  172. package/dist/{chunk-COQEHO7B.js → chunk-QNLESRH6.js} +3 -1
  173. package/dist/{chunk-5UVJKB7L.js → chunk-QRZESG66.js} +40 -29
  174. package/dist/{chunk-KND4OM4B.js → chunk-QYOZ46ZQ.js} +70 -23
  175. package/dist/{chunk-HLOXWM2O.js → chunk-QZMLSK43.js} +244 -74
  176. package/dist/{chunk-NGA7ICG4.js → chunk-RDJ3ZU6O.js} +16 -13
  177. package/dist/{chunk-AF7EB6N6.js → chunk-RHBQ2Q5H.js} +104 -47
  178. package/dist/{chunk-Y2CAIAUI.js → chunk-RHVP62HI.js} +6 -6
  179. package/dist/{chunk-EAR43REB.js → chunk-RMVCKO6N.js} +16 -14
  180. package/dist/chunk-RRPTQGRU.js +47 -0
  181. package/dist/{chunk-IF76JRXT.js → chunk-S2TSXUYP.js} +6 -6
  182. package/dist/{chunk-O2KKQNGW.js → chunk-SD6ENKTO.js} +7 -2
  183. package/dist/{chunk-J5PL6JLL.js → chunk-SGDWLXUC.js} +1 -1
  184. package/dist/{chunk-75TWO5B2.js → chunk-SHAAMKN7.js} +45 -24
  185. package/dist/{chunk-NB7M4KX4.js → chunk-SHCW2TCA.js} +11 -11
  186. package/dist/{chunk-3ZAH24P6.js → chunk-SSZB3VXG.js} +19 -19
  187. package/dist/chunk-SXAZDIGM.js +84 -0
  188. package/dist/{chunk-QHRE2M6V.js → chunk-T2L5H2WW.js} +4 -3
  189. package/dist/{chunk-ODZJ4LW7.js → chunk-T3WCDDIL.js} +7 -2
  190. package/dist/{chunk-OOFSQ5AS.js → chunk-T5MBORBK.js} +1 -1
  191. package/dist/{chunk-OY2UJ4XK.js → chunk-TDDSWNGD.js} +25 -17
  192. package/dist/{chunk-5DMHMQFP.js → chunk-TGR6PRKG.js} +3 -3
  193. package/dist/{chunk-EGPXEY2K.js → chunk-TKERVBJ3.js} +7 -8
  194. package/dist/{chunk-6C64IBOG.js → chunk-TMXRTYGT.js} +10 -4
  195. package/dist/{chunk-RNIYG6PI.js → chunk-TQ5HHNM3.js} +2 -2
  196. package/dist/{chunk-LF6RTFNK.js → chunk-TWRFVW3J.js} +5 -3
  197. package/dist/{chunk-7FKY6YWU.js → chunk-TXMS7QUJ.js} +3 -3
  198. package/dist/{chunk-H5L2P2GO.js → chunk-UBXIGE2P.js} +3 -2
  199. package/dist/{chunk-7Q2WV6D2.js → chunk-UCIAHSJK.js} +2 -2
  200. package/dist/{chunk-BVYIKLQ5.js → chunk-UD6U4EF5.js} +1 -1
  201. package/dist/{chunk-4CJ6UCX4.js → chunk-UFZXZJJG.js} +5 -5
  202. package/dist/{chunk-SNQ7D5R7.js → chunk-UIHGGWES.js} +51 -11
  203. package/dist/{chunk-CKNOLGRR.js → chunk-UP4JSNDR.js} +1 -1
  204. package/dist/{chunk-3B3K7TD5.js → chunk-USFIDSTO.js} +8 -6
  205. package/dist/{chunk-PZ46S2SY.js → chunk-V3UE3TB7.js} +2 -2
  206. package/dist/{chunk-KDSYZLF6.js → chunk-V5IFI3FV.js} +8 -1
  207. package/dist/{chunk-BSATR6ZO.js → chunk-V62B23VC.js} +13 -1
  208. package/dist/{chunk-NA6WLZ66.js → chunk-VFLMBA2M.js} +68 -18
  209. package/dist/chunk-VJ7VBB6S.js +58 -0
  210. package/dist/{chunk-32IKJMUF.js → chunk-VM5CQ7CG.js} +3 -3
  211. package/dist/{chunk-6WZZADRL.js → chunk-VMGTNB6H.js} +6 -6
  212. package/dist/{chunk-WWIY6BBY.js → chunk-VT7PBGL2.js} +8 -8
  213. package/dist/{chunk-3L2VXXM4.js → chunk-VY2NPB2Q.js} +2 -2
  214. package/dist/{chunk-QEP3X3OV.js → chunk-VY67Q6CJ.js} +20 -20
  215. package/dist/{chunk-W45AR6EW.js → chunk-W5SVS4B6.js} +2 -2
  216. package/dist/{chunk-U7W7GYXP.js → chunk-W7Q6PLT4.js} +37 -37
  217. package/dist/{chunk-7GVYMGLK.js → chunk-WDAZ2MT4.js} +8 -4
  218. package/dist/{chunk-T5Y4HXYO.js → chunk-WE5WVQE4.js} +13 -1
  219. package/dist/chunk-WJQX7HBH.js +54 -0
  220. package/dist/{chunk-EC2PGJ64.js → chunk-WKWCNS6K.js} +6 -6
  221. package/dist/{chunk-2ALFFOKB.js → chunk-WSKZZ2ZB.js} +14 -14
  222. package/dist/{chunk-5SHI57XD.js → chunk-WZB6R2ZX.js} +7 -5
  223. package/dist/{chunk-MEMPP7VZ.js → chunk-X5OVVMZX.js} +1 -1
  224. package/dist/{chunk-UDKYY27B.js → chunk-XCROSJ2Z.js} +1 -1
  225. package/dist/{chunk-ROLR7HRB.js → chunk-XFCBH3TI.js} +3 -3
  226. package/dist/{chunk-XMN3Z43K.js → chunk-XJUZC53Y.js} +1 -1
  227. package/dist/chunk-XN7JDII2.js +2047 -0
  228. package/dist/{chunk-RUWNG2JC.js → chunk-XNV7VOIT.js} +4 -4
  229. package/dist/{chunk-KC52E5G4.js → chunk-XR7VOF2V.js} +10 -8
  230. package/dist/{chunk-Z2X4JQNY.js → chunk-XYUXB5VK.js} +8 -3
  231. package/dist/{chunk-SC42DPNV.js → chunk-Y5IKCXQR.js} +7 -8
  232. package/dist/{chunk-YLC42C3M.js → chunk-Y5WHM2Q5.js} +1 -1
  233. package/dist/{chunk-IGNBQT23.js → chunk-Y7Q3VEYC.js} +96 -5
  234. package/dist/{chunk-O6NJDRXE.js → chunk-YB6QGOCO.js} +2 -2
  235. package/dist/{chunk-AM2CG7VX.js → chunk-YBYV56FS.js} +3 -3
  236. package/dist/{chunk-O4WJWHCH.js → chunk-YCUNFAEE.js} +90 -42
  237. package/dist/{chunk-V7F4F6JA.js → chunk-YFI5PN5O.js} +5 -7
  238. package/dist/{chunk-SBR2RLEQ.js → chunk-YGPLUENN.js} +89 -59
  239. package/dist/chunk-YGZEG3JV.js +123 -0
  240. package/dist/{chunk-WG5CJGLU.js → chunk-YJGFT63R.js} +8 -3
  241. package/dist/{chunk-KEDNHCGB.js → chunk-YNHPPZ7S.js} +1 -1
  242. package/dist/{chunk-EZZ533MH.js → chunk-YO5UKKCQ.js} +1 -1
  243. package/dist/{chunk-SZXKV3BX.js → chunk-YTEJYLU7.js} +5 -1
  244. package/dist/{chunk-33FCWTGT.js → chunk-Z257SH5U.js} +1 -1
  245. package/dist/{chunk-O7W35PT3.js → chunk-Z2BDTZDT.js} +14 -12
  246. package/dist/{chunk-EQRFSVDD.js → chunk-ZDD3MJ2H.js} +1 -1
  247. package/dist/{chunk-APQPYM2Z.js → chunk-ZNX5J7D7.js} +3 -3
  248. package/dist/{chunk-VBVG6NEL.js → chunk-ZSYU6LIH.js} +5 -5
  249. package/dist/{chunk-2YNF6AHH.js → chunk-ZTSJ7NY6.js} +6 -2
  250. package/dist/chunk-ZV3SNRJI.js +122 -0
  251. package/dist/cli/index.js +1 -1
  252. package/dist/{core-6HMJHFRR.js → core-4M4RY7MX.js} +4 -1
  253. package/dist/{core-RPQBIOU4.js → core-4PW4MXWR.js} +4 -1
  254. package/dist/{core-MV6KGAUV.js → core-5S5CJHBG.js} +5 -1
  255. package/dist/{core-XMTKUXLO.js → core-7TTM4KRP.js} +6 -1
  256. package/dist/{core-EYJ3WJK4.js → core-7XKNJM7Y.js} +4 -1
  257. package/dist/{core-3IJPBNGC.js → core-A7HXVSKB.js} +5 -1
  258. package/dist/{core-CLLIG7ZU.js → core-AMWCZTOT.js} +2 -1
  259. package/dist/{core-2YTKFBNZ.js → core-AVA4XLQ2.js} +4 -1
  260. package/dist/{core-UAY2G7LN.js → core-BJZEJ63L.js} +5 -1
  261. package/dist/{core-PTRQPQTO.js → core-CCB3IXGD.js} +4 -1
  262. package/dist/{core-HJUGHAX7.js → core-D2OIGYC7.js} +2 -1
  263. package/dist/{core-NTWHFDM4.js → core-DMDAXVMY.js} +3 -1
  264. package/dist/{core-2SICIP63.js → core-EMSJRGSE.js} +3 -4
  265. package/dist/{core-MEC6A5DD.js → core-FCSA74RT.js} +2 -1
  266. package/dist/{core-CBEGB2NO.js → core-FTQBESDS.js} +3 -1
  267. package/dist/{core-GRWI22NS.js → core-GS4DXDDG.js} +4 -1
  268. package/dist/{core-CAL7YNFC.js → core-JDZDBTID.js} +2 -1
  269. package/dist/{core-H7KMWYP5.js → core-L3UR75IJ.js} +2 -1
  270. package/dist/{core-JMYMIH6Z.js → core-MAW4S3KA.js} +4 -1
  271. package/dist/{core-T4ZH3FAU.js → core-N2JEWJ7D.js} +3 -1
  272. package/dist/{core-T2KHX5LG.js → core-OBPTBKX6.js} +4 -1
  273. package/dist/{core-CTZLHGXE.js → core-OFPPRHYY.js} +5 -1
  274. package/dist/{core-QABTVASG.js → core-QFAVWFI3.js} +5 -1
  275. package/dist/{core-FX7HRKTF.js → core-QM34237W.js} +9 -1
  276. package/dist/{core-GQC6VDW5.js → core-SKMHEA4Y.js} +5 -1
  277. package/dist/{core-VBR253SM.js → core-T3OSZOVV.js} +2 -1
  278. package/dist/{core-7JKE7H32.js → core-UNX4ZV4M.js} +4 -1
  279. package/dist/core-VRVL6LIM.js +49 -0
  280. package/dist/{core-OIC5KJSD.js → core-VT35VDVS.js} +4 -1
  281. package/dist/{core-3647Z25D.js → core-VWYXK2R3.js} +4 -1
  282. package/dist/{core-YEFGEW3Z.js → core-WNT6ZMRO.js} +5 -1
  283. package/dist/{core-VMIBBHXI.js → core-WP73P4CW.js} +4 -1
  284. package/dist/{core-ULZ7XUQP.js → core-WPEYRK6Y.js} +2 -1
  285. package/dist/{core-PMYCLXT7.js → core-WXZJ7V7S.js} +2 -1
  286. package/dist/{core-KEB5PBCO.js → core-XKXDXALI.js} +3 -1
  287. package/dist/{core-OWCTIPHD.js → core-ZACFV6XR.js} +2 -1
  288. package/dist/{core-BMY7OL76.js → core-ZSERZGK6.js} +5 -1
  289. package/dist/{dataTable-2ZXK54TP.js → dataTable-7IO546LM.js} +11 -2
  290. package/dist/{engine-HGXSWGOI.js → engine-US3N6UCH.js} +51 -15
  291. package/dist/fixtures.js +3 -1
  292. package/dist/fonts.js +1 -1
  293. package/dist/geo/dach.js +1 -1
  294. package/dist/geo/de-states.js +1 -1
  295. package/dist/geo/eu27.js +1 -1
  296. package/dist/geo/europe.js +1 -1
  297. package/dist/geo/index.js +2 -2
  298. package/dist/geo/us-states.js +1 -1
  299. package/dist/geo/world.js +1 -1
  300. package/dist/index.js +32 -19
  301. package/dist/{main-PVT6FMGC.js → main-2UWKGUHR.js} +28 -13
  302. package/dist/mcp/server.js +24 -13
  303. package/dist/react/bar.js +6 -1
  304. package/dist/react/bartable.js +8 -1
  305. package/dist/react/box.js +6 -1
  306. package/dist/react/bullet.js +7 -1
  307. package/dist/react/butterfly.js +6 -1
  308. package/dist/react/choropleth.js +8 -1
  309. package/dist/react/cohort.js +9 -1
  310. package/dist/react/column.js +6 -1
  311. package/dist/react/combo.js +6 -1
  312. package/dist/react/creative.js +8 -1
  313. package/dist/react/diagram.js +8 -1
  314. package/dist/react/dimswitch.js +6 -1
  315. package/dist/react/dot.js +6 -1
  316. package/dist/react/export.js +27 -19
  317. package/dist/react/funnel.js +6 -1
  318. package/dist/react/gantt.js +8 -1
  319. package/dist/react/grid.js +5 -1
  320. package/dist/react/heatmap.js +7 -1
  321. package/dist/react/histogram.js +6 -1
  322. package/dist/react/index.js +94 -84
  323. package/dist/react/kpi.js +7 -1
  324. package/dist/react/likert.js +6 -1
  325. package/dist/react/line.js +6 -1
  326. package/dist/react/mekko.js +6 -1
  327. package/dist/react/pareto.js +6 -1
  328. package/dist/react/pie.js +6 -1
  329. package/dist/react/prepare.js +36 -20
  330. package/dist/react/pvm.js +7 -1
  331. package/dist/react/pyramid.js +6 -1
  332. package/dist/react/sankey.js +8 -1
  333. package/dist/react/scatter.js +6 -1
  334. package/dist/react/slope.js +7 -1
  335. package/dist/react/sparkline.js +7 -1
  336. package/dist/react/spec.js +17 -11
  337. package/dist/react/status.js +12 -1
  338. package/dist/react/story.js +5 -3
  339. package/dist/react/table.js +6 -1
  340. package/dist/react/theme.js +8 -3
  341. package/dist/react/tilemap.js +7 -1
  342. package/dist/react/treemap.js +7 -1
  343. package/dist/react/variance.js +6 -1
  344. package/dist/react/waffle.js +7 -1
  345. package/dist/react/waterfall.js +7 -1
  346. package/dist/rows.js +3 -2
  347. package/dist/{rowsModule-JTDPTWXG.js → rowsModule-DYDVHBAX.js} +2 -1
  348. package/dist/{schema-GLN7IHSH.js → schema-3KMU5737.js} +1 -1
  349. package/dist/{schema-NVMEOHAW.js → schema-4JRNXEZF.js} +3 -1
  350. package/dist/{schema-7CPGNCOL.js → schema-626QXX4G.js} +3 -1
  351. package/dist/{schema-BMD5JR3Y.js → schema-6PL46VXZ.js} +3 -1
  352. package/dist/{schema-2Q7IJ22V.js → schema-6V5K3J2V.js} +4 -1
  353. package/dist/{schema-3XLO43SX.js → schema-A2XUZUCV.js} +3 -1
  354. package/dist/{schema-XKY2EQFH.js → schema-CNJ4Y6CT.js} +3 -1
  355. package/dist/{schema-BKHQ3ZUH.js → schema-DHMMGDTI.js} +3 -1
  356. package/dist/{schema-XHKSGMUH.js → schema-F2Q6MH7W.js} +3 -1
  357. package/dist/{schema-GGG2VOY7.js → schema-FC6J6KZC.js} +5 -1
  358. package/dist/{schema-ZE7WUNFS.js → schema-FGE5YK3S.js} +3 -1
  359. package/dist/{schema-WZLWHOMY.js → schema-FSYDLMGD.js} +1 -1
  360. package/dist/{schema-FYULDJFB.js → schema-G5KSSI5W.js} +1 -1
  361. package/dist/{schema-V3BPW4LA.js → schema-GXOG4MXL.js} +1 -1
  362. package/dist/{schema-76XRTBCJ.js → schema-HEB6ZDI5.js} +3 -1
  363. package/dist/{schema-HIDW4BA4.js → schema-I44IDRGD.js} +1 -1
  364. package/dist/{schema-BOGTPL7F.js → schema-IFTIMTS3.js} +1 -1
  365. package/dist/{schema-KIJA53MB.js → schema-IUY7VYHJ.js} +3 -1
  366. package/dist/{schema-C7NVOQNV.js → schema-J4HCSD5C.js} +5 -2
  367. package/dist/{schema-WIZ2TZAT.js → schema-JCU6LTYD.js} +1 -1
  368. package/dist/{schema-5KHDHTIX.js → schema-JJWORI7D.js} +3 -1
  369. package/dist/{schema-BUTNGYTT.js → schema-K4V4PYBO.js} +3 -1
  370. package/dist/{schema-LHMEXFLY.js → schema-LGLQBRC4.js} +3 -1
  371. package/dist/{schema-5753NOAL.js → schema-MD22QYZU.js} +1 -1
  372. package/dist/{schema-2M3LXR35.js → schema-MGETMQYC.js} +3 -1
  373. package/dist/{schema-FZKNIAIH.js → schema-MQB6CE5V.js} +3 -1
  374. package/dist/{schema-U26KG42U.js → schema-NMIYKGHE.js} +3 -1
  375. package/dist/{schema-MT6NA5AL.js → schema-NOBNFD2F.js} +3 -1
  376. package/dist/{schema-3OLBUVMZ.js → schema-OXO2XY4Y.js} +1 -1
  377. package/dist/{schema-G2PLJCYL.js → schema-PHIHMDVB.js} +1 -1
  378. package/dist/{schema-UHHFTVGS.js → schema-UXWKA3PI.js} +3 -1
  379. package/dist/{schema-J53LCIY3.js → schema-WBOPCTPC.js} +1 -1
  380. package/dist/{schema-TA3MSAPQ.js → schema-WFGDVBJK.js} +1 -1
  381. package/dist/{schema-MUTAVQMI.js → schema-WX2RS4OU.js} +3 -1
  382. package/dist/{schema-XATDKZPW.js → schema-XIHAKX3B.js} +18 -1
  383. package/dist/{schema-LEQNLBNG.js → schema-XRSORYBI.js} +3 -1
  384. package/dist/{schema-FNTAAXQ3.js → schema-YDZCGL56.js} +3 -1
  385. package/dist/{specValidation-X5XJBPTP.js → specValidation-XGELWQUU.js} +2 -1
  386. package/dist/theme.js +5 -1
  387. package/dist/types/core/charts/bartable/types.d.ts +14 -1
  388. package/dist/types/core/charts/box/types.d.ts +5 -1
  389. package/dist/types/core/charts/choropleth/layout.d.ts +1 -5
  390. package/dist/types/core/charts/choropleth/types.d.ts +19 -0
  391. package/dist/types/core/charts/cohort/types.d.ts +16 -3
  392. package/dist/types/core/charts/creative/types.d.ts +21 -0
  393. package/dist/types/core/charts/dimswitch/compile.d.ts +15 -2
  394. package/dist/types/core/charts/dimswitch/types.d.ts +24 -1
  395. package/dist/types/core/charts/gantt/calendar.d.ts +20 -0
  396. package/dist/types/core/charts/gantt/columns.d.ts +56 -0
  397. package/dist/types/core/charts/gantt/layout.d.ts +8 -2
  398. package/dist/types/core/charts/gantt/model.d.ts +296 -0
  399. package/dist/types/core/charts/grid/metricStack.d.ts +9 -0
  400. package/dist/types/core/charts/grid/metricStackSchema.d.ts +13 -0
  401. package/dist/types/core/charts/histogram/types.d.ts +8 -0
  402. package/dist/types/core/charts/likert/layout.d.ts +10 -8
  403. package/dist/types/core/charts/pvm/types.d.ts +9 -1
  404. package/dist/types/core/charts/pyramid/types.d.ts +3 -1
  405. package/dist/types/core/charts/sankey/types.d.ts +5 -1
  406. package/dist/types/core/charts/status/layout.d.ts +3 -0
  407. package/dist/types/core/charts/table/resolve.d.ts +14 -0
  408. package/dist/types/core/footer.d.ts +2 -0
  409. package/dist/types/core/format.d.ts +4 -0
  410. package/dist/types/core/formatSpec.d.ts +10 -0
  411. package/dist/types/core/frame.d.ts +1 -1
  412. package/dist/types/core/geo/types.d.ts +2 -0
  413. package/dist/types/core/geometry.d.ts +1 -1
  414. package/dist/types/core/label/categoryRow.d.ts +1 -1
  415. package/dist/types/core/normalize/shared.d.ts +2 -0
  416. package/dist/types/core/registry.d.ts +4 -5
  417. package/dist/types/core/request.d.ts +6 -0
  418. package/dist/types/core/schema/capability.d.ts +20 -7
  419. package/dist/types/core/schema/generatedColumns.d.ts +168 -0
  420. package/dist/types/core/text.d.ts +16 -0
  421. package/dist/types/core/themeGeometry.d.ts +9 -0
  422. package/dist/types/core/timeAxis.d.ts +6 -1
  423. package/dist/types/core/types/diagram.d.ts +7 -0
  424. package/dist/types/core/types/options.d.ts +83 -12
  425. package/dist/types/core/types/table.d.ts +23 -3
  426. package/dist/types/index.d.ts +2 -0
  427. package/dist/types/react/barrelCharts.d.ts +16 -5
  428. package/dist/types/react/charts/butterfly.d.ts +2 -2
  429. package/dist/types/react/charts/dot.d.ts +7 -1
  430. package/dist/types/react/charts/pareto.d.ts +4 -1
  431. package/dist/types/react/charts/variance.d.ts +3 -1
  432. package/dist/types/react/hover/labelCard.d.ts +18 -3
  433. package/dist/types/react/prepare.d.ts +7 -1
  434. package/dist/types/theme.d.ts +2 -0
  435. package/dist/validate.js +16 -5
  436. package/docs/manual.md +31 -3
  437. package/docs/reference/bar.md +3 -0
  438. package/docs/reference/bartable.md +16 -1
  439. package/docs/reference/box.md +8 -1
  440. package/docs/reference/bullet.md +12 -1
  441. package/docs/reference/butterfly.md +7 -1
  442. package/docs/reference/choropleth.md +15 -2
  443. package/docs/reference/cohort.md +25 -5
  444. package/docs/reference/column.md +1 -0
  445. package/docs/reference/combo.md +1 -0
  446. package/docs/reference/creative.md +13 -0
  447. package/docs/reference/diagram.md +5 -0
  448. package/docs/reference/dimswitch.md +50 -32
  449. package/docs/reference/dot.md +7 -2
  450. package/docs/reference/fixtures.md +57 -0
  451. package/docs/reference/funnel.md +5 -0
  452. package/docs/reference/gantt.md +10 -2
  453. package/docs/reference/grid.md +9 -2
  454. package/docs/reference/heatmap.md +6 -0
  455. package/docs/reference/histogram.md +2 -2
  456. package/docs/reference/kpi.md +5 -1
  457. package/docs/reference/likert.md +8 -0
  458. package/docs/reference/line.md +1 -1
  459. package/docs/reference/options.md +4 -3
  460. package/docs/reference/pareto.md +1 -1
  461. package/docs/reference/pvm.md +7 -1
  462. package/docs/reference/pyramid.md +6 -0
  463. package/docs/reference/react.md +1 -2
  464. package/docs/reference/sankey.md +6 -2
  465. package/docs/reference/slope.md +6 -0
  466. package/docs/reference/sparkline.md +1 -1
  467. package/docs/reference/status.md +7 -1
  468. package/docs/reference/table.md +16 -4
  469. package/docs/reference/tilemap.md +2 -2
  470. package/docs/reference/treemap.md +1 -1
  471. package/docs/reference/waffle.md +1 -1
  472. package/docs/reference/waterfall.md +4 -1
  473. package/package.json +1 -1
  474. package/dist/chunk-FI5EXISD.js +0 -27
  475. package/dist/chunk-O36WX56O.js +0 -13
  476. package/dist/chunk-YGTNVZJE.js +0 -89
  477. package/dist/chunk-ZGHBDMYF.js +0 -24
  478. package/dist/chunk-ZLYQWUNR.js +0 -1794
  479. package/dist/core-SKRADU7T.js +0 -41
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  chartRefusals,
3
3
  isRefused
4
- } from "./chunk-PZ46S2SY.js";
4
+ } from "./chunk-V3UE3TB7.js";
5
5
  import {
6
6
  prepareFractionAnnotations
7
- } from "./chunk-CPGASWNN.js";
7
+ } from "./chunk-I65OLJ2X.js";
8
8
  import {
9
9
  ASPECT_CAPS,
10
10
  COMPACT_SOURCE_LINES,
@@ -55,22 +55,27 @@ import {
55
55
  withDensityNotes,
56
56
  withHiddenLabelNote,
57
57
  withNoteInA11y
58
- } from "./chunk-2ALFFOKB.js";
58
+ } from "./chunk-WSKZZ2ZB.js";
59
59
  import {
60
60
  COMPACT_OMITTED_NOTES,
61
61
  copyFrame,
62
62
  disclosureNote,
63
+ footerPlans,
63
64
  freedChromeOf,
64
65
  liveFooterExtra,
65
66
  partNeedOf,
66
67
  rankKeyShown,
68
+ slotDemandHeight,
67
69
  staticFrame,
68
70
  withEngineNotes
69
- } from "./chunk-5SHI57XD.js";
71
+ } from "./chunk-WZB6R2ZX.js";
70
72
  import {
71
73
  DATE_NAME_LANGUAGES,
72
74
  dateNames
73
75
  } from "./chunk-QBR6IKIX.js";
76
+ import {
77
+ emptyIdRecord
78
+ } from "./chunk-LINZPU5D.js";
74
79
  import {
75
80
  MAGNITUDE_DIVISOR,
76
81
  decimalCap,
@@ -78,17 +83,21 @@ import {
78
83
  neededDecimals,
79
84
  parseISODate,
80
85
  utcDate
81
- } from "./chunk-GDVR3XHT.js";
86
+ } from "./chunk-D3PQAVFW.js";
82
87
  import {
83
88
  AUTO_MAX_DECIMALS,
84
89
  chartString,
90
+ currentSmallValues,
85
91
  singleStops,
86
92
  withChartDefaultStrings,
87
93
  withLocaleStrings,
88
94
  withNumberMarks,
89
95
  withSmallValues,
90
96
  wordLanguage
91
- } from "./chunk-LHKDZAWN.js";
97
+ } from "./chunk-MSYTF3DZ.js";
98
+ import {
99
+ presentationInfo
100
+ } from "./chunk-WJQX7HBH.js";
92
101
  import {
93
102
  DEFAULT_PRESET,
94
103
  GRAMMAR_STROKE,
@@ -114,9 +123,8 @@ import {
114
123
  tableHeadFloorPx,
115
124
  textScaleOf,
116
125
  textSizeOf,
117
- typeWidthClass,
118
126
  withoutOrphanAnnotationMarks
119
- } from "./chunk-HJRNBKIT.js";
127
+ } from "./chunk-JARJP576.js";
120
128
  import {
121
129
  loadedDeferred
122
130
  } from "./chunk-DRHQG44U.js";
@@ -131,14 +139,13 @@ import {
131
139
  DEFAULT_TARGET,
132
140
  NormalizeError,
133
141
  TARGET_SIZE,
134
- naturalOutputSize,
135
142
  resolveCanvasOptions,
136
143
  resolveSize,
137
144
  resolveSubtitle,
138
145
  resolveTargetSize,
139
146
  targetFloorsPx,
140
147
  withDefaultTarget
141
- } from "./chunk-YOOHNQ3L.js";
148
+ } from "./chunk-FX5VZK5F.js";
142
149
  import {
143
150
  maxOf,
144
151
  minOf,
@@ -147,9 +154,148 @@ import {
147
154
  import {
148
155
  compareText,
149
156
  defaultMeasurer,
157
+ isCachedTextMeasurer,
150
158
  measureText,
151
159
  wrapText
152
- } from "./chunk-SNQ7D5R7.js";
160
+ } from "./chunk-UIHGGWES.js";
161
+
162
+ // src/core/layoutPlan.ts
163
+ 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;
164
+ function withPlanInputs(run) {
165
+ if (inputs) return run();
166
+ inputs = { json: /* @__PURE__ */ new WeakMap(), themes: /* @__PURE__ */ new WeakMap(), texts: /* @__PURE__ */ new WeakMap() };
167
+ try {
168
+ return run();
169
+ } finally {
170
+ inputs = void 0;
171
+ }
172
+ }
173
+ function memoExactInputKey(value, read) {
174
+ if (!inputs) return read(value);
175
+ let readers = inputs.exactKeys ??= /* @__PURE__ */ new Map(), keys = readers.get(read);
176
+ if (keys || readers.set(read, keys = /* @__PURE__ */ new WeakMap()), keys.has(value)) return keys.get(value);
177
+ let key = read(value);
178
+ return keys.set(value, key), key;
179
+ }
180
+ function inputJson(value) {
181
+ let key = inputs?.json.get(value);
182
+ return key === void 0 && (key = JSON.stringify(value, keyFunction), inputs?.json.set(value, key)), key;
183
+ }
184
+ var inputVersions = /* @__PURE__ */ new WeakMap(), ownedInputVersions = /* @__PURE__ */ new WeakMap(), nextInputVersion = 0;
185
+ function ownPlanInput(value) {
186
+ ownedInputVersions.has(value) || ownedInputVersions.set(value, nextInputVersion++);
187
+ }
188
+ function inputVersion(value) {
189
+ let owned = ownedInputVersions.get(value);
190
+ if (owned !== void 0) return owned;
191
+ let json = inputJson(value), known = inputVersions.get(value);
192
+ return (!known || known.json !== json) && inputVersions.set(value, known = { json, version: nextInputVersion++ }), known.version;
193
+ }
194
+ var themeVersions = /* @__PURE__ */ new Map(), nextThemeVersion = 0;
195
+ function themeVersion(theme) {
196
+ let version = inputs?.themes.get(theme);
197
+ if (version !== void 0) return version;
198
+ let json = inputJson(theme);
199
+ 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;
200
+ }
201
+ function optionKey(options) {
202
+ let valueKey = (value) => value !== null && typeof value == "object" ? inputJson(value) : JSON.stringify(value, keyFunction), fields = [];
203
+ for (let key of Object.keys(options)) {
204
+ if (key === "theme") continue;
205
+ let value = valueKey(options[key]);
206
+ value !== void 0 && fields.push(JSON.stringify(key) + ":" + value);
207
+ }
208
+ let theme = options.theme, symbols = Object.getOwnPropertySymbols(options).map((symbol) => "[" + (JSON.stringify(symbol.description) ?? "null") + "," + (valueKey(options[symbol]) ?? "null") + "]");
209
+ return "[{" + fields.join(",") + "}," + (valueKey(theme && typeof theme == "object" ? themeVersion(theme) : theme) ?? "null") + ",[" + symbols.join(",") + "]," + JSON.stringify(currentSmallValues()) + "]";
210
+ }
211
+ function layoutKey(data, options) {
212
+ return inputVersion(data) + ":" + optionKey(options);
213
+ }
214
+ 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;
215
+ function tableTextMeasure(raw) {
216
+ if (isCachedTextMeasurer(raw) || wrappedMeasurers.has(raw)) return raw;
217
+ let wrapped = measurers.get(raw);
218
+ return wrapped || (wrapped = (text, font) => {
219
+ if (!inputs) return raw(text, font);
220
+ let fonts = inputs.texts.get(raw);
221
+ fonts || inputs.texts.set(raw, fonts = { families: /* @__PURE__ */ new Map() });
222
+ let plan = fonts.last;
223
+ if (!plan || !sameFont(plan.font, font)) {
224
+ let family = fonts.families.get(font.family);
225
+ family || fonts.families.set(font.family, family = /* @__PURE__ */ new Map());
226
+ let key = font.size * 4096 + font.weight, variants = family.get(key);
227
+ 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;
228
+ }
229
+ let result = plan.texts.get(text);
230
+ return result || plan.texts.set(text, result = { ...raw(text, font) }), result;
231
+ }, Object.defineProperty(wrapped, "capHeight", { get: () => raw.capHeight }), measurers.set(raw, wrapped), wrappedMeasurers.add(wrapped)), wrapped;
232
+ }
233
+ var PLAN_ONLY = /* @__PURE__ */ Symbol("tablePlanOnly"), PLAN = /* @__PURE__ */ Symbol("tableLayoutPlan");
234
+ function deferLayout(geometry, draw, cuts) {
235
+ return geometry[PLAN] = { draw, cuts, warnings: geometry.warnings.length }, geometry;
236
+ }
237
+ function isPlanned(value) {
238
+ return value[PLAN] !== void 0;
239
+ }
240
+ function plannedCutCount(value) {
241
+ let plan = value[PLAN];
242
+ return typeof plan?.cuts == "function" && (plan.cuts = plan.cuts()), plan?.cuts;
243
+ }
244
+ function materializeLayout(geometry) {
245
+ let plan = geometry[PLAN];
246
+ if (!plan) return geometry;
247
+ let drawn2 = plan.rendered ??= plan.draw(), result = {
248
+ ...geometry,
249
+ scene: drawn2.scene,
250
+ marks: drawn2.marks,
251
+ debug: drawn2.debug,
252
+ labels: drawn2.labels,
253
+ axes: drawn2.axes,
254
+ annotations: drawn2.annotations,
255
+ warnings: [...geometry.warnings.slice(0, plan.warnings), ...drawn2.warnings.slice(plan.warnings), ...geometry.warnings.slice(plan.warnings)],
256
+ ...drawn2.paintWarningRules === void 0 ? {} : { paintWarningRules: drawn2.paintWarningRules }
257
+ };
258
+ return delete result[PLAN], copyPlannedValue(result);
259
+ }
260
+ function copyPlannedValue(value, copies = /* @__PURE__ */ new Map()) {
261
+ if (value === null || typeof value != "object") return value;
262
+ let known = copies.get(value);
263
+ if (known !== void 0) return known;
264
+ if (Array.isArray(value)) {
265
+ let copy2 = [];
266
+ copies.set(value, copy2);
267
+ for (let entry of value) copy2.push(entry !== null && typeof entry == "object" ? copyPlannedValue(entry, copies) : entry);
268
+ return copy2;
269
+ }
270
+ if (value instanceof Map) {
271
+ let copy2 = /* @__PURE__ */ new Map();
272
+ copies.set(value, copy2);
273
+ for (let [key, entry] of value) copy2.set(key, entry !== null && typeof entry == "object" ? copyPlannedValue(entry, copies) : entry);
274
+ return copy2;
275
+ }
276
+ if (value instanceof Set) {
277
+ let copy2 = /* @__PURE__ */ new Set();
278
+ copies.set(value, copy2);
279
+ for (let entry of value) copy2.add(entry !== null && typeof entry == "object" ? copyPlannedValue(entry, copies) : entry);
280
+ return copy2;
281
+ }
282
+ let prototype = Object.getPrototypeOf(value);
283
+ if (prototype !== Object.prototype && prototype !== null) return value;
284
+ let copy = footerPlans.has(value) ? copyFrame(value) : prototype === null ? emptyIdRecord() : {};
285
+ copies.set(value, copy);
286
+ for (let key of Reflect.ownKeys(value)) {
287
+ let source = value[key], entry = source !== null && typeof source == "object" ? copyPlannedValue(source, copies) : source;
288
+ 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;
289
+ }
290
+ return copy;
291
+ }
292
+ var requestResults = /* @__PURE__ */ new WeakMap();
293
+ function repeatedResult(data, options, resolved, layout) {
294
+ return withPlanInputs(() => {
295
+ let key = `${layoutKey(data, options)}:${inputJson(resolved)}`, byKey = requestResults.get(data);
296
+ 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));
297
+ });
298
+ }
153
299
 
154
300
  // src/core/inputConversion.ts
155
301
  function caseInsensitiveValue(value, allowed) {
@@ -510,7 +656,12 @@ function prepareLegendLayout(definition, data, origins = /* @__PURE__ */ new Wea
510
656
  let column = options;
511
657
  if (definition.type === "column" && options?.legend === "none" && column?.seriesLabels !== void 0 && !column.valueAxis?.percent && (column.variant ?? "grouped") === "grouped") {
512
658
  let keyed = draw(Object.assign({}, options, { legend: void 0 }));
513
- if (!keyed.refused) return keyed;
659
+ if (!keyed.refused)
660
+ return keyed.warnings = keyed.warnings.map((warning) => {
661
+ if (warning.code !== "series-labels-ignored") return warning;
662
+ let { fix: _fix, ...kept } = warning;
663
+ return kept;
664
+ }), keyed;
514
665
  }
515
666
  return draw(options);
516
667
  });
@@ -829,7 +980,16 @@ function yearRowRequests(plan, top) {
829
980
  function categoryLineAlign(plan, index) {
830
981
  return plan.rotation === 0 && (plan.infos[index]?.lines.length ?? 0) > 1 ? { align: "middle" } : {};
831
982
  }
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, ROTATED_MIN_WIDTH = 110, DATE_ROW_LABELS = 8, YEAR_LABEL = /^(?:FY\s?)?\d{4}$|^(?:FY\s?)?'?\d{2}$/;
983
+ 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;
984
+ function stackedName(label, font, room, lines, measure) {
985
+ let least = Math.floor((measure(label, font).width - (lines - 1) * measure(" ", font).width) / lines) - 2;
986
+ if (least > room) return;
987
+ let widest = fitText(label, font, room, lines, measure);
988
+ if (widest.title !== void 0) return;
989
+ let most = Math.min(room, Math.ceil(widest.w)), start = Math.min(most, Math.max(least, Math.min(room, VERTICAL_MIN_WIDTH)));
990
+ return start >= most ? widest : fitText(label, font, start, lines, measure, { wider: most });
991
+ }
992
+ var ROTATED_MIN_WIDTH = 110, DATE_ROW_LABELS = 8, YEAR_LABEL = /^(?:FY\s?)?\d{4}$|^(?:FY\s?)?'?\d{2}$/;
833
993
  function calendarLike(labels) {
834
994
  return labels.length > 1 && labels.every((l) => {
835
995
  let t = l.trim();
@@ -1287,12 +1447,24 @@ function planRow(input, bundled) {
1287
1447
  }
1288
1448
  let everyName = input.everyName === !0 && !orderedProse, room45 = allowRotate && rotateFonts.some((font) => step * SIN45 >= font.size * (font.lineHeight ?? 1.2) + 2);
1289
1449
  if (allowRotate && (input.rotate90 || everyName && !room45)) {
1290
- let upright = rotateFonts.filter((font2) => step >= font2.size * (font2.lineHeight ?? 1.2) + 2), cap = Math.max(VERTICAL_MIN_WIDTH, Math.floor((input.plotHeight ?? 0) * VERTICAL_HEIGHT_SHARE)), font = upright.find((f) => measureAll(f, 1).every((info) => info.w <= cap)) ?? upright[0];
1450
+ let upright = rotateFonts.filter((font2) => step >= font2.size * (font2.lineHeight ?? 1.2) + 2), cap = Math.max(VERTICAL_MIN_WIDTH, Math.floor((input.plotHeight ?? 0) * VERTICAL_HEIGHT_SHARE)), stackFor = (f) => input.rotate90 ? Math.max(1, Math.min(VERTICAL_MAX_LINES, Math.floor((step - 2) / (f.size * (f.lineHeight ?? 1.2))))) : 1, verticalMemo = /* @__PURE__ */ new Map(), verticalAll = (f) => verticalMemo.get(f) ?? verticalMemo.set(f, verticalLines(f)).get(f), verticalLines = (f) => measureAll(f, 1).map((info, i) => {
1451
+ if (info.w <= cap || stackFor(f) < 2) return info;
1452
+ let reserve = suffixAt(i) ? measure(suffixAt(i), f).width : 0, room = Math.max(cap - reserve, 1);
1453
+ for (let lines = 2; lines <= stackFor(f); lines++) {
1454
+ let fitted = stackedName(labels[i], f, room, lines, measure);
1455
+ if (fitted) return withSuffix({ lines: fitted.lines, w: fitted.w, h: fitted.h, truncated: !1 }, i, f);
1456
+ }
1457
+ return info;
1458
+ }), font = upright.find((f) => verticalAll(f).every((info) => info.w <= cap)) ?? upright[0];
1291
1459
  if (font) {
1292
- let cutNames = [], infos = measureAll(font, 1).map((info, i) => {
1460
+ let cutNames = [], stack = stackFor(font), infos = verticalAll(font).map((info, i) => {
1293
1461
  if (info.w <= cap) return info;
1462
+ if (cutNames.push(labels[i]), stack > 1) {
1463
+ let fitted = fitText(labels[i], font, cap, stack, measure);
1464
+ return { ...info, lines: fitted.lines, w: Math.min(cap, fitted.w), h: fitted.h, truncated: !0, ...fitted.title !== void 0 ? { title: fitted.title } : {} };
1465
+ }
1294
1466
  let cut2 = cutWithTitle(info.lines[0], font, cap, measure);
1295
- return cutNames.push(labels[i]), { ...info, lines: [cut2.text], w: cap, truncated: !0, ...cut2.title !== void 0 ? { title: cut2.title } : {} };
1467
+ return { ...info, lines: [cut2.text], w: cap, truncated: !0, ...cut2.title !== void 0 ? { title: cut2.title } : {} };
1296
1468
  });
1297
1469
  return plan(font, infos, all, "rotate", {
1298
1470
  rotation: 90,
@@ -1382,9 +1554,9 @@ function rotatedLeftOverhang(plan, centers, minX) {
1382
1554
  overhang = Math.max(overhang, minX - left);
1383
1555
  }), Math.ceil(overhang);
1384
1556
  }
1385
- function verticalNameRect(centerX, rowTop, width, font) {
1386
- let lineH = font.size * (font.lineHeight ?? 1.2), pivotX = centerX + font.size * VERTICAL_CAP_SHARE / 2, pivotY = rowTop + 4 + lineH * SIN45 / 2;
1387
- return { x: pivotX - lineH, y: pivotY - lineH * SIN45 / 2, w: lineH, h: lineH * SIN45 / 2 + width };
1557
+ function verticalNameRect(centerX, rowTop, width, font, lines = 1) {
1558
+ 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;
1559
+ return { x: pivotX - lineH, y: pivotY - lineH * SIN45 / 2, w: lineH * lines, h: lineH * SIN45 / 2 + width };
1388
1560
  }
1389
1561
  var VERTICAL_CAP_SHARE = 0.72;
1390
1562
 
@@ -1854,7 +2026,7 @@ function fitLayout(definition, data, options) {
1854
2026
  }
1855
2027
  var mekkoHeightFloors = /* @__PURE__ */ new WeakMap();
1856
2028
  function prepareFitLayout(definition, data, origins = /* @__PURE__ */ new WeakMap()) {
1857
- let probes = /* @__PURE__ */ new Map(), heightFloors = definition.type === "mekko" ? mekkoHeightFloors.get(origins) ?? /* @__PURE__ */ new Map() : void 0;
2029
+ 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;
1858
2030
  heightFloors && mekkoHeightFloors.set(origins, heightFloors);
1859
2031
  let at = (runOptions, compact) => {
1860
2032
  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);
@@ -1870,7 +2042,7 @@ function prepareFitLayout(definition, data, origins = /* @__PURE__ */ new WeakMa
1870
2042
  ]) : "", floor2 = fixedMekko ? heightFloors?.get(floorKey) : void 0;
1871
2043
  if (floor2 && runOptions?.[FIXED_SIZE_PROBE] && requested.height + SIZE_TOLERANCE < floor2.minHeight)
1872
2044
  return sizeRefusal(definition.type, definition.title, requested, { ...floor2 });
1873
- 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);
2045
+ 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);
1874
2046
  }
1875
2047
  let copy = { ...result, ...result.sizing ? { sizing: { ...result.sizing } } : {} }, floor = plotChromeFloor.get(result);
1876
2048
  return floor !== void 0 && plotChromeFloor.set(copy, floor), origins.set(copy, result), copy;
@@ -1882,14 +2054,14 @@ function prepareFitLayout(definition, data, origins = /* @__PURE__ */ new WeakMa
1882
2054
  let width = resolveSize(options.size, options.target).width;
1883
2055
  width < CARD_CLASS_WIDTH && cardClassHeight(definition, data, options, width);
1884
2056
  }
1885
- let fitted = fitOrRepair(definition, data, options, at), copy = copyLayout(fitted);
1886
- return origins.set(copy, origins.get(fitted) ?? fitted), copy.refused || sourceFollowsContent(copy, options), withPlotFloorWarning(copy, options, definition.title);
2057
+ 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);
2058
+ 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);
1887
2059
  } finally {
1888
2060
  borrowed || (memo.active = !1, memo.heights.clear(), memo.references = void 0);
1889
2061
  }
1890
2062
  }));
1891
2063
  return run.finish = () => {
1892
- probes.clear(), heightFloors?.clear();
2064
+ probes.clear(), heightFloors?.clear(), memoKeys && (memoKeys.scope = void 0, memoKeys.parts = void 0);
1893
2065
  }, run;
1894
2066
  }
1895
2067
  function copyLayout(result) {
@@ -2146,10 +2318,23 @@ function fitOnce(definition, data, options, compactFallback, atSize) {
2146
2318
  let declared = declaredSizing(definition, options);
2147
2319
  if (widthOnly(options?.size)) {
2148
2320
  let contentHeight2 = function() {
2149
- for (let pass = 0; pass < 4; pass++) {
2321
+ let refusedProbe = !1;
2322
+ for (let pass = 0; pass < (definition.type === "grid" ? 6 : 4); pass++) {
2150
2323
  let probe = at(width, height), natural = probe.sizing?.naturalHeight;
2151
2324
  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;
2152
- if (natural === void 0 || (height = natural, probe.sizing?.fit !== "content")) break;
2325
+ if (natural === void 0) break;
2326
+ if (definition.type === "grid" && probe.sizing?.fit !== "content") {
2327
+ if (probe.refused && pass === 0) {
2328
+ refusedProbe = !0, height = natural;
2329
+ continue;
2330
+ }
2331
+ if (probe.refused) break;
2332
+ if (refusedProbe && !slotDemandHeight.has(probe.frame)) return probe;
2333
+ }
2334
+ let slotGrid = !probe.refused && slotDemandHeight.has(probe.frame) && probe.sizing?.fit !== "content";
2335
+ if (slotGrid && natural < height) return probe;
2336
+ let grew = natural > height;
2337
+ if (height = natural, !(slotGrid && grew) && probe.sizing?.fit !== "content") break;
2153
2338
  }
2154
2339
  return at(width, height);
2155
2340
  };
@@ -2259,7 +2444,7 @@ function withLayoutMemo(run) {
2259
2444
  if (layoutMemo) return run();
2260
2445
  layoutMemo = /* @__PURE__ */ new Map();
2261
2446
  try {
2262
- return withEngineNotes(() => withCategoryRowPlans(run));
2447
+ return withPlanInputs(() => withEngineNotes(() => withCategoryRowPlans(run)));
2263
2448
  } finally {
2264
2449
  layoutMemo = void 0, memoSymbolIds = /* @__PURE__ */ new Map();
2265
2450
  }
@@ -2272,7 +2457,7 @@ function memoId(value) {
2272
2457
  let id = memoObjectIds.get(value);
2273
2458
  return id === void 0 && memoObjectIds.set(value, id = ++memoNextId), id;
2274
2459
  }
2275
- function memoKey(value, depth = 0) {
2460
+ function memoKey(value, depth = 0, parts) {
2276
2461
  if (--memoKeyBudget < 0) throw MEMO_KEY_TOO_LONG;
2277
2462
  switch (typeof value) {
2278
2463
  case "string":
@@ -2320,7 +2505,21 @@ function memoKey(value, depth = 0) {
2320
2505
  let out = "{";
2321
2506
  if (depth === 0) {
2322
2507
  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);
2323
- for (let [name, key] of ordered) out += `${name}:${memoKey(object[key], 1)},`;
2508
+ if (!parts) {
2509
+ for (let [name, key] of ordered) out += `${name}:${memoKey(object[key], 1)},`;
2510
+ return `${out}}`;
2511
+ }
2512
+ for (let [name, key] of ordered) {
2513
+ let value2 = object[key], held = parts.get(key), text;
2514
+ if (held && Object.is(held.value, value2)) {
2515
+ if ((memoKeyBudget -= held.cost) < 0) throw MEMO_KEY_TOO_LONG;
2516
+ text = held.text;
2517
+ } else {
2518
+ let before = memoKeyBudget;
2519
+ text = memoKey(value2, 1), parts.set(key, { value: value2, text, cost: before - memoKeyBudget });
2520
+ }
2521
+ out += `${name}:${text},`;
2522
+ }
2324
2523
  return `${out}}`;
2325
2524
  }
2326
2525
  for (let key of Reflect.ownKeys(object)) {
@@ -2339,7 +2538,7 @@ function memoCopy(result) {
2339
2538
  let copy = { ...result, warnings: [...result.warnings], ...result.sizing ? { sizing: { ...result.sizing } } : {} }, floor = plotChromeFloor.get(result);
2340
2539
  return floor !== void 0 && plotChromeFloor.set(copy, floor), copy;
2341
2540
  }
2342
- function fitSizeMemo(definition, data, options, compactFallback) {
2541
+ function fitSizeMemo(definition, data, options, compactFallback, keys) {
2343
2542
  let memo = layoutMemo;
2344
2543
  if (!memo || data === null || typeof data != "object" || panelTypeClass(options) !== void 0 || definition.type === "gantt" && options?.[ACCEPTANCE_PROBE])
2345
2544
  return fitSize(definition, data, options, compactFallback);
@@ -2348,10 +2547,10 @@ function fitSizeMemo(definition, data, options, compactFallback) {
2348
2547
  let { [PLOT_SHARE]: _share, ...rest } = keyed;
2349
2548
  keyed = rest;
2350
2549
  }
2351
- memoKeyBudget = MEMO_KEY_LIMIT, memoKeyData = data;
2550
+ keys && keys.scope !== memo && (keys.scope = memo, keys.parts = /* @__PURE__ */ new Map()), memoKeyBudget = MEMO_KEY_LIMIT, memoKeyData = data;
2352
2551
  let optionsKey;
2353
2552
  try {
2354
- optionsKey = memoKey(keyed);
2553
+ optionsKey = memoKey(keyed, 0, keys?.parts);
2355
2554
  } catch (error) {
2356
2555
  if (error !== MEMO_KEY_TOO_LONG) throw error;
2357
2556
  return fitSize(definition, data, options, compactFallback);
@@ -2390,7 +2589,7 @@ function fitSize(definition, data, options, compactFallback) {
2390
2589
  return sizeRefusal(definition.type, definition.title, requested, resolveSizing(gatePolicy, requested));
2391
2590
  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) => {
2392
2591
  let clean = withoutCallState(runOptions), memo = runOptions?.[CARD_HEIGHT_MEMO];
2393
- return definition.layout(data, definition.type === "gantt" ? {
2592
+ return definition.layout(data, definition.type === "table" || definition.type === "dimswitch" ? { ...clean, [PLAN_ONLY]: !0 } : definition.type === "gantt" ? {
2394
2593
  ...clean,
2395
2594
  ...memo ? { [CARD_HEIGHT_MEMO]: memo } : {},
2396
2595
  ...runOptions?.[ACCEPTANCE_PROBE] ? { [ACCEPTANCE_PROBE]: !0 } : {}
@@ -3024,46 +3223,6 @@ function measureValueAxisWidth(domain, format, theme, measure, tickCount = 5, fo
3024
3223
  return maxOf(values.map((value) => measure(fmt(value), font).width)) + 8;
3025
3224
  }
3026
3225
 
3027
- // src/core/themeGeometry.ts
3028
- function themeGeometryTokens(theme, target) {
3029
- return {
3030
- ...target === void 0 ? {} : { target },
3031
- scenario: theme.scenario,
3032
- pattern: { ...theme.pattern, hatchColor: theme.pattern.hatchColor ?? "segment" },
3033
- stroke: theme.stroke,
3034
- dash: theme.dash,
3035
- type: theme.type,
3036
- space: theme.space,
3037
- surface: theme.surface,
3038
- // Label ink and the grid dash are baked into the scene, so a switch relayouts as their siblings do.
3039
- labels: theme.labels,
3040
- valueAxis: theme.valueAxis,
3041
- // The outline and edge switches are recomputed by a repaint (repaintSeparation, decideFillEdges);
3042
- // every other mark key (marker, radius, tint, caret, bar label side) is baked into the layout.
3043
- marks: theme.marks && (({ restOutline: _r, sliceOutline: _s, othersOutline: _o, contrastEdge: _c, ...rest }) => rest)(theme.marks),
3044
- // Table sizes, pads, weights, rules and glyphs are geometry; its inks, rule ink and bar grounds are colour.
3045
- table: theme.table && (({ inks: _inks, ruleInk: _ruleInk, bar: _bar, ...rest }) => rest)(theme.table),
3046
- legend: theme.legend?.auto ?? !1,
3047
- seriesOverflow: theme.color.seriesOverflow ?? "repeatLast",
3048
- seriesCount: theme.color.series.length
3049
- };
3050
- }
3051
- function presentationInfo(geometry, target, inheritedClass, textScale = 1) {
3052
- let floors = targetFloorsPx(target), minimumScale = 0.9;
3053
- for (let node of geometry.scene) {
3054
- if (node.t !== "text" || node.lines.every((line) => line.length === 0) || node.opacity === 0) continue;
3055
- let tableHead = TABLE_HEAD_PARTS.has(node.part ?? "");
3056
- minimumScale = Math.max(minimumScale, (tableHead ? tableHeadFloorPx(target) : floors[node.typeRole ?? "label"]) / node.font.size);
3057
- }
3058
- return {
3059
- target,
3060
- typeClass: geometry.type === "kpi" || geometry.type === "bullet" ? "M" : inheritedClass ?? typeWidthClass(geometry.size.width),
3061
- naturalSize: naturalOutputSize(target, geometry.size),
3062
- minDisplayWidth: geometry.size.width * minimumScale,
3063
- ...textScale === 1 ? {} : { textScale }
3064
- };
3065
- }
3066
-
3067
3226
  // src/core/calendarData.ts
3068
3227
  function withCalendarLabels(data, language, label) {
3069
3228
  let categories = data?.categories;
@@ -3130,9 +3289,9 @@ function registerChart(def) {
3130
3289
  theme: { preset: typeof ref == "string" ? ref : ref?.preset ?? DEFAULT_PRESET, overrides: theme }
3131
3290
  })))), prepared = def.defaultStrings ? withChartDefaultStrings(localized, def.defaultStrings(localized)) : localized;
3132
3291
  def.type === "grid" && (data = inheritGridTarget(data, target, textScale, textSize)), def.categoryLabels && (data = withCalendarLabels(data, authored?.locale?.language, def.categoryLabels));
3133
- let origins = /* @__PURE__ */ new WeakMap(), legendLayout = prepareLegendLayout(def, data, origins), noteLayouts = /* @__PURE__ */ new WeakMap(), noteRuns = [], layoutBody = ((options) => {
3292
+ 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) => {
3134
3293
  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 };
3135
- for (let key of ["size", "mode", "belowMinimum", FORCE_COMPACT, WIDTH_PROBE, FIXED_SIZE_PROBE])
3294
+ for (let key of ["size", "mode", "belowMinimum", FORCE_COMPACT, WIDTH_PROBE, FIXED_SIZE_PROBE, PLAN_ONLY])
3136
3295
  frame && Object.hasOwn(frame, key) ? current[key] = frame[key] : delete current[key];
3137
3296
  options = {
3138
3297
  ...current,
@@ -3175,7 +3334,7 @@ function registerChart(def) {
3175
3334
  let origin = origins.get(geo2) ?? geo2, variants = noteLayouts.get(origin);
3176
3335
  variants || noteLayouts.set(origin, variants = /* @__PURE__ */ new Map());
3177
3336
  let noteKey = JSON.stringify([...noted]), noteRun = variants.get(noteKey);
3178
- noteRun || (noteRun = prepareLegendLayout(def, data, origins), variants.set(noteKey, noteRun), noteRuns.push(noteRun)), next = noteRun(noteOptions);
3337
+ noteRun || (noteRun = prepareLegendLayout(layoutDefinition, data, origins), variants.set(noteKey, noteRun), noteRuns.push(noteRun)), next = noteRun(noteOptions);
3179
3338
  }
3180
3339
  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;
3181
3340
  if (inA11y) {
@@ -3200,6 +3359,7 @@ function registerChart(def) {
3200
3359
  probe = legendLayout(withoutForcedCompact({
3201
3360
  ...layoutOptions,
3202
3361
  [FIXED_SIZE_PROBE]: !0,
3362
+ ...def.type === "table" || def.type === "dimswitch" ? { [PLAN_ONLY]: !0 } : {},
3203
3363
  ...def.type === "gantt" && !resolved.fixed.height ? { [ACCEPTANCE_PROBE]: !0 } : {},
3204
3364
  size: resolved.fixed.height ? { width: at, height: Math.max(size.height, minimum.minHeight) } : { width: at }
3205
3365
  }));
@@ -3219,7 +3379,7 @@ function registerChart(def) {
3219
3379
  if (!isRefused(compact)) return compact;
3220
3380
  let full = named(withoutForcedCompact(runOptions), probeHeight).geo;
3221
3381
  return isRefused(full) && compact.warnings[0]?.code === "size-below-floor" ? compact : full;
3222
- }, probeAt = (width, height) => hostView({ ...layoutOptions, size: { width, height } });
3382
+ }, probeAt = (width, height) => hostView({ ...layoutOptions, size: { width, height }, ...def.type === "table" || def.type === "dimswitch" ? { [PLAN_ONLY]: !0 } : {} });
3223
3383
  for (let pass = 0; pass < 6; pass++) {
3224
3384
  let width = Math.max(geo.size.width, floor.minWidth), probe = probeAt(width, Math.max(geo.size.height, floor.minHeight));
3225
3385
  if (!isRefused(probe) && floor.minHeight <= geo.size.height) return sizeRefusal(def.type, def.title, geo.size, sClassMinimum(floor, geo.size));
@@ -3228,7 +3388,8 @@ function registerChart(def) {
3228
3388
  ...layoutOptions,
3229
3389
  size: { width, height },
3230
3390
  [FIXED_SIZE_PROBE]: def.type !== "gantt",
3231
- [ACCEPTANCE_PROBE]: !0
3391
+ [ACCEPTANCE_PROBE]: !0,
3392
+ ...def.type === "table" || def.type === "dimswitch" ? { [PLAN_ONLY]: !0 } : {}
3232
3393
  }, def.type === "gantt"));
3233
3394
  for (!resolved.fixed.height && accepts(low + 1) && (high = low + 1); high - low > 1; ) {
3234
3395
  let mid = Math.floor((low + high) / 2);
@@ -3265,9 +3426,12 @@ function registerChart(def) {
3265
3426
  let probe = named(withoutForcedCompact({ ...layoutOptions, size: { width: geo.size.width, height: natural } })), need = probe.geo.refused ? probe.geo.sizing : void 0;
3266
3427
  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 });
3267
3428
  }
3268
- 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);
3269
- let bandPairs = marksOnBands(geo.scene);
3270
- 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);
3429
+ if (geo.sizing && (geo.sizing = sClassMinimum(geo.sizing, geo.size)), !options[PLAN_ONLY]) {
3430
+ 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);
3431
+ let bandPairs = marksOnBands(geo.scene);
3432
+ bandPairs.length > 0 && (geo.paintWarningRules = [...geo.paintWarningRules ?? [], { kind: "mark-lost-on-band", pairs: bandPairs, before: geo.warnings.length }], pushAll(geo.warnings, markLostOnBandWarnings(theme, bandPairs)));
3433
+ }
3434
+ options?.a11y?.title !== void 0 && (geo.a11y.includeTitle = options.a11y.title);
3271
3435
  let frameWarnings = geo.frame.warnings ?? [];
3272
3436
  for (let warning of frameWarnings)
3273
3437
  geo.warnings.includes(warning) || geo.warnings.push(warning);
@@ -3287,7 +3451,7 @@ function registerChart(def) {
3287
3451
  severity: "warn",
3288
3452
  message: `${truncated.length} placed label(s) omit text; the reading lists their full text in labelsTruncated`,
3289
3453
  suggest: "give the labels more room or shorten their text"
3290
- }), 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;
3454
+ }), pushAll(geo.warnings, unmatchedIdWarnings(geo, data, def.type === "sankey" ? void 0 : options?.highlight, pins, nested)), options[PLAN_ONLY] || (geo.presentation = presentationInfo(geo, target, panelTypeClass(options), textScale)), pushAll(geo.warnings, removedNames), geo;
3291
3455
  }), layout2 = ((options) => withSmallValues(prepared.smallValues, () => layoutBody(options)));
3292
3456
  return layout2.finish = () => {
3293
3457
  legendLayout.finish();
@@ -3361,7 +3525,7 @@ function registerChart(def) {
3361
3525
  run2.finish();
3362
3526
  }
3363
3527
  }, probes = /* @__PURE__ */ new Map(), run = ((runOptions) => withLayoutMemo(() => {
3364
- 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;
3528
+ 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;
3365
3529
  if (cached !== void 0) return cached;
3366
3530
  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;
3367
3531
  if (lost > 0) {
@@ -3380,8 +3544,8 @@ function registerChart(def) {
3380
3544
  run.probe = (at) => run({ ...at, [FULL_LAYOUT_PROBE]: !0 }), run.finish = () => {
3381
3545
  probes.clear(), layoutOnce.finish(), borrowed || (memo.active = !1, memo.heights.clear(), memo.references = void 0);
3382
3546
  };
3383
- let variable = /* @__PURE__ */ new Set(["size", "mode", "belowMinimum", LAYOUT_CALL, FULL_LAYOUT_PROBE, FORCE_COMPACT, WIDTH_PROBE, ACCEPTANCE_PROBE]);
3384
- 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;
3547
+ let variable = /* @__PURE__ */ new Set(["size", "mode", "belowMinimum", LAYOUT_CALL, FULL_LAYOUT_PROBE, FORCE_COMPACT, WIDTH_PROBE, ACCEPTANCE_PROBE, PLAN_ONLY]);
3548
+ 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;
3385
3549
  }, layout = (data, options) => {
3386
3550
  let prepared = options?.[LAYOUT_CALL];
3387
3551
  if (prepared?.accepts(data, options)) return prepared(options);
@@ -3400,7 +3564,7 @@ function registerChart(def) {
3400
3564
  return description !== void 0 && !geo.refused && (geo.a11y.desc = description, geo.story && (geo.story.desc = description)), geo;
3401
3565
  });
3402
3566
  };
3403
- registry.set(def.type, { ...def, sizing, layout: layoutWithFooter, [LAYOUT_CALL]: createLayout });
3567
+ registry.set(def.type, { ...def, sizing, layout: def.finishLayout?.(layoutWithFooter) ?? layoutWithFooter, [LAYOUT_CALL]: createLayout });
3404
3568
  for (let alias of aliases)
3405
3569
  aliasIndex.set(alias, def.type);
3406
3570
  registryRevision += 1;
@@ -3579,12 +3743,24 @@ var unsupported = [
3579
3743
  ];
3580
3744
 
3581
3745
  export {
3582
- themeGeometryTokens,
3583
- presentationInfo,
3746
+ withPlanInputs,
3747
+ memoExactInputKey,
3748
+ ownPlanInput,
3749
+ optionKey,
3750
+ layoutKey,
3751
+ tableTextMeasure,
3752
+ PLAN_ONLY,
3753
+ deferLayout,
3754
+ isPlanned,
3755
+ plannedCutCount,
3756
+ materializeLayout,
3757
+ copyPlannedValue,
3758
+ repeatedResult,
3584
3759
  caseInsensitiveValue,
3585
3760
  inputConversion,
3586
3761
  replaceInputValue,
3587
3762
  crowdedTailCut,
3763
+ ITEM_BUDGET,
3588
3764
  COMBO_LIMIT,
3589
3765
  checkPointBudget,
3590
3766
  typeDocLints,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  PRIORITY,
3
3
  cleanDiff
4
- } from "./chunk-2ALFFOKB.js";
4
+ } from "./chunk-WSKZZ2ZB.js";
5
5
  import {
6
6
  differenceExample,
7
7
  exampleSpec,
8
8
  formatWithSpec,
9
9
  roundedNumber
10
- } from "./chunk-GDVR3XHT.js";
10
+ } from "./chunk-D3PQAVFW.js";
11
11
  import {
12
12
  PERCENTAGE_POINTS,
13
13
  formatAutomaticNumber,
14
14
  roundHalfUp,
15
15
  valueSetDecimals
16
- } from "./chunk-LHKDZAWN.js";
16
+ } from "./chunk-MSYTF3DZ.js";
17
17
 
18
18
  // src/core/charts/diffColumn.ts
19
19
  var COLUMN_MIN_WIDTH = 576, COLUMN_GAP = 16;