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
@@ -6,47 +6,47 @@ import {
6
6
  } from "./chunk-QPWRHDLZ.js";
7
7
  import {
8
8
  warnMissingValue
9
- } from "./chunk-AICO24HJ.js";
9
+ } from "./chunk-5QMM354E.js";
10
10
  import {
11
11
  asColumnHeads,
12
12
  columnHeadFont,
13
13
  fitHead,
14
14
  headRequest
15
- } from "./chunk-KG7LKHD7.js";
15
+ } from "./chunk-ICJUN47O.js";
16
16
  import {
17
17
  runAnnotatePass
18
- } from "./chunk-CRTRY3IQ.js";
18
+ } from "./chunk-QDFX2KAP.js";
19
19
  import {
20
20
  rowLabelBand
21
- } from "./chunk-LLEDONMT.js";
21
+ } from "./chunk-MTOBNHAU.js";
22
22
  import {
23
23
  fittedLabel,
24
24
  gutterBudget,
25
25
  stepDownFont
26
- } from "./chunk-O3U6IOIO.js";
26
+ } from "./chunk-MOBRWYUQ.js";
27
27
  import {
28
28
  breakUnsupported
29
- } from "./chunk-WFBN2HXR.js";
29
+ } from "./chunk-AIPOSNVG.js";
30
30
  import {
31
31
  chartString
32
- } from "./chunk-HTQGJQZN.js";
32
+ } from "./chunk-DITI57ZB.js";
33
33
  import {
34
34
  cardFrameTheme,
35
35
  cardSize
36
- } from "./chunk-XO4DJM33.js";
36
+ } from "./chunk-LM4GVVPM.js";
37
37
  import {
38
38
  categoryTargetFields,
39
39
  spliceAnnotationNodes
40
40
  } from "./chunk-CDZHNLO6.js";
41
41
  import {
42
42
  BAND_PAD
43
- } from "./chunk-E5YF236N.js";
43
+ } from "./chunk-R4MVXUAG.js";
44
44
  import {
45
45
  labelOn
46
- } from "./chunk-TMEUK2WS.js";
46
+ } from "./chunk-77L6QGIG.js";
47
47
  import {
48
48
  structureCount
49
- } from "./chunk-KW4JXWHO.js";
49
+ } from "./chunk-YDYZWCUQ.js";
50
50
  import {
51
51
  alignedLeft,
52
52
  alignedRight,
@@ -77,8 +77,9 @@ import {
77
77
  rowSizing,
78
78
  shownTickStep,
79
79
  straightBreakGlyph,
80
+ tickFormatter,
80
81
  valueAxisTitleRequest
81
- } from "./chunk-F6IPP33V.js";
82
+ } from "./chunk-YM4MVABU.js";
82
83
  import {
83
84
  PRIORITY,
84
85
  authoredFootnoteCount,
@@ -91,23 +92,21 @@ import {
91
92
  plotHeightAfter,
92
93
  solveFrame,
93
94
  solveLabels
94
- } from "./chunk-D3UPBA4R.js";
95
+ } from "./chunk-AUSZDYGE.js";
95
96
  import {
96
97
  emptyIdRecord
97
98
  } from "./chunk-LINZPU5D.js";
98
99
  import {
99
- defaultFormatSpec,
100
+ defaultSetSpec,
101
+ engineNumberSpec,
100
102
  exampleSpec,
101
103
  formatWithSpec,
102
104
  parseFormatExample,
103
105
  roundedNumber
104
- } from "./chunk-Z6DUNKFU.js";
106
+ } from "./chunk-3JG764MI.js";
105
107
  import {
106
- AUTO_MAX_DECIMALS,
107
- autoDecimals,
108
- formatAutomaticNumber,
109
108
  formatAutomaticPercent
110
- } from "./chunk-MSYTF3DZ.js";
109
+ } from "./chunk-FYFXOLWI.js";
111
110
  import {
112
111
  cellMeta,
113
112
  cellValue,
@@ -134,7 +133,7 @@ import {
134
133
  strokeToken,
135
134
  tableHeadFloorPx,
136
135
  textScaleOf
137
- } from "./chunk-TX5FSNAU.js";
136
+ } from "./chunk-XAH4EWJT.js";
138
137
  import {
139
138
  contrastRatio
140
139
  } from "./chunk-BQBD6Q5J.js";
@@ -349,6 +348,14 @@ function layoutTargetScale(input) {
349
348
  candidates: [{ slot: kind === "category" ? "left" : "rowEnd", rect, penalty: 0 }],
350
349
  ...extra
351
350
  });
351
+ }, numberShows = (column, row, value) => input.columnShows && input.numberText ? input.columnShows(column, input.numberText(row, value)) : void 0, markShows = (row, index) => {
352
+ if (!input.columnShows) return {};
353
+ let share = shares[index], delta = input.deltaVsTarget[row.id];
354
+ return {
355
+ ...row.value === null ? {} : numberShows("actual", row, row.value),
356
+ ...share === void 0 ? {} : input.columnShows("share", shareText(share)),
357
+ ...delta === void 0 ? {} : input.columnShows("delta", input.deltaBody(row, delta))
358
+ };
352
359
  }, bandPaints = targetBands(directions, target, options).map((band) => band.paint);
353
360
  rows.forEach((row, index) => {
354
361
  let top = rowsTop + rowTops[index], barCenter = bandCenterAt(index), valueCenter = stacked ? top + stackValueOffset + line1H / 2 : barCenter, owner = { categoryId: row.id }, share = shares[index], fill = measurePaint(row), fillCss = paintColor(theme, fill), backing = bandPaints.reduce((nearest, paint) => {
@@ -360,13 +367,13 @@ function layoutTargetScale(input) {
360
367
  separation: { fill, backing: { token: "background" }, alternateBackings: bandPaints }
361
368
  }, barNodeId;
362
369
  if (share !== void 0 && share > 0) {
363
- let y = barCenter - barH / 2, display = { value: valueTexts[index] ?? input.valueText(row) ?? "" };
370
+ let y = barCenter - barH / 2, shows = markShows(row, index), display = { value: valueTexts[index] ?? input.valueText(row) ?? "", shows };
364
371
  if (barNodeId = `bar:${row.id}`, share <= hi) {
365
372
  let rect = { x: x(0), y, w: Math.max(0.5, x(share) - x(0)), h: barH };
366
- nodes.push({ t: "rect", id: barNodeId, rect, ...barStyle, owner, part: "bar", ...hidden("actual") ? {} : { display } }), occupied.claim(rect, "mark", owner);
373
+ nodes.push({ t: "rect", id: barNodeId, rect, ...barStyle, owner, part: "bar", display: hidden("actual") ? { shows } : display }), occupied.claim(rect, "mark", owner);
367
374
  } else {
368
375
  let end = x(hi), cut2 = end - OVERFLOW_BREAK_INSET, rect = { x: x(0), y, w: Math.max(0.5, cut2 - 2 - x(0)), h: barH }, tail = { x: cut2 + 2, y, w: end - cut2 - 2, h: barH };
369
- nodes.push({ t: "rect", id: barNodeId, rect, ...barStyle, owner, part: "bar", ...hidden("actual") ? {} : { display } }), nodes.push({ t: "rect", id: `${barNodeId}:beyond`, rect: tail, ...barStyle, owner, part: "barBeyondBreak" });
376
+ nodes.push({ t: "rect", id: barNodeId, rect, ...barStyle, owner, part: "bar", display: hidden("actual") ? { shows } : display }), nodes.push({ t: "rect", id: `${barNodeId}:beyond`, rect: tail, ...barStyle, owner, part: "barBeyondBreak" });
370
377
  let glyph = straightBreakGlyph(theme, { x: cut2, y: barCenter }, `${barNodeId}:break`, owner, { token: "axis" }, "barBreak");
371
378
  nodes.push(...glyph.nodes), occupied.claim(rect, "mark", owner), occupied.claim(tail, "mark", owner), occupied.claim(glyph.rect, "axis", owner, "barBreak");
372
379
  }
@@ -388,7 +395,7 @@ function layoutTargetScale(input) {
388
395
  { x: alignedLeft(plot0.x, leftW, name.w, labelAlign), y: top, w: name.w, h: name.h },
389
396
  { ...fittedLabel(name, nameFont), priority: PRIORITY.endpoint + (highlights.has(row.id) ? PRIORITY.highlightBonus : 0) }
390
397
  );
391
- let note = (stacked ? stackNotes : sideNotes)[index];
398
+ let note = (stacked ? stackNotes : sideNotes)[index], targetShows = row.target === null || "title" in note && note.title !== void 0 ? void 0 : numberShows("target", row, row.target);
392
399
  request(
393
400
  `target:${row.id}`,
394
401
  "annotation",
@@ -396,19 +403,20 @@ function layoutTargetScale(input) {
396
403
  note.text,
397
404
  noteFont,
398
405
  { x: alignedLeft(plot0.x, leftW, note.w, labelAlign), y: noteTop, w: note.w, h: note.h },
399
- { ...fittedLabel(note, noteFont), role: "note" }
406
+ { ...fittedLabel(note, noteFont), role: "note", ...targetShows ? { shows: targetShows } : {} }
400
407
  ), inks.set(`target:${row.id}`, { token: "inkMuted" });
401
408
  }
402
409
  let valueText = valueTexts[index];
403
410
  if (valueText) {
404
- let size1 = measure(valueText, valueFont), left = stacked ? plot0.x + plot0.w - (shareW ? shareW + VALUE_GAP : 0) - size1.width : cellX("actual", size1.width);
411
+ let size1 = measure(valueText, valueFont), left = stacked ? plot0.x + plot0.w - (shareW ? shareW + VALUE_GAP : 0) - size1.width : cellX("actual", size1.width), label = row.meta?.label, valueShows = row.value === null || typeof label == "string" && !label.includes("${value}") ? void 0 : numberShows("actual", row, row.value);
405
412
  request(
406
413
  `point:${row.id}`,
407
414
  "point",
408
415
  owner,
409
416
  valueText,
410
417
  valueFont,
411
- { x: left, y: valueCenter - size1.height / 2, w: size1.width, h: size1.height }
418
+ { x: left, y: valueCenter - size1.height / 2, w: size1.width, h: size1.height },
419
+ valueShows ? { shows: valueShows } : {}
412
420
  );
413
421
  }
414
422
  let shareLabel = shareTexts[index];
@@ -421,7 +429,7 @@ function layoutTargetScale(input) {
421
429
  shareLabel,
422
430
  shareFont,
423
431
  { x: stacked ? plot0.x + plot0.w - size2.width : cellX("share", size2.width), y: valueCenter - size2.height / 2, w: size2.width, h: size2.height },
424
- { role: "value" }
432
+ { role: "value", ...input.columnShows ? { shows: input.columnShows("share", shareLabel) } : {} }
425
433
  ), inks.set(`share:${row.id}`, { token: "ink" });
426
434
  }
427
435
  let delta = deltas[index], deltaLabel = stacked ? deltaTexts[index] : deltaBodies[index];
@@ -434,7 +442,11 @@ function layoutTargetScale(input) {
434
442
  deltaLabel,
435
443
  deltaFont,
436
444
  { x: left, y, w: size3.width, h: size3.height },
437
- { role: composedTextRole(deltaLabel, "note"), priority: PRIORITY.extreme }
445
+ {
446
+ role: composedTextRole(deltaLabel, "note"),
447
+ priority: PRIORITY.extreme,
448
+ ...input.columnShows ? { shows: input.columnShows("delta", deltaBodies[index]) } : {}
449
+ }
438
450
  ), inks.set(labelId, { token: tone === "neutral" ? "ink" : tone }), placedAnnotations.push({
439
451
  id: `delta-target:${row.id}`,
440
452
  kind: "delta",
@@ -527,6 +539,15 @@ function layoutTargetScale(input) {
527
539
  };
528
540
  }
529
541
 
542
+ // src/core/charts/bullet/shown.ts
543
+ function bulletColumnShows(options, anyValue, anyTarget) {
544
+ let pointOn = labelOn(options, "point"), noteOn = labelOn(options, "annotation"), drawn = options.sharedScale === "percentOfTarget" ? [...pointOn ? ["actual", "share"] : [], ...noteOn ? ["delta"] : []] : [...pointOn && anyValue ? ["actual"] : [], ...noteOn && anyTarget ? ["target", "gap"] : []], removed = (id) => drawn.includes(id) && options.columnVisibility?.[id] === !1, leads = removed("actual") ? ["target", "gap", "share", "delta"].find((id) => drawn.includes(id) && !removed(id)) ?? "actual" : "actual";
545
+ return (column, text) => ({
546
+ ...column === leads ? { value: text } : {},
547
+ ...column === "target" ? { "field:target": text } : column === "gap" || column === "delta" ? { "cmp0.delta": text, [`field:${column}`]: text } : column === "share" ? { "field:share": text } : {}
548
+ });
549
+ }
550
+
530
551
  // src/core/charts/bullet/layout.ts
531
552
  var LABEL_GAP = 5, VALUE_COL_GAP = 6, CAT_BAND_GAP = 10, CAPSULE_GAP = 8, COLUMNS_GAP = 18, COLUMN_GAP2 = 16, LINE_GAP2 = 1, ROW_BAND = 30, ROW_BAND_MAX = 56, ROW_AIR = 16, ROW_PITCH_MAX = 240, EDGE_TICK = 3, BAR_FRACTION = 1 / 3, NAME_WEIGHT = 600, BANDS_UNEXPLAINED = "qualitative bands carry meaning the reader cannot decode \u2014 label the bands or explain them in a footnote";
532
553
  function bandAmount(row, index, count) {
@@ -753,25 +774,14 @@ function layoutBullet(data, options = {}) {
753
774
  message: "valueAxis is ignored while bullet rows are normalized to their own scales \u2014 one absolute axis cannot describe differently scaled rows",
754
775
  suggest: "set sharedScale: true to keep one absolute axis across rows"
755
776
  });
756
- let chartSpec = options.format ? exampleSpec(options.format, options.locale?.language, void 0, rows.flatMap((row) => row.isPct ? [] : [row.value, row.target])) : void 0, automaticSpec = (row) => {
757
- let spec = {
758
- ...defaultFormatSpec(options.locale?.language),
759
- decimals: Math.max(autoDecimals(row.value ?? 0), autoDecimals(row.target ?? 0)),
760
- suffix: row.isPct ? "%" : ""
761
- };
762
- if (row.value === null || row.target === null) return spec;
763
- let gap = cleanDiff(row.value, row.target);
764
- for (let extra = 0; extra < 2 && spec.decimals < AUTO_MAX_DECIMALS; extra++) {
765
- let shown2 = cleanDiff(roundedNumber(row.value, spec), roundedNumber(row.target, spec));
766
- if ((shown2 !== 0 || gap === 0) && Math.abs(shown2 - gap) <= 0.5 * 10 ** -spec.decimals * (1 + 1e-9)) break;
767
- spec.decimals++;
768
- }
769
- return spec;
770
- }, rowSpecs = new Map(rows.map((row) => [row, row.meta?.format ? exampleSpec(row.meta.format, options.locale?.language, void 0, [row.value, row.target]) : !row.isPct && chartSpec ? chartSpec : automaticSpec(row)])), rowFmt = (row) => (v) => formatWithSpec(v, rowSpecs.get(row)), shownDelta = (row, d) => row.value === null || row.target === null ? d : cleanDiff(roundedNumber(row.value, rowSpecs.get(row)), roundedNumber(row.target, rowSpecs.get(row))), valueTextOf = (row) => {
777
+ let chartSpec = options.format ? exampleSpec(options.format, options.locale?.language, void 0, rows.flatMap((row) => row.isPct ? [] : [row.value, row.target])) : void 0, automaticSpec = (row) => ({
778
+ ...defaultSetSpec([row.value, row.target], options.locale?.language, options.unit, row.isPct ? { kind: "percent" } : {}),
779
+ suffix: row.isPct ? "%" : ""
780
+ }), axisRuleSpec = chartSpec ? void 0 : defaultSetSpec(rows.flatMap((row) => row.isPct ? [] : [row.value, row.target]), options.locale?.language, options.unit), rowSpecs = new Map(rows.map((row) => [row, row.meta?.format ? exampleSpec(row.meta.format, options.locale?.language, void 0, [row.value, row.target]) : !row.isPct && chartSpec ? chartSpec : automaticSpec(row)])), rowFmt = (row) => (v) => formatWithSpec(v, rowSpecs.get(row)), shownDelta = (row, d) => row.value === null || row.target === null ? d : cleanDiff(roundedNumber(row.value, rowSpecs.get(row)), roundedNumber(row.target, rowSpecs.get(row))), valueTextOf = (row) => {
771
781
  if (row.value === null || row.meta?.label === !1) return null;
772
782
  let base = rowFmt(row)(row.value);
773
783
  return typeof row.meta?.label == "string" ? row.meta.label.replace(/\$\{value\}/g, base) : base;
774
- }, deltaBody = (row, d) => {
784
+ }, columnShows = bulletColumnShows(options, rows.some((row) => row.value !== null), rows.some((row) => row.target !== null)), valueShows = (row) => row.value === null || row.meta?.label === !1 || typeof row.meta?.label == "string" && !row.meta.label.includes("${value}") ? void 0 : columnShows("actual", rowFmt(row)(row.value)), deltaBody = (row, d) => {
775
785
  let spec = rowSpecs.get(row), shown2 = shownDelta(row, d), gapSpec = { ...spec, signed: !0, ...row.isPct ? { prefix: "", suffix: "pp" } : {} }, fixedSpec = { ...gapSpec, automatic: !1, nonzero: void 0 };
776
786
  return formatWithSpec(shown2, shown2 !== 0 && roundedNumber(shown2, fixedSpec) === 0 ? gapSpec : fixedSpec);
777
787
  }, deltaText = (row, d) => `${deltaBody(row, d)} ${shownDelta(row, d) === 0 ? chartString(options, "gapOn", { v1: targetWord(options) }) : `vs ${targetWord(options)}`}`, deltaTone = (row, d) => row.direction === "neutral" ? "neutral" : row.bands.some((band2) => band2.tone) ? (row.value === null ? row.bands.at(-1) : bandFor(row.value, row.bands)).tone ?? "neutral" : (d = shownDelta(row, d), d === 0 || d > 0 == (row.direction === "higherIsBetter") ? "good" : "bad"), deltaVsTarget = emptyIdRecord();
@@ -793,7 +803,8 @@ function layoutBullet(data, options = {}) {
793
803
  deltaText,
794
804
  deltaBody,
795
805
  deltaTone,
796
- deltaVsTarget
806
+ deltaVsTarget,
807
+ columnShows
797
808
  });
798
809
  let keyMode = options.bandKey ?? "auto", rowKeyOff = options[ROW_KEY_OFF] === !0, bandedRows = rows.filter((row) => row.bands.length > 0), namesEveryBand = bandedRows.length > 0 && bandedRows.every((row) => row.bands.every((band2) => band2.label !== void 0)), rowWanted = !rowKeyOff && !compact && (options.labels === !1 || labelOn2("annotation")) && namesEveryBand && (keyMode === "row" || keyMode === "auto" && rows.length <= 4 && options.bandFraction === void 0);
799
810
  rowWanted && options.bandFraction !== void 0 && warnings.push({
@@ -982,11 +993,12 @@ function layoutBullet(data, options = {}) {
982
993
  {
983
994
  scale: axisScale,
984
995
  ticks: stepTicks,
985
- ...stepTicks ? { formatSpec: chartSpec ?? defaultFormatSpec(options.locale?.language) } : {},
996
+ ...axisRuleSpec ? { formatSpec: axisRuleSpec } : stepTicks && chartSpec ? { formatSpec: chartSpec } : {},
986
997
  plot,
987
998
  orient: "x",
988
999
  gridlines: options.valueAxis.gridlines ?? !1,
989
- format: (v) => chartSpec ? formatWithSpec(v, chartSpec) : formatAutomaticNumber(v, { locale: options.locale?.language, decimals: autoDecimals(v) }),
1000
+ // A tick is the engine's number: it keeps the example's earlier rule.
1001
+ format: (v) => formatWithSpec(v, chartSpec ? engineNumberSpec(chartSpec) : axisRuleSpec),
990
1002
  theme,
991
1003
  measure,
992
1004
  canvasWidth: size.width
@@ -1071,8 +1083,8 @@ function layoutBullet(data, options = {}) {
1071
1083
  }
1072
1084
  prev = bandSpec.to;
1073
1085
  }), edgeTicks && row.bands.length > 0) {
1074
- let edges = [0, ...row.bands.map((bandSpec) => bandSpec.to)].map((value) => {
1075
- let text = !row.meta?.format && (row.isPct || !chartSpec) ? formatAutomaticNumber(value, { locale: options.locale?.language, decimals: autoDecimals(value), suffix: row.isPct ? "%" : "" }) : rowFmt(row)(value);
1086
+ let edgeValues = [0, ...row.bands.map((bandSpec) => bandSpec.to)], edgeFmt = !row.meta?.format && (row.isPct || !chartSpec) ? tickFormatter(rowSpecs.get(row), edgeValues) : rowFmt(row), edges = edgeValues.map((value) => {
1087
+ let text = edgeFmt(value);
1076
1088
  return { value, text, x: x(value), w: measure(text, noteFont).width };
1077
1089
  }), clear = (a, b) => b.x - b.w / 2 >= a.x + a.w / 2 + 4, last = edges.at(-1), kept = [edges[0]];
1078
1090
  for (let edge of edges.slice(1, -1)) clear(kept.at(-1), edge) && clear(edge, last) && kept.push(edge);
@@ -1119,16 +1131,21 @@ function layoutBullet(data, options = {}) {
1119
1131
  ...measureStyle(theme, barPaint(row), row.bands.flatMap((bandSpec, bandIndex) => (bandIndex === 0 ? 0 : row.bands[bandIndex - 1].to) < Math.max(0, row.value) && bandSpec.to > Math.min(0, row.value) || row.value === 0 && bandIndex === 0 ? [bandPaint(row, bandIndex)] : [])),
1120
1132
  owner,
1121
1133
  part: "bar",
1122
- ...shown("actual") ? { display: { value: rowFmt(row)(row.value) } } : {}
1134
+ // The value, and the gap where the row has one: the texts their labels print or would print.
1135
+ display: { ...shown("actual") ? { value: rowFmt(row)(row.value) } : {}, shows: {
1136
+ ...columnShows("actual", rowFmt(row)(row.value)),
1137
+ ...deltaVsTarget[row.id] === void 0 ? {} : columnShows("gap", deltaBody(row, deltaVsTarget[row.id]))
1138
+ } }
1123
1139
  }), occupied.claim(rect, "mark", owner), anchorByRow.set(row.id, { x: vx, y: rowCenter, value: row.value, date: row.date, label: row.label, owner }), pointOn) {
1124
1140
  let text = valueTextOf(row);
1125
1141
  if (text) {
1126
- let tsize = measure(text, valueFont);
1142
+ let tsize = measure(text, valueFont), shows = valueShows(row);
1127
1143
  labelRequests.push({
1128
1144
  id: `point:${row.id}`,
1129
1145
  kind: "point",
1130
1146
  owner,
1131
1147
  text,
1148
+ ...shows ? { shows } : {},
1132
1149
  lines: [text],
1133
1150
  font: valueFont,
1134
1151
  priority: row.meta?.priority ?? PRIORITY.endpoint + (highlights.has(row.id) ? PRIORITY.highlightBonus : 0),
@@ -1151,7 +1168,7 @@ function layoutBullet(data, options = {}) {
1151
1168
  width: targetStroke,
1152
1169
  owner,
1153
1170
  part: "target",
1154
- ...shown("target") ? { display: { value: rowFmt(row)(row.target) } } : {}
1171
+ display: { ...shown("target") ? { value: rowFmt(row)(row.target) } : {}, shows: columnShows("target", rowFmt(row)(row.target)) }
1155
1172
  }), occupied.claim({ x: tx - Math.max(1.5, targetStroke / 2 + 0.5), y: rowY + bw * 0.08, w: Math.max(3, targetStroke + 1), h: bw * 0.84 }, "mark", owner), !(cols && cp.colTargets[ri] === null)) {
1156
1173
  if (cols) {
1157
1174
  let text = cp.colTargets[ri], tsize = measure(text, labelFont), id = `target-value:${row.id}`;
@@ -1160,6 +1177,7 @@ function layoutBullet(data, options = {}) {
1160
1177
  kind: "annotation",
1161
1178
  owner,
1162
1179
  text,
1180
+ shows: columnShows("target", text),
1163
1181
  lines: [text],
1164
1182
  font: labelFont,
1165
1183
  role: "value",
@@ -1174,6 +1192,7 @@ function layoutBullet(data, options = {}) {
1174
1192
  kind: "annotation",
1175
1193
  owner,
1176
1194
  text,
1195
+ shows: columnShows("target", rowFmt(row)(row.target)),
1177
1196
  lines: [text],
1178
1197
  font: targetFont,
1179
1198
  role: "value",
@@ -1198,6 +1217,7 @@ function layoutBullet(data, options = {}) {
1198
1217
  role: composedTextRole(capsuleText, "note"),
1199
1218
  owner,
1200
1219
  text: capsuleText,
1220
+ shows: columnShows("gap", capsuleText),
1201
1221
  lines: [capsuleText],
1202
1222
  font: valueBaseFont,
1203
1223
  priority: PRIORITY.extreme,
@@ -1228,6 +1248,8 @@ function layoutBullet(data, options = {}) {
1228
1248
  role: composedTextRole(capsuleText, "note"),
1229
1249
  owner,
1230
1250
  text: capsuleText,
1251
+ // '+7 vs target' prints the gap's own text first.
1252
+ shows: columnShows("gap", deltaBody(row, d)),
1231
1253
  lines: [capsuleText],
1232
1254
  font: capsuleFont,
1233
1255
  priority: PRIORITY.extreme,
@@ -1351,6 +1373,7 @@ function layoutBullet(data, options = {}) {
1351
1373
  measure,
1352
1374
  format: options.format,
1353
1375
  locale: options.locale?.language,
1376
+ levelSpec: axisRuleSpec,
1354
1377
  strings: options.strings,
1355
1378
  valueLinePercentLevels: options.unit === "%" || rows.some((row) => row.value !== null) && rows.every((row) => row.value === null || row.isPct),
1356
1379
  solveCtx,
@@ -1509,6 +1532,8 @@ function layoutBulletOnTargetScale(data, options, ctx) {
1509
1532
  deltaBody: (row, d) => ctx.deltaBody(row, d),
1510
1533
  deltaTone: (row, d) => ctx.deltaTone(row, d),
1511
1534
  deltaVsTarget: ctx.deltaVsTarget,
1535
+ columnShows: ctx.columnShows,
1536
+ numberText: (row, value) => rowFmt(row)(value),
1512
1537
  grow: (chromeH, rowsH) => {
1513
1538
  let height = rowDrivenHeight({ options, width: size.width, height: size.height, chromeH, rowsH });
1514
1539
  return height === void 0 ? void 0 : layoutBullet(data, { ...options, size: { width: size.width, height } });
@@ -5,14 +5,16 @@ import {
5
5
  interactionRecords,
6
6
  interactionValueText,
7
7
  rawUnit
8
- } from "./chunk-K672I6R6.js";
8
+ } from "./chunk-DEJ27Y2P.js";
9
9
  import {
10
10
  isFullGeometry
11
- } from "./chunk-VGEHOB25.js";
11
+ } from "./chunk-NPDF7HEH.js";
12
12
  import {
13
- chartStrings,
14
- withSmallValues
15
- } from "./chunk-MSYTF3DZ.js";
13
+ withChartFormats
14
+ } from "./chunk-3JG764MI.js";
15
+ import {
16
+ chartStrings
17
+ } from "./chunk-FYFXOLWI.js";
16
18
 
17
19
  // src/react/hover/dataTable.tsx
18
20
  import { useMemo } from "react";
@@ -169,7 +171,7 @@ function AccessibleTable({ table, mode }) {
169
171
  // src/react/hover/dataTable.tsx
170
172
  import { jsx as jsx2 } from "react/jsx-runtime";
171
173
  function DataTable({ request, geometry, prepared, mode }) {
172
- let table = useMemo(() => withSmallValues(request.options.smallValues, () => {
174
+ let table = useMemo(() => withChartFormats(request.options, () => {
173
175
  let records = isFullGeometry(geometry) ? interactionRecords({ request, geometry, scope: request.scope, claims: [] }) : prepared?.records ?? [];
174
176
  return accessibleDataTable(records, { title: geometry.a11y.title, locale: request.locale?.language });
175
177
  }), [request, geometry, prepared]);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rectContains
3
- } from "./chunk-TX5FSNAU.js";
3
+ } from "./chunk-XAH4EWJT.js";
4
4
  import {
5
5
  NormalizeError
6
6
  } from "./chunk-RJICOOB3.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  rectLineDistance,
3
3
  segmentHitsRect
4
- } from "./chunk-TX5FSNAU.js";
4
+ } from "./chunk-XAH4EWJT.js";
5
5
 
6
6
  // src/core/polyline.ts
7
7
  var MAX_COORDINATE = 2 ** 40, MIN_DELTA = 2 ** -256;
@@ -5,45 +5,45 @@ import {
5
5
  columnHeadText,
6
6
  columnWidth,
7
7
  differenceFormatter
8
- } from "./chunk-OCPVQZCC.js";
8
+ } from "./chunk-UV77Y7QK.js";
9
9
  import {
10
10
  unitConflict,
11
11
  unitConflictRefusal
12
12
  } from "./chunk-DZ3S4RPI.js";
13
13
  import {
14
14
  positionBarLabel
15
- } from "./chunk-76GPN6AT.js";
15
+ } from "./chunk-7UUSHA7H.js";
16
16
  import {
17
17
  marginBracketLayout
18
- } from "./chunk-OGWZT3PH.js";
18
+ } from "./chunk-3ZR7ZE64.js";
19
19
  import {
20
20
  warnMissingValue
21
- } from "./chunk-AICO24HJ.js";
21
+ } from "./chunk-5QMM354E.js";
22
22
  import {
23
23
  HEAD_PREFIX,
24
24
  asColumnHeads,
25
25
  fitHead,
26
26
  headRequest
27
- } from "./chunk-KG7LKHD7.js";
27
+ } from "./chunk-ICJUN47O.js";
28
28
  import {
29
29
  percentLevels,
30
30
  runAnnotatePass
31
- } from "./chunk-CRTRY3IQ.js";
31
+ } from "./chunk-QDFX2KAP.js";
32
32
  import {
33
33
  GUTTER_MAX_SHARE,
34
34
  fitColumn,
35
35
  fittedLabel,
36
36
  stepDownFont
37
- } from "./chunk-O3U6IOIO.js";
37
+ } from "./chunk-MOBRWYUQ.js";
38
38
  import {
39
39
  restDetailsWarning,
40
40
  restLabel,
41
41
  restSum,
42
42
  topNCut
43
- } from "./chunk-6JFQCVNN.js";
43
+ } from "./chunk-USATDW6O.js";
44
44
  import {
45
45
  structureCount
46
- } from "./chunk-KW4JXWHO.js";
46
+ } from "./chunk-YDYZWCUQ.js";
47
47
  import {
48
48
  alignedLeft,
49
49
  alignedRight,
@@ -59,7 +59,7 @@ import {
59
59
  rowDrivenHeight,
60
60
  rowSizing,
61
61
  sideKeyOff
62
- } from "./chunk-F6IPP33V.js";
62
+ } from "./chunk-YM4MVABU.js";
63
63
  import {
64
64
  PRIORITY,
65
65
  authoredFootnoteCount,
@@ -74,26 +74,25 @@ import {
74
74
  normalizeLegendOption,
75
75
  solveFrame,
76
76
  solveLabels
77
- } from "./chunk-D3UPBA4R.js";
77
+ } from "./chunk-AUSZDYGE.js";
78
78
  import {
79
79
  disclosureNote
80
- } from "./chunk-DZYTXZNS.js";
80
+ } from "./chunk-WD5NJHZG.js";
81
81
  import {
82
82
  annotationRef,
83
83
  defaultAnnotationId
84
- } from "./chunk-F2ET5ZTT.js";
84
+ } from "./chunk-PPOUKS24.js";
85
85
  import {
86
86
  emptyIdRecord
87
87
  } from "./chunk-LINZPU5D.js";
88
88
  import {
89
89
  memoFormatterFromExample,
90
- seriesRasterFormatter,
91
- setMagnitude
92
- } from "./chunk-Z6DUNKFU.js";
90
+ seriesRasterFormatter
91
+ } from "./chunk-3JG764MI.js";
93
92
  import {
94
93
  chartString,
95
94
  chartStrings
96
- } from "./chunk-MSYTF3DZ.js";
95
+ } from "./chunk-FYFXOLWI.js";
97
96
  import {
98
97
  cellMeta,
99
98
  cellValue,
@@ -121,7 +120,7 @@ import {
121
120
  strokeToken,
122
121
  textScaleOf,
123
122
  themeForWidth
124
- } from "./chunk-TX5FSNAU.js";
123
+ } from "./chunk-XAH4EWJT.js";
125
124
  import {
126
125
  MARK_CONTRAST_FLOOR
127
126
  } from "./chunk-BQBD6Q5J.js";
@@ -224,7 +223,7 @@ function layoutButterfly(data, options, comparison) {
224
223
  field: categorySort !== void 0 ? ["options", "sort", "categories"] : ["options", "sortBy"],
225
224
  fix: unitFix
226
225
  });
227
- let aCells = normalizeSeriesValues(sA, categories, data.series.indexOf(sA)), bCells = normalizeSeriesValues(sB, categories, data.series.indexOf(sB)), sideUnit = (series) => (series.unit ?? opts.unit)?.replace(/\s+/g, "") || void 0, ownFormat = (series, cells) => !!series.format || cells.some((cell) => cellMeta(cell)?.format), oneSet = sideUnit(sA) === sideUnit(sB) && !ownFormat(sA, aCells) && !ownFormat(sB, bCells), magnitudeOf = (cells) => setMagnitude(cells.map(cellValue), opts.format, opts.unit, opts.target), bothScale = oneSet ? magnitudeOf([...aCells, ...bCells]) : void 0, paneRaster = (cells) => seriesRasterFormatter(opts.format, cells.map(cellValue), opts.locale?.language, opts.unit, opts.target, void 0, !1, oneSet ? bothScale : magnitudeOf(cells)), rasterA = paneRaster(aCells), rasterB = paneRaster(bCells), fmtA = rasterA.forSeries(sA), fmtB = rasterB.forSeries(sB), rows = categories.map((c, i) => ({
226
+ let aCells = normalizeSeriesValues(sA, categories, data.series.indexOf(sA)), bCells = normalizeSeriesValues(sB, categories, data.series.indexOf(sB)), sideUnit = (series) => (series.unit ?? opts.unit)?.replace(/\s+/g, "") || void 0, ownFormat = (series, cells) => !!series.format || cells.some((cell) => cellMeta(cell)?.format), bothSides = sideUnit(sA) === sideUnit(sB) && !ownFormat(sA, aCells) && !ownFormat(sB, bCells) && sharedScale, paneRaster = (cells) => seriesRasterFormatter(opts.format, (bothSides ? [...aCells, ...bCells] : cells).map(cellValue), opts.locale?.language, opts.unit), rasterA = paneRaster(aCells), rasterB = paneRaster(bCells), fmtA = rasterA.forSeries(sA), fmtB = rasterB.forSeries(sB), rows = categories.map((c, i) => ({
228
227
  id: c.id,
229
228
  label: c.label ?? c.id,
230
229
  mark: footnoteSuffix(c.footnote, c.id, { count: authoredFootnoteCount(opts), warnings }),
@@ -325,7 +324,7 @@ function layoutButterfly(data, options, comparison) {
325
324
  });
326
325
  let redesign = comparison?.rowDriven !== !1, signed = directed && hasNegative, paneFit = redesign || comparison?.paneFit === !0, insideCard = !redesign && paneFit && resolveSize(opts.size).width < 480, floors = redesign ? targetFloorsPx(opts.target ?? DEFAULT_TARGET, textScaleOf(opts)) : void 0, rowType = (font, role) => floors && font.size - 1 >= floors[role] ? { ...font, size: font.size - 1 } : font, labelFont = rowType({ family: theme.type.family, ...theme.type.label }, "label"), strongFont = { ...labelFont, weight: emphasisWeight(theme) }, tickFont = rowType({ family: theme.type.family, ...theme.type.axis }, "axis"), tickBold = { ...tickFont, weight: emphasisWeight(theme) }, roles = colorRolePaints([sA, sB]), paintOf = (s, fallback) => highlights.has(s.id) ? semanticPalettePaint(theme, opts.palette, "focus") : s.fill ? { css: s.fill } : s.colorRole ? roles.get(s.id) : normalizeScenario(s.scenario, `series[${s.id}].scenario`) === "PY" ? semanticPalettePaint(theme, opts.palette, "neutralLight") : fallback(), paintA = paintOf(sA, () => semanticPalettePaint(theme, opts.palette, "neutralMark")), paintB = paintOf(sB, () => opts.palette !== void 0 && theme.color.palettes?.[opts.palette] !== void 0 ? semanticPalettePaint(theme, opts.palette, "focus") : seriesPaint(0)), patternOf = (scen) => scen === "FC" ? "hatch45" : scen === "PL" ? "outline" : void 0, scenA = normalizeScenario(sA.scenario, `series[${sA.id}].scenario`), scenB = normalizeScenario(sB.scenario, `series[${sB.id}].scenario`), labelsOff = (kind) => opts.labels === !1 ? !((kind === "category" || kind === "series") && labelsOffKeepsNames(opts)) : opts.labels?.[kind] === !1, diffText = /* @__PURE__ */ new Map();
327
326
  if ((opts.diffColumn ?? sortBy === "diff") && redesign && !conflict && size.width >= COLUMN_MIN_WIDTH) {
328
- let raster = seriesRasterFormatter(opts.format, [...aCells, ...bCells].map(cellValue), opts.locale?.language, opts.unit, opts.target, void 0, !1, bothScale), signed2 = differenceFormatter({ format: opts.format, locale: opts.locale?.language, decimals: raster.spec.decimals, values: [...aCells, ...bCells].flatMap((cell) => cellValue(cell) ?? []), scale: raster.specForSeries(sA) });
327
+ let raster = seriesRasterFormatter(opts.format, [...aCells, ...bCells].map(cellValue), opts.locale?.language, opts.unit), differences = rows.flatMap((r) => r.a !== null && r.b !== null ? [r.b - r.a] : []), signed2 = differenceFormatter({ format: opts.format, locale: opts.locale?.language, decimals: raster.spec.decimals, values: [...aCells, ...bCells].flatMap((cell) => cellValue(cell) ?? []), scale: raster.specForSeries(sA), differences });
329
328
  for (let r of rows) r.a !== null && r.b !== null && diffText.set(r.id, signed2(r.b, r.a));
330
329
  }
331
330
  let diffOverride = opts.columnOverrides?.diff, labelOverride = opts.columnOverrides?.label, diffHead = diffText.size === 0 ? void 0 : diffOverride?.label ?? columnHeadText("\u0394", opts.unit?.startsWith("%") === !0 || percentLevels([sA, sB].map((s, k) => ({ vals: (k === 0 ? aCells : bCells).map((cell) => ({ v: cellValue(cell), isPct: isPctCell(cell) })), format: s.format, unit: s.unit })), opts.format, opts.unit)), diffFont = (id) => highlights.has(id) ? strongFont : labelFont, diffNaturalW = diffHead === void 0 ? 0 : columnWidth(measure, [...diffText].map(([id, text]) => ({ text, font: diffFont(id) })), { text: diffHead, font: strongFont }), isPairDelta = (ann) => {
@@ -414,11 +413,11 @@ function layoutButterfly(data, options, comparison) {
414
413
  });
415
414
  }
416
415
  }
417
- let nameFont = nameStep ?? tickFont, nameBold = { ...nameFont, weight: emphasisWeight(theme) }, nameLineH = lineBox(nameFont), catMaxLines = rowDriven || band.step >= 2 * nameLineH + 4 ? 2 : 1, catFontOf = (r) => highlights.has(r.id) ? nameBold : nameFont, markW = (r) => r.mark ? measure(r.mark, catFontOf(r)).width : 0, paneUnit = (side) => (side === "a" ? sA : sB).unit ?? opts.unit, textOf = (v, meta, side) => {
416
+ let nameFont = nameStep ?? tickFont, nameBold = { ...nameFont, weight: emphasisWeight(theme) }, nameLineH = lineBox(nameFont), catMaxLines = rowDriven || band.step >= 2 * nameLineH + 4 ? 2 : 1, catFontOf = (r) => highlights.has(r.id) ? nameBold : nameFont, markW = (r) => r.mark ? measure(r.mark, catFontOf(r)).width : 0, paneUnit = (side) => (side === "a" ? sA : sB).unit ?? opts.unit, valueText = (v, meta, side) => meta?.format ? byExample(meta.format, paneUnit(side))(v) : (side === "a" ? fmtA : fmtB)(v), textOf = (v, meta, side) => {
418
417
  if (v === null) return "";
419
- let custom = meta?.label, text = meta?.format ? byExample(meta.format, paneUnit(side))(v) : (side === "a" ? fmtA : fmtB)(v);
418
+ let custom = meta?.label, text = valueText(v, meta, side);
420
419
  return typeof custom == "string" ? custom.replace(/\$\{value\}/g, text) : text;
421
- }, room = comparison?.bracketRoom ?? { left: 0, right: 0 }, comparisonRun = annotations.some((ann) => ann.kind === "cagr" || ann.kind === "diff") ? 20 : 40, minimumPane = (side, bracketRoom) => comparisonRun + (valuesOff ? 0 : Math.max(0, maxOf(rows.map((r) => {
420
+ }, valueSlot = comparison?.valueSlot ?? "value", room = comparison?.bracketRoom ?? { left: 0, right: 0 }, comparisonRun = annotations.some((ann) => ann.kind === "cagr" || ann.kind === "diff") ? 20 : 40, minimumPane = (side, bracketRoom) => comparisonRun + (valuesOff ? 0 : Math.max(0, maxOf(rows.map((r) => {
422
421
  let text = textOf(side === "a" ? r.a : r.b, side === "a" ? r.aMeta : r.bMeta, side);
423
422
  return text ? measure(text, labelFont).width + 10 : 0;
424
423
  })))) + bracketRoom, panesMinimum = comparisonRun === 20 ? minimumPane("a", room.left) + minimumPane("b", room.right) : 2 * Math.max(minimumPane("a", room.left), minimumPane("b", room.right)), laneCard = insideCard || redesign && size.width < 480, authoredCenter = labelOverride?.width === void 0 ? opts.centerColumnWidth : authoredTrackWidth("label", labelOverride.width, 40, Math.max(40, plot.w - Math.max(80, panesMinimum)), warnings), narrowLane = laneCard && authoredCenter === void 0 && Math.ceil(maxCatLabelW) + 2 * LANE_PAD <= plot.w * 0.35, namePad = narrowLane ? 2 * LANE_PAD : 16, centerW = narrowLane ? Math.ceil(maxCatLabelW) + 2 * LANE_PAD : centerColumnWidth(rows.map((r) => ({ label: `${r.label}${r.mark}`, font: catFontOf(r) })), {
@@ -581,7 +580,7 @@ function layoutButterfly(data, options, comparison) {
581
580
  let rowY = band.position(i), rowH = band.bandwidth, cy = rowY + rowH / 2, endpoint = i === 0 || i === rows.length - 1, rowHl = highlights.has(r.id);
582
581
  diffText.has(r.id) && labelRequests.push(columnCellRequest({ id: `diff:${r.id}`, owner: { categoryId: r.id }, text: diffText.get(r.id), font: diffFont(r.id), measure, right: alignedRight(diffRight, diffW, measure(diffText.get(r.id), diffFont(r.id)).width, diffOverride?.align ?? "right"), cy }));
583
582
  for (let side of ["a", "b"]) {
584
- let series = side === "a" ? sA : sB, v = side === "a" ? r.a : r.b, meta = side === "a" ? r.aMeta : r.bMeta, fmt = side === "a" ? fmtA : fmtB, len = v === null ? 0 : Math.max(lenOf[side](Math.abs(v)), 0.5), dir = dirOf(side, v), tipX = zeroOf(side) + dir * len, rect = { x: Math.min(zeroOf(side), tipX), y: rowY, w: len, h: rowH }, nodeId = `mark:${series.id}:${r.id}`, basePaint = side === "a" ? paintA : paintB, paint = v !== null && v < 0 && !signed ? negativePaint(barPaint(r.rest, meta, basePaint)) : barPaint(r.rest, meta, basePaint), scen = normalizeScenario(meta?.scenario, `series[${series.id}].values[${r.id}].scenario`) ?? (side === "a" ? scenA : scenB), sep = othersSeparation(paint, theme);
583
+ let series = side === "a" ? sA : sB, v = side === "a" ? r.a : r.b, meta = side === "a" ? r.aMeta : r.bMeta, shownText = v === null ? void 0 : valueText(v, meta, side), len = v === null ? 0 : Math.max(lenOf[side](Math.abs(v)), 0.5), dir = dirOf(side, v), tipX = zeroOf(side) + dir * len, rect = { x: Math.min(zeroOf(side), tipX), y: rowY, w: len, h: rowH }, nodeId = `mark:${series.id}:${r.id}`, basePaint = side === "a" ? paintA : paintB, paint = v !== null && v < 0 && !signed ? negativePaint(barPaint(r.rest, meta, basePaint)) : barPaint(r.rest, meta, basePaint), scen = normalizeScenario(meta?.scenario, `series[${series.id}].values[${r.id}].scenario`) ?? (side === "a" ? scenA : scenB), sep = othersSeparation(paint, theme);
585
584
  if (nodes.push({
586
585
  t: "rect",
587
586
  id: nodeId,
@@ -592,9 +591,11 @@ function layoutButterfly(data, options, comparison) {
592
591
  ...isOthersFill(paint) ? { separation: { fill: paint, backing: { token: "background" } } } : {},
593
592
  owner: { seriesId: series.id, categoryId: r.id },
594
593
  part: "bar",
595
- ...v === null ? {} : {
594
+ ...shownText === void 0 ? {} : {
596
595
  display: {
597
- value: meta?.format ? byExample(meta.format, paneUnit(side))(v) : fmt(v)
596
+ value: shownText,
597
+ // The text its value label would print where none is drawn.
598
+ shows: { [valueSlot]: shownText }
598
599
  }
599
600
  }
600
601
  }), occupied.claim(rect, "mark", { seriesId: series.id, categoryId: r.id }), (side === "a" ? marks.left : marks.right).push({ id: r.id, rect, nodeId }), v === null) {
@@ -622,7 +623,7 @@ function layoutButterfly(data, options, comparison) {
622
623
  }
623
624
  continue;
624
625
  }
625
- let text = textOf(v, meta, side), tsize = measure(text, valueFont);
626
+ let text = textOf(v, meta, side), shows = meta?.label === !1 || typeof meta?.label == "string" && !meta.label.includes("${value}") ? void 0 : { [valueSlot]: shownText }, tsize = measure(text, valueFont);
626
627
  tightRows && (tsize.height = inkBox(valueFont));
627
628
  let outsideGap = paneFit ? VALUE_GAP : 6, outside = {
628
629
  slot: "outsideEnd",
@@ -652,6 +653,7 @@ function layoutButterfly(data, options, comparison) {
652
653
  kind: "point",
653
654
  owner: { seriesId: series.id, categoryId: r.id },
654
655
  text,
656
+ ...shows ? { shows } : {},
655
657
  lines: [text],
656
658
  font: valueFont,
657
659
  priority,
@@ -837,6 +839,7 @@ function layoutButterfly(data, options, comparison) {
837
839
  measure,
838
840
  format: opts.format,
839
841
  locale: opts.locale?.language,
842
+ levelSpec: bothSides ? rasterA.spec : void 0,
840
843
  strings: opts.strings,
841
844
  differenceFormat: comparison?.differenceFormat,
842
845
  solveCtx
@@ -888,7 +891,7 @@ function layoutButterfly(data, options, comparison) {
888
891
  let node = nodes.find((n) => n.id === `label:${label.id}`);
889
892
  node?.t === "text" && (node.x = label.rect.x + label.rect.w / 2, node.align = "middle");
890
893
  }
891
- let a11yDesc = rows.map((r) => `${r.label}: ${aLabel} ${r.a === null ? "\u2013" : fmtA(r.a)}, ${bLabel} ${r.b === null ? "\u2013" : fmtB(r.b)}`).join("; ");
894
+ let a11yDesc = rows.map((r) => `${r.label}: ${aLabel} ${r.a === null ? "\u2013" : valueText(r.a, r.aMeta, "a")}, ${bLabel} ${r.b === null ? "\u2013" : valueText(r.b, r.bMeta, "b")}`).join("; ");
892
895
  return {
893
896
  type: "butterfly",
894
897
  size,
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  layoutTableCard,
3
3
  prepareTableCardExecutor
4
- } from "./chunk-MH6MGYPS.js";
4
+ } from "./chunk-TMVERETB.js";
5
5
  import {
6
6
  cellPrinted,
7
7
  printsInCell
8
- } from "./chunk-DXNVL67C.js";
8
+ } from "./chunk-4NIIQFDA.js";
9
9
  import {
10
10
  chartSizing
11
- } from "./chunk-F6IPP33V.js";
11
+ } from "./chunk-YM4MVABU.js";
12
12
  import {
13
13
  claimId,
14
14
  withUnprintedClaims
15
- } from "./chunk-D3UPBA4R.js";
15
+ } from "./chunk-AUSZDYGE.js";
16
16
 
17
17
  // src/core/charts/table/core.ts
18
18
  function withUnprintedCells(geometry, options = {}) {