boardplot 0.57.0 → 0.58.1

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 (496) hide show
  1. package/CHANGELOG.md +311 -0
  2. package/README.md +48 -14
  3. package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-FXNTFSA4.js} +2 -2
  4. package/dist/{ReaderBox-GCIITQCX.js → ReaderBox-WVOT7VVJ.js} +8 -7
  5. package/dist/{annotateEngine-JMZI6QEG.js → annotateEngine-57L26X77.js} +2 -1
  6. package/dist/build-identity.json +3 -3
  7. package/dist/{chunk-6LQKU6YN.js → chunk-23FT7RLN.js} +11 -10
  8. package/dist/{chunk-5WSIH4SR.js → chunk-2CQBBN7M.js} +4 -4
  9. package/dist/chunk-2DS4MT7T.js +25 -0
  10. package/dist/{chunk-QFIRPOXR.js → chunk-2HII2B6S.js} +3 -3
  11. package/dist/{chunk-JMOBA5ES.js → chunk-2IRMGCYE.js} +2 -2
  12. package/dist/{chunk-JKXJWCJ5.js → chunk-2SWSUNA4.js} +116 -54
  13. package/dist/{chunk-O7Y6RJ4D.js → chunk-33EBLJVZ.js} +11 -11
  14. package/dist/{chunk-EHQLLZCQ.js → chunk-34PKJZRY.js} +59 -34
  15. package/dist/{chunk-SHAAMKN7.js → chunk-35ZJUZUO.js} +18 -18
  16. package/dist/{chunk-TGR6PRKG.js → chunk-3BMPYY26.js} +6 -3
  17. package/dist/{chunk-XJUZC53Y.js → chunk-3E6NLODZ.js} +1 -1
  18. package/dist/{chunk-H3EWFSWI.js → chunk-3ESWPMDW.js} +43 -29
  19. package/dist/{chunk-6KHRMK3I.js → chunk-3M2F7KSS.js} +158 -75
  20. package/dist/{chunk-UBXIGE2P.js → chunk-3MFVJMP6.js} +2 -2
  21. package/dist/{chunk-MOQFYJ3F.js → chunk-3OSQ32GN.js} +5 -5
  22. package/dist/{chunk-HGPFEG2L.js → chunk-3RXUA6VY.js} +5 -5
  23. package/dist/{chunk-I65OLJ2X.js → chunk-42QKUSHJ.js} +13 -3
  24. package/dist/{chunk-FAFUMSPR.js → chunk-4DK67I3B.js} +83 -51
  25. package/dist/{chunk-EEBMK6T6.js → chunk-4DMRIL5K.js} +8 -8
  26. package/dist/chunk-4M3UADCM.js +602 -0
  27. package/dist/{chunk-WSKZZ2ZB.js → chunk-4OJF6DXL.js} +538 -503
  28. package/dist/{chunk-UD6U4EF5.js → chunk-4ROZ4TFL.js} +1 -1
  29. package/dist/{chunk-I7KDPCC7.js → chunk-4TUU3UGY.js} +18 -10
  30. package/dist/{chunk-6ZN2XJFI.js → chunk-54YO56IK.js} +1 -1
  31. package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
  32. package/dist/{chunk-BQIADGJB.js → chunk-5CYLT6FJ.js} +5 -5
  33. package/dist/{chunk-IVQT2E3Y.js → chunk-5I4RPBNE.js} +13 -13
  34. package/dist/{chunk-LW4ZQGVL.js → chunk-5KAYLRRP.js} +7 -8
  35. package/dist/{chunk-2BHLRHF2.js → chunk-5SVGTQTW.js} +4 -4
  36. package/dist/{chunk-5JTRCSBN.js → chunk-62BDQTO6.js} +2 -2
  37. package/dist/{chunk-4RN4OM6I.js → chunk-63JUV7NR.js} +3 -3
  38. package/dist/chunk-645BGVPP.js +26 -0
  39. package/dist/{chunk-JIH52I36.js → chunk-65U6ZBZZ.js} +119 -85
  40. package/dist/{chunk-3DUGZ7ML.js → chunk-6ALORYH7.js} +46 -31
  41. package/dist/{chunk-HB3TH7GY.js → chunk-6AVUTZ6W.js} +10 -6
  42. package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
  43. package/dist/{chunk-W5SVS4B6.js → chunk-6JFQCVNN.js} +4 -4
  44. package/dist/{chunk-IZRTNCJQ.js → chunk-6JTCFPAD.js} +5 -5
  45. package/dist/{chunk-5TUDYKNL.js → chunk-6NGKQNTB.js} +42 -29
  46. package/dist/{chunk-IUVJVMKS.js → chunk-6V3A3MTG.js} +55 -32
  47. package/dist/{chunk-FJKFYQ5I.js → chunk-6YBNVI5I.js} +36 -28
  48. package/dist/chunk-76GPN6AT.js +72 -0
  49. package/dist/{chunk-SHCW2TCA.js → chunk-7GRR72MY.js} +25 -23
  50. package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
  51. package/dist/{chunk-Y5IKCXQR.js → chunk-7YZZCQT3.js} +5 -5
  52. package/dist/chunk-A65B23JK.js +113 -0
  53. package/dist/{chunk-2WTD3GCR.js → chunk-A6N24NGW.js} +3 -3
  54. package/dist/{chunk-72OJBDRB.js → chunk-AAQWFTDM.js} +52 -41
  55. package/dist/{chunk-4JNHF6JW.js → chunk-AGJ2QL4A.js} +84 -40
  56. package/dist/{chunk-I3DLERI7.js → chunk-AICO24HJ.js} +5 -2
  57. package/dist/{chunk-LSKCKGCF.js → chunk-AJGSCVVW.js} +2 -2
  58. package/dist/{chunk-7P7D6WXR.js → chunk-AKZOQGF3.js} +3 -3
  59. package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
  60. package/dist/{chunk-VY67Q6CJ.js → chunk-AMBQ6SWU.js} +36 -33
  61. package/dist/{chunk-73O6AOAA.js → chunk-AQ2PQ7FK.js} +241 -140
  62. package/dist/{chunk-XFCBH3TI.js → chunk-BHLNSJG7.js} +3 -3
  63. package/dist/{chunk-6XU5XGYV.js → chunk-BQ7SN7AW.js} +5 -5
  64. package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
  65. package/dist/{chunk-LSR3SBJ4.js → chunk-BSZOQJXB.js} +234 -136
  66. package/dist/{chunk-KJLH5EHD.js → chunk-BVIJCUWW.js} +175 -110
  67. package/dist/{chunk-2AJWRVZ2.js → chunk-C47POAC5.js} +1 -1
  68. package/dist/{chunk-AOIZJ7GR.js → chunk-C4SQU2PB.js} +6 -6
  69. package/dist/{chunk-Y7Q3VEYC.js → chunk-CCAAI56H.js} +30 -10
  70. package/dist/{chunk-T3WCDDIL.js → chunk-CDUR3KWV.js} +2 -2
  71. package/dist/{chunk-T5MBORBK.js → chunk-CFESVCZR.js} +1 -1
  72. package/dist/{chunk-EEL2N4Y6.js → chunk-CKEFAD4R.js} +5 -5
  73. package/dist/{chunk-WE5WVQE4.js → chunk-CMPHT2LS.js} +3 -3
  74. package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
  75. package/dist/{chunk-JSA3ESEJ.js → chunk-CR5FP5SF.js} +1 -1
  76. package/dist/{chunk-NCCDEUHD.js → chunk-CSMVKG2C.js} +1 -1
  77. package/dist/{chunk-JHWDTV4K.js → chunk-D2TQX7UJ.js} +2 -2
  78. package/dist/{chunk-GHFTKVJN.js → chunk-DHGE46UK.js} +1 -1
  79. package/dist/{chunk-26WNBTWB.js → chunk-DORE2RHL.js} +5 -5
  80. package/dist/{chunk-AFA32LHN.js → chunk-DUOGEFLG.js} +62 -36
  81. package/dist/{chunk-WZB6R2ZX.js → chunk-DZYTXZNS.js} +11 -3
  82. package/dist/{chunk-O4D27FKH.js → chunk-E5YF236N.js} +4 -1
  83. package/dist/{chunk-6EE6XEMA.js → chunk-EB4PQEI3.js} +26 -17
  84. package/dist/{chunk-ANNQJWDX.js → chunk-EBWMTQ4U.js} +285 -34
  85. package/dist/{chunk-EHNGPUTO.js → chunk-EDW5HQND.js} +5 -5
  86. package/dist/{chunk-VM5CQ7CG.js → chunk-EHRRHSPV.js} +2 -2
  87. package/dist/{chunk-PYGEIPPH.js → chunk-EILNJQMN.js} +32 -12
  88. package/dist/{chunk-KGS5Z7SL.js → chunk-ERDKMZ7O.js} +2 -2
  89. package/dist/{chunk-USFIDSTO.js → chunk-ETUKDEGL.js} +18 -11
  90. package/dist/chunk-F2ET5ZTT.js +49 -0
  91. package/dist/{chunk-HVX2E26J.js → chunk-F3XOBFS4.js} +9 -8
  92. package/dist/{chunk-I4NUYVP5.js → chunk-FB6X7QHA.js} +1 -1
  93. package/dist/{chunk-LO3AGGE3.js → chunk-FJNZ7NWD.js} +5 -5
  94. package/dist/{chunk-IRXTNSZL.js → chunk-FPFRLRQO.js} +40 -22
  95. package/dist/{chunk-YTEJYLU7.js → chunk-FRR7BJ3B.js} +2 -2
  96. package/dist/{chunk-DPUCT567.js → chunk-FVWHEM2N.js} +7 -5
  97. package/dist/{chunk-A33MFWHW.js → chunk-G7BCLYL4.js} +2 -2
  98. package/dist/{chunk-2KCK63DD.js → chunk-G7CXJPEN.js} +2 -2
  99. package/dist/{chunk-2X6XY4K4.js → chunk-GB3RZYTK.js} +39 -19
  100. package/dist/{chunk-MTCDGSYW.js → chunk-GHCU6OSE.js} +2 -2
  101. package/dist/{chunk-AFGQXMKT.js → chunk-GNMB72V7.js} +161 -67
  102. package/dist/chunk-GOFS336W.js +24 -0
  103. package/dist/{chunk-JMXNXLAC.js → chunk-GQYT7G4F.js} +2 -2
  104. package/dist/{chunk-RRPTQGRU.js → chunk-H3VICNTN.js} +1 -1
  105. package/dist/{chunk-JRRSKCGG.js → chunk-H4EDDGGX.js} +3 -3
  106. package/dist/{chunk-5H4HFRDO.js → chunk-H7BCNS5J.js} +5 -5
  107. package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
  108. package/dist/chunk-HF4BCPIV.js +26 -0
  109. package/dist/{chunk-YCUNFAEE.js → chunk-HM4AJ5U4.js} +238 -127
  110. package/dist/{chunk-7FAO4ICF.js → chunk-HO4ILCW7.js} +2 -2
  111. package/dist/{chunk-ZV3SNRJI.js → chunk-HTQGJQZN.js} +4 -2
  112. package/dist/{chunk-G5BUGYIL.js → chunk-I52OMC5B.js} +192 -113
  113. package/dist/{chunk-TMXRTYGT.js → chunk-I5VNHDPR.js} +3 -2
  114. package/dist/{chunk-M74H7QYD.js → chunk-IDXYHDQY.js} +1 -1
  115. package/dist/{chunk-SSZB3VXG.js → chunk-IFUAPFL5.js} +102 -47
  116. package/dist/{chunk-IPWUBZ4P.js → chunk-IIWZJ5ZM.js} +1 -1
  117. package/dist/{chunk-KF3ZHLHQ.js → chunk-IMUMPKXF.js} +5 -5
  118. package/dist/{chunk-HC6WHTBX.js → chunk-IPBOREIY.js} +1 -1
  119. package/dist/{chunk-76UL4CT4.js → chunk-IPZJCBWD.js} +27 -22
  120. package/dist/{chunk-5P4MXWKP.js → chunk-ITEJQHXE.js} +4 -4
  121. package/dist/{chunk-WDAZ2MT4.js → chunk-IVDTP6SV.js} +4 -4
  122. package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
  123. package/dist/{chunk-K6Y4HBK7.js → chunk-IXU5C3YY.js} +1000 -904
  124. package/dist/{chunk-EDBUVDRI.js → chunk-JBAVMO56.js} +372 -93
  125. package/dist/{chunk-VY2NPB2Q.js → chunk-JNDWRV34.js} +4 -4
  126. package/dist/{chunk-XYUXB5VK.js → chunk-JT3UTEWZ.js} +3 -3
  127. package/dist/{chunk-A6XCVOC5.js → chunk-JY4LTPOV.js} +1 -1
  128. package/dist/{chunk-VT7PBGL2.js → chunk-JYSFAH7C.js} +23 -36
  129. package/dist/chunk-K7XPTQBJ.js +267 -0
  130. package/dist/{chunk-2I76VFMZ.js → chunk-KI7VCHNZ.js} +49 -37
  131. package/dist/{chunk-YB6QGOCO.js → chunk-KUWIRCYJ.js} +2 -2
  132. package/dist/{chunk-MQ5EKWIG.js → chunk-KVBLTAO7.js} +5 -5
  133. package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
  134. package/dist/{chunk-BY5JGQFZ.js → chunk-KWIP5YRA.js} +4 -4
  135. package/dist/{chunk-KAAB2DIV.js → chunk-LJDATBPB.js} +6 -6
  136. package/dist/{chunk-TDDSWNGD.js → chunk-LOXZSTIM.js} +30 -28
  137. package/dist/{chunk-ZTSJ7NY6.js → chunk-LPMSGO7L.js} +3 -3
  138. package/dist/{chunk-IXM6BAM4.js → chunk-LXH4RPY4.js} +1 -1
  139. package/dist/{chunk-D5G67OER.js → chunk-LYAT62UT.js} +1 -1
  140. package/dist/{chunk-EFKFZNQC.js → chunk-M5LPP2GQ.js} +34 -20
  141. package/dist/{chunk-QZMLSK43.js → chunk-MALSSEXO.js} +294 -145
  142. package/dist/{chunk-XN7JDII2.js → chunk-MB5EX2YG.js} +230 -107
  143. package/dist/{chunk-PSYPB22T.js → chunk-MGXHFRQK.js} +5 -5
  144. package/dist/{chunk-GADI2DU7.js → chunk-MVR7YKBF.js} +152 -27
  145. package/dist/{chunk-IFURKTOL.js → chunk-MXUPMGRY.js} +2 -2
  146. package/dist/{chunk-C5SQEYTQ.js → chunk-NFGV5OAR.js} +153 -65
  147. package/dist/{chunk-RZNYW7UP.js → chunk-NNIZG3TH.js} +8 -0
  148. package/dist/{chunk-AKJO6N4K.js → chunk-NQPJWQTW.js} +11 -4
  149. package/dist/{chunk-YFI5PN5O.js → chunk-NSMYIUBZ.js} +34 -11
  150. package/dist/{chunk-H6EJ63QN.js → chunk-NT3HCXQC.js} +144 -83
  151. package/dist/chunk-NZ7FX3AE.js +65 -0
  152. package/dist/chunk-O3LT4TAI.js +34 -0
  153. package/dist/{chunk-L2XRUG4P.js → chunk-OELB7MTE.js} +5 -5
  154. package/dist/{chunk-7MYJUJZV.js → chunk-OMNB27GM.js} +4 -4
  155. package/dist/{chunk-GS5UG6QD.js → chunk-OO63YP35.js} +1 -1
  156. package/dist/{chunk-CEMXGMQN.js → chunk-OQUH7I5T.js} +3 -3
  157. package/dist/{chunk-Q7VPTN5X.js → chunk-OS7C2KMQ.js} +4 -4
  158. package/dist/{chunk-NRYERHEI.js → chunk-OTWIW2L3.js} +5 -5
  159. package/dist/chunk-OUNYHYJL.js +27 -0
  160. package/dist/{chunk-54HEIM2A.js → chunk-OUR5ZHCB.js} +2 -2
  161. package/dist/{chunk-Z257SH5U.js → chunk-OZA7HA6L.js} +1 -1
  162. package/dist/{chunk-WJQX7HBH.js → chunk-OZLKEBCD.js} +2 -2
  163. package/dist/{chunk-YGPLUENN.js → chunk-P3NMDPDP.js} +132 -83
  164. package/dist/{chunk-NINK4G7U.js → chunk-P5RCP4NK.js} +2 -2
  165. package/dist/{chunk-DYSEZVIJ.js → chunk-P6DEFCMQ.js} +2 -2
  166. package/dist/{chunk-J22ETKDJ.js → chunk-P7UOOMXE.js} +2 -2
  167. package/dist/chunk-PMT75APP.js +94 -0
  168. package/dist/{chunk-KLQKHA3T.js → chunk-PNYWBY4K.js} +5 -5
  169. package/dist/{chunk-XNV7VOIT.js → chunk-PVGJM2HP.js} +4 -4
  170. package/dist/{chunk-4U2WSW6F.js → chunk-Q2I3QLE3.js} +65 -36
  171. package/dist/{chunk-LGMV7ZV4.js → chunk-QATOOZMH.js} +5 -5
  172. package/dist/{chunk-H2POQ4LB.js → chunk-QFNWGSCT.js} +4 -4
  173. package/dist/{chunk-CIDOL4FO.js → chunk-QQMESIDA.js} +5 -5
  174. package/dist/{chunk-OTGNVAI4.js → chunk-R3VSWOTI.js} +4 -4
  175. package/dist/{chunk-UCIAHSJK.js → chunk-R5SGE2NS.js} +7 -3
  176. package/dist/{chunk-FX5VZK5F.js → chunk-RJICOOB3.js} +14 -8
  177. package/dist/{chunk-RMVCKO6N.js → chunk-RLH2CQCD.js} +458 -136
  178. package/dist/{chunk-VFLMBA2M.js → chunk-RPGEB3Z5.js} +19 -18
  179. package/dist/{chunk-KIXNHDXS.js → chunk-RQKDEJFQ.js} +5 -5
  180. package/dist/chunk-SBKM6XFS.js +211 -0
  181. package/dist/{chunk-TQ5HHNM3.js → chunk-SCAYWQZK.js} +2 -2
  182. package/dist/{chunk-Y5WHM2Q5.js → chunk-SH4FLUAD.js} +1 -1
  183. package/dist/{chunk-7EQU2TUN.js → chunk-SH4UGK5U.js} +84 -53
  184. package/dist/{chunk-EY4OA4OF.js → chunk-SHYS52VO.js} +370 -785
  185. package/dist/{chunk-ZSYU6LIH.js → chunk-SKPOXLG5.js} +5 -5
  186. package/dist/{chunk-OAT6FWKL.js → chunk-T7PRG6AO.js} +5 -5
  187. package/dist/chunk-TBZT5WUT.js +39 -0
  188. package/dist/{chunk-5HTGSB6Y.js → chunk-TKH655ON.js} +3 -3
  189. package/dist/{chunk-YO5UKKCQ.js → chunk-TMEUK2WS.js} +6 -2
  190. package/dist/{chunk-X5OVVMZX.js → chunk-TVOMGNFQ.js} +1 -1
  191. package/dist/{chunk-JARJP576.js → chunk-TX5FSNAU.js} +435 -29
  192. package/dist/{chunk-LUZ7HXBT.js → chunk-U52PNFPX.js} +1 -1
  193. package/dist/{chunk-OKM5LYYP.js → chunk-U6QZOMYC.js} +5 -5
  194. package/dist/{chunk-F4JAGDPD.js → chunk-UBYDY4B7.js} +8 -8
  195. package/dist/{chunk-V3UE3TB7.js → chunk-UCKUAKYQ.js} +2 -2
  196. package/dist/{chunk-NO7GRVUU.js → chunk-UOOXWGBU.js} +8 -8
  197. package/dist/{chunk-LFX5BERN.js → chunk-USMKNNOU.js} +47 -33
  198. package/dist/chunk-USSG6TJV.js +23 -0
  199. package/dist/{chunk-HFFKN7PA.js → chunk-UY34DDUM.js} +3 -3
  200. package/dist/{chunk-3LNVEE5Z.js → chunk-V7FV66KL.js} +1 -1
  201. package/dist/{chunk-62JZL6FW.js → chunk-V7JFT7NQ.js} +56 -42
  202. package/dist/{chunk-UP4JSNDR.js → chunk-V7NUJEJE.js} +1 -1
  203. package/dist/{chunk-FERP4WS3.js → chunk-VACZGW5R.js} +16 -18
  204. package/dist/{chunk-BO5EJBLH.js → chunk-VC62V7CX.js} +82 -47
  205. package/dist/{chunk-53OEKS4L.js → chunk-VESSIKBG.js} +6 -3
  206. package/dist/chunk-VJULLJLN.js +70 -0
  207. package/dist/{chunk-QLWUFEKR.js → chunk-VKNQOSGW.js} +8 -8
  208. package/dist/{chunk-BFDPY7JM.js → chunk-VTY6YHQZ.js} +11 -6
  209. package/dist/{chunk-UFZXZJJG.js → chunk-W2QILXAL.js} +5 -5
  210. package/dist/{chunk-QHPJ5ZKS.js → chunk-W6XSIBLR.js} +5 -5
  211. package/dist/{chunk-DJBMA4FW.js → chunk-WDJSDJLV.js} +4 -6
  212. package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
  213. package/dist/{chunk-IW3YUMPI.js → chunk-WFBN2HXR.js} +2 -2
  214. package/dist/chunk-WGJIYFVQ.js +24 -0
  215. package/dist/{chunk-43PCSBVQ.js → chunk-WKXLJNHW.js} +634 -8
  216. package/dist/{chunk-EWR6WVOV.js → chunk-WLH5IBFY.js} +6 -6
  217. package/dist/{chunk-RHVP62HI.js → chunk-WMQ57FOP.js} +5 -5
  218. package/dist/{chunk-GKQLKUMF.js → chunk-WNTUBGBB.js} +41 -32
  219. package/dist/{chunk-RHBQ2Q5H.js → chunk-WOICFLOJ.js} +60 -43
  220. package/dist/{chunk-QNLESRH6.js → chunk-WUP6C4ZD.js} +2 -2
  221. package/dist/chunk-WVCDISZP.js +89 -0
  222. package/dist/{chunk-CT4RFZO4.js → chunk-WW4KLAVO.js} +38 -23
  223. package/dist/{chunk-I5ZADE2U.js → chunk-X3QUASBR.js} +1 -1
  224. package/dist/{chunk-TXMS7QUJ.js → chunk-X46PSAJ7.js} +6 -6
  225. package/dist/{chunk-Z2BDTZDT.js → chunk-XC32OSCD.js} +97 -39
  226. package/dist/{chunk-M2OQK2FO.js → chunk-XD5XB22R.js} +2 -2
  227. package/dist/chunk-XLLWIHN2.js +24 -0
  228. package/dist/{chunk-SD6ENKTO.js → chunk-XMX4PCFL.js} +3 -3
  229. package/dist/{chunk-BM2A3IGQ.js → chunk-XO44IJGZ.js} +1 -1
  230. package/dist/{chunk-2HD5RY2U.js → chunk-XRRG4MBM.js} +3 -3
  231. package/dist/chunk-XSC4IXXC.js +24 -0
  232. package/dist/{chunk-D5RAVZ5C.js → chunk-XSEETONJ.js} +10 -9
  233. package/dist/{chunk-YBYV56FS.js → chunk-XZOFKLTD.js} +3 -3
  234. package/dist/{chunk-YNHPPZ7S.js → chunk-XZXZNI7A.js} +1 -1
  235. package/dist/{chunk-W7Q6PLT4.js → chunk-Y6E4JU3U.js} +37 -37
  236. package/dist/{chunk-XR7VOF2V.js → chunk-YGWPOYDE.js} +25 -13
  237. package/dist/{chunk-HDSHS2QZ.js → chunk-YJUBX3QF.js} +70 -47
  238. package/dist/{chunk-BDCKHLUB.js → chunk-YLRAAJYV.js} +72 -304
  239. package/dist/{chunk-I6QGYRY4.js → chunk-YW35KSXR.js} +2 -2
  240. package/dist/{chunk-GAFEN3H7.js → chunk-Z3WQXVFV.js} +2 -2
  241. package/dist/{chunk-WKWCNS6K.js → chunk-Z62TJQO5.js} +5 -5
  242. package/dist/{chunk-D3PQAVFW.js → chunk-Z6DUNKFU.js} +152 -29
  243. package/dist/{chunk-FF7MV4D4.js → chunk-Z6H5ED2I.js} +1 -1
  244. package/dist/{chunk-TWRFVW3J.js → chunk-ZB3JIL3L.js} +138 -89
  245. package/dist/{chunk-KUMJI5B6.js → chunk-ZBCCJPGW.js} +17 -14
  246. package/dist/{chunk-CV3NC75L.js → chunk-ZBOOMLHD.js} +1 -1
  247. package/dist/{chunk-QRZESG66.js → chunk-ZCHKIR7C.js} +64 -239
  248. package/dist/{chunk-ZDD3MJ2H.js → chunk-ZDJ7C64T.js} +1 -1
  249. package/dist/{chunk-KQ2WZ6BY.js → chunk-ZG4BMJRL.js} +1 -1
  250. package/dist/{chunk-QYOZ46ZQ.js → chunk-ZIVCPXXL.js} +467 -650
  251. package/dist/{chunk-V62B23VC.js → chunk-ZNRSYS76.js} +8 -2
  252. package/dist/{chunk-NIDH22DI.js → chunk-ZSYFQSPF.js} +12 -2
  253. package/dist/cli/index.js +8 -3
  254. package/dist/{core-5S5CJHBG.js → core-2GWH3ED7.js} +2 -1
  255. package/dist/{core-ZSERZGK6.js → core-3LCSHMKN.js} +3 -1
  256. package/dist/{core-FTQBESDS.js → core-3NQ5TXOJ.js} +3 -1
  257. package/dist/{core-D2OIGYC7.js → core-3XGQBHJI.js} +4 -1
  258. package/dist/{core-T3OSZOVV.js → core-4N6WH3IF.js} +3 -1
  259. package/dist/{core-VRVL6LIM.js → core-5CRTPVYA.js} +3 -1
  260. package/dist/{core-7XKNJM7Y.js → core-5K4HRIHX.js} +5 -1
  261. package/dist/{core-CCB3IXGD.js → core-743ZXTWK.js} +3 -1
  262. package/dist/{core-4M4RY7MX.js → core-7OAGK7ZJ.js} +3 -1
  263. package/dist/{core-VT35VDVS.js → core-7YDNMUU3.js} +6 -1
  264. package/dist/{core-4PW4MXWR.js → core-AAPPZSSZ.js} +4 -1
  265. package/dist/{core-OBPTBKX6.js → core-AC5AKSCM.js} +2 -1
  266. package/dist/{core-QFAVWFI3.js → core-AEALAFRA.js} +2 -1
  267. package/dist/{core-WXZJ7V7S.js → core-BEK6EPVF.js} +4 -1
  268. package/dist/{core-WP73P4CW.js → core-BRBJ3LPF.js} +5 -1
  269. package/dist/{core-AVA4XLQ2.js → core-EGTJOQK7.js} +2 -1
  270. package/dist/{core-XKXDXALI.js → core-FE4THVV3.js} +6 -1
  271. package/dist/{core-MAW4S3KA.js → core-FEBNVNVE.js} +5 -1
  272. package/dist/{core-L3UR75IJ.js → core-HIONDJGC.js} +4 -1
  273. package/dist/{core-GS4DXDDG.js → core-HMBMMF5Z.js} +4 -1
  274. package/dist/{core-QM34237W.js → core-LSYX4UQQ.js} +2 -1
  275. package/dist/{core-N2JEWJ7D.js → core-MIERUUUT.js} +2 -1
  276. package/dist/{core-A7HXVSKB.js → core-NTOOJZRA.js} +2 -1
  277. package/dist/{core-JDZDBTID.js → core-O5S2NETE.js} +2 -1
  278. package/dist/{core-OFPPRHYY.js → core-Q2Y3JEWL.js} +3 -1
  279. package/dist/{core-BJZEJ63L.js → core-RTBPKALG.js} +3 -1
  280. package/dist/{core-WNT6ZMRO.js → core-T7CKLMT2.js} +2 -1
  281. package/dist/{core-VWYXK2R3.js → core-TIIPSEK3.js} +4 -1
  282. package/dist/{core-EMSJRGSE.js → core-VBMWBPKM.js} +2 -1
  283. package/dist/{core-WPEYRK6Y.js → core-VLXOQ5CK.js} +4 -1
  284. package/dist/{core-7TTM4KRP.js → core-VYHQ5JY6.js} +3 -1
  285. package/dist/{core-DMDAXVMY.js → core-XJZWD43V.js} +2 -1
  286. package/dist/{core-AMWCZTOT.js → core-XUNZB6BM.js} +5 -1
  287. package/dist/{core-UNX4ZV4M.js → core-YKDDPMWW.js} +5 -1
  288. package/dist/{core-SKMHEA4Y.js → core-YN2VVGUL.js} +3 -1
  289. package/dist/{core-ZACFV6XR.js → core-YP4MNIMV.js} +5 -1
  290. package/dist/{core-FCSA74RT.js → core-ZETBHLSV.js} +3 -1
  291. package/dist/{dataTable-7IO546LM.js → dataTable-FEQZSDUZ.js} +7 -2
  292. package/dist/{engine-US3N6UCH.js → engine-SCQVNSAM.js} +23 -18
  293. package/dist/fixtures.js +2 -1
  294. package/dist/flags-BVLSAXT3.js +10 -0
  295. package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
  296. package/dist/geo/dach.js +1 -1
  297. package/dist/geo/de-states.js +1 -1
  298. package/dist/geo/eu27.js +1 -1
  299. package/dist/geo/europe.js +1 -1
  300. package/dist/geo/index.js +2 -2
  301. package/dist/geo/us-states.js +1 -1
  302. package/dist/geo/world.js +1 -1
  303. package/dist/index.js +27 -20
  304. package/dist/{main-2UWKGUHR.js → main-7UKLXCIL.js} +50 -119
  305. package/dist/mcp/server.js +121 -118
  306. package/dist/react/bar.js +5 -1
  307. package/dist/react/bartable.js +3 -1
  308. package/dist/react/box.js +3 -1
  309. package/dist/react/bullet.js +4 -1
  310. package/dist/react/butterfly.js +5 -1
  311. package/dist/react/choropleth.js +3 -1
  312. package/dist/react/cohort.js +3 -1
  313. package/dist/react/column.js +5 -1
  314. package/dist/react/combo.js +5 -1
  315. package/dist/react/creative.js +4 -1
  316. package/dist/react/diagram.js +3 -1
  317. package/dist/react/dimswitch.js +6 -1
  318. package/dist/react/dot.js +4 -1
  319. package/dist/react/export.js +29 -18
  320. package/dist/react/funnel.js +4 -1
  321. package/dist/react/gantt.js +3 -1
  322. package/dist/react/grid.js +6 -1
  323. package/dist/react/heatmap.js +3 -1
  324. package/dist/react/histogram.js +6 -1
  325. package/dist/react/index.js +92 -85
  326. package/dist/react/kpi.js +4 -1
  327. package/dist/react/likert.js +6 -1
  328. package/dist/react/line.js +4 -1
  329. package/dist/react/mekko.js +5 -1
  330. package/dist/react/pareto.js +6 -1
  331. package/dist/react/pie.js +4 -1
  332. package/dist/react/prepare.js +35 -22
  333. package/dist/react/pvm.js +6 -1
  334. package/dist/react/pyramid.js +5 -1
  335. package/dist/react/sankey.js +3 -1
  336. package/dist/react/scatter.js +3 -1
  337. package/dist/react/slope.js +4 -1
  338. package/dist/react/sparkline.js +4 -1
  339. package/dist/react/spec.js +17 -13
  340. package/dist/react/status.js +3 -1
  341. package/dist/react/story.js +3 -2
  342. package/dist/react/table.js +4 -1
  343. package/dist/react/theme.js +5 -3
  344. package/dist/react/tilemap.js +3 -1
  345. package/dist/react/treemap.js +3 -1
  346. package/dist/react/variance.js +5 -1
  347. package/dist/react/waffle.js +3 -1
  348. package/dist/react/waterfall.js +5 -1
  349. package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
  350. package/dist/rows.js +2 -2
  351. package/dist/{rowsModule-DYDVHBAX.js → rowsModule-WJH4QNXZ.js} +1 -1
  352. package/dist/{schema-YDZCGL56.js → schema-2R32F6AW.js} +1 -3
  353. package/dist/{schema-A2XUZUCV.js → schema-2TPGJGVR.js} +1 -3
  354. package/dist/{schema-MD22QYZU.js → schema-47BG2TZA.js} +1 -3
  355. package/dist/{schema-HEB6ZDI5.js → schema-56MOEOVR.js} +1 -3
  356. package/dist/{schema-K4V4PYBO.js → schema-5MSR4LNN.js} +1 -3
  357. package/dist/{schema-NOBNFD2F.js → schema-5RIYEWE6.js} +1 -3
  358. package/dist/{schema-OXO2XY4Y.js → schema-ALBF6V7Y.js} +1 -3
  359. package/dist/{schema-F2Q6MH7W.js → schema-BA6WP5YZ.js} +1 -3
  360. package/dist/{schema-G5KSSI5W.js → schema-CBL2SMVR.js} +1 -3
  361. package/dist/{schema-WFGDVBJK.js → schema-CWKGLDSR.js} +1 -3
  362. package/dist/{schema-DHMMGDTI.js → schema-DBIQFL56.js} +1 -3
  363. package/dist/{schema-626QXX4G.js → schema-DL7V6NN2.js} +1 -3
  364. package/dist/{schema-FC6J6KZC.js → schema-DUVJMFKQ.js} +1 -3
  365. package/dist/{schema-LGLQBRC4.js → schema-ECJERHKF.js} +1 -2
  366. package/dist/{schema-4JRNXEZF.js → schema-EDSEKZDJ.js} +1 -3
  367. package/dist/{schema-I44IDRGD.js → schema-ESR6ZIK4.js} +1 -3
  368. package/dist/{schema-FSYDLMGD.js → schema-F7TWGLRZ.js} +1 -3
  369. package/dist/{schema-JCU6LTYD.js → schema-FGB6IGZM.js} +1 -3
  370. package/dist/{schema-MGETMQYC.js → schema-FKGGTM4Z.js} +1 -2
  371. package/dist/{schema-XIHAKX3B.js → schema-JIAQE7WO.js} +1 -1
  372. package/dist/{schema-6V5K3J2V.js → schema-JYZ4RF6S.js} +1 -3
  373. package/dist/{schema-GXOG4MXL.js → schema-K7F6TEDK.js} +1 -2
  374. package/dist/{schema-NMIYKGHE.js → schema-KAK6DZX4.js} +1 -3
  375. package/dist/{schema-PHIHMDVB.js → schema-KCJ6WTGV.js} +1 -3
  376. package/dist/{schema-XRSORYBI.js → schema-MOKWIGF7.js} +1 -3
  377. package/dist/{schema-3KMU5737.js → schema-MQT6BMNK.js} +1 -3
  378. package/dist/{schema-JJWORI7D.js → schema-MR3BPPQR.js} +1 -3
  379. package/dist/{schema-IFTIMTS3.js → schema-OPXZYIW7.js} +1 -3
  380. package/dist/{schema-UXWKA3PI.js → schema-PV7JGX5H.js} +1 -3
  381. package/dist/{schema-CNJ4Y6CT.js → schema-PWPQF5RC.js} +1 -3
  382. package/dist/{schema-WBOPCTPC.js → schema-PYQEUC5P.js} +1 -3
  383. package/dist/{schema-J4HCSD5C.js → schema-Q5DACE4I.js} +6 -2
  384. package/dist/{schema-IUY7VYHJ.js → schema-R42VXFIS.js} +1 -3
  385. package/dist/{schema-WX2RS4OU.js → schema-TVUJNEX7.js} +1 -3
  386. package/dist/{schema-6PL46VXZ.js → schema-WZOSDDDJ.js} +1 -3
  387. package/dist/{schema-FGE5YK3S.js → schema-Y4TI2T3T.js} +1 -3
  388. package/dist/{schema-MQB6CE5V.js → schema-ZU2EU2VP.js} +1 -3
  389. package/dist/{specValidation-XGELWQUU.js → specValidation-DC4TVHWD.js} +3 -1
  390. package/dist/theme.js +4 -3
  391. package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
  392. package/dist/types/core/annotate.d.ts +27 -2
  393. package/dist/types/core/annotateArms.d.ts +3 -1
  394. package/dist/types/core/annotateTargets.d.ts +4 -0
  395. package/dist/types/core/annotationOrigin.d.ts +13 -0
  396. package/dist/types/core/axis.d.ts +2 -2
  397. package/dist/types/core/charts/band/stacks.d.ts +7 -1
  398. package/dist/types/core/charts/column/model.d.ts +13 -0
  399. package/dist/types/core/charts/combo/layout.d.ts +7 -0
  400. package/dist/types/core/charts/gantt/calendar.d.ts +4 -0
  401. package/dist/types/core/charts/grid/normalize.d.ts +5 -0
  402. package/dist/types/core/charts/grid/schema.d.ts +2 -2
  403. package/dist/types/core/charts/pareto/layout.d.ts +2 -0
  404. package/dist/types/core/charts/pvm/types.d.ts +1 -0
  405. package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
  406. package/dist/types/core/charts/scatter/model.d.ts +5 -0
  407. package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
  408. package/dist/types/core/charts/table/resolve.d.ts +8 -3
  409. package/dist/types/core/charts/table/view.d.ts +24 -1
  410. package/dist/types/core/claims/browser.d.ts +2 -0
  411. package/dist/types/core/claims/ids.d.ts +38 -0
  412. package/dist/types/core/deferred.d.ts +1 -0
  413. package/dist/types/core/diagnostics/describe.d.ts +6 -1
  414. package/dist/types/core/doc/diagnostics.d.ts +3 -2
  415. package/dist/types/core/formatSpec.d.ts +33 -14
  416. package/dist/types/core/frame.d.ts +25 -58
  417. package/dist/types/core/frameText.d.ts +203 -0
  418. package/dist/types/core/geometry.d.ts +2 -0
  419. package/dist/types/core/label/categoryRow.d.ts +19 -2
  420. package/dist/types/core/label/solver.d.ts +23 -2
  421. package/dist/types/core/normalize/shared.d.ts +12 -2
  422. package/dist/types/core/notes.d.ts +15 -2
  423. package/dist/types/core/reading.d.ts +12 -1
  424. package/dist/types/core/request.d.ts +1 -1
  425. package/dist/types/core/schema/capability.d.ts +12 -0
  426. package/dist/types/core/seriesIdentity.d.ts +4 -1
  427. package/dist/types/core/sizing.d.ts +37 -1
  428. package/dist/types/core/structureCounts.d.ts +3 -1
  429. package/dist/types/core/theme.d.ts +33 -4
  430. package/dist/types/core/themeRules.d.ts +2 -0
  431. package/dist/types/core/types/annotations.d.ts +74 -4
  432. package/dist/types/core/types/options.d.ts +35 -3
  433. package/dist/types/core/types/scene.d.ts +30 -2
  434. package/dist/types/core/types/table.d.ts +6 -0
  435. package/dist/types/core/types/theme.d.ts +23 -0
  436. package/dist/types/react/TableChart.d.ts +5 -0
  437. package/dist/validate.js +13 -6
  438. package/docs/TELEMETRY.md +2 -2
  439. package/docs/manual.md +252 -62
  440. package/docs/reference/bar.md +12 -4
  441. package/docs/reference/bartable.md +2 -2
  442. package/docs/reference/box.md +8 -4
  443. package/docs/reference/bullet.md +9 -5
  444. package/docs/reference/butterfly.md +10 -5
  445. package/docs/reference/choropleth.md +3 -5
  446. package/docs/reference/cohort.md +1 -1
  447. package/docs/reference/column.md +18 -4
  448. package/docs/reference/combo.md +10 -5
  449. package/docs/reference/creative.md +3 -7
  450. package/docs/reference/diagram.md +1 -1
  451. package/docs/reference/dimswitch.md +23 -88
  452. package/docs/reference/dot.md +9 -5
  453. package/docs/reference/fixtures.md +37 -1
  454. package/docs/reference/funnel.md +9 -5
  455. package/docs/reference/gantt.md +8 -15
  456. package/docs/reference/grid.md +5 -2
  457. package/docs/reference/heatmap.md +10 -6
  458. package/docs/reference/kpi.md +1 -1
  459. package/docs/reference/likert.md +9 -4
  460. package/docs/reference/line.md +18 -5
  461. package/docs/reference/mekko.md +10 -5
  462. package/docs/reference/options.md +17 -13
  463. package/docs/reference/pareto.md +8 -4
  464. package/docs/reference/pie.md +9 -5
  465. package/docs/reference/pvm.md +9 -5
  466. package/docs/reference/pyramid.md +8 -4
  467. package/docs/reference/react.md +5 -5
  468. package/docs/reference/sankey.md +2 -2
  469. package/docs/reference/scatter.md +8 -4
  470. package/docs/reference/slope.md +9 -5
  471. package/docs/reference/sparkline.md +1 -1
  472. package/docs/reference/status.md +1 -1
  473. package/docs/reference/table.md +33 -114
  474. package/docs/reference/theme.md +12 -4
  475. package/docs/reference/tilemap.md +2 -4
  476. package/docs/reference/treemap.md +1 -1
  477. package/docs/reference/variance.md +12 -6
  478. package/docs/reference/waffle.md +1 -1
  479. package/docs/reference/warnings.md +1077 -0
  480. package/docs/reference/waterfall.md +16 -4
  481. package/docs/use-cases.md +25 -13
  482. package/llms.txt +19 -6
  483. package/package.json +18 -3
  484. package/dist/chunk-5RHP7YTL.js +0 -24
  485. package/dist/chunk-6VU2XI3W.js +0 -89
  486. package/dist/chunk-6WJOHZPW.js +0 -26
  487. package/dist/chunk-FL3FQ2YA.js +0 -27
  488. package/dist/chunk-G5CELEUR.js +0 -26
  489. package/dist/chunk-M4SPKUZE.js +0 -7
  490. package/dist/chunk-OF7FMGH5.js +0 -24
  491. package/dist/chunk-S2TSXUYP.js +0 -24
  492. package/dist/chunk-TKERVBJ3.js +0 -23
  493. package/dist/chunk-VMGTNB6H.js +0 -25
  494. package/dist/chunk-WZL4EEBS.js +0 -11
  495. package/dist/chunk-YJGFT63R.js +0 -27
  496. package/dist/chunk-ZNX5J7D7.js +0 -47
@@ -4,46 +4,48 @@ import {
4
4
  import {
5
5
  eyebrowFont,
6
6
  figureRole
7
- } from "./chunk-GAFEN3H7.js";
7
+ } from "./chunk-Z3WQXVFV.js";
8
8
  import {
9
9
  chartPalette
10
- } from "./chunk-IW3YUMPI.js";
10
+ } from "./chunk-WFBN2HXR.js";
11
11
  import {
12
12
  structureCount
13
- } from "./chunk-XCROSJ2Z.js";
13
+ } from "./chunk-KW4JXWHO.js";
14
14
  import {
15
+ NARROW_FORM,
16
+ SIZE_TOLERANCE,
15
17
  heightOmitted,
16
18
  resolveSizing,
17
19
  rowDrivenHeight
18
- } from "./chunk-AFGQXMKT.js";
20
+ } from "./chunk-GNMB72V7.js";
19
21
  import {
20
22
  prepareFractionData
21
- } from "./chunk-I65OLJ2X.js";
23
+ } from "./chunk-42QKUSHJ.js";
22
24
  import {
23
25
  COMPACT_SOURCE_LINES,
24
26
  PRIORITY,
25
27
  TEXT_ASCENT,
26
28
  authoredNotes,
27
- createOccupiedIndex,
29
+ claimId,
28
30
  frameTextOptions,
29
31
  labelCtx,
30
32
  labelsToNodes,
31
33
  legendRequired,
32
34
  normalizeLegendOption,
33
- round2,
34
35
  solveFrame,
35
36
  solveLabels,
36
- textRole
37
- } from "./chunk-WSKZZ2ZB.js";
37
+ textRole,
38
+ withUnprintedClaims
39
+ } from "./chunk-4OJF6DXL.js";
38
40
  import {
39
41
  disclosureNote,
40
42
  engineNote
41
- } from "./chunk-WZB6R2ZX.js";
43
+ } from "./chunk-DZYTXZNS.js";
42
44
  import {
43
45
  exampleSpec,
44
46
  formatWithSpec,
45
47
  roundedNumber
46
- } from "./chunk-D3PQAVFW.js";
48
+ } from "./chunk-Z6DUNKFU.js";
47
49
  import {
48
50
  authoredDecimals,
49
51
  autoDecimals,
@@ -61,19 +63,23 @@ import {
61
63
  arrowHeadPath,
62
64
  arrowShaftEnd,
63
65
  canvasMargin,
66
+ classStepWidth,
67
+ colorRolePaints,
64
68
  contrastInkPaint,
69
+ createOccupiedIndex,
65
70
  dashToken,
66
71
  markRolePaint,
67
72
  mixedPaint,
68
73
  panelTypeClass,
69
74
  resolveTheme,
75
+ round2,
70
76
  seriesPaint,
71
77
  spaceTokens,
72
78
  strokeToken,
73
79
  surfaceFloorPaint,
74
80
  textScaleOf,
75
81
  themeForWidth
76
- } from "./chunk-JARJP576.js";
82
+ } from "./chunk-TX5FSNAU.js";
77
83
  import {
78
84
  DEFAULT_TARGET,
79
85
  NormalizeError,
@@ -84,16 +90,16 @@ import {
84
90
  normalizeSeriesValues,
85
91
  panelHeroSizesPx,
86
92
  resolveSize
87
- } from "./chunk-FX5VZK5F.js";
93
+ } from "./chunk-RJICOOB3.js";
94
+ import {
95
+ defaultMeasurer,
96
+ wrapText
97
+ } from "./chunk-UIHGGWES.js";
88
98
  import {
89
99
  maxOf,
90
100
  minOf,
91
101
  pushAll
92
102
  } from "./chunk-WYJEOMNY.js";
93
- import {
94
- defaultMeasurer,
95
- wrapText
96
- } from "./chunk-UIHGGWES.js";
97
103
 
98
104
  // src/core/strings/waffle.ts
99
105
  var EN = {
@@ -182,11 +188,11 @@ function layoutPass(data, options, lean = !1, oneRow = !1) {
182
188
  );
183
189
  let cellCount = grid.rows * grid.columns, cellShare = 100 / cellCount;
184
190
  if (!data || !Array.isArray(data.categories) || data.categories.length === 0)
185
- throw new NormalizeError("empty-data", "categories", "waffle requires at least one category");
191
+ throw new NormalizeError("empty-data", "categories", "waffle requires at least one category", void 0, void 0, ["data", "categories"]);
186
192
  if (!Array.isArray(data.series) || data.series.length === 0)
187
- throw new NormalizeError("empty-data", "series", "waffle requires at least one series");
193
+ throw new NormalizeError("empty-data", "series", "waffle requires at least one series", void 0, void 0, ["data", "series"]);
188
194
  let cats = data.categories.map((c, i) => normalizeCategory(c, i)), series = data.series.map((s, si) => {
189
- if (!s.id) throw new NormalizeError("missing-id", `series[${si}]`, "series requires an id");
195
+ if (!s.id) throw new NormalizeError("missing-id", `series[${si}]`, "series requires an id", void 0, void 0, ["data", "series", si]);
190
196
  return { ser: s, label: s.label ?? s.id, cells: normalizeSeriesValues(s, cats, si) };
191
197
  }), square = (options.variant ?? "cells") === "square", refuse = (code, key, message, suggest) => {
192
198
  throw new NormalizeError(code, key, message, suggest, void 0, ["options", key]);
@@ -243,7 +249,9 @@ function layoutPass(data, options, lean = !1, oneRow = !1) {
243
249
  "waffle-over-100",
244
250
  `categories[${cat.id}]`,
245
251
  `the values of '${cat.id}' add up to ${Math.round(total * 1e6) / 1e6}; one waffle holds at most 100`,
246
- "Lower the values so they add up to 100 or less. If the values are fractions, add valueKind: 'fraction'."
252
+ "Lower the values so they add up to 100 or less. If the values are fractions, add valueKind: 'fraction'.",
253
+ void 0,
254
+ ["data", "categories", ci]
247
255
  );
248
256
  let noValue = values.every((value) => value === null);
249
257
  missingPanel.push(noValue), noValue && warnings.push({ code: "waffle-missing-value", severity: "info", message: `'${cat.id}' has no value, so its ${square ? "square" : "grid"} is empty and its headline prints n/a`, owner: { categoryId: cat.id } });
@@ -289,7 +297,7 @@ function layoutPass(data, options, lean = !1, oneRow = !1) {
289
297
  value === 0 && refuse("waffle-reference-zero", "reference", "reference value 0 has no square to outline", "Give a reference share above 0, or remove reference."), value > 0 && value <= 100 || refuse("waffle-reference-out-of-range", "reference", `reference value ${value} is outside 0 to 100`, "Give the reference share in percent, above 0 and up to 100."), ref.label === void 0 && refuse("waffle-reference-label-required", "reference", "a reference given as a value needs a label that says what it stands for", "Add reference.label, such as 'Headcount 6%', or name the panel in reference.categoryId."), reference = { value, label: ref.label };
290
298
  }
291
299
  }
292
- let paints = series.map(({ ser }, si) => ser.fill ? { css: ser.fill } : ser.colorRole ? markRolePaint(ser.colorRole, !0) : seriesPaint(si, palette ? options.palette : void 0)), restPaint = surfaceFloorPaint({ token: "othersMark" }, []), panelPaint = (pi, si) => {
300
+ let roles = colorRolePaints(series.map(({ ser }) => ser)), paints = series.map(({ ser }, si) => ser.fill ? { css: ser.fill } : ser.colorRole ? roles.get(ser.id) : seriesPaint(si, palette ? options.palette : void 0)), restPaint = surfaceFloorPaint({ token: "othersMark" }, []), panelPaint = (pi, si) => {
293
301
  let role = groupOf[pi] === void 0 ? void 0 : groups[groupOf[pi]].colorRole;
294
302
  return role ? markRolePaint(role, !0) : paints[si];
295
303
  }, referenceGround = (pi) => panels[pi].segments[0].value > reference.value ? panelPaint(pi, 0) : mixedPaint(panelPaint(pi, 0), { token: "background" }, PALE_SQUARE), referencePanel = Math.max(0, panels.findIndex((panel) => panel.categoryId !== reference?.categoryId)), valueText = (si, pi) => cellValue(series[si].cells[pi]) === null ? theme.table?.glyphs?.missing ?? "\u2013" : formatFor(si, pi)(panels[pi].segments[si].value), restSpec = options.format ? exampleSpec(options.format, options.locale?.language, void 0, cellNumbers) : void 0, restFormat = (value) => {
@@ -326,18 +334,18 @@ function layoutPass(data, options, lean = !1, oneRow = !1) {
326
334
  { t: "path", id: referenceSwatch.id, d, stroke: referenceSwatch.stroke, width: referenceSwatch.width, dash: referenceSwatch.dash, owner: referenceSwatch.owner, part: referenceSwatch.part }
327
335
  );
328
336
  }
329
- let plot = frame.plot, space = spaceTokens(theme, size.width), arrows = square && options.arrows === !0, n = panels.length, fullGutter = arrows ? Math.max(space.margin.left, ARROW_GUTTER) : space.margin.left, gutter = square && !arrows && n > 1 && (plot.w - (n - 1) * fullGutter) / n < grid.columns * MIN_PITCH ? COMPACT_GUTTER : fullGutter, figure = figureRole(theme), hero = n > 1 ? panelHeroSizesPx(target, theme.type.title.size, size.width, textScaleOf(options)) : kpiHeroSizesPx(target, theme.type.title.size, textScaleOf(options)), heroBase = options[KPI_VALUE_SIZE] ?? hero.preferred, pinnedH = !heightOmitted(options.size) && options[TARGET_SIZE]?.fixed.height !== !1, sideValueText = !lean && !square && n === 1 && series.length === 1 && !subtotal && pinnedH && options.heightFill !== "none" && options.headline !== "none" && !missing(panels[0]) ? headlineFormat(0)(panels[0].total) : void 0, sideValueFont = { family: figure.family, size: heroBase, weight: figure.weight, lineHeight: 1.2 }, sideLabelText = measureInFrame ? "" : panels[0].label, sideValueW = sideValueText === void 0 ? 0 : measure(sideValueText, sideValueFont).width, sideLabelWrap = wrapText(sideLabelText, labelFont, Math.max(sideValueW, VALUE_SIDE_LABEL_EMS * labelFont.size), 3, measure), sideLabelLines = sideLabelText === "" ? [] : sideLabelWrap.lines, sideTextW = Math.max(sideValueW, ...sideLabelLines.map((line) => measure(line, labelFont).width)), sideValueH = measure("0", sideValueFont).height, sideLabelH = sideLabelLines.length === 0 ? 0 : measure("0", labelFont).height + (sideLabelLines.length - 1) * labelFont.size * (labelFont.lineHeight ?? 1.2), stackedTopH = (sideLabelLines.length === 0 ? 0 : measure("0", labelFont).height + space.gapTitleSubtitle) + sideValueH + space.gapSubtitlePlot, sidePanelW = plot.w - VALUE_SIDE_GAP - sideTextW, sideValuePitch = Math.min(sidePanelW / grid.columns, plot.h / grid.rows), valueSide = sideValueText !== void 0 && sideValuePitch >= MIN_PITCH && sideValuePitch > VALUE_SIDE_GAIN * Math.min(plot.w / grid.columns, (plot.h - stackedTopH) / grid.rows), labelTexts = panels.map((panel) => measureInFrame || valueSide ? "" : panel.label), longestWord = labelTexts.map((text) => Math.max(0, ...text.split(/\s+/).filter(Boolean).map((word) => measure(word, labelFont).width))), rowsFor = (maxColumns) => {
337
+ let plot = frame.plot, space = spaceTokens(theme, size.width), arrows = square && options.arrows === !0, n = panels.length, fullGutter = arrows ? Math.max(space.margin.left, ARROW_GUTTER) : space.margin.left, gutter = square && !arrows && n > 1 && (plot.w - (n - 1) * fullGutter) / n < grid.columns * MIN_PITCH ? COMPACT_GUTTER : fullGutter, figure = figureRole(theme), hero = n > 1 ? panelHeroSizesPx(target, theme.type.title.size, classStepWidth(size.width), textScaleOf(options)) : kpiHeroSizesPx(target, theme.type.title.size, textScaleOf(options)), heroBase = options[KPI_VALUE_SIZE] ?? hero.preferred, pinnedH = !heightOmitted(options.size) && options[TARGET_SIZE]?.fixed.height !== !1, sideValueText = !lean && !square && n === 1 && series.length === 1 && !subtotal && pinnedH && options.heightFill !== "none" && options.headline !== "none" && !missing(panels[0]) ? headlineFormat(0)(panels[0].total) : void 0, sideValueFont = { family: figure.family, size: heroBase, weight: figure.weight, lineHeight: 1.2 }, sideLabelText = measureInFrame ? "" : panels[0].label, sideValueW = sideValueText === void 0 ? 0 : measure(sideValueText, sideValueFont).width, sideLabelWrap = wrapText(sideLabelText, labelFont, Math.max(sideValueW, VALUE_SIDE_LABEL_EMS * labelFont.size), 3, measure), sideLabelLines = sideLabelText === "" ? [] : sideLabelWrap.lines, sideTextW = Math.max(sideValueW, ...sideLabelLines.map((line) => measure(line, labelFont).width)), sideValueH = measure("0", sideValueFont).height, sideLabelH = sideLabelLines.length === 0 ? 0 : measure("0", labelFont).height + (sideLabelLines.length - 1) * labelFont.size * (labelFont.lineHeight ?? 1.2), stackedTopH = (sideLabelLines.length === 0 ? 0 : measure("0", labelFont).height + space.gapTitleSubtitle) + sideValueH + space.gapSubtitlePlot, sidePanelW = plot.w - VALUE_SIDE_GAP - sideTextW, sideValuePitch = Math.min(sidePanelW / grid.columns, plot.h / grid.rows), valueSide = sideValueText !== void 0 && sideValuePitch >= MIN_PITCH && sideValuePitch > VALUE_SIDE_GAIN * Math.min(plot.w / grid.columns, (plot.h - stackedTopH) / grid.rows), labelTexts = panels.map((panel) => measureInFrame || valueSide ? "" : panel.label), longestWord = labelTexts.map((text) => Math.max(0, ...text.split(/\s+/).filter(Boolean).map((word) => measure(word, labelFont).width))), rowsFor = (maxColumns) => {
330
338
  let rows = [[]];
331
339
  for (let pi = 0; pi < n; pi++) {
332
340
  let row = rows[rows.length - 1], gi = groupOf[pi], groupLength = gi === void 0 ? 1 : groups[gi].panels.length, groupStarts = gi !== void 0 && groups[gi].panels[0] === cats[pi].id;
333
341
  (row.length === maxColumns || groupStarts && groupLength <= maxColumns && row.length + groupLength > maxColumns) && (row = [], rows.push(row)), row.push(pi);
334
342
  }
335
343
  return rows;
336
- }, colGap = gutter, labelRoom = (rows, pi, w) => square && !rows.some((row) => row[row.length - 1] === pi) ? w + colGap - LABEL_CLEAR : w, minColumns = oneRow && !square ? n : Math.min(n, Math.max(Math.ceil(n / 2), maxOf(groups.map((group) => group.panels.length)))), panelRows = rowsFor(n);
344
+ }, colGap = gutter, labelRoom = (rows, pi, w) => square && !rows.some((row) => row[row.length - 1] === pi) ? w + colGap - LABEL_CLEAR : w, minColumns = oneRow && !square ? n : Math.min(n, Math.max(Math.ceil(n / 2), maxOf(groups.map((group) => group.panels.length)))), cellsFit = (cols) => square || options.mode !== "compact" && options[NARROW_FORM] !== !0 || cols * grid.columns * MIN_PITCH + (cols - 1) * gutter <= plot.w + SIZE_TOLERANCE, panelRows = rowsFor(n);
337
345
  for (let c = n; c >= minColumns; c--) {
338
346
  panelRows = rowsFor(c);
339
347
  let cols = maxOf(panelRows.map((row) => row.length)), w = (plot.w - (cols - 1) * gutter) / cols;
340
- if ((!square || w >= SQUARE_MIN_SIDE) && panels.every((_, pi) => longestWord[pi] <= labelRoom(panelRows, pi, w))) break;
348
+ if ((!square || w >= SQUARE_MIN_SIDE) && cellsFit(cols) && panels.every((_, pi) => longestWord[pi] <= labelRoom(panelRows, pi, w))) break;
341
349
  }
342
350
  if (panelRows.length > 1) {
343
351
  let even = rowsFor(Math.max(minColumns, Math.ceil(n / panelRows.length)));
@@ -596,7 +604,7 @@ function layoutPass(data, options, lean = !1, oneRow = !1) {
596
604
  plot,
597
605
  labelPad: 2
598
606
  }), fontOf = new Map(requests.map((request) => [request.id, request.font])), solved = solveLabels(requests, occupied, solveCtx), hiddenReference = solved.placed.find((label) => label.id === "reference" && label.hidden);
599
- hiddenReference && (hiddenReference.hidden = "redundant", hiddenReference.noteLocation = referenceNote ? frame.frame.footnoteNodeIds?.[0] : `legend:${referenceId}`, referenceNote && (hiddenReference.noted = !0), solved.warnings = solved.warnings.filter((warning) => warning.code !== "label-hidden" || !warning.message.includes("label 'reference'"))), pushAll(warnings, solved.warnings);
607
+ hiddenReference && (hiddenReference.hidden = "redundant", hiddenReference.noteLocation = referenceNote ? frame.frame.footnoteNodeIds?.[0] : `legend:${referenceId}`, referenceNote && (hiddenReference.noted = !0), solved.warnings = solved.warnings.filter((warning) => warning.code !== "label-hidden" || warning.detail?.labelId !== "reference")), pushAll(warnings, solved.warnings);
600
608
  for (let label of solved.placed)
601
609
  !label.hidden && label.id.startsWith("category:") && (label.ink = { token: theme.type.eyebrow?.ink ?? "inkMuted" }), !label.hidden && label.id === "subtotal:label" && (label.ink = { token: "inkMuted" }), !label.hidden && label.id.startsWith("total:") && panels.some((panel) => missing(panel) && label.id === `total:${panel.categoryId}`) && (label.ink = { token: "inkMuted" });
602
610
  let allLabels = solved.placed;
@@ -606,7 +614,7 @@ function layoutPass(data, options, lean = !1, oneRow = !1) {
606
614
  let headlineMin = showHeadline ? Math.max(0, maxOf(headlineValues.map((text) => text === void 0 ? 0 : measure(text, { ...headlineFont, size: hero.minimum }).width))) : 0, minPanelW = square ? Math.max(SQUARE_MIN_SIDE, Math.ceil(headlineMin), Math.ceil(Math.max(0, maxOf(longestWord)))) : Math.max(grid.columns * MIN_PITCH, Math.ceil(headlineMin)), floorColumns = square ? minColumns : Math.min(n, columns), floorGutter = square && !arrows && floorColumns > 1 ? COMPACT_GUTTER : gutter, minWidth = size.width - plot.w + Math.max(
607
615
  floorColumns * minPanelW + (floorColumns - 1) * floorGutter,
608
616
  readout ? Math.ceil(Math.max(entryW, subtotal ? subValueW + 6 + subLabelW : 0)) : 0
609
- ), floorGridH = square ? Math.min(grid.rows * MIN_PITCH, panelW) : grid.rows * MIN_PITCH, minHeight = frameH + Math.max(blocksH(rowRequiredBottomH) + panelRows.length * floorGridH + (panelRows.length - 1) * gutter, topBlockH + keyH), reading = panels.map((panel, pi) => describePanel(panel, series.map((s) => s.label), headlineFormat(pi), cellCount, options)), geometry = {
617
+ ), floorGridH = square ? Math.min(grid.rows * MIN_PITCH, panelW) : grid.rows * MIN_PITCH, minHeight = frameH + Math.max(blocksH(rowRequiredBottomH) + panelRows.length * floorGridH + (panelRows.length - 1) * gutter, topBlockH + keyH), reading = panels.map((panel, pi) => describePanel(panel, series.map((s) => s.label), headlineFormat(pi), cellCount, options)), geometry = withUnprintedClaims({
610
618
  type: "waffle",
611
619
  size,
612
620
  sizing: resolveSizing({ ...WAFFLE_SIZING, minWidth: 0 }, size, { minWidth, minHeight, naturalHeight }),
@@ -634,7 +642,7 @@ function layoutPass(data, options, lean = !1, oneRow = !1) {
634
642
  },
635
643
  warnings,
636
644
  debug: { occupied: occupied.snapshot(), decisions: solved.decisions }
637
- }, fits = Math.max(minHeight, frame.frame.minHeight ?? 0) <= size.height + 1e-6 && minWidth <= size.width + 1e-6;
645
+ }, panels.flatMap((panel) => panel.segments.filter((segment) => segment.cells > 0).map((segment) => claimId("waffle:cells", panel.categoryId, segment.seriesId)))), fits = Math.max(minHeight, frame.frame.minHeight ?? 0) <= size.height + 1e-6 && minWidth <= size.width + 1e-6;
638
646
  return { geometry, naturalHeight, fits };
639
647
  }
640
648
  function describePanel(panel, names, headline, cellCount, options) {
@@ -0,0 +1,72 @@
1
+ import {
2
+ rectContains
3
+ } from "./chunk-TX5FSNAU.js";
4
+ import {
5
+ NormalizeError
6
+ } from "./chunk-RJICOOB3.js";
7
+
8
+ // src/core/charts/band/labelPosition.ts
9
+ function hasLabelPosition(options) {
10
+ return options.labelPosition !== void 0 && options.labelPosition !== "auto";
11
+ }
12
+ function refuseLabelPosition(options, variant, accepted) {
13
+ if (!(!hasLabelPosition(options) || accepted.includes(options.labelPosition)))
14
+ throw new NormalizeError(
15
+ "label-position-unsupported",
16
+ "options.labelPosition",
17
+ `${variant} does not support labelPosition '${options.labelPosition}'`,
18
+ `Use labelPosition ${["auto", ...accepted].map((value) => `'${value}'`).join(", ")}.`,
19
+ void 0,
20
+ ["options", "labelPosition"]
21
+ );
22
+ }
23
+ function positionBarLabel(request, options, bar) {
24
+ let position = options.labelPosition;
25
+ if (position === void 0 || position === "auto" || options.labelPlacements?.[request.id] || request.pinnedSlot) return request;
26
+ let { rect, size: { width: w, height: h }, orientation, endPositive, fallback, muted } = bar, vertical = orientation === "vertical", gap = bar.edgeGap ?? 4, outsideGap = bar.outsideGap ?? 4, center = { x: rect.x + (rect.w - w) / 2, y: rect.y + (rect.h - h) / 2, w, h }, inside = (at) => {
27
+ if (muted || bar.zero || w + 8 > rect.w || h + (vertical && at !== "center" ? 4 : 2) > rect.h) return [];
28
+ let positive = at === "insideBase" ? !endPositive : endPositive, seat = at === "center" ? center : vertical ? { ...center, y: positive ? rect.y + gap : rect.y + rect.h - h - gap } : { ...center, x: positive ? rect.x + rect.w - w - gap : rect.x + gap };
29
+ if (!rectContains(rect, seat)) return [];
30
+ let paint = bar.paints ? bar.paints.find((paint2) => rectContains(paint2.rect, seat)) : bar;
31
+ return paint ? [{
32
+ slot: at === "center" ? "insideBarCenter" : at === "insideEnd" ? "insideBarEnd" : "insideBarBase",
33
+ rect: seat,
34
+ penalty: 0,
35
+ // The fit check already leaves air inside the bar; extra padding would reject its base line.
36
+ pad: 0,
37
+ insideFill: paint.insideFill,
38
+ insidePaint: paint.insidePaint,
39
+ insidePattern: paint.insidePattern
40
+ }] : [];
41
+ }, outside = (positive) => ({
42
+ slot: vertical ? positive ? "outsideBarTop" : "outsideBarBottom" : positive ? "outsideBarRight" : "outsideBarLeft",
43
+ rect: vertical ? { ...center, y: positive ? rect.y - h - outsideGap : rect.y + rect.h + outsideGap } : { ...center, x: positive ? rect.x + rect.w + outsideGap : rect.x - w - outsideGap },
44
+ penalty: 0
45
+ }), asked = position === "outsideEnd" ? [outside(endPositive)] : inside(position), next = fallback === "bridge" ? [outside(!0), outside(!1)] : fallback === "inside" || fallback === "stack" && !bar.zero ? [] : [outside(endPositive)], old = request.candidates.flatMap((candidate) => {
46
+ if (!candidate.slot.startsWith("inside")) return [candidate];
47
+ if (muted || bar.zero) return [];
48
+ if (fallback === "stack") return [candidate];
49
+ let heightRoom = vertical && !/Center/.test(candidate.slot) ? 4 : 2;
50
+ if (w + 8 > rect.w || h + heightRoom > rect.h || !rectContains(rect, candidate.rect)) return [];
51
+ let paint = bar.paints ? bar.paints.find((paint2) => rectContains(paint2.rect, candidate.rect)) : bar;
52
+ return paint ? [{
53
+ ...candidate,
54
+ needsBacking: !1,
55
+ insideFill: paint.insideFill,
56
+ insidePaint: paint.insidePaint,
57
+ insidePattern: paint.insidePattern
58
+ }] : [];
59
+ }), others = ["center", "insideEnd", "insideBase"].filter((at) => at !== position).flatMap(inside), clear = [
60
+ ...asked,
61
+ ...next.map((candidate, i) => ({ ...candidate, penalty: i + 1 })),
62
+ ...old.map((candidate) => ({ ...candidate, penalty: candidate.penalty + next.length + 2 })),
63
+ ...others.map((candidate) => ({ ...candidate, penalty: next.length + 40 }))
64
+ ].map((candidate) => ({ ...candidate, keepOffLines: !0, overRules: !1, overValueLines: !1 }));
65
+ return { ...request, candidates: [...clear, ...request.candidates.map((candidate) => ({ ...candidate, penalty: candidate.penalty + next.length + 80 }))] };
66
+ }
67
+
68
+ export {
69
+ hasLabelPosition,
70
+ refuseLabelPosition,
71
+ positionBarLabel
72
+ };
@@ -10,13 +10,13 @@ import {
10
10
  } from "./chunk-PWROWDZS.js";
11
11
  import {
12
12
  figureRole
13
- } from "./chunk-GAFEN3H7.js";
13
+ } from "./chunk-Z3WQXVFV.js";
14
14
  import {
15
15
  chartPalette
16
- } from "./chunk-IW3YUMPI.js";
16
+ } from "./chunk-WFBN2HXR.js";
17
17
  import {
18
18
  structureCount
19
- } from "./chunk-XCROSJ2Z.js";
19
+ } from "./chunk-KW4JXWHO.js";
20
20
  import {
21
21
  CARD_HEIGHT_MEMO,
22
22
  CARD_MIN_WIDTH,
@@ -26,13 +26,12 @@ import {
26
26
  resolveSizing,
27
27
  spread1DResult,
28
28
  warnSpreadOverflow
29
- } from "./chunk-AFGQXMKT.js";
29
+ } from "./chunk-GNMB72V7.js";
30
30
  import {
31
31
  NOTED_LABELS,
32
32
  PRIORITY,
33
33
  authoredNotes,
34
34
  composedTextRole,
35
- createOccupiedIndex,
36
35
  fixedPlotChrome,
37
36
  frameTextOptions,
38
37
  hiddenNoteWith,
@@ -40,56 +39,57 @@ import {
40
39
  labelsToNodes,
41
40
  markNotedLabels,
42
41
  normalizeLegendOption,
43
- round2,
44
42
  shareUnitOptions,
45
43
  solveFrame,
46
44
  solveLabels,
47
45
  valueNoteLine
48
- } from "./chunk-WSKZZ2ZB.js";
46
+ } from "./chunk-4OJF6DXL.js";
49
47
  import {
50
48
  disclosureNote
51
- } from "./chunk-WZB6R2ZX.js";
49
+ } from "./chunk-DZYTXZNS.js";
52
50
  import {
53
51
  formatterFromExample,
54
52
  parseFormatExample,
55
53
  seriesRasterFormatter,
56
54
  withUnit
57
- } from "./chunk-D3PQAVFW.js";
55
+ } from "./chunk-Z6DUNKFU.js";
58
56
  import {
59
57
  chartStrings,
60
58
  shareSetFormatter
61
59
  } from "./chunk-MSYTF3DZ.js";
62
60
  import {
63
61
  canvasMargin,
62
+ colorRolePaints,
64
63
  contrastInkPaint,
64
+ createOccupiedIndex,
65
65
  emphasisWeight,
66
66
  groupRampPaint,
67
- markRolePaint,
68
67
  paintColor,
69
68
  panelTypeClass,
70
69
  resolveTheme,
70
+ round2,
71
71
  seriesPaint,
72
72
  strokeToken,
73
73
  textSizeOf,
74
74
  themeForWidth
75
- } from "./chunk-JARJP576.js";
75
+ } from "./chunk-TX5FSNAU.js";
76
76
  import {
77
77
  NormalizeError,
78
78
  TARGET_SIZE,
79
79
  accessibleTitle,
80
80
  resolveSize
81
- } from "./chunk-FX5VZK5F.js";
82
- import {
83
- maxOf,
84
- minOf,
85
- pushAll
86
- } from "./chunk-WYJEOMNY.js";
81
+ } from "./chunk-RJICOOB3.js";
87
82
  import {
88
83
  defaultMeasurer,
89
84
  graphemes,
90
85
  splitNameBreaks,
91
86
  wrapText
92
87
  } from "./chunk-UIHGGWES.js";
88
+ import {
89
+ maxOf,
90
+ minOf,
91
+ pushAll
92
+ } from "./chunk-WYJEOMNY.js";
93
93
 
94
94
  // src/core/strings/treemap.ts
95
95
  var EN = {
@@ -150,7 +150,7 @@ function layoutTreemapAt(data, options, memo) {
150
150
  options.strings?.hiddenLabels === void 0 && (options = { ...options, strings: { ...options.strings, ...treemapDefaultStrings(options) } });
151
151
  let byValue = (options.order ?? "value") === "value", locale = options.locale?.language;
152
152
  if (!data || !Array.isArray(data.items) || data.items.length === 0)
153
- throw new NormalizeError("empty-data", "items", "treemap requires at least one item");
153
+ throw new NormalizeError("empty-data", "items", "treemap requires at least one item", void 0, void 0, ["data", "items"]);
154
154
  let leftOut = [], grouped = data.items.some((item) => item.value !== null && item.value > 0 && item.group !== void 0) || (data.groups?.length ?? 0) > 0, items = data.items.flatMap((item, index) => {
155
155
  if (item.value === 0 || item.value === null)
156
156
  return leftOut.push(item.label ?? item.id), warnings.push({
@@ -180,7 +180,7 @@ function layoutTreemapAt(data, options, memo) {
180
180
  );
181
181
  return [{ id: item.id, label: item.label ?? item.id, ...item.group !== void 0 ? { group: item.group } : {}, value: item.value, index }];
182
182
  });
183
- if (items.length === 0) throw new NormalizeError("empty-data", "items", chartString(options, "treemapNoPositiveValues"));
183
+ if (items.length === 0) throw new NormalizeError("empty-data", "items", chartString(options, "treemapNoPositiveValues"), void 0, void 0, ["data", "items"]);
184
184
  if (leftOut.length && (options = { ...options, notes: { ...options.notes, show: [.../* @__PURE__ */ new Set([...options.notes?.show ?? ["note"], "disclosure"])] } }), shape === "circle" && items.length > TREEMAP_CIRCLE_MAX_ITEMS)
185
185
  throw new NormalizeError(
186
186
  "treemap-circle-too-many-items",
@@ -209,9 +209,11 @@ function layoutTreemapAt(data, options, memo) {
209
209
  let g = spec;
210
210
  return [{ id: g.id, label: g.label ?? g.id, total: own.reduce((sum, item) => sum + item.value, 0), items: own, paint: { css: "" }, gi }];
211
211
  }).map(({ gi: _gi, ...g }) => g);
212
- byValue && (groups = groups.map((g, i) => ({ g, i })).sort((a, b) => b.g.total - a.g.total || a.i - b.i).map(({ g }) => g)), groups.forEach((g, gi) => {
213
- let spec = groupSpecs.find((s) => s.id === g.id);
214
- g.paint = spec?.fill ? { css: spec.fill } : spec?.colorRole ? markRolePaint(spec.colorRole, !0) : palette ? seriesPaint(gi, options.palette) : grouped ? groupRampPaint(gi, groups.length) : seriesPaint(gi);
212
+ byValue && (groups = groups.map((g, i) => ({ g, i })).sort((a, b) => b.g.total - a.g.total || a.i - b.i).map(({ g }) => g));
213
+ let specOf = (id) => groupSpecs.find((s) => s.id === id), roles = colorRolePaints(groups.map((g) => specOf(g.id) ?? { id: g.id }));
214
+ groups.forEach((g, gi) => {
215
+ let spec = specOf(g.id);
216
+ g.paint = spec?.fill ? { css: spec.fill } : spec?.colorRole ? roles.get(g.id) : palette ? seriesPaint(gi, options.palette) : grouped ? groupRampPaint(gi, groups.length) : seriesPaint(gi);
215
217
  });
216
218
  let ordered = groups.flatMap((g) => g.items), total = groups.reduce((sum, g) => sum + g.total, 0), cellValue = options.cellValue ?? "value", percentExample = options.format && cellValue !== "value" && parseFormatExample(options.format).suffix.includes("%") ? options.format : void 0, valueExample = percentExample ? void 0 : options.format, numberFormat = seriesRasterFormatter(valueExample, ordered.map((item) => item.value), locale, options.unit, options.target);
217
219
  !valueExample && numberFormat.spec.magnitude === "none" && ordered.every((item) => item.value < 1 || Number.isInteger(item.value)) && (numberFormat.spec.wholeFrom = 1);
@@ -599,7 +601,7 @@ function layoutTreemapAt(data, options, memo) {
599
601
  warnings,
600
602
  debug: { occupied: occupied.snapshot(), decisions: solved.decisions }
601
603
  };
602
- markNotedLabels(geometry, hiddenNote.ids, { strings: options.strings });
604
+ markNotedLabels(geometry, hiddenNote.ids, hiddenNote.marks);
603
605
  let bigItemIds = new Set(ordered.filter((item) => item.value / total >= LARGE_TILE_SHARE).map((item) => item.id));
604
606
  return FIT_SCORE.set(geometry, {
605
607
  hidden: solved.placed.filter((l) => l.hidden && l.kind !== "grandTotal").length,
@@ -14,6 +14,9 @@ var loaded, fontkit;
14
14
  async function loadRasterFonts() {
15
15
  fontkit ??= await import("./module-ZSR7KTAS.js");
16
16
  }
17
+ function drawsPng(format, out) {
18
+ return typeof format == "string" && /png/i.test(format) || typeof out == "string" && /\.png$/i.test(out);
19
+ }
17
20
  function rasterFontkit() {
18
21
  if (!fontkit)
19
22
  try {
@@ -161,6 +164,7 @@ function rasterizeWithResvg(resvg, svg, width, scale, fontFamily) {
161
164
 
162
165
  export {
163
166
  loadRasterFonts,
167
+ drawsPng,
164
168
  loadResvg,
165
169
  primaryFamily,
166
170
  installedFamilies,
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-7BQK2UDV.js";
5
5
  import {
6
6
  optionKeyCheck
7
- } from "./chunk-FF7MV4D4.js";
7
+ } from "./chunk-Z6H5ED2I.js";
8
8
  import {
9
9
  createChartComponent
10
- } from "./chunk-BDCKHLUB.js";
10
+ } from "./chunk-YLRAAJYV.js";
11
11
  import {
12
12
  sparklineCore
13
- } from "./chunk-4RN4OM6I.js";
13
+ } from "./chunk-63JUV7NR.js";
14
14
  import {
15
15
  registeredType
16
- } from "./chunk-D5G67OER.js";
16
+ } from "./chunk-LYAT62UT.js";
17
17
 
18
18
  // src/react/charts/sparkline.ts
19
- var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labelPlacements: 0, scaleGroup: { y: 0, id: 0 }, highlight: 0, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, ring: 0, endLabels: 0, valueLabel: 0, stroke: 0, reference: 0, ringTone: 0 } }), SparklineChart = createChartComponent(registeredType(sparklineCore), checkOptionKeys);
19
+ var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, scaleGroup: { y: 0, id: 0 }, highlight: 0, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, ring: 0, endLabels: 0, valueLabel: 0, stroke: 0, reference: 0, ringTone: 0 } }), SparklineChart = createChartComponent(registeredType(sparklineCore), checkOptionKeys);
20
20
 
21
21
  export {
22
22
  SparklineChart
@@ -0,0 +1,113 @@
1
+ import {
2
+ pushAll
3
+ } from "./chunk-WYJEOMNY.js";
4
+
5
+ // src/cli/grammar.ts
6
+ var BOOL = { kind: "boolean" }, VALUE = { kind: "value" }, FLAG_GRAMMAR = {
7
+ help: {},
8
+ list: {},
9
+ describe: { full: BOOL, path: VALUE, schema: VALUE },
10
+ fixtures: { type: VALUE, id: VALUE, kind: VALUE },
11
+ render: { format: VALUE, target: VALUE, width: VALUE, height: VALUE, scale: VALUE, background: VALUE, overwrite: BOOL, out: VALUE, o: VALUE, return: VALUE, rows: VALUE, columns: VALUE, quiet: BOOL, "font-tables": VALUE },
12
+ measure: { target: VALUE, width: VALUE, rows: VALUE, columns: VALUE, "font-tables": VALUE },
13
+ // Authoring tool, not a render path: reads a licensed font directory with
14
+ // fontkit and writes reusable width tables (docs/FONTS.md).
15
+ fonts: { out: VALUE, o: VALUE, check: BOOL },
16
+ // The user's switch for usage counts and the problem report (docs/TELEMETRY.md).
17
+ telemetry: {},
18
+ feedback: { category: VALUE, summary: VALUE, type: VALUE, codes: VALUE, options: VALUE, send: BOOL }
19
+ }, HELP_VERBS = ["help", "--help", "-h"], VERBS = Object.keys(FLAG_GRAMMAR), POSITIONALS = {
20
+ help: 0,
21
+ list: 0,
22
+ describe: 1,
23
+ fixtures: 0,
24
+ render: 1,
25
+ measure: 1,
26
+ fonts: 2,
27
+ telemetry: 1,
28
+ feedback: 0
29
+ }, USAGE = {
30
+ list: "boardplot list",
31
+ describe: "boardplot describe <type|theme> [--full] [--path field] [--schema data|options]",
32
+ fixtures: "boardplot fixtures [--type t] [--id i] [--kind example|torture|all]",
33
+ render: 'boardplot render <spec.json|-> [--format svg|png] [--target report|dashboard|slide|print] [--width n[px|pt|mm]] [--height n[px|pt|mm]] [--scale n] [--background theme|transparent] [--out dir|file.png|file.svg|-] [--overwrite] [--return svg,reading] [--rows data.csv|data.tsv|data.txt|data.json --columns category=c,series=s,value=v[,valueKind=fraction]] [--quiet] [--font-tables file]. Rows: waterfall label=l,value=v[,type=t]; scatter/bubble x=x,y=y[,size=s,label=l,group=g]; sankey source=s,target=t,value=v[,sourceStage=a,targetStage=b]; table [label=l,id=i], columns declared in spec data.columns; histogram value=v; box category=c,value=v[,categoryLabel=l,date=d]. --columns also takes a JSON object, such as {"category":"c","value":"v"}. --out - writes one chart to stdout and its JSON to stderr. --target sets the reading context and beats options.target; the default is report. A bare --width or --height is px; 660pt or 180mm give physical units. --overwrite replaces existing output files; without it, a taken name gets a -N suffix. --quiet prints one JSON object {ok, outputs} on success, plus the parts --return names, and each warn-level warning as one line on stderr unless --out - puts the JSON there. --font-tables names a file built by `boardplot fonts build`; layout measures with it (env BOARDPLOT_FONT_TABLES when the flag is absent). outputs is present when the render wrote files. A spec of { version: 1, charts: [...] } with a name per chart draws several charts in one call; one refused chart refuses the call. It validates the spec first: an invalid spec answers ok:false with its errors and draws nothing, so render is also the validate step (there is no validate verb).',
34
+ measure: 'boardplot measure <spec.json|-> [--target report|dashboard|slide|print] [--width n[px|pt|mm]] [--rows data.csv|data.tsv|data.txt|data.json --columns category=c,series=s,value=v] [--font-tables file]. Rows: waterfall label=l,value=v[,type=t]; scatter/bubble x=x,y=y[,size=s,label=l,group=g]; sankey source=s,target=t,value=v[,sourceStage=a,targetStage=b]; table [label=l,id=i], columns declared in spec data.columns; histogram value=v; box category=c,value=v[,categoryLabel=l,date=d]. --columns also takes a JSON object, such as {"category":"c","value":"v"}.',
35
+ fonts: "boardplot fonts build <font-dir> [--out file] [--check]",
36
+ telemetry: "boardplot telemetry [status|on|off]. Usage counts are off until you run on; status shows the state and the exact last payload; off deletes the install ID. DO_NOT_TRACK=1 or BOARDPLOT_TELEMETRY=0 turn them off, and nothing is sent in CI. See docs/TELEMETRY.md.",
37
+ feedback: "boardplot feedback --category bug|friction|docs --summary text [--type t] [--codes c1,c2] [--options k1,k2] [--send]. Prints a problem report (version, OS, chart type, option names, codes, your one-line summary of at most 280 characters) and issueUrl, a prefilled GitHub issue link. --send posts the report to the maintainers instead; use it only after the user approved the exact text. Write the summary without client names, numbers, labels or paths.",
38
+ version: "boardplot --version"
39
+ }, FONTS_SUBVERBS = ["build"];
40
+
41
+ // src/cli/flags.ts
42
+ var FlagError = class extends Error {
43
+ constructor(code, message) {
44
+ super(message);
45
+ this.code = code;
46
+ this.name = "FlagError";
47
+ }
48
+ code;
49
+ };
50
+ function flagToken(key) {
51
+ return key.length === 1 ? `-${key}` : `--${key}`;
52
+ }
53
+ function splitArgument(argument) {
54
+ if (argument.startsWith("--") && argument.length > 2) {
55
+ let eq = argument.indexOf("=");
56
+ return eq < 0 ? { key: argument.slice(2) } : { key: argument.slice(2, eq), inline: argument.slice(eq + 1) };
57
+ }
58
+ if (argument.startsWith("-") && argument.length === 2) return { key: argument.slice(1) };
59
+ }
60
+ function booleanValue(token, inline) {
61
+ if (inline === void 0 || inline === "true") return !0;
62
+ if (inline === "false") return !1;
63
+ throw new FlagError("flag-takes-no-value", `${token} does not take a value`);
64
+ }
65
+ function parseFlags(rawVerb, args) {
66
+ let verb = rawVerb !== void 0 && HELP_VERBS.includes(rawVerb) ? "help" : rawVerb, grammar = verb === void 0 ? void 0 : FLAG_GRAMMAR[verb], flags = Object.assign(/* @__PURE__ */ Object.create(null), { _: [] });
67
+ if (!grammar) return flags;
68
+ let seen = /* @__PURE__ */ new Set();
69
+ for (let index = 0; index < args.length; index++) {
70
+ let argument = args[index];
71
+ if (argument === "--") {
72
+ pushAll(flags._, args.slice(index + 1));
73
+ break;
74
+ }
75
+ let split = argument === "-" ? void 0 : splitArgument(argument);
76
+ if (!split) {
77
+ flags._.push(argument);
78
+ continue;
79
+ }
80
+ let token = flagToken(split.key), spec = grammar[split.key];
81
+ if (!spec && (split.key === "help" || split.key === "h")) return Object.assign(flags, { help: !0 });
82
+ if (!spec) {
83
+ let valid = Object.keys(grammar).sort().map(flagToken).join(", ") || "none";
84
+ throw new FlagError("unknown-flag", `unknown flag '${token}' for 'boardplot ${verb}'; valid flags: ${valid}`);
85
+ }
86
+ let key = split.key === "o" ? "out" : split.key;
87
+ if (seen.has(key)) throw new FlagError("flag-repeated", `${token} was given more than once`);
88
+ if (seen.add(key), spec.kind === "boolean") {
89
+ booleanValue(token, split.inline) && (flags[key] = !0);
90
+ continue;
91
+ }
92
+ if (split.inline !== void 0) {
93
+ flags[key] = split.inline;
94
+ continue;
95
+ }
96
+ let next = args[index + 1];
97
+ if (next === void 0 || next.startsWith("-") && next !== "-")
98
+ throw new FlagError("flag-missing-value", `${token} needs a value: boardplot ${verb} ... ${token} <value>`);
99
+ flags[key] = next, index++;
100
+ }
101
+ return flags;
102
+ }
103
+
104
+ export {
105
+ FLAG_GRAMMAR,
106
+ HELP_VERBS,
107
+ VERBS,
108
+ POSITIONALS,
109
+ USAGE,
110
+ FONTS_SUBVERBS,
111
+ FlagError,
112
+ parseFlags
113
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  columnOrderOption,
3
3
  columnOverridesOption
4
- } from "./chunk-RRPTQGRU.js";
4
+ } from "./chunk-H3VICNTN.js";
5
5
  import {
6
6
  addDuplicateIdIssues,
7
7
  baseOptionsSchema,
@@ -9,7 +9,7 @@ import {
9
9
  idSchema,
10
10
  refusedBaseOptions,
11
11
  retiredKey
12
- } from "./chunk-QYOZ46ZQ.js";
12
+ } from "./chunk-ZIVCPXXL.js";
13
13
 
14
14
  // src/core/charts/gantt/schema.ts
15
15
  import * as z from "zod";
@@ -97,7 +97,7 @@ var anchorSchema = z.strictObject({
97
97
  code: "custom",
98
98
  path: ["annotations", index, "label"],
99
99
  message: "a badge holds at most 3 characters; use labelPlacement 'top' for a longer label",
100
- params: { refused: !0 }
100
+ params: { replaceSibling: { key: "labelPlacement", value: "top" } }
101
101
  });
102
102
  });
103
103
  });