boardplot 0.57.0 → 0.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (496) hide show
  1. package/CHANGELOG.md +311 -0
  2. package/README.md +48 -14
  3. package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-FXNTFSA4.js} +2 -2
  4. package/dist/{ReaderBox-GCIITQCX.js → ReaderBox-WVOT7VVJ.js} +8 -7
  5. package/dist/{annotateEngine-JMZI6QEG.js → annotateEngine-57L26X77.js} +2 -1
  6. package/dist/build-identity.json +3 -3
  7. package/dist/{chunk-6LQKU6YN.js → chunk-23FT7RLN.js} +11 -10
  8. package/dist/{chunk-5WSIH4SR.js → chunk-2CQBBN7M.js} +4 -4
  9. package/dist/chunk-2DS4MT7T.js +25 -0
  10. package/dist/{chunk-QFIRPOXR.js → chunk-2HII2B6S.js} +3 -3
  11. package/dist/{chunk-JMOBA5ES.js → chunk-2IRMGCYE.js} +2 -2
  12. package/dist/{chunk-JKXJWCJ5.js → chunk-2SWSUNA4.js} +116 -54
  13. package/dist/{chunk-O7Y6RJ4D.js → chunk-33EBLJVZ.js} +11 -11
  14. package/dist/{chunk-EHQLLZCQ.js → chunk-34PKJZRY.js} +59 -34
  15. package/dist/{chunk-SHAAMKN7.js → chunk-35ZJUZUO.js} +18 -18
  16. package/dist/{chunk-TGR6PRKG.js → chunk-3BMPYY26.js} +6 -3
  17. package/dist/{chunk-XJUZC53Y.js → chunk-3E6NLODZ.js} +1 -1
  18. package/dist/{chunk-H3EWFSWI.js → chunk-3ESWPMDW.js} +43 -29
  19. package/dist/{chunk-6KHRMK3I.js → chunk-3M2F7KSS.js} +158 -75
  20. package/dist/{chunk-UBXIGE2P.js → chunk-3MFVJMP6.js} +2 -2
  21. package/dist/{chunk-MOQFYJ3F.js → chunk-3OSQ32GN.js} +5 -5
  22. package/dist/{chunk-HGPFEG2L.js → chunk-3RXUA6VY.js} +5 -5
  23. package/dist/{chunk-I65OLJ2X.js → chunk-42QKUSHJ.js} +13 -3
  24. package/dist/{chunk-FAFUMSPR.js → chunk-4DK67I3B.js} +83 -51
  25. package/dist/{chunk-EEBMK6T6.js → chunk-4DMRIL5K.js} +8 -8
  26. package/dist/chunk-4M3UADCM.js +602 -0
  27. package/dist/{chunk-WSKZZ2ZB.js → chunk-4OJF6DXL.js} +538 -503
  28. package/dist/{chunk-UD6U4EF5.js → chunk-4ROZ4TFL.js} +1 -1
  29. package/dist/{chunk-I7KDPCC7.js → chunk-4TUU3UGY.js} +18 -10
  30. package/dist/{chunk-6ZN2XJFI.js → chunk-54YO56IK.js} +1 -1
  31. package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
  32. package/dist/{chunk-BQIADGJB.js → chunk-5CYLT6FJ.js} +5 -5
  33. package/dist/{chunk-IVQT2E3Y.js → chunk-5I4RPBNE.js} +13 -13
  34. package/dist/{chunk-LW4ZQGVL.js → chunk-5KAYLRRP.js} +7 -8
  35. package/dist/{chunk-2BHLRHF2.js → chunk-5SVGTQTW.js} +4 -4
  36. package/dist/{chunk-5JTRCSBN.js → chunk-62BDQTO6.js} +2 -2
  37. package/dist/{chunk-4RN4OM6I.js → chunk-63JUV7NR.js} +3 -3
  38. package/dist/chunk-645BGVPP.js +26 -0
  39. package/dist/{chunk-JIH52I36.js → chunk-65U6ZBZZ.js} +119 -85
  40. package/dist/{chunk-3DUGZ7ML.js → chunk-6ALORYH7.js} +46 -31
  41. package/dist/{chunk-HB3TH7GY.js → chunk-6AVUTZ6W.js} +10 -6
  42. package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
  43. package/dist/{chunk-W5SVS4B6.js → chunk-6JFQCVNN.js} +4 -4
  44. package/dist/{chunk-IZRTNCJQ.js → chunk-6JTCFPAD.js} +5 -5
  45. package/dist/{chunk-5TUDYKNL.js → chunk-6NGKQNTB.js} +42 -29
  46. package/dist/{chunk-IUVJVMKS.js → chunk-6V3A3MTG.js} +55 -32
  47. package/dist/{chunk-FJKFYQ5I.js → chunk-6YBNVI5I.js} +36 -28
  48. package/dist/chunk-76GPN6AT.js +72 -0
  49. package/dist/{chunk-SHCW2TCA.js → chunk-7GRR72MY.js} +25 -23
  50. package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
  51. package/dist/{chunk-Y5IKCXQR.js → chunk-7YZZCQT3.js} +5 -5
  52. package/dist/chunk-A65B23JK.js +113 -0
  53. package/dist/{chunk-2WTD3GCR.js → chunk-A6N24NGW.js} +3 -3
  54. package/dist/{chunk-72OJBDRB.js → chunk-AAQWFTDM.js} +52 -41
  55. package/dist/{chunk-4JNHF6JW.js → chunk-AGJ2QL4A.js} +84 -40
  56. package/dist/{chunk-I3DLERI7.js → chunk-AICO24HJ.js} +5 -2
  57. package/dist/{chunk-LSKCKGCF.js → chunk-AJGSCVVW.js} +2 -2
  58. package/dist/{chunk-7P7D6WXR.js → chunk-AKZOQGF3.js} +3 -3
  59. package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
  60. package/dist/{chunk-VY67Q6CJ.js → chunk-AMBQ6SWU.js} +36 -33
  61. package/dist/{chunk-73O6AOAA.js → chunk-AQ2PQ7FK.js} +241 -140
  62. package/dist/{chunk-XFCBH3TI.js → chunk-BHLNSJG7.js} +3 -3
  63. package/dist/{chunk-6XU5XGYV.js → chunk-BQ7SN7AW.js} +5 -5
  64. package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
  65. package/dist/{chunk-LSR3SBJ4.js → chunk-BSZOQJXB.js} +234 -136
  66. package/dist/{chunk-KJLH5EHD.js → chunk-BVIJCUWW.js} +175 -110
  67. package/dist/{chunk-2AJWRVZ2.js → chunk-C47POAC5.js} +1 -1
  68. package/dist/{chunk-AOIZJ7GR.js → chunk-C4SQU2PB.js} +6 -6
  69. package/dist/{chunk-Y7Q3VEYC.js → chunk-CCAAI56H.js} +30 -10
  70. package/dist/{chunk-T3WCDDIL.js → chunk-CDUR3KWV.js} +2 -2
  71. package/dist/{chunk-T5MBORBK.js → chunk-CFESVCZR.js} +1 -1
  72. package/dist/{chunk-EEL2N4Y6.js → chunk-CKEFAD4R.js} +5 -5
  73. package/dist/{chunk-WE5WVQE4.js → chunk-CMPHT2LS.js} +3 -3
  74. package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
  75. package/dist/{chunk-JSA3ESEJ.js → chunk-CR5FP5SF.js} +1 -1
  76. package/dist/{chunk-NCCDEUHD.js → chunk-CSMVKG2C.js} +1 -1
  77. package/dist/{chunk-JHWDTV4K.js → chunk-D2TQX7UJ.js} +2 -2
  78. package/dist/{chunk-GHFTKVJN.js → chunk-DHGE46UK.js} +1 -1
  79. package/dist/{chunk-26WNBTWB.js → chunk-DORE2RHL.js} +5 -5
  80. package/dist/{chunk-AFA32LHN.js → chunk-DUOGEFLG.js} +62 -36
  81. package/dist/{chunk-WZB6R2ZX.js → chunk-DZYTXZNS.js} +11 -3
  82. package/dist/{chunk-O4D27FKH.js → chunk-E5YF236N.js} +4 -1
  83. package/dist/{chunk-6EE6XEMA.js → chunk-EB4PQEI3.js} +26 -17
  84. package/dist/{chunk-ANNQJWDX.js → chunk-EBWMTQ4U.js} +285 -34
  85. package/dist/{chunk-EHNGPUTO.js → chunk-EDW5HQND.js} +5 -5
  86. package/dist/{chunk-VM5CQ7CG.js → chunk-EHRRHSPV.js} +2 -2
  87. package/dist/{chunk-PYGEIPPH.js → chunk-EILNJQMN.js} +32 -12
  88. package/dist/{chunk-KGS5Z7SL.js → chunk-ERDKMZ7O.js} +2 -2
  89. package/dist/{chunk-USFIDSTO.js → chunk-ETUKDEGL.js} +18 -11
  90. package/dist/chunk-F2ET5ZTT.js +49 -0
  91. package/dist/{chunk-HVX2E26J.js → chunk-F3XOBFS4.js} +9 -8
  92. package/dist/{chunk-I4NUYVP5.js → chunk-FB6X7QHA.js} +1 -1
  93. package/dist/{chunk-LO3AGGE3.js → chunk-FJNZ7NWD.js} +5 -5
  94. package/dist/{chunk-IRXTNSZL.js → chunk-FPFRLRQO.js} +40 -22
  95. package/dist/{chunk-YTEJYLU7.js → chunk-FRR7BJ3B.js} +2 -2
  96. package/dist/{chunk-DPUCT567.js → chunk-FVWHEM2N.js} +7 -5
  97. package/dist/{chunk-A33MFWHW.js → chunk-G7BCLYL4.js} +2 -2
  98. package/dist/{chunk-2KCK63DD.js → chunk-G7CXJPEN.js} +2 -2
  99. package/dist/{chunk-2X6XY4K4.js → chunk-GB3RZYTK.js} +39 -19
  100. package/dist/{chunk-MTCDGSYW.js → chunk-GHCU6OSE.js} +2 -2
  101. package/dist/{chunk-AFGQXMKT.js → chunk-GNMB72V7.js} +161 -67
  102. package/dist/chunk-GOFS336W.js +24 -0
  103. package/dist/{chunk-JMXNXLAC.js → chunk-GQYT7G4F.js} +2 -2
  104. package/dist/{chunk-RRPTQGRU.js → chunk-H3VICNTN.js} +1 -1
  105. package/dist/{chunk-JRRSKCGG.js → chunk-H4EDDGGX.js} +3 -3
  106. package/dist/{chunk-5H4HFRDO.js → chunk-H7BCNS5J.js} +5 -5
  107. package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
  108. package/dist/chunk-HF4BCPIV.js +26 -0
  109. package/dist/{chunk-YCUNFAEE.js → chunk-HM4AJ5U4.js} +238 -127
  110. package/dist/{chunk-7FAO4ICF.js → chunk-HO4ILCW7.js} +2 -2
  111. package/dist/{chunk-ZV3SNRJI.js → chunk-HTQGJQZN.js} +4 -2
  112. package/dist/{chunk-G5BUGYIL.js → chunk-I52OMC5B.js} +192 -113
  113. package/dist/{chunk-TMXRTYGT.js → chunk-I5VNHDPR.js} +3 -2
  114. package/dist/{chunk-M74H7QYD.js → chunk-IDXYHDQY.js} +1 -1
  115. package/dist/{chunk-SSZB3VXG.js → chunk-IFUAPFL5.js} +102 -47
  116. package/dist/{chunk-IPWUBZ4P.js → chunk-IIWZJ5ZM.js} +1 -1
  117. package/dist/{chunk-KF3ZHLHQ.js → chunk-IMUMPKXF.js} +5 -5
  118. package/dist/{chunk-HC6WHTBX.js → chunk-IPBOREIY.js} +1 -1
  119. package/dist/{chunk-76UL4CT4.js → chunk-IPZJCBWD.js} +27 -22
  120. package/dist/{chunk-5P4MXWKP.js → chunk-ITEJQHXE.js} +4 -4
  121. package/dist/{chunk-WDAZ2MT4.js → chunk-IVDTP6SV.js} +4 -4
  122. package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
  123. package/dist/{chunk-K6Y4HBK7.js → chunk-IXU5C3YY.js} +1000 -904
  124. package/dist/{chunk-EDBUVDRI.js → chunk-JBAVMO56.js} +372 -93
  125. package/dist/{chunk-VY2NPB2Q.js → chunk-JNDWRV34.js} +4 -4
  126. package/dist/{chunk-XYUXB5VK.js → chunk-JT3UTEWZ.js} +3 -3
  127. package/dist/{chunk-A6XCVOC5.js → chunk-JY4LTPOV.js} +1 -1
  128. package/dist/{chunk-VT7PBGL2.js → chunk-JYSFAH7C.js} +23 -36
  129. package/dist/chunk-K7XPTQBJ.js +267 -0
  130. package/dist/{chunk-2I76VFMZ.js → chunk-KI7VCHNZ.js} +49 -37
  131. package/dist/{chunk-YB6QGOCO.js → chunk-KUWIRCYJ.js} +2 -2
  132. package/dist/{chunk-MQ5EKWIG.js → chunk-KVBLTAO7.js} +5 -5
  133. package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
  134. package/dist/{chunk-BY5JGQFZ.js → chunk-KWIP5YRA.js} +4 -4
  135. package/dist/{chunk-KAAB2DIV.js → chunk-LJDATBPB.js} +6 -6
  136. package/dist/{chunk-TDDSWNGD.js → chunk-LOXZSTIM.js} +30 -28
  137. package/dist/{chunk-ZTSJ7NY6.js → chunk-LPMSGO7L.js} +3 -3
  138. package/dist/{chunk-IXM6BAM4.js → chunk-LXH4RPY4.js} +1 -1
  139. package/dist/{chunk-D5G67OER.js → chunk-LYAT62UT.js} +1 -1
  140. package/dist/{chunk-EFKFZNQC.js → chunk-M5LPP2GQ.js} +34 -20
  141. package/dist/{chunk-QZMLSK43.js → chunk-MALSSEXO.js} +294 -145
  142. package/dist/{chunk-XN7JDII2.js → chunk-MB5EX2YG.js} +230 -107
  143. package/dist/{chunk-PSYPB22T.js → chunk-MGXHFRQK.js} +5 -5
  144. package/dist/{chunk-GADI2DU7.js → chunk-MVR7YKBF.js} +152 -27
  145. package/dist/{chunk-IFURKTOL.js → chunk-MXUPMGRY.js} +2 -2
  146. package/dist/{chunk-C5SQEYTQ.js → chunk-NFGV5OAR.js} +153 -65
  147. package/dist/{chunk-RZNYW7UP.js → chunk-NNIZG3TH.js} +8 -0
  148. package/dist/{chunk-AKJO6N4K.js → chunk-NQPJWQTW.js} +11 -4
  149. package/dist/{chunk-YFI5PN5O.js → chunk-NSMYIUBZ.js} +34 -11
  150. package/dist/{chunk-H6EJ63QN.js → chunk-NT3HCXQC.js} +144 -83
  151. package/dist/chunk-NZ7FX3AE.js +65 -0
  152. package/dist/chunk-O3LT4TAI.js +34 -0
  153. package/dist/{chunk-L2XRUG4P.js → chunk-OELB7MTE.js} +5 -5
  154. package/dist/{chunk-7MYJUJZV.js → chunk-OMNB27GM.js} +4 -4
  155. package/dist/{chunk-GS5UG6QD.js → chunk-OO63YP35.js} +1 -1
  156. package/dist/{chunk-CEMXGMQN.js → chunk-OQUH7I5T.js} +3 -3
  157. package/dist/{chunk-Q7VPTN5X.js → chunk-OS7C2KMQ.js} +4 -4
  158. package/dist/{chunk-NRYERHEI.js → chunk-OTWIW2L3.js} +5 -5
  159. package/dist/chunk-OUNYHYJL.js +27 -0
  160. package/dist/{chunk-54HEIM2A.js → chunk-OUR5ZHCB.js} +2 -2
  161. package/dist/{chunk-Z257SH5U.js → chunk-OZA7HA6L.js} +1 -1
  162. package/dist/{chunk-WJQX7HBH.js → chunk-OZLKEBCD.js} +2 -2
  163. package/dist/{chunk-YGPLUENN.js → chunk-P3NMDPDP.js} +132 -83
  164. package/dist/{chunk-NINK4G7U.js → chunk-P5RCP4NK.js} +2 -2
  165. package/dist/{chunk-DYSEZVIJ.js → chunk-P6DEFCMQ.js} +2 -2
  166. package/dist/{chunk-J22ETKDJ.js → chunk-P7UOOMXE.js} +2 -2
  167. package/dist/chunk-PMT75APP.js +94 -0
  168. package/dist/{chunk-KLQKHA3T.js → chunk-PNYWBY4K.js} +5 -5
  169. package/dist/{chunk-XNV7VOIT.js → chunk-PVGJM2HP.js} +4 -4
  170. package/dist/{chunk-4U2WSW6F.js → chunk-Q2I3QLE3.js} +65 -36
  171. package/dist/{chunk-LGMV7ZV4.js → chunk-QATOOZMH.js} +5 -5
  172. package/dist/{chunk-H2POQ4LB.js → chunk-QFNWGSCT.js} +4 -4
  173. package/dist/{chunk-CIDOL4FO.js → chunk-QQMESIDA.js} +5 -5
  174. package/dist/{chunk-OTGNVAI4.js → chunk-R3VSWOTI.js} +4 -4
  175. package/dist/{chunk-UCIAHSJK.js → chunk-R5SGE2NS.js} +7 -3
  176. package/dist/{chunk-FX5VZK5F.js → chunk-RJICOOB3.js} +14 -8
  177. package/dist/{chunk-RMVCKO6N.js → chunk-RLH2CQCD.js} +458 -136
  178. package/dist/{chunk-VFLMBA2M.js → chunk-RPGEB3Z5.js} +19 -18
  179. package/dist/{chunk-KIXNHDXS.js → chunk-RQKDEJFQ.js} +5 -5
  180. package/dist/chunk-SBKM6XFS.js +211 -0
  181. package/dist/{chunk-TQ5HHNM3.js → chunk-SCAYWQZK.js} +2 -2
  182. package/dist/{chunk-Y5WHM2Q5.js → chunk-SH4FLUAD.js} +1 -1
  183. package/dist/{chunk-7EQU2TUN.js → chunk-SH4UGK5U.js} +84 -53
  184. package/dist/{chunk-EY4OA4OF.js → chunk-SHYS52VO.js} +370 -785
  185. package/dist/{chunk-ZSYU6LIH.js → chunk-SKPOXLG5.js} +5 -5
  186. package/dist/{chunk-OAT6FWKL.js → chunk-T7PRG6AO.js} +5 -5
  187. package/dist/chunk-TBZT5WUT.js +39 -0
  188. package/dist/{chunk-5HTGSB6Y.js → chunk-TKH655ON.js} +3 -3
  189. package/dist/{chunk-YO5UKKCQ.js → chunk-TMEUK2WS.js} +6 -2
  190. package/dist/{chunk-X5OVVMZX.js → chunk-TVOMGNFQ.js} +1 -1
  191. package/dist/{chunk-JARJP576.js → chunk-TX5FSNAU.js} +435 -29
  192. package/dist/{chunk-LUZ7HXBT.js → chunk-U52PNFPX.js} +1 -1
  193. package/dist/{chunk-OKM5LYYP.js → chunk-U6QZOMYC.js} +5 -5
  194. package/dist/{chunk-F4JAGDPD.js → chunk-UBYDY4B7.js} +8 -8
  195. package/dist/{chunk-V3UE3TB7.js → chunk-UCKUAKYQ.js} +2 -2
  196. package/dist/{chunk-NO7GRVUU.js → chunk-UOOXWGBU.js} +8 -8
  197. package/dist/{chunk-LFX5BERN.js → chunk-USMKNNOU.js} +47 -33
  198. package/dist/chunk-USSG6TJV.js +23 -0
  199. package/dist/{chunk-HFFKN7PA.js → chunk-UY34DDUM.js} +3 -3
  200. package/dist/{chunk-3LNVEE5Z.js → chunk-V7FV66KL.js} +1 -1
  201. package/dist/{chunk-62JZL6FW.js → chunk-V7JFT7NQ.js} +56 -42
  202. package/dist/{chunk-UP4JSNDR.js → chunk-V7NUJEJE.js} +1 -1
  203. package/dist/{chunk-FERP4WS3.js → chunk-VACZGW5R.js} +16 -18
  204. package/dist/{chunk-BO5EJBLH.js → chunk-VC62V7CX.js} +82 -47
  205. package/dist/{chunk-53OEKS4L.js → chunk-VESSIKBG.js} +6 -3
  206. package/dist/chunk-VJULLJLN.js +70 -0
  207. package/dist/{chunk-QLWUFEKR.js → chunk-VKNQOSGW.js} +8 -8
  208. package/dist/{chunk-BFDPY7JM.js → chunk-VTY6YHQZ.js} +11 -6
  209. package/dist/{chunk-UFZXZJJG.js → chunk-W2QILXAL.js} +5 -5
  210. package/dist/{chunk-QHPJ5ZKS.js → chunk-W6XSIBLR.js} +5 -5
  211. package/dist/{chunk-DJBMA4FW.js → chunk-WDJSDJLV.js} +4 -6
  212. package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
  213. package/dist/{chunk-IW3YUMPI.js → chunk-WFBN2HXR.js} +2 -2
  214. package/dist/chunk-WGJIYFVQ.js +24 -0
  215. package/dist/{chunk-43PCSBVQ.js → chunk-WKXLJNHW.js} +634 -8
  216. package/dist/{chunk-EWR6WVOV.js → chunk-WLH5IBFY.js} +6 -6
  217. package/dist/{chunk-RHVP62HI.js → chunk-WMQ57FOP.js} +5 -5
  218. package/dist/{chunk-GKQLKUMF.js → chunk-WNTUBGBB.js} +41 -32
  219. package/dist/{chunk-RHBQ2Q5H.js → chunk-WOICFLOJ.js} +60 -43
  220. package/dist/{chunk-QNLESRH6.js → chunk-WUP6C4ZD.js} +2 -2
  221. package/dist/chunk-WVCDISZP.js +89 -0
  222. package/dist/{chunk-CT4RFZO4.js → chunk-WW4KLAVO.js} +38 -23
  223. package/dist/{chunk-I5ZADE2U.js → chunk-X3QUASBR.js} +1 -1
  224. package/dist/{chunk-TXMS7QUJ.js → chunk-X46PSAJ7.js} +6 -6
  225. package/dist/{chunk-Z2BDTZDT.js → chunk-XC32OSCD.js} +97 -39
  226. package/dist/{chunk-M2OQK2FO.js → chunk-XD5XB22R.js} +2 -2
  227. package/dist/chunk-XLLWIHN2.js +24 -0
  228. package/dist/{chunk-SD6ENKTO.js → chunk-XMX4PCFL.js} +3 -3
  229. package/dist/{chunk-BM2A3IGQ.js → chunk-XO44IJGZ.js} +1 -1
  230. package/dist/{chunk-2HD5RY2U.js → chunk-XRRG4MBM.js} +3 -3
  231. package/dist/chunk-XSC4IXXC.js +24 -0
  232. package/dist/{chunk-D5RAVZ5C.js → chunk-XSEETONJ.js} +10 -9
  233. package/dist/{chunk-YBYV56FS.js → chunk-XZOFKLTD.js} +3 -3
  234. package/dist/{chunk-YNHPPZ7S.js → chunk-XZXZNI7A.js} +1 -1
  235. package/dist/{chunk-W7Q6PLT4.js → chunk-Y6E4JU3U.js} +37 -37
  236. package/dist/{chunk-XR7VOF2V.js → chunk-YGWPOYDE.js} +25 -13
  237. package/dist/{chunk-HDSHS2QZ.js → chunk-YJUBX3QF.js} +70 -47
  238. package/dist/{chunk-BDCKHLUB.js → chunk-YLRAAJYV.js} +72 -304
  239. package/dist/{chunk-I6QGYRY4.js → chunk-YW35KSXR.js} +2 -2
  240. package/dist/{chunk-GAFEN3H7.js → chunk-Z3WQXVFV.js} +2 -2
  241. package/dist/{chunk-WKWCNS6K.js → chunk-Z62TJQO5.js} +5 -5
  242. package/dist/{chunk-D3PQAVFW.js → chunk-Z6DUNKFU.js} +152 -29
  243. package/dist/{chunk-FF7MV4D4.js → chunk-Z6H5ED2I.js} +1 -1
  244. package/dist/{chunk-TWRFVW3J.js → chunk-ZB3JIL3L.js} +138 -89
  245. package/dist/{chunk-KUMJI5B6.js → chunk-ZBCCJPGW.js} +17 -14
  246. package/dist/{chunk-CV3NC75L.js → chunk-ZBOOMLHD.js} +1 -1
  247. package/dist/{chunk-QRZESG66.js → chunk-ZCHKIR7C.js} +64 -239
  248. package/dist/{chunk-ZDD3MJ2H.js → chunk-ZDJ7C64T.js} +1 -1
  249. package/dist/{chunk-KQ2WZ6BY.js → chunk-ZG4BMJRL.js} +1 -1
  250. package/dist/{chunk-QYOZ46ZQ.js → chunk-ZIVCPXXL.js} +467 -650
  251. package/dist/{chunk-V62B23VC.js → chunk-ZNRSYS76.js} +8 -2
  252. package/dist/{chunk-NIDH22DI.js → chunk-ZSYFQSPF.js} +12 -2
  253. package/dist/cli/index.js +8 -3
  254. package/dist/{core-5S5CJHBG.js → core-2GWH3ED7.js} +2 -1
  255. package/dist/{core-ZSERZGK6.js → core-3LCSHMKN.js} +3 -1
  256. package/dist/{core-FTQBESDS.js → core-3NQ5TXOJ.js} +3 -1
  257. package/dist/{core-D2OIGYC7.js → core-3XGQBHJI.js} +4 -1
  258. package/dist/{core-T3OSZOVV.js → core-4N6WH3IF.js} +3 -1
  259. package/dist/{core-VRVL6LIM.js → core-5CRTPVYA.js} +3 -1
  260. package/dist/{core-7XKNJM7Y.js → core-5K4HRIHX.js} +5 -1
  261. package/dist/{core-CCB3IXGD.js → core-743ZXTWK.js} +3 -1
  262. package/dist/{core-4M4RY7MX.js → core-7OAGK7ZJ.js} +3 -1
  263. package/dist/{core-VT35VDVS.js → core-7YDNMUU3.js} +6 -1
  264. package/dist/{core-4PW4MXWR.js → core-AAPPZSSZ.js} +4 -1
  265. package/dist/{core-OBPTBKX6.js → core-AC5AKSCM.js} +2 -1
  266. package/dist/{core-QFAVWFI3.js → core-AEALAFRA.js} +2 -1
  267. package/dist/{core-WXZJ7V7S.js → core-BEK6EPVF.js} +4 -1
  268. package/dist/{core-WP73P4CW.js → core-BRBJ3LPF.js} +5 -1
  269. package/dist/{core-AVA4XLQ2.js → core-EGTJOQK7.js} +2 -1
  270. package/dist/{core-XKXDXALI.js → core-FE4THVV3.js} +6 -1
  271. package/dist/{core-MAW4S3KA.js → core-FEBNVNVE.js} +5 -1
  272. package/dist/{core-L3UR75IJ.js → core-HIONDJGC.js} +4 -1
  273. package/dist/{core-GS4DXDDG.js → core-HMBMMF5Z.js} +4 -1
  274. package/dist/{core-QM34237W.js → core-LSYX4UQQ.js} +2 -1
  275. package/dist/{core-N2JEWJ7D.js → core-MIERUUUT.js} +2 -1
  276. package/dist/{core-A7HXVSKB.js → core-NTOOJZRA.js} +2 -1
  277. package/dist/{core-JDZDBTID.js → core-O5S2NETE.js} +2 -1
  278. package/dist/{core-OFPPRHYY.js → core-Q2Y3JEWL.js} +3 -1
  279. package/dist/{core-BJZEJ63L.js → core-RTBPKALG.js} +3 -1
  280. package/dist/{core-WNT6ZMRO.js → core-T7CKLMT2.js} +2 -1
  281. package/dist/{core-VWYXK2R3.js → core-TIIPSEK3.js} +4 -1
  282. package/dist/{core-EMSJRGSE.js → core-VBMWBPKM.js} +2 -1
  283. package/dist/{core-WPEYRK6Y.js → core-VLXOQ5CK.js} +4 -1
  284. package/dist/{core-7TTM4KRP.js → core-VYHQ5JY6.js} +3 -1
  285. package/dist/{core-DMDAXVMY.js → core-XJZWD43V.js} +2 -1
  286. package/dist/{core-AMWCZTOT.js → core-XUNZB6BM.js} +5 -1
  287. package/dist/{core-UNX4ZV4M.js → core-YKDDPMWW.js} +5 -1
  288. package/dist/{core-SKMHEA4Y.js → core-YN2VVGUL.js} +3 -1
  289. package/dist/{core-ZACFV6XR.js → core-YP4MNIMV.js} +5 -1
  290. package/dist/{core-FCSA74RT.js → core-ZETBHLSV.js} +3 -1
  291. package/dist/{dataTable-7IO546LM.js → dataTable-FEQZSDUZ.js} +7 -2
  292. package/dist/{engine-US3N6UCH.js → engine-SCQVNSAM.js} +23 -18
  293. package/dist/fixtures.js +2 -1
  294. package/dist/flags-BVLSAXT3.js +10 -0
  295. package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
  296. package/dist/geo/dach.js +1 -1
  297. package/dist/geo/de-states.js +1 -1
  298. package/dist/geo/eu27.js +1 -1
  299. package/dist/geo/europe.js +1 -1
  300. package/dist/geo/index.js +2 -2
  301. package/dist/geo/us-states.js +1 -1
  302. package/dist/geo/world.js +1 -1
  303. package/dist/index.js +27 -20
  304. package/dist/{main-2UWKGUHR.js → main-7UKLXCIL.js} +50 -119
  305. package/dist/mcp/server.js +121 -118
  306. package/dist/react/bar.js +5 -1
  307. package/dist/react/bartable.js +3 -1
  308. package/dist/react/box.js +3 -1
  309. package/dist/react/bullet.js +4 -1
  310. package/dist/react/butterfly.js +5 -1
  311. package/dist/react/choropleth.js +3 -1
  312. package/dist/react/cohort.js +3 -1
  313. package/dist/react/column.js +5 -1
  314. package/dist/react/combo.js +5 -1
  315. package/dist/react/creative.js +4 -1
  316. package/dist/react/diagram.js +3 -1
  317. package/dist/react/dimswitch.js +6 -1
  318. package/dist/react/dot.js +4 -1
  319. package/dist/react/export.js +29 -18
  320. package/dist/react/funnel.js +4 -1
  321. package/dist/react/gantt.js +3 -1
  322. package/dist/react/grid.js +6 -1
  323. package/dist/react/heatmap.js +3 -1
  324. package/dist/react/histogram.js +6 -1
  325. package/dist/react/index.js +92 -85
  326. package/dist/react/kpi.js +4 -1
  327. package/dist/react/likert.js +6 -1
  328. package/dist/react/line.js +4 -1
  329. package/dist/react/mekko.js +5 -1
  330. package/dist/react/pareto.js +6 -1
  331. package/dist/react/pie.js +4 -1
  332. package/dist/react/prepare.js +35 -22
  333. package/dist/react/pvm.js +6 -1
  334. package/dist/react/pyramid.js +5 -1
  335. package/dist/react/sankey.js +3 -1
  336. package/dist/react/scatter.js +3 -1
  337. package/dist/react/slope.js +4 -1
  338. package/dist/react/sparkline.js +4 -1
  339. package/dist/react/spec.js +17 -13
  340. package/dist/react/status.js +3 -1
  341. package/dist/react/story.js +3 -2
  342. package/dist/react/table.js +4 -1
  343. package/dist/react/theme.js +5 -3
  344. package/dist/react/tilemap.js +3 -1
  345. package/dist/react/treemap.js +3 -1
  346. package/dist/react/variance.js +5 -1
  347. package/dist/react/waffle.js +3 -1
  348. package/dist/react/waterfall.js +5 -1
  349. package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
  350. package/dist/rows.js +2 -2
  351. package/dist/{rowsModule-DYDVHBAX.js → rowsModule-WJH4QNXZ.js} +1 -1
  352. package/dist/{schema-YDZCGL56.js → schema-2R32F6AW.js} +1 -3
  353. package/dist/{schema-A2XUZUCV.js → schema-2TPGJGVR.js} +1 -3
  354. package/dist/{schema-MD22QYZU.js → schema-47BG2TZA.js} +1 -3
  355. package/dist/{schema-HEB6ZDI5.js → schema-56MOEOVR.js} +1 -3
  356. package/dist/{schema-K4V4PYBO.js → schema-5MSR4LNN.js} +1 -3
  357. package/dist/{schema-NOBNFD2F.js → schema-5RIYEWE6.js} +1 -3
  358. package/dist/{schema-OXO2XY4Y.js → schema-ALBF6V7Y.js} +1 -3
  359. package/dist/{schema-F2Q6MH7W.js → schema-BA6WP5YZ.js} +1 -3
  360. package/dist/{schema-G5KSSI5W.js → schema-CBL2SMVR.js} +1 -3
  361. package/dist/{schema-WFGDVBJK.js → schema-CWKGLDSR.js} +1 -3
  362. package/dist/{schema-DHMMGDTI.js → schema-DBIQFL56.js} +1 -3
  363. package/dist/{schema-626QXX4G.js → schema-DL7V6NN2.js} +1 -3
  364. package/dist/{schema-FC6J6KZC.js → schema-DUVJMFKQ.js} +1 -3
  365. package/dist/{schema-LGLQBRC4.js → schema-ECJERHKF.js} +1 -2
  366. package/dist/{schema-4JRNXEZF.js → schema-EDSEKZDJ.js} +1 -3
  367. package/dist/{schema-I44IDRGD.js → schema-ESR6ZIK4.js} +1 -3
  368. package/dist/{schema-FSYDLMGD.js → schema-F7TWGLRZ.js} +1 -3
  369. package/dist/{schema-JCU6LTYD.js → schema-FGB6IGZM.js} +1 -3
  370. package/dist/{schema-MGETMQYC.js → schema-FKGGTM4Z.js} +1 -2
  371. package/dist/{schema-XIHAKX3B.js → schema-JIAQE7WO.js} +1 -1
  372. package/dist/{schema-6V5K3J2V.js → schema-JYZ4RF6S.js} +1 -3
  373. package/dist/{schema-GXOG4MXL.js → schema-K7F6TEDK.js} +1 -2
  374. package/dist/{schema-NMIYKGHE.js → schema-KAK6DZX4.js} +1 -3
  375. package/dist/{schema-PHIHMDVB.js → schema-KCJ6WTGV.js} +1 -3
  376. package/dist/{schema-XRSORYBI.js → schema-MOKWIGF7.js} +1 -3
  377. package/dist/{schema-3KMU5737.js → schema-MQT6BMNK.js} +1 -3
  378. package/dist/{schema-JJWORI7D.js → schema-MR3BPPQR.js} +1 -3
  379. package/dist/{schema-IFTIMTS3.js → schema-OPXZYIW7.js} +1 -3
  380. package/dist/{schema-UXWKA3PI.js → schema-PV7JGX5H.js} +1 -3
  381. package/dist/{schema-CNJ4Y6CT.js → schema-PWPQF5RC.js} +1 -3
  382. package/dist/{schema-WBOPCTPC.js → schema-PYQEUC5P.js} +1 -3
  383. package/dist/{schema-J4HCSD5C.js → schema-Q5DACE4I.js} +6 -2
  384. package/dist/{schema-IUY7VYHJ.js → schema-R42VXFIS.js} +1 -3
  385. package/dist/{schema-WX2RS4OU.js → schema-TVUJNEX7.js} +1 -3
  386. package/dist/{schema-6PL46VXZ.js → schema-WZOSDDDJ.js} +1 -3
  387. package/dist/{schema-FGE5YK3S.js → schema-Y4TI2T3T.js} +1 -3
  388. package/dist/{schema-MQB6CE5V.js → schema-ZU2EU2VP.js} +1 -3
  389. package/dist/{specValidation-XGELWQUU.js → specValidation-DC4TVHWD.js} +3 -1
  390. package/dist/theme.js +4 -3
  391. package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
  392. package/dist/types/core/annotate.d.ts +27 -2
  393. package/dist/types/core/annotateArms.d.ts +3 -1
  394. package/dist/types/core/annotateTargets.d.ts +4 -0
  395. package/dist/types/core/annotationOrigin.d.ts +13 -0
  396. package/dist/types/core/axis.d.ts +2 -2
  397. package/dist/types/core/charts/band/stacks.d.ts +7 -1
  398. package/dist/types/core/charts/column/model.d.ts +13 -0
  399. package/dist/types/core/charts/combo/layout.d.ts +7 -0
  400. package/dist/types/core/charts/gantt/calendar.d.ts +4 -0
  401. package/dist/types/core/charts/grid/normalize.d.ts +5 -0
  402. package/dist/types/core/charts/grid/schema.d.ts +2 -2
  403. package/dist/types/core/charts/pareto/layout.d.ts +2 -0
  404. package/dist/types/core/charts/pvm/types.d.ts +1 -0
  405. package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
  406. package/dist/types/core/charts/scatter/model.d.ts +5 -0
  407. package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
  408. package/dist/types/core/charts/table/resolve.d.ts +8 -3
  409. package/dist/types/core/charts/table/view.d.ts +24 -1
  410. package/dist/types/core/claims/browser.d.ts +2 -0
  411. package/dist/types/core/claims/ids.d.ts +38 -0
  412. package/dist/types/core/deferred.d.ts +1 -0
  413. package/dist/types/core/diagnostics/describe.d.ts +6 -1
  414. package/dist/types/core/doc/diagnostics.d.ts +3 -2
  415. package/dist/types/core/formatSpec.d.ts +33 -14
  416. package/dist/types/core/frame.d.ts +25 -58
  417. package/dist/types/core/frameText.d.ts +203 -0
  418. package/dist/types/core/geometry.d.ts +2 -0
  419. package/dist/types/core/label/categoryRow.d.ts +19 -2
  420. package/dist/types/core/label/solver.d.ts +23 -2
  421. package/dist/types/core/normalize/shared.d.ts +12 -2
  422. package/dist/types/core/notes.d.ts +15 -2
  423. package/dist/types/core/reading.d.ts +12 -1
  424. package/dist/types/core/request.d.ts +1 -1
  425. package/dist/types/core/schema/capability.d.ts +12 -0
  426. package/dist/types/core/seriesIdentity.d.ts +4 -1
  427. package/dist/types/core/sizing.d.ts +37 -1
  428. package/dist/types/core/structureCounts.d.ts +3 -1
  429. package/dist/types/core/theme.d.ts +33 -4
  430. package/dist/types/core/themeRules.d.ts +2 -0
  431. package/dist/types/core/types/annotations.d.ts +74 -4
  432. package/dist/types/core/types/options.d.ts +35 -3
  433. package/dist/types/core/types/scene.d.ts +30 -2
  434. package/dist/types/core/types/table.d.ts +6 -0
  435. package/dist/types/core/types/theme.d.ts +23 -0
  436. package/dist/types/react/TableChart.d.ts +5 -0
  437. package/dist/validate.js +13 -6
  438. package/docs/TELEMETRY.md +2 -2
  439. package/docs/manual.md +252 -62
  440. package/docs/reference/bar.md +12 -4
  441. package/docs/reference/bartable.md +2 -2
  442. package/docs/reference/box.md +8 -4
  443. package/docs/reference/bullet.md +9 -5
  444. package/docs/reference/butterfly.md +10 -5
  445. package/docs/reference/choropleth.md +3 -5
  446. package/docs/reference/cohort.md +1 -1
  447. package/docs/reference/column.md +18 -4
  448. package/docs/reference/combo.md +10 -5
  449. package/docs/reference/creative.md +3 -7
  450. package/docs/reference/diagram.md +1 -1
  451. package/docs/reference/dimswitch.md +23 -88
  452. package/docs/reference/dot.md +9 -5
  453. package/docs/reference/fixtures.md +37 -1
  454. package/docs/reference/funnel.md +9 -5
  455. package/docs/reference/gantt.md +8 -15
  456. package/docs/reference/grid.md +5 -2
  457. package/docs/reference/heatmap.md +10 -6
  458. package/docs/reference/kpi.md +1 -1
  459. package/docs/reference/likert.md +9 -4
  460. package/docs/reference/line.md +18 -5
  461. package/docs/reference/mekko.md +10 -5
  462. package/docs/reference/options.md +17 -13
  463. package/docs/reference/pareto.md +8 -4
  464. package/docs/reference/pie.md +9 -5
  465. package/docs/reference/pvm.md +9 -5
  466. package/docs/reference/pyramid.md +8 -4
  467. package/docs/reference/react.md +5 -5
  468. package/docs/reference/sankey.md +2 -2
  469. package/docs/reference/scatter.md +8 -4
  470. package/docs/reference/slope.md +9 -5
  471. package/docs/reference/sparkline.md +1 -1
  472. package/docs/reference/status.md +1 -1
  473. package/docs/reference/table.md +33 -114
  474. package/docs/reference/theme.md +12 -4
  475. package/docs/reference/tilemap.md +2 -4
  476. package/docs/reference/treemap.md +1 -1
  477. package/docs/reference/variance.md +12 -6
  478. package/docs/reference/waffle.md +1 -1
  479. package/docs/reference/warnings.md +1077 -0
  480. package/docs/reference/waterfall.md +16 -4
  481. package/docs/use-cases.md +25 -13
  482. package/llms.txt +19 -6
  483. package/package.json +18 -3
  484. package/dist/chunk-5RHP7YTL.js +0 -24
  485. package/dist/chunk-6VU2XI3W.js +0 -89
  486. package/dist/chunk-6WJOHZPW.js +0 -26
  487. package/dist/chunk-FL3FQ2YA.js +0 -27
  488. package/dist/chunk-G5CELEUR.js +0 -26
  489. package/dist/chunk-M4SPKUZE.js +0 -7
  490. package/dist/chunk-OF7FMGH5.js +0 -24
  491. package/dist/chunk-S2TSXUYP.js +0 -24
  492. package/dist/chunk-TKERVBJ3.js +0 -23
  493. package/dist/chunk-VMGTNB6H.js +0 -25
  494. package/dist/chunk-WZL4EEBS.js +0 -11
  495. package/dist/chunk-YJGFT63R.js +0 -27
  496. package/dist/chunk-ZNX5J7D7.js +0 -47
@@ -13,10 +13,10 @@ import {
13
13
  seatValuesOnGround,
14
14
  shadesFills,
15
15
  withoutEvents
16
- } from "./chunk-H6EJ63QN.js";
16
+ } from "./chunk-NT3HCXQC.js";
17
17
  import {
18
18
  preparePolyline
19
- } from "./chunk-Z257SH5U.js";
19
+ } from "./chunk-OZA7HA6L.js";
20
20
  import {
21
21
  FORCE_CATEGORY_RANKS,
22
22
  STAIRCASE,
@@ -33,7 +33,7 @@ import {
33
33
  staircaseRoom,
34
34
  staircaseState,
35
35
  withCategoryRanks
36
- } from "./chunk-F4JAGDPD.js";
36
+ } from "./chunk-UBYDY4B7.js";
37
37
  import {
38
38
  ANOMALY_FLAG_GAP,
39
39
  ANOMALY_FLAG_H,
@@ -50,10 +50,10 @@ import {
50
50
  lineAnomalyFurniture,
51
51
  refuseAnomalySpec,
52
52
  seatFlaggedValues
53
- } from "./chunk-2X6XY4K4.js";
53
+ } from "./chunk-GB3RZYTK.js";
54
54
  import {
55
55
  stackSegmentCandidates
56
- } from "./chunk-7FAO4ICF.js";
56
+ } from "./chunk-HO4ILCW7.js";
57
57
  import {
58
58
  REFERENCE_MARKER_R,
59
59
  rankValueLabels,
@@ -62,20 +62,25 @@ import {
62
62
  referenceMarkerPaint,
63
63
  referenceTickGeometry,
64
64
  withBandValueNotes
65
- } from "./chunk-YBYV56FS.js";
65
+ } from "./chunk-XZOFKLTD.js";
66
66
  import {
67
67
  cellFields,
68
68
  normalizeCategorySeries
69
- } from "./chunk-5WSIH4SR.js";
69
+ } from "./chunk-2CQBBN7M.js";
70
70
  import {
71
71
  unitConflict,
72
72
  unitConflictRefusal
73
73
  } from "./chunk-DZ3S4RPI.js";
74
+ import {
75
+ hasLabelPosition,
76
+ positionBarLabel,
77
+ refuseLabelPosition
78
+ } from "./chunk-76GPN6AT.js";
74
79
  import {
75
80
  roundingUnavailable,
76
81
  shareRoundingNotes,
77
82
  sumConsistentShares
78
- } from "./chunk-IFURKTOL.js";
83
+ } from "./chunk-MXUPMGRY.js";
79
84
  import {
80
85
  averageMarkerLine,
81
86
  averageMarkerMean,
@@ -86,12 +91,12 @@ import {
86
91
  sk,
87
92
  stackParts,
88
93
  warnIncompleteStacks
89
- } from "./chunk-USFIDSTO.js";
94
+ } from "./chunk-ETUKDEGL.js";
90
95
  import {
91
96
  applyCategoryViewport,
92
97
  liveWindowOptions,
93
98
  viewportMeanSpan
94
- } from "./chunk-VY2NPB2Q.js";
99
+ } from "./chunk-JNDWRV34.js";
95
100
  import {
96
101
  haloOverRules,
97
102
  linesSize,
@@ -99,32 +104,32 @@ import {
99
104
  valueRowCrowded,
100
105
  valueShareLines,
101
106
  warnShareParts
102
- } from "./chunk-5HTGSB6Y.js";
107
+ } from "./chunk-TKH655ON.js";
103
108
  import {
104
109
  valueLineExtent
105
110
  } from "./chunk-QPWRHDLZ.js";
106
111
  import {
107
112
  isIncomplete
108
- } from "./chunk-I3DLERI7.js";
113
+ } from "./chunk-AICO24HJ.js";
109
114
  import {
110
115
  emitEventLane,
111
116
  percentLevels,
112
117
  runAnnotatePass,
113
118
  settleEventLane
114
- } from "./chunk-UCIAHSJK.js";
119
+ } from "./chunk-R5SGE2NS.js";
115
120
  import {
116
121
  stepDownFont
117
- } from "./chunk-XFCBH3TI.js";
122
+ } from "./chunk-BHLNSJG7.js";
118
123
  import {
119
124
  breakUnsupported,
120
125
  chartPalette,
121
126
  chartTheme
122
- } from "./chunk-IW3YUMPI.js";
127
+ } from "./chunk-WFBN2HXR.js";
123
128
  import {
124
129
  NO_STACK_MEAN,
125
130
  noTotal,
126
131
  stackAdds
127
- } from "./chunk-JMGB444D.js";
132
+ } from "./chunk-5ACFYNA4.js";
128
133
  import {
129
134
  categoryTargetFields,
130
135
  spliceAnnotationNodes
@@ -134,10 +139,10 @@ import {
134
139
  VALUE_LINE_RESERVE,
135
140
  hiddenValueLineReserve,
136
141
  namedLineText
137
- } from "./chunk-O4D27FKH.js";
142
+ } from "./chunk-E5YF236N.js";
138
143
  import {
139
144
  structureCount
140
- } from "./chunk-XCROSJ2Z.js";
145
+ } from "./chunk-KW4JXWHO.js";
141
146
  import {
142
147
  CATEGORY_ROW_FROM_END,
143
148
  CATEGORY_ROW_VERTICAL,
@@ -164,17 +169,18 @@ import {
164
169
  planCategoryRow,
165
170
  plotFloorRows,
166
171
  rotatedClaimRect,
167
- rotatedLeftOverhang,
168
172
  sweepHide,
169
173
  tickFormatter,
170
174
  verticalNameRect,
171
- yearRowRequests
172
- } from "./chunk-AFGQXMKT.js";
175
+ yearRowRequests,
176
+ yieldToRotatedName
177
+ } from "./chunk-GNMB72V7.js";
173
178
  import {
174
179
  AREA_FILL_PART,
175
180
  DEFER_DENSITY_NOTES,
176
181
  DENSITY_LAYOUT_OPTIONS,
177
182
  DENSITY_VALUES,
183
+ HOST_CLAIMS,
178
184
  LAST_RESORT_PENALTY,
179
185
  PARTIAL_KEY,
180
186
  POINTED_NOTES,
@@ -182,10 +188,7 @@ import {
182
188
  authoredFootnoteCount,
183
189
  authoredNotes,
184
190
  categoryLabelsAndMarks,
185
- cleanSum,
186
191
  composedTextRole,
187
- createOccupiedIndex,
188
- defaultAnnotationId,
189
192
  frameTextOptions,
190
193
  labelsToNodes,
191
194
  normalizeLegendOption,
@@ -198,13 +201,9 @@ import {
198
201
  partialLegendKeys,
199
202
  partialPattern,
200
203
  plotHeightAfter,
201
- rectContains,
202
204
  rectSeriesAdjacentWarnings,
203
- rectsOverlap,
204
- round2,
205
205
  saysToDate,
206
206
  scenarioLegendKeys,
207
- sideAwayFrom,
208
207
  solveFrame,
209
208
  solveLabels,
210
209
  textCarriesUnit,
@@ -213,7 +212,7 @@ import {
213
212
  toDateRoom,
214
213
  withAuthoredFootnotes,
215
214
  withCategoryNoteNames
216
- } from "./chunk-WSKZZ2ZB.js";
215
+ } from "./chunk-4OJF6DXL.js";
217
216
  import {
218
217
  copyFrame,
219
218
  disclosureNote,
@@ -222,18 +221,23 @@ import {
222
221
  rankKeyShown,
223
222
  recordFreedChrome,
224
223
  wrapFootnote
225
- } from "./chunk-WZB6R2ZX.js";
224
+ } from "./chunk-DZYTXZNS.js";
225
+ import {
226
+ defaultAnnotationId
227
+ } from "./chunk-F2ET5ZTT.js";
226
228
  import {
227
229
  emptyIdRecord
228
230
  } from "./chunk-LINZPU5D.js";
229
231
  import {
230
232
  formatStatWithSpec,
231
233
  formatterFromExample,
232
- memoFormatterFromExample,
234
+ parseFormatExample,
233
235
  percentRasterFormatter,
236
+ roundedNumber,
234
237
  sameUnit,
235
- seriesRasterFormatter
236
- } from "./chunk-D3PQAVFW.js";
238
+ seriesRasterFormatter,
239
+ unitMagnitude
240
+ } from "./chunk-Z6DUNKFU.js";
237
241
  import {
238
242
  NOT_AVAILABLE,
239
243
  autoDecimals,
@@ -245,32 +249,38 @@ import {
245
249
  } from "./chunk-MSYTF3DZ.js";
246
250
  import {
247
251
  canvasMargin,
252
+ cleanSum,
253
+ colorRolePaints,
254
+ createOccupiedIndex,
248
255
  dashToken,
249
256
  effectiveFill,
250
257
  emphasisWeight,
251
258
  labelsOffKeepsNames,
252
259
  markOutlineOff,
253
- markRolePaint,
254
260
  markRoleToken,
255
261
  mutedMarkPaint,
256
262
  namesOnly,
257
263
  paintColor,
258
264
  panelTypeClass,
259
265
  recedingSeriesId,
266
+ rectContains,
267
+ rectsOverlap,
268
+ round2,
260
269
  secondaryFont,
261
270
  segmentSeparationStroke,
262
271
  seriesPaint,
263
272
  seriesTextPaint,
273
+ sideAwayFrom,
264
274
  strokeToken,
265
275
  textScaleOf,
266
276
  withSegmentSeams
267
- } from "./chunk-JARJP576.js";
277
+ } from "./chunk-TX5FSNAU.js";
268
278
  import {
269
279
  curvePathFromSegments,
270
280
  drawnStroke,
271
281
  monotoneSegments,
272
282
  splitCurveSegmentsAtX
273
- } from "./chunk-JYAZPMSA.js";
283
+ } from "./chunk-6IUK6PAH.js";
274
284
  import {
275
285
  NormalizeError,
276
286
  accessibleTitle,
@@ -279,16 +289,16 @@ import {
279
289
  resolveSize,
280
290
  resolveSubtitle,
281
291
  scaleTextPx
282
- } from "./chunk-FX5VZK5F.js";
292
+ } from "./chunk-RJICOOB3.js";
293
+ import {
294
+ defaultMeasurer,
295
+ wrapText
296
+ } from "./chunk-UIHGGWES.js";
283
297
  import {
284
298
  maxOf,
285
299
  minOf,
286
300
  pushAll
287
301
  } from "./chunk-WYJEOMNY.js";
288
- import {
289
- defaultMeasurer,
290
- wrapText
291
- } from "./chunk-UIHGGWES.js";
292
302
 
293
303
  // src/core/charts/combo/axisTitles.ts
294
304
  var ROW_GAP = 18, SWATCH_BOX = 10, SWATCH_LINE = 14, SWATCH_GAP = 5, TITLE_GAP = 4, TITLE_TOP = 4;
@@ -429,7 +439,7 @@ function unusedEndpointGutters(gutters, solved, plot) {
429
439
  }
430
440
  function flagDroppedEndpointLabels(solved) {
431
441
  for (let warning of solved.warnings)
432
- warning.code !== "label-hidden" || !warning.message.startsWith("label 'point:") || (warning.severity = "warn", warning.message += `; nothing within ${ENDPOINT_MAX_GAP}px of its point is free`);
442
+ warning.code !== "label-hidden" || !String(warning.detail?.labelId).startsWith("point:") || (warning.severity = "warn", warning.message += `; nothing within ${ENDPOINT_MAX_GAP}px of its point is free`);
433
443
  }
434
444
  var STROKE_CLEAR = 2;
435
445
  function clearOfStrokes(candidates, strokes) {
@@ -577,12 +587,15 @@ function resolveComboEnv(options, warnings) {
577
587
  theme,
578
588
  palette: paletteRamp ? options.palette : void 0,
579
589
  size: resolveSize(options.size),
580
- byExample: memoFormatterFromExample(),
581
590
  measure: options.measure ?? defaultMeasurer,
582
591
  highlights: new Set(resolveHighlight(options.highlight)),
583
592
  density: options.labelDensity ?? "smart"
584
593
  };
585
594
  }
595
+ function totalColumn(domain, ci) {
596
+ let populated = domain.columns.filter((column) => column.vals[ci].v !== null), drawn = populated.filter((column) => column.vals[ci].v !== 0);
597
+ return populated.length === 1 ? populated[0] : drawn.length === 1 ? drawn[0] : void 0;
598
+ }
586
599
  function normalizeComboData(data) {
587
600
  let { cats, series } = normalizeCategorySeries("combo", data, (s, cells) => ({
588
601
  id: s.id,
@@ -635,7 +648,7 @@ function comboAxisGate(options, seriesNorm, columns, lines, warnings) {
635
648
  for (let s of secondaryRequested) s.axis = "primary";
636
649
  let ids = secondaryRequested.map((s) => `'${s.id}'`).join(", ");
637
650
  warnings.push({
638
- code: "dual-axis",
651
+ code: "dual-axis-unacknowledged",
639
652
  severity: "error",
640
653
  message: `series ${ids} ${secondaryRequested.length === 1 ? "requests" : "request"} the secondary axis without options.secondaryAxis.acknowledge \u2014 a dual-axis chart is refused unless acknowledged`,
641
654
  suggest: `for genuinely independent units, set options.secondaryAxis = { acknowledge: true }; for a share of a total, remove axis: 'secondary' from ${ids} and set options.secondaryAxis.ruler`,
@@ -721,18 +734,33 @@ function primaryDomain(options, gate, extent, fmt, warnings) {
721
734
  return { dLo, dHi, pticks, stepTicks: stepped.ticks };
722
735
  }
723
736
  function pinnedStep(lo, hi, rows) {
737
+ return dividingStep(lo, hi, rows) ?? ((hi - lo) / rows || 1);
738
+ }
739
+ function dividingStep(lo, hi, rows) {
724
740
  let even = (hi - lo) / rows || 1;
725
741
  return ladderSteps(even / 2, even * 2, PRIMARY_MANTISSAS).filter((step) => Math.abs((hi - lo) / step - Math.round((hi - lo) / step)) < 1e-9).reduce((best, step) => {
726
742
  if (best === void 0) return step;
727
743
  let off = Math.abs((hi - lo) / step - rows), bestOff = Math.abs((hi - lo) / best - rows);
728
744
  return off < bestOff - 1e-9 || Math.abs(off - bestOff) <= 1e-9 && step < best ? step : best;
729
- }, void 0) ?? even;
745
+ }, void 0);
746
+ }
747
+ function latticeTicks(lo, hi, rows) {
748
+ let even = (hi - lo) / rows || 1, best;
749
+ for (let step of ladderSteps(even / 2, even * 2, PRIMARY_MANTISSAS)) {
750
+ let from = roundTick(Math.ceil(lo / step - 1e-9) * step), to = roundTick(Math.floor(hi / step + 1e-9) * step), intervals = Math.round((to - from) / step);
751
+ if (intervals < 1) continue;
752
+ let off = Math.abs(intervals - rows);
753
+ (!best || off < best.off) && (best = { step, from, to, off });
754
+ }
755
+ return best && { step: best.step, from: best.from, to: best.to };
730
756
  }
731
757
  function rightAxis(options, gate, raw, primary, secondarySpec, fixed) {
732
- let { secOpt, ruler, secondaryActive, secondaryRequested } = gate, { pticks } = primary, nTicks = pticks.length, lang = options.locale?.language, secondaryDomain, secStep = 1;
758
+ let { secOpt, ruler, secondaryActive, secondaryRequested } = gate, { pticks } = primary, nTicks = pticks.length, lang = options.locale?.language, secondaryDomain, secStep = 1, secTickRange;
733
759
  if (secondaryActive && secOpt?.domain) {
734
760
  let lo = Math.min(secOpt.domain[0], raw.lo), hi = Math.max(secOpt.domain[1], raw.hi);
735
- secStep = pinnedStep(lo, hi, nTicks - 1), secondaryDomain = [roundTick(lo), roundTick(hi)];
761
+ secStep = pinnedStep(lo, hi, nTicks - 1);
762
+ let example = secOpt.format ?? secondaryRequested.find((s) => s.format)?.format, spec = example === void 0 ? void 0 : parseFormatExample(example), lattice = spec !== void 0 && dividingStep(lo, hi, nTicks - 1) === void 0 && Array.from({ length: nTicks }, (_, i) => roundTick(lo + secStep * i)).some((tick) => roundedNumber(tick, spec) !== tick) ? latticeTicks(lo, hi, nTicks - 1) : void 0;
763
+ lattice && (secStep = lattice.step), secondaryDomain = [roundTick(lo), roundTick(hi)], lattice && (secTickRange = [lattice.from, lattice.to]);
736
764
  } else if (secondaryActive && fixed !== void 0)
737
765
  secStep = fixed.step, secondaryDomain = [roundTick(fixed.start), roundTick(fixed.start + fixed.step * (nTicks - 1))];
738
766
  else if (secondaryActive) {
@@ -743,7 +771,7 @@ function rightAxis(options, gate, raw, primary, secondarySpec, fixed) {
743
771
  }
744
772
  let secFmtSrc = secondaryRequested.find((s) => s.format)?.format, secAxisFmtSrc = secondaryActive ? secOpt?.format : void 0, secondaryAllPct = !secAxisFmtSrc && !secFmtSrc && secondaryRequested.length > 0 && secondaryRequested.every((s) => s.unit === "%" || s.vals.every((val) => val.v === null || val.isPct)) && secondaryRequested.some((s) => s.unit === "%" || s.vals.some((val) => val.isPct));
745
773
  if (secondaryDomain) {
746
- let rows = Math.round((secondaryDomain[1] - secondaryDomain[0]) / secStep), secTickValues = Array.from({ length: rows + 1 }, (_, i) => roundTick(secondaryDomain[0] + secStep * i)), pctDecimals = secondaryAllPct ? Math.max(0, ...secTickValues.map((tv) => {
774
+ let [tickFrom, tickTo] = secTickRange ?? secondaryDomain, rows = Math.round((tickTo - tickFrom) / secStep), secTickValues = Array.from({ length: rows + 1 }, (_, i) => roundTick(tickFrom + secStep * i)), pctDecimals = secondaryAllPct ? Math.max(0, ...secTickValues.map((tv) => {
747
775
  for (let d = 0; d <= 3; d++)
748
776
  if (Math.abs(tv - Number(tv.toFixed(d))) < 1e-9) return d;
749
777
  return 3;
@@ -886,7 +914,9 @@ function comboAnomalyModel(spec, cats, lines, secondary, primary, pctFmt, locale
886
914
  "anomaly-single-series",
887
915
  "options.anomaly",
888
916
  `anomaly on a combo judges its one line series; got ${lineSeries.length} \u2014 a robust score across two different measures is meaningless`,
889
- "give exactly one series kind 'line', or chart the measure on its own line chart"
917
+ "give exactly one series kind 'line', or chart the measure on its own line chart",
918
+ void 0,
919
+ ["options", "anomaly"]
890
920
  );
891
921
  refuseAnomalySpec(spec);
892
922
  let series = lineSeries[0], onSecondary = series.axis === "secondary" && secondary !== primary, raster = onSecondary ? secondary : primary, isPct = series.vals.some((val) => val.isPct), fmt = isPct ? pctFmt : raster.fmt, statFmt = isPct ? (v) => formatAutomaticPercent(v, 2, !1, locale) : (v) => formatStatWithSpec(v, raster.spec), present = cats.flatMap((c, ci) => {
@@ -909,16 +939,16 @@ function comboBandFraction(options, count) {
909
939
  function resolveComboDomain(data, options, warnings, theme) {
910
940
  let { cats, seriesNorm } = normalizeComboData(data), dataSeries = seriesNorm.filter((s) => s.role !== "reference"), refs = seriesNorm.filter((s) => s.role === "reference");
911
941
  if (dataSeries.length === 0)
912
- throw new NormalizeError("empty-data", "series", "combo requires at least one data-role series");
942
+ throw new NormalizeError("empty-data", "series", "combo requires at least one data-role series", void 0, void 0, ["data", "series"]);
913
943
  let columns = dataSeries.filter((s) => s.kind === "column"), lines = dataSeries.filter((s) => s.kind !== "column"), chartInterpolation = options.interpolate ?? "linear", gate = comboAxisGate(options, seriesNorm, columns, lines, warnings), { secondaryActive } = gate;
914
944
  comboUnitConflicts(options, seriesNorm, dataSeries, secondaryActive, warnings);
915
945
  let rasterFor = (axis) => {
916
- let group = seriesNorm.filter((s) => (s.axis ?? "primary") === axis), units = new Set(group.map((s) => s.unit)), printed = axis === "primary" && options.format ? seriesNorm.filter((s) => !s.format) : group, shared2 = units.size === 1 ? [...units][0] : void 0;
946
+ let group = seriesNorm.filter((s) => (s.axis ?? "primary") === axis), units = new Set(group.flatMap((s) => s.unit === void 0 || s.unit === "%" || s.vals.every((val) => val.isPct) ? [] : [s.unit])), printed = axis === "primary" && options.format ? seriesNorm.filter((s) => !s.format) : group, shared2 = units.size === 1 ? [...units][0] : void 0, unnamed = units.size === 0 && unitMagnitude(options.unit) !== void 0 ? options.unit : void 0;
917
947
  return seriesRasterFormatter(
918
948
  axis === "primary" ? options.format : void 0,
919
949
  printed.flatMap((s) => s.vals.filter((val) => !val.isPct).map((val) => val.v)),
920
950
  options.locale?.language,
921
- axis === "primary" ? options.unit ?? shared2 : shared2,
951
+ axis === "primary" ? options.unit ?? shared2 : shared2 ?? unnamed,
922
952
  options.target,
923
953
  axis === "primary" ? options.defaultFormat : void 0,
924
954
  columns.length > 1
@@ -990,22 +1020,24 @@ function resolveComboDomain(data, options, warnings, theme) {
990
1020
  clearance: options[LINE_BAND_CLEARANCE]
991
1021
  } : void 0, shared = lineBandScaleInput ? dualAxisScales(lineBandScaleInput) : void 0;
992
1022
  shared && (primary = { dLo: 0, dHi: shared.pticks[shared.pticks.length - 1], pticks: shared.pticks });
993
- let floatOver = (clearance) => hi <= maxOf(posTop) ? floatedLineScales(maxOf(posTop), lines, secondaryLine, clearance) : void 0, floated = lineBandScaleInput && !shared ? floatOver(options[FLOAT_BAND_CLEARANCE] ?? lineBandScaleInput.clearance ?? LINE_CLEARANCE) : void 0;
1023
+ let floatValuesPrint = anomalyRun?.onSecondary === !0 || ["all", "extremes"].includes(comboValueLabels(options, anatomy, cats.length, !0)) && options.labels !== !1 && options.labels?.point !== !1, floatOver = (clearance) => floatValuesPrint && hi <= maxOf(posTop) ? floatedLineScales(maxOf(posTop), lines, secondaryLine, clearance) : void 0, floated = lineBandScaleInput && !shared ? floatOver(options[FLOAT_BAND_CLEARANCE] ?? lineBandScaleInput.clearance ?? LINE_CLEARANCE) : void 0;
994
1024
  floated && (primary = floated.primary), warnFlatLines(data, options, dataSeries, primary, secondaryActive, warnings);
995
1025
  let aligned = secondaryActive && !shared && !gate.secOpt?.domain && pinnedBy.length === 0 && negative ? zeroAlignedAxes(primary, { lo: sLoRaw, hi: sHiRaw }) : void 0;
996
1026
  aligned && (primary = aligned.primary);
997
- let right = floated ? {
998
- secFmtSrc: rightAxis(effective, gate, { lo: sLoRaw, hi: sHiRaw }, primary, secondarySpec).secFmtSrc,
999
- secondaryDomain: floated.secondaryDomain,
1000
- rightTicks: []
1001
- } : rightAxis(
1027
+ let right = floated ? { secondaryDomain: floated.secondaryDomain, rightTicks: [] } : rightAxis(
1002
1028
  effective,
1003
1029
  gate,
1004
1030
  { lo: sLoRaw, hi: sHiRaw },
1005
1031
  primary,
1006
1032
  secondarySpec,
1007
1033
  shared ? { step: shared.secondaryStep, start: 0 } : aligned?.secondary
1008
- ), fmtSecondary = secondarySpec.fmt, beforeCorridor = warnings.slice(), squeezeWarning = () => ({
1034
+ ), fmtSecondary = secondarySpec.fmt, scaleFmtOf = (s) => s.axis === "secondary" && secondaryActive && s.role !== "reference" ? s.unit === "%" ? secondarySpec.fmtPercent : fmtSecondary : fmt, valueFmtOf = (s, value) => {
1035
+ let onSecondary = s.axis === "secondary" && secondaryActive && s.role !== "reference";
1036
+ return value?.format || s.format ? (onSecondary ? secondarySpec : valueSpec).forSeries(s, value?.format) : !onSecondary && options.format ? fmt : value?.isPct ? pctFmt : scaleFmtOf(s);
1037
+ }, totalFmtOf = (ci) => {
1038
+ let single = totalColumn({ columns }, ci);
1039
+ return single ? valueFmtOf(single, single.vals[ci]) : fmt;
1040
+ }, beforeCorridor = warnings.slice(), squeezeWarning = () => ({
1009
1041
  code: "dual-axis-columns-squeezed",
1010
1042
  severity: "info",
1011
1043
  message: "the line runs over the columns on every pair of scales that keeps them a third of the plot high, so the columns shrink below a third of the plot to leave the line a clear band",
@@ -1048,13 +1080,8 @@ function resolveComboDomain(data, options, warnings, theme) {
1048
1080
  fmt,
1049
1081
  valueSpec: valueSpec.spec,
1050
1082
  pctFmt,
1051
- // A secondary '%' series prints its '%' like the right axis does.
1052
- scaleFmtOf: (s) => s.axis === "secondary" && secondaryActive ? s.unit === "%" ? secondarySpec.fmtPercent : fmtSecondary : fmt,
1053
- explicitFormatOf: (s, value) => value.format ?? s.format ?? (s.axis === "secondary" && secondaryActive ? void 0 : options.format),
1054
- // Fallback is the SECONDARY scale group's raster, not the primary fmt: the
1055
- // right axis is a different unit, and integer revenue must not strip the
1056
- // decimal off a 48.3-units marker display (the per-scale raster).
1057
- secFmt: right.secFmtSrc ? formatterFromExample(right.secFmtSrc, options.locale?.language) : fmtSecondary,
1083
+ valueFmtOf,
1084
+ totalFmtOf,
1058
1085
  sourceMean,
1059
1086
  meanSpan,
1060
1087
  averageMarkerId,
@@ -1142,9 +1169,9 @@ function comboPaints(env, domain) {
1142
1169
  if (columns.length === 1) return { token: "focus", tint: columnTint };
1143
1170
  let amount = stackTint(columnTint, columns.length, columns.indexOf(s));
1144
1171
  return amount > 0 ? { token: "focus", tint: amount } : { token: "focus" };
1145
- }, receding = recedingSeriesId([...columns, ...domain.lines], highlights), column = (s, colIdx) => {
1172
+ }, receding = recedingSeriesId([...columns, ...domain.lines], highlights), lineIds = new Set(domain.lines.map((s) => s.id)), roles = colorRolePaints([...columns, ...domain.lines], (id) => !lineIds.has(id)), column = (s, colIdx) => {
1146
1173
  if (s.fill) return { css: s.fill };
1147
- if (s.colorRole) return markRolePaint(s.colorRole, !0);
1174
+ if (s.colorRole) return roles.get(s.id);
1148
1175
  if (s.id === receding) return mutedMarkPaint();
1149
1176
  let themed = tinted(s, s.scenario);
1150
1177
  return themed || (columns.length === 1 ? seriesPaint(colIdx, palette, s.scenario) : seriesPaint(colIdx, palette));
@@ -1174,7 +1201,7 @@ function comboPaints(env, domain) {
1174
1201
  };
1175
1202
  }, css, column, cell, pattern, inside, top, line: (s, li) => {
1176
1203
  if (s.fill) return { css: s.fill };
1177
- if (s.colorRole) return markRolePaint(s.colorRole);
1204
+ if (s.colorRole) return roles.get(s.id);
1178
1205
  if (highlights.has(s.id)) return { token: "focus" };
1179
1206
  if (s.id === receding) return mutedMarkPaint();
1180
1207
  let plan = planStyle(s);
@@ -1361,23 +1388,23 @@ function kindSetting(domain, kind) {
1361
1388
  let v = l?.[kind];
1362
1389
  return v === void 0 ? !0 : v;
1363
1390
  }
1364
- function composeLines(domain, content, value, catLabel, serLabel, serFmt) {
1365
- let { abs, isPct, share } = value, explicit = value.format ? value.format === domain.options.format ? domain.fmt : formatterFromExample(value.format, domain.options.locale?.language) : void 0, parts = [];
1391
+ function composeLines(domain, content, value, catLabel, serLabel, valueFmt) {
1392
+ let { abs, isPct, share } = value, parts = [];
1366
1393
  for (let c of content)
1367
- c === "absolute" && abs !== null ? parts.push([c, explicit ? explicit(abs) : isPct ? domain.pctFmt(abs) : serFmt(abs)]) : c === "percent" && abs !== null && isPct ? parts.push([c, explicit ? explicit(abs) : domain.pctFmt(abs)]) : c === "percent" && share !== void 0 && share !== null ? parts.push([c, value.shareText ?? formatShare(share, domain.options.locale?.language)]) : c === "category" && catLabel ? parts.push([c, catLabel]) : c === "series" && serLabel && parts.push([c, serLabel]);
1394
+ c === "absolute" && abs !== null ? parts.push([c, valueFmt(abs)]) : c === "percent" && abs !== null && isPct ? parts.push([c, valueFmt(abs)]) : c === "percent" && share !== void 0 && share !== null ? parts.push([c, value.shareText ?? formatShare(share, domain.options.locale?.language)]) : c === "category" && catLabel ? parts.push([c, catLabel]) : c === "series" && serLabel && parts.push([c, serLabel]);
1368
1395
  return valueShareLines(parts);
1369
1396
  }
1370
1397
  function composeText(...args) {
1371
1398
  return composeLines(...args).join(" ");
1372
1399
  }
1373
1400
  function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
1374
- let { theme, measure, highlights, size } = env, { frame, leftAxisReserve } = framed, { options, cats, columns, lines, showPrimaryAxis, rightTicks } = domain, rightAxisActive = rightTicks.length > 0, tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, strongFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, gtH = measure("0", strongFont).height, gtContent = columns.length > 0 && domain.columnsAdd ? contentOf(domain, "grandTotal", ["absolute"]) : null, tallest = Math.max(0, maxOf(domain.posTop)), estPlotH = frame.plot.h - 8 - 4 * gtH, totalsAirInScale = domain.dHi > domain.dLo && tallest > 0 && (domain.dHi - tallest) / (domain.dHi - domain.dLo) * estPlotH >= gtH + 6 + 4 && frame.plot.w / Math.max(1, cats.length) * 0.6 >= Math.max(0, maxOf(cats.map((c) => measure(composeText(
1401
+ let { theme, measure, highlights, size } = env, { frame, leftAxisReserve } = framed, { options, cats, columns, lines, showPrimaryAxis, rightTicks } = domain, rightAxisActive = rightTicks.length > 0, tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, strongFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, gtH = measure("0", strongFont).height, gtContent = columns.length > 0 && domain.columnsAdd ? contentOf(domain, "grandTotal", ["absolute"]) : null, tallest = Math.max(0, maxOf(domain.posTop)), estPlotH = frame.plot.h - 8 - 4 * gtH, totalsAirInScale = domain.dHi > domain.dLo && tallest > 0 && (domain.dHi - tallest) / (domain.dHi - domain.dLo) * estPlotH >= gtH + 6 + 4 && frame.plot.w / Math.max(1, cats.length) * 0.6 >= Math.max(0, maxOf(cats.map((c, ci) => measure(composeText(
1375
1402
  domain,
1376
1403
  gtContent ?? ["absolute"],
1377
- { abs: domain.stackTotals[c.id] ?? 0, isPct: !1, format: domain.options.format },
1404
+ { abs: domain.stackTotals[c.id] ?? 0, isPct: totalColumn(domain, ci)?.vals[ci]?.isPct ?? !1 },
1378
1405
  c.label ?? c.id,
1379
1406
  "",
1380
- domain.fmt
1407
+ domain.totalFmtOf(ci)
1381
1408
  ), strongFont).width))) + 8, totalsRow = gtContent && !(domain.anatomy && columns.length === 1) && !totalsAirInScale ? gtH + 6 : 0, columnTitlePaint = (paint) => "tint" in paint && paint.tint !== void 0 ? { token: "ink" } : paint, titles = { ...domain.options.axisTitles };
1382
1409
  if (domain.secondaryActive) for (let side of ["primary", "secondary"]) {
1383
1410
  let group = domain.data.filter((s) => s.axis === side), units = new Set(group.map((s) => s.unit).filter(Boolean)), unit = side === "primary" ? options.unit ?? (units.size === 1 ? [...units][0] : void 0) : units.size === 1 ? [...units][0] : void 0;
@@ -1422,10 +1449,10 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
1422
1449
  return composeText(
1423
1450
  domain,
1424
1451
  pointContent ?? ["absolute"],
1425
- { abs: value.v, isPct: value.isPct, format: domain.explicitFormatOf(series, value) },
1452
+ { abs: value.v, isPct: value.isPct },
1426
1453
  cats[ci].label ?? cats[ci].id,
1427
1454
  series.label,
1428
- series.format ? env.byExample(series.format) : domain.scaleFmtOf(series)
1455
+ domain.valueFmtOf(series, value)
1429
1456
  );
1430
1457
  },
1431
1458
  {
@@ -1485,7 +1512,7 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
1485
1512
  }
1486
1513
  let band = bandFor(plotX0, plotW0), categoryNames = cats.map((category) => category.label ?? category.id), periodRow = cats.some((category) => category.calendar) || isDateNumericTickSequence(categoryNames) || calendarLike(categoryNames) || categoryNames.every((label) => /^[MWT]\d+$/i.test(label)), authored = authoredDateTicks(cats, options, warnings);
1487
1514
  bandedCrossesBetween(options, warnings);
1488
- let planRow = (b, ticked2) => {
1515
+ let planRow = (b, ticked2, rotate) => {
1489
1516
  let row = categoryLabelsAndMarks(cats, { count: authoredFootnoteCount(options), warnings }, partialAxisWords(options.strings, options, frame.legend?.items.some((item) => item.id === "__partial") || partialNamedOnTotals(env, domain)));
1490
1517
  return ticked2?.name(row), withCategoryRanks(planCategoryRow({
1491
1518
  rotate: !cats.every((c) => MONTH_START.exec((c.label ?? c.id).trim())?.[0] === (c.label ?? c.id).trim()),
@@ -1512,12 +1539,11 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
1512
1539
  ...disclosuresShown(options) ? { cutMarkFrom: authoredFootnoteCount(options) + 1 } : rankKeyShown(options) ? {} : { everyName: !0 },
1513
1540
  ...ticked2?.plan,
1514
1541
  // An authored interval counts back from the latest period, as on a line.
1515
- ...ticked2 !== void 0 && ticked2 === authored ? { ordered: !0, strideFromEnd: !0 } : {}
1542
+ ...ticked2 !== void 0 && ticked2 === authored ? { ordered: !0, strideFromEnd: !0 } : {},
1543
+ ...rotate === !1 ? { rotate } : {}
1516
1544
  }), measure, cats.map((c) => c.label ?? c.id), options[FORCE_CATEGORY_RANKS] === !0, rankKeyShown(options));
1517
1545
  }, catPlan = planRow(band, authored), ticked = authored ?? (options[CATEGORY_ROW_FROM_END] === !1 ? void 0 : longDayMonths(cats, catPlan.stride, options.locale?.language));
1518
- ticked && ticked !== authored && (catPlan = planRow(band, ticked));
1519
- let catOverhang = stair ? 0 : rotatedLeftOverhang(catPlan, cats.map((_, ci) => band.center(ci)), 4);
1520
- catOverhang > 0 && (plotX0 += catOverhang, plotW0 -= catOverhang, band = bandFor(plotX0, plotW0), catPlan = planRow(band, ticked));
1546
+ ticked && ticked !== authored && (catPlan = planRow(band, ticked)), stair || ({ plan: catPlan, band } = yieldToRotatedName(catPlan, band, cats.length, plotX0, plotW0, bandFor, (b, rotate) => planRow(b, ticked, rotate)));
1521
1547
  let showCatTickRow = kindSetting(domain, "category") !== !1 && cats.length > 0 && !stair;
1522
1548
  showCatTickRow && (pushAll(warnings, catPlan.warnings), catPlan.step === "ranks" && warnings.push(categoryRanksLint(cats.map((c) => c.label ?? c.id), band.step)));
1523
1549
  let catBandH = showCatTickRow ? catPlan.rowHeight + 8 : 0, hangingRoom = showCatTickRow && domain.options.labels !== !1 ? Math.max(measure("0", labelFont).height, gtH) + 4 : 0, lowest = Math.min(0, minOf(domain.negBot)), hangingEnd = Math.min(0, minOf(domain.negBot.map((bottom, ci) => domain.posTop[ci] <= 0 ? bottom : 0))), rawBandPad = options[BAND_PAD] ?? 0, baseTopPad = topPad, plotH0NoBand = frame.plot.h - catBandH - baseTopPad, hangingReserveNoBand = hangingLabelReserve(plotH0NoBand, [domain.dLo, domain.dHi], hangingEnd, hangingRoom), minRawH = Math.max(10, options.mode === "compact" ? 80 : 0), bandPad = rawBandPad > 0 ? Math.max(0, Math.min(rawBandPad, Math.floor(plotH0NoBand - hangingReserveNoBand - minRawH))) : 0;
@@ -1631,7 +1657,7 @@ function segmentLabels(env, domain, area, geometry, paints, requests, warnings)
1631
1657
  warnShareParts(warnings, mixedSigns, unavailable);
1632
1658
  let tooWide = !1, first = requests.length;
1633
1659
  for (let { s, si, ci, v, rect } of geometry.segments) {
1634
- let c = domain.cats[ci], val = s.vals[ci], serFmt = s.format ? env.byExample(s.format) : domain.scaleFmtOf(s), share = shareBasis[ci] > 0 ? v / shareBasis[ci] * 100 : null, lines = composeLines(domain, content, { abs: v, isPct: val.isPct, share, shareText: domain.shareTexts.get(`${c.id}\0${s.id}`), format: val.format ?? s.format ?? domain.options.format }, c.label ?? c.id, s.label, serFmt), text = lines.join(" "), single = v !== 0 && onePartDrawn(domain.columns.map((column) => column.vals[ci].v)), printed = val.isPct || share !== null ? content : content.filter((part) => part !== "percent");
1660
+ let c = domain.cats[ci], val = s.vals[ci], share = shareBasis[ci] > 0 ? v / shareBasis[ci] * 100 : null, lines = composeLines(domain, content, { abs: v, isPct: val.isPct, share, shareText: domain.shareTexts.get(`${c.id}\0${s.id}`) }, c.label ?? c.id, s.label, domain.valueFmtOf(s, val)), text = lines.join(" "), single = v !== 0 && onePartDrawn(domain.columns.map((column) => column.vals[ci].v)), printed = val.isPct || share !== null ? content : content.filter((part) => part !== "percent");
1635
1661
  if (typeof val.labelOverride == "string" && (text = val.labelOverride.replace(/\$\{value\}/g, text), lines = [text]), !text && val.labelOverride !== !1) continue;
1636
1662
  let tsize = linesSize(lines, labelFont, env.measure), fits = tsize.height + 2 <= rect.h && tsize.width + 4 <= band.bandwidth, sliver = env.density !== "full" && rect.h < SLIVER_MIN_H, hl = env.highlights.has(c.id) || env.highlights.has(s.id), priority = val.priority ?? PRIORITY.interior + Math.min(99, Math.abs(v)) + (hl ? PRIORITY.highlightBonus : 0);
1637
1663
  typeof val.labelOverride != "string" && val.labelOverride !== !1 && !sliver && !single && env.density !== "full" && tsize.width > rect.w && (tooWide = !0), requests.push({
@@ -1648,6 +1674,8 @@ function segmentLabels(env, domain, area, geometry, paints, requests, warnings)
1648
1674
  typeRole: "label",
1649
1675
  font: labelFont,
1650
1676
  priority,
1677
+ // A highlighted value passes the minimal density gate.
1678
+ ...hl ? { keepWhenDense: !0 } : {},
1651
1679
  redundant: val.labelOverride === !1 || sliver,
1652
1680
  // A value prints inside its own segment or nowhere. Beside the column
1653
1681
  // the value would stand in the gap between two stacks, as near the next
@@ -1673,16 +1701,12 @@ function insideSeats(candidates, rect, labelH) {
1673
1701
  ].filter((seat) => Math.abs(seat.rect.y - centre.rect.y) >= 1 && seat.rect.y >= rect.y && seat.rect.y + labelH <= rect.y + rect.h);
1674
1702
  return [...inside, ...edges];
1675
1703
  }
1676
- function totalColumn(domain, ci) {
1677
- let populated = domain.columns.filter((column) => column.vals[ci].v !== null), drawn = populated.filter((column) => column.vals[ci].v !== 0);
1678
- return populated.length === 1 ? populated[0] : drawn.length === 1 ? drawn[0] : void 0;
1679
- }
1680
1704
  function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes = []) {
1681
1705
  let gtContent = domain.columns.length > 0 && domain.columnsAdd ? contentOf(domain, "grandTotal", ["absolute"]) : null;
1682
1706
  if (!gtContent) return;
1683
1707
  let { posTop, negBot } = domain, { y, band, strongFont } = area, authored = /* @__PURE__ */ new Set(), bare = /* @__PURE__ */ new Set(), linked = new Map(requests.flatMap((req) => req.printedIn ? [[req.printedIn, req.id]] : [])), valueAlone = gtContent.join() === "absolute", shares = domain.options[FIRST_END_BELOW_TOTALS] === !0, backLink = (id, words) => !words && valueAlone && linked.has(id) ? { printedIn: linked.get(id) } : {}, crossesRules = domain.averageMarkerId !== void 0 || (domain.options.annotations ?? []).some((annotation) => annotation.kind === "valueLine"), texts = domain.cats.map((c, ci) => {
1684
1708
  if (!domain.anyByCat[ci]) return null;
1685
- let single = totalColumn(domain, ci), cell = single?.vals[ci], composed = composeText(domain, gtContent, { abs: domain.stackTotals[c.id], isPct: cell?.isPct ?? !1, format: cell?.format ?? single?.format ?? domain.options.format }, c.label ?? c.id, "", domain.fmt), override = cell?.labelOverride;
1709
+ let cell = totalColumn(domain, ci)?.vals[ci], composed = composeText(domain, gtContent, { abs: domain.stackTotals[c.id], isPct: cell?.isPct ?? !1 }, c.label ?? c.id, "", domain.totalFmtOf(ci)), override = cell?.labelOverride;
1686
1710
  return override === !1 ? null : (typeof override == "string" && authored.add(c.id), namesOnly(cell?.isPct ? gtContent : gtContent.filter((part) => part !== "percent"), override).printsFor && bare.add(c.id), (typeof override == "string" ? override.replace(/\$\{value\}/g, composed) : composed) || null);
1687
1711
  }), anatomyFont = domain.anatomy && domain.columns.length === 1 ? { ...strongFont } : void 0, insideFont = anatomyFont && texts.every((text) => text === null || env.measure(text, anatomyFont).width + 4 <= band.bandwidth) ? anatomyFont : void 0, toDateIds = insideFont ? /* @__PURE__ */ new Set() : toDateOnTotals(env, domain), toDate = domain.options.strings?.toDate ?? chartString(domain.options, "toDate"), wordsAt = (ci, text, font) => {
1688
1712
  let id = domain.cats[ci].id, words = toDateIds.has(id) ? toDate : !insideFont && domain.columnsAdd && domain.incompleteCats.has(id) && disclosuresShown(domain.options) ? domain.options.strings.incomplete : void 0;
@@ -1712,7 +1736,17 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
1712
1736
  return v !== null && (above ? v > 0 : v < 0);
1713
1737
  });
1714
1738
  return top === void 0 ? 0 : Math.abs(y(top.vals[ci].v) - y(0));
1715
- })(), inside = (dy, slot) => insideDepth >= tsize.height + dy ? { ...at(slot, above ? edgeY + dy : edgeY - tsize.height - dy, 2), ...paints.top(ci, above) } : void 0, curveStartsOnTop = ci === 0 && shares && lineYs(ci).some((ly) => Math.abs(ly - edgeY) < 0.5), leftX = cx - LEFT_SEAT_AIR - (curveStartsOnTop ? 2.75 : 0) - tsize.width, leftSeat = ci === 0 && tsize.width + 4 > band.bandwidth && strokes.length > 0 && above && leftX >= LEFT_SEAT_MIN_X ? [{ slot: "aboveStackLeft", rect: { x: leftX, y: edgeY - tsize.height - 4, w: tsize.width, h: tsize.height }, penalty: 2 }] : [], lift = curveStartsOnTop && above ? clearLift({ ...at("aboveStack", edgeY - tsize.height - 4, 0).rect }, strokes, 2 * tsize.height + 4) : void 0, liftedSeat = lift !== void 0 && lift >= 2.75 ? [at("aboveStackLifted", edgeY - tsize.height - 4 - lift - 2, 1)] : [], named = { noteText: `${domain.columns.length === 1 ? noteName(domain.columns[0]) : chartString(domain.options, "total")} ${text}${words ? ` ${words.lines[1]}` : ""} (${noteName(c)})` };
1739
+ })(), inside = (dy, slot) => insideDepth >= tsize.height + dy ? { ...at(slot, above ? edgeY + dy : edgeY - tsize.height - dy, 2), ...paints.top(ci, above) } : void 0, lowered = () => {
1740
+ if (strokes.length > 0) for (let dy = 12; dy <= 12 + tsize.height; dy++) {
1741
+ let seat = inside(dy, "insideEndLowered");
1742
+ if (!seat) break;
1743
+ if (strokes.every((stroke) => !stroke.hits(seat.rect, STROKE_CLEAR2))) return { ...seat, pad: 0 };
1744
+ }
1745
+ return inside(12, "insideEndLowered");
1746
+ }, curveStartsOnTop = ci === 0 && shares && lineYs(ci).some((ly) => Math.abs(ly - edgeY) < 0.5), leftX = cx - LEFT_SEAT_AIR - (curveStartsOnTop ? 2.75 : 0) - tsize.width, leftSeat = ci === 0 && tsize.width + 4 > band.bandwidth && strokes.length > 0 && above && leftX >= LEFT_SEAT_MIN_X ? [{ slot: "aboveStackLeft", rect: { x: leftX, y: edgeY - tsize.height - 4, w: tsize.width, h: tsize.height }, penalty: 2 }] : [], lift = curveStartsOnTop && above ? clearLift({ ...at("aboveStack", edgeY - tsize.height - 4, 0).rect }, strokes, 2 * tsize.height + 4) : void 0, liftedSeat = lift !== void 0 && lift >= 2.75 ? [at("aboveStackLifted", edgeY - tsize.height - 4 - lift - 2, 1)] : [], named = {
1747
+ noteText: `${domain.columns.length === 1 ? noteName(domain.columns[0]) : chartString(domain.options, "total")} ${text}${words ? ` ${words.lines[1]}` : ""} (${noteName(c)})`,
1748
+ claimIds: [`stack:total:${c.id}`]
1749
+ };
1716
1750
  if (insideFont && above && edgeY + 4 + tsize.height <= y(0)) {
1717
1751
  requests.push({
1718
1752
  id: `grandTotal:${c.id}`,
@@ -1762,7 +1796,7 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
1762
1796
  inside(8, "insideEnd"),
1763
1797
  domain.columns.length > 1,
1764
1798
  // Last of all, one step further in: a line marker just inside the column top blocks the inside end by a fraction of a pixel.
1765
- inside(12, "insideEndLowered")
1799
+ lowered()
1766
1800
  )
1767
1801
  });
1768
1802
  });
@@ -1775,7 +1809,7 @@ function referenceLabels(env, domain, area, requests) {
1775
1809
  for (let s of domain.refs) domain.cats.forEach((c, ci) => {
1776
1810
  let val = s.vals[ci];
1777
1811
  if (val.v === null) return;
1778
- let text = composeText(domain, content, { abs: val.v, isPct: val.isPct, format: val.format ?? s.format ?? domain.options.format }, c.label ?? c.id, s.label, s.format ? formatterFromExample(s.format, domain.options.locale?.language) : domain.fmt), { width: w, height: h } = env.measure(text, tickFont), ry = y(val.v), seat = (slot, x, top, penalty) => ({ slot, rect: { x, y: top, w, h }, penalty }), cx = band.center(ci), right = band.position(ci) + band.bandwidth + 5;
1812
+ let text = composeText(domain, content, { abs: val.v, isPct: val.isPct }, c.label ?? c.id, s.label, domain.valueFmtOf(s, val)), { width: w, height: h } = env.measure(text, tickFont), ry = y(val.v), seat = (slot, x, top, penalty) => ({ slot, rect: { x, y: top, w, h }, penalty }), cx = band.center(ci), right = band.position(ci) + band.bandwidth + 5;
1779
1813
  requests.push({
1780
1814
  id: `tick:${s.id}:${c.id}`,
1781
1815
  kind: "tick",
@@ -1844,7 +1878,7 @@ function linePointLabels(env, domain, area, geometry, requests, strokes, fills)
1844
1878
  if (area.first.get(s.id)?.ci === point.ci || area.last.get(s.id)?.ci === point.ci) continue;
1845
1879
  let cell = s.vals[point.ci], override = cell.labelOverride, extreme = cell.v === min || cell.v === max, flagged = flaggedContent !== null && override === void 0 && flaggedAt(s, point.ci), engine = content !== null && override === void 0 && (mode === "all" || extreme) || flagged;
1846
1880
  if (typeof override != "string" && !engine) continue;
1847
- let category = domain.cats[point.ci], serFmt = s.format ? env.byExample(s.format) : domain.scaleFmtOf(s), text = typeof override == "string" ? override.replace(/\$\{value\}/g, composeText(domain, ["absolute"], { abs: cell.v ?? 0, isPct: cell.isPct, format: domain.explicitFormatOf(s, cell) }, category.label ?? category.id, s.label, serFmt)) : composeText(domain, content ?? flaggedContent, { abs: cell.v, isPct: cell.isPct, format: domain.explicitFormatOf(s, cell) }, category.label ?? category.id, s.label, serFmt);
1881
+ let category = domain.cats[point.ci], valueFmt = domain.valueFmtOf(s, cell), text = typeof override == "string" ? override.replace(/\$\{value\}/g, composeText(domain, ["absolute"], { abs: cell.v ?? 0, isPct: cell.isPct }, category.label ?? category.id, s.label, valueFmt)) : composeText(domain, content ?? flaggedContent, { abs: cell.v, isPct: cell.isPct }, category.label ?? category.id, s.label, valueFmt);
1848
1882
  if (!text) continue;
1849
1883
  let size = env.measure(text, labelFont), below = sideAwayFrom(point, others) === "below", centeredX = Math.max(frame.plot.x, Math.min(point.x - size.width / 2, frame.plot.x + frame.plot.w - size.width)), aboveY = point.y - labelH - ABOVE_POINT_GAP, lift = domain.anatomy ? clearLift({ x: centeredX, y: aboveY, w: size.width, h: labelH }, strokes, labelH) : void 0, free = [
1850
1884
  { slot: "above", y: aboveY, penalty: below ? 1 : 0 },
@@ -1864,6 +1898,7 @@ function linePointLabels(env, domain, area, geometry, requests, strokes, fills)
1864
1898
  typeRole: "label",
1865
1899
  font: labelFont,
1866
1900
  priority: cell.priority ?? (engine && extreme ? PRIORITY.extreme : PRIORITY.interior) + (env.highlights.has(s.id) || env.highlights.has(category.id) ? PRIORITY.highlightBonus : 0),
1901
+ ...env.highlights.has(s.id) || env.highlights.has(category.id) ? { keepWhenDense: !0 } : {},
1867
1902
  candidates: withinOneFill(slots, fills)
1868
1903
  });
1869
1904
  }
@@ -1927,13 +1962,32 @@ function planComboLabels(env, domain, area, geometry, paints, warnings) {
1927
1962
  });
1928
1963
  segmentLabels(env, domain, area, geometry, paints, requests, warnings);
1929
1964
  let strokes = comboStrokes(geometry).map(preparePolyline), lineYsByCat;
1930
- grandTotalLabels(env, domain, area, paints, requests, (ci) => {
1965
+ if (grandTotalLabels(env, domain, area, paints, requests, (ci) => {
1931
1966
  if (!lineYsByCat) {
1932
1967
  lineYsByCat = domain.cats.map(() => []);
1933
1968
  for (let plan of geometry.plans) for (let point of plan.pts) lineYsByCat[point.ci].push(point.y);
1934
1969
  }
1935
1970
  return lineYsByCat[ci];
1936
- }, strokes);
1971
+ }, strokes), hasLabelPosition(domain.options)) for (let i = 0; i < requests.length; i++) {
1972
+ let request = requests[i], first = request.candidates[0];
1973
+ if (!first || !/^(segment|grandTotal):/.test(request.id)) continue;
1974
+ let ci = domain.cats.findIndex((cat) => cat.id === request.owner.categoryId), total = request.id.startsWith("grandTotal:"), single = total ? totalColumn(domain, ci) : void 0, place = geometry.segments.find((segment) => segment.ci === ci && segment.s.id === (total ? single?.id : request.owner.seriesId));
1975
+ if (!place) continue;
1976
+ let { s, si, v, rect } = place, c = domain.cats[ci], val = s.vals[ci], positioned = positionBarLabel(request, domain.options, {
1977
+ rect,
1978
+ size: { width: first.rect.w, height: first.rect.h },
1979
+ orientation: "vertical",
1980
+ endPositive: v >= 0,
1981
+ zero: v === 0,
1982
+ edgeGap: total ? first.slot === "insideTop" ? 4 : 8 : 4,
1983
+ fallback: total ? void 0 : "stack",
1984
+ muted: request.bodyInk !== void 0,
1985
+ insideFill: paints.inside(s, val, c, si),
1986
+ insidePaint: paints.cell(s, val, c, si),
1987
+ insidePattern: paints.pattern(s, val, c)
1988
+ });
1989
+ requests[i] = positioned === request ? request : { ...positioned, candidates: clearOfStrokes(positioned.candidates, strokes) };
1990
+ }
1937
1991
  let fills = geometry.segments.map((segment) => segment.rect), segmentSeats = requests.flatMap((r) => r.kind === "segment" && !r.redundant && r.candidates[0]?.slot === "insideCenter" ? [r.candidates[0].rect] : []), totalSeats = requests.flatMap((r) => r.kind === "grandTotal" && !r.redundant && r.candidates[0] ? [r.candidates[0].rect] : []);
1938
1992
  for (let { s, pts } of geometry.plans)
1939
1993
  for (let endpoint of [
@@ -2046,7 +2100,7 @@ function columnMarks(ctx) {
2046
2100
  ...washed ? {} : { separation: { fillStep: !0, fill: cellFill, backing: { token: "background" }, pattern: cellPat } },
2047
2101
  owner: { seriesId: s.id, categoryId: c.id },
2048
2102
  part: "segment",
2049
- display: { value: val.format ?? s.format ?? domain.options.format ? env.byExample(val.format ?? s.format ?? domain.options.format)(v) : val.isPct ? domain.pctFmt(v) : domain.fmt(v) }
2103
+ display: { value: domain.valueFmtOf(s, val)(v) }
2050
2104
  }), claims.claim(rect, "mark", { seriesId: s.id, categoryId: c.id }, "segment"), segs.push({ seriesId: s.id, rect, nodeId }), g.segments.push({ s, si, ci, v, rect });
2051
2105
  });
2052
2106
  let stackTop = y(pos), stackBot = y(neg);
@@ -2060,12 +2114,12 @@ function columnMarks(ctx) {
2060
2114
  cats.forEach((c, ci) => {
2061
2115
  let v = s.vals[ci].v;
2062
2116
  if (v === null) return;
2063
- let ry = y(v), bx = band.position(ci), bw = band.bandwidth, owner = { seriesId: s.id, categoryId: c.id }, id = `ref:${s.id}:${c.id}`, display = { value: s.vals[ci].format ?? s.format ?? domain.options.format ? formatterFromExample(s.vals[ci].format ?? s.format ?? domain.options.format, domain.options.locale?.language)(v) : s.vals[ci].isPct ? domain.pctFmt(v) : domain.fmt(v) };
2117
+ let ry = y(v), bx = band.position(ci), bw = band.bandwidth, owner = { seriesId: s.id, categoryId: c.id }, id = `ref:${s.id}:${c.id}`, display = { value: domain.valueFmtOf(s, s.vals[ci])(v) };
2064
2118
  if (style === "marker") {
2065
2119
  let cx = band.center(ci);
2066
2120
  nodes.push({ t: "circle", id, cx, cy: ry, ...referenceMarkerPaint(env.theme, paints.ref(s)), owner, part: "referenceMarker", display });
2067
- let mr = REFERENCE_MARKER_R + 1;
2068
- claims.claim({ x: cx - mr, y: ry - mr, w: mr * 2, h: mr * 2 }, "mark", owner);
2121
+ let mr = REFERENCE_MARKER_R + 1, rect = { x: cx - mr, y: ry - mr, w: mr * 2, h: mr * 2 };
2122
+ claims.claim(rect, "mark", owner), g.marks.referenceTicks.push({ ...owner, rect, nodeId: id });
2069
2123
  return;
2070
2124
  }
2071
2125
  let tick = referenceTickGeometry("vertical", bx, ry, -2, bw + 2), tickWidth = style === "line" ? strokeToken(env.theme, "rule") : domain.options.referenceTick?.width ?? strokeToken(env.theme, "rule");
@@ -2079,7 +2133,7 @@ function columnMarks(ctx) {
2079
2133
  owner,
2080
2134
  part: style === "line" ? "referenceLine" : "referenceTick",
2081
2135
  display
2082
- }), claims.claim(tick.claim, "mark", owner, style === "line" ? "referenceLine" : void 0);
2136
+ }), claims.claim(tick.claim, "mark", owner, style === "line" ? "referenceLine" : void 0), g.marks.referenceTicks.push({ ...owner, rect: tick.claim, nodeId: id });
2083
2137
  });
2084
2138
  }
2085
2139
  function pathFor2(points, interpolation, curve = []) {
@@ -2196,7 +2250,7 @@ function lineMark(ctx, plan, areaNodeId, ringed) {
2196
2250
  let c = cats[p.ci], markerNodeId;
2197
2251
  if (markerShape !== "none" && (full || c.partial === !0)) {
2198
2252
  markerNodeId = `marker:${s.id}:${c.id}`;
2199
- let hollow = c.partial === !0 || paints.lineHollow(s), markerFill = hollow ? { token: "background" } : paint, owner = { seriesId: s.id, categoryId: c.id }, value = s.vals[p.ci], example = domain.explicitFormatOf(s, value), display = { value: example ? env.byExample(example)(value.v) : value.isPct ? domain.pctFmt(value.v) : domain.scaleFmtOf(s)(value.v) };
2253
+ let hollow = c.partial === !0 || paints.lineHollow(s), markerFill = hollow ? { token: "background" } : paint, owner = { seriesId: s.id, categoryId: c.id }, value = s.vals[p.ci], display = { value: domain.valueFmtOf(s, value)(value.v) };
2200
2254
  g.nodes.push(anatomyDots && !hollow ? { t: "circle", id: markerNodeId, cx: p.x, cy: p.y, r: ANATOMY_DOT_R, fill: markerFill, stroke: { token: "background" }, strokeWidth: strokeToken(env.theme, "mark"), owner, part: "marker", display } : markerShape === "square" ? { t: "rect", id: markerNodeId, rect: { x: p.x - 2.75, y: p.y - 2.75, w: 2.75 * 2, h: 2.75 * 2 }, fill: markerFill, ...hollow ? { stroke: paint, strokeWidth: strokeToken(env.theme, "mark") } : {}, owner, part: "marker", display } : markerShape === "triangle" || markerShape === "diamond" ? { t: "path", id: markerNodeId, d: markerPath(markerShape, p), fill: markerFill, ...hollow ? { stroke: paint, width: strokeToken(env.theme, "mark") } : {}, owner, part: "marker", display } : { t: "circle", id: markerNodeId, cx: p.x, cy: p.y, r: 2.75, fill: markerFill, stroke: hollow ? paint : { token: "background" }, strokeWidth: strokeToken(env.theme, "mark"), owner, part: "marker", display });
2201
2255
  let claimR = markerShape === "triangle" || markerShape === "diamond" ? 4 + (hollow ? strokeToken(env.theme, "mark") / 2 : 0) : 2.75 + 1;
2202
2256
  g.claims.claim({ x: p.x - claimR, y: p.y - claimR, w: claimR * 2, h: claimR * 2 }, "mark", { seriesId: s.id, categoryId: c.id });
@@ -2223,7 +2277,7 @@ function layoutComboMarks(env, domain, area, paints) {
2223
2277
  claims: createOccupiedIndex({ x: 0, y: 0, w: env.size.width, h: env.size.height }),
2224
2278
  axes: [],
2225
2279
  leftTickX: 1 / 0,
2226
- marks: { columns: [], lines: [] },
2280
+ marks: { columns: [], lines: [], referenceTicks: [] },
2227
2281
  segEdges: /* @__PURE__ */ new Map(),
2228
2282
  yieldingTicks: [],
2229
2283
  areaGrounds: [],
@@ -2261,7 +2315,7 @@ function comboAnomalyMarks(env, domain, anomaly, area, geometry) {
2261
2315
  anomaly: anomaly.model,
2262
2316
  corridorShown: anomaly.corridorShown,
2263
2317
  statFmt: anomaly.statFmt,
2264
- fmt: domain.scaleFmtOf(series),
2318
+ fmt: domain.valueFmtOf(series),
2265
2319
  corridorPaint: columnCorridorPaint(domain.options.colorblindSafe),
2266
2320
  plot: area.plot,
2267
2321
  y: onSecondary ? area.y2 : area.y,
@@ -2282,7 +2336,7 @@ function annotateCombo(env, domain, area, geometry, occupied, solveCtx, labelReq
2282
2336
  if (ci === void 0) return null;
2283
2337
  let c = cats[ci];
2284
2338
  if (norm.seriesId) {
2285
- let owner = { categoryId: c.id, seriesId: norm.seriesId }, named = [...columns, ...domain.lines, ...domain.refs].find((s) => s.id === norm.seriesId), series = { format: named?.format, ...named && columns.length + domain.lines.length > 1 ? { series: { id: named.id, label: named.label } } : {} }, reference = domain.refs.find((s) => s.id === norm.seriesId);
2339
+ let owner = { categoryId: c.id, seriesId: norm.seriesId }, named = [...columns, ...domain.lines, ...domain.refs].find((s) => s.id === norm.seriesId), series = { format: named?.format, ...named && columns.length + domain.lines.length > 1 ? { series: { id: named.id, label: named.label } } : {} }, markValueText = (s, v) => domain.valueFmtOf(s, s.vals[ci])(v), reference = domain.refs.find((s) => s.id === norm.seriesId);
2286
2340
  if (reference && geometry.nodes.some((node) => node.id === `ref:${reference.id}:${c.id}`)) {
2287
2341
  let v = reference.vals[ci].v;
2288
2342
  return v === null ? null : { x: band.center(ci), y: y(v), value: v, date: c.date, label: c.label, owner, ...series };
@@ -2292,16 +2346,16 @@ function annotateCombo(env, domain, area, geometry, occupied, solveCtx, labelReq
2292
2346
  let v = ls.vals[ci].v;
2293
2347
  if (v === null) return null;
2294
2348
  let yFor = ls.axis === "secondary" && secondaryActive ? y2 : y;
2295
- return { x: band.center(ci), y: norm.edge === "start" ? y0 : yFor(v), value: v, date: c.date, label: c.label, owner, lineAnchored: !0, ...series };
2349
+ return { x: band.center(ci), y: norm.edge === "start" ? y0 : yFor(v), value: v, markValueText: markValueText(ls, v), date: c.date, label: c.label, owner, lineAnchored: !0, ...series };
2296
2350
  }
2297
2351
  let e = geometry.segEdges.get(sk(norm.seriesId, c.id));
2298
2352
  if (!e) return null;
2299
2353
  let edge = norm.edge ?? "end", yy = y(edge === "start" ? e.v0 : edge === "end" ? e.v1 : Math.max(e.v0, e.v1));
2300
- return { x: band.center(ci), y: yy, value: e.v, date: c.date, label: c.label, owner, ...series };
2354
+ return { x: band.center(ci), y: yy, value: e.v, ...named ? { markValueText: markValueText(named, e.v) } : {}, date: c.date, label: c.label, owner, ...series };
2301
2355
  }
2302
2356
  if (columns.length === 0) return null;
2303
2357
  let topPlotted = domain.posTop[ci] > 0 ? domain.posTop[ci] : domain.negBot[ci];
2304
- return { x: band.center(ci), y: norm.edge === "start" ? y0 : y(topPlotted), value: domain.stackTotals[c.id], format: columns.length === 1 ? columns[0].format : void 0, ...noTotal(domain.columnsAdd, domain.anyByCat[ci]), date: c.date, label: c.label, owner: { categoryId: c.id } };
2358
+ return { x: band.center(ci), y: norm.edge === "start" ? y0 : y(topPlotted), value: domain.stackTotals[c.id], format: columns.length === 1 ? columns[0].format : void 0, ...noTotal(domain.columnsAdd, domain.anyByCat[ci] && !domain.incompleteCats.has(c.id)), date: c.date, label: c.label, owner: { categoryId: c.id } };
2305
2359
  }, lift = area.topPad - area.axisTitles.height - 8, annPlot = { x: plot.x, y: plot.y - lift, w: plot.w, h: plot.h + lift }, ceilingRects = [
2306
2360
  ...area.axisTitles.height > 0 ? [{ x: area.frame.plot.x, y: area.frame.plot.y, w: area.frame.plot.w, h: area.axisTitles.height }] : [],
2307
2361
  ...area.valueLineRows.values()
@@ -2372,7 +2426,7 @@ function assembleComboGeometry(input) {
2372
2426
  columns.length > 0 ? chartString2(domain.options, "stackedColumnSeriesDesc", { v1: columns.length, v2: columns.map((s) => s.label).join(", ") }) : "",
2373
2427
  lines.length > 0 ? chartString2(domain.options, "lineAreaSeriesDesc", { v1: lines.length, v2: lines.map((s) => s.label).join(", ") }) : "",
2374
2428
  refs.length > 0 ? chartString2(domain.options, "referenceSeriesCount", { v1: refs.length }) : ""
2375
- ].filter(Boolean).join(chartString2(domain.options, "plusClause")), totalsAdd = columns.length > 0 && domain.columnsAdd, a11yDesc = chartString2(domain.options, "comboDescStart", { v1: cats.length, v2: partsDesc }) + (domain.secondaryActive ? chartString2(domain.options, "secondaryAxisDesc") : "") + (totalsAdd ? chartString2(domain.options, "columnTotalsSentence", { v1: cats.map((c, ci) => `${c.label ?? c.id} ${domain.anyByCat[ci] ? fmt(stackTotals[c.id]) : NOT_AVAILABLE}`).join(", ") }) : ".") + anomalyA11y({ options: domain.options, anomaly: domain.anomaly, fmt: domain.anomaly ? domain.scaleFmtOf(domain.lines.find((s) => s.id === domain.anomaly.seriesId)) : fmt, cats }), paintWarningRules = [];
2429
+ ].filter(Boolean).join(chartString2(domain.options, "plusClause")), totalsAdd = columns.length > 0 && domain.columnsAdd, a11yDesc = chartString2(domain.options, "comboDescStart", { v1: cats.length, v2: partsDesc }) + (domain.secondaryActive ? chartString2(domain.options, "secondaryAxisDesc") : "") + (totalsAdd ? chartString2(domain.options, "columnTotalsSentence", { v1: cats.map((c, ci) => `${c.label ?? c.id} ${domain.anyByCat[ci] ? domain.totalFmtOf(ci)(stackTotals[c.id]) : NOT_AVAILABLE}`).join(", ") }) : ".") + anomalyA11y({ options: domain.options, anomaly: domain.anomaly, fmt: domain.anomaly ? domain.valueFmtOf(domain.lines.find((s) => s.id === domain.anomaly.seriesId)) : fmt, cats }), paintWarningRules = [];
2376
2430
  pushAll(warnings, rectSeriesAdjacentWarnings(nodes, input.paints.css, "vertical", env.highlights, env.theme, { rules: paintWarningRules, before: warnings.filter((warning) => !["pie-ramp-crowded", "likert-ramp-invisible", "band-lightness-insufficient", "series-adjacent-similar", "highlight-reads-as-loss"].includes(warning.code)).length }));
2377
2431
  let catTickMaxLines = catPlan.maxLines, clearance = domain.options[LINE_BAND_CLEARANCE], floatClearance = domain.options[FLOAT_BAND_CLEARANCE];
2378
2432
  return {
@@ -2433,6 +2487,14 @@ function commitClaims(occupied, phase) {
2433
2487
  }
2434
2488
  var CATEGORY_NOTED = /* @__PURE__ */ Symbol("categoryNoted"), UNPRINTED = /* @__PURE__ */ Symbol("unprintedValues");
2435
2489
  function layoutCombo(data, options = {}, gutterOverride) {
2490
+ if (hasLabelPosition(options)) {
2491
+ let columns = data.series.filter((series) => series.role !== "reference" && (series.kind ?? "column") === "column");
2492
+ columns.length !== 1 && refuseLabelPosition(
2493
+ options,
2494
+ columns.length === 0 ? "combo without columns" : "stacked combo",
2495
+ columns.length === 0 ? [] : ["center", "insideEnd", "insideBase"]
2496
+ );
2497
+ }
2436
2498
  let geo = withBandValueNotes(data, withLocaleStrings(options), (next) => {
2437
2499
  let cur = next, geometry = layoutComboPass(data, cur, gutterOverride);
2438
2500
  for (let step = 0; step < 2; step++) {
@@ -2482,7 +2544,7 @@ function layoutComboFramePass(data, options, gutterOverride, env, domain, paints
2482
2544
  warnings
2483
2545
  }), settled = settle(), area = settled.area;
2484
2546
  if (options[LINE_BAND_CLEARANCE] === void 0) {
2485
- let scaleH = area.y(domain.dLo) - area.y(domain.dHi), mode = comboValueLabels(options, domain.anatomy, domain.cats.length, domain.lineFloat !== void 0), interiorValues = mode === "all" || mode === "extremes" || domain.anomaly !== void 0, insideTotals = domain.anatomy && domain.columns.length === 1 && !domain.anomaly && domain.cats.every((c) => env.measure(domain.fmt(domain.stackTotals[c.id] ?? 0), area.labelFont).width + 4 <= area.band.bandwidth), anomalyRoom = domain.anomaly ? ANOMALY_FLAG_GAP + ANOMALY_FLAG_H : 0, valueRow = env.measure("0", area.labelFont).height + 14, clearance = (insideTotals ? 2.75 + 8 : area.gtH + (interiorValues ? valueRow : 8)) + anomalyRoom, floatClearance = (insideTotals ? 2.75 + 8 : area.gtH) + valueRow + anomalyRoom;
2547
+ let scaleH = area.y(domain.dLo) - area.y(domain.dHi), mode = comboValueLabels(options, domain.anatomy, domain.cats.length, domain.lineFloat !== void 0), interiorValues = mode === "all" || mode === "extremes" || domain.anomaly !== void 0, insideTotals = domain.anatomy && domain.columns.length === 1 && !domain.anomaly && domain.cats.every((c, ci) => env.measure(domain.totalFmtOf(ci)(domain.stackTotals[c.id] ?? 0), area.labelFont).width + 4 <= area.band.bandwidth), anomalyRoom = domain.anomaly ? ANOMALY_FLAG_GAP + ANOMALY_FLAG_H : 0, valueRow = env.measure("0", area.labelFont).height + 14, clearance = (insideTotals ? 2.75 + 8 : area.gtH + (interiorValues ? valueRow : 8)) + anomalyRoom, floatClearance = (insideTotals ? 2.75 + 8 : area.gtH) + valueRow + anomalyRoom;
2486
2548
  if (scaleH > 0 && domain.secondaryActive && domain.columns.length > 0) {
2487
2549
  let measured = clearance / scaleH, floatMeasured = floatClearance / scaleH, next = domain.withLineBandClearance?.(measured, floatMeasured);
2488
2550
  options = { ...options, [LINE_BAND_CLEARANCE]: measured, [FLOAT_BAND_CLEARANCE]: floatMeasured }, next && (domain = next.domain, domainWarnings = next.warnings, warnings.length = 0, pushAll(warnings, domainWarnings)), domain.options = { ...domain.options, [LINE_BAND_CLEARANCE]: measured, [FLOAT_BAND_CLEARANCE]: floatMeasured }, next && (settled = settle(), area = settled.area);
@@ -2529,9 +2591,12 @@ function layoutComboFramePass(data, options, gutterOverride, env, domain, paints
2529
2591
  let densityValues = options[DENSITY_VALUES];
2530
2592
  for (let request of requests) densityValues?.has(request.id) && ["point", "grandTotal"].includes(request.kind) && (request.redundant = !0, request.suppressedAs = "density");
2531
2593
  let solveCtx = {
2594
+ // A host chart names the claims of combo's labels (claims/ids.ts).
2595
+ ...HOST_CLAIMS in options ? { [HOST_CLAIMS]: options[HOST_CLAIMS] } : {},
2532
2596
  focus: options.focus,
2533
2597
  density: env.density,
2534
2598
  pins: options.labelPlacements ?? {},
2599
+ labelOffsets: options.labelOffsets,
2535
2600
  measure: env.measure,
2536
2601
  plot: area.plot,
2537
2602
  canvas: { x: 0, y: 0, w: size.width, h: size.height },
@@ -2578,8 +2643,8 @@ function layoutComboFramePass(data, options, gutterOverride, env, domain, paints
2578
2643
  let current = authoredNotes(options).filter((line) => !line.startsWith(options.strings.valuesNotBesideMarks)), valueCount = solved.placed.filter((l) => l.id.startsWith("tick:") || l.id.startsWith("segment:")).length, note = noteLine(options.strings.valuesNotBesideMarks, [...named.values()].sort((a, b) => a[0] - b[0]).map(([, item]) => item), options, valueCount), authored = options.authoredFootnotes ?? current;
2579
2644
  return layoutComboPass(data, { ...withAuthoredFootnotes(options, [...current, ...note], authored), [UNPRINTED]: { named, runs: prior.runs + 1 } }, gutterOverride, { area, geometry: marks });
2580
2645
  }
2581
- let inNote = new Set(unprinted.filter((l) => prior.named.has(l.id)).map((l) => `label '${l.id}'`));
2582
- solved.warnings = solved.warnings.filter((w) => !(w.code === "label-hidden" && [...inNote].some((key) => w.message.startsWith(key))));
2646
+ let inNote = new Set(unprinted.filter((l) => prior.named.has(l.id)).map((l) => l.id));
2647
+ solved.warnings = solved.warnings.filter((w) => !(w.code === "label-hidden" && inNote.has(String(w.detail?.labelId))));
2583
2648
  }
2584
2649
  let notedIds = options[UNPRINTED]?.named, countedIds = notedIds ? new Set([...notedIds].sort((a, b) => a[1][0] - b[1][0]).slice(noteCap(options, notedIds.size)).map(([id]) => id)) : void 0;
2585
2650
  for (let label of solved.placed) notedIds?.has(label.id) && (label.hidden === void 0 && (label.hidden = "note"), label.noted = !0, countedIds?.has(label.id) && (label.noteCounted = !0));