boardplot 0.58.2 → 0.59.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 (415) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/{ReaderBox-WVOT7VVJ.js → ReaderBox-4PNFZO56.js} +4 -4
  3. package/dist/{annotateEngine-IJ7RDLUI.js → annotateEngine-DL4KRQ6B.js} +1 -1
  4. package/dist/build-identity.json +3 -3
  5. package/dist/{chunk-54YO56IK.js → chunk-25JXYOSX.js} +1 -1
  6. package/dist/{chunk-DZUF4V4F.js → chunk-266ENWFM.js} +3 -3
  7. package/dist/{chunk-FRR7BJ3B.js → chunk-2E2MK4XM.js} +2 -2
  8. package/dist/{chunk-K5LIUWJO.js → chunk-2GVW5WDD.js} +3 -3
  9. package/dist/{chunk-4ROZ4TFL.js → chunk-2HRDOBPS.js} +1 -1
  10. package/dist/chunk-2Q7IAWON.js +18 -0
  11. package/dist/{chunk-JQSDRXLX.js → chunk-33SPSKTP.js} +4 -4
  12. package/dist/{chunk-Z6DUNKFU.js → chunk-3JG764MI.js} +688 -140
  13. package/dist/{chunk-OZLKEBCD.js → chunk-3V7Y7CHI.js} +1 -1
  14. package/dist/{chunk-3BMPYY26.js → chunk-3WC2TA6C.js} +4 -4
  15. package/dist/{chunk-LX6X33C7.js → chunk-3WFJDXZO.js} +3 -3
  16. package/dist/{chunk-OGWZT3PH.js → chunk-3ZR7ZE64.js} +2 -2
  17. package/dist/{chunk-UISHXPGJ.js → chunk-4DLIXTDH.js} +5 -5
  18. package/dist/{chunk-FL57NWM7.js → chunk-4EEK4AMC.js} +2 -2
  19. package/dist/{chunk-5OBA4IKC.js → chunk-4LCQO46F.js} +144 -55
  20. package/dist/{chunk-DXNVL67C.js → chunk-4NIIQFDA.js} +147 -104
  21. package/dist/{chunk-ED7GLWTF.js → chunk-4PKUS5MG.js} +2 -1
  22. package/dist/{chunk-ECL7CSPJ.js → chunk-4WH2YGO6.js} +3 -3
  23. package/dist/{chunk-MXUPMGRY.js → chunk-4YKS2JDE.js} +3 -3
  24. package/dist/{chunk-ZQHMZUFD.js → chunk-4YZQY3AA.js} +1 -1
  25. package/dist/{chunk-ZDITBL4Z.js → chunk-56CDMSE5.js} +2 -2
  26. package/dist/{chunk-SBKM6XFS.js → chunk-5AXWSGS7.js} +3 -3
  27. package/dist/{chunk-XZXZNI7A.js → chunk-5HOIOQK3.js} +1 -1
  28. package/dist/{chunk-ERDKMZ7O.js → chunk-5OV7VOGV.js} +2 -2
  29. package/dist/{chunk-AICO24HJ.js → chunk-5QMM354E.js} +6 -5
  30. package/dist/{chunk-DIN62FP4.js → chunk-5UXK5BAA.js} +37 -38
  31. package/dist/{chunk-7Q4T5TPZ.js → chunk-5YULK4DY.js} +6 -10
  32. package/dist/{chunk-QRIEJAM5.js → chunk-5ZE7SHRM.js} +3 -3
  33. package/dist/{chunk-KNT3GSVB.js → chunk-67744WKZ.js} +1 -1
  34. package/dist/{chunk-HTY6XK32.js → chunk-6CZGFTGK.js} +51 -47
  35. package/dist/{chunk-FVQRFBOP.js → chunk-6IIYLDSQ.js} +3 -3
  36. package/dist/{chunk-U5CBQHTX.js → chunk-6TH5NVKS.js} +19 -14
  37. package/dist/{chunk-I5VNHDPR.js → chunk-6TZDPQDE.js} +2 -2
  38. package/dist/{chunk-TMEUK2WS.js → chunk-77L6QGIG.js} +1 -1
  39. package/dist/{chunk-IU2PONEI.js → chunk-7IONS4Z7.js} +3 -3
  40. package/dist/{chunk-ETUKDEGL.js → chunk-7QUWM5W6.js} +6 -6
  41. package/dist/{chunk-24PMVRVW.js → chunk-7SIZGM5S.js} +78 -53
  42. package/dist/{chunk-QVLHI3BE.js → chunk-7TZIPGFH.js} +8 -6
  43. package/dist/{chunk-76GPN6AT.js → chunk-7UUSHA7H.js} +1 -1
  44. package/dist/{chunk-OZA7HA6L.js → chunk-7UZUXPFM.js} +1 -1
  45. package/dist/{chunk-U5D5NUFA.js → chunk-7YJSSPQX.js} +31 -28
  46. package/dist/{chunk-4GKVFHJH.js → chunk-7ZXIHEZS.js} +4 -4
  47. package/dist/{chunk-FJA5EUE7.js → chunk-A3SOYL6F.js} +3 -3
  48. package/dist/{chunk-CAE6E3NW.js → chunk-ADLKZEML.js} +31 -64
  49. package/dist/{chunk-KNGC2STY.js → chunk-AFQZBCME.js} +4 -4
  50. package/dist/{chunk-TVOMGNFQ.js → chunk-AGR4VJ2Y.js} +1 -1
  51. package/dist/{chunk-2HII2B6S.js → chunk-AH2L44TR.js} +3 -3
  52. package/dist/{chunk-WFBN2HXR.js → chunk-AIPOSNVG.js} +1 -1
  53. package/dist/{chunk-D3UPBA4R.js → chunk-AUSZDYGE.js} +9 -7
  54. package/dist/{chunk-ZUG7EYEM.js → chunk-AVYRC2T3.js} +50 -28
  55. package/dist/{chunk-NSMYIUBZ.js → chunk-B5FT4YAX.js} +1 -1
  56. package/dist/{chunk-H3VICNTN.js → chunk-B7UWG6XJ.js} +1 -1
  57. package/dist/{chunk-COQSFON4.js → chunk-BJJYNTVJ.js} +1 -1
  58. package/dist/{chunk-NS4SBO47.js → chunk-BOUZKVIY.js} +17 -19
  59. package/dist/{chunk-WUP6C4ZD.js → chunk-BXZNLMMH.js} +1 -1
  60. package/dist/{chunk-OMNB27GM.js → chunk-C26Z5AEW.js} +3 -3
  61. package/dist/{chunk-JDLT4YV6.js → chunk-CV5KCQD3.js} +72 -79
  62. package/dist/{chunk-QRQFHNRF.js → chunk-CX7WUNMO.js} +22 -18
  63. package/dist/{chunk-YWPBYL6P.js → chunk-DANKUHCX.js} +41 -40
  64. package/dist/{chunk-IDXYHDQY.js → chunk-DBKMJWPO.js} +1 -1
  65. package/dist/{chunk-K672I6R6.js → chunk-DEJ27Y2P.js} +138 -91
  66. package/dist/{chunk-HTQGJQZN.js → chunk-DITI57ZB.js} +1 -1
  67. package/dist/{chunk-WRI44CHA.js → chunk-DO7MMF4C.js} +86 -43
  68. package/dist/{chunk-NTUTJY33.js → chunk-DUDVHQD6.js} +7 -7
  69. package/dist/{chunk-RKPN6KN7.js → chunk-DXLWMK24.js} +3 -3
  70. package/dist/{chunk-DQECTZPF.js → chunk-DYD7W3Y6.js} +15 -16
  71. package/dist/{chunk-AU5PXIE3.js → chunk-DZBT7AWJ.js} +2 -2
  72. package/dist/{chunk-I7V6LXHD.js → chunk-E4KHHC46.js} +16 -16
  73. package/dist/{chunk-K2AOKBGW.js → chunk-E62SXDRT.js} +2 -2
  74. package/dist/{chunk-BAT77TKB.js → chunk-EADD6NNQ.js} +73 -79
  75. package/dist/{chunk-CMPHT2LS.js → chunk-EH23CIC5.js} +4 -4
  76. package/dist/{chunk-DTIV2NIZ.js → chunk-EJA5EANI.js} +47 -26
  77. package/dist/{chunk-VZWIRNQ4.js → chunk-EWGFOEJB.js} +126 -65
  78. package/dist/{chunk-SVPSNDLL.js → chunk-EWMPUCIG.js} +37 -37
  79. package/dist/{chunk-H6WX7J5M.js → chunk-EZ5KUBYF.js} +38 -27
  80. package/dist/{chunk-IUEUVLT3.js → chunk-F2N5BUBK.js} +12 -13
  81. package/dist/{chunk-VJ7VBB6S.js → chunk-F7QCIJAY.js} +1 -1
  82. package/dist/{chunk-ANKBTBWD.js → chunk-FB36HSY2.js} +4 -4
  83. package/dist/{chunk-F3XOBFS4.js → chunk-FBIMTKYK.js} +3 -10
  84. package/dist/{chunk-4NEXP7IB.js → chunk-FMVXXKSW.js} +3 -3
  85. package/dist/{chunk-GOJI2HVL.js → chunk-FP3ORYCG.js} +22 -21
  86. package/dist/{chunk-P6DEFCMQ.js → chunk-FWPPZB4G.js} +2 -2
  87. package/dist/{chunk-MSYTF3DZ.js → chunk-FYFXOLWI.js} +116 -89
  88. package/dist/{chunk-L3BVYKA6.js → chunk-GDE2JINW.js} +11 -11
  89. package/dist/{chunk-RLB7QCTK.js → chunk-GEEHXLFQ.js} +7 -6
  90. package/dist/{chunk-S6XM22RZ.js → chunk-GGFT6IIM.js} +3 -3
  91. package/dist/{chunk-KTOWOMQP.js → chunk-GIJM4MP4.js} +5 -5
  92. package/dist/{chunk-UY34DDUM.js → chunk-GNK7RTO4.js} +3 -3
  93. package/dist/{chunk-BAOUMAH6.js → chunk-GSHRYDJM.js} +1 -1
  94. package/dist/{chunk-RXDCT5TD.js → chunk-GWDKUKOJ.js} +96 -321
  95. package/dist/{chunk-XMX4PCFL.js → chunk-GZYMHC44.js} +2 -2
  96. package/dist/{chunk-RK5JTZFI.js → chunk-HBKZC5BH.js} +2 -2
  97. package/dist/{chunk-WXMH66N5.js → chunk-HC4UW7MB.js} +4 -4
  98. package/dist/{chunk-ZRI6VYNF.js → chunk-HFDU2E7C.js} +27 -21
  99. package/dist/{chunk-M6PYA4FO.js → chunk-HW67YGJC.js} +1 -1
  100. package/dist/{chunk-C4DN27QI.js → chunk-I65BCUVH.js} +3 -3
  101. package/dist/{chunk-SHFXHUKJ.js → chunk-ICERP2YF.js} +3 -3
  102. package/dist/{chunk-KG7LKHD7.js → chunk-ICJUN47O.js} +2 -2
  103. package/dist/{chunk-QMUCI2UU.js → chunk-ID5PE4KM.js} +3 -3
  104. package/dist/{chunk-DOYJ2O2C.js → chunk-IDJVUZAA.js} +3 -3
  105. package/dist/{chunk-WDDPQUT2.js → chunk-IQRRT32Q.js} +2 -2
  106. package/dist/{chunk-WHIO5L6Z.js → chunk-ISMFUWOP.js} +3 -3
  107. package/dist/{chunk-4X7FNGGM.js → chunk-IX2SLULO.js} +3 -3
  108. package/dist/{chunk-4G5QQ5TH.js → chunk-IXZI4SN4.js} +116 -46
  109. package/dist/chunk-J6LGZPKI.js +89 -0
  110. package/dist/{chunk-CCAAI56H.js → chunk-JF743NNC.js} +7 -0
  111. package/dist/{chunk-UK5LXRUN.js → chunk-JIB74SQS.js} +6 -6
  112. package/dist/{chunk-ZIVCPXXL.js → chunk-JOX252XQ.js} +5 -5
  113. package/dist/{chunk-YC6W7EVG.js → chunk-JRM22ULA.js} +54 -45
  114. package/dist/{chunk-V5CWUATF.js → chunk-JYSS5ZZF.js} +5 -5
  115. package/dist/{chunk-OJ5CCTNY.js → chunk-KRIYGX3N.js} +3 -3
  116. package/dist/{chunk-XRRG4MBM.js → chunk-KWMQNKGX.js} +2 -2
  117. package/dist/{chunk-4EDPXQR7.js → chunk-LADFOYH7.js} +40 -27
  118. package/dist/{chunk-P6KEM5N7.js → chunk-LC4KDLUE.js} +3 -3
  119. package/dist/{chunk-SAMTYEWB.js → chunk-LLECS747.js} +4 -4
  120. package/dist/{chunk-XO4DJM33.js → chunk-LM4GVVPM.js} +16 -10
  121. package/dist/{chunk-EHRRHSPV.js → chunk-LPLRXEOT.js} +55 -19
  122. package/dist/{chunk-S4L7LXWX.js → chunk-M2FF4IPF.js} +16 -7
  123. package/dist/{chunk-4JGBCBDZ.js → chunk-MF6XGFHB.js} +1 -1
  124. package/dist/{chunk-O3U6IOIO.js → chunk-MOBRWYUQ.js} +2 -2
  125. package/dist/{chunk-CDUR3KWV.js → chunk-MOPY5REE.js} +2 -2
  126. package/dist/{chunk-LLEDONMT.js → chunk-MTOBNHAU.js} +2 -2
  127. package/dist/{chunk-DORE2RHL.js → chunk-MYBBZNYN.js} +2 -2
  128. package/dist/{chunk-V7NUJEJE.js → chunk-MZCJ22O4.js} +1 -1
  129. package/dist/{chunk-NM6IWRTB.js → chunk-NIL6TYAN.js} +4 -4
  130. package/dist/{chunk-VGEHOB25.js → chunk-NPDF7HEH.js} +2 -2
  131. package/dist/{chunk-JMMKOICP.js → chunk-NUASZPS7.js} +1 -1
  132. package/dist/{chunk-QI47HSZD.js → chunk-NWUEA42V.js} +3 -3
  133. package/dist/{chunk-O4FCIOOY.js → chunk-NZGQLR4X.js} +8 -8
  134. package/dist/{chunk-TRGQLVJV.js → chunk-O32L5FK2.js} +3 -3
  135. package/dist/{chunk-DJRPY7AR.js → chunk-O623CYPA.js} +3 -3
  136. package/dist/{chunk-7OZCLJAG.js → chunk-OJR5GPCN.js} +3 -3
  137. package/dist/{chunk-C47POAC5.js → chunk-OL6HVC6K.js} +1 -1
  138. package/dist/{chunk-3MGXQARA.js → chunk-OM5MAJST.js} +68 -57
  139. package/dist/{chunk-CLJWE3JQ.js → chunk-OTOASFG4.js} +92 -35
  140. package/dist/{chunk-KF2HYUXN.js → chunk-P3N74SZ5.js} +3 -3
  141. package/dist/{chunk-J3GUMT27.js → chunk-PHQGGR5O.js} +3 -3
  142. package/dist/{chunk-YQZCMPN7.js → chunk-POHML4N4.js} +107 -50
  143. package/dist/{chunk-KVBLTAO7.js → chunk-PP23D6QV.js} +4 -5
  144. package/dist/{chunk-F2ET5ZTT.js → chunk-PPOUKS24.js} +0 -1
  145. package/dist/{chunk-V7FV66KL.js → chunk-PRVX4PAO.js} +1 -1
  146. package/dist/{chunk-JY4LTPOV.js → chunk-PSUSHJFV.js} +1 -1
  147. package/dist/{chunk-AJGSCVVW.js → chunk-PZZAVTLQ.js} +2 -2
  148. package/dist/{chunk-CRTRY3IQ.js → chunk-QDFX2KAP.js} +2 -2
  149. package/dist/{chunk-RAPIBQ6W.js → chunk-QKDDGDRF.js} +10 -10
  150. package/dist/{chunk-P2WZQQCC.js → chunk-QM6IW5BL.js} +3 -3
  151. package/dist/chunk-QMQZC2KW.js +408 -0
  152. package/dist/{chunk-42QKUSHJ.js → chunk-QXHFELIA.js} +1 -1
  153. package/dist/{chunk-JNDWRV34.js → chunk-R2RLERPT.js} +1 -1
  154. package/dist/{chunk-E5YF236N.js → chunk-R4MVXUAG.js} +1 -1
  155. package/dist/{chunk-BYPUPHRW.js → chunk-REIIGIJG.js} +3 -3
  156. package/dist/{chunk-K4OR5AP5.js → chunk-RF2REMRV.js} +6 -6
  157. package/dist/{chunk-3MFVJMP6.js → chunk-RF6ZHX5F.js} +1 -1
  158. package/dist/{chunk-AYIK7HVV.js → chunk-RLX6VODQ.js} +9 -2
  159. package/dist/{chunk-KWIP5YRA.js → chunk-RPS7G77V.js} +3 -3
  160. package/dist/{chunk-LBCSRQGW.js → chunk-RSDGBNXP.js} +5 -5
  161. package/dist/{chunk-MP5UOUGM.js → chunk-RYYB7REV.js} +3 -3
  162. package/dist/{chunk-LPMSGO7L.js → chunk-SBYKLBDV.js} +3 -3
  163. package/dist/{chunk-JT3UTEWZ.js → chunk-SDAVHADX.js} +2 -2
  164. package/dist/{chunk-V7MFF5A4.js → chunk-SE6LBMRJ.js} +137 -62
  165. package/dist/{chunk-MCRRURTO.js → chunk-SFRMBCVY.js} +3 -3
  166. package/dist/{chunk-UUK73ZCT.js → chunk-SNJ3FZXC.js} +14 -12
  167. package/dist/{chunk-H7GFUA6G.js → chunk-SXCFMPNM.js} +3 -3
  168. package/dist/{chunk-SGDWLXUC.js → chunk-SY7JC3PH.js} +1 -1
  169. package/dist/{chunk-UXPR6TEZ.js → chunk-T4CFY4YT.js} +4 -4
  170. package/dist/{chunk-5SVGTQTW.js → chunk-TASEX7VA.js} +1 -1
  171. package/dist/{chunk-UB7LT72S.js → chunk-TCWJQIVQ.js} +123 -71
  172. package/dist/{chunk-SFBB4GVQ.js → chunk-TEZWFQB7.js} +6 -6
  173. package/dist/{chunk-GHCU6OSE.js → chunk-TLKRYDH3.js} +2 -2
  174. package/dist/{chunk-MH6MGYPS.js → chunk-TMVERETB.js} +23 -332
  175. package/dist/{chunk-5LPLVLLA.js → chunk-TQFBLSZJ.js} +44 -27
  176. package/dist/{chunk-5FOB6QGF.js → chunk-U4WG46QP.js} +117 -43
  177. package/dist/{chunk-LJDATBPB.js → chunk-U75MMLNQ.js} +3 -6
  178. package/dist/{chunk-SB7MASJU.js → chunk-UFGJNSSL.js} +1 -1
  179. package/dist/{chunk-FB6X7QHA.js → chunk-UGHJHJKY.js} +1 -1
  180. package/dist/{chunk-MIJPESMQ.js → chunk-UI2MKLON.js} +1 -1
  181. package/dist/{chunk-3E6NLODZ.js → chunk-UKEI7JDA.js} +1 -1
  182. package/dist/{chunk-6JFQCVNN.js → chunk-USATDW6O.js} +1 -1
  183. package/dist/{chunk-CQBPNE7Z.js → chunk-UTWLJ6AZ.js} +6 -5
  184. package/dist/{chunk-OCPVQZCC.js → chunk-UV77Y7QK.js} +11 -5
  185. package/dist/{chunk-PMT75APP.js → chunk-UXJXA4NP.js} +1 -1
  186. package/dist/{chunk-CPPFF3OB.js → chunk-UZDQFUHO.js} +3 -3
  187. package/dist/{chunk-S3I6F4IO.js → chunk-V3XYFLOZ.js} +3 -3
  188. package/dist/{chunk-OQQMDSCC.js → chunk-VGOZOBNB.js} +1 -1
  189. package/dist/{chunk-K7XPTQBJ.js → chunk-VHZ4MXJO.js} +1 -1
  190. package/dist/{chunk-YFQW73AV.js → chunk-VLMKGQ33.js} +13 -13
  191. package/dist/{chunk-3AWE5535.js → chunk-VMLVZW4F.js} +39 -36
  192. package/dist/{chunk-YT5MTKED.js → chunk-VT6PDWUA.js} +78 -78
  193. package/dist/{chunk-GQYT7G4F.js → chunk-VTUSC24F.js} +2 -2
  194. package/dist/{chunk-NMQH4S2F.js → chunk-VVWTD4XP.js} +9 -9
  195. package/dist/{chunk-OQA3DJH4.js → chunk-VZVPN7NT.js} +3 -3
  196. package/dist/{chunk-Z3WQXVFV.js → chunk-W4ZLMK6Z.js} +1 -1
  197. package/dist/{chunk-LOFR5HOQ.js → chunk-W6NEWQZU.js} +20 -18
  198. package/dist/{chunk-DZYTXZNS.js → chunk-WD5NJHZG.js} +2 -2
  199. package/dist/{chunk-2WQSH3HV.js → chunk-WTH3KQDM.js} +2 -2
  200. package/dist/{chunk-UQBNY2UU.js → chunk-WTWM4RK6.js} +1 -1
  201. package/dist/{chunk-XJC37XXA.js → chunk-WZNO3LUF.js} +3 -3
  202. package/dist/{chunk-GQ3CMAOD.js → chunk-X3AMBFGF.js} +3 -3
  203. package/dist/{chunk-DHGE46UK.js → chunk-X725AGYP.js} +1 -1
  204. package/dist/{chunk-TX5FSNAU.js → chunk-XAH4EWJT.js} +1 -1
  205. package/dist/{chunk-IJU5PAIS.js → chunk-XETSLYFD.js} +3 -3
  206. package/dist/{chunk-Z7EAEWR3.js → chunk-XFDNAR4S.js} +16 -27
  207. package/dist/{chunk-IXQNKI6G.js → chunk-XGTSZ7NC.js} +3 -3
  208. package/dist/{chunk-HAG3K6PQ.js → chunk-XHEG2BG6.js} +1 -1
  209. package/dist/{chunk-D2TQX7UJ.js → chunk-XLX3TUFO.js} +2 -2
  210. package/dist/{chunk-ESSNZ3VQ.js → chunk-XMII3G47.js} +3 -3
  211. package/dist/{chunk-QNEVEBIR.js → chunk-XRPZJDAK.js} +101 -72
  212. package/dist/{chunk-IPBOREIY.js → chunk-XUEX5WTR.js} +1 -1
  213. package/dist/{chunk-ZYCB2CJJ.js → chunk-XUGEYHOQ.js} +2 -2
  214. package/dist/{chunk-OO63YP35.js → chunk-XVFUJRRC.js} +1 -1
  215. package/dist/{chunk-IVDTP6SV.js → chunk-XWGAANY4.js} +3 -3
  216. package/dist/{chunk-36RTBB37.js → chunk-XWUHUTXX.js} +24 -18
  217. package/dist/{chunk-AIU3Y4L5.js → chunk-XXYV5UEM.js} +50 -49
  218. package/dist/{chunk-KVIWD6MV.js → chunk-XZBX6LIC.js} +20 -12
  219. package/dist/{chunk-ZDJ7C64T.js → chunk-Y4BJ7D5F.js} +1 -1
  220. package/dist/{chunk-KW4JXWHO.js → chunk-YDYZWCUQ.js} +1 -1
  221. package/dist/{chunk-46JPQLR2.js → chunk-YJN54OZS.js} +52 -41
  222. package/dist/{chunk-X46PSAJ7.js → chunk-YJXIHVNK.js} +2 -2
  223. package/dist/{chunk-UCKUAKYQ.js → chunk-YKYK6C7F.js} +1 -1
  224. package/dist/{chunk-F6IPP33V.js → chunk-YM4MVABU.js} +56 -24
  225. package/dist/{chunk-GOFS336W.js → chunk-YM7MO7WI.js} +1 -1
  226. package/dist/{chunk-A64R244B.js → chunk-YOUYJHW3.js} +3 -3
  227. package/dist/{chunk-Z7LBIXNV.js → chunk-YPELB4Q7.js} +3 -3
  228. package/dist/{chunk-HXGSNLIW.js → chunk-YRCIG4IO.js} +8 -7
  229. package/dist/{chunk-B6BEPKEE.js → chunk-ZIQR2CNM.js} +7 -7
  230. package/dist/{chunk-ZHGFJL3O.js → chunk-ZK22I3NF.js} +3 -3
  231. package/dist/{chunk-A6N24NGW.js → chunk-ZNA4JHHG.js} +2 -2
  232. package/dist/{chunk-VESSIKBG.js → chunk-ZOQRX5V7.js} +4 -4
  233. package/dist/{chunk-FVWHEM2N.js → chunk-ZPQ3VOAE.js} +1 -1
  234. package/dist/{chunk-NZ7FX3AE.js → chunk-ZQ5ILQ5A.js} +1 -1
  235. package/dist/cli/index.js +1 -1
  236. package/dist/{core-VA3SBRCT.js → core-2PT7IROA.js} +2 -1
  237. package/dist/{core-JDNTWP3D.js → core-34YTH4KN.js} +1 -1
  238. package/dist/{core-VVHFCKCO.js → core-4ZEVWU43.js} +1 -1
  239. package/dist/{core-QWG23TDT.js → core-64EHPUVV.js} +1 -1
  240. package/dist/{core-SQUKC752.js → core-6KO5AEUH.js} +1 -1
  241. package/dist/{core-Y7Q7FR65.js → core-7WLD237S.js} +1 -1
  242. package/dist/{core-TBPO7LER.js → core-A2MERE3C.js} +1 -1
  243. package/dist/{core-PARPIO5L.js → core-AVNB2Q3G.js} +2 -1
  244. package/dist/{core-DIVRGZGD.js → core-B7KOBTRL.js} +1 -1
  245. package/dist/{core-HEQ4MJA5.js → core-BOOD7ZUQ.js} +1 -1
  246. package/dist/{core-QRRWZUTR.js → core-BOU34T23.js} +1 -1
  247. package/dist/{core-G2TWJHKM.js → core-BQ2I77OF.js} +2 -1
  248. package/dist/{core-6YHAYDG2.js → core-BSEXRZD6.js} +1 -1
  249. package/dist/{core-DSI2ZK5C.js → core-CXEEM26F.js} +1 -1
  250. package/dist/{core-YMX3VETP.js → core-EHMPBG6Q.js} +1 -1
  251. package/dist/{core-B3AVFEWH.js → core-FXC4TB2K.js} +1 -1
  252. package/dist/{core-PJHQY3CR.js → core-HMS72VO6.js} +1 -1
  253. package/dist/{core-LZF7CC2E.js → core-I2GPMB2B.js} +1 -1
  254. package/dist/{core-PL2T5XOC.js → core-IQC6H4A7.js} +1 -1
  255. package/dist/{core-HKKPL444.js → core-IYEFTP6C.js} +1 -1
  256. package/dist/{core-HWDAFGAI.js → core-J2QTOU4D.js} +1 -1
  257. package/dist/{core-FS3AFDBX.js → core-JJLIPTEW.js} +1 -1
  258. package/dist/{core-I23MMHHJ.js → core-LCP44UYI.js} +1 -2
  259. package/dist/{core-Y74GS6HN.js → core-MBNVENCZ.js} +1 -1
  260. package/dist/{core-VZT7F5AI.js → core-MVIK7FAJ.js} +2 -1
  261. package/dist/{core-FKW6RSGU.js → core-N4OKPNXQ.js} +1 -1
  262. package/dist/{core-7K35DCB7.js → core-Q4IILTGO.js} +1 -1
  263. package/dist/{core-WXPK24YD.js → core-QCPDOQEJ.js} +2 -1
  264. package/dist/{core-7UMZLBSB.js → core-RVTF336C.js} +1 -1
  265. package/dist/{core-JWYT46N3.js → core-VGMMKEU4.js} +1 -1
  266. package/dist/{core-PVD4MX3R.js → core-VUVJOMUC.js} +1 -1
  267. package/dist/{core-3TLA5IU3.js → core-VWISBHXE.js} +1 -1
  268. package/dist/{core-LCK3P3DS.js → core-W3UBWZR3.js} +1 -1
  269. package/dist/{core-XYTCGP3I.js → core-XYQRB5WF.js} +1 -1
  270. package/dist/{core-SVIYWQVR.js → core-Y6DJHIYT.js} +1 -1
  271. package/dist/{core-NRNTVPSJ.js → core-YHWVJULU.js} +1 -1
  272. package/dist/{core-RHYZULNG.js → core-YJXOVNIE.js} +1 -1
  273. package/dist/{dataTable-HTQMPQB6.js → dataTable-3ZK3ZEZP.js} +3 -2
  274. package/dist/{engine-RHDMQS7T.js → engine-FSWLRWZR.js} +19 -17
  275. package/dist/fixtures.js +1 -1
  276. package/dist/index.js +14 -13
  277. package/dist/{main-7SMEJF5Q.js → main-NYMXWJGJ.js} +6 -5
  278. package/dist/mcp/server.js +11 -10
  279. package/dist/react/bar.js +1 -1
  280. package/dist/react/bartable.js +1 -1
  281. package/dist/react/box.js +1 -1
  282. package/dist/react/bullet.js +1 -1
  283. package/dist/react/butterfly.js +1 -1
  284. package/dist/react/choropleth.js +1 -1
  285. package/dist/react/cohort.js +2 -1
  286. package/dist/react/column.js +1 -1
  287. package/dist/react/combo.js +1 -1
  288. package/dist/react/creative.js +1 -1
  289. package/dist/react/diagram.js +1 -1
  290. package/dist/react/dimswitch.js +1 -1
  291. package/dist/react/dot.js +1 -1
  292. package/dist/react/export.js +24 -19
  293. package/dist/react/funnel.js +1 -1
  294. package/dist/react/gantt.js +1 -1
  295. package/dist/react/grid.js +1 -1
  296. package/dist/react/heatmap.js +2 -1
  297. package/dist/react/histogram.js +1 -1
  298. package/dist/react/index.js +84 -83
  299. package/dist/react/kpi.js +1 -1
  300. package/dist/react/likert.js +1 -1
  301. package/dist/react/line.js +2 -1
  302. package/dist/react/mekko.js +1 -1
  303. package/dist/react/pareto.js +1 -1
  304. package/dist/react/pie.js +1 -1
  305. package/dist/react/prepare.js +22 -20
  306. package/dist/react/pvm.js +1 -1
  307. package/dist/react/pyramid.js +1 -1
  308. package/dist/react/sankey.js +1 -1
  309. package/dist/react/scatter.js +2 -1
  310. package/dist/react/slope.js +1 -1
  311. package/dist/react/sparkline.js +1 -1
  312. package/dist/react/spec.js +10 -10
  313. package/dist/react/status.js +2 -1
  314. package/dist/react/story.js +3 -3
  315. package/dist/react/table.js +1 -1
  316. package/dist/react/theme.js +3 -3
  317. package/dist/react/tilemap.js +1 -1
  318. package/dist/react/treemap.js +1 -1
  319. package/dist/react/variance.js +1 -1
  320. package/dist/react/waffle.js +1 -1
  321. package/dist/react/waterfall.js +1 -1
  322. package/dist/{rowsModule-YBW6OQUZ.js → rowsModule-43LCK2Q7.js} +1 -1
  323. package/dist/{schema-MQT6BMNK.js → schema-2ACHQTR3.js} +1 -1
  324. package/dist/{schema-WZOSDDDJ.js → schema-3LRC5TOZ.js} +1 -1
  325. package/dist/{schema-F7TWGLRZ.js → schema-4HGZZNUL.js} +1 -1
  326. package/dist/{schema-PWPQF5RC.js → schema-4YIYGGOJ.js} +1 -1
  327. package/dist/{schema-ECJERHKF.js → schema-5OLQ54J5.js} +1 -1
  328. package/dist/{schema-CWKGLDSR.js → schema-5SVPR3EU.js} +1 -1
  329. package/dist/{schema-BA6WP5YZ.js → schema-A4U4RDKJ.js} +1 -1
  330. package/dist/{schema-JYZ4RF6S.js → schema-AM2KS6ZC.js} +1 -1
  331. package/dist/{schema-PYQEUC5P.js → schema-C25ECGJL.js} +1 -1
  332. package/dist/{schema-56MOEOVR.js → schema-CBLNGK2F.js} +1 -1
  333. package/dist/{schema-ESR6ZIK4.js → schema-D3ELHESU.js} +1 -1
  334. package/dist/{schema-5MSR4LNN.js → schema-FBIEOKO2.js} +1 -1
  335. package/dist/{schema-DUVJMFKQ.js → schema-FPDLOIA6.js} +1 -1
  336. package/dist/{schema-ALBF6V7Y.js → schema-FQWENOJY.js} +1 -1
  337. package/dist/{schema-DBIQFL56.js → schema-GTLGAPCU.js} +1 -1
  338. package/dist/{schema-YRLZRQ2F.js → schema-GUDG343K.js} +2 -2
  339. package/dist/{schema-47BG2TZA.js → schema-GYTWCCNA.js} +1 -1
  340. package/dist/{schema-DL7V6NN2.js → schema-GYVYJEL3.js} +1 -1
  341. package/dist/{schema-ZU2EU2VP.js → schema-HAMPGUH3.js} +1 -1
  342. package/dist/{schema-TVUJNEX7.js → schema-IYBZPCM4.js} +1 -1
  343. package/dist/{schema-2TPGJGVR.js → schema-IYLRZNFB.js} +1 -1
  344. package/dist/{schema-KAK6DZX4.js → schema-KBV2JB2A.js} +1 -1
  345. package/dist/{schema-PV7JGX5H.js → schema-KWCIIIGP.js} +1 -1
  346. package/dist/{schema-Y4TI2T3T.js → schema-LDF6HORS.js} +1 -1
  347. package/dist/{schema-FKGGTM4Z.js → schema-LGYHJPXU.js} +1 -1
  348. package/dist/{schema-CBL2SMVR.js → schema-LX4EXDTI.js} +1 -1
  349. package/dist/{schema-2R32F6AW.js → schema-NNNG7CWG.js} +1 -1
  350. package/dist/{schema-OPXZYIW7.js → schema-P2JYSV32.js} +1 -1
  351. package/dist/{schema-FGB6IGZM.js → schema-PAKZIYQF.js} +1 -1
  352. package/dist/{schema-R42VXFIS.js → schema-SQ2GYLMI.js} +1 -1
  353. package/dist/{schema-KCJ6WTGV.js → schema-SUDJBIHX.js} +1 -1
  354. package/dist/{schema-MR3BPPQR.js → schema-TRPPZCIR.js} +1 -1
  355. package/dist/{schema-FYY72W63.js → schema-UNYDUIL5.js} +1 -1
  356. package/dist/{schema-5RIYEWE6.js → schema-VH4AW62Z.js} +1 -1
  357. package/dist/{schema-EDSEKZDJ.js → schema-WDKBCN3V.js} +1 -1
  358. package/dist/{schema-MOKWIGF7.js → schema-YCKUQ3FF.js} +1 -1
  359. package/dist/{schema-K7F6TEDK.js → schema-YVBUY7NH.js} +1 -1
  360. package/dist/{specValidation-PWS6G27I.js → specValidation-FKHSTMMR.js} +1 -1
  361. package/dist/theme.js +2 -2
  362. package/dist/types/core/a11y/recordsShared.d.ts +15 -4
  363. package/dist/types/core/a11y/types.d.ts +0 -3
  364. package/dist/types/core/annotate.d.ts +17 -1
  365. package/dist/types/core/annotateTargets.d.ts +8 -0
  366. package/dist/types/core/charts/band/stacks.d.ts +4 -3
  367. package/dist/types/core/charts/bar/layout.d.ts +3 -1
  368. package/dist/types/core/charts/bartable/types.d.ts +3 -0
  369. package/dist/types/core/charts/box/types.d.ts +5 -0
  370. package/dist/types/core/charts/column/anomaly.d.ts +12 -5
  371. package/dist/types/core/charts/column/model.d.ts +4 -0
  372. package/dist/types/core/charts/combo/endpoints.d.ts +11 -1
  373. package/dist/types/core/charts/combo/layout.d.ts +7 -1
  374. package/dist/types/core/charts/dimswitch/compile.d.ts +20 -3
  375. package/dist/types/core/charts/grid/metricStack.d.ts +2 -4
  376. package/dist/types/core/charts/histogram/types.d.ts +3 -0
  377. package/dist/types/core/charts/likert/layout.d.ts +5 -2
  378. package/dist/types/core/charts/logAxis.d.ts +0 -5
  379. package/dist/types/core/charts/scatter/logAxis.d.ts +1 -1
  380. package/dist/types/core/charts/scatter/model.d.ts +10 -1
  381. package/dist/types/core/charts/scatter/trend.d.ts +19 -0
  382. package/dist/types/core/charts/table/view.d.ts +7 -0
  383. package/dist/types/core/charts/waffle/types.d.ts +8 -0
  384. package/dist/types/core/formatPrecision.d.ts +24 -0
  385. package/dist/types/core/formatSpec.d.ts +213 -61
  386. package/dist/types/core/label/solver.d.ts +3 -1
  387. package/dist/types/core/numberRule.d.ts +109 -0
  388. package/dist/types/core/numberSets.d.ts +43 -0
  389. package/dist/types/core/shownMarks.d.ts +16 -0
  390. package/dist/types/core/types/options.d.ts +8 -8
  391. package/dist/types/core/types/scene.d.ts +24 -0
  392. package/dist/types/core/types/table.d.ts +0 -13
  393. package/dist/types/react/TableChart.d.ts +9 -7
  394. package/dist/types/react/hover/engine.d.ts +6 -4
  395. package/dist/types/react/hover/labelCard.d.ts +4 -3
  396. package/dist/validate.js +5 -4
  397. package/docs/manual.md +15 -7
  398. package/docs/reference/bartable.md +2 -2
  399. package/docs/reference/cohort.md +1 -1
  400. package/docs/reference/column.md +1 -1
  401. package/docs/reference/dimswitch.md +2 -3
  402. package/docs/reference/fixtures.md +1 -1
  403. package/docs/reference/grid.md +12 -6
  404. package/docs/reference/heatmap.md +1 -1
  405. package/docs/reference/line.md +2 -2
  406. package/docs/reference/options.md +3 -3
  407. package/docs/reference/react.md +1 -1
  408. package/docs/reference/table.md +5 -8
  409. package/docs/reference/warnings.md +0 -1
  410. package/package.json +1 -1
  411. package/dist/chunk-RYFRYLU6.js +0 -89
  412. package/dist/chunk-VAR3DPXR.js +0 -125
  413. package/dist/types/core/charts/table/fitFormats.d.ts +0 -67
  414. package/dist/types/core/charts/table/resolve.d.ts +0 -84
  415. package/dist/types/core/format.d.ts +0 -156
@@ -2,27 +2,27 @@ import {
2
2
  columnOrderOption,
3
3
  columnOverridesOption,
4
4
  columnVisibilityOption
5
- } from "./chunk-H3VICNTN.js";
5
+ } from "./chunk-B7UWG6XJ.js";
6
6
  import {
7
7
  isMetricStackData,
8
8
  normalizeMetricStack
9
- } from "./chunk-EHRRHSPV.js";
9
+ } from "./chunk-LPLRXEOT.js";
10
10
  import {
11
11
  addDuplicateIdIssues,
12
12
  baseOptionsSchema,
13
13
  idRecord,
14
14
  refusedBaseOptions,
15
15
  retiredKey
16
- } from "./chunk-ZIVCPXXL.js";
16
+ } from "./chunk-JOX252XQ.js";
17
17
  import {
18
18
  normalizeGridData
19
- } from "./chunk-NSMYIUBZ.js";
19
+ } from "./chunk-B5FT4YAX.js";
20
20
  import {
21
21
  ownedDocumentCopy
22
22
  } from "./chunk-U52PNFPX.js";
23
23
  import {
24
24
  getChartSchemas
25
- } from "./chunk-F6IPP33V.js";
25
+ } from "./chunk-YM4MVABU.js";
26
26
  import {
27
27
  NormalizeError
28
28
  } from "./chunk-RJICOOB3.js";
@@ -56,7 +56,7 @@ var id = z.string().min(1), range = z.strictObject({
56
56
  readout: z.union([z.literal("change"), z.strictObject({ base: id.describe("Base measure for the remaining-per-100 chain.") })]).describe("change compares grid windows; base computes a volume-weighted mature rate and remaining-per-100 span."),
57
57
  emphasis: z.boolean().optional().describe("Use the theme accent. At most one panel may be emphasised."),
58
58
  divisor: z.number().positive().optional().describe("Display divisor for sum marks and their change span, for example 1000. The headline percent is unitless."),
59
- decimals: z.number().int().min(0).max(6).optional().describe("Decimal places of the marks and the change span. Default 0 for counts and 1 for rates.")
59
+ decimals: z.number().int().min(0).max(6).optional().describe("Decimal places of the marks and the change span. A panel with divisor and without decimals prints 0 for counts and 1 for rates; a panel with neither prints by the default number rule.")
60
60
  })).min(2).max(5).describe("Two to five panels in top-down reading order."),
61
61
  states: z.strictObject({
62
62
  maturing: z.strictObject({
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  columnOrderOption,
3
3
  columnOverridesOption
4
- } from "./chunk-H3VICNTN.js";
4
+ } from "./chunk-B7UWG6XJ.js";
5
5
  import {
6
6
  addDuplicateIdIssues,
7
7
  baseOptionsSchema,
@@ -9,7 +9,7 @@ import {
9
9
  legendWithoutOrder,
10
10
  optionShapeSchema,
11
11
  refusedBaseOptions
12
- } from "./chunk-ZIVCPXXL.js";
12
+ } from "./chunk-JOX252XQ.js";
13
13
 
14
14
  // src/core/charts/likert/schema.ts
15
15
  import * as z from "zod";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  chartTheme
3
- } from "./chunk-WFBN2HXR.js";
3
+ } from "./chunk-AIPOSNVG.js";
4
4
  import {
5
5
  prepareTableWidthRung,
6
6
  solveTableWidthRung,
7
7
  tableWidths
8
- } from "./chunk-K4OR5AP5.js";
8
+ } from "./chunk-RF2REMRV.js";
9
9
  import {
10
10
  ZERO_LIFT,
11
11
  arrowKey,
@@ -30,7 +30,6 @@ import {
30
30
  presetLanguage,
31
31
  printsFigures,
32
32
  resolvePreparedTable,
33
- resolveTable,
34
33
  rowGrounds,
35
34
  tableCellKey,
36
35
  tableCellNodeId,
@@ -39,26 +38,23 @@ import {
39
38
  visibleColumns,
40
39
  visibleInlineRows,
41
40
  visibleRows
42
- } from "./chunk-DXNVL67C.js";
43
- import {
44
- columnOwnsFormat
45
- } from "./chunk-X3YP4DUV.js";
41
+ } from "./chunk-4NIIQFDA.js";
46
42
  import {
47
43
  TABLE_SPARK_STYLE,
48
44
  emitSparklineMarks,
49
45
  lastObservedIndex,
50
46
  plotSparkline,
51
47
  sparklineDomain
52
- } from "./chunk-XO4DJM33.js";
48
+ } from "./chunk-LM4GVVPM.js";
53
49
  import {
54
50
  structureCount
55
- } from "./chunk-KW4JXWHO.js";
51
+ } from "./chunk-YDYZWCUQ.js";
56
52
  import {
57
53
  liftOrFallback,
58
54
  missesSize,
59
55
  tightAdvice,
60
56
  tightSpacingWarning
61
- } from "./chunk-ZDITBL4Z.js";
57
+ } from "./chunk-56CDMSE5.js";
62
58
  import {
63
59
  CHIP_PAD_X,
64
60
  ENGINE_NOTES,
@@ -70,7 +66,6 @@ import {
70
66
  SECTION_CHIP_GAP,
71
67
  SORT_BUTTON_MIN,
72
68
  cellPadX,
73
- changeLineFitFont,
74
69
  changeLineFont,
75
70
  figureFont,
76
71
  groupHeadingFaces,
@@ -81,12 +76,11 @@ import {
81
76
  inlineFont,
82
77
  kindFont,
83
78
  rowFont,
84
- strongColumnFont,
85
- tableFonts
86
- } from "./chunk-F3XOBFS4.js";
79
+ strongColumnFont
80
+ } from "./chunk-FBIMTKYK.js";
87
81
  import {
88
82
  chartString
89
- } from "./chunk-PMT75APP.js";
83
+ } from "./chunk-UXJXA4NP.js";
90
84
  import {
91
85
  chipHeight,
92
86
  chipPaints,
@@ -98,7 +92,7 @@ import {
98
92
  statusSquarePaint,
99
93
  tableGround,
100
94
  toneTextPaint
101
- } from "./chunk-4ROZ4TFL.js";
95
+ } from "./chunk-2HRDOBPS.js";
102
96
  import {
103
97
  qualifierFont,
104
98
  tableInk,
@@ -107,7 +101,7 @@ import {
107
101
  import {
108
102
  DEFAULT_EMPTY_MESSAGE,
109
103
  hasNoDataRows
110
- } from "./chunk-K2AOKBGW.js";
104
+ } from "./chunk-E62SXDRT.js";
111
105
  import {
112
106
  ACCEPTANCE_PROBE,
113
107
  FIXED_SIZE_PROBE,
@@ -129,7 +123,7 @@ import {
129
123
  spareShare,
130
124
  tableTextMeasure,
131
125
  withPlanInputs
132
- } from "./chunk-F6IPP33V.js";
126
+ } from "./chunk-YM4MVABU.js";
133
127
  import {
134
128
  authoredNotes,
135
129
  composedTextRole,
@@ -141,29 +135,18 @@ import {
141
135
  legendOff,
142
136
  legendRequired,
143
137
  solveFrame
144
- } from "./chunk-D3UPBA4R.js";
138
+ } from "./chunk-AUSZDYGE.js";
145
139
  import {
146
140
  disclosureNote,
147
141
  staticFrame
148
- } from "./chunk-DZYTXZNS.js";
142
+ } from "./chunk-WD5NJHZG.js";
149
143
  import {
150
- AUTOMATIC_FORMAT,
151
- MAGNITUDE_DIVISOR,
152
- MAGNITUDE_GROUP,
153
- MAGNITUDE_LABEL,
154
- effectiveScale,
155
- formatWithSpec,
156
- parseFormatExample,
157
- specUnitKind,
158
- unitOfSpec
159
- } from "./chunk-Z6DUNKFU.js";
144
+ parseFormatExample
145
+ } from "./chunk-3JG764MI.js";
160
146
  import {
161
147
  formatExactNumber,
162
- nonzeroDecimals,
163
- roundHalfUp,
164
- roundsToZero,
165
148
  zeroLifts
166
- } from "./chunk-MSYTF3DZ.js";
149
+ } from "./chunk-FYFXOLWI.js";
167
150
  import {
168
151
  canvasMargin,
169
152
  colorblindRoles,
@@ -178,7 +161,7 @@ import {
178
161
  strokeToken,
179
162
  textScaleOf,
180
163
  typeWidthClass
181
- } from "./chunk-TX5FSNAU.js";
164
+ } from "./chunk-XAH4EWJT.js";
182
165
  import {
183
166
  TARGET_SIZE,
184
167
  accessibleTitle,
@@ -474,272 +457,6 @@ function emitSparkline(context, values, metrics) {
474
457
  }).map((node) => node.t === "text" ? { ...node, typeRole: "label" } : node);
475
458
  }
476
459
 
477
- // src/core/charts/table/fitFormats.ts
478
- var NEXT_MAGNITUDE = {
479
- none: "k",
480
- k: "m",
481
- m: "bn",
482
- bn: "t",
483
- t: void 0
484
- }, FIT_DIGITS = 2;
485
- function keptDigits(value, magnitude, decimals) {
486
- return roundHalfUp(Math.abs(value) / MAGNITUDE_DIVISOR[magnitude], decimals).replace(".", "").replace(/^0+/, "").length;
487
- }
488
- var ONE_DIGIT_TOLERANCE = 0.05;
489
- function printsNear(value, magnitude, decimals) {
490
- let scaled = Math.abs(value) / MAGNITUDE_DIVISOR[magnitude];
491
- return Math.abs(Number(roundHalfUp(scaled, decimals)) / scaled - 1) <= ONE_DIGIT_TOLERANCE;
492
- }
493
- function keepsDigits(figures, spec, next) {
494
- return figures.every((value) => {
495
- let kept = keptDigits(value, next.magnitude, next.decimals);
496
- return kept === 0 && spec.automatic ? !0 : kept < Math.min(FIT_DIGITS, keptDigits(value, spec.magnitude, spec.decimals)) ? !1 : kept === 0 || kept >= FIT_DIGITS || printsNear(value, next.magnitude, next.decimals);
497
- });
498
- }
499
- function floorDecimals(figures, spec, magnitude, from = 0) {
500
- let decimals = from;
501
- for (; decimals < 6 && !keepsDigits(figures, spec, { magnitude, decimals }); ) decimals++;
502
- return decimals;
503
- }
504
- function shorterSpec(spec, figures) {
505
- if (spec.glyphs || spec.negative === "trailing" || spec.ordinal || spec.exponent || spec.magnitudeInAffix) return;
506
- let maxAbs = figures === void 0 ? 1 / 0 : Math.max(0, maxOf(figures));
507
- if (figures ??= [], spec.significantDigits !== void 0) return;
508
- if (spec.decimals > 0) {
509
- let decimals = spec.decimals === 4 && spec.thousandsSep === "" ? 2 : spec.decimals - 1, plain = { ...spec, decimals }, next2 = plain.magnitude === "none" || maxAbs === 1 / 0 ? plain : { ...plain, ...effectiveScale(maxAbs, plain) };
510
- return keepsDigits(figures, spec, next2) ? next2 : void 0;
511
- }
512
- if (specUnitKind(spec) !== "number" || !/^(?:|\p{Sc}|[A-Z]{3})$/u.test(spec.suffix.trim())) return;
513
- let magnitude = NEXT_MAGNITUDE[spec.magnitude];
514
- if (magnitude === void 0 || maxAbs / MAGNITUDE_DIVISOR[magnitude] < 1) return;
515
- let next = { ...spec, magnitude, decimals: 1, rollMagnitude: void 0 };
516
- if (maxAbs === 1 / 0) return next;
517
- let rolled = { ...next, ...effectiveScale(maxAbs, next) };
518
- rolled.decimals = floorDecimals(figures, spec, rolled.magnitude, rolled.decimals);
519
- let widest = (candidate) => maxOf(figures.map((value) => formatWithSpec(value, candidate).length)), held = { ...next, decimals: floorDecimals(figures, spec, magnitude), thousandsSep: spec.thousandsSep || ",", rollMagnitude: !1 }, step = rolled.magnitude === magnitude || widest(held) > widest(rolled) ? rolled : held;
520
- return widest(step) >= widest(spec) ? void 0 : step;
521
- }
522
- function exampleOf(spec) {
523
- let whole = spec.thousandsSep === "" ? spec.decimals === 3 ? "0" : "1" : `1${spec.thousandsSep}234`, fraction = spec.decimals > 0 ? `${spec.decimalSep}${"2345678".slice(0, spec.decimals)}` : "", ordinal = spec.ordinal ? spec.thousandsSep ? "th" : "st" : "", numberStyle = spec.exponent ? `${spec.exponent.letter}${spec.exponent.sign}${"6".padStart(spec.exponent.digits, "0")}` : spec.ordinal === "upper" ? ordinal.toUpperCase() : ordinal, body = `${spec.signed && !spec.glyphs ? "+" : ""}${spec.prefix}${whole}${fraction}${numberStyle}${spec.magnitudeInAffix ? "" : MAGNITUDE_LABEL[spec.magnitude]}${spec.suffix}`;
524
- return spec.glyphs && (body = spec.glyphs.at === "start" ? spec.glyphs.up + spec.glyphs.space + body : body + spec.glyphs.space + spec.glyphs.up), spec.negative === "parens" ? `(${body})` : spec.negative === "trailing" ? body + spec.trailingMinus : body;
525
- }
526
- function withRowFormats(rows, formats) {
527
- return rows.map((row) => {
528
- let next = formats.get(row.id), children = row.children === void 0 ? void 0 : withRowFormats(row.children, formats);
529
- return next === void 0 && children === row.children ? row : {
530
- ...row,
531
- ...next === void 0 ? {} : { format: next.format },
532
- ...next?.unitAffix === void 0 ? {} : { unitAffix: next.unitAffix },
533
- ...children === void 0 ? {} : { children }
534
- };
535
- });
536
- }
537
- function withCellFormats(rows, formats) {
538
- return rows.map((row) => {
539
- let next = formats.get(row.id), children = row.children === void 0 ? void 0 : withCellFormats(row.children, formats);
540
- if (next === void 0 && children === void 0) return row;
541
- let cells = next === void 0 ? row.cells : { ...row.cells };
542
- for (let [columnId, format] of next ?? []) {
543
- let cell = row.cells[columnId];
544
- cells[columnId] = typeof cell == "number" ? { v: cell, format } : { ...cell, format };
545
- }
546
- return { ...row, ...cells === void 0 ? {} : { cells }, ...children === void 0 ? {} : { children } };
547
- });
548
- }
549
- function rowExample(row, decimal) {
550
- if (row === void 0) return;
551
- if (row.format !== void 0) return row.format;
552
- let calc = row.calc;
553
- return calc !== void 0 && "op" in calc && (calc.op === "share" || calc.op === "percentDelta") ? `1${decimal}2%` : void 0;
554
- }
555
- function authoredRows(rows, into = /* @__PURE__ */ new Map()) {
556
- for (let row of rows)
557
- into.set(row.id, row), row.children && authoredRows(row.children, into);
558
- return into;
559
- }
560
- function fitTableFormats(data, options, resolved, columns, ctx) {
561
- let current = data, unlifted = { ...options, [ZERO_LIFT]: "none" }, result = resolved.lifted ? resolveTable(data, unlifted) : resolved, fitted, exhausted = /* @__PURE__ */ new Set(), decimal = ctx.decimal ?? ".", fittedRows = /* @__PURE__ */ new Set(), fittedColumns = /* @__PURE__ */ new Set(), fittedCells = /* @__PURE__ */ new Set();
562
- for (let round = 0; round < 8; round++) {
563
- let table = result.table, resolvedById = new Map(table.rows.map((row) => [row.id, row])), rowsById = authoredRows(current.rows), authoredColumns = new Map(current.columns.map((column) => [column.id, column])), rowOverflow = /* @__PURE__ */ new Set(), rowPrinting = /* @__PURE__ */ new Set(), columnOverflow = /* @__PURE__ */ new Set(), cellOverflow = [], rowFigures = /* @__PURE__ */ new Map(), columnFigures = /* @__PURE__ */ new Map(), figure = (map, id, value) => {
564
- value !== 0 && map.set(id, [...map.get(id) ?? [], Math.abs(value)]);
565
- };
566
- for (let column of columns(table)) {
567
- if (column.width === void 0 || column.kind !== "value" && column.kind !== "computed") continue;
568
- let room = column.width - 2 * ctx.padX, authoredColumn = authoredColumns.get(column.id);
569
- for (let row of table.rows) {
570
- if (row.role === "section") continue;
571
- let parent = row.inline === !0 && row.parentId !== void 0 ? resolvedById.get(row.parentId) : void 0;
572
- if (row.inline === !0 && (parent === void 0 || ctx.lineFont === void 0)) continue;
573
- let cell = row.cells[column.id];
574
- if (cell === void 0 || cell.state !== "value" || typeof cell.raw != "number") continue;
575
- let tabular = ctx.figures?.(column, cell.displayed), font = parent !== void 0 ? ctx.lineFont(parent, row, cell.displayed, tabular) : ctx.cellFont(cell), measured = ctx.measure(cell.displayed, figureFont(font, tabular)).width, overflows = measured + (ctx.slack?.(font, measured) ?? 0) > room;
576
- if (cell.format !== void 0) {
577
- overflows && cellOverflow.push({ rowId: row.id, columnId: column.id, format: cell.format, max: Math.abs(cell.raw) });
578
- continue;
579
- }
580
- figure(rowFigures, row.id, cell.raw), figure(columnFigures, column.id, cell.raw);
581
- let authoredRow = rowsById.get(row.id), rowFormatted = rowExample(authoredRow, decimal) !== void 0 && (authoredRow.calc !== void 0 || authoredRow.inline === !0 || authoredColumn === void 0 || !columnOwnsFormat(authoredColumn)), fits = authoredRow?.fitFormat !== !1 && !(authoredRow?.scale === "money" && authoredRow[MAGNITUDE_GROUP] !== void 0);
582
- rowFormatted && fits && rowPrinting.add(row.id), overflows && (rowFormatted ? fits : authoredColumn?.fitFormat !== !1) && (rowFormatted ? rowOverflow.add(row.id) : columnOverflow.add(column.id));
583
- }
584
- }
585
- let rowFormattedColumn = (columnId) => {
586
- let authoredColumn = authoredColumns.get(columnId);
587
- return authoredColumn !== void 0 && columnOwnsFormat(authoredColumn) ? !1 : table.rows.some((row) => {
588
- let authored = rowsById.get(row.id);
589
- return authored?.format !== void 0 && authored.calc === void 0 && row.inline !== !0 && typeof row.cells[columnId]?.raw == "number";
590
- });
591
- }, rowFormats = /* @__PURE__ */ new Map();
592
- for (let rowId of rowOverflow) {
593
- if (exhausted.has(`row:${rowId}`)) continue;
594
- let row = rowsById.get(rowId), spec = parseFormatExample(rowExample(row, decimal)), automatic = row.format === void 0 || row[AUTOMATIC_FORMAT] === !0, next = shorterSpec({ ...spec, automatic }, rowFigures.get(rowId) ?? []);
595
- if (next === void 0) {
596
- exhausted.add(`row:${rowId}`);
597
- continue;
598
- }
599
- let before = unitOfSpec(spec), after = unitOfSpec(next);
600
- rowFormats.set(rowId, {
601
- format: exampleOf(next),
602
- // The label names the unit the cells now read in.
603
- ...row.unitAffix !== void 0 && before !== null && after !== null && row.unitAffix === before && before !== after ? { unitAffix: after } : {}
604
- });
605
- }
606
- let unitOf = (row, spec) => `${row.inline === !0 ? "line" : "row"}|${row.unitAffix ?? ""}|${spec.prefix.trim()}|${spec.suffix.trim()}|${specUnitKind(spec)}|${spec.magnitude}`, caps = /* @__PURE__ */ new Map();
607
- for (let [rowId, next] of rowFormats) {
608
- let row = resolvedById.get(rowId);
609
- if (row === void 0) continue;
610
- let spec = parseFormatExample(next.format), key = unitOf(row, spec);
611
- caps.set(key, Math.min(caps.get(key) ?? 1 / 0, spec.decimals));
612
- }
613
- for (let rowId of rowPrinting) {
614
- if (exhausted.has(`row:${rowId}`)) continue;
615
- let row = resolvedById.get(rowId), shortened = rowFormats.get(rowId), example = shortened?.format ?? rowExample(rowsById.get(rowId), decimal);
616
- if (row === void 0 || example === void 0) continue;
617
- let spec = parseFormatExample(example), cap = caps.get(unitOf(row, spec));
618
- if (cap === void 0 || spec.significantDigits !== void 0 || spec.decimals <= cap || cap === 3 && spec.thousandsSep === "") continue;
619
- let decimals = floorDecimals(rowFigures.get(rowId) ?? [], spec, spec.magnitude, cap);
620
- decimals >= spec.decimals || rowFormats.set(rowId, { ...shortened, format: exampleOf({ ...spec, decimals }) });
621
- }
622
- let columnFormats = /* @__PURE__ */ new Map();
623
- for (let columnId of columnOverflow) {
624
- if (exhausted.has(`col:${columnId}`)) continue;
625
- if (rowFormattedColumn(columnId)) {
626
- exhausted.add(`col:${columnId}`);
627
- continue;
628
- }
629
- let authoredExample = authoredColumns.get(columnId), example = authoredExample?.format ?? table.columns.find((column) => column.id === columnId)?.format, automatic = options.format === void 0 && (authoredExample?.format === void 0 || authoredExample[AUTOMATIC_FORMAT] === !0), next = example === void 0 ? void 0 : shorterSpec({ ...parseFormatExample(example), automatic }, columnFigures.get(columnId) ?? []);
630
- if (next === void 0) {
631
- exhausted.add(`col:${columnId}`);
632
- continue;
633
- }
634
- columnFormats.set(columnId, exampleOf(next));
635
- }
636
- let cellFormats = /* @__PURE__ */ new Map();
637
- for (let { rowId, columnId, format, max } of cellOverflow) {
638
- let key = tableCellNodeId("cell", rowId, columnId);
639
- if (exhausted.has(key)) continue;
640
- let next = shorterSpec(parseFormatExample(format), [max]);
641
- if (next === void 0) {
642
- exhausted.add(key);
643
- continue;
644
- }
645
- cellFormats.set(rowId, (cellFormats.get(rowId) ?? /* @__PURE__ */ new Map()).set(columnId, exampleOf(next)));
646
- }
647
- if (rowFormats.size === 0 && columnFormats.size === 0 && cellFormats.size === 0) break;
648
- for (let rowId of rowFormats.keys()) fittedRows.add(rowId);
649
- for (let columnId of columnFormats.keys()) fittedColumns.add(columnId);
650
- for (let [rowId, formats] of cellFormats) for (let columnId of formats.keys()) fittedCells.add(`${rowId}\0${columnId}`);
651
- let rows = rowFormats.size === 0 ? current.rows : withRowFormats(current.rows, rowFormats);
652
- current = {
653
- ...current,
654
- columns: current.columns.map((column) => columnFormats.has(column.id) ? { ...column, format: columnFormats.get(column.id) } : column),
655
- rows: cellFormats.size === 0 ? rows : withCellFormats(rows, cellFormats)
656
- }, fitted = resolveTable(current, unlifted, data), result = fitted;
657
- }
658
- if (fitted === void 0) return;
659
- {
660
- let table = result.table, resolvedById = new Map(table.rows.map((row) => [row.id, row])), rowsById = authoredRows(current.rows), familyKey = (row, spec) => `${row.inline === !0 ? "line" : "row"}|${row.unitAffix ?? ""}|${spec.prefix.trim()}|${spec.suffix.trim()}|${specUnitKind(spec)}|${spec.magnitude}`, families = /* @__PURE__ */ new Map();
661
- for (let [id, authored] of rowsById) {
662
- let row = resolvedById.get(id), example = rowExample(authored, decimal);
663
- if (row === void 0 || example === void 0 || authored.calc !== void 0 || authored.fitFormat === !1) continue;
664
- let spec = parseFormatExample(example);
665
- if (spec.significantDigits !== void 0) continue;
666
- let key = familyKey(row, spec);
667
- families.set(key, [...families.get(key) ?? [], { id, spec }]);
668
- }
669
- let unified = /* @__PURE__ */ new Map();
670
- for (let members of families.values()) {
671
- if (!members.some((member) => fittedRows.has(member.id))) continue;
672
- let least = minOf(members.map((member) => member.spec.decimals));
673
- for (let member of members) {
674
- if (member.spec.decimals <= least || least === 3 && member.spec.thousandsSep === "") continue;
675
- let figures = Object.values(resolvedById.get(member.id).cells).flatMap((cell) => cell?.state === "value" && typeof cell.raw == "number" && cell.raw !== 0 && cell.format === void 0 ? [Math.abs(cell.raw)] : []), decimals = floorDecimals(figures, member.spec, member.spec.magnitude, least);
676
- decimals < member.spec.decimals && unified.set(member.id, { format: exampleOf({ ...member.spec, decimals }) });
677
- }
678
- }
679
- if (unified.size > 0) {
680
- for (let id of unified.keys()) fittedRows.add(id);
681
- current = { ...current, rows: withRowFormats(current.rows, unified) }, fitted = resolveTable(current, unlifted, data);
682
- }
683
- }
684
- let lifts = zeroFigureFormats(current, fitted.table, fittedRows, fittedColumns, fittedCells, decimal, options, data);
685
- return lifts.size > 0 && (current = { ...current, rows: withCellFormats(current.rows, lifts) }), (lifts.size > 0 || options[ZERO_LIFT] !== "none") && (fitted = resolveTable(current, options, data)), { data: current, resolved: fitted, changes: formatChanges(data, current, decimal) };
686
- }
687
- function formatsFittedWarning(changes) {
688
- if (changes.length === 0) return;
689
- let name = (change) => change.row !== void 0 && change.column !== void 0 ? `cell '${change.row}/${change.column}'` : change.row !== void 0 ? `row '${change.row}'` : `column '${change.column}'`, listed = changes.slice(0, 6).map((change) => `${name(change)} ${change.from ?? "derived"} to ${change.to}`).join("; ");
690
- return {
691
- code: "table-formats-fitted",
692
- severity: "info",
693
- message: `fitFormats shortened ${changes.length} format${changes.length === 1 ? "" : "s"} to fit authored widths: ${listed}${changes.length > 6 ? `; and ${changes.length - 6} more` : ""}`,
694
- detail: { changes },
695
- suggest: "Widen the column, or set fitFormat: false on the row or column to keep its format as authored."
696
- };
697
- }
698
- function formatChanges(before, after, decimal) {
699
- let changes = [], rowsBefore = authoredRows(before.rows), rowsAfter = authoredRows(after.rows);
700
- for (let [id, row] of rowsAfter) {
701
- let from = rowExample(rowsBefore.get(id), decimal), to = rowExample(row, decimal);
702
- from !== to && to !== void 0 && changes.push({ row: id, ...from === void 0 ? {} : { from }, to });
703
- }
704
- let columnsBefore = new Map(before.columns.map((column) => [column.id, column]));
705
- for (let column of after.columns) {
706
- let from = columnsBefore.get(column.id)?.format, to = column.format;
707
- from !== to && to !== void 0 && changes.push({ column: column.id, ...from === void 0 ? {} : { from }, to });
708
- }
709
- for (let [id, row] of rowsAfter)
710
- for (let [columnId, cell] of Object.entries(row.cells ?? {})) {
711
- let to = typeof cell == "object" && cell !== null ? cell.format : void 0, earlier = rowsBefore.get(id)?.cells?.[columnId], from = typeof earlier == "object" && earlier !== null ? earlier.format : void 0;
712
- to !== void 0 && from !== to && changes.push({ row: id, column: columnId, ...from === void 0 ? {} : { from }, to });
713
- }
714
- return changes;
715
- }
716
- function zeroFigureFormats(data, table, fittedRows, fittedColumns, fittedCells, decimal, options, source) {
717
- let lifts = /* @__PURE__ */ new Map();
718
- if (fittedRows.size === 0 && fittedColumns.size === 0 && fittedCells.size === 0) return lifts;
719
- let rowsById = authoredRows(data.rows), sourceRows = authoredRows(source.rows), automatic = options.format === void 0 && options.unit === void 0 && options.magnitude !== "million" && options.magnitude !== "thousand";
720
- for (let column of data.columns) {
721
- if (column.kind !== "value") continue;
722
- let columnFormat = column.format, automaticColumn = automatic && source.columns.find((entry) => entry.id === column.id)?.format === void 0;
723
- for (let row of table.rows) {
724
- let authoredRow = rowsById.get(row.id), authored = authoredRow?.cells?.[column.id], ownFitted = typeof authored == "object" && authored !== null && authored.format !== void 0 && fittedCells.has(`${row.id}\0${column.id}`) ? authored.format : void 0, raw = typeof authored == "number" ? authored : typeof authored == "object" && authored !== null && typeof authored.v == "number" && (authored.format === void 0 || ownFitted !== void 0) ? authored.v : void 0;
725
- if (raw === void 0 || raw === 0 || authoredRow.calc !== void 0) continue;
726
- let rowFormat = rowExample(authoredRow, decimal), line = row.inline === !0, rowFormatted = rowFormat !== void 0 && (columnFormat === void 0 || line), example = ownFitted ?? (rowFormatted ? fittedRows.has(row.id) && (line || specUnitKind(parseFormatExample(rowFormat)) !== "number") ? rowFormat : void 0 : fittedColumns.has(column.id) ? columnFormat ?? table.columns.find((entry) => entry.id === column.id)?.format : void 0);
727
- if (example === void 0) continue;
728
- let sourceRow = sourceRows.get(row.id);
729
- if (ownFitted === void 0 && (rowFormatted ? automatic && (sourceRow?.format === void 0 || sourceRow[AUTOMATIC_FORMAT] === !0) : automaticColumn)) continue;
730
- let spec = parseFormatExample(example), scaled = raw / MAGNITUDE_DIVISOR[spec.magnitude];
731
- if (roundsToZero(scaled, spec.decimals)) {
732
- if (ownFitted !== void 0 || row.inline === !0) {
733
- if (options[ZERO_LIFT] !== void 0) continue;
734
- zeroLifts.count++;
735
- }
736
- lifts.set(row.id, (lifts.get(row.id) ?? /* @__PURE__ */ new Map()).set(column.id, exampleOf({ ...spec, decimals: nonzeroDecimals(scaled, spec.decimals) })));
737
- }
738
- }
739
- }
740
- return lifts;
741
- }
742
-
743
460
  // src/core/charts/table/layout.ts
744
461
  var CRISP = 0.5, NOTE_BASELINE_LOCK = 0.88, HEADER_RULE_GAP = 7, GROUP_PAD_TOP = 6, GROUP_PAD_BOTTOM = 2, HEAT_ONLY_ROW_H = 14;
745
462
  function cellRole(kind, text) {
@@ -761,7 +478,7 @@ function prepareTableExecutor(authoredData, initialOptions = {}, initialResolved
761
478
  let input = preparedInput ?? prepareTableData(authoredData, options), resolved = suppliedResolved ?? (options === initialOptions && initialResolved ? initialResolved : resolvePreparedTable(input, options));
762
479
  preparedInput || (options = snapshotTableOptions(options));
763
480
  let choice = liftOrFallback((mode) => {
764
- let variant = mode === "full" ? options : { ...options, [ZERO_LIFT]: mode }, model = mode === "full" ? resolved : resolvedForSize(authoredData, variant), formatFits = /* @__PURE__ */ new Map(), {
481
+ let variant = mode === "full" ? options : { ...options, [ZERO_LIFT]: mode }, model = mode === "full" ? resolved : resolvedForSize(authoredData, variant), {
765
482
  size: _size,
766
483
  mode: _mode,
767
484
  belowMinimum: _below,
@@ -787,7 +504,7 @@ function prepareTableExecutor(authoredData, initialOptions = {}, initialResolved
787
504
  let current = Object.keys(candidate).length === 0 && Object.getOwnPropertySymbols(candidate).length === 0 ? variant : { ...variant, ...candidate }, { size: _candidateSize, [COMPACT_RETRY]: _candidateHeight, ...spacing } = candidate, typeClass = panelTypeClass(current) ?? typeWidthClass(resolveSize(current.size).width), key = variantKey + ":" + optionKey(spacing) + ":" + typeClass + (givesSectionAir(current) ? ":air" : ""), byKey = candidates.get(model);
788
505
  byKey || candidates.set(model, byKey = /* @__PURE__ */ new Map());
789
506
  let prepared = byKey.get(key);
790
- return prepared || (prepared = prepareTableCandidate(input.source, current, model, formatFits), byKey.size >= 256 && byKey.delete(byKey.keys().next().value), byKey.set(key, prepared)), prepared(current, sizingOnly, selected, widthOnlyOnMiss);
507
+ return prepared || (prepared = prepareTableCandidate(input.source, current, model), byKey.size >= 256 && byKey.delete(byKey.keys().next().value), byKey.set(key, prepared)), prepared(current, sizingOnly, selected, widthOnlyOnMiss);
791
508
  }
792
509
  } });
793
510
  }, (lifted, plain) => costsWidth(lifted.undrawn, plain.undrawn, options), resolved.lifted);
@@ -849,7 +566,7 @@ function costsWidth(lifted, plain, options) {
849
566
  let misses = (geometry) => missesFrame(geometry, options);
850
567
  if (misses(plain)) return !1;
851
568
  if (misses(lifted) || cutCount(lifted) > cutCount(plain)) return !0;
852
- let stepped = /* @__PURE__ */ new Set(["table-compact-fallback", "table-column-clipped", "table-overflow", "table-formats-fitted"]), before = new Set(plain.warnings.map((warning) => warning.code));
569
+ let stepped = /* @__PURE__ */ new Set(["table-compact-fallback", "table-column-clipped", "table-overflow"]), before = new Set(plain.warnings.map((warning) => warning.code));
853
570
  return lifted.warnings.some((warning) => stepped.has(warning.code) && !before.has(warning.code));
854
571
  }
855
572
  function themeGroupPad(theme) {
@@ -957,36 +674,12 @@ function sharedTableFrame(table, input) {
957
674
  function givesSectionAir(options) {
958
675
  return options[COMPACT_RETRY] !== void 0 && !heightOmitted(options.size) && options[TARGET_SIZE]?.fixed.height !== !1;
959
676
  }
960
- function prepareTableCandidate(authoredData, options, initialResolved, formatFits) {
677
+ function prepareTableCandidate(authoredData, options, initialResolved) {
961
678
  let tight = options[TIGHT_SPACING]?.columns === !0, tightRows = options[TIGHT_SPACING]?.rows === !0, sectionAirGiven = givesSectionAir(options), measure = tableTextMeasure(options.measure ?? defaultMeasurer), data = authoredData, resolved = initialResolved, warnings = [...resolved.warnings], theme = resolveSemanticPaletteTheme(
962
679
  chartTheme(options),
963
680
  options.palette,
964
681
  warnings
965
- ), ruleSpace = Math.ceil(strokeToken(theme, "hair")), heavySectionRule = theme.table?.section?.rule !== "hair", rowRuleWidth = theme.table?.ruleWidths?.row ?? strokeToken(theme, "hair"), sectionRuleWidth = heavySectionRule ? 2 * strokeToken(theme, "rule") : rowRuleWidth, sectionRuleSpace = Math.ceil(sectionRuleWidth);
966
- if (options.fitFormats === !0) {
967
- let padX = options.cellPadX ?? cellPadX(visibleColumns(resolved.table).length), fitKey = `${options.density ?? "regular"}:${padX}`, fitted = formatFits.get(fitKey);
968
- if (!formatFits.has(fitKey)) {
969
- let fitLadder = levelLadder(theme, options.density ?? "regular", options.target, textScaleOf(options)), fitFonts = tableFonts(theme, fitLadder), rowById = new Map(resolved.table.rows.map((row) => [row.id, row])), fitChanges = new Set(resolved.table.rows.filter((row) => visibleInlineRows(row, options.inlineVisibility).length > 0).map((row) => row.id));
970
- fitted = fitTableFormats(data, options, resolved, (table2) => visibleColumns(table2), {
971
- measure,
972
- padX,
973
- cellFont: (cell) => {
974
- let row = rowById.get(cell.rowId);
975
- return kindFont(rowFont(theme, fitLadder, fitFonts, cell.role, row?.step ?? cell.level, row?.hasChildren === !0, fitChanges.size > 0 && fitChanges.has(cell.rowId)), row?.kind, cell.kind === "rowLabel", theme);
976
- },
977
- figures: (col, text) => cellDrawsTabular(theme, col.kind, text),
978
- lineFont: (parent, line, text, tabular) => changeLineFitFont(theme, fitLadder, parent.step, line.polarity !== void 0, text, measure, tabular),
979
- ...options.locale?.decimal === void 0 ? {} : { decimal: options.locale.decimal }
980
- }), formatFits.set(fitKey, fitted);
981
- }
982
- if (fitted !== void 0) {
983
- let warningsAfter = warnings.splice(resolved.warnings.length);
984
- warnings.length = 0, pushAll(warnings, fitted.resolved.warnings), pushAll(warnings, warningsAfter);
985
- let fittedNote = formatsFittedWarning(fitted.changes);
986
- fittedNote !== void 0 && warnings.push(fittedNote), data = fitted.data, resolved = fitted.resolved;
987
- }
988
- }
989
- let table = resolved.table, { dataRows, rows, expandedIds, fullRows, widthRows, cols, spans, bandedColumnRuns, heatLanes, arrowShapes, notes: tableNotes, textColumns, statusColumns } = sharedTableView(data, options, table), spacerBefore = /* @__PURE__ */ new Map();
682
+ ), ruleSpace = Math.ceil(strokeToken(theme, "hair")), heavySectionRule = theme.table?.section?.rule !== "hair", rowRuleWidth = theme.table?.ruleWidths?.row ?? strokeToken(theme, "hair"), sectionRuleWidth = heavySectionRule ? 2 * strokeToken(theme, "rule") : rowRuleWidth, sectionRuleSpace = Math.ceil(sectionRuleWidth), table = resolved.table, { dataRows, rows, expandedIds, fullRows, widthRows, cols, spans, bandedColumnRuns, heatLanes, arrowShapes, notes: tableNotes, textColumns, statusColumns } = sharedTableView(data, options, table), spacerBefore = /* @__PURE__ */ new Map();
990
683
  for (let group of table.columnGroups) {
991
684
  if (group.spacer === void 0 || group.spacer <= 0) continue;
992
685
  let first = cols.find((col) => group.columnIds.includes(col.id));
@@ -2160,8 +1853,6 @@ export {
2160
1853
  sparklineSourceValues,
2161
1854
  sparklineDomains,
2162
1855
  emitSparkline,
2163
- fitTableFormats,
2164
- formatsFittedWarning,
2165
1856
  prepareTableExecutor,
2166
1857
  prepareTableCardExecutor,
2167
1858
  layoutTableCard,