boardplot 0.57.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/CHANGELOG.md +298 -0
  2. package/README.md +48 -14
  3. package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-VGSL4NJK.js} +1 -1
  4. package/dist/{ReaderBox-GCIITQCX.js → ReaderBox-MHMXIDAJ.js} +8 -7
  5. package/dist/{annotateEngine-JMZI6QEG.js → annotateEngine-753KQBNN.js} +2 -1
  6. package/dist/build-identity.json +3 -3
  7. package/dist/{chunk-5WSIH4SR.js → chunk-2CQBBN7M.js} +4 -4
  8. package/dist/{chunk-Q7VPTN5X.js → chunk-2ETK5TSA.js} +4 -4
  9. package/dist/{chunk-NO7GRVUU.js → chunk-2ETSI2EL.js} +8 -8
  10. package/dist/{chunk-4RN4OM6I.js → chunk-2GRXHWRH.js} +3 -3
  11. package/dist/{chunk-QFIRPOXR.js → chunk-2HII2B6S.js} +3 -3
  12. package/dist/{chunk-K6Y4HBK7.js → chunk-2LC2H3ZM.js} +1000 -904
  13. package/dist/{chunk-KF3ZHLHQ.js → chunk-2NX7EO7H.js} +5 -5
  14. package/dist/{chunk-D5G67OER.js → chunk-2QI2PK2O.js} +1 -1
  15. package/dist/{chunk-AFA32LHN.js → chunk-2VKQQLP7.js} +62 -36
  16. package/dist/chunk-3DOVXJ6K.js +602 -0
  17. package/dist/{chunk-XJUZC53Y.js → chunk-3E6NLODZ.js} +1 -1
  18. package/dist/{chunk-D5RAVZ5C.js → chunk-3HA4IJTO.js} +9 -8
  19. package/dist/{chunk-OTGNVAI4.js → chunk-3HPPTQEW.js} +4 -4
  20. package/dist/{chunk-TGR6PRKG.js → chunk-3KT2647F.js} +4 -2
  21. package/dist/{chunk-UBXIGE2P.js → chunk-3MFVJMP6.js} +2 -2
  22. package/dist/{chunk-JKXJWCJ5.js → chunk-3P3FKPFN.js} +116 -54
  23. package/dist/{chunk-JMOBA5ES.js → chunk-3XAJSMYD.js} +2 -2
  24. package/dist/{chunk-I65OLJ2X.js → chunk-42QKUSHJ.js} +13 -3
  25. package/dist/{chunk-Y5IKCXQR.js → chunk-44JU3VOT.js} +5 -5
  26. package/dist/{chunk-YBYV56FS.js → chunk-44K75CYE.js} +3 -3
  27. package/dist/{chunk-WKWCNS6K.js → chunk-4FNM4D57.js} +5 -5
  28. package/dist/{chunk-UD6U4EF5.js → chunk-4ROZ4TFL.js} +1 -1
  29. package/dist/{chunk-LO3AGGE3.js → chunk-4VV3KUFT.js} +5 -5
  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-SHAAMKN7.js → chunk-5JEU6MWC.js} +18 -18
  33. package/dist/{chunk-I7KDPCC7.js → chunk-5JIB4VJA.js} +18 -10
  34. package/dist/{chunk-C5SQEYTQ.js → chunk-5OP3E2ZD.js} +153 -65
  35. package/dist/{chunk-BDCKHLUB.js → chunk-5SLBD4BT.js} +72 -304
  36. package/dist/{chunk-2BHLRHF2.js → chunk-5SVGTQTW.js} +4 -4
  37. package/dist/chunk-5U567TYU.js +23 -0
  38. package/dist/{chunk-BFDPY7JM.js → chunk-5ZLF4S7X.js} +11 -6
  39. package/dist/{chunk-73O6AOAA.js → chunk-5ZMTQATF.js} +241 -140
  40. package/dist/{chunk-5JTRCSBN.js → chunk-62BDQTO6.js} +2 -2
  41. package/dist/chunk-64K3V4VN.js +25 -0
  42. package/dist/{chunk-BM2A3IGQ.js → chunk-67YJJJIB.js} +1 -1
  43. package/dist/{chunk-TDDSWNGD.js → chunk-6DJNFT2K.js} +30 -28
  44. package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
  45. package/dist/{chunk-W5SVS4B6.js → chunk-6JFQCVNN.js} +4 -4
  46. package/dist/{chunk-H2POQ4LB.js → chunk-6XPV6M3Q.js} +4 -4
  47. package/dist/{chunk-XFCBH3TI.js → chunk-6ZDSEITW.js} +3 -3
  48. package/dist/{chunk-LFX5BERN.js → chunk-72HVDLMT.js} +46 -32
  49. package/dist/chunk-75NU5RLX.js +24 -0
  50. package/dist/chunk-76GPN6AT.js +72 -0
  51. package/dist/{chunk-EFKFZNQC.js → chunk-7CAYRPJV.js} +34 -20
  52. package/dist/{chunk-EWR6WVOV.js → chunk-7GWWBHVQ.js} +6 -6
  53. package/dist/{chunk-H6EJ63QN.js → chunk-7NYUFMLJ.js} +143 -82
  54. package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
  55. package/dist/chunk-A65B23JK.js +113 -0
  56. package/dist/{chunk-XNV7VOIT.js → chunk-A7R6FUS6.js} +4 -4
  57. package/dist/{chunk-KIXNHDXS.js → chunk-AEVGUOPB.js} +5 -5
  58. package/dist/{chunk-IXM6BAM4.js → chunk-AHIK2N72.js} +1 -1
  59. package/dist/{chunk-I3DLERI7.js → chunk-AICO24HJ.js} +5 -2
  60. package/dist/{chunk-LSKCKGCF.js → chunk-AJGSCVVW.js} +2 -2
  61. package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
  62. package/dist/{chunk-CT4RFZO4.js → chunk-AN2V2LC4.js} +37 -22
  63. package/dist/{chunk-T5MBORBK.js → chunk-AOFUA5XP.js} +1 -1
  64. package/dist/{chunk-7FAO4ICF.js → chunk-BCMEGJRX.js} +2 -2
  65. package/dist/{chunk-H3EWFSWI.js → chunk-BDIKWR45.js} +43 -29
  66. package/dist/{chunk-DJBMA4FW.js → chunk-BG6AIWAK.js} +4 -6
  67. package/dist/{chunk-6XU5XGYV.js → chunk-BOT6W3VB.js} +5 -5
  68. package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
  69. package/dist/{chunk-6LQKU6YN.js → chunk-BZ67BJBH.js} +11 -10
  70. package/dist/{chunk-2AJWRVZ2.js → chunk-C47POAC5.js} +1 -1
  71. package/dist/{chunk-FJKFYQ5I.js → chunk-C5OBPO4Z.js} +36 -28
  72. package/dist/{chunk-Y7Q3VEYC.js → chunk-CCAAI56H.js} +30 -10
  73. package/dist/{chunk-T3WCDDIL.js → chunk-CDUR3KWV.js} +2 -2
  74. package/dist/{chunk-WE5WVQE4.js → chunk-CMPHT2LS.js} +3 -3
  75. package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
  76. package/dist/{chunk-JSA3ESEJ.js → chunk-CR5FP5SF.js} +1 -1
  77. package/dist/{chunk-JHWDTV4K.js → chunk-D2TQX7UJ.js} +2 -2
  78. package/dist/{chunk-5TUDYKNL.js → chunk-DEANHDXU.js} +42 -29
  79. package/dist/{chunk-GHFTKVJN.js → chunk-DHGE46UK.js} +1 -1
  80. package/dist/{chunk-ZSYU6LIH.js → chunk-DIHX6NUB.js} +5 -5
  81. package/dist/{chunk-W7Q6PLT4.js → chunk-DILQ34NW.js} +37 -37
  82. package/dist/{chunk-IZRTNCJQ.js → chunk-DJKRYJP7.js} +5 -5
  83. package/dist/{chunk-43PCSBVQ.js → chunk-DKLC6QLF.js} +634 -8
  84. package/dist/{chunk-I6QGYRY4.js → chunk-DNHTMCUP.js} +2 -2
  85. package/dist/{chunk-26WNBTWB.js → chunk-DORE2RHL.js} +5 -5
  86. package/dist/{chunk-WZB6R2ZX.js → chunk-DZYTXZNS.js} +11 -3
  87. package/dist/chunk-E262NRFP.js +39 -0
  88. package/dist/{chunk-O4D27FKH.js → chunk-E5YF236N.js} +4 -1
  89. package/dist/{chunk-5H4HFRDO.js → chunk-EBUK7HJP.js} +5 -5
  90. package/dist/{chunk-YGPLUENN.js → chunk-ECBHC272.js} +132 -83
  91. package/dist/{chunk-KLQKHA3T.js → chunk-EFW43JQJ.js} +5 -5
  92. package/dist/{chunk-VM5CQ7CG.js → chunk-EHRRHSPV.js} +2 -2
  93. package/dist/{chunk-PYGEIPPH.js → chunk-EILNJQMN.js} +32 -12
  94. package/dist/{chunk-KGS5Z7SL.js → chunk-ERDKMZ7O.js} +2 -2
  95. package/dist/{chunk-AFGQXMKT.js → chunk-ETRAPN5G.js} +143 -62
  96. package/dist/{chunk-USFIDSTO.js → chunk-ETUKDEGL.js} +18 -11
  97. package/dist/chunk-F2ET5ZTT.js +49 -0
  98. package/dist/{chunk-HVX2E26J.js → chunk-F3XOBFS4.js} +9 -8
  99. package/dist/{chunk-I4NUYVP5.js → chunk-FB6X7QHA.js} +1 -1
  100. package/dist/{chunk-LW4ZQGVL.js → chunk-FGW54I23.js} +7 -8
  101. package/dist/{chunk-UCIAHSJK.js → chunk-FP5B5XIL.js} +7 -3
  102. package/dist/{chunk-QRZESG66.js → chunk-FRHQGA5Q.js} +64 -239
  103. package/dist/{chunk-YTEJYLU7.js → chunk-FRR7BJ3B.js} +2 -2
  104. package/dist/{chunk-DPUCT567.js → chunk-FVWHEM2N.js} +7 -5
  105. package/dist/{chunk-54HEIM2A.js → chunk-FWSMENKH.js} +2 -2
  106. package/dist/{chunk-F4JAGDPD.js → chunk-FWTUGNSF.js} +8 -8
  107. package/dist/{chunk-HB3TH7GY.js → chunk-FZKDZQ6U.js} +10 -6
  108. package/dist/{chunk-6EE6XEMA.js → chunk-G4FF6G3I.js} +25 -16
  109. package/dist/{chunk-72OJBDRB.js → chunk-GB6BZSTL.js} +52 -41
  110. package/dist/{chunk-QLWUFEKR.js → chunk-GCIHRRDJ.js} +8 -8
  111. package/dist/{chunk-MTCDGSYW.js → chunk-GHCU6OSE.js} +2 -2
  112. package/dist/chunk-GO66OCN7.js +24 -0
  113. package/dist/chunk-GOFS336W.js +24 -0
  114. package/dist/{chunk-JMXNXLAC.js → chunk-GQYT7G4F.js} +2 -2
  115. package/dist/{chunk-TWRFVW3J.js → chunk-GUTLXO7Q.js} +138 -89
  116. package/dist/{chunk-RRPTQGRU.js → chunk-H3VICNTN.js} +1 -1
  117. package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
  118. package/dist/{chunk-7P7D6WXR.js → chunk-HBQHSZ6S.js} +3 -3
  119. package/dist/{chunk-ZV3SNRJI.js → chunk-HTQGJQZN.js} +4 -2
  120. package/dist/{chunk-VY67Q6CJ.js → chunk-HUQRO6VF.js} +36 -33
  121. package/dist/{chunk-WSKZZ2ZB.js → chunk-I5VDW2XZ.js} +538 -503
  122. package/dist/{chunk-TMXRTYGT.js → chunk-I5VNHDPR.js} +3 -2
  123. package/dist/{chunk-M74H7QYD.js → chunk-IDXYHDQY.js} +1 -1
  124. package/dist/{chunk-IPWUBZ4P.js → chunk-IIWZJ5ZM.js} +1 -1
  125. package/dist/{chunk-HC6WHTBX.js → chunk-IPBOREIY.js} +1 -1
  126. package/dist/chunk-IU335UO7.js +27 -0
  127. package/dist/{chunk-WDAZ2MT4.js → chunk-IVDTP6SV.js} +4 -4
  128. package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
  129. package/dist/{chunk-PSYPB22T.js → chunk-J4QRB6DQ.js} +5 -5
  130. package/dist/{chunk-CEMXGMQN.js → chunk-JCMGKQVS.js} +3 -3
  131. package/dist/{chunk-XR7VOF2V.js → chunk-JM7UTLF3.js} +25 -13
  132. package/dist/{chunk-VY2NPB2Q.js → chunk-JNDWRV34.js} +4 -4
  133. package/dist/{chunk-SHCW2TCA.js → chunk-JSRQTDZZ.js} +25 -23
  134. package/dist/{chunk-XYUXB5VK.js → chunk-JT3UTEWZ.js} +3 -3
  135. package/dist/{chunk-BO5EJBLH.js → chunk-JUYRDZSV.js} +63 -43
  136. package/dist/{chunk-I5ZADE2U.js → chunk-JVGL2SCN.js} +1 -1
  137. package/dist/{chunk-A6XCVOC5.js → chunk-JY4LTPOV.js} +1 -1
  138. package/dist/chunk-K7XPTQBJ.js +267 -0
  139. package/dist/{chunk-JIH52I36.js → chunk-KGBUXMFP.js} +119 -85
  140. package/dist/{chunk-2KCK63DD.js → chunk-KIE5V3DA.js} +2 -2
  141. package/dist/{chunk-A33MFWHW.js → chunk-KU4PCG4W.js} +2 -2
  142. package/dist/{chunk-MQ5EKWIG.js → chunk-KVBLTAO7.js} +5 -5
  143. package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
  144. package/dist/{chunk-BY5JGQFZ.js → chunk-KWIP5YRA.js} +4 -4
  145. package/dist/{chunk-JRRSKCGG.js → chunk-LG6M2JTH.js} +3 -3
  146. package/dist/{chunk-KUMJI5B6.js → chunk-LIE2WSB4.js} +17 -14
  147. package/dist/{chunk-KAAB2DIV.js → chunk-LJDATBPB.js} +6 -6
  148. package/dist/{chunk-EHNGPUTO.js → chunk-LMMS675D.js} +5 -5
  149. package/dist/{chunk-ANNQJWDX.js → chunk-LPKGZ664.js} +285 -34
  150. package/dist/{chunk-ZTSJ7NY6.js → chunk-LPMSGO7L.js} +3 -3
  151. package/dist/chunk-LQWINE7K.js +211 -0
  152. package/dist/{chunk-RHBQ2Q5H.js → chunk-MKMMQDIY.js} +60 -43
  153. package/dist/{chunk-RMVCKO6N.js → chunk-MQ4IEDM5.js} +458 -136
  154. package/dist/{chunk-J22ETKDJ.js → chunk-MRM4KJ2O.js} +2 -2
  155. package/dist/{chunk-Z2BDTZDT.js → chunk-MX2OZHIT.js} +97 -39
  156. package/dist/{chunk-IFURKTOL.js → chunk-MXUPMGRY.js} +2 -2
  157. package/dist/{chunk-IUVJVMKS.js → chunk-NHU26HQ7.js} +55 -32
  158. package/dist/{chunk-6KHRMK3I.js → chunk-NQVJ4FPY.js} +158 -75
  159. package/dist/chunk-NZ7FX3AE.js +65 -0
  160. package/dist/{chunk-L2XRUG4P.js → chunk-OALBVELJ.js} +5 -5
  161. package/dist/{chunk-3DUGZ7ML.js → chunk-OGZ4UPYK.js} +46 -31
  162. package/dist/{chunk-7MYJUJZV.js → chunk-OMNB27GM.js} +4 -4
  163. package/dist/{chunk-GS5UG6QD.js → chunk-OO63YP35.js} +1 -1
  164. package/dist/{chunk-RHVP62HI.js → chunk-OPYDTW5Q.js} +5 -5
  165. package/dist/{chunk-4U2WSW6F.js → chunk-OSJN7KDS.js} +65 -36
  166. package/dist/{chunk-EY4OA4OF.js → chunk-OSJXIW6I.js} +370 -785
  167. package/dist/{chunk-NRYERHEI.js → chunk-OVVE42P4.js} +5 -5
  168. package/dist/{chunk-Z257SH5U.js → chunk-OZA7HA6L.js} +1 -1
  169. package/dist/{chunk-WJQX7HBH.js → chunk-OZLKEBCD.js} +2 -2
  170. package/dist/{chunk-DYSEZVIJ.js → chunk-P6DEFCMQ.js} +2 -2
  171. package/dist/{chunk-CIDOL4FO.js → chunk-PDTIQL3B.js} +5 -5
  172. package/dist/{chunk-TQ5HHNM3.js → chunk-PJ5BYZPN.js} +2 -2
  173. package/dist/{chunk-EHQLLZCQ.js → chunk-PK7Z7WRJ.js} +59 -34
  174. package/dist/{chunk-KJLH5EHD.js → chunk-PL6NWB5U.js} +175 -110
  175. package/dist/chunk-PMT75APP.js +94 -0
  176. package/dist/{chunk-KQ2WZ6BY.js → chunk-PP6A4X55.js} +1 -1
  177. package/dist/{chunk-O7Y6RJ4D.js → chunk-PPCH3PLO.js} +11 -11
  178. package/dist/{chunk-IRXTNSZL.js → chunk-PPE6S7WU.js} +40 -22
  179. package/dist/{chunk-VT7PBGL2.js → chunk-PT7KSIEO.js} +23 -36
  180. package/dist/{chunk-GADI2DU7.js → chunk-QAUGRVRU.js} +121 -23
  181. package/dist/{chunk-2X6XY4K4.js → chunk-QMFWZG2P.js} +39 -19
  182. package/dist/{chunk-YB6QGOCO.js → chunk-QZGGCE45.js} +2 -2
  183. package/dist/{chunk-5P4MXWKP.js → chunk-R2RJQ3BM.js} +4 -4
  184. package/dist/{chunk-FAFUMSPR.js → chunk-R7HBIQ63.js} +83 -51
  185. package/dist/{chunk-76UL4CT4.js → chunk-RBNDZLYS.js} +27 -22
  186. package/dist/{chunk-XN7JDII2.js → chunk-RCSY4CT4.js} +230 -107
  187. package/dist/{chunk-OAT6FWKL.js → chunk-RHQRPJHS.js} +5 -5
  188. package/dist/chunk-RI6XQKWJ.js +26 -0
  189. package/dist/{chunk-FX5VZK5F.js → chunk-RJICOOB3.js} +14 -8
  190. package/dist/{chunk-NINK4G7U.js → chunk-RLAVNCQJ.js} +2 -2
  191. package/dist/{chunk-FERP4WS3.js → chunk-ROPPWJQB.js} +11 -10
  192. package/dist/{chunk-SSZB3VXG.js → chunk-SELOV32X.js} +102 -47
  193. package/dist/{chunk-EEBMK6T6.js → chunk-SQI4NWTQ.js} +8 -8
  194. package/dist/{chunk-2WTD3GCR.js → chunk-SRJ74CMG.js} +2 -2
  195. package/dist/{chunk-LSR3SBJ4.js → chunk-STWOURLG.js} +234 -136
  196. package/dist/{chunk-BQIADGJB.js → chunk-SWMFXSVW.js} +5 -5
  197. package/dist/{chunk-5HTGSB6Y.js → chunk-SZ5VGWDY.js} +3 -3
  198. package/dist/{chunk-EDBUVDRI.js → chunk-T26G23RS.js} +359 -86
  199. package/dist/chunk-T7GPIJ4L.js +89 -0
  200. package/dist/{chunk-LGMV7ZV4.js → chunk-TAEB3RU6.js} +5 -5
  201. package/dist/{chunk-YFI5PN5O.js → chunk-TBDIMTRD.js} +34 -11
  202. package/dist/{chunk-HDSHS2QZ.js → chunk-TFFPEWNP.js} +70 -47
  203. package/dist/{chunk-YO5UKKCQ.js → chunk-TMEUK2WS.js} +6 -2
  204. package/dist/{chunk-X5OVVMZX.js → chunk-TVOMGNFQ.js} +1 -1
  205. package/dist/{chunk-JARJP576.js → chunk-TX5FSNAU.js} +435 -29
  206. package/dist/{chunk-LUZ7HXBT.js → chunk-U52PNFPX.js} +1 -1
  207. package/dist/chunk-U74AWJ3X.js +24 -0
  208. package/dist/chunk-UC7LBW7N.js +26 -0
  209. package/dist/{chunk-V3UE3TB7.js → chunk-UCKUAKYQ.js} +2 -2
  210. package/dist/{chunk-62JZL6FW.js → chunk-UCYL3YA7.js} +56 -42
  211. package/dist/{chunk-AKJO6N4K.js → chunk-UD2GI3CS.js} +11 -4
  212. package/dist/{chunk-MOQFYJ3F.js → chunk-ULQIC76A.js} +5 -5
  213. package/dist/{chunk-HFFKN7PA.js → chunk-UY34DDUM.js} +3 -3
  214. package/dist/{chunk-2I76VFMZ.js → chunk-UYMFLWM6.js} +49 -37
  215. package/dist/{chunk-3LNVEE5Z.js → chunk-V7FV66KL.js} +1 -1
  216. package/dist/{chunk-UP4JSNDR.js → chunk-V7NUJEJE.js} +1 -1
  217. package/dist/{chunk-53OEKS4L.js → chunk-VESSIKBG.js} +6 -3
  218. package/dist/{chunk-HGPFEG2L.js → chunk-VRFJAF3R.js} +5 -5
  219. package/dist/chunk-VS2R3OGN.js +34 -0
  220. package/dist/{chunk-EEL2N4Y6.js → chunk-VS5B4J2D.js} +5 -5
  221. package/dist/{chunk-G5BUGYIL.js → chunk-W4R6SGU3.js} +192 -113
  222. package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
  223. package/dist/{chunk-IW3YUMPI.js → chunk-WFBN2HXR.js} +2 -2
  224. package/dist/{chunk-YCUNFAEE.js → chunk-WJS6SAWA.js} +238 -127
  225. package/dist/{chunk-VFLMBA2M.js → chunk-WQYNKF33.js} +19 -18
  226. package/dist/{chunk-QNLESRH6.js → chunk-WUP6C4ZD.js} +2 -2
  227. package/dist/{chunk-4JNHF6JW.js → chunk-X24WAHHV.js} +84 -40
  228. package/dist/{chunk-GKQLKUMF.js → chunk-X3UCQPVV.js} +41 -32
  229. package/dist/{chunk-TXMS7QUJ.js → chunk-X46PSAJ7.js} +6 -6
  230. package/dist/{chunk-M2OQK2FO.js → chunk-XD5XB22R.js} +2 -2
  231. package/dist/{chunk-AOIZJ7GR.js → chunk-XDIAQEYK.js} +6 -6
  232. package/dist/{chunk-7EQU2TUN.js → chunk-XFPNYHX3.js} +84 -53
  233. package/dist/{chunk-NCCDEUHD.js → chunk-XIBVAKCO.js} +1 -1
  234. package/dist/{chunk-SD6ENKTO.js → chunk-XMX4PCFL.js} +3 -3
  235. package/dist/{chunk-2HD5RY2U.js → chunk-XRRG4MBM.js} +3 -3
  236. package/dist/{chunk-Y5WHM2Q5.js → chunk-XTFO6D4L.js} +1 -1
  237. package/dist/chunk-XWRI3N5O.js +70 -0
  238. package/dist/{chunk-IVQT2E3Y.js → chunk-XXPLPSOE.js} +13 -13
  239. package/dist/{chunk-YNHPPZ7S.js → chunk-XZXZNI7A.js} +1 -1
  240. package/dist/{chunk-QZMLSK43.js → chunk-YEJZ2OYS.js} +294 -145
  241. package/dist/{chunk-GAFEN3H7.js → chunk-Z3WQXVFV.js} +2 -2
  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-CV3NC75L.js → chunk-ZBOOMLHD.js} +1 -1
  245. package/dist/{chunk-ZDD3MJ2H.js → chunk-ZDJ7C64T.js} +1 -1
  246. package/dist/{chunk-OKM5LYYP.js → chunk-ZGZLEUKM.js} +5 -5
  247. package/dist/{chunk-QHPJ5ZKS.js → chunk-ZHRGX225.js} +5 -5
  248. package/dist/{chunk-QYOZ46ZQ.js → chunk-ZIVCPXXL.js} +467 -650
  249. package/dist/{chunk-V62B23VC.js → chunk-ZNRSYS76.js} +8 -2
  250. package/dist/{chunk-UFZXZJJG.js → chunk-ZSLTSCTI.js} +5 -5
  251. package/dist/{chunk-NIDH22DI.js → chunk-ZSYFQSPF.js} +12 -2
  252. package/dist/cli/index.js +8 -3
  253. package/dist/{core-UNX4ZV4M.js → core-43GLGBOY.js} +5 -1
  254. package/dist/{core-T3OSZOVV.js → core-5GI3ERXO.js} +3 -1
  255. package/dist/{core-AMWCZTOT.js → core-5L7TMK7I.js} +5 -1
  256. package/dist/{core-5S5CJHBG.js → core-7TO4OVY5.js} +2 -1
  257. package/dist/{core-BJZEJ63L.js → core-BJVENHFQ.js} +3 -1
  258. package/dist/{core-A7HXVSKB.js → core-BX4MFWKC.js} +2 -1
  259. package/dist/{core-4PW4MXWR.js → core-C3KXTOIZ.js} +4 -1
  260. package/dist/{core-SKMHEA4Y.js → core-C5Y6BFLL.js} +3 -1
  261. package/dist/{core-FTQBESDS.js → core-CLUSJ2SK.js} +3 -1
  262. package/dist/{core-QM34237W.js → core-E3IN2VVH.js} +2 -1
  263. package/dist/{core-4M4RY7MX.js → core-FD67NQOV.js} +3 -1
  264. package/dist/{core-WXZJ7V7S.js → core-FDKMLRAK.js} +4 -1
  265. package/dist/{core-L3UR75IJ.js → core-FL6Z3VVX.js} +4 -1
  266. package/dist/{core-XKXDXALI.js → core-JC7JUFPY.js} +6 -1
  267. package/dist/{core-WP73P4CW.js → core-JF33TADA.js} +5 -1
  268. package/dist/{core-DMDAXVMY.js → core-JH32ZAKM.js} +2 -1
  269. package/dist/{core-GS4DXDDG.js → core-JYYZPPQV.js} +4 -1
  270. package/dist/{core-N2JEWJ7D.js → core-KJTKCV4U.js} +2 -1
  271. package/dist/{core-7XKNJM7Y.js → core-LCQPE5Y6.js} +5 -1
  272. package/dist/{core-ZACFV6XR.js → core-LHVGWE54.js} +5 -1
  273. package/dist/{core-VT35VDVS.js → core-OVSNBOCE.js} +6 -1
  274. package/dist/{core-AVA4XLQ2.js → core-PPEC236B.js} +2 -1
  275. package/dist/{core-QFAVWFI3.js → core-QTJZDK5H.js} +2 -1
  276. package/dist/{core-VWYXK2R3.js → core-R3YZCOUZ.js} +4 -1
  277. package/dist/{core-OFPPRHYY.js → core-RIBW5XU4.js} +3 -1
  278. package/dist/{core-MAW4S3KA.js → core-RJFILBWL.js} +5 -1
  279. package/dist/{core-FCSA74RT.js → core-RWSXEKTE.js} +3 -1
  280. package/dist/{core-WPEYRK6Y.js → core-SOPPZLEH.js} +4 -1
  281. package/dist/{core-EMSJRGSE.js → core-TBUZCXLX.js} +2 -1
  282. package/dist/{core-OBPTBKX6.js → core-TZ5QLTAX.js} +2 -1
  283. package/dist/{core-JDZDBTID.js → core-U7E5W4MY.js} +2 -1
  284. package/dist/{core-ZSERZGK6.js → core-UBNVSL44.js} +3 -1
  285. package/dist/{core-WNT6ZMRO.js → core-UDRD4WIU.js} +2 -1
  286. package/dist/{core-VRVL6LIM.js → core-UVJZ4HY2.js} +3 -1
  287. package/dist/{core-7TTM4KRP.js → core-X7WWYQH4.js} +3 -1
  288. package/dist/{core-D2OIGYC7.js → core-XP56X47I.js} +4 -1
  289. package/dist/{core-CCB3IXGD.js → core-XQG54CYG.js} +3 -1
  290. package/dist/{dataTable-7IO546LM.js → dataTable-U7W4I6IF.js} +7 -2
  291. package/dist/{engine-US3N6UCH.js → engine-O5V26MGR.js} +23 -18
  292. package/dist/fixtures.js +2 -1
  293. package/dist/flags-BVLSAXT3.js +10 -0
  294. package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
  295. package/dist/geo/dach.js +1 -1
  296. package/dist/geo/de-states.js +1 -1
  297. package/dist/geo/eu27.js +1 -1
  298. package/dist/geo/europe.js +1 -1
  299. package/dist/geo/index.js +2 -2
  300. package/dist/geo/us-states.js +1 -1
  301. package/dist/geo/world.js +1 -1
  302. package/dist/index.js +27 -20
  303. package/dist/{main-2UWKGUHR.js → main-35GS47XC.js} +50 -119
  304. package/dist/mcp/server.js +121 -118
  305. package/dist/react/bar.js +5 -1
  306. package/dist/react/bartable.js +3 -1
  307. package/dist/react/box.js +3 -1
  308. package/dist/react/bullet.js +4 -1
  309. package/dist/react/butterfly.js +5 -1
  310. package/dist/react/choropleth.js +3 -1
  311. package/dist/react/cohort.js +3 -1
  312. package/dist/react/column.js +5 -1
  313. package/dist/react/combo.js +5 -1
  314. package/dist/react/creative.js +4 -1
  315. package/dist/react/diagram.js +3 -1
  316. package/dist/react/dimswitch.js +6 -1
  317. package/dist/react/dot.js +4 -1
  318. package/dist/react/export.js +29 -18
  319. package/dist/react/funnel.js +4 -1
  320. package/dist/react/gantt.js +3 -1
  321. package/dist/react/grid.js +6 -1
  322. package/dist/react/heatmap.js +3 -1
  323. package/dist/react/histogram.js +6 -1
  324. package/dist/react/index.js +92 -85
  325. package/dist/react/kpi.js +4 -1
  326. package/dist/react/likert.js +6 -1
  327. package/dist/react/line.js +4 -1
  328. package/dist/react/mekko.js +5 -1
  329. package/dist/react/pareto.js +6 -1
  330. package/dist/react/pie.js +4 -1
  331. package/dist/react/prepare.js +35 -22
  332. package/dist/react/pvm.js +6 -1
  333. package/dist/react/pyramid.js +5 -1
  334. package/dist/react/sankey.js +3 -1
  335. package/dist/react/scatter.js +3 -1
  336. package/dist/react/slope.js +4 -1
  337. package/dist/react/sparkline.js +4 -1
  338. package/dist/react/spec.js +17 -13
  339. package/dist/react/status.js +3 -1
  340. package/dist/react/story.js +3 -2
  341. package/dist/react/table.js +4 -1
  342. package/dist/react/theme.js +5 -3
  343. package/dist/react/tilemap.js +3 -1
  344. package/dist/react/treemap.js +3 -1
  345. package/dist/react/variance.js +5 -1
  346. package/dist/react/waffle.js +3 -1
  347. package/dist/react/waterfall.js +5 -1
  348. package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
  349. package/dist/rows.js +2 -2
  350. package/dist/{rowsModule-DYDVHBAX.js → rowsModule-H2S6WW4D.js} +1 -1
  351. package/dist/{schema-YDZCGL56.js → schema-2R32F6AW.js} +1 -3
  352. package/dist/{schema-A2XUZUCV.js → schema-2TPGJGVR.js} +1 -3
  353. package/dist/{schema-MD22QYZU.js → schema-47BG2TZA.js} +1 -3
  354. package/dist/{schema-HEB6ZDI5.js → schema-56MOEOVR.js} +1 -3
  355. package/dist/{schema-K4V4PYBO.js → schema-5MSR4LNN.js} +1 -3
  356. package/dist/{schema-NOBNFD2F.js → schema-5RIYEWE6.js} +1 -3
  357. package/dist/{schema-PHIHMDVB.js → schema-A26ZNGTZ.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-6PL46VXZ.js → schema-FU2AFIEE.js} +1 -3
  372. package/dist/{schema-XIHAKX3B.js → schema-JNJFCYBM.js} +1 -1
  373. package/dist/{schema-6V5K3J2V.js → schema-JYZ4RF6S.js} +1 -3
  374. package/dist/{schema-GXOG4MXL.js → schema-K7F6TEDK.js} +1 -2
  375. package/dist/{schema-NMIYKGHE.js → schema-KAK6DZX4.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-QPIC5MAG.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-FGE5YK3S.js → schema-Y4TI2T3T.js} +1 -3
  387. package/dist/{schema-MQB6CE5V.js → schema-ZU2EU2VP.js} +1 -3
  388. package/dist/{specValidation-XGELWQUU.js → specValidation-2NHJT7TQ.js} +3 -1
  389. package/dist/theme.js +4 -3
  390. package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
  391. package/dist/types/core/annotate.d.ts +27 -2
  392. package/dist/types/core/annotateArms.d.ts +3 -1
  393. package/dist/types/core/annotateTargets.d.ts +4 -0
  394. package/dist/types/core/annotationOrigin.d.ts +13 -0
  395. package/dist/types/core/axis.d.ts +2 -2
  396. package/dist/types/core/charts/band/stacks.d.ts +7 -1
  397. package/dist/types/core/charts/column/model.d.ts +13 -0
  398. package/dist/types/core/charts/combo/layout.d.ts +7 -0
  399. package/dist/types/core/charts/gantt/calendar.d.ts +4 -0
  400. package/dist/types/core/charts/grid/normalize.d.ts +5 -0
  401. package/dist/types/core/charts/grid/schema.d.ts +2 -2
  402. package/dist/types/core/charts/pareto/layout.d.ts +2 -0
  403. package/dist/types/core/charts/pvm/types.d.ts +1 -0
  404. package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
  405. package/dist/types/core/charts/scatter/model.d.ts +5 -0
  406. package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
  407. package/dist/types/core/charts/table/resolve.d.ts +8 -3
  408. package/dist/types/core/charts/table/view.d.ts +24 -1
  409. package/dist/types/core/claims/browser.d.ts +2 -0
  410. package/dist/types/core/claims/ids.d.ts +38 -0
  411. package/dist/types/core/deferred.d.ts +1 -0
  412. package/dist/types/core/doc/diagnostics.d.ts +3 -2
  413. package/dist/types/core/formatSpec.d.ts +33 -14
  414. package/dist/types/core/frame.d.ts +25 -58
  415. package/dist/types/core/frameText.d.ts +203 -0
  416. package/dist/types/core/geometry.d.ts +2 -0
  417. package/dist/types/core/label/categoryRow.d.ts +19 -2
  418. package/dist/types/core/label/solver.d.ts +23 -2
  419. package/dist/types/core/normalize/shared.d.ts +12 -2
  420. package/dist/types/core/notes.d.ts +15 -2
  421. package/dist/types/core/reading.d.ts +12 -1
  422. package/dist/types/core/request.d.ts +1 -1
  423. package/dist/types/core/schema/capability.d.ts +12 -0
  424. package/dist/types/core/seriesIdentity.d.ts +4 -1
  425. package/dist/types/core/sizing.d.ts +32 -1
  426. package/dist/types/core/structureCounts.d.ts +3 -1
  427. package/dist/types/core/theme.d.ts +33 -4
  428. package/dist/types/core/themeRules.d.ts +2 -0
  429. package/dist/types/core/types/annotations.d.ts +74 -4
  430. package/dist/types/core/types/options.d.ts +35 -3
  431. package/dist/types/core/types/scene.d.ts +30 -2
  432. package/dist/types/core/types/table.d.ts +6 -0
  433. package/dist/types/core/types/theme.d.ts +23 -0
  434. package/dist/types/react/TableChart.d.ts +5 -0
  435. package/dist/validate.js +13 -6
  436. package/docs/TELEMETRY.md +2 -2
  437. package/docs/manual.md +252 -62
  438. package/docs/reference/bar.md +12 -4
  439. package/docs/reference/bartable.md +2 -2
  440. package/docs/reference/box.md +8 -4
  441. package/docs/reference/bullet.md +9 -5
  442. package/docs/reference/butterfly.md +10 -5
  443. package/docs/reference/choropleth.md +3 -5
  444. package/docs/reference/cohort.md +1 -1
  445. package/docs/reference/column.md +18 -4
  446. package/docs/reference/combo.md +10 -5
  447. package/docs/reference/creative.md +3 -7
  448. package/docs/reference/diagram.md +1 -1
  449. package/docs/reference/dimswitch.md +23 -88
  450. package/docs/reference/dot.md +9 -5
  451. package/docs/reference/fixtures.md +37 -1
  452. package/docs/reference/funnel.md +9 -5
  453. package/docs/reference/gantt.md +8 -15
  454. package/docs/reference/grid.md +5 -2
  455. package/docs/reference/heatmap.md +10 -6
  456. package/docs/reference/kpi.md +1 -1
  457. package/docs/reference/likert.md +9 -4
  458. package/docs/reference/line.md +18 -5
  459. package/docs/reference/mekko.md +10 -5
  460. package/docs/reference/options.md +17 -13
  461. package/docs/reference/pareto.md +8 -4
  462. package/docs/reference/pie.md +9 -5
  463. package/docs/reference/pvm.md +9 -5
  464. package/docs/reference/pyramid.md +8 -4
  465. package/docs/reference/react.md +5 -5
  466. package/docs/reference/sankey.md +2 -2
  467. package/docs/reference/scatter.md +8 -4
  468. package/docs/reference/slope.md +9 -5
  469. package/docs/reference/sparkline.md +1 -1
  470. package/docs/reference/status.md +1 -1
  471. package/docs/reference/table.md +33 -114
  472. package/docs/reference/theme.md +12 -4
  473. package/docs/reference/tilemap.md +2 -4
  474. package/docs/reference/treemap.md +1 -1
  475. package/docs/reference/variance.md +12 -6
  476. package/docs/reference/waffle.md +1 -1
  477. package/docs/reference/warnings.md +1077 -0
  478. package/docs/reference/waterfall.md +16 -4
  479. package/docs/use-cases.md +25 -13
  480. package/llms.txt +19 -6
  481. package/package.json +18 -3
  482. package/dist/chunk-5RHP7YTL.js +0 -24
  483. package/dist/chunk-6VU2XI3W.js +0 -89
  484. package/dist/chunk-6WJOHZPW.js +0 -26
  485. package/dist/chunk-FL3FQ2YA.js +0 -27
  486. package/dist/chunk-G5CELEUR.js +0 -26
  487. package/dist/chunk-M4SPKUZE.js +0 -7
  488. package/dist/chunk-OF7FMGH5.js +0 -24
  489. package/dist/chunk-S2TSXUYP.js +0 -24
  490. package/dist/chunk-TKERVBJ3.js +0 -23
  491. package/dist/chunk-VMGTNB6H.js +0 -25
  492. package/dist/chunk-WZL4EEBS.js +0 -11
  493. package/dist/chunk-YJGFT63R.js +0 -27
  494. package/dist/chunk-ZNX5J7D7.js +0 -47
@@ -3,13 +3,13 @@ import {
3
3
  fitLogTicks,
4
4
  olsFit,
5
5
  olsMoments
6
- } from "./chunk-JMOBA5ES.js";
6
+ } from "./chunk-3XAJSMYD.js";
7
7
  import {
8
8
  preparePolyline
9
- } from "./chunk-Z257SH5U.js";
9
+ } from "./chunk-OZA7HA6L.js";
10
10
  import {
11
11
  INTERVAL_TICK
12
- } from "./chunk-2X6XY4K4.js";
12
+ } from "./chunk-QMFWZG2P.js";
13
13
  import {
14
14
  DEFAULT_OTHERS_SHADE
15
15
  } from "./chunk-RQ5DNYLG.js";
@@ -18,21 +18,21 @@ import {
18
18
  } from "./chunk-EKQK5D6G.js";
19
19
  import {
20
20
  warnSliverLabels
21
- } from "./chunk-5HTGSB6Y.js";
21
+ } from "./chunk-SZ5VGWDY.js";
22
22
  import {
23
23
  gapMarkerNode
24
- } from "./chunk-I3DLERI7.js";
24
+ } from "./chunk-AICO24HJ.js";
25
25
  import {
26
26
  chartString as chartString2,
27
27
  localeStrings,
28
28
  planNearZeroTails
29
- } from "./chunk-GC4WOLV3.js";
29
+ } from "./chunk-HAG3K6PQ.js";
30
30
  import {
31
31
  categoryBandFromCenters
32
32
  } from "./chunk-CDZHNLO6.js";
33
33
  import {
34
34
  trendTimeUnit
35
- } from "./chunk-6ZN2XJFI.js";
35
+ } from "./chunk-54YO56IK.js";
36
36
  import {
37
37
  categoryLineAlign,
38
38
  dayUnit,
@@ -46,7 +46,7 @@ import {
46
46
  valueAxisTitleRequest,
47
47
  warnSpreadOverflow,
48
48
  yearRowRequests
49
- } from "./chunk-AFGQXMKT.js";
49
+ } from "./chunk-ETRAPN5G.js";
50
50
  import {
51
51
  AREA_FILL_PART,
52
52
  LAST_RESORT_PENALTY,
@@ -54,26 +54,22 @@ import {
54
54
  SWATCH_RESERVE,
55
55
  adjacentSeriesWarnings,
56
56
  composedTextRole,
57
- createOccupiedIndex,
58
- defaultAnnotationId,
59
57
  fitText,
60
- inflate,
61
58
  othersShadeUnavailableWarnings,
62
59
  partialKeyForced,
63
- polylineYAt,
64
60
  resolvePaintWarnings,
65
61
  retainAdjacentWarningRule,
66
- round2,
67
62
  saysToDate,
68
- segmentHitsRect,
69
- sideAwayFrom,
70
63
  toDateFits,
71
64
  toDateLabel,
72
65
  unitPrinted
73
- } from "./chunk-WSKZZ2ZB.js";
66
+ } from "./chunk-I5VDW2XZ.js";
74
67
  import {
75
68
  disclosureNote
76
- } from "./chunk-WZB6R2ZX.js";
69
+ } from "./chunk-DZYTXZNS.js";
70
+ import {
71
+ defaultAnnotationId
72
+ } from "./chunk-F2ET5ZTT.js";
77
73
  import {
78
74
  emptyIdRecord
79
75
  } from "./chunk-LINZPU5D.js";
@@ -84,7 +80,7 @@ import {
84
80
  seriesRasterFormatter,
85
81
  trendRateFormatter,
86
82
  withUnit
87
- } from "./chunk-D3PQAVFW.js";
83
+ } from "./chunk-Z6DUNKFU.js";
88
84
  import {
89
85
  NOT_AVAILABLE,
90
86
  NOT_MEANINGFUL,
@@ -102,11 +98,14 @@ import {
102
98
  HATCH_STRENGTH_DEFAULT,
103
99
  LABEL_PLATE_RADIUS,
104
100
  bumpStoryPaints,
101
+ colorRolePaints,
102
+ createOccupiedIndex,
105
103
  dashToken,
106
104
  effectiveFill,
107
105
  emphasisWeight,
108
106
  fanPaintSteps,
109
107
  hatchGapFactor,
108
+ inflate,
110
109
  isOthersFill,
111
110
  labelPlate,
112
111
  labelsOffKeepsNames,
@@ -117,18 +116,22 @@ import {
117
116
  orderedRampPaint,
118
117
  othersSeparation,
119
118
  paintColor,
119
+ polylineYAt,
120
120
  rampSlots,
121
121
  readerFloorPx,
122
+ round2,
122
123
  secondaryFont,
124
+ segmentHitsRect,
123
125
  separatedWashPaint,
124
126
  seriesPaint,
127
+ sideAwayFrom,
125
128
  strokeToken,
126
129
  textScaleOf
127
- } from "./chunk-JARJP576.js";
130
+ } from "./chunk-TX5FSNAU.js";
128
131
  import {
129
132
  PALETTE_NORMAL_FLOOR,
130
133
  palettePerceptualDistance
131
- } from "./chunk-DRHQG44U.js";
134
+ } from "./chunk-BQBD6Q5J.js";
132
135
  import {
133
136
  cubicPoint,
134
137
  curvePathFromSegments,
@@ -139,12 +142,12 @@ import {
139
142
  monotoneYAt,
140
143
  splitCurve,
141
144
  splitCurveSegmentsAtX
142
- } from "./chunk-JYAZPMSA.js";
145
+ } from "./chunk-6IUK6PAH.js";
143
146
  import {
144
147
  DEFAULT_TARGET,
145
148
  NormalizeError,
146
149
  resolveSubtitle
147
- } from "./chunk-FX5VZK5F.js";
150
+ } from "./chunk-RJICOOB3.js";
148
151
  import {
149
152
  maxOf,
150
153
  minOf,
@@ -179,7 +182,7 @@ function trendTimeline(cats, source = cats) {
179
182
  function fitLineTrends(domain, warnings) {
180
183
  if (!domain.options.trend) return [];
181
184
  if (domain.isStacked || domain.bumpDerived)
182
- throw new NormalizeError("trend-unsupported", "options.trend", "trend needs variant 'line' or 'area'; a stack or rank is not a series value");
185
+ throw new NormalizeError("trend-unsupported", "options.trend", "trend needs variant 'line' or 'area'; a stack or rank is not a series value", void 0, void 0, ["options", "trend"]);
183
186
  let population = domain.population, lo = population ? population.indexes[0] : 0, hi = population ? population.indexes[population.indexes.length - 1] : domain.cats.length - 1, cats = population ? population.categories.slice(lo, hi + 1) : domain.cats, rows = population ? population.plotted : domain.pv, continuous = domain.x ? continuousTrend(domain.x, lo, hi) : void 0, unit = continuous?.unit ?? trendUnit(cats), xs = continuous?.xs ?? (unit === "period" ? cats.map((_, i) => population ? i : domain.timeline?.positions[i] ?? i) : trendXs(cats, unit));
184
187
  return domain.drawnSeries.flatMap((s) => {
185
188
  let row = rows[domain.rowOf.get(s)], points = xs.flatMap((x, i) => row[lo + i] === null ? [] : [{ x, y: row[lo + i] }]), moments = olsMoments(points), fit = moments.n >= 3 ? olsFit(moments) : null;
@@ -326,7 +329,7 @@ function seatValuesOnGround(requests, grounds, pad, cssOf, others = !0, kinds =
326
329
  }
327
330
 
328
331
  // src/core/charts/line/labels.ts
329
- var BUMP_NAME_MAX_FRACTION = 0.18, BUMP_NAME_MAX_LINES = 2, ENDPOINT_LEADER_CLEARANCE = 4, ENDPOINT_LEADER_MIN_DY = 3, END_LABEL_MAX_DISPLACEMENT_LINES = 3, SLIVER_MIN_H = 10, END_NAME_GAP = 16, NAME_PRIORITY = PRIORITY.endpoint + 1, END_LABEL_KEY = /* @__PURE__ */ Symbol("lineEndLabelKey"), END_LABEL_WIDE = /* @__PURE__ */ Symbol("lineEndLabelWide"), INLINE_FALLBACK = /* @__PURE__ */ Symbol("lineInlineFallback"), usesInlineFallback = (options) => options[INLINE_FALLBACK] === !0, usesEndLabelKey = (options) => options[END_LABEL_KEY] !== void 0, fanEdgeInKey = (domain) => domain.fan !== null && domain.x?.range?.cut.hi === !0 && usesEndLabelKey(domain.options), usesWideEndLabels = (options) => options[END_LABEL_WIDE] === !0;
332
+ var BUMP_NAME_MAX_FRACTION = 0.18, BUMP_NAME_MAX_LINES = 2, ENDPOINT_LEADER_CLEARANCE = 4, ENDPOINT_LEADER_MIN_DY = 3, END_LABEL_MAX_DISPLACEMENT_LINES = 3, SLIVER_MIN_H = 10, END_NAME_GAP = 16, NAME_PRIORITY = PRIORITY.endpoint + 1, END_LABEL_KEY = /* @__PURE__ */ Symbol("lineEndLabelKey"), END_LABEL_WIDE = /* @__PURE__ */ Symbol("lineEndLabelWide"), POINT_LABEL_CENTERED_ROOM = /* @__PURE__ */ Symbol("pointLabelCenteredRoom"), INLINE_FALLBACK = /* @__PURE__ */ Symbol("lineInlineFallback"), usesInlineFallback = (options) => options[INLINE_FALLBACK] === !0, usesEndLabelKey = (options) => options[END_LABEL_KEY] !== void 0, fanEdgeInKey = (domain) => domain.fan !== null && domain.x?.range?.cut.hi === !0 && usesEndLabelKey(domain.options), usesWideEndLabels = (options) => options[END_LABEL_WIDE] === !0;
330
333
  function lineFocusFont(env, domain, font, weight) {
331
334
  return !env.isBump && env.anyHighlight && domain.variant === "line" && !domain.isArea && domain.options.highlightMode !== "fade" ? { ...font, weight } : void 0;
332
335
  }
@@ -652,8 +655,8 @@ function pointLabelSeeds(input) {
652
655
  source,
653
656
  categoryId: category.id
654
657
  })), !text && cell.labelOverride !== !1) continue;
655
- let endpoint = ci === drawn[0] || ci === last, extreme = value === min || value === max, highlighted = input.highlights.has(series.id) || input.highlights.has(category.id), priority = cell.priority ?? (endpoint ? PRIORITY.endpoint : extreme ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(value))) + (highlighted ? PRIORITY.highlightBonus : 0);
656
- seeds.push({ ci, text, w: input.measure(text || "0", input.labelFont).width, priority, suppressed: cell.labelOverride === !1, extreme });
658
+ let endpoint = ci === drawn[0] || ci === last, extreme = value === min || value === max, highlighted = input.highlights.has(series.id) || input.highlights.has(category.id) || input.pointHighlights?.has(category.id), priority = cell.priority ?? (endpoint ? PRIORITY.endpoint : extreme ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(value))) + (highlighted ? PRIORITY.highlightBonus : 0);
659
+ seeds.push({ ci, text, w: input.measure(text || "0", input.labelFont).width, priority, suppressed: cell.labelOverride === !1, extreme, highlighted: highlighted === !0 });
657
660
  }
658
661
  return seeds;
659
662
  }
@@ -726,10 +729,14 @@ function pushPointRequests(input) {
726
729
  return;
727
730
  }
728
731
  } else {
729
- let away = input.bump ? "above" : sideAwayFrom({ x: input.xOf(candidate.ci), y: candidate.py }, input.others), order = away === "below" ? ["below", "above", "belowShifted", "aboveShifted"] : away === "above" ? ["above", "below", "aboveShifted", "belowShifted"] : ["above", "aboveShifted", "below", "belowShifted"], px = input.xOf(candidate.ci), at = { x: px, y: candidate.py, w: 0, h: 0 }, rivals = otherQueries.filter((stroke) => stroke.distance(at) > 1e-6), last = candidate.ci === lastDrawn, lateFirst = candidate.ci === firstDrawn && firstDrawn > 0 && !input.bump, rescue = [
732
+ let away = input.bump ? "above" : sideAwayFrom({ x: input.xOf(candidate.ci), y: candidate.py }, input.others), order = away === "below" ? ["below", "above", "belowShifted", "aboveShifted"] : away === "above" ? ["above", "below", "aboveShifted", "belowShifted"] : ["above", "aboveShifted", "below", "belowShifted"], px = input.xOf(candidate.ci), markerExtra = Math.max(0, (input.markerRadiusOf?.(candidate.ci) ?? 3) - 3), clearMarker = (slot, rect) => markerExtra === 0 ? rect : {
733
+ ...rect,
734
+ x: rect.x + (slot.startsWith("left") ? -markerExtra : slot.startsWith("right") ? markerExtra : 0),
735
+ y: rect.y + (slot.startsWith("above") || slot === "forecastAboveEdge" ? -markerExtra : slot.startsWith("below") || slot === "forecastBelowEdge" ? markerExtra : 0)
736
+ }, at = { x: px, y: candidate.py, w: 0, h: 0 }, rivals = otherQueries.filter((stroke) => stroke.distance(at) > 1e-6), last = candidate.ci === lastDrawn, lateFirst = candidate.ci === firstDrawn && firstDrawn > 0 && !input.bump, rescue = [
730
737
  // The first focus value has the same level seat as the last value,
731
738
  // mirrored left. A steep rise can block every seat over the point.
732
- ...candidate.ci === firstDrawn && input.highlighted ? [
739
+ ...candidate.ci === firstDrawn && (input.highlighted || input.shapeSide?.get(candidate.ci) === "left") ? [
733
740
  { slot: "left", rect: { x: px - w - 7, y: candidate.py - labelH / 2, w, h: labelH }, penalty: 4 }
734
741
  ] : [],
735
742
  // Use the plot's 8 px axis gutter, with 2 px left clear, when clamping
@@ -794,7 +801,10 @@ function pushPointRequests(input) {
794
801
  ] : []
795
802
  ]
796
803
  ], named = input.bump?.named?.has(`${input.series.id}:${candidate.ci}`) === !0;
797
- slots = seats.filter((seat) => !last || continuedEnd || Math.max(seat.y - candidate.py, candidate.py - seat.y - labelH, 0) <= labelH).filter((seat) => !((named || input.bump) && seat.slot.startsWith("below"))).filter((seat) => input.fillTo === void 0 || (seat.y + labelH / 2 - candidate.py) * (input.fillTo - candidate.py) <= 0).map((seat) => ({ slot: seat.slot, rect: containedRect(bounds, seat.x, seat.y, w, labelH), penalty: seat.penalty ?? (seat.slot.endsWith("Right") ? 1.5 : order.indexOf(seat.slot)) })).concat(rescue).sort((a, b) => a.penalty - b.penalty).flatMap((seat) => {
804
+ slots = seats.filter((seat) => !last || continuedEnd || Math.max(seat.y - candidate.py, candidate.py - seat.y - labelH, 0) <= labelH).filter((seat) => !((named || input.bump) && seat.slot.startsWith("below"))).filter((seat) => input.fillTo === void 0 || (seat.y + labelH / 2 - candidate.py) * (input.fillTo - candidate.py) <= 0).map((seat) => {
805
+ let moved = clearMarker(seat.slot, { x: seat.x, y: seat.y, w, h: labelH });
806
+ return { slot: seat.slot, rect: containedRect(bounds, moved.x, moved.y, w, labelH), penalty: seat.penalty ?? (seat.slot.endsWith("Right") ? 1.5 : order.indexOf(seat.slot)) };
807
+ }).concat(rescue.map((seat) => ({ ...seat, rect: clearMarker(seat.slot, seat.rect) }))).sort((a, b) => a.penalty - b.penalty).flatMap((seat) => {
798
808
  let { slot, rect, penalty } = seat, leaderFrom = "leaderFrom" in seat ? seat.leaderFrom : void 0;
799
809
  if (rect === null) return [];
800
810
  if (ownQueries.some((stroke) => stroke.hits(rect, 2))) return [];
@@ -805,7 +815,9 @@ function pushPointRequests(input) {
805
815
  return rivals.some((stroke) => stroke.distance(rect) < own) ? [] : [{ slot, rect, penalty }];
806
816
  });
807
817
  }
808
- computed && !continuedEnd && (slots = slots.filter((slot) => !slot.leaderFrom && !/Shifted|Raised|Step/.test(slot.slot))), !candidate.suppressed && !rest && !keep[index] && input.lost.thinned.push(name), input.labelRequests.push({
818
+ computed && !continuedEnd && (slots = slots.filter((slot) => !slot.leaderFrom && !/Shifted|Raised|Step/.test(slot.slot)));
819
+ let preferred = continuedEnd ? void 0 : input.shapeSide?.get(candidate.ci);
820
+ preferred && (slots = [...slots.filter((slot) => slot.slot === preferred).map((slot) => preferred === "left" || preferred === "right" ? { ...slot, overRules: !1 } : slot), ...slots.filter((slot) => slot.slot !== preferred)]), !candidate.suppressed && !rest && !keep[index] && input.lost.thinned.push(name), input.labelRequests.push({
809
821
  id: `point:${input.series.id}:${category.id}`,
810
822
  kind: "point",
811
823
  role: composedTextRole(candidate.text),
@@ -821,6 +833,7 @@ function pushPointRequests(input) {
821
833
  ...restFields,
822
834
  candidates: slots,
823
835
  ...computed && !input.highlighted && !continuedEnd ? { noLeader: !0 } : {},
836
+ ...candidate.highlighted ? { keepWhenDense: !0 } : {},
824
837
  // A value over a neighbour's point reads as that point's value.
825
838
  ...input.isStacked || input.bump ? {} : { anchor: { x: input.xOf(candidate.ci), y: candidate.py }, ...computed ? { ownStrokeClear: !0 } : {} },
826
839
  ...input.isStacked ? {} : { ownStroke: ownQueries }
@@ -835,7 +848,7 @@ function pointLabelSelection(input) {
835
848
  if (drawn.length === 0) return [];
836
849
  let first = drawn[0], last = drawn[drawn.length - 1], values = drawn.map((ci) => row[ci]), [min, max] = [minOf(values), maxOf(values)], engine = mode === "all" ? drawn : mode === "extremes" ? drawn.filter((ci) => ci === first || ci === last || row[ci] === min || row[ci] === max) : mode === "ends" ? [first, last] : mode === "last" ? [last] : [], fcStart = mode === "none" || mode === "all" || input.variant === "line" || input.variant === "stacked-area" ? -1 : series.scenario === "FC" ? 0 : series.vals.findIndex((val) => val.scenario === "FC"), lastActual = fcStart > 0 ? lastActualIndex(series, fcStart, !1) : -1, extra = lastActual >= 0 && row[lastActual] !== null && !engine.includes(lastActual) ? lastActual : -1;
837
850
  extra >= 0 && engine.push(extra);
838
- let authored = input.valueLabelsAuthored && series.vals.every((cell) => cell.v === null || cell.labelOverride === !1 || typeof cell.labelOverride == "string") ? [] : drawn.filter((ci) => typeof series.vals[ci]?.labelOverride == "string"), flagged = input.flagged?.seriesId === series.id && pointContent !== null ? drawn.filter((ci) => input.flagged.at.has(ci)) : [], withheld = input.lastWithheld.has(series.id) ? last : -1, keepAuthoredLast = typeof series.vals[last]?.labelOverride == "string" && !input.lastCarried?.has(series.id), only = [.../* @__PURE__ */ new Set([...engine, ...authored, ...flagged])].filter((ci) => (ci !== withheld || keepAuthoredLast) && (ci !== first || !input.firstWithheld?.has(series.id))).sort((a, b) => a - b);
851
+ let authored = input.valueLabelsAuthored && series.vals.every((cell) => cell.v === null || cell.labelOverride === !1 || typeof cell.labelOverride == "string") ? [] : drawn.filter((ci) => typeof series.vals[ci]?.labelOverride == "string"), flagged = input.flagged?.seriesId === series.id && pointContent !== null ? drawn.filter((ci) => input.flagged.at.has(ci)) : [], emphasized = mode !== "none" && input.pointHighlights?.size ? drawn.filter((ci) => input.pointHighlights.has(input.cats[ci].id) && series.vals[ci]?.labelOverride !== !1) : [], withheld = input.lastWithheld.has(series.id) ? last : -1, keepAuthoredLast = typeof series.vals[last]?.labelOverride == "string" && !input.lastCarried?.has(series.id), only = [.../* @__PURE__ */ new Set([...engine, ...authored, ...flagged, ...emphasized])].filter((ci) => (ci !== withheld || keepAuthoredLast) && (ci !== first || !input.firstWithheld?.has(series.id))).sort((a, b) => a - b);
839
852
  return only.length > 0 ? [{ series, dataIdx, row, content, only, ...extra >= 0 ? { lastActual: extra } : {} }] : [];
840
853
  });
841
854
  }
@@ -843,6 +856,9 @@ function defaultValueContent(variant, seriesValueContent) {
843
856
  return seriesValueContent ?? (variant === "stacked100-area" ? ["percent"] : ["absolute"]);
844
857
  }
845
858
  var PLOT_END_AIR = 4;
859
+ function pointLabelsFollowShape(env, domain) {
860
+ return domain.options.pointLabelSide !== "auto" && domain.variant === "line" && !env.isBump && !domain.fan && domain.dataSeries.length === 1;
861
+ }
846
862
  function pointLabelEndRoom(input) {
847
863
  let room = { left: 0, right: 0 }, last = input.cats.length - 1;
848
864
  if (input.isStacked || last < 0) return room;
@@ -850,9 +866,10 @@ function pointLabelEndRoom(input) {
850
866
  let categoryIndices = pick.only.filter((ci) => ci === 0 || ci === last);
851
867
  for (let seed of pointLabelSeeds({ ...input, series: pick.series, row: pick.row, content: pick.content, categoryIndices })) {
852
868
  if (seed.suppressed) continue;
853
- seed.ci === 0 && (room.left = Math.max(room.left, seed.w / 2 + PLOT_END_AIR));
869
+ let shape = input.shapeSides && pick.row.filter((value) => value !== null).length > 1, sideGap = 7 + Math.max(0, (input.markerExtent?.(pick.series, pick.dataIdx, seed.ci)?.reach ?? 3) - 3);
870
+ seed.ci === 0 && (room.left = Math.max(room.left, (shape ? seed.w + sideGap : seed.w / 2) + PLOT_END_AIR));
854
871
  let words = seed.ci === last && input.endToDate?.ids.has(input.cats[last].id) ? toDateLabel(seed.text, input.labelFont, input.endToDate.words, input.endToDate.theme, input.endToDate.measure).size.width : seed.w;
855
- seed.ci === last && (room.right = Math.max(room.right, words / 2 + PLOT_END_AIR));
872
+ seed.ci === last && (room.right = Math.max(room.right, (shape && input.shapeEnd ? words + sideGap : words / 2) + PLOT_END_AIR));
856
873
  }
857
874
  }
858
875
  return room;
@@ -870,6 +887,17 @@ function placePointValueLabels(input) {
870
887
  return [series.id, stroke];
871
888
  }));
872
889
  for (let { series, dataIdx, row, content, only, lastActual } of pointLabelSelection(input)) {
890
+ let shapeSide = input.shapeSides ? /* @__PURE__ */ new Map() : void 0;
891
+ if (shapeSide) {
892
+ let runs = drawnRuns(row, series.interpolateGaps), first = runs[0]?.[0], last = runs.at(-1)?.at(-1);
893
+ if (first !== void 0 && last !== void 0 && first !== last) {
894
+ shapeSide.set(first, "left"), shapeSide.set(last, "right");
895
+ for (let run of runs) for (let i = 1; i < run.length - 1; i++) {
896
+ let ci = run[i], py = input.y(row[ci]), before = input.y(row[run[i - 1]]), after = input.y(row[run[i + 1]]);
897
+ py < before && py < after ? shapeSide.set(ci, "above") : py > before && py > after && shapeSide.set(ci, "below");
898
+ }
899
+ }
900
+ }
873
901
  let seriesFont = input.focusFont && input.highlights.has(series.id) ? input.focusFont : input.labelFont, candidates = buildPointCandidates({ ...input, labelFont: seriesFont, series, dataIdx, row, content, categoryIndices: only });
874
902
  for (let candidate of candidates) {
875
903
  let divider = input.dividers.find((split) => split.ci === candidate.ci && Math.abs(split.x - candidate.x) < candidate.w / 2 + 3);
@@ -882,7 +910,7 @@ function placePointValueLabels(input) {
882
910
  for (let query of stroke.queries ??= stroke.runs.map(preparePolyline)) otherQueries.push(query);
883
911
  }
884
912
  let edge = (cum) => drawnStroke(input.cats.map((_, ci) => ({ x: input.xOf(ci), y: input.y(cum[dataIdx][ci]) })), input.interpolationFor(series)), drawn = input.drawnEdges?.get(series.id), bandEdges = input.isStacked ? { top: drawn?.runs.flat() ?? edge(input.cumTop), bottom: drawn?.bottom ?? edge(input.cumBot) } : void 0, namedEnd = input.valueLabels !== "all" && !input.isStacked && !input.bump && (input.endNamed.has(series.id) || input.labelRequests.some((request) => request.kind === "series" && request.owner.seriesId === series.id));
885
- pushPointRequests({ continued: input.drawnEdges !== void 0, highlighted: input.highlights.has(series.id) && !input.bump && input.variant === "line", regularRow: input.valueLabels === "all" && !input.isStacked, namedEnd, candidates, series, cats: input.cats, isStacked: input.isStacked, variant: input.variant, labelH: input.labelH, step: input.step, density: input.density, plot: input.plot, labelFont: seriesFont, labelRequests: input.labelRequests, ownQueries, others, otherQueries, xOf: input.xOf, besideLast: !input.endNamed.has(series.id), ...bandEdges ? { bandEdges } : {}, ...input.bump ? { bump: input.bump } : {}, topBand: input.isStacked && dataIdx === input.drawnSeries.length - 1, row, ...input.isStacked ? { painted: input.paintedAreaCats.get(series.id) } : {}, ...input.variant === "area" && input.drawnSeries.length > 1 && input.paintedAreaCats.has(series.id) ? { fillTo: input.y(0) } : {}, lost, restHidden: input.isStacked && input.restHidden?.(series) === !0, ...input.toDate ? { toDate: input.toDate } : {} });
913
+ pushPointRequests({ shapeSide, markerRadiusOf: (ci) => input.markerExtent?.(series, dataIdx, ci)?.reach, continued: input.drawnEdges !== void 0, highlighted: input.highlights.has(series.id) && !input.bump && input.variant === "line", regularRow: input.valueLabels === "all" && !input.isStacked, namedEnd, candidates, series, cats: input.cats, isStacked: input.isStacked, variant: input.variant, labelH: input.labelH, step: input.step, density: input.density, plot: input.plot, labelFont: seriesFont, labelRequests: input.labelRequests, ownQueries, others, otherQueries, xOf: input.xOf, besideLast: !input.endNamed.has(series.id), ...bandEdges ? { bandEdges } : {}, ...input.bump ? { bump: input.bump } : {}, topBand: input.isStacked && dataIdx === input.drawnSeries.length - 1, row, ...input.isStacked ? { painted: input.paintedAreaCats.get(series.id) } : {}, ...input.variant === "area" && input.drawnSeries.length > 1 && input.paintedAreaCats.has(series.id) ? { fillTo: input.y(0) } : {}, lost, restHidden: input.isStacked && input.restHidden?.(series) === !0, ...input.toDate ? { toDate: input.toDate } : {} });
886
914
  let extra = lastActual === void 0 || typeof series.vals[lastActual]?.labelOverride == "string" ? void 0 : input.labelRequests.find((request) => request.id === `point:${series.id}:${input.cats[lastActual].id}`);
887
915
  extra && (extra.quietWhenCrowded = !0, extra.redundant && extra.suppressedAs === "density" && delete extra.suppressedAs);
888
916
  }
@@ -939,8 +967,8 @@ function lineLabelModes(options, variant, drawnSeries) {
939
967
  var BUMP_FOLDED = /* @__PURE__ */ Symbol("bumpFolded");
940
968
  function validateBumpInput(input) {
941
969
  let { options, targetsLength, dataSeries, cats } = input;
942
- if (dataSeries.length < 2) throw new NormalizeError("bump-two-series", "series", "a rank chart needs at least two data-role series \u2014 one entity is a flat line at rank 1, which states nothing about who overtook whom");
943
- if (cats.length < 2) throw new NormalizeError("bump-two-categories", "categories", "a rank chart needs at least two categories \u2014 crossings are the message and one period has none", "use chart type 'slope' for two points");
970
+ if (dataSeries.length < 2) throw new NormalizeError("bump-two-series", "series", "a rank chart needs at least two data-role series \u2014 one entity is a flat line at rank 1, which states nothing about who overtook whom", void 0, void 0, ["data", "series"]);
971
+ if (cats.length < 2) throw new NormalizeError("bump-two-categories", "categories", "a rank chart needs at least two categories \u2014 crossings are the message and one period has none", "use chart type 'slope' for two points", void 0, ["data", "categories"]);
944
972
  let conflicts = [
945
973
  ["rebase100", !!options.rebase100],
946
974
  ["ratioTier", options.ratioTier !== void 0],
@@ -958,7 +986,9 @@ function validateBumpIds(dataSeries) {
958
986
  "bump-duplicate-series-id",
959
987
  "series",
960
988
  `series id${duplicateIds.length === 1 ? "" : "s"} ${duplicateIds.map((id) => `'${id}'`).join(", ")} appear more than once \u2014 the ranking receipt is keyed by series id, so two entities under one id cannot both be ranked, drawn or described`,
961
- "give every ranked entity its own id"
989
+ "give every ranked entity its own id",
990
+ void 0,
991
+ ["data", "series"]
962
992
  );
963
993
  }
964
994
  function warnBumpAxis(input) {
@@ -998,7 +1028,7 @@ function prepareBump(input) {
998
1028
  for (let series of empty) seriesNorm.splice(seriesNorm.indexOf(series), 1);
999
1029
  }
1000
1030
  let dataSeries = seriesNorm.filter((series) => series.role !== "reference");
1001
- if (dataSeries.length < 2) throw new NormalizeError("bump-two-series", "series", `after dropping entities that hold no rank anywhere, ${dataSeries.length} data-role series remain \u2014 a rank chart needs at least two`);
1031
+ if (dataSeries.length < 2) throw new NormalizeError("bump-two-series", "series", `after dropping entities that hold no rank anywhere, ${dataSeries.length} data-role series remain \u2014 a rank chart needs at least two`, void 0, void 0, ["data", "series"]);
1002
1032
  validateBumpIds(dataSeries);
1003
1033
  let bridging = dataSeries.filter((series) => series.interpolateGaps);
1004
1034
  if (bridging.length > 0) {
@@ -1057,7 +1087,7 @@ function buildBumpStartLabels(input) {
1057
1087
  return { startLabels, startReserve: railStartLabels.length > 0 ? maxOf(railStartLabels.map((label) => label.w)) + 14 : 0 };
1058
1088
  }
1059
1089
  function renderBumpTies(theme, input) {
1060
- let { bump, marks, nodes, occupied } = input;
1090
+ let { bump, marks, nodes, occupied } = input, words = { locale: { language: input.language } };
1061
1091
  if (!bump || bump.ties.length === 0) return;
1062
1092
  let radius = 7;
1063
1093
  for (let tie of bump.ties) {
@@ -1072,7 +1102,7 @@ function renderBumpTies(theme, input) {
1072
1102
  width: strokeToken(theme, "mark"),
1073
1103
  owner: { categoryId: tie.categoryId },
1074
1104
  part: "tie",
1075
- display: { value: `rank ${tie.rank}`, state: `${tie.seriesIds.length} tied` }
1105
+ display: { value: chartString2(words, "bumpRank", { v1: String(tie.rank) }), state: chartString2(words, "bumpTied", { v1: String(tie.seriesIds.length) }) }
1076
1106
  }), occupied.claim({ x: point.x - radius, y: point.y - radius, w: radius * 2, h: radius * 2 }, "mark", { categoryId: tie.categoryId });
1077
1107
  }
1078
1108
  }
@@ -1602,7 +1632,7 @@ function markBridgedGaps(input, series, dataIdx, geometry, run, runIndex) {
1602
1632
  input.nodes.push({ t: "path", id: `${id}:erase`, d, stroke: { token: "background" }, width: strokeToken(input.theme, "casing"), owner: { seriesId: series.id }, part: "lineCasing" }), input.nodes.push({ t: "path", id, d, stroke: paint, width, dash: dashToken(input.theme, "reference"), owner: { seriesId: series.id }, part: "gapBridge" });
1603
1633
  for (let ci = a.ci + 1; ci < b.ci; ci++) {
1604
1634
  let x = input.xOf(ci), t = (x - a.x) / (b.x - a.x), y = segment ? cubicPoint(segment, t).y : geometry.interpolation === "step-after" ? a.y : geometry.interpolation === "step-before" ? b.y : a.y + (b.y - a.y) * t;
1605
- input.nodes.push(gapMarkerNode(input.theme, { id: `gap:${series.id}:${input.cats[ci].id}`, x, y, ink: paint, owner: { seriesId: series.id, categoryId: input.cats[ci].id } }));
1635
+ input.nodes.push(gapMarkerNode(input.theme, { id: `gap:${series.id}:${input.cats[ci].id}`, x, y, ink: paint, owner: { seriesId: series.id, categoryId: input.cats[ci].id }, language: input.language }));
1606
1636
  }
1607
1637
  }
1608
1638
  }
@@ -1613,12 +1643,12 @@ function markerDisplay(input, series, row, ci) {
1613
1643
  ...input.bumpPointState(row, ci)
1614
1644
  };
1615
1645
  }
1616
- function pushMarkerNode(input, series, dataIdx, row, point, shape, id) {
1617
- let stroke = series.role === "reference" ? input.refPaintOf(series) : input.seriesPaint(series, dataIdx), hollow = input.hollowAt(series, point.ci), fill = hollow ? { token: "background" } : stroke, owner = { seriesId: series.id, categoryId: input.cats[point.ci].id }, display = markerDisplay(input, series, row, point.ci);
1618
- shape === "circle" ? input.nodes.push({ t: "circle", id, cx: point.x, cy: point.y, r: 3, fill, ...hollow ? { stroke } : {}, owner, part: "marker", display }) : shape === "square" ? input.nodes.push({ t: "rect", id, rect: { x: point.x - 3, y: point.y - 3, w: 6, h: 6 }, fill, ...hollow ? { stroke, strokeWidth: strokeToken(input.theme, "mark") } : {}, owner, part: "marker", display }) : shape !== "none" && input.nodes.push({ t: "path", id, d: markerPath(shape, point), fill, ...hollow ? { stroke, width: strokeToken(input.theme, "mark") } : {}, owner, part: "marker", display });
1646
+ function pushMarkerNode(input, series, dataIdx, row, point, shape, id, scale = 1) {
1647
+ let stroke = series.role === "reference" ? input.refPaintOf(series) : input.pointPaint(series, dataIdx, point.ci), hollow = input.hollowAt(series, point.ci), fill = hollow ? { token: "background" } : stroke, owner = { seriesId: series.id, categoryId: input.cats[point.ci].id }, display = markerDisplay(input, series, row, point.ci), r = 3 * scale;
1648
+ shape === "circle" ? input.nodes.push({ t: "circle", id, cx: point.x, cy: point.y, r, fill, ...hollow ? { stroke } : {}, owner, part: "marker", display }) : shape === "square" ? input.nodes.push({ t: "rect", id, rect: { x: point.x - r, y: point.y - r, w: 2 * r, h: 2 * r }, fill, ...hollow ? { stroke, strokeWidth: strokeToken(input.theme, "mark") } : {}, owner, part: "marker", display }) : shape !== "none" && input.nodes.push({ t: "path", id, d: markerPath(shape, point, scale), fill, ...hollow ? { stroke, width: strokeToken(input.theme, "mark") } : {}, owner, part: "marker", display });
1619
1649
  }
1620
- function markerPath(shape, point) {
1621
- return shape === "triangle" ? `M${fmtPathNumber(point.x)} ${fmtPathNumber(point.y - 3.5)}L${fmtPathNumber(point.x + 3.5)} ${fmtPathNumber(point.y + 3)}L${fmtPathNumber(point.x - 3.5)} ${fmtPathNumber(point.y + 3)}Z` : `M${fmtPathNumber(point.x)} ${fmtPathNumber(point.y - 4)}L${fmtPathNumber(point.x + 4)} ${fmtPathNumber(point.y)}L${fmtPathNumber(point.x)} ${fmtPathNumber(point.y + 4)}L${fmtPathNumber(point.x - 4)} ${fmtPathNumber(point.y)}Z`;
1650
+ function markerPath(shape, point, scale = 1) {
1651
+ return shape === "triangle" ? `M${fmtPathNumber(point.x)} ${fmtPathNumber(point.y - 3.5 * scale)}L${fmtPathNumber(point.x + 3.5 * scale)} ${fmtPathNumber(point.y + 3 * scale)}L${fmtPathNumber(point.x - 3.5 * scale)} ${fmtPathNumber(point.y + 3 * scale)}Z` : `M${fmtPathNumber(point.x)} ${fmtPathNumber(point.y - 4 * scale)}L${fmtPathNumber(point.x + 4 * scale)} ${fmtPathNumber(point.y)}L${fmtPathNumber(point.x)} ${fmtPathNumber(point.y + 4 * scale)}L${fmtPathNumber(point.x - 4 * scale)} ${fmtPathNumber(point.y)}Z`;
1622
1652
  }
1623
1653
  function renderMarkers(input, series, dataIdx, entry, geometry, claims) {
1624
1654
  geometry.allPoints.forEach((point) => {
@@ -1627,8 +1657,13 @@ function renderMarkers(input, series, dataIdx, entry, geometry, claims) {
1627
1657
  entry.points.push({ categoryId: input.cats[point.ci].id, x: point.x, y: point.y });
1628
1658
  return;
1629
1659
  }
1630
- let nodeId;
1631
- shape !== "none" && (nodeId = `marker:${series.id}:${input.cats[point.ci].id}`, pushMarkerNode(input, series, dataIdx, geometry.row, point, shape, nodeId), input.occupied.claim({ x: point.x - 4, y: point.y - 4, w: 8, h: 8 }, "mark", claims.lineOwner(series.id, input.cats[point.ci].id))), entry.points.push({ categoryId: input.cats[point.ci].id, x: point.x, y: point.y, ...nodeId ? { nodeId } : {} });
1660
+ let extent = input.markerExtent(series, dataIdx, point.ci), nodeId;
1661
+ if (shape !== "none") {
1662
+ nodeId = `marker:${series.id}:${input.cats[point.ci].id}`, pushMarkerNode(input, series, dataIdx, geometry.row, point, shape, nodeId, extent?.scale);
1663
+ let reach = extent ? Math.max(4, extent.reach + 1) : 4;
1664
+ input.occupied.claim({ x: point.x - reach, y: point.y - reach, w: 2 * reach, h: 2 * reach }, "mark", claims.lineOwner(series.id, input.cats[point.ci].id));
1665
+ }
1666
+ entry.points.push({ categoryId: input.cats[point.ci].id, x: point.x, y: point.y, ...nodeId ? { nodeId } : {}, ...extent ? { highlighted: !0, markerRadius: extent.reach } : {} });
1632
1667
  });
1633
1668
  }
1634
1669
  function renderSeries(input, series, dataIdx, marks, paintedAreaCats, claims, outlines) {
@@ -1729,7 +1764,7 @@ function renderLineMarks(input) {
1729
1764
  let highlight = new Set(input.drawnSeries.filter((series) => series.colorRole === "highlight" || input.highlights.has(series.id)).map((series) => series.id)), ink = input.nodes.splice(seriesStart), fill = (node) => node.part === "area" || node.part === "forecastHatch", raised = (node) => highlight.has(node.owner.seriesId) && (node.id.startsWith("mark:line:") || node.id.startsWith("casing:mark:line:") || node.part === "marker");
1730
1765
  pushAll(input.nodes, ink.filter(fill)), pushAll(input.nodes, ink.filter((node) => !fill(node) && !raised(node))), pushAll(input.nodes, ink.filter(raised));
1731
1766
  }
1732
- renderAreaSeparators(input, geometries, paintedAreaCats), renderBumpTies(input.theme, { bump: input.bump, marks, nodes: input.nodes, occupied: input.occupied });
1767
+ renderAreaSeparators(input, geometries, paintedAreaCats), renderBumpTies(input.theme, { bump: input.bump, marks, nodes: input.nodes, occupied: input.occupied, language: input.language });
1733
1768
  for (let series of input.bumpOmitted ?? []) {
1734
1769
  let row = input.pv[input.rowOf.get(series)];
1735
1770
  marks.series.push({ seriesId: series.id, points: row.flatMap((rank, ci) => rank === null ? [] : [{ categoryId: input.cats[ci].id, x: input.xOf(ci), y: input.y(rank) }]) });
@@ -1819,11 +1854,11 @@ function renderPhaseFills(theme, input) {
1819
1854
  fill: "tint" in bandPaint ? { ...bandPaint, tint: PHASE_BAND_TINT } : bandPaint,
1820
1855
  owner: { seriesId: phases.series.id, annotationId: phase.id },
1821
1856
  part: "phaseFill",
1822
- display: { value: `${phase.label}: ${input.fmt(start.value)} to ${input.fmt(end.value)}` }
1857
+ display: { value: chartString2({ locale: { language: input.language } }, "phaseRange", { v1: phase.label, v2: input.fmt(start.value), v3: input.fmt(end.value) }) }
1823
1858
  });
1824
1859
  }
1825
1860
  let span = ranged?.spans[index], top = span ? edgePath(span, linePath) : phases.interpolation === "monotone" ? monotonePathBetween(curvePoints, start, end) : linePath([{ x: start.x, y: start.y }, ...curvePoints.filter((point) => point.x > start.x && point.x < end.x), { x: end.x, y: end.y }]), nodeId = `mark:phase:${phase.id}`;
1826
- banded || fills.push({ t: "path", id: nodeId, d: `${top}L${fmtPathNumber(end.x)} ${fmtPathNumber(input.baseY)}L${fmtPathNumber(start.x)} ${fmtPathNumber(input.baseY)}Z`, fill: phasePaint(phase, index, input.paletteRamp, input.palette), stroke: { token: "axis" }, width: strokeToken(theme, "hair"), dash: dashToken(theme, "reference"), owner: { seriesId: phases.series.id, annotationId: phase.id }, part: "phaseFill", display: { value: `${phase.label}: ${input.fmt(start.value)} to ${input.fmt(end.value)}` } });
1861
+ banded || fills.push({ t: "path", id: nodeId, d: `${top}L${fmtPathNumber(end.x)} ${fmtPathNumber(input.baseY)}L${fmtPathNumber(start.x)} ${fmtPathNumber(input.baseY)}Z`, fill: phasePaint(phase, index, input.paletteRamp, input.palette), stroke: { token: "axis" }, width: strokeToken(theme, "hair"), dash: dashToken(theme, "reference"), owner: { seriesId: phases.series.id, annotationId: phase.id }, part: "phaseFill", display: { value: chartString2({ locale: { language: input.language } }, "phaseRange", { v1: phase.label, v2: input.fmt(start.value), v3: input.fmt(end.value) }) } });
1827
1862
  let owner = { annotationId: phase.id }, tops = span ? edgePolyline({ ...span, mode: phases.interpolation }) : [start, ...curvePoints.filter((point) => point.x > start.x && point.x < end.x), end];
1828
1863
  if (!banded)
1829
1864
  if (!span && phases.interpolation === "monotone" || tops.some((point) => point.y > input.baseY))
@@ -2033,23 +2068,28 @@ function validateDeclaration(input) {
2033
2068
  [`fan.bands[${k}].low`, band.low],
2034
2069
  [`fan.bands[${k}].high`, band.high]
2035
2070
  ])
2036
- ];
2037
- for (let [path, id] of named)
2038
- if (!seriesById.has(id)) throw new NormalizeError("fan-series-unknown", path, `fan names unknown series '${id}' \u2014 a band is DECLARED DATA, so every bound must exist in data.series`, `add a series with id '${id}', or point this bound at one of: ${seriesNorm.map((s) => `'${s.id}'`).join(", ")}`);
2071
+ ], pointer = (entry) => {
2072
+ let at = named.indexOf(entry);
2073
+ return at === 0 ? ["options", "fan", "of"] : ["options", "fan", "bands", at - 1 >> 1, at % 2 === 1 ? "low" : "high"];
2074
+ };
2075
+ for (let entry of named) {
2076
+ let [path, id] = entry;
2077
+ if (!seriesById.has(id)) throw new NormalizeError("fan-series-unknown", path, `fan names unknown series '${id}' \u2014 a band is DECLARED DATA, so every bound must exist in data.series`, `add a series with id '${id}', or point this bound at one of: ${seriesNorm.map((s) => `'${s.id}'`).join(", ")}`, void 0, pointer(entry));
2078
+ }
2039
2079
  spec.bands.forEach((band, k) => {
2040
- if (typeof band.label != "string" || band.label.trim() === "") throw new NormalizeError("fan-band-unlabelled", `fan.bands[${k}].label`, `fan.bands[${k}] has no label \u2014 '80% predictive interval' and 'min/max of three scenarios' draw the same band and mean different things`, "add a label that says what the interval means, such as '80% predictive interval'");
2080
+ if (typeof band.label != "string" || band.label.trim() === "") throw new NormalizeError("fan-band-unlabelled", `fan.bands[${k}].label`, `fan.bands[${k}] has no label \u2014 '80% predictive interval' and 'min/max of three scenarios' draw the same band and mean different things`, "add a label that says what the interval means, such as '80% predictive interval'", void 0, ["options", "fan", "bands", k, "label"]);
2041
2081
  });
2042
2082
  let seen = /* @__PURE__ */ new Map([[spec.of, "fan.of"]]);
2043
- for (let [path, id] of named.slice(1)) {
2044
- let first = seen.get(id);
2045
- if (first !== void 0) throw new NormalizeError("fan-series-reused", path, `series '${id}' is used twice by the fan (${first} and ${path}) \u2014 each bound and the centre must be its own series, or the bands drawn are not the bands declared`, "give each band its own low/high series; a shared bound means two intervals claim the same numbers");
2083
+ for (let entry of named.slice(1)) {
2084
+ let [path, id] = entry, first = seen.get(id);
2085
+ if (first !== void 0) throw new NormalizeError("fan-series-reused", path, `series '${id}' is used twice by the fan (${first} and ${path}) \u2014 each bound and the centre must be its own series, or the bands drawn are not the bands declared`, "give each band its own low/high series; a shared bound means two intervals claim the same numbers", void 0, pointer(entry));
2046
2086
  seen.set(id, path);
2047
2087
  }
2048
- if (spec.bands.length > 4) throw new NormalizeError("fan-too-many-bands", "fan.bands", `${spec.bands.length} bands exceed the four the tint ladder can keep apart \u2014 past four the washes are indistinguishable and the exhibit claims a precision the reader cannot see`, "four nested intervals is the legibility limit; drop or merge bands");
2088
+ if (spec.bands.length > 4) throw new NormalizeError("fan-too-many-bands", "fan.bands", `${spec.bands.length} bands exceed the four the tint ladder can keep apart \u2014 past four the washes are indistinguishable and the exhibit claims a precision the reader cannot see`, "four nested intervals is the legibility limit; drop or merge bands", void 0, ["options", "fan", "bands"]);
2049
2089
  if (variant === "stacked-area" || variant === "stacked100-area") throw new NormalizeError("fan-composition-conflict", "variant", `variant '${variant}' stacks each series onto the ones below it; a band around one member of a composition bounds nothing the reader can see, because the member's own position depends on its neighbours' values`, "use variant 'line' for a fan, and a separate exhibit for the composition");
2050
2090
  if (isArea) throw new NormalizeError("fan-area-conflict", "variant", `variant '${variant}' fills from the trajectory down to the baseline with an opaque fill that paints OVER the lower half of every band \u2014 the reader would see only the upper edge of each interval, i.e. a one-sided uncertainty, while the legend key beside it names the whole interval`, "use variant 'line' for a fan \u2014 the fan IS the fill, and a second fill under it hides half of what it declares");
2051
- if (rebase100) throw new NormalizeError("fan-rebase-conflict", "rebase100", "rebase100 divides EACH series by its OWN value at the base category, so the bounds and the centre are rescaled by different divisors and the bands stop nesting \u2014 the fan would still be drawn, and would be wrong", "rebase the numbers before authoring them, so centre and bounds share one base, or drop rebase100");
2052
- if (gapFill) throw new NormalizeError("fan-gapfill-conflict", "gapFill", "gapFill and fan are two wash systems in one plot \u2014 a reader cannot tell an uncertainty band from a shaded difference, and the picture would answer neither question", "keep the fan and drop gapFill, or split them into two exhibits");
2091
+ if (rebase100) throw new NormalizeError("fan-rebase-conflict", "rebase100", "rebase100 divides EACH series by its OWN value at the base category, so the bounds and the centre are rescaled by different divisors and the bands stop nesting \u2014 the fan would still be drawn, and would be wrong", "rebase the numbers before authoring them, so centre and bounds share one base, or drop rebase100", void 0, ["options", "rebase100"]);
2092
+ if (gapFill) throw new NormalizeError("fan-gapfill-conflict", "gapFill", "gapFill and fan are two wash systems in one plot \u2014 a reader cannot tell an uncertainty band from a shaded difference, and the picture would answer neither question", "keep the fan and drop gapFill, or split them into two exhibits", void 0, ["options", "gapFill"]);
2053
2093
  }
2054
2094
  function buildBands(input) {
2055
2095
  let { spec, seriesById, cats, pv, rowOf } = input, catLabel = (ci) => cats[ci].label ?? cats[ci].id, bands = spec.bands.map((band) => ({
@@ -2067,7 +2107,9 @@ function buildBands(input) {
2067
2107
  "fan-band-inverted",
2068
2108
  `fan.bands[${k}]`,
2069
2109
  `band '${band.label}' is inverted at category '${catLabel(ci)}': low '${band.low.id}' = ${lo} is above high '${band.high.id}' = ${hi}`,
2070
- "swap the low and high series ids for this band \u2014 the engine will not swap them for you, because a silently corrected bound hides which series is actually which"
2110
+ "swap the low and high series ids for this band \u2014 the engine will not swap them for you, because a silently corrected bound hides which series is actually which",
2111
+ void 0,
2112
+ ["options", "fan", "bands", k]
2071
2113
  );
2072
2114
  band.widths[ci] = hi - lo;
2073
2115
  }
@@ -2085,7 +2127,9 @@ function validateNesting(input) {
2085
2127
  "fan-bands-crossed",
2086
2128
  `fan.bands[${k + 1}]`,
2087
2129
  `bands are not nested at category '${cats[ci].label ?? cats[ci].id}': band ${k} '${outer.label}' spans ${ol}..${oh} and does not contain band ${k + 1} '${inner.label}' spanning ${il}..${ih} \u2014 bands must be authored OUTERMOST FIRST`,
2088
- "reorder the bands outermost-first in the document, or fix the bound values; the engine will not reorder them, because a reordered fan hides an authoring error the reader can never see"
2130
+ "reorder the bands outermost-first in the document, or fix the bound values; the engine will not reorder them, because a reordered fan hides an authoring error the reader can never see",
2131
+ void 0,
2132
+ ["options", "fan", "bands", k + 1]
2089
2133
  );
2090
2134
  }
2091
2135
  }
@@ -2099,7 +2143,9 @@ function validateCenter(input) {
2099
2143
  "fan-center-outside-band",
2100
2144
  "fan.of",
2101
2145
  `the central series '${of.id}' = ${center} at category '${cats[ci].label ?? cats[ci].id}' lies outside its innermost band '${band.label}' (${lo}..${hi}) \u2014 the centre and the bounds do not describe the same quantity`,
2102
- "check that fan.of names the central trajectory and that the bound series are aligned to the same categories; a fan whose centre escapes its own interval is drawing two different series as one"
2146
+ "check that fan.of names the central trajectory and that the bound series are aligned to the same categories; a fan whose centre escapes its own interval is drawing two different series as one",
2147
+ void 0,
2148
+ ["options", "fan", "of"]
2103
2149
  );
2104
2150
  }
2105
2151
  }
@@ -2108,7 +2154,7 @@ function resolveFan(input) {
2108
2154
  if (!spec) return null;
2109
2155
  validateDeclaration({ spec, seriesById, seriesNorm, variant, isArea, rebase100, gapFill });
2110
2156
  let of = seriesById.get(spec.of), ofRow = pv[rowOf.get(of)];
2111
- if (ofRow.every((value) => value === null)) throw new NormalizeError("fan-center-empty", "fan.of", `the central series '${of.id}' is null in every category \u2014 a fan with no trajectory is bands around nothing`, "give the central series values, or point fan.of at the series that carries the projection");
2157
+ if (ofRow.every((value) => value === null)) throw new NormalizeError("fan-center-empty", "fan.of", `the central series '${of.id}' is null in every category \u2014 a fan with no trajectory is bands around nothing`, "give the central series values, or point fan.of at the series that carries the projection", void 0, ["options", "fan", "of"]);
2112
2158
  let bands = buildBands({ spec, seriesById, cats, pv, rowOf });
2113
2159
  validateNesting({ bands, cats, pv, rowOf }), validateCenter({ of, ofRow, band: bands[bands.length - 1], cats, pv, rowOf });
2114
2160
  let boundIds = new Set(bands.flatMap((band) => [band.low.id, band.high.id])), origin = null;
@@ -2164,7 +2210,7 @@ function collectRuns(input) {
2164
2210
  }), current.length > 0 && runs.push(current), runs;
2165
2211
  }
2166
2212
  function addFanRun(theme, input) {
2167
- let { run, runIndex, band, bandIndex, lowRow, highRow, cats, interpolation, fanLadder, showBounds, pathFor: pathFor2, reversePathTail: reversePathTail2, fmt, occupied, fanNodes, hairNodes, gapCats } = input;
2213
+ let { run, runIndex, band, bandIndex, lowRow, highRow, cats, interpolation, fanLadder, showBounds, pathFor: pathFor2, reversePathTail: reversePathTail2, fmt, occupied, fanNodes, hairNodes, gapCats } = input, words = { locale: { language: input.language } };
2168
2214
  if (run.length < 2) {
2169
2215
  for (let point of run) gapCats.add(cats[point.ci].id);
2170
2216
  return null;
@@ -2179,7 +2225,7 @@ function addFanRun(theme, input) {
2179
2225
  fill: fanLadder[bandIndex].paint,
2180
2226
  owner: {},
2181
2227
  part: "fanBand",
2182
- display: { value: `${band.label}: ${numberRange(loText, hiText)} at ${cats[widestAt].label ?? cats[widestAt].id}${(band.widths[widestAt] ?? 0) > 0 ? " (widest)" : ""}` }
2228
+ display: { value: `${band.label}: ${chartString2(words, "fanAt", { v1: numberRange(loText, hiText), v2: cats[widestAt].label ?? cats[widestAt].id })}${(band.widths[widestAt] ?? 0) > 0 ? chartString2(words, "fanWidest") : ""}` }
2183
2229
  });
2184
2230
  for (let k = 0; k + 1 < run.length; k++) {
2185
2231
  let a = run[k], b = run[k + 1], top = Math.min(a.yHigh, b.yHigh), bottom = Math.max(a.yLow, b.yLow);
@@ -2211,7 +2257,7 @@ function renderFanWashes(theme, input) {
2211
2257
  input.range && cats.forEach((cat, ci) => {
2212
2258
  (lowRow[ci] === null || highRow[ci] === null) && gapCats.add(cat.id);
2213
2259
  });
2214
- let edges = input.range && input.xOfValue ? rangeRuns(input.range, [input.range.plotted[rowOf.get(band.high)], input.range.plotted[rowOf.get(band.low)]], interpolation).map((run) => run.map((edge) => mapEdge(edge, input.xOfValue, y))) : void 0, nodeIds = (edges ? edges.map((run) => run[0].points.map((p, i) => ({ ci: p.ci, x: p.x, yHigh: p.y, yLow: run[1].points[i].y }))) : collectRuns({ lowRow, highRow, cats, compositionInvalidAt, xOf, y, gapCats })).map((run, runIndex) => addFanRun(theme, { ...edges ? { edges: edges[runIndex] } : {}, run, runIndex, band, bandIndex, lowRow, highRow, cats, interpolation, fanLadder, showBounds: fan.showBounds, pathFor: pathFor2, reversePathTail: reversePathTail2, fmt, numberSpec, occupied, fanNodes, hairNodes, gapCats })).filter((id) => id !== null);
2260
+ let edges = input.range && input.xOfValue ? rangeRuns(input.range, [input.range.plotted[rowOf.get(band.high)], input.range.plotted[rowOf.get(band.low)]], interpolation).map((run) => run.map((edge) => mapEdge(edge, input.xOfValue, y))) : void 0, nodeIds = (edges ? edges.map((run) => run[0].points.map((p, i) => ({ ci: p.ci, x: p.x, yHigh: p.y, yLow: run[1].points[i].y }))) : collectRuns({ lowRow, highRow, cats, compositionInvalidAt, xOf, y, gapCats })).map((run, runIndex) => addFanRun(theme, { language: input.language, ...edges ? { edges: edges[runIndex] } : {}, run, runIndex, band, bandIndex, lowRow, highRow, cats, interpolation, fanLadder, showBounds: fan.showBounds, pathFor: pathFor2, reversePathTail: reversePathTail2, fmt, numberSpec, occupied, fanNodes, hairNodes, gapCats })).filter((id) => id !== null);
2215
2261
  nodeIds.length > 0 && fanMarks.push({ bandIndex, nodeIds, low: band.low.id, high: band.high.id, label: band.label });
2216
2262
  }), gapCats.size > 0 && warnings.push({
2217
2263
  code: "fan-band-gap",
@@ -2276,7 +2322,7 @@ function heroPlan(env, domain, warnings) {
2276
2322
  let heroId = heroMode ? fan && fan.origin !== null ? fan.of.id : drawnSeries[0].id : null;
2277
2323
  return !env.isBump && variant === "line" && !heroMode && !env.anyHighlight && drawnSeries.length > 3 && warnings.push({
2278
2324
  code: "line-peer-overload",
2279
- severity: "info",
2325
+ severity: "advice",
2280
2326
  message: `${drawnSeries.length} peer-styled lines are hard to follow \u2014 highlight one series, set emphasis 'first', or facet into small multiples (grid repeat)`
2281
2327
  }), { heroMode, heroId };
2282
2328
  }
@@ -2296,7 +2342,9 @@ function bumpIdentity(env, domain, warnings) {
2296
2342
  "bump-identity-exhausted",
2297
2343
  "series",
2298
2344
  `${autoIdentity} entities exceed the ${capacity} distinguishable identities theme '${env.theme.name}' can give a rank line (${bumpRampLen} ramp colours x ${BUMP_SHAPES.length} marker shapes x ${BUMP_DASH_ROLES.length} line styles) \u2014 past that two entities would be drawn identically and a crossing between them could not be read at all`,
2299
- "rank fewer entities, give the extra series an explicit `fill`, or facet into small multiples with grid repeat"
2345
+ "rank fewer entities, give the extra series an explicit `fill`, or facet into small multiples with grid repeat",
2346
+ void 0,
2347
+ ["data", "series"]
2300
2348
  );
2301
2349
  if (autoIdentity > bumpRampLen) {
2302
2350
  let channels = autoIdentity > bumpRampLen * BUMP_SHAPES.length ? "the TRIPLE (colour, marker shape, line style)" : "the PAIR (colour, marker shape)";
@@ -2390,20 +2438,20 @@ function linePaints(env, domain, warnings) {
2390
2438
  }, planStyleOf = (s) => !areaFilled(s) && !isBump ? planLineStyle(s.scenario, theme) : void 0, lineHollowOf = (s) => planStyleOf(s) !== void 0, scenarioStyleOf = (s) => s.scenario === void 0 ? void 0 : {
2391
2439
  ...planStyleOf(s),
2392
2440
  ...options.scenarioStyle?.[s.scenario]
2393
- }, areaTint = theme.marks?.areaTint, themedArea = (s) => areaTint !== void 0 && isArea && !isStacked && drawnSeries.length === 1 && !palette && !s.fill && !s.colorRole && !scenarioStyleOf(s)?.ink && s.scenario !== "PY" && s.scenario !== "PL", emphasis = options.emphasis ?? (isStacked && !grey && !fade && options.palette === void 0 && dataSeries.every((s) => !s.fill && !scenarioStyleOf(s)?.ink) ? "ordered" : void 0), slots = rampSlots(theme, dataSeries.map((s) => {
2441
+ }, areaTint = theme.marks?.areaTint, themedArea = (s) => areaTint !== void 0 && isArea && !isStacked && drawnSeries.length === 1 && !palette && !s.fill && !s.colorRole && !scenarioStyleOf(s)?.ink && s.scenario !== "PY" && s.scenario !== "PL", emphasis = options.emphasis ?? (isStacked && !grey && !fade && options.palette === void 0 && dataSeries.every((s) => !s.fill && !scenarioStyleOf(s)?.ink) ? "ordered" : void 0), roleMixed = areaLead !== void 0 ? colorRolePaints(dataSeries, (id) => id === areaLead.id) : void 0, oneLadder = (paints) => roleMixed === void 0 ? paints : new Map([...paints].map(([id, paint]) => [id, "theme" in paint && paint.theme?.kind === "role-step" ? roleMixed.get(id) : paint])), roleStrokes = oneLadder(colorRolePaints(dataSeries, !1)), roleFills = oneLadder(colorRolePaints(dataSeries, !0)), slots = rampSlots(theme, dataSeries.map((s) => {
2394
2442
  let ink = scenarioStyleOf(s)?.ink;
2395
- return s.fill ? { css: s.fill } : isArea && grey && highlights.has(s.id) ? { token: "focus" } : s.colorRole ? markRolePaint(s.colorRole, isArea) : ink ? { token: ink } : void 0;
2443
+ return s.fill ? { css: s.fill } : isArea && grey && highlights.has(s.id) ? { token: "focus" } : s.colorRole ? (isArea ? roleFills : roleStrokes).get(s.id) : ink ? { token: ink } : void 0;
2396
2444
  }), palette, !grey && !heroMode && !isBump && emphasis !== "ordered" && dataSeries.length > 1 ? { labels: dataSeries.map((s) => s.label), warnings } : void 0), quietRest = emphasis === "ordered" && (options.othersShade ?? DEFAULT_OTHERS_SHADE) === "quietest" && dataSeries.some((s) => s.colorRole === "others" && !s.fill);
2397
2445
  quietRest && pushAll(warnings, othersShadeUnavailableWarnings(theme, { token: "markInk" }));
2398
- let ordered = (s) => emphasis === "ordered" && !s.colorRole && !(grey && highlights.has(s.id)), series = (s, dataIdx) => {
2446
+ let ordered = (s) => emphasis === "ordered" && !s.colorRole && !(grey && highlights.has(s.id)), focusPaint = (s) => s.fill ? { css: s.fill } : { token: "focus" }, series = (s, dataIdx) => {
2399
2447
  let paint, scenarioInk = scenarioStyleOf(s)?.ink;
2400
- return themedArea(s) ? paint = { token: "markInk" } : s.fill ? paint = { css: s.fill } : ordered(s) ? paint = orderedRampPaint(dataIdx, dataSeries.length, quietRest) : bumpStory && !s.colorRole ? paint = bumpStory.paintOf(s.id) : grey ? paint = highlights.has(s.id) ? { token: "focus" } : s.colorRole ? markRolePaint(s.colorRole) : contextPaint(s) : heroMode ? paint = s.id === heroId ? { token: "markInk" } : contextPaint(s) : s.colorRole ? paint = markRolePaint(s.colorRole) : scenarioInk ? paint = { token: scenarioInk } : dataSeries.length === 1 ? paint = seriesPaint(dataIdx, palette, s.scenario) : paint = seriesPaint(isBump ? bumpSlot(dataIdx).color : slots[dataIdx] ?? dataIdx, palette), shadeSafeStroke(faded(paint, s), s, paint);
2448
+ return themedArea(s) ? paint = { token: "markInk" } : s.fill ? paint = { css: s.fill } : ordered(s) ? paint = orderedRampPaint(dataIdx, dataSeries.length, quietRest) : bumpStory && !s.colorRole ? paint = bumpStory.paintOf(s.id) : grey ? paint = highlights.has(s.id) ? focusPaint(s) : s.colorRole ? roleStrokes.get(s.id) : contextPaint(s) : heroMode ? paint = s.id === heroId ? { token: "markInk" } : contextPaint(s) : s.colorRole ? paint = roleStrokes.get(s.id) : scenarioInk ? paint = { token: scenarioInk } : dataSeries.length === 1 ? paint = seriesPaint(dataIdx, palette, s.scenario) : paint = seriesPaint(isBump ? bumpSlot(dataIdx).color : slots[dataIdx] ?? dataIdx, palette), shadeSafeStroke(faded(paint, s), s, paint);
2401
2449
  }, areaFillOwn = (s, dataIdx, forecast = !1) => {
2402
2450
  if (themedArea(s)) return forecast ? { token: "focus" } : { token: "focus", tint: areaTint };
2403
2451
  if (s.fill) return { css: s.fill };
2404
2452
  if (ordered(s)) return orderedRampPaint(dataIdx, dataSeries.length, quietRest);
2405
2453
  if (grey && highlights.has(s.id)) return { token: "focus" };
2406
- if (s.colorRole) return markRolePaint(s.colorRole, !0);
2454
+ if (s.colorRole) return roleFills.get(s.id);
2407
2455
  let scenarioInk = scenarioStyleOf(s)?.ink;
2408
2456
  return scenarioInk ? { token: scenarioInk } : dataSeries.length === 1 ? seriesPaint(dataIdx, palette, s.scenario) : seriesPaint(slots[dataIdx] ?? dataIdx, palette);
2409
2457
  }, areaFill = (s, dataIdx, forecast = !1) => faded(areaFillOwn(s, dataIdx, forecast), s), keyPaint = (s, dataIdx) => areaFilled(s) && !themedArea(s) ? areaFill(s, dataIdx) : !isArea && s.scenario === "FC" && domain.variant !== "line" ? forecastStroke(series(s, dataIdx), theme, seriesCrossesShadedBand(s)) : series(s, dataIdx), { fanLadder, fanCentrePaint, fanPaints } = buildFanPaints({
@@ -2414,12 +2462,21 @@ function linePaints(env, domain, warnings) {
2414
2462
  theme,
2415
2463
  anyHighlight,
2416
2464
  highlights
2417
- }), dashOf = (s, dataIdx) => s.lineStyle === "dashed" ? dashToken(theme, "reference") : s.lineStyle === "dotted" ? dashToken(theme, "dotted") : isBump ? bumpSlot(dataIdx).dash : void 0, pointScenario = (s, ci) => s.vals[ci].scenario ?? s.scenario;
2465
+ }), dashOf = (s, dataIdx) => s.lineStyle === "dashed" ? dashToken(theme, "reference") : s.lineStyle === "dotted" ? dashToken(theme, "dotted") : isBump ? bumpSlot(dataIdx).dash : void 0, pointScenario = (s, ci) => s.vals[ci].scenario ?? s.scenario, pointSelected = (s, ci) => s.role !== "reference" && env.pointHighlights.has(cats[ci].id), markerOf = (s, dataIdx, ci) => s.marker ?? (pointSelected(s, ci) ? "circle" : bumpStory ? bumpStory.isContext(s) ? "none" : "circle" : isBump ? bumpSlot(dataIdx).shape : isArea || (markersOff || cats.length > MARKER_MAX_CATS) && cats[ci].partial !== !0 ? "none" : contextRank.has(s.id) ? plainGrey ? LINE_GREY_SHAPES[contextRank.get(s.id) % LINE_GREY_SHAPES.length] : BUMP_SHAPES[contextRank.get(s.id) % BUMP_SHAPES.length] : "circle"), hollowAt = (s, ci) => {
2466
+ let sc = pointScenario(s, ci);
2467
+ return sc === "PY" || sc === "PL" || sc === "FC" || cats[ci].partial === !0;
2468
+ };
2418
2469
  return {
2419
2470
  css,
2420
2471
  bandRules: () => [...bandRules.values()],
2421
2472
  seriesCrossesShadedBand,
2422
2473
  series,
2474
+ point: (s, dataIdx, ci) => pointSelected(s, ci) ? shadeSafeStroke(focusPaint(s), s, focusPaint(s)) : series(s, dataIdx),
2475
+ markerExtent: (s, dataIdx, ci) => {
2476
+ if (!pointSelected(s, ci)) return;
2477
+ let dataStroke = strokeToken(theme, "data"), scale = Math.max(1, strokeToken(theme, "focus") / (dataStroke > 0 ? dataStroke : 1)), shape = markerOf(s, dataIdx, ci), radius = shape === "none" ? 0 : shape === "triangle" ? 3.5 : shape === "diamond" ? 4 : 3;
2478
+ return { scale, reach: radius === 0 ? 0 : radius * scale + (hollowAt(s, ci) ? strokeToken(theme, "mark") / 2 : 0) };
2479
+ },
2423
2480
  areaFill,
2424
2481
  areaFilled,
2425
2482
  keyPaint,
@@ -2431,15 +2488,12 @@ function linePaints(env, domain, warnings) {
2431
2488
  // Bump ignores the density cutoff: the marker is what makes a crossing
2432
2489
  // readable. A partial period keeps a (hollow) marker where density drops
2433
2490
  // the rest. A theme without default markers drops them as the cutoff does.
2434
- markerOf: (s, dataIdx, ci) => s.marker ?? (bumpStory ? bumpStory.isContext(s) ? "none" : "circle" : isBump ? bumpSlot(dataIdx).shape : isArea || (markersOff || cats.length > MARKER_MAX_CATS) && cats[ci].partial !== !0 ? "none" : contextRank.has(s.id) ? plainGrey ? LINE_GREY_SHAPES[contextRank.get(s.id) % LINE_GREY_SHAPES.length] : BUMP_SHAPES[contextRank.get(s.id) % BUMP_SHAPES.length] : "circle"),
2435
- hollowAt: (s, ci) => {
2436
- let sc = pointScenario(s, ci);
2437
- return sc === "PY" || sc === "PL" || sc === "FC" || cats[ci].partial === !0;
2438
- },
2491
+ markerOf,
2492
+ hollowAt,
2439
2493
  pointScenario,
2440
2494
  // A bump point carries BOTH quantities: `display.value` stays the metric
2441
2495
  // and `display.state` names the rank the y position encodes.
2442
- bumpPointState: (row, ci) => isBump && row[ci] !== null ? { state: `rank ${row[ci]}` } : {},
2496
+ bumpPointState: (row, ci) => isBump && row[ci] !== null ? { state: chartString2(options, "bumpRank", { v1: String(row[ci]) }) } : {},
2443
2497
  heroMode,
2444
2498
  heroId,
2445
2499
  fanLadder,
@@ -2844,6 +2898,7 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
2844
2898
  placeForecastHeaders(area.forecast, xOf, area.forecastPlot, area.forecastHeaderInPlot ? area.forecastPlot.y + 2 : area.forecastPlot.y - area.phaseHeaderHeight - area.forecastHeaderHeight, text.secondaryFont, measure, headerRequests, claims, options.strings.forecastHeader, forecastDividerAt(domain), actualHeader(domain));
2845
2899
  let baseY = dLo <= 0 && dHi >= 0 ? y(0) : plot.y + plot.h, rendered = renderLineMarks({
2846
2900
  theme,
2901
+ language: options.locale?.language,
2847
2902
  highlights: env.highlights,
2848
2903
  drawnSeries,
2849
2904
  refSeries: domain.refSeries,
@@ -2867,6 +2922,8 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
2867
2922
  // weight, 9.6 px apart along x at the default strength; lower strengths spread and fade them.
2868
2923
  hatch: bandHatch(theme, options.hatchStrength),
2869
2924
  seriesPaint: paints.series,
2925
+ pointPaint: paints.point,
2926
+ markerExtent: paints.markerExtent,
2870
2927
  areaFillPaint: paints.areaFill,
2871
2928
  areaFilled: paints.areaFilled,
2872
2929
  // A plain line's forecast keeps its colour; the dashes, open markers and divider mark it.
@@ -2923,6 +2980,7 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
2923
2980
  marks,
2924
2981
  analyticalSceneStart
2925
2982
  }), renderFanWashes(theme, {
2983
+ language: options.locale?.language,
2926
2984
  range: domain.x?.range,
2927
2985
  xOfValue: area.xOfValue,
2928
2986
  fan: domain.fan,
@@ -2946,6 +3004,7 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
2946
3004
  analyticalSceneStart
2947
3005
  });
2948
3006
  let phaseRequests = [], phaseDerived = renderPhaseFills(theme, {
3007
+ language: options.locale?.language,
2949
3008
  range: domain.x?.range,
2950
3009
  xOfValue: area.xOfValue,
2951
3010
  phases: domain.phases,
@@ -3038,6 +3097,7 @@ export {
3038
3097
  latestRingReach,
3039
3098
  END_LABEL_KEY,
3040
3099
  END_LABEL_WIDE,
3100
+ POINT_LABEL_CENTERED_ROOM,
3041
3101
  INLINE_FALLBACK,
3042
3102
  usesInlineFallback,
3043
3103
  usesEndLabelKey,
@@ -3053,6 +3113,7 @@ export {
3053
3113
  pointLabelSelection,
3054
3114
  defaultValueContent,
3055
3115
  PLOT_END_AIR,
3116
+ pointLabelsFollowShape,
3056
3117
  pointLabelEndRoom,
3057
3118
  pointValueWidths,
3058
3119
  placePointValueLabels,