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,7 +2,7 @@ import {
2
2
  TABLE_HEAD_PARTS,
3
3
  tableHeadFloorPx,
4
4
  typeWidthClass
5
- } from "./chunk-TX5FSNAU.js";
5
+ } from "./chunk-XAH4EWJT.js";
6
6
  import {
7
7
  naturalOutputSize,
8
8
  targetFloorsPx
@@ -31,10 +31,10 @@ import {
31
31
  scenarioField,
32
32
  timeAnnotationSchema,
33
33
  valueKindSchema
34
- } from "./chunk-ZIVCPXXL.js";
34
+ } from "./chunk-JOX252XQ.js";
35
35
  import {
36
36
  timeAnnotationAnchors
37
- } from "./chunk-54YO56IK.js";
37
+ } from "./chunk-25JXYOSX.js";
38
38
 
39
39
  // src/core/charts/line/schema.ts
40
40
  import * as z from "zod";
@@ -134,7 +134,7 @@ var targetSchema = z.strictObject({
134
134
  }).describe("Continuous x axis on line and area: readings placed by value, for times with a time of day in a named zone or for plain numbers. Opt-in: needs data.x, and without xAxis the axis stays an ordered category row. Ticks come from a ladder (time: 1, 5, 15 and 30 seconds and minutes; 1, 3, 6 and 12 hours; 1 and 2 days; weeks; months; quarters; 1, 2, 5, 10 years and up; numbers: 1-2-5 steps), the finest whose labels fit, at most maxTicks. Under clock times a second row names each day ('Sat 24 Oct'); under days, weeks, months and quarters it names the year. Hover cards, keyboard records and the data table name each reading in full ('Sun 25 Oct 2026, 02:35', with the offset in a repeated hour). Lines, areas, gaps (null breaks the line), trend lines (fitted on the real x), min-max sampling (buckets by x), events and bands (at any x), value lines and point annotations (at the x of a reading) work as on categories. A CAGR annotation counts the exact years between its two readings on a time axis; a number axis has no years and warns x-cagr-unsupported. Not with variant 'bump' or categoryAxis."), lineOptionsSchema = baseOptionsSchema.safeExtend(refusedBaseOptions("line")).safeExtend({
135
135
  highlight: baseOptionsSchema.shape.highlight.describe("Select drawn data series by ID. On one plain data line without a fan, category IDs instead emphasize those points: larger markers and values in focus ink while the line keeps its paint. Series IDs take precedence. References do not count as data series. Several data series, area, stacked and bump forms keep series-only highlighting. Unsupported IDs warn highlight-unknown-id and leave the chart unchanged. Explicit value-label suppression and authored marker shapes remain effective."),
136
136
  trend: z.union([z.boolean(), z.strictObject({ label: z.string().min(1).optional().describe("Name of the fitted lines in the legend; default Linear trend.") })]).optional().describe("One least-squares line per shown data series, using the shared scatter fit. Fits every non-null source value in the shown range, with at least 3 points; min-max sampling changes the drawn points, not the fit. Regular month, quarter and year dates fit on the calendar period index and keep their spacing; exact 7-day steps fit per week; other dates use elapsed UTC days and exact date spacing; other categories use their original positions. The dashed series-colour line covers only its fitted range and is clipped to the value axis. The legend prints the series name, signed slope per month, quarter, year, week, day or period, and r\xB2. The layout derived.trends receipt carries slope, intercept, r\xB2 and the fit moments. Plain line and area only; stacks and bump refuse trend-unsupported. Too few points warn trend-undefined. A window or zoom changes the fitted range. Default false."),
137
- rounding: baseOptionsSchema.shape.rounding.describe("stacked100-area defaults to sum-consistent rounding of complete computed wholes. Authored percentages and incomplete total100 bases keep their values. nearest rounds each computed share separately. Other line variants do not use this setting."),
137
+ rounding: baseOptionsSchema.shape.rounding.describe("stacked100-area rounds each computed share separately by default. sum-consistent makes the shares of each complete computed whole total 100%. Authored percentages and incomplete total100 bases keep their values. Other line variants do not use this setting."),
138
138
  window: liveWindowOptionsSchema.optional().describe("Display the last n periods and optionally sample extrema while preserving source calculations, ranks, uncertainty intervals and phase boundaries. A mean's \xD8 label names the periods it covers where the plot draws fewer, '\xD8 54.3 (Day 1\u2013Day 20)'."),
139
139
  viewDomain: z.object({ x: z.tuple([z.union([idSchema, z.number().finite()]), z.union([idSchema, z.number().finite()])]).describe("Inclusive category ids bounding the visible x axis; on a continuous axis (xAxis), two x values.") }).optional().describe("Visible categories with full-source means and index baselines. A mean's \xD8 label names the periods it covers where the plot draws fewer. On a continuous axis the two x values bound the visible range exactly, and the readings inside it draw."),
140
140
  xAxis: xAxisSchema.optional(),
@@ -162,7 +162,7 @@ var targetSchema = z.strictObject({
162
162
  ).meta({ "x-boardplot-defaultDependsOn": ["variant", "data.series"] }),
163
163
  pointLabelSide: z.enum(["shape", "auto"]).optional().describe("Preferred side for point values. 'shape' prefers left of the first finite point, above a strict local peak, below a strict local trough and right of the last finite point. Flat plateaus keep the existing preference. Default shape on one plain data line without a fan; reference series do not count. Other variants and several data series keep auto. The label solver can use a fallback to avoid collisions, and labelPlacements pins take precedence. 'auto' restores the previous candidate order and endpoint reserves.").meta({ "x-boardplot-defaultDependsOn": ["variant", "data.series", "fan"] }),
164
164
  valueLabels: z.enum(["none", "last", "ends", "extremes", "all"]).optional().describe(
165
- "Point values: default last, inline and bump none, stacked100-area ends. Distinct end values that round to the same text gain up to two decimals as one label set; the reading uses that precision. Bump keeps the precision used to rank its values. Choices: 'none' (default under seriesLabels 'inline'), 'last' (default), 'ends' (first and last; stacked100-area default), 'extremes' (ends plus each series' low and high) or 'all'. A value sits on the side of its point away from other lines and never nearer another line than its own; one with no free seat goes to the note line, and missing labels warn label-hidden once per chart; reading.omissions names each label and its destination. Stacked values sit in their band. labels.point sets the content. When the author sets valueLabels and every non-null value in a series has a string label (ignoring label:false cells), valueLabels selects the values and each selected value uses its cell text. Otherwise a string cell label also selects its point, outside the valueLabels selection, even when labels.point is false. label:false removes a value label. bump defaults to 'none'; its values are the measure behind the ranks, so each carries the unit, and without a unit or format it warns bump-values-unnamed. A plain line on a linear scale that does not start at zero draws a break glyph at its lowest value, so the cut baseline stays visible. A tick prints there under 'all' and valueAxis.show false, and on a shown value axis only where that value falls on the tick grid or valueAxis.min sets it. valueAxis.includeZero true or valueAxis.min 0 starts at zero and removes the break glyph and its tick. Where the last value carries options.unit because no subtitle prints it, a shown value axis prints a sign or magnitude unit ($, k, m) on its ticks too; a word unit stays on the value."
165
+ "Point values: default last, inline and bump none, stacked100-area ends. A value without a format prints its set's text; distinct end shares or values under a unit-only format that round to the same text gain up to two decimals as one label set; the reading uses that precision. Bump keeps the precision used to rank its values. Choices: 'none' (default under seriesLabels 'inline'), 'last' (default), 'ends' (first and last; stacked100-area default), 'extremes' (ends plus each series' low and high) or 'all'. A value sits on the side of its point away from other lines and never nearer another line than its own; one with no free seat goes to the note line, and missing labels warn label-hidden once per chart; reading.omissions names each label and its destination. Stacked values sit in their band. labels.point sets the content. When the author sets valueLabels and every non-null value in a series has a string label (ignoring label:false cells), valueLabels selects the values and each selected value uses its cell text. Otherwise a string cell label also selects its point, outside the valueLabels selection, even when labels.point is false. label:false removes a value label. bump defaults to 'none'; its values are the measure behind the ranks, so each carries the unit, and without a unit or format it warns bump-values-unnamed. A plain line on a linear scale that does not start at zero draws a break glyph at its lowest value, so the cut baseline stays visible. A tick prints there under 'all' and valueAxis.show false, and on a shown value axis only where that value falls on the tick grid or valueAxis.min sets it. valueAxis.includeZero true or valueAxis.min 0 starts at zero and removes the break glyph and its tick. Where the last value carries options.unit because no subtitle prints it, a shown value axis prints a sign or magnitude unit ($, k, m) on its ticks too; a word unit stays on the value."
166
166
  ).meta({ "x-boardplot-defaultDependsOn": ["variant", "seriesLabels"] }),
167
167
  latestPoint: z.union([
168
168
  z.enum(["ring", "none"]).describe("'ring' rings the primary series; 'none' rings nothing."),
@@ -8,13 +8,13 @@ import {
8
8
  } from "./chunk-Z6H5ED2I.js";
9
9
  import {
10
10
  createChartComponent
11
- } from "./chunk-I7V6LXHD.js";
11
+ } from "./chunk-E4KHHC46.js";
12
12
  import {
13
13
  histogramCore
14
- } from "./chunk-3AWE5535.js";
14
+ } from "./chunk-VMLVZW4F.js";
15
15
  import {
16
16
  registeredType
17
- } from "./chunk-ZQHMZUFD.js";
17
+ } from "./chunk-4YZQY3AA.js";
18
18
 
19
19
  // src/react/charts/histogram.ts
20
20
  var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPosition: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, valueAxis: sharedKeys4, scaleGroup: { y: 0, id: 0 }, bandFraction: 0, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, axisTitles: { y: 0 }, bins: { width: 0, anchor: 0, openAbove: 0 }, binSnap: 0, methodNote: 0 }, labels: ["category", "point", "axisTitle"] }), HistogramChart = createChartComponent(registeredType(histogramCore), checkOptionKeys);
@@ -2,11 +2,11 @@ import {
2
2
  PRIORITY,
3
3
  arrowLook,
4
4
  computedTextRole
5
- } from "./chunk-D3UPBA4R.js";
5
+ } from "./chunk-AUSZDYGE.js";
6
6
  import {
7
7
  emphasisWeight,
8
8
  strokeToken
9
- } from "./chunk-TX5FSNAU.js";
9
+ } from "./chunk-XAH4EWJT.js";
10
10
  import {
11
11
  maxOf
12
12
  } from "./chunk-WYJEOMNY.js";
@@ -4,16 +4,16 @@ import {
4
4
  optionsTake,
5
5
  rememberDiagnosticSource,
6
6
  sourceSchemaDiagnostic
7
- } from "./chunk-LBCSRQGW.js";
7
+ } from "./chunk-RSDGBNXP.js";
8
8
  import {
9
9
  DocExpansionError,
10
10
  expandDoc,
11
11
  missingChartName
12
- } from "./chunk-K7XPTQBJ.js";
12
+ } from "./chunk-VHZ4MXJO.js";
13
13
  import {
14
14
  diagnosedSafeParse,
15
15
  idRecord
16
- } from "./chunk-ZIVCPXXL.js";
16
+ } from "./chunk-JOX252XQ.js";
17
17
  import {
18
18
  isBareChart
19
19
  } from "./chunk-YWP7XFKD.js";
@@ -36,11 +36,11 @@ import {
36
36
  adoptTheme,
37
37
  resolveTheme,
38
38
  themes
39
- } from "./chunk-TX5FSNAU.js";
39
+ } from "./chunk-XAH4EWJT.js";
40
40
  import {
41
41
  retiredThemeKeyWarning,
42
42
  withoutRetiredThemeKeys
43
- } from "./chunk-CCAAI56H.js";
43
+ } from "./chunk-JF743NNC.js";
44
44
  import {
45
45
  themeShape
46
46
  } from "./chunk-6IUK6PAH.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  layoutWaterfall
3
- } from "./chunk-DTIV2NIZ.js";
3
+ } from "./chunk-EJA5EANI.js";
4
4
  import {
5
5
  chartSizing
6
- } from "./chunk-F6IPP33V.js";
6
+ } from "./chunk-YM4MVABU.js";
7
7
 
8
8
  // src/core/charts/waterfall/core.ts
9
9
  var waterfallCore = {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  chartString
3
- } from "./chunk-4JGBCBDZ.js";
3
+ } from "./chunk-MF6XGFHB.js";
4
4
  import {
5
5
  eventReading
6
- } from "./chunk-OQQMDSCC.js";
6
+ } from "./chunk-VGOZOBNB.js";
7
7
  import {
8
8
  compileIcon
9
9
  } from "./chunk-XD5XB22R.js";
10
10
  import {
11
11
  yearSpan,
12
12
  yearSpanFromLabels
13
- } from "./chunk-V7FV66KL.js";
13
+ } from "./chunk-PRVX4PAO.js";
14
14
  import {
15
15
  SHARES_OF_ONE_WHOLE_FIX,
16
16
  valuelessFix
@@ -25,7 +25,7 @@ import {
25
25
  lineLabelGutterLines,
26
26
  namedLineText,
27
27
  pruneOrphanAnnotationArms
28
- } from "./chunk-E5YF236N.js";
28
+ } from "./chunk-R4MVXUAG.js";
29
29
  import {
30
30
  parseTimeText
31
31
  } from "./chunk-GDOW2KNP.js";
@@ -47,41 +47,41 @@ import {
47
47
  leadersOffAnchorValues,
48
48
  solveLabels,
49
49
  valueEdgeToward
50
- } from "./chunk-D3UPBA4R.js";
50
+ } from "./chunk-AUSZDYGE.js";
51
51
  import {
52
52
  recordPartNeed,
53
53
  wrapFootnote
54
- } from "./chunk-DZYTXZNS.js";
54
+ } from "./chunk-WD5NJHZG.js";
55
55
  import {
56
56
  annotationRef,
57
57
  defaultAnnotationId
58
- } from "./chunk-F2ET5ZTT.js";
58
+ } from "./chunk-PPOUKS24.js";
59
59
  import {
60
+ RULE_SET,
61
+ defaultSetSpec,
60
62
  differenceExample,
61
63
  exampleSpec,
62
64
  formatStatWithSpec,
63
65
  formatWithSpec,
64
66
  formatterFromExample,
65
- neededDecimals,
66
67
  parseFormatExample,
67
68
  parseISODate,
69
+ percentChangeSpec,
70
+ printsBound,
68
71
  roundedNumber,
69
72
  specUnitKind,
73
+ statisticSet,
70
74
  withChartMarks
71
- } from "./chunk-Z6DUNKFU.js";
75
+ } from "./chunk-3JG764MI.js";
72
76
  import {
73
77
  PERCENTAGE_POINTS,
74
- autoDecimals,
75
78
  cagr,
76
79
  chartStrings,
77
- formatAutomaticNumber,
78
- formatAutomaticPercent,
79
- localeStrings,
80
- roundHalfUp,
81
- roundsToZero,
82
- typicalDecimals
83
- } from "./chunk-MSYTF3DZ.js";
80
+ localeStrings
81
+ } from "./chunk-FYFXOLWI.js";
84
82
  import {
83
+ cleanDiff,
84
+ cleanFloat,
85
85
  colorblindPaint,
86
86
  dashToken,
87
87
  emphasisWeight,
@@ -96,7 +96,7 @@ import {
96
96
  strokeToken,
97
97
  typeWidthClass,
98
98
  unionRect
99
- } from "./chunk-TX5FSNAU.js";
99
+ } from "./chunk-XAH4EWJT.js";
100
100
  import {
101
101
  publishDeferred
102
102
  } from "./chunk-BQBD6Q5J.js";
@@ -781,7 +781,7 @@ function corridorLabel(ctx, ann, rect, nodeIds) {
781
781
  ctx.placed.push({ id: ctx.id, kind: "band", computedText: text, nodeIds, labelId });
782
782
  }
783
783
  function boundText(ctx, v) {
784
- return ctx.input.format ? formatterFromExample(ctx.input.format, ctx.input.locale)(v) : formatAutomaticNumber(v, { locale: ctx.input.locale, decimals: autoDecimals(v) });
784
+ return ctx.input.format ? formatterFromExample(ctx.input.format, ctx.input.locale)(v) : formatWithSpec(v, { ...ctx.input.levelSpec?.[RULE_SET]?.set.kind === "number" ? ctx.input.levelSpec : defaultSetSpec([v], ctx.input.locale), prefix: "", suffix: "" });
785
785
  }
786
786
  function boundLabels(ctx, rect, bounds, mapper, priority) {
787
787
  let font = { family: ctx.input.theme.type.family, ...ctx.input.theme.type.axis };
@@ -983,7 +983,7 @@ function placeAttainmentBand(ctx, ann) {
983
983
  );
984
984
  return;
985
985
  }
986
- let ratio = lastActual !== null && plan !== 0 ? lastActual / plan : null, text = ann.label ?? (ratio === null ? "" : formatAutomaticPercent(ratio * 100, 0, !1, ctx.input.locale)), labelId = text ? `annotation:${ctx.id}` : void 0;
986
+ let ratio = lastActual !== null && plan !== 0 ? lastActual / plan : null, text = ann.label ?? (ratio === null ? "" : formatWithSpec(ratio * 100, { ...defaultSetSpec([ratio * 100], ctx.input.locale, void 0, { kind: "percent" }), suffix: "%" })), labelId = text ? `annotation:${ctx.id}` : void 0;
987
987
  if (text && labelId) {
988
988
  let font = { family: ctx.input.theme.type.family, ...ctx.input.theme.type.label }, size = ctx.input.measure(text, font), last = ctx.nodes[ctx.nodes.length - 1], anchor = last && last.t === "rect" ? last.rect : plot;
989
989
  ctx.labelRequests.push({
@@ -1539,6 +1539,37 @@ function calloutAttachment(at, kind, glyph) {
1539
1539
  function comparisonAnchor(anchor) {
1540
1540
  return anchor ? { ...anchor, ...anchor.comparisonPoint, value: anchor.comparisonValue ?? anchor.value } : null;
1541
1541
  }
1542
+ function percentChange(tip, base) {
1543
+ return cleanFloat(cleanDiff(tip, base) / Math.abs(base) * 100);
1544
+ }
1545
+ function percentChangeValues(input) {
1546
+ let values = { cagr: [], diff: [], delta: [] }, valued = (anchor) => !!anchor && anchor.noValue === void 0;
1547
+ return input.annotations.forEach((ann, n) => {
1548
+ if (ann.kind === "cagr") {
1549
+ if (ann.format) return;
1550
+ let measured = measureCagr(input, ann, defaultAnnotationId(ann, n), () => {
1551
+ });
1552
+ measured && values.cagr.push(measured.rate);
1553
+ } else if (ann.kind === "diff") {
1554
+ let mode = ann.mode ?? "relative";
1555
+ if ((mode === "relative" || mode === "reversed") && ann.format || mode !== "relative" && mode !== "reversed" && mode !== "both") return;
1556
+ let a = comparisonAnchor(input.resolve(ann.from)), b = comparisonAnchor(input.resolve(ann.to));
1557
+ if (!valued(a) || !valued(b)) return;
1558
+ let [base, tip] = mode === "reversed" ? [b, a] : [a, b];
1559
+ base.value !== 0 && values.diff.push(percentChange(tip.value, base.value));
1560
+ } else if (ann.kind === "delta") {
1561
+ let mode = ann.mode ?? "absolute";
1562
+ if (mode === "absolute" || mode === "relative" && ann.format) return;
1563
+ let at = input.resolve(ann.at), vsAnchor = typeof ann.vs == "number" ? null : input.resolve(ann.vs), vsValue = typeof ann.vs == "number" ? ann.vs : vsAnchor ? vsAnchor.comparisonValue ?? vsAnchor.value : null;
1564
+ if (!valued(at) || vsValue === null || vsValue === 0 || vsAnchor && !valued(vsAnchor)) return;
1565
+ let atValue = vsAnchor ? at.comparisonValue ?? at.value : at.value;
1566
+ values.delta.push(percentChange(atValue, vsValue));
1567
+ }
1568
+ }), values;
1569
+ }
1570
+ function percentChangeText(s, kind, pct) {
1571
+ return formatWithSpec(pct, s.run.percentChanges()[kind]);
1572
+ }
1542
1573
  function runAnnotatePass(input) {
1543
1574
  let resolveAnchor = input.resolve, resolveCategoryBand = input.resolveCategoryBand, anchorErrors = [];
1544
1575
  input = { ...input, ...resolveCategoryBand ? { resolveCategoryBand: (id) => {
@@ -1552,11 +1583,38 @@ function runAnnotatePass(input) {
1552
1583
  }
1553
1584
  return result;
1554
1585
  } };
1555
- let nodes = [], placed = [], labelRequests = [], warnings = [], { locale } = input, percent = input.format ? specUnitKind(parseFormatExample(input.format)) === "percent" : input.percentLevels === !0, plain = (suffix, signed) => (v) => formatAutomaticNumber(v, { locale, decimals: autoDecimals(v), suffix, signed }), fmt = input.format ? formatterFromExample(input.format, locale) : plain(percent ? "%" : "", !1), differenceFormat = input.differenceFormat ?? (input.format ? differenceExample(input.format) : void 0), differenceSpec = differenceFormat ? { ...exampleSpec(differenceFormat, locale), signed: !0 } : void 0, sharesOnly = input.sharesFormat === !0 && percent && input.format !== void 0, valueFmt = plain(input.percentLevels === !0 ? "%" : "", !1), run = {
1586
+ let nodes = [], placed = [], labelRequests = [], warnings = [], { locale } = input, percent = input.format ? specUnitKind(parseFormatExample(input.format)) === "percent" : input.percentLevels === !0, levelRule = input.levelSpec?.[RULE_SET], plainSpec = (suffix, signed) => {
1587
+ let percentKind = suffix === "%" || suffix === PERCENTAGE_POINTS, points = signed && (suffix === PERCENTAGE_POINTS || suffix === "" && levelRule?.set.kind === "percent"), shared = !points && levelRule && suffix !== PERCENTAGE_POINTS && levelRule.set.kind === "percent" === percentKind ? input.levelSpec : void 0;
1588
+ return (v) => ({ ...shared ?? defaultSetSpec([v], locale, void 0, points ? { kind: "percent", change: !0 } : percentKind ? { kind: "percent" } : {}), prefix: "", suffix, signed });
1589
+ }, plain = (suffix, signed) => {
1590
+ let specOf = plainSpec(suffix, signed);
1591
+ return (v) => formatWithSpec(v, specOf(v));
1592
+ }, plainZero = (suffix) => {
1593
+ let specOf = plainSpec(suffix, !0);
1594
+ return (v) => roundedNumber(v, specOf(v)) === 0;
1595
+ }, plainStat = (suffix) => {
1596
+ let specOf = plainSpec(suffix, !1);
1597
+ return (v) => {
1598
+ let spec = specOf(v);
1599
+ return formatWithSpec(v, { ...spec, [RULE_SET]: statisticSet([v], spec[RULE_SET]) });
1600
+ };
1601
+ }, fmt = input.format ? formatterFromExample(input.format, locale) : plain(percent ? "%" : "", !1), differenceFormat = input.differenceFormat ?? (input.format ? differenceExample(input.format) : void 0), differenceSpec = differenceFormat ? { ...exampleSpec(differenceFormat, locale), signed: !0 } : void 0, sharesOnly = input.sharesFormat === !0 && percent && input.format !== void 0, valueFmt = plain(input.percentLevels === !0 ? "%" : "", !1), run = {
1556
1602
  fmt,
1557
- statFmt: input.format ? (v) => formatStatWithSpec(v, exampleSpec(input.format, locale)) : fmt,
1603
+ statFmt: input.format ? (v) => formatStatWithSpec(v, exampleSpec(input.format, locale)) : plainStat(percent ? "%" : ""),
1558
1604
  fmtSigned: differenceSpec ? (v) => formatWithSpec(v, differenceSpec) : plain(percent ? PERCENTAGE_POINTS : "", !0),
1559
- printsZero: differenceSpec ? (v) => roundedNumber(v, differenceSpec) === 0 : (v) => roundsToZero(v, autoDecimals(v)),
1605
+ printsZero: differenceSpec ? (v) => roundedNumber(v, differenceSpec) === 0 : plainZero(percent ? PERCENTAGE_POINTS : ""),
1606
+ percentChanges: /* @__PURE__ */ (() => {
1607
+ let specs;
1608
+ return () => {
1609
+ if (specs) return specs;
1610
+ let changes = percentChangeValues(input);
1611
+ return specs = {
1612
+ cagr: percentChangeSpec(changes.cagr, locale, "%"),
1613
+ diff: percentChangeSpec(changes.diff, locale, "%"),
1614
+ delta: percentChangeSpec(changes.delta, locale, "%")
1615
+ };
1616
+ };
1617
+ })(),
1560
1618
  calloutGlyphPlans: /* @__PURE__ */ new Map(),
1561
1619
  calloutHeads: /* @__PURE__ */ new Map(),
1562
1620
  gapBrackets: [],
@@ -1567,12 +1625,12 @@ function runAnnotatePass(input) {
1567
1625
  return input.annotations.forEach((ann, n) => {
1568
1626
  let id = defaultAnnotationId(ann, n);
1569
1627
  anchorErrors.length = 0;
1570
- let warningStart = warnings.length, secondaryLine = ann.kind === "valueLine" && ann.axis === "secondary", valuesNotShares = sharesOnly && ann.kind !== "valueLine", referenceFormat = secondaryLine ? input.secondaryFormat : valuesNotShares ? void 0 : input.format, anchorFormat = ann.kind === "text" || ann.kind === "line" || ann.kind === "arrow" || ann.kind === "box" ? void 0 : "at" in ann && ann.at !== void 0 ? input.resolve(ann.at)?.format : ann.kind === "diff" ? input.resolve(ann.to)?.format ?? input.resolve(ann.from)?.format : ann.kind === "valueLine" ? secondaryLine ? input.secondaryFormat : seriesMeanFormat(input, ann) : void 0, example = ann.format ?? anchorFormat, own = example === void 0 ? void 0 : exampleSpec(example, locale), signed = own ? { ...exampleSpec(ann.format ?? differenceExample(example), locale), signed: !0 } : void 0, referencePercent = ann.kind === "valueLine" ? (secondaryLine ? input.secondaryPercentLevels : input.valueLinePercentLevels) ?? percent : percent, referenceUnit = ann.kind === "valueLine" ? input.valueLineUnit : void 0, baseRun = referenceUnit ? { ...run, fmt: referenceFormat ? (v) => formatWithSpec(v, { ...exampleSpec(referenceFormat, locale), prefix: "", suffix: referenceUnit }) : plain(referenceUnit, !1) } : ann.kind === "valueLine" && !referenceFormat && (secondaryLine || referencePercent !== percent) ? { ...run, fmt: plain(referencePercent ? "%" : "", !1) } : valuesNotShares ? { ...run, fmt: valueFmt, statFmt: valueFmt, fmtSigned: plain(input.percentLevels === !0 ? PERCENTAGE_POINTS : "", !0), printsZero: (v) => roundsToZero(v, autoDecimals(v)) } : run, fmtRun = own ? {
1628
+ let warningStart = warnings.length, secondaryLine = ann.kind === "valueLine" && ann.axis === "secondary", valuesNotShares = sharesOnly && ann.kind !== "valueLine", referenceFormat = secondaryLine ? input.secondaryFormat : valuesNotShares ? void 0 : input.format, anchorFormat = ann.kind === "text" || ann.kind === "line" || ann.kind === "arrow" || ann.kind === "box" ? void 0 : "at" in ann && ann.at !== void 0 ? input.resolve(ann.at)?.format : ann.kind === "diff" ? input.resolve(ann.to)?.format ?? input.resolve(ann.from)?.format : ann.kind === "valueLine" ? secondaryLine ? input.secondaryFormat : seriesMeanFormat(input, ann) : void 0, example = ann.format ?? anchorFormat, own = example === void 0 ? void 0 : exampleSpec(example, locale), signed = own ? { ...exampleSpec(ann.format ?? differenceExample(example), locale), signed: !0 } : void 0, referencePercent = ann.kind === "valueLine" ? (secondaryLine ? input.secondaryPercentLevels : input.valueLinePercentLevels) ?? percent : percent, referenceUnit = ann.kind === "valueLine" ? input.valueLineUnit : void 0, baseRun = referenceUnit ? { ...run, fmt: referenceFormat ? (v) => formatWithSpec(v, { ...exampleSpec(referenceFormat, locale), prefix: "", suffix: referenceUnit }) : plain(referenceUnit, !1) } : ann.kind === "valueLine" && !referenceFormat && (secondaryLine || referencePercent !== percent) ? { ...run, fmt: plain(referencePercent ? "%" : "", !1) } : valuesNotShares ? { ...run, fmt: valueFmt, statFmt: plainStat(input.percentLevels === !0 ? "%" : ""), fmtSigned: plain(input.percentLevels === !0 ? PERCENTAGE_POINTS : "", !0), printsZero: plainZero(input.percentLevels === !0 ? PERCENTAGE_POINTS : "") } : run, fmtRun = own ? {
1571
1629
  ...baseRun,
1572
1630
  fmt: referenceUnit ? (v) => formatWithSpec(v, { ...own, prefix: "", suffix: referenceUnit }) : formatterFromExample(example, input.locale),
1573
1631
  fmtSigned: (v) => formatWithSpec(v, signed),
1574
1632
  printsZero: (v) => roundedNumber(v, signed) === 0
1575
- } : ann.kind === "valueLine" && typeof ann.value == "number" && !id.startsWith("averageMarker") && !referenceFormat ? { ...baseRun, fmt: (v) => Number(roundHalfUp(Math.abs(v), autoDecimals(v))) === Math.abs(v) ? baseRun.fmt(v) : formatAutomaticNumber(v, { locale, decimals: Math.max(autoDecimals(v), neededDecimals(v)), suffix: referenceUnit ?? (referencePercent ? "%" : "") }) } : baseRun, statExample = ann.format ? void 0 : example ?? referenceFormat, statFmt = statExample ? (v) => formatStatWithSpec(v, referenceUnit ? { ...exampleSpec(statExample, locale), prefix: "", suffix: referenceUnit } : exampleSpec(statExample, locale)) : fmtRun.fmt, scope = {
1633
+ } : baseRun, statExample = ann.format ? void 0 : example ?? referenceFormat, statFmt = statExample ? (v) => formatStatWithSpec(v, referenceUnit ? { ...exampleSpec(statExample, locale), prefix: "", suffix: referenceUnit } : exampleSpec(statExample, locale)) : ann.format ? fmtRun.fmt : referenceUnit ? plainStat(referenceUnit) : ann.kind === "valueLine" && (secondaryLine || referencePercent !== percent) ? plainStat(referencePercent ? "%" : "") : baseRun.statFmt, scope = {
1576
1634
  input,
1577
1635
  nodes,
1578
1636
  labelRequests,
@@ -1630,7 +1688,10 @@ function placeAnnotation(s, ann, run) {
1630
1688
  }
1631
1689
  }
1632
1690
  function partialAnchors(s, ...anchors) {
1633
- let partial = s.input.partialCategories;
1691
+ return partialAnchorsOf(s.input, ...anchors);
1692
+ }
1693
+ function partialAnchorsOf(input, ...anchors) {
1694
+ let partial = input.partialCategories;
1634
1695
  return anchors.flatMap((anchor) => {
1635
1696
  let categoryId = anchor?.owner.categoryId;
1636
1697
  return categoryId !== void 0 && partial?.has(categoryId) ? [`'${anchor.label ?? categoryId}'`] : [];
@@ -1671,23 +1732,24 @@ function authored(s, kind, computed, text, value = computed) {
1671
1732
  suggest: 'drop "text" to publish the computed value, write ${value} where the number goes, or keep it and the claim record marks this annotation as an authored override'
1672
1733
  }), { text, computed };
1673
1734
  }
1674
- function placeCagr(s, ann) {
1675
- let { input, id } = s, fromRef = ann.from ?? input.defaultSpan?.from, toRef = ann.to ?? input.defaultSpan?.to;
1676
- if (!fromRef || !toRef) return warn(s, "cagr-no-span", "cagr needs from/to or a default span");
1735
+ function measureCagr(input, ann, id, report) {
1736
+ let warnOf = (code, message, suggest) => {
1737
+ report({ code, severity: "warn", message, owner: { annotationId: id }, ...suggest === void 0 ? {} : { suggest } });
1738
+ }, fromRef = ann.from ?? input.defaultSpan?.from, toRef = ann.to ?? input.defaultSpan?.to;
1739
+ if (!fromRef || !toRef) return warnOf("cagr-no-span", "cagr needs from/to or a default span");
1677
1740
  let a = comparisonAnchor(input.resolve(fromRef)), b = comparisonAnchor(input.resolve(toRef));
1678
- if (!a || !b) return warn(s, "bad-anchor", `cagr '${id}': unresolvable anchor`);
1679
- if (valueless(s, "cagr", [a, b])) return;
1680
- let partial = partialAnchors(s, a, b);
1741
+ if (!a || !b) return warnOf("bad-anchor", `cagr '${id}': unresolvable anchor`);
1742
+ let reason = [a, b].find((anchor) => anchor.noValue !== void 0)?.noValue;
1743
+ if (reason !== void 0) return warnOf("bad-anchor", `cagr '${id}': ${reason}, so it prints no value there`, valuelessFix(reason));
1744
+ let partial = partialAnchorsOf(input, a, b);
1681
1745
  if (partial.length > 0)
1682
- return warn(
1683
- s,
1746
+ return warnOf(
1684
1747
  "cagr-partial-period",
1685
1748
  `cagr '${id}': ${partial.join(" and ")} is a partial period, so an annual rate to it is not measured \u2014 CAGR omitted`,
1686
1749
  "anchor the CAGR on complete periods, or compare like-for-like periods with a diff"
1687
1750
  );
1688
1751
  if (!(a.value > 0))
1689
- return warn(
1690
- s,
1752
+ return warnOf(
1691
1753
  "cagr-undefined",
1692
1754
  chartString2({ locale: input.locale, strings: input.strings }, "cagrStartNotPositive", { v1: id }),
1693
1755
  "use {kind:'diff', mode:'absolute'} to report the change across the span, or a labelled note for a loss-reduction figure"
@@ -1695,30 +1757,32 @@ function placeCagr(s, ann) {
1695
1757
  let years = input.elapsedYears?.(a, b) ?? yearSpan(a.date ?? a.owner.categoryId, b.date ?? b.owner.categoryId);
1696
1758
  if (years === null) {
1697
1759
  let inferred = yearSpanFromLabels(a.label, b.label);
1698
- inferred !== null && (years = inferred, s.warnings.push({
1760
+ inferred !== null && (years = inferred, report({
1699
1761
  code: "cagr-span-from-labels",
1700
1762
  severity: "info",
1701
1763
  message: `cagr '${id}': period of ${formatYears(inferred)} read from the labels '${a.label}' and '${b.label}'`
1702
1764
  }));
1703
1765
  }
1704
1766
  if (years === null)
1705
- return warn(
1706
- s,
1767
+ return warnOf(
1707
1768
  "cagr-no-dates",
1708
1769
  `cagr '${id}': anchors carry no usable ISO date (YYYY-MM-DD) and their labels name no year \u2014 no per-annum rate can be computed`,
1709
1770
  `give the anchored categories/items a "date" of the form YYYY-MM-DD or a label with a year such as "FY24", or use {kind:'diff', mode:'relative'} to report total growth across the span`
1710
1771
  );
1711
1772
  if (years <= 0)
1712
- return warn(s, "cagr-zero-span", `cagr '${id}': anchor dates span zero or negative time`);
1713
- years < 1 && warn(
1714
- s,
1773
+ return warnOf("cagr-zero-span", `cagr '${id}': anchor dates span zero or negative time`);
1774
+ years < 1 && warnOf(
1715
1775
  "cagr-short-span",
1716
1776
  `cagr '${id}': the anchors span ${formatYears(years)}, under one year, so the per-annum rate extrapolates a shorter period`,
1717
1777
  "use {kind:'diff', mode:'relative'} to report the growth across the span itself"
1718
1778
  );
1719
- let rate = cagr(a.value, b.value, years);
1720
- if (rate === null || !Number.isFinite(rate)) return warn(s, "cagr-undefined", `cagr '${id}': ${rate === null ? "the end value is below zero" : "the span is too short for a finite annual rate"}`);
1721
- let suffix = ann.suffix ?? "p.a.", rateText = `${ann.format ? s.run.fmtSigned(rate) : formatAutomaticPercent(rate, Math.max(1, typicalDecimals([rate])), !0, input.locale)} ${suffix}`.trim(), periodOn = ann.period ?? (input.comparisonLayout?.namesSpan === !0 || ann.shape !== "arrow" && input.annotations.filter((other) => other.kind === "cagr").length > 1), lead = spanLead(s, a, b, periodOn), label = authored(s, "cagr", lead ? `${lead} ${rateText}` : rateText, ann.text, rateText), parts = lead && label.text === `${lead} ${rateText}` ? { lead, value: rateText } : void 0;
1779
+ let growth = cagr(a.value, b.value, years), rate = growth === null ? null : cleanFloat(growth, Math.abs(growth) + 100);
1780
+ return rate === null || !Number.isFinite(rate) ? warnOf("cagr-undefined", `cagr '${id}': ${rate === null ? "the end value is below zero" : "the span is too short for a finite annual rate"}`) : { a, b, fromRef, toRef, years, rate };
1781
+ }
1782
+ function placeCagr(s, ann) {
1783
+ let { input, id } = s, measured = measureCagr(input, ann, id, (warning) => s.warnings.push(warning));
1784
+ if (!measured) return;
1785
+ let { a, b, fromRef, toRef, years, rate } = measured, suffix = ann.suffix ?? "p.a.", rateText = `${ann.format ? s.run.fmtSigned(rate) : percentChangeText(s, "cagr", rate)} ${suffix}`.trim(), periodOn = ann.period ?? (input.comparisonLayout?.namesSpan === !0 || ann.shape !== "arrow" && input.annotations.filter((other) => other.kind === "cagr").length > 1), lead = spanLead(s, a, b, periodOn), label = authored(s, "cagr", lead ? `${lead} ${rateText}` : rateText, ann.text, rateText), parts = lead && label.text === `${lead} ${rateText}` ? { lead, value: rateText } : void 0;
1722
1786
  drawCagrArm(s, a, b, label.text, id, label.computed, {
1723
1787
  basis: "derived",
1724
1788
  op: "annotation-cagr@1",
@@ -1797,8 +1861,8 @@ function placeDiff(s, ann) {
1797
1861
  if (mode === "relative" || mode === "reversed") {
1798
1862
  let [base, tip] = mode === "reversed" ? [b, a] : [a, b];
1799
1863
  if (base.value === 0) return warn(s, "ref-zero", `diff '${id}': zero base`);
1800
- let pct = (tip.value - base.value) / Math.abs(base.value) * 100;
1801
- computed = ann.format ? s.run.fmtSigned(pct) : formatAutomaticPercent(pct, typicalDecimals([pct]), !0, input.locale), derivation = {
1864
+ let pct = percentChange(tip.value, base.value);
1865
+ computed = ann.format ? s.run.fmtSigned(pct) : percentChangeText(s, "diff", pct), derivation = {
1802
1866
  basis: "derived",
1803
1867
  op: "annotation-diff-relative@1",
1804
1868
  inputs: [
@@ -1814,8 +1878,8 @@ function placeDiff(s, ann) {
1814
1878
  );
1815
1879
  } else {
1816
1880
  if (mode === "both" && a.value === 0) return warn(s, "ref-zero", `diff '${id}': mode 'both' needs a nonzero 'from'`);
1817
- let pct = mode === "both" ? (b.value - a.value) / Math.abs(a.value) * 100 : 0;
1818
- pctText = mode === "both" ? formatAutomaticPercent(pct, typicalDecimals([pct]), !0, input.locale) : "", computed = s.run.fmtSigned(b.value - a.value) + (mode === "both" ? ` (${pctText})` : ""), derivation = {
1881
+ let pct = mode === "both" ? percentChange(b.value, a.value) : 0;
1882
+ pctText = mode === "both" ? percentChangeText(s, "diff", pct) : "", computed = s.run.fmtSigned(cleanDiff(b.value, a.value)) + (mode === "both" ? ` (${pctText})` : ""), derivation = {
1819
1883
  basis: "derived",
1820
1884
  op: "annotation-diff-absolute@1",
1821
1885
  inputs: [
@@ -1826,7 +1890,7 @@ function placeDiff(s, ann) {
1826
1890
  };
1827
1891
  }
1828
1892
  if (gapPlacement(s, ann, a, b)) {
1829
- let value = mode === "relative" || mode === "reversed" ? computed : gapNumber(s, ann, a, b, b.value - a.value, s.run.fmtSigned(b.value - a.value)), text = mode === "both" ? `${value} (${pctText})` : value, [tail, head] = mode === "reversed" ? [b, a] : [a, b];
1893
+ let value = mode === "relative" || mode === "reversed" ? computed : gapNumber(s, ann, a, b, cleanDiff(b.value, a.value), s.run.fmtSigned(cleanDiff(b.value, a.value))), text = mode === "both" ? `${value} (${pctText})` : value, [tail, head] = mode === "reversed" ? [b, a] : [a, b];
1830
1894
  return drawGapBracket(s, ann, tail, head, authored(s, "diff", text, ann.text, text), derivation);
1831
1895
  }
1832
1896
  let lead = input.comparisonLayout?.namesSpan ? spanLead(s, a, b, !0, !0) : "", gapWord = input.barInset && !lead && ann.text === void 0 && a.owner.categoryId !== void 0 && a.owner.categoryId === b.owner.categoryId && a.owner.seriesId !== b.owner.seriesId ? input.barInset.gapWord : "", label = gapWord ? { text: `${gapWord}\xA0${computed}`, computed } : authored(s, "diff", lead ? `${lead} ${computed}` : computed, ann.text, computed);
@@ -1837,7 +1901,7 @@ function placeNote(s, ann) {
1837
1901
  let found = s.input.resolve(ann.at);
1838
1902
  if (!found) return warn(s, "bad-anchor", `${ann.kind} '${s.id}': unresolvable anchor`);
1839
1903
  if ([ann.text, ann.kind === "callout" ? ann.headline : void 0].some((text2) => text2?.includes("${value}")) && valueless(s, ann.kind, [found])) return;
1840
- let value = s.run.fmt(found.value), repeats = found.printed?.text === value && (ann.text ?? "").includes("${value}"), at = repeats ? found : { ...found, printed: void 0 }, text = repeats ? ann.text.replace(/[\s:\u2013\u2014-]*\$\{value\}/g, "").replace(/[ \t]{2,}/g, " ").trim() : (ann.text ?? "").replace(/\$\{value\}/g, value), glyph = calloutGlyphOf(s, ann);
1904
+ let value = shownValueText(s, ann, found) ?? s.run.fmt(found.value), repeats = found.printed?.text === value && (ann.text ?? "").includes("${value}"), at = repeats ? found : { ...found, printed: void 0 }, text = repeats ? ann.text.replace(/[\s:\u2013\u2014-]*\$\{value\}/g, "").replace(/[ \t]{2,}/g, " ").trim() : (ann.text ?? "").replace(/\$\{value\}/g, value), glyph = calloutGlyphOf(s, ann);
1841
1905
  if (repeats && s.warnings.push({
1842
1906
  code: "annotation-value-on-mark",
1843
1907
  severity: "info",
@@ -1856,6 +1920,31 @@ ${text}`, printsValue = !repeats && [ann.text, ann.kind === "callout" ? ann.head
1856
1920
  raw: null
1857
1921
  }, placedGlyph, printsValue ? found.owner : void 0);
1858
1922
  }
1923
+ function shownValueText(s, ann, at) {
1924
+ let text = stated(s, ann, at);
1925
+ return text === void 0 || printsBound(text) ? void 0 : text;
1926
+ }
1927
+ function stated(s, ann, at) {
1928
+ if (ann.format !== void 0) return;
1929
+ let drawn = at.printed?.shows?.value;
1930
+ if (drawn !== void 0) return drawn;
1931
+ let exact = (owner) => {
1932
+ let keys = Object.keys(owner);
1933
+ return keys.length === Object.keys(at.owner).length && keys.every((key) => owner[key] === at.owner[key]);
1934
+ }, wouldBe;
1935
+ for (let label of s.input.printedLabels ?? []) {
1936
+ let text = label.shows?.value;
1937
+ if (!(text === void 0 || !exact(label.owner))) {
1938
+ if (label.hidden === void 0) return text;
1939
+ wouldBe ??= text;
1940
+ }
1941
+ }
1942
+ for (let request of s.input.labelRequests ?? []) {
1943
+ let text = request.shows?.value;
1944
+ text !== void 0 && exact(request.owner) && (wouldBe ??= text);
1945
+ }
1946
+ return wouldBe ??= at.shows?.value, (at.format ?? s.input.format) === void 0 ? void 0 : wouldBe;
1947
+ }
1859
1948
  function placeDelta(s, ann) {
1860
1949
  let { input, id } = s, at = input.resolve(ann.at);
1861
1950
  if (!at) return warn(s, "bad-anchor", `delta '${id}': unresolvable anchor`);
@@ -1863,9 +1952,9 @@ function placeDelta(s, ann) {
1863
1952
  if (vsValue === null) return warn(s, "bad-anchor", `delta '${id}': unresolvable vs`);
1864
1953
  if (valueless(s, "delta", [at, vsAnchor])) return;
1865
1954
  warnPartialComparison(s, "delta", partialAnchors(s, at, vsAnchor));
1866
- let atValue = vsAnchor ? at.comparisonValue ?? at.value : at.value, d = atValue - vsValue, mode = ann.mode ?? "absolute";
1955
+ let atValue = vsAnchor ? at.comparisonValue ?? at.value : at.value, d = cleanDiff(atValue, vsValue), mode = ann.mode ?? "absolute";
1867
1956
  if (mode !== "absolute" && vsValue === 0) return warn(s, "ref-zero", `delta '${id}': mode '${mode}' needs a nonzero vs`);
1868
- let pct = d / Math.abs(vsValue) * 100, pctText = ann.format && mode === "relative" ? s.run.fmtSigned(pct) : formatAutomaticPercent(pct, typicalDecimals([pct]), !0, input.locale), computed = mode === "relative" ? pctText : mode === "both" ? `${s.run.fmtSigned(d)} (${pctText})` : s.run.fmtSigned(d), tone = s.run.printsZero(d) ? void 0 : d > 0 ? "good" : "bad", acrossRows = input.deltaAcrossRows === !0 && vsAnchor !== null && vsAnchor.owner.categoryId !== void 0 && vsAnchor.owner.categoryId !== at.owner.categoryId, vsRef = typeof ann.vs == "number" ? "vs:literal" : `vs:${anchorRefLabel(ann.vs)}`, derivation = mode === "relative" ? {
1957
+ let pct = percentChange(atValue, vsValue), pctText = ann.format && mode === "relative" ? s.run.fmtSigned(pct) : percentChangeText(s, "delta", pct), computed = mode === "relative" ? pctText : mode === "both" ? `${s.run.fmtSigned(d)} (${pctText})` : s.run.fmtSigned(d), tone = s.run.printsZero(d) ? void 0 : d > 0 ? "good" : "bad", acrossRows = input.deltaAcrossRows === !0 && vsAnchor !== null && vsAnchor.owner.categoryId !== void 0 && vsAnchor.owner.categoryId !== at.owner.categoryId, vsRef = typeof ann.vs == "number" ? "vs:literal" : `vs:${anchorRefLabel(ann.vs)}`, derivation = mode === "relative" ? {
1869
1958
  basis: "derived",
1870
1959
  op: "annotation-diff-relative@1",
1871
1960
  inputs: [{ ref: `base:${vsRef.slice(3)}`, value: vsValue }, { ref: `tip:${anchorRefLabel(ann.at)}`, value: atValue }],
@@ -1908,11 +1997,11 @@ function gapPlacement(s, ann, a, b) {
1908
1997
  return !applies && ann.caption !== void 0 && warn(s, "gap-caption-ignored", `${ann.kind} '${s.id}': caption prints only under a gap bracket, so it is not drawn`, "drop caption, or anchor the annotation so it draws a gap bracket"), applies;
1909
1998
  }
1910
1999
  function gapNumber(s, ann, tail, head, raw, computed) {
1911
- if (ann.format) return computed;
2000
+ if (ann.format || s.input.format === void 0 && s.input.differenceFormat === void 0) return computed;
1912
2001
  let printed = [tail, head].map((end) => s.input.labelRequests?.find((request) => request.kind === "point" && !request.redundant && request.owner.seriesId === end.owner.seriesId && request.owner.categoryId === end.owner.categoryId)?.text);
1913
2002
  if (printed.some((text) => text === void 0)) return computed;
1914
2003
  try {
1915
- let [first, second] = printed.map((text) => parseFormatExample(differenceExample(text)));
2004
+ let [first, second] = printed.map((text) => parseFormatExample(differenceExample(text), !0));
1916
2005
  return formatWithSpec(raw, withChartMarks({ ...second.decimals > first.decimals ? second : first, signed: !0 }, s.input.locale));
1917
2006
  } catch {
1918
2007
  return computed;