boardplot 0.60.0 → 0.62.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 (422) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +2 -2
  3. package/dist/{ReaderBox-JJX4J7GC.js → ReaderBox-5QFALZHR.js} +5 -5
  4. package/dist/{annotateEngine-KNRKDLY3.js → annotateEngine-ONWZYNEM.js} +1 -1
  5. package/dist/build-identity.json +3 -3
  6. package/dist/{chunk-D4SXBDA4.js → chunk-23YYVMWH.js} +1 -1
  7. package/dist/{chunk-OMUW75ZR.js → chunk-2MK5437T.js} +7 -7
  8. package/dist/{chunk-CDFZV6LR.js → chunk-2P5KBQLT.js} +4 -4
  9. package/dist/{chunk-EH23CIC5.js → chunk-2VUEIEUO.js} +2 -2
  10. package/dist/{chunk-TASEX7VA.js → chunk-2YXO645A.js} +1 -1
  11. package/dist/{chunk-YHIBABKS.js → chunk-35JGEMCK.js} +35 -28
  12. package/dist/{chunk-XWGAANY4.js → chunk-3DXOZRRW.js} +3 -3
  13. package/dist/{chunk-PP23D6QV.js → chunk-3H72EFNC.js} +4 -4
  14. package/dist/{chunk-RDJ3ZU6O.js → chunk-3KYSWAEH.js} +13 -8
  15. package/dist/{chunk-XMRLQDOR.js → chunk-3QJVBKRX.js} +37 -37
  16. package/dist/{chunk-XVFUJRRC.js → chunk-3YSLEJPV.js} +1 -1
  17. package/dist/{chunk-DBKMJWPO.js → chunk-3Z4I6LNK.js} +1 -1
  18. package/dist/{chunk-J5QVU7GS.js → chunk-476R7YF4.js} +24 -20
  19. package/dist/{chunk-MA57XWZA.js → chunk-47IEMR6C.js} +85 -79
  20. package/dist/{chunk-ZNA4JHHG.js → chunk-4HZKH4HS.js} +2 -2
  21. package/dist/{chunk-CQ6WHTRL.js → chunk-4NGKSJBX.js} +109 -23
  22. package/dist/{chunk-DEJKDFS3.js → chunk-4SK4IGMK.js} +3 -3
  23. package/dist/{chunk-OL6HVC6K.js → chunk-4TTNLFTJ.js} +1 -1
  24. package/dist/{chunk-L2VWHKTJ.js → chunk-4XDWZJUX.js} +3 -1
  25. package/dist/{chunk-66FOKRUF.js → chunk-5FG24HFB.js} +4 -4
  26. package/dist/{chunk-HLQ74GAX.js → chunk-5J2PQ5EZ.js} +4 -4
  27. package/dist/{chunk-7BQK2UDV.js → chunk-5LUHGXXE.js} +1 -1
  28. package/dist/{chunk-FYFXOLWI.js → chunk-5OUURZ2T.js} +70 -58
  29. package/dist/{chunk-UNO3WZR2.js → chunk-64D7CHCE.js} +4 -4
  30. package/dist/{chunk-SBYKLBDV.js → chunk-6LYMOF2S.js} +4 -4
  31. package/dist/{chunk-52YYGKXG.js → chunk-6MXRNA4Z.js} +17 -17
  32. package/dist/{chunk-IDVHLD2L.js → chunk-6OM5IYNK.js} +68 -11
  33. package/dist/{chunk-B7UWG6XJ.js → chunk-6PR23T2O.js} +1 -1
  34. package/dist/{chunk-VGOZOBNB.js → chunk-6QQPQ2TX.js} +1 -1
  35. package/dist/{chunk-BQBD6Q5J.js → chunk-6RRK3VFP.js} +1 -1
  36. package/dist/{chunk-YM7MO7WI.js → chunk-6WEJGZVQ.js} +1 -1
  37. package/dist/{chunk-OYLZRQTX.js → chunk-6XDX3MIU.js} +5 -5
  38. package/dist/{chunk-5XAU6JH5.js → chunk-75OLP5KB.js} +35 -35
  39. package/dist/{chunk-UIHGGWES.js → chunk-77LQEREO.js} +1 -1
  40. package/dist/{chunk-PRVX4PAO.js → chunk-7JSGG67J.js} +1 -1
  41. package/dist/{chunk-RTN422GQ.js → chunk-7NUNEVOU.js} +14 -9
  42. package/dist/{chunk-2ZDFX75P.js → chunk-7OT6CVQT.js} +1 -1
  43. package/dist/{chunk-QCDJGYFU.js → chunk-7R43Y35G.js} +1 -1
  44. package/dist/{chunk-XLX3TUFO.js → chunk-7RAF2HJA.js} +2 -2
  45. package/dist/{chunk-CROGQZFW.js → chunk-7S57SH2K.js} +9 -9
  46. package/dist/{chunk-LWRLVDFU.js → chunk-7ZYGEPY2.js} +52 -28
  47. package/dist/{chunk-N5DPRWQ6.js → chunk-ABUJPENV.js} +53 -42
  48. package/dist/{chunk-C63YFMCB.js → chunk-ADVFTNDL.js} +4 -4
  49. package/dist/{chunk-MOPY5REE.js → chunk-AFONROHX.js} +3 -3
  50. package/dist/{chunk-EGCELTRX.js → chunk-AO73FLJT.js} +4 -4
  51. package/dist/{chunk-U75MMLNQ.js → chunk-AU2TQN6F.js} +4 -4
  52. package/dist/{chunk-34XJCEPN.js → chunk-BFHAYXUU.js} +2 -2
  53. package/dist/{chunk-UKEI7JDA.js → chunk-BFJKH4AX.js} +3 -2
  54. package/dist/{chunk-3JG764MI.js → chunk-BHO5H4AF.js} +43 -15
  55. package/dist/{chunk-T73SF424.js → chunk-BKZF27CE.js} +2 -2
  56. package/dist/{chunk-BXZNLMMH.js → chunk-BR2ADMLU.js} +2 -2
  57. package/dist/{chunk-BIRB4FIZ.js → chunk-BZUHBKMK.js} +4 -4
  58. package/dist/{chunk-N7BPP6ZZ.js → chunk-C2X6NYMY.js} +1 -1
  59. package/dist/{chunk-NOC5PYN3.js → chunk-C3ULVZI7.js} +2 -2
  60. package/dist/{chunk-JUVSZGY7.js → chunk-CFT6W2QY.js} +3 -3
  61. package/dist/{chunk-7KIULDTU.js → chunk-CPBJII5T.js} +5 -5
  62. package/dist/{chunk-LUYV7PHY.js → chunk-CTRPRU4Y.js} +16 -13
  63. package/dist/{chunk-3HKY4LAR.js → chunk-CWBM7MXM.js} +4 -4
  64. package/dist/{chunk-ZQ6AEWKM.js → chunk-CZZXZFYL.js} +2 -2
  65. package/dist/{chunk-TDVNIVU4.js → chunk-D2I2BUR6.js} +1 -1
  66. package/dist/{chunk-VRG7GG7T.js → chunk-DCFK2BUL.js} +2 -2
  67. package/dist/{chunk-5OV7VOGV.js → chunk-DVQR5SFL.js} +2 -2
  68. package/dist/{chunk-GZYMHC44.js → chunk-DWEVPNNE.js} +2 -2
  69. package/dist/{chunk-RQT52BP4.js → chunk-DYG4XMCC.js} +5 -5
  70. package/dist/{chunk-PCITI5ED.js → chunk-E46KFVP5.js} +11 -11
  71. package/dist/{chunk-DITI57ZB.js → chunk-EKKRDPVW.js} +1 -1
  72. package/dist/{chunk-UGAZT73S.js → chunk-ELFF5YO7.js} +8 -8
  73. package/dist/{chunk-2KICOGFN.js → chunk-EPRJX5BI.js} +2 -2
  74. package/dist/{chunk-JOX252XQ.js → chunk-EPS7N5ZS.js} +8 -3
  75. package/dist/{chunk-AGR4VJ2Y.js → chunk-ERIMFXE3.js} +1 -1
  76. package/dist/{chunk-TSGSZAAN.js → chunk-ESS7GAO5.js} +15 -15
  77. package/dist/{chunk-VTUSC24F.js → chunk-EW77WN7V.js} +2 -2
  78. package/dist/{chunk-CLZPPLDA.js → chunk-F2IGRFYM.js} +57 -33
  79. package/dist/{chunk-WQ2TZNGR.js → chunk-F7LDXGWD.js} +11 -11
  80. package/dist/{chunk-SDAVHADX.js → chunk-FC6H5ATA.js} +2 -2
  81. package/dist/{chunk-ISNHKFCU.js → chunk-FI5VGWUQ.js} +2 -2
  82. package/dist/{chunk-Q53IWBTJ.js → chunk-FPF73SCJ.js} +18 -15
  83. package/dist/{chunk-4S3DTNEQ.js → chunk-FSRAPSO7.js} +28 -28
  84. package/dist/{chunk-ID65JMYY.js → chunk-FXKGNJYB.js} +17 -17
  85. package/dist/{chunk-25JXYOSX.js → chunk-FXQH2QJN.js} +1 -1
  86. package/dist/{chunk-GDS7LEGY.js → chunk-GA7CIH6N.js} +23 -18
  87. package/dist/{chunk-GYEBEF4S.js → chunk-GCOFMXFJ.js} +5 -5
  88. package/dist/{chunk-Q4SQGAEI.js → chunk-GGWYJNHH.js} +4 -4
  89. package/dist/{chunk-64M7YDMJ.js → chunk-GNSAYVND.js} +2 -2
  90. package/dist/{chunk-X725AGYP.js → chunk-H7K3RXBQ.js} +2 -2
  91. package/dist/{chunk-I5LFCHNQ.js → chunk-HCAPGTEA.js} +1 -1
  92. package/dist/{chunk-RF6ZHX5F.js → chunk-HUU76QHF.js} +1 -1
  93. package/dist/{chunk-TZOHCW4R.js → chunk-HV6OKHM6.js} +1 -1
  94. package/dist/{chunk-7OLE7R46.js → chunk-HYBGISXA.js} +3 -3
  95. package/dist/{chunk-E7GO4KFZ.js → chunk-I37SEVQ4.js} +127 -79
  96. package/dist/{chunk-ZCOGCNT7.js → chunk-I3UJHKCS.js} +3 -3
  97. package/dist/{chunk-VSAX2PYB.js → chunk-I56NIVFF.js} +4 -4
  98. package/dist/{chunk-2KDELDD4.js → chunk-IDMGFWB7.js} +134 -116
  99. package/dist/{chunk-YDYZWCUQ.js → chunk-IHZNRJEV.js} +1 -1
  100. package/dist/{chunk-EFU2RCCR.js → chunk-IMKHDTEQ.js} +1 -1
  101. package/dist/{chunk-PYJZ7CCP.js → chunk-ISNWAYX2.js} +3 -3
  102. package/dist/{chunk-6IRPZUWJ.js → chunk-ITPXKZXT.js} +83 -79
  103. package/dist/{chunk-PS45RNDC.js → chunk-J233F6JA.js} +3 -3
  104. package/dist/{chunk-PSUSHJFV.js → chunk-J6WWK4VC.js} +1 -1
  105. package/dist/{chunk-DXKMCMIH.js → chunk-J77EYTIA.js} +2 -2
  106. package/dist/{chunk-D7FFMBHF.js → chunk-JCZ64D4G.js} +4 -4
  107. package/dist/{chunk-LUIHWUZB.js → chunk-JEC6YG2C.js} +34 -20
  108. package/dist/{chunk-BNBCHZ6D.js → chunk-JV3S3OCN.js} +19 -18
  109. package/dist/{chunk-7KZN3TXQ.js → chunk-K2ZDFPYP.js} +5 -5
  110. package/dist/{chunk-WPHEUEO3.js → chunk-K3METEEY.js} +133 -30
  111. package/dist/{chunk-WWFUZXCW.js → chunk-K464WFSQ.js} +4 -4
  112. package/dist/{chunk-T52ZPSGL.js → chunk-KDRI3KHH.js} +7 -2
  113. package/dist/{chunk-K7CONTAT.js → chunk-KK7UXU2E.js} +3 -3
  114. package/dist/{chunk-5SPL5QEB.js → chunk-KNTNUQNS.js} +8 -8
  115. package/dist/{chunk-QZAT46PP.js → chunk-KRSI6U6L.js} +1 -0
  116. package/dist/{chunk-SC2363Q7.js → chunk-KU5WGRQJ.js} +72 -44
  117. package/dist/{chunk-C7SY7RYQ.js → chunk-KWBG3P7W.js} +4 -4
  118. package/dist/{chunk-ZXT3OS6U.js → chunk-KWKJYMXJ.js} +3 -3
  119. package/dist/{chunk-XKKII2K5.js → chunk-KWTVCTWS.js} +246 -83
  120. package/dist/{chunk-ZOQRX5V7.js → chunk-KZ7ECRPL.js} +4 -4
  121. package/dist/{chunk-VCENIUYM.js → chunk-L46NAICE.js} +5 -5
  122. package/dist/{chunk-2OKDNNCY.js → chunk-L4VGGSB3.js} +4 -4
  123. package/dist/{chunk-76IZNTNL.js → chunk-L6T7FXEM.js} +6 -6
  124. package/dist/{chunk-2E2MK4XM.js → chunk-LE6QYQRU.js} +2 -2
  125. package/dist/{chunk-WDLWWEHZ.js → chunk-LIMLKOX7.js} +1 -1
  126. package/dist/{chunk-2FSJFKUH.js → chunk-LK5V7U6C.js} +5 -5
  127. package/dist/{chunk-6RQCZA7X.js → chunk-LNBYRD5Q.js} +4 -4
  128. package/dist/{chunk-CVLTU3T4.js → chunk-LTEGXWSU.js} +4 -4
  129. package/dist/{chunk-MXC5QMPC.js → chunk-LUIHCUMB.js} +4 -4
  130. package/dist/{chunk-GOVRBONO.js → chunk-MAA5IGGT.js} +2 -2
  131. package/dist/{chunk-RLRVSX4I.js → chunk-MDGVRYXX.js} +20 -20
  132. package/dist/{chunk-7TGG57QF.js → chunk-MEIDC7ZF.js} +4 -4
  133. package/dist/{chunk-RWVM4EVE.js → chunk-MTJZT6F2.js} +5 -5
  134. package/dist/{chunk-AXKZLSON.js → chunk-MUYU6KTM.js} +1 -1
  135. package/dist/{chunk-RPS7G77V.js → chunk-MVA2JWM4.js} +2 -2
  136. package/dist/{chunk-LCTLW4ZW.js → chunk-MYDVNJAA.js} +1 -1
  137. package/dist/{chunk-3PFNYRBD.js → chunk-NFEVGJJ6.js} +13 -13
  138. package/dist/{chunk-HXAWJC32.js → chunk-NFSG2WBI.js} +4 -4
  139. package/dist/{chunk-K7NCVUIB.js → chunk-NFYF7P6H.js} +36 -28
  140. package/dist/{chunk-ZT7QX7UQ.js → chunk-NL2K3CZM.js} +5 -5
  141. package/dist/{chunk-A2RKEC66.js → chunk-NTONEZH5.js} +20 -20
  142. package/dist/{chunk-GGXAAOKT.js → chunk-NTSJ2RXB.js} +4 -4
  143. package/dist/{chunk-OJWJMG6B.js → chunk-NVPORMKX.js} +15 -15
  144. package/dist/{chunk-NJNMKQHG.js → chunk-NXA2CNVU.js} +125 -31
  145. package/dist/{chunk-R2RLERPT.js → chunk-NYROTVGH.js} +1 -1
  146. package/dist/{chunk-W74Y5AUG.js → chunk-NZHIXLKM.js} +19 -17
  147. package/dist/{chunk-UIOZDIUB.js → chunk-OCANU74G.js} +3 -3
  148. package/dist/{chunk-IF4PERIE.js → chunk-OF4VHET3.js} +4 -4
  149. package/dist/{chunk-UXJXA4NP.js → chunk-OJLXBFI3.js} +1 -1
  150. package/dist/{chunk-5HOIOQK3.js → chunk-OLXZXEKQ.js} +1 -1
  151. package/dist/{chunk-UNBUFCQT.js → chunk-OQGSYQLE.js} +1 -1
  152. package/dist/{chunk-MZCJ22O4.js → chunk-OQQGM2TM.js} +1 -1
  153. package/dist/{chunk-FPWADEL6.js → chunk-OQRTTGYP.js} +22 -1
  154. package/dist/{chunk-XUEX5WTR.js → chunk-OQTD4GN4.js} +1 -1
  155. package/dist/{chunk-HOQJIUTX.js → chunk-OXWIBDJP.js} +2 -2
  156. package/dist/{chunk-F7QCIJAY.js → chunk-OYDZO5BR.js} +1 -1
  157. package/dist/{chunk-5PC6VOEW.js → chunk-PDUF6EII.js} +9 -9
  158. package/dist/{chunk-GEFUIQUO.js → chunk-PHRQAWK4.js} +2 -2
  159. package/dist/{chunk-NF74JTTK.js → chunk-PM5D5KYQ.js} +67 -30
  160. package/dist/{chunk-QF6NFIBD.js → chunk-Q5BD6PMX.js} +22 -22
  161. package/dist/{chunk-UHFSDVW2.js → chunk-QEEE2WH5.js} +4 -4
  162. package/dist/{chunk-BG2RBCJP.js → chunk-QMGCL5FR.js} +4 -4
  163. package/dist/{chunk-DXSYY6XR.js → chunk-QMZPQU65.js} +2 -2
  164. package/dist/{chunk-7VWXXBTC.js → chunk-QSNEZ4UR.js} +1 -1
  165. package/dist/{chunk-BHYY6VMQ.js → chunk-QSWLPQCW.js} +27 -23
  166. package/dist/{chunk-LVC2YJGV.js → chunk-R55LS2W2.js} +28 -28
  167. package/dist/{chunk-BLTQ2L6U.js → chunk-RDXJAEZ4.js} +4 -4
  168. package/dist/{chunk-OVYQJDRW.js → chunk-RDZNRSAB.js} +2 -2
  169. package/dist/{chunk-VHZ4MXJO.js → chunk-RFUSBITY.js} +1 -1
  170. package/dist/{chunk-4VKYFELK.js → chunk-RIGQU57Y.js} +7 -7
  171. package/dist/{chunk-DEUOC3IL.js → chunk-RNA5GO3B.js} +2 -2
  172. package/dist/{chunk-IFRDI7EF.js → chunk-RODV3OHP.js} +294 -180
  173. package/dist/{chunk-CPKPQQV6.js → chunk-RPK657TE.js} +16 -2
  174. package/dist/{chunk-HMWN6FTW.js → chunk-SAVO62PW.js} +1 -1
  175. package/dist/{chunk-3ADWX4BM.js → chunk-SB2DHY53.js} +18 -18
  176. package/dist/{chunk-BIQ5LJEC.js → chunk-SBHPRHKB.js} +4 -4
  177. package/dist/{chunk-TMY4PWDQ.js → chunk-SBPFCQNK.js} +4 -4
  178. package/dist/{chunk-PZZAVTLQ.js → chunk-SFPHP3CC.js} +2 -2
  179. package/dist/{chunk-PLVYTK2H.js → chunk-SIZW5V4G.js} +18 -14
  180. package/dist/{chunk-Y4BJ7D5F.js → chunk-SJ5KVLTG.js} +1 -1
  181. package/dist/{chunk-PGZGBVTS.js → chunk-SJZLWRRY.js} +8 -8
  182. package/dist/{chunk-A3AKNPLZ.js → chunk-SOAB4G33.js} +4 -4
  183. package/dist/{chunk-LPLRXEOT.js → chunk-ST2IQX7U.js} +57 -17
  184. package/dist/{chunk-E4XQSRH6.js → chunk-T33R2CM3.js} +7 -7
  185. package/dist/{chunk-FWPPZB4G.js → chunk-T4ZE7AIX.js} +2 -2
  186. package/dist/{chunk-HTXICOSJ.js → chunk-TCQ733WC.js} +15 -15
  187. package/dist/{chunk-J3GYX5BJ.js → chunk-TGTKAIDU.js} +20 -15
  188. package/dist/{chunk-AE6X6RRH.js → chunk-U4PDXI67.js} +4 -4
  189. package/dist/{chunk-JXMOPQXC.js → chunk-UGTYYTPP.js} +2 -2
  190. package/dist/{chunk-Y5ROVCMQ.js → chunk-UL3RNOYB.js} +3 -3
  191. package/dist/{chunk-MYBBZNYN.js → chunk-UOTZH4TG.js} +2 -2
  192. package/dist/{chunk-ZH4DRVFN.js → chunk-UQSH52UJ.js} +4 -4
  193. package/dist/{chunk-PL43U5GM.js → chunk-UWT66OAR.js} +1 -1
  194. package/dist/{chunk-QTT4AJY5.js → chunk-V4NJTLJP.js} +14 -14
  195. package/dist/{chunk-SY7JC3PH.js → chunk-V4YJRZHE.js} +1 -1
  196. package/dist/{chunk-FP4INYSU.js → chunk-V5Y3CXSU.js} +4 -4
  197. package/dist/{chunk-TTY4CA7M.js → chunk-VZFPQMYN.js} +9 -9
  198. package/dist/{chunk-C26Z5AEW.js → chunk-W35C2SL3.js} +3 -3
  199. package/dist/{chunk-X5I3LGHD.js → chunk-W6ZCXWOK.js} +1 -1
  200. package/dist/{chunk-TUYKMVYV.js → chunk-WDP7IDGF.js} +13 -13
  201. package/dist/{chunk-L3B46VGP.js → chunk-WDQJ2DRZ.js} +14 -14
  202. package/dist/{chunk-3HKL6KJ6.js → chunk-WKBW4JFU.js} +1 -1
  203. package/dist/chunk-WM65Q3AL.js +69 -0
  204. package/dist/{chunk-HPNQ3GKK.js → chunk-WO6ZJCAO.js} +4 -4
  205. package/dist/chunk-WSRGEK5T.js +89 -0
  206. package/dist/{chunk-NGKZRGQL.js → chunk-WXGBSBHQ.js} +13 -12
  207. package/dist/{chunk-XDGAJVCG.js → chunk-WXOSGKMS.js} +8 -8
  208. package/dist/{chunk-6BAUUBP2.js → chunk-XBASXPUJ.js} +2 -2
  209. package/dist/{chunk-O6E2LWGK.js → chunk-XDDFM3BH.js} +6 -6
  210. package/dist/{chunk-ENVV7LI4.js → chunk-XJOCPL6R.js} +2 -2
  211. package/dist/{chunk-ETSWVJB6.js → chunk-XJSI7ZO2.js} +1 -1
  212. package/dist/chunk-XKGZWQF7.js +63 -0
  213. package/dist/{chunk-ZLH7XSHV.js → chunk-XLHURGH3.js} +5 -5
  214. package/dist/{chunk-LGNAFFIL.js → chunk-XWQDNJ36.js} +4 -4
  215. package/dist/{chunk-ZS24JHBP.js → chunk-YBQ4F27M.js} +4 -4
  216. package/dist/{chunk-ZIC22PSH.js → chunk-YDT6QZZK.js} +9 -9
  217. package/dist/{chunk-BJS6TLLE.js → chunk-YE6B7P6Q.js} +1 -1
  218. package/dist/{chunk-UF7OWARN.js → chunk-YERTQ576.js} +4 -4
  219. package/dist/{chunk-GNK7RTO4.js → chunk-YF4DIQJR.js} +4 -4
  220. package/dist/{chunk-7XO74NDR.js → chunk-YHLKL4R5.js} +3 -3
  221. package/dist/{chunk-E6KUWZ5W.js → chunk-YHSY6CVM.js} +4 -4
  222. package/dist/{chunk-RYH3JFCL.js → chunk-YJGZ3AOW.js} +2 -2
  223. package/dist/{chunk-5DTMIKDX.js → chunk-YKK25QM4.js} +4 -4
  224. package/dist/{chunk-3WC2TA6C.js → chunk-YMBJHKTY.js} +3 -3
  225. package/dist/{chunk-TLKRYDH3.js → chunk-YTFU2B5K.js} +2 -2
  226. package/dist/{chunk-AH2L44TR.js → chunk-YUIITZCO.js} +3 -3
  227. package/dist/{chunk-XHEG2BG6.js → chunk-Z3VCVPYX.js} +1 -1
  228. package/dist/{chunk-MF6XGFHB.js → chunk-ZB4WVG7Q.js} +7 -3
  229. package/dist/{chunk-YCTBPRV4.js → chunk-ZCB5MLPW.js} +3 -3
  230. package/dist/{chunk-DP5CXMZW.js → chunk-ZDQ2EWWH.js} +32 -28
  231. package/dist/{chunk-FG2VET62.js → chunk-ZG46HLGN.js} +108 -81
  232. package/dist/chunk-ZGL2P56Z.js +11 -0
  233. package/dist/{chunk-6USMWXB3.js → chunk-ZIAPNZ6R.js} +4 -4
  234. package/dist/{chunk-Q7GDGSTK.js → chunk-ZLIVUVIV.js} +28 -16
  235. package/dist/{chunk-IRCLNPLJ.js → chunk-ZMCTTTR2.js} +4 -4
  236. package/dist/{chunk-STRN4XOX.js → chunk-ZYJZ624V.js} +5 -5
  237. package/dist/cli/index.js +2 -2
  238. package/dist/{core-32KM4AJG.js → core-2DRDBSL7.js} +2 -1
  239. package/dist/{core-OZLK2EJW.js → core-2VAPYQDA.js} +2 -1
  240. package/dist/{core-STATMGC7.js → core-3JGHUUZZ.js} +2 -1
  241. package/dist/{core-6N5ONDKG.js → core-3KMBTZ32.js} +3 -1
  242. package/dist/{core-J5DSGZZR.js → core-4HEB3CRT.js} +2 -1
  243. package/dist/{core-2JHH5LLH.js → core-4WT74WGL.js} +3 -1
  244. package/dist/{core-JFORSZQS.js → core-4ZUNKYYC.js} +2 -1
  245. package/dist/{core-RYEENVFZ.js → core-5VCTJDQM.js} +2 -1
  246. package/dist/{core-FRVHGKYW.js → core-AJANHLTB.js} +2 -1
  247. package/dist/{core-7II27MGX.js → core-AL3TDBHQ.js} +5 -1
  248. package/dist/{core-AAC2ESXF.js → core-ATBNPTR5.js} +2 -1
  249. package/dist/{core-REYW2XB3.js → core-BIEUVBZK.js} +3 -1
  250. package/dist/{core-COGECGZY.js → core-C2CCLPE5.js} +2 -1
  251. package/dist/{core-XHSGRJDP.js → core-C3VC6YEV.js} +3 -1
  252. package/dist/{core-V2RMMBMO.js → core-DCWAUTD4.js} +2 -1
  253. package/dist/{core-X4SPCV6G.js → core-GYDBZC7Q.js} +3 -1
  254. package/dist/{core-255NAAUA.js → core-H3RRJPQK.js} +2 -1
  255. package/dist/{core-BTKBKGCU.js → core-HAMHEP3M.js} +3 -1
  256. package/dist/{core-CELQJZJB.js → core-HRBOWCHO.js} +2 -1
  257. package/dist/{core-WU6DBIAM.js → core-IHG5XK6Q.js} +2 -1
  258. package/dist/{core-L4EGZ73S.js → core-JNA7L23P.js} +3 -1
  259. package/dist/{core-QYAXEGWD.js → core-JTHVZEC4.js} +2 -1
  260. package/dist/{core-YTTTVHUH.js → core-JXCXTDYK.js} +3 -1
  261. package/dist/{core-TBQAFBDU.js → core-LL2O5PBD.js} +3 -1
  262. package/dist/{core-HRHUGQNB.js → core-NNHCWP3B.js} +2 -1
  263. package/dist/{core-FLCLKSGA.js → core-OM3DGO6B.js} +2 -1
  264. package/dist/{core-GCYDQRFM.js → core-QH3H6ZPI.js} +2 -1
  265. package/dist/{core-YVWLKGAN.js → core-QKDNA6KJ.js} +2 -1
  266. package/dist/{core-W4NG6WON.js → core-R6OE3ORL.js} +2 -1
  267. package/dist/{core-NARJSEGI.js → core-RZI7LRK3.js} +5 -1
  268. package/dist/{core-6GE3EMCB.js → core-SXBMOZ3W.js} +2 -1
  269. package/dist/{core-GETUMW6I.js → core-TXADFQ3I.js} +3 -1
  270. package/dist/{core-SUFLQLWC.js → core-UOB4JKCT.js} +2 -1
  271. package/dist/{core-56KTQ7DK.js → core-WIV43MFA.js} +2 -1
  272. package/dist/{core-W3XIUTU7.js → core-XDPELH2B.js} +4 -1
  273. package/dist/{core-F7ASDBXB.js → core-YKHQUOAW.js} +2 -1
  274. package/dist/{core-QLJQOZGJ.js → core-ZXGKAECT.js} +4 -1
  275. package/dist/{dataTable-OI4CVMFJ.js → dataTable-JBVSQNJX.js} +3 -2
  276. package/dist/{engine-3SQQ2S5U.js → engine-QUEIPS7M.js} +44 -18
  277. package/dist/fixtures.js +2 -1
  278. package/dist/fonts.js +4 -4
  279. package/dist/index.js +21 -20
  280. package/dist/{main-TWTT3Q2R.js → main-V264O3WR.js} +8 -7
  281. package/dist/mcp/server.js +14 -13
  282. package/dist/react/bar.js +5 -1
  283. package/dist/react/bartable.js +3 -1
  284. package/dist/react/box.js +3 -1
  285. package/dist/react/bullet.js +4 -1
  286. package/dist/react/butterfly.js +3 -1
  287. package/dist/react/choropleth.js +3 -1
  288. package/dist/react/cohort.js +3 -1
  289. package/dist/react/column.js +4 -1
  290. package/dist/react/combo.js +4 -1
  291. package/dist/react/creative.js +3 -1
  292. package/dist/react/diagram.js +3 -1
  293. package/dist/react/dimswitch.js +2 -1
  294. package/dist/react/dot.js +6 -1
  295. package/dist/react/export.js +19 -18
  296. package/dist/react/funnel.js +3 -1
  297. package/dist/react/gantt.js +3 -1
  298. package/dist/react/grid.js +5 -1
  299. package/dist/react/heatmap.js +3 -1
  300. package/dist/react/histogram.js +4 -1
  301. package/dist/react/index.js +86 -84
  302. package/dist/react/kpi.js +3 -1
  303. package/dist/react/likert.js +5 -1
  304. package/dist/react/line.js +3 -1
  305. package/dist/react/mekko.js +4 -1
  306. package/dist/react/pareto.js +3 -1
  307. package/dist/react/pie.js +3 -1
  308. package/dist/react/prepare.js +24 -22
  309. package/dist/react/pvm.js +4 -1
  310. package/dist/react/pyramid.js +3 -1
  311. package/dist/react/sankey.js +3 -1
  312. package/dist/react/scatter.js +3 -1
  313. package/dist/react/slope.js +4 -1
  314. package/dist/react/sparkline.js +3 -1
  315. package/dist/react/spec.js +12 -10
  316. package/dist/react/status.js +3 -1
  317. package/dist/react/story.js +4 -3
  318. package/dist/react/table.js +2 -1
  319. package/dist/react/theme.js +4 -3
  320. package/dist/react/tilemap.js +3 -1
  321. package/dist/react/treemap.js +3 -1
  322. package/dist/react/variance.js +4 -1
  323. package/dist/react/waffle.js +3 -1
  324. package/dist/react/waterfall.js +4 -1
  325. package/dist/{resvg-ZYEZTSUO.js → resvg-M5HJ3ME3.js} +1 -1
  326. package/dist/{rowsModule-BULW5KS2.js → rowsModule-6UL4SSUC.js} +1 -1
  327. package/dist/{schema-D3ELHESU.js → schema-3FSG2YXY.js} +1 -1
  328. package/dist/{schema-PBMYZKBK.js → schema-5PQPGEZQ.js} +1 -1
  329. package/dist/{schema-SUDJBIHX.js → schema-6LUORZNN.js} +1 -1
  330. package/dist/{schema-LGYHJPXU.js → schema-6MDHX2E7.js} +1 -1
  331. package/dist/{schema-4HGZZNUL.js → schema-7HXHGBUN.js} +1 -1
  332. package/dist/{schema-5SVPR3EU.js → schema-ACOD4XKI.js} +1 -1
  333. package/dist/{schema-AM2KS6ZC.js → schema-B3I7XBP3.js} +1 -1
  334. package/dist/{schema-4YIYGGOJ.js → schema-CCOTGURZ.js} +1 -1
  335. package/dist/{schema-GYVYJEL3.js → schema-E5O7M5KM.js} +1 -1
  336. package/dist/{schema-PAKZIYQF.js → schema-EWATAK6Z.js} +1 -1
  337. package/dist/{schema-NNNG7CWG.js → schema-FEBMLOZG.js} +1 -1
  338. package/dist/{schema-GYTWCCNA.js → schema-FL57LIU2.js} +1 -1
  339. package/dist/{schema-NI5B642U.js → schema-FTRAVEX3.js} +2 -1
  340. package/dist/{schema-FBIEOKO2.js → schema-GSKCG2WP.js} +1 -1
  341. package/dist/{schema-FPDLOIA6.js → schema-HVDY6QXK.js} +1 -1
  342. package/dist/{schema-XKPUXAVB.js → schema-I267TVQ4.js} +1 -1
  343. package/dist/{schema-IYLRZNFB.js → schema-IG2WGTQO.js} +1 -1
  344. package/dist/{schema-YCKUQ3FF.js → schema-ITZQDKSE.js} +1 -1
  345. package/dist/{schema-C25ECGJL.js → schema-LCOGZNQF.js} +1 -1
  346. package/dist/{schema-A4U4RDKJ.js → schema-MC3CQNPR.js} +1 -1
  347. package/dist/{schema-FQWENOJY.js → schema-MP2QNFCN.js} +1 -1
  348. package/dist/{schema-CBLNGK2F.js → schema-NYCMLGOW.js} +1 -1
  349. package/dist/{schema-GTLGAPCU.js → schema-OML7XS7J.js} +1 -1
  350. package/dist/{schema-IYBZPCM4.js → schema-QAAVXXYR.js} +1 -1
  351. package/dist/{schema-3LRC5TOZ.js → schema-QPYFXSEQ.js} +1 -1
  352. package/dist/{schema-WDKBCN3V.js → schema-RJBIXN5U.js} +1 -1
  353. package/dist/{schema-P2JYSV32.js → schema-RW47HWVO.js} +1 -1
  354. package/dist/{schema-TRPPZCIR.js → schema-S7Q4YR7R.js} +1 -1
  355. package/dist/{schema-YVBUY7NH.js → schema-SWVWMZY3.js} +1 -1
  356. package/dist/{schema-LX4EXDTI.js → schema-T3RSFE2V.js} +1 -1
  357. package/dist/{schema-KPZVLE6A.js → schema-T4CGWZLB.js} +4 -2
  358. package/dist/{schema-VH4AW62Z.js → schema-TXYKZ5NT.js} +1 -1
  359. package/dist/{schema-5OLQ54J5.js → schema-U6CZI6XG.js} +1 -1
  360. package/dist/{schema-SQ2GYLMI.js → schema-XE4WY64H.js} +1 -1
  361. package/dist/{schema-HAMPGUH3.js → schema-YDWVXQPK.js} +1 -1
  362. package/dist/{schema-KBV2JB2A.js → schema-YPGXVI22.js} +1 -1
  363. package/dist/{schema-2ACHQTR3.js → schema-ZMOIP2BK.js} +1 -1
  364. package/dist/{specValidation-5J6DDCHF.js → specValidation-6LVTTHZI.js} +2 -1
  365. package/dist/theme.js +3 -3
  366. package/dist/{themeShapeRules-MOUDTDUB.js → themeShapeRules-NDEXKFC7.js} +1 -1
  367. package/dist/types/core/annotate.d.ts +9 -0
  368. package/dist/types/core/annotateFields.d.ts +36 -1
  369. package/dist/types/core/annotateTargets.d.ts +2 -0
  370. package/dist/types/core/charts/bar/layout.d.ts +1 -1
  371. package/dist/types/core/charts/column/model.d.ts +3 -1
  372. package/dist/types/core/charts/grid/metricStack.d.ts +35 -3
  373. package/dist/types/core/charts/grid/metricStackSchema.d.ts +8 -0
  374. package/dist/types/core/charts/grid/schema.d.ts +5 -0
  375. package/dist/types/core/charts/scatter/layout.d.ts +18 -1
  376. package/dist/types/core/charts/scatter/marks.d.ts +94 -0
  377. package/dist/types/core/charts/scatter/zones.d.ts +52 -0
  378. package/dist/types/core/fontMetrics/index.d.ts +3 -1
  379. package/dist/types/core/fontMetrics/injected.d.ts +1 -0
  380. package/dist/types/core/frame.d.ts +7 -2
  381. package/dist/types/core/label/occupied.d.ts +1 -1
  382. package/dist/types/core/registry.d.ts +2 -0
  383. package/dist/types/core/request.d.ts +7 -0
  384. package/dist/types/core/sizing.d.ts +9 -0
  385. package/dist/types/core/themeGeometry.d.ts +184 -0
  386. package/dist/types/core/types/data.d.ts +2 -0
  387. package/dist/types/core/types/options.d.ts +10 -0
  388. package/dist/types/core/types/scene.d.ts +11 -0
  389. package/dist/types/core/types/theme.d.ts +26 -2
  390. package/dist/types/react/hover/engine.d.ts +5 -1
  391. package/dist/types/react/hover/labelCard.d.ts +33 -2
  392. package/dist/types/react/hover/placement.d.ts +11 -0
  393. package/dist/types/react/prepare.d.ts +2 -1
  394. package/dist/types/react/useHover.d.ts +1 -0
  395. package/dist/types/theme.d.ts +1 -1
  396. package/dist/validate.js +8 -6
  397. package/docs/manual.md +4 -2
  398. package/docs/reference/bar.md +2 -2
  399. package/docs/reference/bullet.md +1 -1
  400. package/docs/reference/butterfly.md +1 -1
  401. package/docs/reference/column.md +2 -2
  402. package/docs/reference/combo.md +2 -2
  403. package/docs/reference/dot.md +2 -2
  404. package/docs/reference/fixtures.md +3 -0
  405. package/docs/reference/grid.md +25 -12
  406. package/docs/reference/heatmap.md +1 -1
  407. package/docs/reference/line.md +2 -2
  408. package/docs/reference/mekko.md +2 -2
  409. package/docs/reference/options.md +6 -1
  410. package/docs/reference/pvm.md +1 -1
  411. package/docs/reference/react.md +4 -2
  412. package/docs/reference/scatter.md +1 -1
  413. package/docs/reference/slope.md +2 -2
  414. package/docs/reference/sparkline.md +1 -0
  415. package/docs/reference/table.md +1 -1
  416. package/docs/reference/theme.md +5 -1
  417. package/docs/reference/variance.md +1 -1
  418. package/docs/reference/waterfall.md +1 -1
  419. package/package.json +1 -1
  420. package/dist/chunk-6AIHN5S6.js +0 -89
  421. package/dist/chunk-CDZHNLO6.js +0 -42
  422. package/dist/chunk-QPWRHDLZ.js +0 -17
@@ -1,15 +1,27 @@
1
1
  import {
2
2
  SIZE_TOLERANCE,
3
3
  heightOmitted
4
- } from "./chunk-NF74JTTK.js";
4
+ } from "./chunk-PM5D5KYQ.js";
5
5
  import {
6
6
  zeroLifts
7
- } from "./chunk-FYFXOLWI.js";
7
+ } from "./chunk-5OUURZ2T.js";
8
8
  import {
9
9
  TARGET_SIZE
10
10
  } from "./chunk-RJICOOB3.js";
11
11
 
12
12
  // src/core/charts/tableFit.ts
13
+ var reportWidthFloor;
14
+ function withTableWidthHint(run) {
15
+ let previous = reportWidthFloor, width;
16
+ reportWidthFloor = (floor) => {
17
+ width = Math.min(width ?? 1 / 0, Math.ceil(floor));
18
+ };
19
+ try {
20
+ return { value: run(), width };
21
+ } finally {
22
+ reportWidthFloor = previous;
23
+ }
24
+ }
13
25
  function liftOrFallback(layoutAs, costs, lifted = !1) {
14
26
  let before = zeroLifts.count, full = layoutAs("full");
15
27
  if (!lifted && zeroLifts.count === before) return full;
@@ -61,6 +73,8 @@ function checkedTightAdvice(geometry, nextAt) {
61
73
  }
62
74
 
63
75
  export {
76
+ reportWidthFloor,
77
+ withTableWidthHint,
64
78
  liftOrFallback,
65
79
  missesSize,
66
80
  tightSpacingWarning,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  crossesLinearBreak
3
- } from "./chunk-NF74JTTK.js";
3
+ } from "./chunk-PM5D5KYQ.js";
4
4
 
5
5
  // src/core/axisBreakOrder.ts
6
6
  function paintedBarLength(scale, start, end) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  seatsPastBlockers,
3
3
  stackSegmentCandidates
4
- } from "./chunk-VRG7GG7T.js";
4
+ } from "./chunk-DCFK2BUL.js";
5
5
  import {
6
6
  cellFields,
7
7
  normalizeCategorySeries
@@ -10,10 +10,10 @@ import {
10
10
  hasLabelPosition,
11
11
  positionBarLabel,
12
12
  refuseLabelPosition
13
- } from "./chunk-LCTLW4ZW.js";
13
+ } from "./chunk-MYDVNJAA.js";
14
14
  import {
15
15
  roundWholes
16
- } from "./chunk-7XO74NDR.js";
16
+ } from "./chunk-YHLKL4R5.js";
17
17
  import {
18
18
  compositionBasis,
19
19
  mixedSignsWarning,
@@ -22,26 +22,26 @@ import {
22
22
  sk,
23
23
  stackParts,
24
24
  withoutShareMean
25
- } from "./chunk-RWVM4EVE.js";
25
+ } from "./chunk-MTJZT6F2.js";
26
26
  import {
27
27
  segmentTooShort
28
- } from "./chunk-6BAUUBP2.js";
28
+ } from "./chunk-XBASXPUJ.js";
29
29
  import {
30
30
  valueLineExtent
31
- } from "./chunk-QPWRHDLZ.js";
31
+ } from "./chunk-XKGZWQF7.js";
32
32
  import {
33
33
  isIncomplete,
34
34
  warnIncompleteComposition,
35
35
  warnShareRoundingDrift
36
- } from "./chunk-DEJKDFS3.js";
36
+ } from "./chunk-4SK4IGMK.js";
37
37
  import {
38
38
  runAnnotatePass
39
- } from "./chunk-ZXT3OS6U.js";
39
+ } from "./chunk-KWKJYMXJ.js";
40
40
  import {
41
41
  breakUnsupported,
42
42
  chartPalette,
43
43
  chartTheme
44
- } from "./chunk-BJS6TLLE.js";
44
+ } from "./chunk-YE6B7P6Q.js";
45
45
  import {
46
46
  mekkoAmount,
47
47
  mekkoStackingMode,
@@ -50,13 +50,13 @@ import {
50
50
  restLabel,
51
51
  restSum,
52
52
  topNCut
53
- } from "./chunk-I5LFCHNQ.js";
53
+ } from "./chunk-HCAPGTEA.js";
54
54
  import {
55
55
  noTotal
56
56
  } from "./chunk-KZKWDFIS.js";
57
57
  import {
58
58
  structureCount
59
- } from "./chunk-YDYZWCUQ.js";
59
+ } from "./chunk-IHZNRJEV.js";
60
60
  import {
61
61
  PLOT_FLOOR_PX,
62
62
  PLOT_FLOOR_RECT,
@@ -80,7 +80,7 @@ import {
80
80
  tickFormatter,
81
81
  valueAxisTitleBand,
82
82
  valueAxisTitleRequest
83
- } from "./chunk-NF74JTTK.js";
83
+ } from "./chunk-PM5D5KYQ.js";
84
84
  import {
85
85
  prepareFractionData
86
86
  } from "./chunk-QXHFELIA.js";
@@ -105,11 +105,11 @@ import {
105
105
  solveLabels,
106
106
  unitPrinted,
107
107
  withAuthoredFootnotes
108
- } from "./chunk-Q7GDGSTK.js";
108
+ } from "./chunk-ZLIVUVIV.js";
109
109
  import {
110
110
  disclosureNote,
111
111
  disclosuresShown
112
- } from "./chunk-ZCOGCNT7.js";
112
+ } from "./chunk-I3UJHKCS.js";
113
113
  import {
114
114
  emptyIdRecord
115
115
  } from "./chunk-LINZPU5D.js";
@@ -126,7 +126,7 @@ import {
126
126
  roundedNumber,
127
127
  specUnitKind,
128
128
  withUnit
129
- } from "./chunk-3JG764MI.js";
129
+ } from "./chunk-BHO5H4AF.js";
130
130
  import {
131
131
  authoredDecimals,
132
132
  chartStrings,
@@ -136,7 +136,7 @@ import {
136
136
  printedShare,
137
137
  shareDecimals,
138
138
  shareSetFormatter
139
- } from "./chunk-FYFXOLWI.js";
139
+ } from "./chunk-5OUURZ2T.js";
140
140
  import {
141
141
  canvasMargin,
142
142
  cleanFloat,
@@ -166,7 +166,7 @@ import {
166
166
  textScaleOf,
167
167
  typeWidthClass,
168
168
  withSegmentSeams
169
- } from "./chunk-CQ6WHTRL.js";
169
+ } from "./chunk-4NGKSJBX.js";
170
170
  import {
171
171
  DEFAULT_TARGET,
172
172
  NormalizeError,
@@ -179,7 +179,7 @@ import {
179
179
  } from "./chunk-RJICOOB3.js";
180
180
  import {
181
181
  defaultMeasurer
182
- } from "./chunk-UIHGGWES.js";
182
+ } from "./chunk-77LQEREO.js";
183
183
  import {
184
184
  maxOf,
185
185
  minOf,
@@ -4,19 +4,19 @@ import {
4
4
  sharedKeys2,
5
5
  sharedKeys5,
6
6
  sharedKeys9
7
- } from "./chunk-7BQK2UDV.js";
7
+ } from "./chunk-5LUHGXXE.js";
8
8
  import {
9
9
  optionKeyCheck
10
10
  } from "./chunk-Z6H5ED2I.js";
11
11
  import {
12
12
  createChartComponent
13
- } from "./chunk-YHIBABKS.js";
13
+ } from "./chunk-35JGEMCK.js";
14
14
  import {
15
15
  lineCore
16
- } from "./chunk-LVC2YJGV.js";
16
+ } from "./chunk-R55LS2W2.js";
17
17
  import {
18
18
  registeredType
19
- } from "./chunk-TDVNIVU4.js";
19
+ } from "./chunk-D2I2BUR6.js";
20
20
 
21
21
  // src/react/charts/line.ts
22
22
  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, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: { show: 0, min: 0, max: 0, tickStep: 0, includeZero: 0, percent: 0, log: 0, reverse: 0, gridlines: 0 }, categoryAxis: { crossesBetween: 0, dateTicks: 0 }, scaleGroup: { y: 0, id: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, rounding: 0, interactive: 0, annotations: sharedKeys9, trend: { label: 0 }, window: { last: 0, decimate: 0, maxPoints: 0 }, viewDomain: { x: 0 }, xAxis: { type: 0, zone: 0, min: 0, max: 0, tickStep: { unit: 0, step: 0 }, ticks: { "[]": { value: 0, label: 0 } }, format: 0, title: 0, unit: 0, maxTicks: 0 }, anomaly: { method: 0, k: 0, baseline: 0, label: 0, low: 0, high: 0 }, events: sharedKeys1, axisTitles: { primary: 0 }, endLabelPlacement: 0, variant: 0, bump: { direction: 0, focus: 0 }, seriesLabels: { only: 0 }, pointLabelSide: 0, valueLabels: 0, latestPoint: { series: 0, marker: 0 }, emphasis: 0, othersShade: 0, highlightMode: 0, scenarioStyle: { "*": { width: 0, ink: 0 } }, rebase100: { at: 0 }, ratioTier: sharedKeys2, interpolate: 0, phases: { "[]": { id: 0, label: 0, from: 0, to: 0, tone: 0, rank: 0 } }, gapFill: { between: 0, positiveTone: 0, negativeTone: 0 }, fan: { of: 0, bands: { "[]": { low: 0, high: 0, label: 0 } }, showBounds: 0 }, targets: { "[]": { at: 0, value: 0, label: 0, seriesId: 0 } }, methodNote: 0, referenceBands: { "[]": { id: 0, value: 0, low: 0, high: 0, label: 0, description: 0 } } }, labels: ["category", "series", "point", "restSeries", "percentIndicator", "axisTitle"] }), LineChart = createChartComponent(registeredType(lineCore), checkOptionKeys);
@@ -3,19 +3,19 @@ import {
3
3
  sharedKeys10,
4
4
  sharedKeys5,
5
5
  sharedKeys9
6
- } from "./chunk-7BQK2UDV.js";
6
+ } from "./chunk-5LUHGXXE.js";
7
7
  import {
8
8
  optionKeyCheck
9
9
  } from "./chunk-Z6H5ED2I.js";
10
10
  import {
11
11
  createChartComponent
12
- } from "./chunk-YHIBABKS.js";
12
+ } from "./chunk-35JGEMCK.js";
13
13
  import {
14
14
  mekkoCore
15
- } from "./chunk-3ADWX4BM.js";
15
+ } from "./chunk-SB2DHY53.js";
16
16
  import {
17
17
  registeredType
18
- } from "./chunk-TDVNIVU4.js";
18
+ } from "./chunk-D2I2BUR6.js";
19
19
 
20
20
  // src/react/charts/mekko.ts
21
21
  var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 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, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPosition: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: sharedKeys0, scaleGroup: { y: 0, id: 0 }, sort: { categories: 0, segments: 0 }, topN: { n: 0, rest: 0, restLabel: 0, showRestCount: 0, threshold: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, rounding: 0, interactive: 0, annotations: sharedKeys9, axisTitles: { primary: 0 }, variant: 0, widthSeriesId: 0, ridge: 0 }, labels: ["category", "segment", "total", "axisTitle"] }), MekkoChart = createChartComponent(registeredType(mekkoCore), checkOptionKeys);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  columnOverridesOption
3
- } from "./chunk-B7UWG6XJ.js";
3
+ } from "./chunk-6PR23T2O.js";
4
4
  import {
5
5
  addDuplicateIdIssues,
6
6
  baseOptionsSchema,
7
7
  idSchema,
8
8
  primaryAxisTitleSchema,
9
9
  refusedBaseOptions
10
- } from "./chunk-JOX252XQ.js";
10
+ } from "./chunk-EPS7N5ZS.js";
11
11
 
12
12
  // src/core/charts/box/schema.ts
13
13
  import * as z from "zod";
@@ -2,27 +2,27 @@ import {
2
2
  columnOrderOption,
3
3
  columnOverridesOption,
4
4
  columnVisibilityOption
5
- } from "./chunk-B7UWG6XJ.js";
5
+ } from "./chunk-6PR23T2O.js";
6
6
  import {
7
7
  isMetricStackData,
8
8
  normalizeMetricStack
9
- } from "./chunk-LPLRXEOT.js";
9
+ } from "./chunk-ST2IQX7U.js";
10
10
  import {
11
11
  addDuplicateIdIssues,
12
12
  baseOptionsSchema,
13
13
  idRecord,
14
14
  refusedBaseOptions,
15
15
  retiredKey
16
- } from "./chunk-JOX252XQ.js";
16
+ } from "./chunk-EPS7N5ZS.js";
17
17
  import {
18
18
  normalizeGridData
19
- } from "./chunk-3HKL6KJ6.js";
19
+ } from "./chunk-WKBW4JFU.js";
20
20
  import {
21
21
  ownedDocumentCopy
22
22
  } from "./chunk-U52PNFPX.js";
23
23
  import {
24
24
  getChartSchemas
25
- } from "./chunk-NF74JTTK.js";
25
+ } from "./chunk-PM5D5KYQ.js";
26
26
  import {
27
27
  NormalizeError
28
28
  } from "./chunk-RJICOOB3.js";
@@ -42,21 +42,24 @@ var id = z.string().min(1), range = z.strictObject({
42
42
  measures: z.array(z.strictObject({
43
43
  id: id.describe("Unique source measure id."),
44
44
  label: id.describe("Source measure label; also the stacked-column legend label."),
45
- values: z.array(z.number().nonnegative().finite().nullable()).min(1).describe("Source counts, one per category. Null means unavailable.")
46
- })).min(1).describe("Raw source counts stored once. Rates and readouts are computed from these counts."),
45
+ values: z.array(z.number().nonnegative().finite().nullable()).min(1).describe("Source values, one per category: counts, or amounts such as spend. Null means unavailable.")
46
+ })).min(1).describe("Raw source values stored once. Rates, amounts per unit and readouts are computed from these values."),
47
47
  panels: z.array(z.strictObject({
48
48
  id: id.describe("Unique panel id; state scopes use this id."),
49
49
  type: z.enum(["column", "line"]).describe("Columns, stacked columns for a multi-measure sum, or a line with points."),
50
- title: id.describe("Measure name in the shared readout gutter."),
51
- unit: id.describe("Measure unit in the readout gutter."),
50
+ title: id.describe("Measure name in the shared readout gutter. The hover card names each value with it when the unit is a sign or code."),
51
+ unit: id.describe("Measure unit in the readout gutter. A unit in words names each value on the hover card ('Cases per month: 800'); a sign or code such as '$' or 'EUR k' stays on the number."),
52
52
  measure: z.union([
53
53
  z.strictObject({ sum: fields.describe("Measures added for each category. Columns stack the inputs in order.") }),
54
- z.strictObject({ numerator: fields.describe("Measures summed for the rate numerator."), denominator: id.describe("Source measure for the rate denominator; the result is a percentage. The stack is a conversion chain, so a rate is always a share of a count; draw a cost per unit or another currency ratio as kpi cards or grid column or line panels.") })
55
- ]).describe("Engine-computed panel measure."),
56
- readout: z.union([z.literal("change"), z.strictObject({ base: id.describe("Base measure for the remaining-per-100 chain.") })]).describe("change compares grid windows; base computes a volume-weighted mature rate and remaining-per-100 span."),
54
+ z.strictObject({ numerator: fields.describe("Measures summed for the rate numerator."), denominator: id.describe("Source measure for the rate denominator; the result is a percentage, a share of a count. For an amount per unit, such as cost per order, use ratio and per.") }),
55
+ z.strictObject({ ratio: fields.describe("Measures added for the amount, such as spend."), per: id.describe("Source measure of the units, such as orders. Each category's value is the sum of ratio divided by per, with no factor 100; it is n/a when an input is null or per is 0. A window divides the sum of ratio over its categories by the sum of per, never the mean of the category values: spend 100 and 300 on 10 and 20 orders is 13.33 per order. The change readout is the percent change of the two window values. One mark per category.") })
56
+ ]).describe("Engine-computed panel measure: a sum, a rate in percent, or an amount per unit."),
57
+ readout: z.union([z.literal("change"), z.strictObject({ base: id.describe("Base measure for the remaining-per-100 chain.") })]).describe("change compares grid windows; base computes a volume-weighted mature rate and remaining-per-100 span, for rate panels only."),
57
58
  emphasis: z.boolean().optional().describe("Use the theme accent. At most one panel may be emphasised."),
58
- divisor: z.number().positive().optional().describe("Display divisor for sum marks and their change span, for example 1000. The headline percent is unitless."),
59
- decimals: z.number().int().min(0).max(6).optional().describe("Decimal places of the marks and the change span. A panel with divisor and without decimals prints 0 for counts and 1 for rates; a panel with neither prints by the default number rule.")
59
+ divisor: z.number().positive().optional().describe("Display divisor for sum or per-unit marks and their change span, for example 1000. The headline percent is unitless."),
60
+ decimals: z.number().int().min(0).max(6).optional().describe("Decimal places of the marks and the change span. A panel with divisor and without decimals prints 0 for sums and amounts per unit and 1 for rates; a panel with neither prints by the default number rule."),
61
+ keyTitle: id.optional().describe("Caption over the key of a stacked panel, such as 'By plan', in muted small text. A panel without a key prints none."),
62
+ segmentShares: z.boolean().optional().describe("true prints each segment's share of its column, in whole percent that add up to 100, inside the segment of the base and the focus columns of a stacked panel. It applies under options.stack.variant 'focus'; the focus column prints the shares of the key. A share that has no room in its segment is left out; the key still carries it. Without the focus look, or on a panel that stacks no measures, it does nothing and warns option-ignored. Absent: no segment labels.")
60
63
  })).min(2).max(5).describe("Two to five panels in top-down reading order."),
61
64
  states: z.strictObject({
62
65
  maturing: z.strictObject({
@@ -82,6 +85,7 @@ var id = z.string().min(1), range = z.strictObject({
82
85
  ctx.addIssue({ code: "custom", path: error.segments?.slice(1), message: error.message });
83
86
  }
84
87
  }).describe("Metric stack: shared categories and source measures, top-down panels with computed readouts. Use options.stack."), metricStackOptionsSchema = z.strictObject({
88
+ variant: z.enum(["focus"]).optional().describe("'focus': the value-first look. The compare window is the focus: each panel prints its focus value first, in the theme role type.display, then the change and the base value ('+86% from $272'), and a stacked panel keys each measure with its share of the focus value. The focus categories take the accent, the base window a dark neutral and the other categories a light neutral; a dashed line marks the base level in each panel. In React, hover and keyboard focus move the focus to one category. Needs data.windows and readout 'change' in every panel; a stack with readout { base } panels ignores it and warns option-ignored. Absent: today's look."),
85
89
  heights: z.array(z.number().positive()).min(2).max(5).optional().describe("Plot heights in layout pixels, one per panel in top-down order. Use rows for proportional heights instead."),
86
90
  columnVisibility: columnVisibilityOption("grid").describe("False leaves a seat of the one gutter track out, with its height: unit, headline or span. The panel name stays. Hiding headline and span also drops the method line. The values stay in the marks."),
87
91
  columnOverrides: columnOverridesOption("grid", ["width", "align"]),
@@ -8,7 +8,7 @@ import {
8
8
  idSchema,
9
9
  refusedBaseOptions,
10
10
  valueKindSchema
11
- } from "./chunk-JOX252XQ.js";
11
+ } from "./chunk-EPS7N5ZS.js";
12
12
 
13
13
  // src/core/charts/waffle/schema.ts
14
14
  import * as z from "zod";
@@ -3,35 +3,35 @@ import {
3
3
  } from "./chunk-M4YLED7M.js";
4
4
  import {
5
5
  layoutButterfly
6
- } from "./chunk-ID65JMYY.js";
6
+ } from "./chunk-FXKGNJYB.js";
7
7
  import {
8
8
  structureCount
9
- } from "./chunk-YDYZWCUQ.js";
9
+ } from "./chunk-IHZNRJEV.js";
10
10
  import {
11
11
  chartSizing
12
- } from "./chunk-NF74JTTK.js";
12
+ } from "./chunk-PM5D5KYQ.js";
13
13
  import {
14
14
  HOST_CLAIMS,
15
15
  authoredNotes,
16
16
  claimId,
17
17
  withAuthoredFootnotes,
18
18
  withUnprintedClaims
19
- } from "./chunk-Q7GDGSTK.js";
19
+ } from "./chunk-ZLIVUVIV.js";
20
20
  import {
21
21
  disclosureNote,
22
22
  keepShownNotes
23
- } from "./chunk-ZCOGCNT7.js";
23
+ } from "./chunk-I3UJHKCS.js";
24
24
  import {
25
25
  emptyIdRecord
26
26
  } from "./chunk-LINZPU5D.js";
27
27
  import {
28
28
  formatterFromExample,
29
29
  ruleFormatter
30
- } from "./chunk-3JG764MI.js";
30
+ } from "./chunk-BHO5H4AF.js";
31
31
  import {
32
32
  chartStrings,
33
33
  formatAutomaticPercent
34
- } from "./chunk-FYFXOLWI.js";
34
+ } from "./chunk-5OUURZ2T.js";
35
35
  import {
36
36
  isPctCell
37
37
  } from "./chunk-O3VN6BTL.js";
@@ -40,7 +40,7 @@ import {
40
40
  resolveTheme,
41
41
  strokeToken,
42
42
  themeForWidth
43
- } from "./chunk-CQ6WHTRL.js";
43
+ } from "./chunk-4NGKSJBX.js";
44
44
  import {
45
45
  NormalizeError,
46
46
  TARGET_SIZE,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  sharedKeys10,
3
3
  sharedKeys5
4
- } from "./chunk-7BQK2UDV.js";
4
+ } from "./chunk-5LUHGXXE.js";
5
5
  import {
6
6
  optionKeyCheck
7
7
  } from "./chunk-Z6H5ED2I.js";
8
8
  import {
9
9
  createChartComponent
10
- } from "./chunk-YHIBABKS.js";
10
+ } from "./chunk-35JGEMCK.js";
11
11
  import {
12
12
  sankeyCore
13
- } from "./chunk-PCITI5ED.js";
13
+ } from "./chunk-E46KFVP5.js";
14
14
  import {
15
15
  registeredType
16
- } from "./chunk-TDVNIVU4.js";
16
+ } from "./chunk-D2I2BUR6.js";
17
17
 
18
18
  // src/react/charts/sankey.ts
19
19
  var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, scaleGroup: { y: 0, id: 0 }, highlight: 0, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, linkColor: 0, order: 0, other: { share: 0, label: 0 }, nodeValue: 0, columnOverrides: { "*": { width: 0 } }, linkValue: 0 } }), SankeyChart = createChartComponent(registeredType(sankeyCore), checkOptionKeys);
@@ -1,3 +1,6 @@
1
+ import {
2
+ sumConsistentShares
3
+ } from "./chunk-YHLKL4R5.js";
1
4
  import {
2
5
  ownedDocumentCopy
3
6
  } from "./chunk-U52PNFPX.js";
@@ -7,17 +10,18 @@ import {
7
10
  formatWithSpec,
8
11
  percentChangeSpec,
9
12
  statisticSet
10
- } from "./chunk-3JG764MI.js";
13
+ } from "./chunk-BHO5H4AF.js";
11
14
  import {
12
15
  NOT_AVAILABLE,
13
16
  formatAutomaticNumber,
14
17
  roundHalfUp
15
- } from "./chunk-FYFXOLWI.js";
18
+ } from "./chunk-5OUURZ2T.js";
16
19
  import {
17
20
  NormalizeError
18
21
  } from "./chunk-RJICOOB3.js";
19
22
 
20
23
  // src/core/charts/grid/metricStack.ts
24
+ var addedMeasures = (measure) => "sum" in measure ? measure.sum : "ratio" in measure ? measure.ratio : measure.numerator;
21
25
  function isMetricStackData(raw) {
22
26
  return raw !== null && typeof raw == "object" && Object.hasOwn(raw, "measures") && Object.hasOwn(raw, "categories");
23
27
  }
@@ -40,7 +44,7 @@ var stackRound = (value, decimals) => value === null ? null : Math.sign(value) *
40
44
  function panelPrint(panel, values, parts, locale) {
41
45
  let divisor = panel.divisor ?? 1;
42
46
  if (panel.decimals !== void 0 || panel.divisor !== void 0) {
43
- let decimals = panel.decimals ?? ("sum" in panel.measure ? 0 : 1), text = (value, suffix = "") => formatAutomaticNumber(value, { automatic: panel.decimals === void 0, decimals, suffix, magnitude: "none", locale });
47
+ let decimals = panel.decimals ?? ("denominator" in panel.measure ? 1 : 0), text = (value, suffix = "") => formatAutomaticNumber(value, { automatic: panel.decimals === void 0, decimals, suffix, magnitude: "none", locale });
44
48
  return {
45
49
  mark: (value) => text(value / divisor),
46
50
  span: (_, suffix) => (value) => {
@@ -49,7 +53,7 @@ function panelPrint(panel, values, parts, locale) {
49
53
  }
50
54
  };
51
55
  }
52
- let rate2 = !("sum" in panel.measure), members = [...values, ...rate2 ? [] : parts.flat()].filter((value) => value !== null), spec = defaultSetSpec(members, locale, rate2 ? void 0 : panel.unit, rate2 ? { kind: "percent" } : {});
56
+ let rate2 = "denominator" in panel.measure, members = [...values, ..."sum" in panel.measure ? parts.flat() : []].filter((value) => value !== null), spec = defaultSetSpec(members, locale, rate2 ? void 0 : panel.unit, rate2 ? { kind: "percent" } : {});
53
57
  return {
54
58
  mark: (value) => formatWithSpec(value, spec),
55
59
  span: (ends, suffix) => {
@@ -61,7 +65,7 @@ function panelPrint(panel, values, parts, locale) {
61
65
  }
62
66
  };
63
67
  }
64
- var add = (values) => values.some((v) => v === null) ? null : values.reduce((a, b) => a + b, 0), rate = (num, den) => num === null || den === null || den === 0 ? null : num / den * 100;
68
+ var add = (values) => values.some((v) => v === null) ? null : values.reduce((a, b) => a + b, 0), rate = (num, den) => num === null || den === null || den === 0 ? null : num / den * 100, perUnit = (amount, units) => amount === null || units === null || units === 0 ? null : amount / units;
65
69
  function normalizeMetricStack(raw) {
66
70
  let data = ownedDocumentCopy(raw), unique = (ids2, field2) => {
67
71
  new Set(ids2).size !== ids2.length && stackError(field2, "Ids must be unique");
@@ -71,13 +75,13 @@ function normalizeMetricStack(raw) {
71
75
  ids.has(id) || stackError("data.panels", `Unknown measure '${id}'`);
72
76
  };
73
77
  for (let measure of data.measures)
74
- (measure.values.length !== data.categories.length || measure.values.some((v) => v !== null && (!Number.isFinite(v) || v < 0))) && stackError("data.measures", `Measure '${measure.id}' needs one non-negative finite count or null per category`);
78
+ (measure.values.length !== data.categories.length || measure.values.some((v) => v !== null && (!Number.isFinite(v) || v < 0))) && stackError("data.measures", `Measure '${measure.id}' needs one non-negative finite value or null per category`);
75
79
  let emphasis = data.panels.flatMap((p, i) => p.emphasis ? [i] : []);
76
80
  emphasis.length > 1 && stackError(`data.panels.${emphasis[1]}.emphasis`, `Only one panel may carry emphasis; panels ${emphasis.map((i) => `'${data.panels[i].id}'`).join(", ")} are emphasised`);
77
81
  for (let panel of data.panels) {
78
82
  panel.type !== "column" && panel.type !== "line" && stackError("data.panels", "Stack panels use column or line");
79
- let fields = "sum" in panel.measure ? panel.measure.sum : panel.measure.numerator;
80
- fields.length === 0 && stackError("data.panels", "A measure expression needs at least one source measure"), unique(fields, "data.panels"), fields.forEach(field), "denominator" in panel.measure && field(panel.measure.denominator), typeof panel.readout == "object" ? (field(panel.readout.base), "denominator" in panel.measure || stackError("data.panels", "A weighted readout needs a rate measure")) : (panel.readout !== "change" || !data.windows) && stackError("data.windows", "A change readout needs base and compare windows"), panel.divisor !== void 0 && (!Number.isFinite(panel.divisor) || panel.divisor <= 0) && stackError("data.panels", "divisor must be positive"), "denominator" in panel.measure && panel.divisor !== void 0 && panel.divisor !== 1 && stackError("data.panels", "Rate panels are percentages; divisor must be 1"), panel.decimals !== void 0 && (!Number.isInteger(panel.decimals) || panel.decimals < 0 || panel.decimals > 6) && stackError("data.panels", "decimals must be an integer from 0 to 6");
83
+ let fields = addedMeasures(panel.measure);
84
+ fields.length === 0 && stackError("data.panels", "A measure expression needs at least one source measure"), unique(fields, "data.panels"), fields.forEach(field), "denominator" in panel.measure && field(panel.measure.denominator), "per" in panel.measure && field(panel.measure.per), typeof panel.readout == "object" ? (field(panel.readout.base), "per" in panel.measure && stackError("data.panels", `Panel '${panel.id}' computes an amount per unit, which reads its change only; use readout: 'change'`), "denominator" in panel.measure || stackError("data.panels", "A weighted readout needs a rate measure")) : (panel.readout !== "change" || !data.windows) && stackError("data.windows", "A change readout needs base and compare windows"), panel.divisor !== void 0 && (!Number.isFinite(panel.divisor) || panel.divisor <= 0) && stackError("data.panels", "divisor must be positive"), "denominator" in panel.measure && panel.divisor !== void 0 && panel.divisor !== 1 && stackError("data.panels", "Rate panels are percentages; divisor must be 1"), panel.decimals !== void 0 && (!Number.isInteger(panel.decimals) || panel.decimals < 0 || panel.decimals > 6) && stackError("data.panels", "decimals must be an integer from 0 to 6");
81
85
  }
82
86
  let validPanels = data.panels.map((p) => p.id).join(", "), panelScope = (scope, contiguous, field2) => {
83
87
  let duplicate = scope.find((id, i) => scope.indexOf(id) !== i);
@@ -125,7 +129,10 @@ function normalizeMetricStack(raw) {
125
129
  }
126
130
  return data;
127
131
  }
128
- function computeMetricStack(data, locale, na = NOT_AVAILABLE) {
132
+ function withCompareWindow(data, window) {
133
+ return { ...data, windows: { ...data.windows, compare: window } };
134
+ }
135
+ function computeMetricStack(data, locale, na = NOT_AVAILABLE, shares = !1) {
129
136
  let grain = metricStackGrain(data), measures = new Map(data.measures.map((m) => [m.id, m])), maturing = data.states?.maturing ? stackRange(data, data.states.maturing) : [], partial = data.categories.flatMap((c, i) => c.partial ? [i] : []), mature = data.categories.map((_, i) => i).filter((i) => !partial.includes(i) && !maturing.includes(i)), windowSum = (ids) => mature.length ? add(mature.flatMap((i) => ids.map((id) => measures.get(id).values[i]))) : null, weightedMembers = data.panels.flatMap((panel) => {
130
137
  if (typeof panel.readout != "object" || panel.divisor !== void 0 || panel.decimals !== void 0) return [];
131
138
  let expr = panel.measure, base = windowSum([panel.readout.base]), denominator = windowSum([expr.denominator]), numerator = windowSum(expr.numerator);
@@ -135,10 +142,10 @@ function computeMetricStack(data, locale, na = NOT_AVAILABLE) {
135
142
  rule: weightedSpec[RULE_SET]
136
143
  };
137
144
  return { panels: data.panels.map((panel) => {
138
- let expr = panel.measure, fields = "sum" in expr ? expr.sum : expr.numerator, parts = fields.map((id) => measures.get(id).values), values = data.categories.map((_, i) => {
139
- let num = add(parts.map((v) => v[i]));
140
- return "sum" in expr ? num : rate(num, measures.get(expr.denominator).values[i]);
141
- }), states = data.categories.map((c, i) => c.partial ? "partial" : maturing.includes(i) && data.states.maturing.panels.includes(panel.id) ? "maturing" : "mature");
145
+ let expr = panel.measure, fields = addedMeasures(expr), sources = fields.map((id) => measures.get(id).values), values = data.categories.map((_, i) => {
146
+ let num = add(sources.map((v) => v[i]));
147
+ return "sum" in expr ? num : "per" in expr ? perUnit(num, measures.get(expr.per).values[i]) : rate(num, measures.get(expr.denominator).values[i]);
148
+ }), parts = "per" in expr ? [] : sources, states = data.categories.map((c, i) => c.partial ? "partial" : maturing.includes(i) && data.states.maturing.panels.includes(panel.id) ? "maturing" : "mature");
142
149
  data.states?.partial?.panels.includes(panel.id) && partial.forEach((i) => {
143
150
  values[i] = null;
144
151
  });
@@ -151,17 +158,49 @@ function computeMetricStack(data, locale, na = NOT_AVAILABLE) {
151
158
  }, aggregate = (key, indexes) => {
152
159
  let num = sum(`${key}:sum`, fields, indexes);
153
160
  if ("sum" in expr) return make(key, "ratio@1", [ref(num), { ref: `${key}:category-count`, value: indexes.length }], indexes.length ? num.output.raw === null ? null : num.output.raw / indexes.length : null);
161
+ if ("per" in expr) {
162
+ let units = sum(`${key}:per`, [expr.per], indexes);
163
+ return make(key, "ratio@1", [ref(num), ref(units)], perUnit(num.output.raw, units.output.raw));
164
+ }
154
165
  let den = sum(`${key}:denominator`, [expr.denominator], indexes), raw = make(`${key}:raw`, "share@1", [ref(num), ref(den)], rate(num.output.raw, den.output.raw));
155
166
  return make(key, "round-decimals@1", [ref(raw), { ref: "decimals", value: 1 }], stackRound(raw.output.raw, 1));
156
- }, readout;
167
+ }, readout, shareTexts, segmentTexts;
157
168
  if (panel.readout === "change") {
158
- let baseIndexes = stackRange(data, data.windows.base), compareIndexes = stackRange(data, data.windows.compare), base = aggregate("base", baseIndexes), compare = aggregate("compare", compareIndexes), isRate = "denominator" in expr, unrounded = (key, rounded) => isRate ? claims.find((c) => c.id === `stack:${panel.id}:${key}:raw`) : rounded, startOperand = unrounded("base", base), endOperand = unrounded("compare", compare), authored = panel.divisor !== void 0 || panel.decimals !== void 0, changeFrom = authored ? base : startOperand, changeTo = authored ? compare : endOperand, a = changeFrom.output.raw, b = changeTo.output.raw, change = make("change:raw", isRate ? "difference@1" : "percentDelta@1", [ref(changeTo), ref(changeFrom)], a === null || b === null || !isRate && a === 0 ? null : isRate ? b - a : (b / a - 1) * 100), changeRaw = change.output.raw, changeSpec = changeRaw === null || authored ? void 0 : percentChangeSpec([changeRaw], locale, isRate ? "pp" : "%"), changeSet = changeSpec?.[RULE_SET], authoredDecimals = isRate ? 1 : 0, headline = changeRaw === null ? null : changeSet === void 0 ? stackRound(changeRaw, authoredDecimals) : changeSet.rounded(changeRaw), headlineText = headline === null ? na : changeSpec === void 0 ? formatAutomaticNumber(headline, { decimals: authoredDecimals, suffix: isRate ? "pp" : "%", signed: !0, locale, magnitude: "none" }) : formatWithSpec(changeRaw, changeSpec);
169
+ let baseIndexes = stackRange(data, data.windows.base), compareIndexes = stackRange(data, data.windows.compare), base = aggregate("base", baseIndexes), compare = aggregate("compare", compareIndexes), isRate = "denominator" in expr, unrounded = (key, rounded) => isRate ? claims.find((c) => c.id === `stack:${panel.id}:${key}:raw`) : rounded, startOperand = unrounded("base", base), endOperand = unrounded("compare", compare), authored = panel.divisor !== void 0 || panel.decimals !== void 0, a = startOperand.output.raw, b = endOperand.output.raw, change = make("change:raw", isRate ? "difference@1" : "percentDelta@1", [ref(endOperand), ref(startOperand)], a === null || b === null || !isRate && a === 0 ? null : isRate ? b - a : (b / a - 1) * 100), changeRaw = change.output.raw, changeSpec = changeRaw === null || authored ? void 0 : percentChangeSpec([changeRaw], locale, isRate ? "pp" : "%"), changeSet = changeSpec?.[RULE_SET], authoredDecimals = isRate ? panel.decimals ?? 1 : 0, headline = changeRaw === null ? null : changeSet === void 0 ? stackRound(changeRaw, authoredDecimals) : changeSet.rounded(changeRaw), headlineText = headline === null ? na : changeSpec === void 0 ? formatAutomaticNumber(headline, { decimals: authoredDecimals, suffix: isRate ? "pp" : "%", signed: !0, locale, magnitude: "none" }) : formatWithSpec(changeRaw, changeSpec);
159
170
  make("headline", "round-decimals@1", [ref(change), { ref: "decimals", value: changeRaw === null ? 0 : changeSet === void 0 ? authoredDecimals : changeSet.groupOf(changeRaw).decimals }], headline, headlineText);
160
171
  let divisor = panel.divisor ?? 1, suffix = isRate ? "%" : "", scaledRaw = (operand) => operand.output.raw === null ? null : operand.output.raw / divisor, spanEnd = print.span([scaledRaw(startOperand), scaledRaw(endOperand)], suffix), endpoint = (key, operand) => {
161
172
  let scaled = divisor === 1 ? operand : make(`${key}:scaled`, "ratio@1", [ref(operand), { ref: "divisor", value: divisor }], scaledRaw(operand)), printed = scaled.output.raw === null ? void 0 : spanEnd(scaled.output.raw);
162
173
  return make(key, "round-decimals@1", [ref(scaled), { ref: "decimals", value: printed?.decimals ?? panel.decimals ?? 0 }], printed?.rounded ?? null, printed?.text ?? na).output;
163
174
  }, start = endpoint("before", startOperand), end = endpoint("after", endOperand), before = start.raw, after = end.raw, spanText = `${start.displayed} \u2192 ${end.displayed}`;
164
- readout = { panelId: panel.id, method: isRate ? "rounded-rate-change" : "average-change", grain, categoryIds: { base: baseIndexes.map((i) => data.categories[i].id), compare: compareIndexes.map((i) => data.categories[i].id) }, headline, before, after, headlineText, spanText, claims };
175
+ if (shares && "sum" in expr && parts.length > 1) {
176
+ let total = claims.find((c) => c.id === `stack:${panel.id}:compare:sum`), raws = expr.sum.map((id) => {
177
+ let part = sum(`share:${id}:sum`, [id], compareIndexes);
178
+ return make(`share:${id}:raw`, "share@1", [ref(part), ref(total)], rate(part.output.raw, total.output.raw));
179
+ }), values2 = raws.map((raw) => raw.output.raw), rounded = values2.every((value) => value !== null) ? sumConsistentShares(values2, locale, void 0, 0) : null;
180
+ if (shareTexts = expr.sum.map((id, k) => {
181
+ let text = rounded?.texts[k] ?? na, claim = make(`share:${id}`, "round-sum-consistent@1", [...raws.map(ref), { ref: "decimals", value: 0 }], rounded?.values[k] ?? null, text);
182
+ return { id, text, claimId: claim.id };
183
+ }), panel.segmentShares) {
184
+ segmentTexts = data.categories.map(() => {
185
+ });
186
+ for (let i of /* @__PURE__ */ new Set([...baseIndexes, ...compareIndexes])) {
187
+ if (expr.sum.some((id) => measures.get(id).values[i] === null)) continue;
188
+ let at = data.categories[i].id, column = sum(`segment:${at}:sum`, expr.sum, [i]), raws2 = expr.sum.map((id) => make(
189
+ `segment:${at}:${id}:raw`,
190
+ "share@1",
191
+ [ref(sum(`segment:${at}:${id}:sum`, [id], [i])), ref(column)],
192
+ rate(measures.get(id).values[i], column.output.raw)
193
+ )), values3 = raws2.map((raw) => raw.output.raw);
194
+ if (values3.some((value) => value === null)) continue;
195
+ let rounded2 = sumConsistentShares(values3, locale, void 0, 0);
196
+ rounded2 && (segmentTexts[i] = expr.sum.map((id, k) => {
197
+ let claim = make(`segment:${at}:${id}`, "round-sum-consistent@1", [...raws2.map(ref), { ref: "decimals", value: 0 }], rounded2.values[k], rounded2.texts[k]);
198
+ return { id, text: claim.output.displayed, claimId: claim.id };
199
+ }));
200
+ }
201
+ }
202
+ }
203
+ readout = { panelId: panel.id, method: isRate ? "rounded-rate-change" : "per" in expr ? "ratio-change" : "average-change", grain, categoryIds: { base: baseIndexes.map((i) => data.categories[i].id), compare: compareIndexes.map((i) => data.categories[i].id) }, headline, before, after, headlineText, spanText, claims };
165
204
  } else {
166
205
  let rateExpr = expr, avg = aggregate("rate", mature), base = sum("chain:base", [panel.readout.base], mature), beforeSum = sum("chain:before", [rateExpr.denominator], mature), afterSum = sum("chain:after", fields, mature), chainRate = (operand) => rate(operand.output.raw, base.output.raw), authored = panel.divisor !== void 0 || panel.decimals !== void 0, fixed = (n, decimals, suffix = "") => n === null ? na : formatAutomaticNumber(n, { decimals, suffix, locale, magnitude: "none" }), endpoint = (key, operand) => {
167
206
  let raw = make(`${key}:raw`, "share@1", [ref(operand), ref(base)], chainRate(operand)), value = raw.output.raw, own = authored || value === null || value === 100, rounded = own ? value === 100 ? 100 : stackRound(value, 1) : weightedSet.rule.rounded(value), decimals = own ? value === 100 && !authored ? 0 : 1 : Math.max(0, weightedSet.rule.groupOf(value).decimals), text = own ? fixed(rounded, rounded === 100 ? 0 : 1) : weightedSet.text(value);
@@ -171,7 +210,7 @@ function computeMetricStack(data, locale, na = NOT_AVAILABLE) {
171
210
  let headline = avg.output.raw, headlineText = inSet ? weightedSet.text(rateRaw, "%") : fixed(headline, 1, "%");
172
211
  avg.output.displayed = headlineText, readout = { panelId: panel.id, method: "weighted-rate", grain, categoryIds: { mature: mature.map((i) => data.categories[i].id) }, headline, before: start.raw, after: end.raw, headlineText, spanText: `${start.displayed} \u2192 ${end.displayed}`, claims };
173
212
  }
174
- return { panel, values, parts, states, readout, format: print.mark };
213
+ return { panel, values, parts, states, readout, format: print.mark, ...shareTexts ? { shares: shareTexts } : {}, ...segmentTexts ? { segmentShares: segmentTexts } : {} };
175
214
  }), maturing, mature, partial };
176
215
  }
177
216
 
@@ -181,5 +220,6 @@ export {
181
220
  stackRange,
182
221
  metricStackGrain,
183
222
  normalizeMetricStack,
223
+ withCompareWindow,
184
224
  computeMetricStack
185
225
  };
@@ -6,32 +6,32 @@ import {
6
6
  } from "./chunk-UTWLJ6AZ.js";
7
7
  import {
8
8
  BoardplotThemeContext
9
- } from "./chunk-DBKMJWPO.js";
9
+ } from "./chunk-3Z4I6LNK.js";
10
10
  import {
11
11
  resolveSharedScale,
12
12
  sharedScaleValueAxis
13
- } from "./chunk-NOC5PYN3.js";
13
+ } from "./chunk-C3ULVZI7.js";
14
14
  import {
15
15
  resolveThemeRequest
16
- } from "./chunk-ENVV7LI4.js";
16
+ } from "./chunk-XJOCPL6R.js";
17
17
  import {
18
18
  chartRegistryRevision,
19
19
  onChartRegistered
20
- } from "./chunk-NF74JTTK.js";
20
+ } from "./chunk-PM5D5KYQ.js";
21
21
  import {
22
22
  haloPaint,
23
23
  repaintGeometry,
24
24
  repaintScene,
25
25
  resolvePaint
26
- } from "./chunk-Q7GDGSTK.js";
26
+ } from "./chunk-ZLIVUVIV.js";
27
27
  import {
28
28
  themeGeometryTokens
29
- } from "./chunk-FPWADEL6.js";
29
+ } from "./chunk-OQRTTGYP.js";
30
30
  import {
31
31
  hatchPaint,
32
32
  isHatchPattern,
33
33
  unsetRolesAsFallback
34
- } from "./chunk-CQ6WHTRL.js";
34
+ } from "./chunk-4NGKSJBX.js";
35
35
 
36
36
  // src/react/ScaleGroup.tsx
37
37
  import { useMemo, useSyncExternalStore } from "react";