boardplot 0.56.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 (552) hide show
  1. package/CHANGELOG.md +408 -0
  2. package/README.md +49 -15
  3. package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-VGSL4NJK.js} +1 -1
  4. package/dist/{ReaderBox-GLCKYXBU.js → ReaderBox-MHMXIDAJ.js} +8 -7
  5. package/dist/{annotateEngine-QVNAE3EH.js → annotateEngine-753KQBNN.js} +2 -1
  6. package/dist/build-identity.json +3 -3
  7. package/dist/{chunk-HZUAEMN5.js → chunk-2CQBBN7M.js} +4 -4
  8. package/dist/{chunk-K3VZ5QJK.js → chunk-2ETK5TSA.js} +4 -4
  9. package/dist/{chunk-HHXIVFAU.js → chunk-2ETSI2EL.js} +11 -9
  10. package/dist/{chunk-ECBUFKCP.js → chunk-2GRXHWRH.js} +3 -3
  11. package/dist/{chunk-ZVM5TFGR.js → chunk-2HII2B6S.js} +6 -2
  12. package/dist/{chunk-WBETBGSC.js → chunk-2LC2H3ZM.js} +1003 -907
  13. package/dist/chunk-2NX7EO7H.js +23 -0
  14. package/dist/{chunk-52WNCUIN.js → chunk-2QI2PK2O.js} +1 -1
  15. package/dist/{chunk-QWCLWFKC.js → chunk-2VKQQLP7.js} +180 -58
  16. package/dist/chunk-3DOVXJ6K.js +602 -0
  17. package/dist/{chunk-CAJ54IEP.js → chunk-3E6NLODZ.js} +1 -1
  18. package/dist/{chunk-MOS6WFWM.js → chunk-3HA4IJTO.js} +9 -9
  19. package/dist/{chunk-JCIXYOND.js → chunk-3HPPTQEW.js} +4 -4
  20. package/dist/{chunk-7VVHTOE7.js → chunk-3KT2647F.js} +4 -2
  21. package/dist/{chunk-O6ZTIDWB.js → chunk-3MFVJMP6.js} +3 -2
  22. package/dist/{chunk-KQCKK3LD.js → chunk-3P3FKPFN.js} +170 -73
  23. package/dist/{chunk-WI5VOSQX.js → chunk-3XAJSMYD.js} +2 -2
  24. package/dist/{chunk-CPGASWNN.js → chunk-42QKUSHJ.js} +13 -3
  25. package/dist/{chunk-QB5HV4IY.js → chunk-44JU3VOT.js} +7 -8
  26. package/dist/{chunk-BYCJ6TKI.js → chunk-44K75CYE.js} +3 -3
  27. package/dist/{chunk-MS7O3KDJ.js → chunk-4FNM4D57.js} +6 -6
  28. package/dist/{chunk-BVYIKLQ5.js → chunk-4ROZ4TFL.js} +1 -1
  29. package/dist/{chunk-3V62N3Z7.js → chunk-4VV3KUFT.js} +7 -8
  30. package/dist/{chunk-MAFPVR4G.js → chunk-54YO56IK.js} +10 -5
  31. package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
  32. package/dist/{chunk-6AMN7IKJ.js → chunk-5JEU6MWC.js} +49 -28
  33. package/dist/{chunk-NCLRZQR6.js → chunk-5JIB4VJA.js} +18 -10
  34. package/dist/{chunk-SXD3OYAR.js → chunk-5OP3E2ZD.js} +205 -96
  35. package/dist/{chunk-SS4YGK3E.js → chunk-5SLBD4BT.js} +72 -304
  36. package/dist/{chunk-XMP2DNLI.js → chunk-5SVGTQTW.js} +4 -4
  37. package/dist/chunk-5U567TYU.js +23 -0
  38. package/dist/chunk-5ZLF4S7X.js +40 -0
  39. package/dist/{chunk-T2YDWT54.js → chunk-5ZMTQATF.js} +261 -147
  40. package/dist/{chunk-WXJ5MHLH.js → chunk-62BDQTO6.js} +2 -2
  41. package/dist/chunk-64K3V4VN.js +25 -0
  42. package/dist/{chunk-BK6P6KMW.js → chunk-67YJJJIB.js} +1 -1
  43. package/dist/{chunk-32LLDRPI.js → chunk-6DJNFT2K.js} +42 -32
  44. package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
  45. package/dist/{chunk-7STMIK2X.js → chunk-6JFQCVNN.js} +4 -4
  46. package/dist/chunk-6JXBLQJ2.js +32 -0
  47. package/dist/{chunk-5TWY3ZIC.js → chunk-6XPV6M3Q.js} +5 -5
  48. package/dist/{chunk-MPO5TVGF.js → chunk-6ZDSEITW.js} +3 -3
  49. package/dist/{chunk-75WIUG2W.js → chunk-72HVDLMT.js} +172 -78
  50. package/dist/chunk-75NU5RLX.js +24 -0
  51. package/dist/chunk-76GPN6AT.js +72 -0
  52. package/dist/chunk-7BQK2UDV.js +13 -0
  53. package/dist/{chunk-CF4NMRN7.js → chunk-7CAYRPJV.js} +45 -25
  54. package/dist/{chunk-U3A6FMSI.js → chunk-7GWWBHVQ.js} +7 -7
  55. package/dist/{chunk-CHAS5A5B.js → chunk-7NYUFMLJ.js} +149 -86
  56. package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
  57. package/dist/chunk-A65B23JK.js +113 -0
  58. package/dist/{chunk-4KMZAK6J.js → chunk-A7R6FUS6.js} +4 -4
  59. package/dist/{chunk-E2ZUBP4Q.js → chunk-AEVGUOPB.js} +7 -8
  60. package/dist/chunk-AHIK2N72.js +53 -0
  61. package/dist/{chunk-KLB2QC24.js → chunk-AICO24HJ.js} +5 -2
  62. package/dist/{chunk-7KSUMFBK.js → chunk-AJGSCVVW.js} +5 -1
  63. package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
  64. package/dist/{chunk-E7V3OHQQ.js → chunk-AN2V2LC4.js} +37 -22
  65. package/dist/{chunk-JIEVDGAF.js → chunk-AOFUA5XP.js} +1 -1
  66. package/dist/chunk-B5A7X2BA.js +44 -0
  67. package/dist/{chunk-2HTYGMMG.js → chunk-BCMEGJRX.js} +2 -2
  68. package/dist/{chunk-KD5GOR2K.js → chunk-BDIKWR45.js} +124 -69
  69. package/dist/{chunk-FNRPQIQE.js → chunk-BG6AIWAK.js} +4 -6
  70. package/dist/{chunk-ZMPH2OC4.js → chunk-BOT6W3VB.js} +7 -8
  71. package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
  72. package/dist/{chunk-2DOEZ5QY.js → chunk-BZ67BJBH.js} +11 -10
  73. package/dist/{chunk-UBCVBBJJ.js → chunk-C47POAC5.js} +4 -3
  74. package/dist/{chunk-O7REHICC.js → chunk-C5OBPO4Z.js} +36 -28
  75. package/dist/{chunk-IGNBQT23.js → chunk-CCAAI56H.js} +121 -10
  76. package/dist/{chunk-RPIKNMZA.js → chunk-CDUR3KWV.js} +7 -2
  77. package/dist/{chunk-MZACASZY.js → chunk-CMPHT2LS.js} +14 -2
  78. package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
  79. package/dist/{chunk-IVRYF7QA.js → chunk-CR5FP5SF.js} +1 -1
  80. package/dist/{chunk-DD6RVD3S.js → chunk-D2TQX7UJ.js} +5 -1
  81. package/dist/{chunk-VVXKFU72.js → chunk-DEANHDXU.js} +62 -41
  82. package/dist/{chunk-GM3EGUYW.js → chunk-DHGE46UK.js} +1 -1
  83. package/dist/{chunk-UZTQUPTB.js → chunk-DIHX6NUB.js} +5 -5
  84. package/dist/{chunk-MD6DCQMA.js → chunk-DILQ34NW.js} +37 -37
  85. package/dist/{chunk-YMTXTQCN.js → chunk-DJKRYJP7.js} +6 -6
  86. package/dist/{chunk-JCAGVAB3.js → chunk-DKLC6QLF.js} +1200 -21
  87. package/dist/{chunk-SRAV6FPB.js → chunk-DNHTMCUP.js} +3 -3
  88. package/dist/{chunk-CKGSGRP7.js → chunk-DORE2RHL.js} +21 -5
  89. package/dist/{chunk-SMHZXHHD.js → chunk-DZYTXZNS.js} +15 -5
  90. package/dist/chunk-E262NRFP.js +39 -0
  91. package/dist/{chunk-V5JQQMFQ.js → chunk-E5YF236N.js} +4 -1
  92. package/dist/{chunk-IGJ2G5C6.js → chunk-EBUK7HJP.js} +6 -6
  93. package/dist/{chunk-ZL6IHMOW.js → chunk-ECBHC272.js} +198 -119
  94. package/dist/{chunk-SA46CNMS.js → chunk-ED7GLWTF.js} +4 -1
  95. package/dist/chunk-EFW43JQJ.js +24 -0
  96. package/dist/{chunk-5P2TTHBZ.js → chunk-EHRRHSPV.js} +2 -2
  97. package/dist/{chunk-JXBZIJCG.js → chunk-EILNJQMN.js} +32 -12
  98. package/dist/{chunk-GELSK76Y.js → chunk-ERDKMZ7O.js} +3 -3
  99. package/dist/{chunk-T2CYNDYU.js → chunk-ETRAPN5G.js} +366 -130
  100. package/dist/{chunk-JEUL777U.js → chunk-ETUKDEGL.js} +21 -12
  101. package/dist/chunk-F2ET5ZTT.js +49 -0
  102. package/dist/{chunk-2YO4WRJN.js → chunk-F3XOBFS4.js} +40 -29
  103. package/dist/{chunk-SPSGUFTI.js → chunk-FB6X7QHA.js} +1 -1
  104. package/dist/{chunk-5PPQIF4D.js → chunk-FGW54I23.js} +7 -8
  105. package/dist/{chunk-JTC5SEAQ.js → chunk-FP5B5XIL.js} +7 -3
  106. package/dist/{chunk-RJGCYGC3.js → chunk-FRHQGA5Q.js} +86 -250
  107. package/dist/{chunk-YZZLIYPA.js → chunk-FRR7BJ3B.js} +5 -1
  108. package/dist/{chunk-4DZFR52I.js → chunk-FVWHEM2N.js} +7 -5
  109. package/dist/{chunk-YPYD6OJ3.js → chunk-FWSMENKH.js} +2 -2
  110. package/dist/{chunk-YYJORENB.js → chunk-FWTUGNSF.js} +8 -8
  111. package/dist/{chunk-GIHH6VC2.js → chunk-FZKDZQ6U.js} +10 -6
  112. package/dist/{chunk-S7NRL66K.js → chunk-G4FF6G3I.js} +26 -17
  113. package/dist/{chunk-PQLAZEQV.js → chunk-GB6BZSTL.js} +248 -92
  114. package/dist/chunk-GCIHRRDJ.js +24 -0
  115. package/dist/{chunk-X3KCQEYZ.js → chunk-GHCU6OSE.js} +9 -1
  116. package/dist/chunk-GKDUIDU6.js +138 -0
  117. package/dist/chunk-GO66OCN7.js +24 -0
  118. package/dist/chunk-GOFS336W.js +24 -0
  119. package/dist/{chunk-AGDDH6XY.js → chunk-GQYT7G4F.js} +5 -1
  120. package/dist/{chunk-WN3HEU3P.js → chunk-GUTLXO7Q.js} +140 -89
  121. package/dist/chunk-H3VICNTN.js +47 -0
  122. package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
  123. package/dist/{chunk-CB4CERXZ.js → chunk-HBQHSZ6S.js} +11 -2
  124. package/dist/chunk-HTQGJQZN.js +124 -0
  125. package/dist/{chunk-F77TMAUY.js → chunk-HUQRO6VF.js} +39 -36
  126. package/dist/{chunk-4KQHKPB3.js → chunk-I5VDW2XZ.js} +543 -509
  127. package/dist/{chunk-43GGVT7W.js → chunk-I5VNHDPR.js} +11 -4
  128. package/dist/{chunk-4LTN7SND.js → chunk-IDXYHDQY.js} +1 -1
  129. package/dist/{chunk-Y54LU4CU.js → chunk-IIWZJ5ZM.js} +1 -1
  130. package/dist/{chunk-FMDNJ6PC.js → chunk-IPBOREIY.js} +2 -2
  131. package/dist/chunk-IU335UO7.js +27 -0
  132. package/dist/{chunk-JVZTKQFS.js → chunk-IVDTP6SV.js} +9 -5
  133. package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
  134. package/dist/{chunk-EIL3KHAL.js → chunk-J4QRB6DQ.js} +5 -5
  135. package/dist/{chunk-3465633G.js → chunk-JCMGKQVS.js} +3 -3
  136. package/dist/{chunk-YK2KWNTU.js → chunk-JM7UTLF3.js} +28 -14
  137. package/dist/{chunk-CXETOLPX.js → chunk-JNDWRV34.js} +4 -4
  138. package/dist/{chunk-DLUNQHFO.js → chunk-JSRQTDZZ.js} +26 -24
  139. package/dist/{chunk-WTQAG2OT.js → chunk-JT3UTEWZ.js} +8 -3
  140. package/dist/{chunk-GQT2SY2S.js → chunk-JUYRDZSV.js} +291 -151
  141. package/dist/{chunk-LKMFMNQX.js → chunk-JVGL2SCN.js} +1 -1
  142. package/dist/{chunk-4JC3SE4G.js → chunk-JY4LTPOV.js} +1 -1
  143. package/dist/chunk-K7XPTQBJ.js +267 -0
  144. package/dist/{chunk-P4SMC4BY.js → chunk-KGBUXMFP.js} +120 -86
  145. package/dist/{chunk-XC5IRUEL.js → chunk-KIE5V3DA.js} +2 -2
  146. package/dist/{chunk-RT66UTLJ.js → chunk-KU4PCG4W.js} +2 -2
  147. package/dist/{chunk-VPL3JYC6.js → chunk-KVBLTAO7.js} +52 -10
  148. package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
  149. package/dist/{chunk-PJBEJR2U.js → chunk-KWIP5YRA.js} +24 -7
  150. package/dist/{chunk-JYBT2JNY.js → chunk-LE3LSEUL.js} +27 -2
  151. package/dist/{chunk-R2IKOLBK.js → chunk-LG6M2JTH.js} +3 -3
  152. package/dist/{chunk-DF3XEFQ7.js → chunk-LIE2WSB4.js} +21 -18
  153. package/dist/{chunk-Z55DXFWS.js → chunk-LJDATBPB.js} +26 -16
  154. package/dist/{chunk-KLIZXSBK.js → chunk-LMMS675D.js} +10 -9
  155. package/dist/{chunk-MRAP2UVV.js → chunk-LPKGZ664.js} +286 -35
  156. package/dist/{chunk-JFFREZGT.js → chunk-LPMSGO7L.js} +6 -2
  157. package/dist/chunk-LQWINE7K.js +211 -0
  158. package/dist/{chunk-6MJUW5R5.js → chunk-MKMMQDIY.js} +139 -71
  159. package/dist/{chunk-F5BYLT3M.js → chunk-MQ4IEDM5.js} +462 -138
  160. package/dist/{chunk-QGFKSDQO.js → chunk-MRM4KJ2O.js} +2 -2
  161. package/dist/{chunk-ETMHDCEH.js → chunk-MX2OZHIT.js} +102 -42
  162. package/dist/{chunk-6EYTD777.js → chunk-MXUPMGRY.js} +2 -2
  163. package/dist/{chunk-2FKEF2AC.js → chunk-NHU26HQ7.js} +58 -35
  164. package/dist/{chunk-KBJMLXNW.js → chunk-NQVJ4FPY.js} +161 -78
  165. package/dist/chunk-NZ7FX3AE.js +65 -0
  166. package/dist/chunk-OALBVELJ.js +23 -0
  167. package/dist/{chunk-5S3JQ5AT.js → chunk-OGZ4UPYK.js} +183 -137
  168. package/dist/{chunk-6WHWXCHJ.js → chunk-OMNB27GM.js} +7 -3
  169. package/dist/{chunk-EGGDPDYJ.js → chunk-OO63YP35.js} +1 -1
  170. package/dist/{chunk-ZYQYX66L.js → chunk-OPYDTW5Q.js} +6 -6
  171. package/dist/{chunk-A2GAWGVJ.js → chunk-OSJN7KDS.js} +68 -39
  172. package/dist/{chunk-RMC4OONA.js → chunk-OSJXIW6I.js} +1030 -1123
  173. package/dist/{chunk-X23SZHV5.js → chunk-OVVE42P4.js} +6 -6
  174. package/dist/{chunk-CCJP6QZO.js → chunk-OZA7HA6L.js} +1 -1
  175. package/dist/chunk-OZLKEBCD.js +54 -0
  176. package/dist/{chunk-TE4M52AA.js → chunk-P6DEFCMQ.js} +18 -2
  177. package/dist/{chunk-AMR4SUAN.js → chunk-PDTIQL3B.js} +6 -6
  178. package/dist/{chunk-BIVL764T.js → chunk-PJ5BYZPN.js} +2 -2
  179. package/dist/{chunk-BISJK67O.js → chunk-PK7Z7WRJ.js} +98 -46
  180. package/dist/{chunk-7VMEM3LN.js → chunk-PL6NWB5U.js} +178 -113
  181. package/dist/chunk-PMT75APP.js +94 -0
  182. package/dist/chunk-PP6A4X55.js +11 -0
  183. package/dist/{chunk-I7H5DU34.js → chunk-PPCH3PLO.js} +25 -13
  184. package/dist/{chunk-BIGQKCU7.js → chunk-PPE6S7WU.js} +42 -24
  185. package/dist/{chunk-2NSQIPAA.js → chunk-PT7KSIEO.js} +23 -36
  186. package/dist/{chunk-KZJ5VM6E.js → chunk-PZ3TQFSY.js} +15 -1
  187. package/dist/{chunk-ZJFJ2IKQ.js → chunk-QAUGRVRU.js} +122 -23
  188. package/dist/{chunk-BTDGWHGJ.js → chunk-QMFWZG2P.js} +39 -19
  189. package/dist/{chunk-L6YVK6VC.js → chunk-QZGGCE45.js} +2 -2
  190. package/dist/{chunk-67QSW5RW.js → chunk-R2RJQ3BM.js} +4 -4
  191. package/dist/{chunk-ZY72LSQK.js → chunk-R7HBIQ63.js} +102 -61
  192. package/dist/{chunk-4JHMCXOB.js → chunk-RBNDZLYS.js} +77 -36
  193. package/dist/chunk-RCSY4CT4.js +2170 -0
  194. package/dist/{chunk-NGA7ICG4.js → chunk-RDJ3ZU6O.js} +16 -13
  195. package/dist/{chunk-2NN676RI.js → chunk-RHQRPJHS.js} +7 -8
  196. package/dist/chunk-RI6XQKWJ.js +26 -0
  197. package/dist/{chunk-YOOHNQ3L.js → chunk-RJICOOB3.js} +18 -8
  198. package/dist/{chunk-5DTCOOLU.js → chunk-RLAVNCQJ.js} +2 -2
  199. package/dist/{chunk-CYKXROFG.js → chunk-ROPPWJQB.js} +23 -12
  200. package/dist/{chunk-54ROMBU7.js → chunk-SELOV32X.js} +105 -50
  201. package/dist/{chunk-TUW5IYGA.js → chunk-SQI4NWTQ.js} +9 -9
  202. package/dist/{chunk-ZEYBI47P.js → chunk-SRJ74CMG.js} +11 -3
  203. package/dist/{chunk-NHC2ADGI.js → chunk-STWOURLG.js} +253 -144
  204. package/dist/chunk-SWMFXSVW.js +23 -0
  205. package/dist/chunk-SXAZDIGM.js +84 -0
  206. package/dist/{chunk-EMFUZKYK.js → chunk-SZ5VGWDY.js} +3 -3
  207. package/dist/{chunk-R5MEBBAA.js → chunk-T26G23RS.js} +442 -119
  208. package/dist/{chunk-QHRE2M6V.js → chunk-T2L5H2WW.js} +4 -3
  209. package/dist/chunk-T7GPIJ4L.js +89 -0
  210. package/dist/{chunk-MJPXHCBW.js → chunk-TAEB3RU6.js} +5 -5
  211. package/dist/{chunk-V7F4F6JA.js → chunk-TBDIMTRD.js} +37 -16
  212. package/dist/{chunk-63Y3ROZ7.js → chunk-TFFPEWNP.js} +102 -64
  213. package/dist/{chunk-EZZ533MH.js → chunk-TMEUK2WS.js} +6 -2
  214. package/dist/{chunk-37PKNVLS.js → chunk-TVOMGNFQ.js} +1 -1
  215. package/dist/{chunk-HJRNBKIT.js → chunk-TX5FSNAU.js} +436 -30
  216. package/dist/{chunk-V634AXDM.js → chunk-U52PNFPX.js} +1 -1
  217. package/dist/{chunk-QLANK3VN.js → chunk-U74AWJ3X.js} +6 -6
  218. package/dist/chunk-UC7LBW7N.js +26 -0
  219. package/dist/{chunk-PZ46S2SY.js → chunk-UCKUAKYQ.js} +2 -2
  220. package/dist/{chunk-KF7HD3EH.js → chunk-UCYL3YA7.js} +77 -55
  221. package/dist/{chunk-HOU2MZHC.js → chunk-UD2GI3CS.js} +11 -4
  222. package/dist/{chunk-SNQ7D5R7.js → chunk-UIHGGWES.js} +51 -11
  223. package/dist/{chunk-LGNJCPFP.js → chunk-ULQIC76A.js} +10 -13
  224. package/dist/{chunk-KTHFHD6C.js → chunk-UY34DDUM.js} +11 -6
  225. package/dist/{chunk-6QDMRPXI.js → chunk-UYMFLWM6.js} +215 -258
  226. package/dist/{chunk-KDSYZLF6.js → chunk-V5IFI3FV.js} +8 -1
  227. package/dist/{chunk-JTFKRDDA.js → chunk-V7FV66KL.js} +1 -1
  228. package/dist/{chunk-27OIGDRK.js → chunk-V7NUJEJE.js} +1 -1
  229. package/dist/{chunk-CCDXK5NA.js → chunk-VESSIKBG.js} +8 -3
  230. package/dist/{chunk-QSMGZOT5.js → chunk-VRFJAF3R.js} +7 -8
  231. package/dist/chunk-VS2R3OGN.js +34 -0
  232. package/dist/{chunk-RLMC5CUP.js → chunk-VS5B4J2D.js} +7 -8
  233. package/dist/{chunk-7M2GK7XQ.js → chunk-W4R6SGU3.js} +252 -121
  234. package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
  235. package/dist/{chunk-7DAH2E4T.js → chunk-WFBN2HXR.js} +2 -2
  236. package/dist/{chunk-DLDDRXAI.js → chunk-WJS6SAWA.js} +296 -145
  237. package/dist/{chunk-WWGPTEQB.js → chunk-WQYNKF33.js} +73 -22
  238. package/dist/{chunk-64LJDGJH.js → chunk-WUP6C4ZD.js} +4 -2
  239. package/dist/{chunk-F2EVCJ4U.js → chunk-X24WAHHV.js} +87 -43
  240. package/dist/{chunk-OJ5CQV7H.js → chunk-X3UCQPVV.js} +209 -96
  241. package/dist/{chunk-7FKY6YWU.js → chunk-X46PSAJ7.js} +6 -6
  242. package/dist/{chunk-H3IBJQ5A.js → chunk-XD5XB22R.js} +2 -2
  243. package/dist/chunk-XDIAQEYK.js +28 -0
  244. package/dist/{chunk-7PPMT5EJ.js → chunk-XFPNYHX3.js} +372 -105
  245. package/dist/{chunk-FCECYJVA.js → chunk-XIBVAKCO.js} +1 -1
  246. package/dist/{chunk-OG2YUVBW.js → chunk-XMX4PCFL.js} +8 -3
  247. package/dist/{chunk-2NRHD2G7.js → chunk-XRRG4MBM.js} +12 -4
  248. package/dist/{chunk-FNMH5WEY.js → chunk-XTFO6D4L.js} +1 -1
  249. package/dist/chunk-XWRI3N5O.js +70 -0
  250. package/dist/{chunk-ZKJ5L35C.js → chunk-XXPLPSOE.js} +36 -25
  251. package/dist/{chunk-XQMYQ4TN.js → chunk-XZXZNI7A.js} +1 -1
  252. package/dist/{chunk-E555EDOQ.js → chunk-YEJZ2OYS.js} +490 -182
  253. package/dist/chunk-YGZEG3JV.js +123 -0
  254. package/dist/{chunk-F6OLHND5.js → chunk-Z3WQXVFV.js} +2 -2
  255. package/dist/{chunk-FFJGC2DX.js → chunk-Z6DUNKFU.js} +173 -40
  256. package/dist/{chunk-N5HN5QGH.js → chunk-Z6H5ED2I.js} +1 -1
  257. package/dist/{chunk-7Q37C6GZ.js → chunk-ZBOOMLHD.js} +1 -1
  258. package/dist/{chunk-MOK3ZS6P.js → chunk-ZDJ7C64T.js} +1 -1
  259. package/dist/{chunk-GLQ3KCTY.js → chunk-ZGZLEUKM.js} +7 -8
  260. package/dist/{chunk-YHD2FZFP.js → chunk-ZHRGX225.js} +6 -6
  261. package/dist/{chunk-76Q7E3TM.js → chunk-ZIVCPXXL.js} +510 -646
  262. package/dist/{chunk-BSATR6ZO.js → chunk-ZNRSYS76.js} +21 -3
  263. package/dist/{chunk-DMAMWUYY.js → chunk-ZSLTSCTI.js} +5 -5
  264. package/dist/{chunk-IGVAWAOK.js → chunk-ZSYFQSPF.js} +43 -9
  265. package/dist/cli/index.js +8 -3
  266. package/dist/{core-7Y5BZZON.js → core-43GLGBOY.js} +8 -1
  267. package/dist/{core-7S3XMW5O.js → core-5GI3ERXO.js} +4 -1
  268. package/dist/{core-K3JX5WPM.js → core-5L7TMK7I.js} +6 -1
  269. package/dist/{core-LB5M7XL4.js → core-7TO4OVY5.js} +6 -1
  270. package/dist/{core-ILPXXC2Z.js → core-BJVENHFQ.js} +7 -1
  271. package/dist/{core-JDFUZFRH.js → core-BX4MFWKC.js} +6 -1
  272. package/dist/{core-XW7UJFJZ.js → core-C3KXTOIZ.js} +7 -1
  273. package/dist/{core-WJNK7F2J.js → core-C5Y6BFLL.js} +7 -1
  274. package/dist/{core-WZ4CHVYL.js → core-CLUSJ2SK.js} +5 -1
  275. package/dist/{core-TCSW24N6.js → core-E3IN2VVH.js} +5 -1
  276. package/dist/{core-MU4ALRR7.js → core-FD67NQOV.js} +6 -1
  277. package/dist/{core-YMXYUGF5.js → core-FDKMLRAK.js} +5 -1
  278. package/dist/{core-VKZSQFRG.js → core-FL6Z3VVX.js} +5 -1
  279. package/dist/{core-5UF44NDI.js → core-JC7JUFPY.js} +8 -1
  280. package/dist/{core-RR2CAZC5.js → core-JF33TADA.js} +8 -1
  281. package/dist/{core-4RR6VSXM.js → core-JH32ZAKM.js} +4 -1
  282. package/dist/{core-G3LXHW73.js → core-JYYZPPQV.js} +7 -1
  283. package/dist/{core-4HFVG4CP.js → core-KJTKCV4U.js} +4 -1
  284. package/dist/{core-GSILPKUR.js → core-LCQPE5Y6.js} +8 -1
  285. package/dist/{core-GLOZY6Z7.js → core-LHVGWE54.js} +6 -1
  286. package/dist/{core-J2JD5ODO.js → core-OVSNBOCE.js} +9 -1
  287. package/dist/{core-BLHEJ5OK.js → core-PPEC236B.js} +5 -1
  288. package/dist/{core-ZLSQHZ3I.js → core-QTJZDK5H.js} +5 -1
  289. package/dist/{core-TKZZZ6UW.js → core-R3YZCOUZ.js} +7 -1
  290. package/dist/{core-HTD5RHE7.js → core-RIBW5XU4.js} +7 -1
  291. package/dist/{core-AR2T32Y3.js → core-RJFILBWL.js} +8 -1
  292. package/dist/{core-A5AKUB7H.js → core-RWSXEKTE.js} +4 -1
  293. package/dist/{core-DD62MWEW.js → core-SOPPZLEH.js} +5 -1
  294. package/dist/{core-HDNWVLJW.js → core-TBUZCXLX.js} +5 -1
  295. package/dist/{core-BOG33BFD.js → core-TZ5QLTAX.js} +5 -1
  296. package/dist/{core-H5HO2CED.js → core-U7E5W4MY.js} +3 -1
  297. package/dist/{core-QPSAYRFT.js → core-UBNVSL44.js} +7 -1
  298. package/dist/{core-E2XOSHPR.js → core-UDRD4WIU.js} +6 -1
  299. package/dist/{core-DFZMOO7E.js → core-UVJZ4HY2.js} +7 -1
  300. package/dist/{core-LGJZUP6H.js → core-X7WWYQH4.js} +8 -1
  301. package/dist/{core-BBNY2BX4.js → core-XP56X47I.js} +5 -1
  302. package/dist/{core-3KLQSYWB.js → core-XQG54CYG.js} +6 -1
  303. package/dist/{dataTable-CNDRVGA5.js → dataTable-U7W4I6IF.js} +15 -2
  304. package/dist/{engine-FVEIM3WV.js → engine-O5V26MGR.js} +32 -19
  305. package/dist/fixtures.js +4 -1
  306. package/dist/flags-BVLSAXT3.js +10 -0
  307. package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
  308. package/dist/fonts.js +1 -1
  309. package/dist/geo/dach.js +1 -1
  310. package/dist/geo/de-states.js +1 -1
  311. package/dist/geo/eu27.js +1 -1
  312. package/dist/geo/europe.js +1 -1
  313. package/dist/geo/index.js +2 -2
  314. package/dist/geo/us-states.js +1 -1
  315. package/dist/geo/world.js +1 -1
  316. package/dist/index.js +41 -22
  317. package/dist/{main-THU6VIVU.js → main-35GS47XC.js} +68 -123
  318. package/dist/mcp/server.js +131 -118
  319. package/dist/react/bar.js +10 -1
  320. package/dist/react/bartable.js +10 -1
  321. package/dist/react/box.js +8 -1
  322. package/dist/react/bullet.js +10 -1
  323. package/dist/react/butterfly.js +10 -1
  324. package/dist/react/choropleth.js +10 -1
  325. package/dist/react/cohort.js +11 -1
  326. package/dist/react/column.js +10 -1
  327. package/dist/react/combo.js +10 -1
  328. package/dist/react/creative.js +11 -1
  329. package/dist/react/diagram.js +10 -1
  330. package/dist/react/dimswitch.js +11 -1
  331. package/dist/react/dot.js +9 -1
  332. package/dist/react/export.js +36 -18
  333. package/dist/react/funnel.js +9 -1
  334. package/dist/react/gantt.js +9 -1
  335. package/dist/react/grid.js +10 -1
  336. package/dist/react/heatmap.js +9 -1
  337. package/dist/react/histogram.js +11 -1
  338. package/dist/react/index.js +101 -85
  339. package/dist/react/kpi.js +10 -1
  340. package/dist/react/likert.js +11 -1
  341. package/dist/react/line.js +9 -1
  342. package/dist/react/mekko.js +10 -1
  343. package/dist/react/pareto.js +11 -1
  344. package/dist/react/pie.js +9 -1
  345. package/dist/react/prepare.js +49 -21
  346. package/dist/react/pvm.js +12 -1
  347. package/dist/react/pyramid.js +10 -1
  348. package/dist/react/sankey.js +10 -1
  349. package/dist/react/scatter.js +8 -1
  350. package/dist/react/slope.js +10 -1
  351. package/dist/react/sparkline.js +10 -1
  352. package/dist/react/spec.js +24 -14
  353. package/dist/react/status.js +9 -1
  354. package/dist/react/story.js +5 -2
  355. package/dist/react/table.js +9 -1
  356. package/dist/react/theme.js +10 -3
  357. package/dist/react/tilemap.js +9 -1
  358. package/dist/react/treemap.js +9 -1
  359. package/dist/react/variance.js +10 -1
  360. package/dist/react/waffle.js +9 -1
  361. package/dist/react/waterfall.js +11 -1
  362. package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
  363. package/dist/rows.js +3 -2
  364. package/dist/{rowsModule-LI6KOS46.js → rowsModule-H2S6WW4D.js} +2 -1
  365. package/dist/{schema-CGQID64D.js → schema-2R32F6AW.js} +1 -1
  366. package/dist/{schema-H2EC4GAQ.js → schema-2TPGJGVR.js} +1 -1
  367. package/dist/{schema-THXXFY6I.js → schema-47BG2TZA.js} +1 -3
  368. package/dist/{schema-AMT7P7KB.js → schema-56MOEOVR.js} +1 -1
  369. package/dist/{schema-GNTKL5DN.js → schema-5MSR4LNN.js} +1 -1
  370. package/dist/{schema-5ZTGVQAJ.js → schema-5RIYEWE6.js} +1 -1
  371. package/dist/{schema-LOQ3AFC7.js → schema-A26ZNGTZ.js} +1 -3
  372. package/dist/{schema-MMVPMJEF.js → schema-ALBF6V7Y.js} +1 -3
  373. package/dist/{schema-BKUFZLLI.js → schema-BA6WP5YZ.js} +1 -1
  374. package/dist/{schema-PQZWO3BP.js → schema-CBL2SMVR.js} +1 -3
  375. package/dist/{schema-BBTXTWYI.js → schema-CWKGLDSR.js} +1 -3
  376. package/dist/{schema-5KDEQBBT.js → schema-DBIQFL56.js} +1 -1
  377. package/dist/{schema-KPEPBGAX.js → schema-DL7V6NN2.js} +1 -1
  378. package/dist/{schema-PL3EU6EQ.js → schema-DUVJMFKQ.js} +4 -2
  379. package/dist/{schema-L5U4OROI.js → schema-ECJERHKF.js} +2 -1
  380. package/dist/{schema-YLE4XXQQ.js → schema-EDSEKZDJ.js} +1 -1
  381. package/dist/{schema-HH5HOORE.js → schema-ESR6ZIK4.js} +1 -3
  382. package/dist/{schema-5DUTAVO7.js → schema-F7TWGLRZ.js} +1 -3
  383. package/dist/{schema-B2GCEYXD.js → schema-FGB6IGZM.js} +1 -3
  384. package/dist/{schema-7NSV542V.js → schema-FKGGTM4Z.js} +2 -1
  385. package/dist/{schema-72EEMYS3.js → schema-FU2AFIEE.js} +1 -1
  386. package/dist/{schema-QORUB6EK.js → schema-JNJFCYBM.js} +18 -1
  387. package/dist/{schema-JH57NFXJ.js → schema-JYZ4RF6S.js} +2 -1
  388. package/dist/{schema-25INXAMY.js → schema-K7F6TEDK.js} +1 -2
  389. package/dist/{schema-OU35XA3Z.js → schema-KAK6DZX4.js} +1 -1
  390. package/dist/{schema-R5Y6NVBH.js → schema-MOKWIGF7.js} +1 -1
  391. package/dist/{schema-ZQSIR5UC.js → schema-MQT6BMNK.js} +1 -3
  392. package/dist/{schema-FDFQKIO5.js → schema-MR3BPPQR.js} +1 -1
  393. package/dist/{schema-VYECMPON.js → schema-OPXZYIW7.js} +1 -3
  394. package/dist/{schema-ZEVJMFLV.js → schema-PV7JGX5H.js} +1 -1
  395. package/dist/{schema-QPOBZUAR.js → schema-PWPQF5RC.js} +1 -1
  396. package/dist/{schema-GN6GAIU5.js → schema-PYQEUC5P.js} +1 -3
  397. package/dist/{schema-M5JBHQIV.js → schema-QPIC5MAG.js} +9 -2
  398. package/dist/{schema-QCIE6M2P.js → schema-R42VXFIS.js} +1 -1
  399. package/dist/{schema-J7TNCZIP.js → schema-TVUJNEX7.js} +1 -1
  400. package/dist/{schema-AXRDF6ND.js → schema-Y4TI2T3T.js} +1 -1
  401. package/dist/{schema-ZG6ZKFRZ.js → schema-ZU2EU2VP.js} +1 -1
  402. package/dist/{specValidation-VHLGDEME.js → specValidation-2NHJT7TQ.js} +4 -1
  403. package/dist/theme.js +7 -2
  404. package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
  405. package/dist/types/core/annotate.d.ts +27 -2
  406. package/dist/types/core/annotateArms.d.ts +3 -1
  407. package/dist/types/core/annotateTargets.d.ts +4 -0
  408. package/dist/types/core/annotationOrigin.d.ts +13 -0
  409. package/dist/types/core/axis.d.ts +2 -2
  410. package/dist/types/core/charts/band/stacks.d.ts +7 -1
  411. package/dist/types/core/charts/bartable/types.d.ts +14 -1
  412. package/dist/types/core/charts/box/types.d.ts +3 -1
  413. package/dist/types/core/charts/choropleth/layout.d.ts +1 -5
  414. package/dist/types/core/charts/choropleth/types.d.ts +19 -0
  415. package/dist/types/core/charts/cohort/types.d.ts +16 -3
  416. package/dist/types/core/charts/column/model.d.ts +13 -0
  417. package/dist/types/core/charts/combo/layout.d.ts +7 -0
  418. package/dist/types/core/charts/creative/types.d.ts +21 -0
  419. package/dist/types/core/charts/dimswitch/compile.d.ts +15 -2
  420. package/dist/types/core/charts/dimswitch/types.d.ts +24 -1
  421. package/dist/types/core/charts/gantt/calendar.d.ts +24 -0
  422. package/dist/types/core/charts/gantt/columns.d.ts +56 -0
  423. package/dist/types/core/charts/gantt/layout.d.ts +8 -2
  424. package/dist/types/core/charts/gantt/model.d.ts +296 -0
  425. package/dist/types/core/charts/grid/metricStack.d.ts +9 -0
  426. package/dist/types/core/charts/grid/metricStackSchema.d.ts +13 -0
  427. package/dist/types/core/charts/grid/normalize.d.ts +5 -0
  428. package/dist/types/core/charts/grid/schema.d.ts +2 -2
  429. package/dist/types/core/charts/histogram/types.d.ts +8 -0
  430. package/dist/types/core/charts/likert/layout.d.ts +10 -8
  431. package/dist/types/core/charts/pareto/layout.d.ts +2 -0
  432. package/dist/types/core/charts/pvm/types.d.ts +10 -1
  433. package/dist/types/core/charts/pyramid/types.d.ts +3 -1
  434. package/dist/types/core/charts/sankey/types.d.ts +5 -1
  435. package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
  436. package/dist/types/core/charts/scatter/model.d.ts +5 -0
  437. package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
  438. package/dist/types/core/charts/status/layout.d.ts +3 -0
  439. package/dist/types/core/charts/table/resolve.d.ts +22 -3
  440. package/dist/types/core/charts/table/view.d.ts +24 -1
  441. package/dist/types/core/claims/browser.d.ts +2 -0
  442. package/dist/types/core/claims/ids.d.ts +38 -0
  443. package/dist/types/core/deferred.d.ts +1 -0
  444. package/dist/types/core/doc/diagnostics.d.ts +3 -2
  445. package/dist/types/core/footer.d.ts +2 -0
  446. package/dist/types/core/formatSpec.d.ts +43 -14
  447. package/dist/types/core/frame.d.ts +26 -59
  448. package/dist/types/core/frameText.d.ts +203 -0
  449. package/dist/types/core/geo/types.d.ts +2 -0
  450. package/dist/types/core/geometry.d.ts +3 -1
  451. package/dist/types/core/label/categoryRow.d.ts +19 -2
  452. package/dist/types/core/label/solver.d.ts +23 -2
  453. package/dist/types/core/normalize/shared.d.ts +14 -2
  454. package/dist/types/core/notes.d.ts +15 -2
  455. package/dist/types/core/reading.d.ts +12 -1
  456. package/dist/types/core/registry.d.ts +4 -5
  457. package/dist/types/core/request.d.ts +7 -1
  458. package/dist/types/core/schema/capability.d.ts +32 -7
  459. package/dist/types/core/schema/generatedColumns.d.ts +168 -0
  460. package/dist/types/core/seriesIdentity.d.ts +4 -1
  461. package/dist/types/core/sizing.d.ts +32 -1
  462. package/dist/types/core/structureCounts.d.ts +3 -1
  463. package/dist/types/core/text.d.ts +16 -0
  464. package/dist/types/core/theme.d.ts +33 -4
  465. package/dist/types/core/themeGeometry.d.ts +9 -0
  466. package/dist/types/core/themeRules.d.ts +2 -0
  467. package/dist/types/core/timeAxis.d.ts +6 -1
  468. package/dist/types/core/types/annotations.d.ts +74 -4
  469. package/dist/types/core/types/diagram.d.ts +7 -0
  470. package/dist/types/core/types/options.d.ts +118 -15
  471. package/dist/types/core/types/scene.d.ts +30 -2
  472. package/dist/types/core/types/table.d.ts +27 -3
  473. package/dist/types/core/types/theme.d.ts +23 -0
  474. package/dist/types/index.d.ts +2 -0
  475. package/dist/types/react/TableChart.d.ts +5 -0
  476. package/dist/types/react/barrelCharts.d.ts +16 -5
  477. package/dist/types/react/charts/butterfly.d.ts +2 -2
  478. package/dist/types/react/charts/dot.d.ts +7 -1
  479. package/dist/types/react/charts/pareto.d.ts +4 -1
  480. package/dist/types/react/charts/variance.d.ts +3 -1
  481. package/dist/types/react/hover/labelCard.d.ts +11 -2
  482. package/dist/types/react/prepare.d.ts +7 -1
  483. package/dist/types/theme.d.ts +2 -0
  484. package/dist/validate.js +23 -6
  485. package/docs/TELEMETRY.md +2 -2
  486. package/docs/manual.md +283 -65
  487. package/docs/reference/bar.md +15 -4
  488. package/docs/reference/bartable.md +17 -2
  489. package/docs/reference/box.md +15 -4
  490. package/docs/reference/bullet.md +21 -6
  491. package/docs/reference/butterfly.md +17 -6
  492. package/docs/reference/choropleth.md +16 -5
  493. package/docs/reference/cohort.md +25 -5
  494. package/docs/reference/column.md +19 -4
  495. package/docs/reference/combo.md +11 -5
  496. package/docs/reference/creative.md +17 -8
  497. package/docs/reference/diagram.md +6 -1
  498. package/docs/reference/dimswitch.md +71 -118
  499. package/docs/reference/dot.md +16 -7
  500. package/docs/reference/fixtures.md +94 -1
  501. package/docs/reference/funnel.md +14 -5
  502. package/docs/reference/gantt.md +17 -16
  503. package/docs/reference/grid.md +13 -3
  504. package/docs/reference/heatmap.md +16 -6
  505. package/docs/reference/histogram.md +2 -2
  506. package/docs/reference/kpi.md +5 -1
  507. package/docs/reference/likert.md +17 -4
  508. package/docs/reference/line.md +18 -5
  509. package/docs/reference/mekko.md +10 -5
  510. package/docs/reference/options.md +20 -15
  511. package/docs/reference/pareto.md +9 -5
  512. package/docs/reference/pie.md +9 -5
  513. package/docs/reference/pvm.md +16 -6
  514. package/docs/reference/pyramid.md +14 -4
  515. package/docs/reference/react.md +6 -7
  516. package/docs/reference/sankey.md +7 -3
  517. package/docs/reference/scatter.md +8 -4
  518. package/docs/reference/slope.md +15 -5
  519. package/docs/reference/sparkline.md +1 -1
  520. package/docs/reference/status.md +7 -1
  521. package/docs/reference/table.md +41 -110
  522. package/docs/reference/theme.md +12 -4
  523. package/docs/reference/tilemap.md +2 -4
  524. package/docs/reference/treemap.md +1 -1
  525. package/docs/reference/variance.md +12 -6
  526. package/docs/reference/waffle.md +1 -1
  527. package/docs/reference/warnings.md +1077 -0
  528. package/docs/reference/waterfall.md +20 -5
  529. package/docs/use-cases.md +25 -13
  530. package/llms.txt +19 -6
  531. package/package.json +18 -3
  532. package/dist/chunk-6364WO5D.js +0 -47
  533. package/dist/chunk-DQ7YMQVX.js +0 -26
  534. package/dist/chunk-EBB4PYBN.js +0 -24
  535. package/dist/chunk-FG5L2LUK.js +0 -89
  536. package/dist/chunk-IFQN4GKK.js +0 -1852
  537. package/dist/chunk-IRXVV65V.js +0 -24
  538. package/dist/chunk-JGFHNAHS.js +0 -22
  539. package/dist/chunk-JHWYG7V5.js +0 -24
  540. package/dist/chunk-M4SPKUZE.js +0 -7
  541. package/dist/chunk-O36WX56O.js +0 -13
  542. package/dist/chunk-QJWLNP64.js +0 -24
  543. package/dist/chunk-QZIHKQRH.js +0 -26
  544. package/dist/chunk-SE7MJ2LQ.js +0 -24
  545. package/dist/chunk-TXBO2LWM.js +0 -25
  546. package/dist/chunk-UPTXFTKH.js +0 -25
  547. package/dist/chunk-UREXN6WG.js +0 -25
  548. package/dist/chunk-UZLR25BW.js +0 -24
  549. package/dist/chunk-WIVFIVFZ.js +0 -27
  550. package/dist/chunk-WZL4EEBS.js +0 -11
  551. package/dist/chunk-XHRUXZD7.js +0 -28
  552. package/dist/chunk-ZWNRLIFT.js +0 -24
@@ -18,97 +18,104 @@ import {
18
18
  quietLandPaint,
19
19
  renderGeoOverlays,
20
20
  reserveGeoOverlayGlyphs
21
- } from "./chunk-DF3XEFQ7.js";
21
+ } from "./chunk-LIE2WSB4.js";
22
22
  import {
23
23
  geoOptionRefusals
24
- } from "./chunk-KDSYZLF6.js";
24
+ } from "./chunk-V5IFI3FV.js";
25
25
  import {
26
26
  PLOT_W_FLOOR_DEMOTED
27
- } from "./chunk-NCLRZQR6.js";
27
+ } from "./chunk-5JIB4VJA.js";
28
28
  import {
29
29
  prepareOutlineDistance
30
- } from "./chunk-CCJP6QZO.js";
30
+ } from "./chunk-OZA7HA6L.js";
31
31
  import {
32
32
  stepDownFont
33
- } from "./chunk-MPO5TVGF.js";
33
+ } from "./chunk-6ZDSEITW.js";
34
34
  import {
35
35
  chartTheme
36
- } from "./chunk-7DAH2E4T.js";
36
+ } from "./chunk-WFBN2HXR.js";
37
+ import {
38
+ fitsRoom,
39
+ widthsThatFit
40
+ } from "./chunk-AHIK2N72.js";
37
41
  import {
38
42
  structureCount
39
- } from "./chunk-XCROSJ2Z.js";
43
+ } from "./chunk-KW4JXWHO.js";
40
44
  import {
41
45
  geoRegionIdIndex,
46
+ nearestRegionId,
42
47
  resolveGeoRegionId
43
- } from "./chunk-KZJ5VM6E.js";
48
+ } from "./chunk-PZ3TQFSY.js";
44
49
  import {
45
50
  getGeoPack
46
- } from "./chunk-IVRYF7QA.js";
51
+ } from "./chunk-CR5FP5SF.js";
47
52
  import {
48
- levenshtein
49
- } from "./chunk-NMTWUYUF.js";
53
+ generatedIdWarnings
54
+ } from "./chunk-SXAZDIGM.js";
50
55
  import {
51
56
  chartSizing,
57
+ heightOmitted,
52
58
  resolveSizing,
53
59
  rowDrivenHeight
54
- } from "./chunk-T2CYNDYU.js";
60
+ } from "./chunk-ETRAPN5G.js";
55
61
  import {
56
62
  PRIORITY,
57
63
  SIDE_KEY_PLOT_SHARE,
58
64
  authoredNotes,
59
- boxGap,
60
65
  composedTextRole,
61
- createOccupiedIndex,
62
66
  frameTextOptions,
63
67
  labelCtx,
64
68
  labelsToNodes,
65
69
  legendRequired,
66
70
  noteLine,
67
- rectContains,
68
- rectHitsConvexPolygon,
69
- rectLineDistance,
70
- rectsOverlap,
71
- round2,
72
71
  solveFrame,
73
72
  solveLabels,
74
73
  unitPrinted
75
- } from "./chunk-4KQHKPB3.js";
74
+ } from "./chunk-I5VDW2XZ.js";
76
75
  import {
77
76
  disclosureNote
78
- } from "./chunk-SMHZXHHD.js";
77
+ } from "./chunk-DZYTXZNS.js";
79
78
  import {
80
- formatterFromExample
81
- } from "./chunk-FFJGC2DX.js";
79
+ formatterFromExample,
80
+ unitMagnitude
81
+ } from "./chunk-Z6DUNKFU.js";
82
82
  import {
83
83
  autoDecimals,
84
84
  formatAutomaticNumber
85
85
  } from "./chunk-MSYTF3DZ.js";
86
86
  import {
87
+ boxGap,
87
88
  canvasMargin,
89
+ createOccupiedIndex,
88
90
  dashToken,
89
91
  effectiveFill,
90
92
  emphasisWeight,
91
93
  paintColor,
94
+ rectContains,
95
+ rectHitsConvexPolygon,
96
+ rectLineDistance,
97
+ rectsOverlap,
92
98
  resolveSemanticPaletteTheme,
99
+ round2,
93
100
  strokeToken,
94
101
  textScaleOf
95
- } from "./chunk-HJRNBKIT.js";
102
+ } from "./chunk-TX5FSNAU.js";
96
103
  import {
97
104
  NormalizeError,
98
105
  TARGET_SIZE,
99
106
  accessibleTitle,
100
107
  resolveSize,
101
108
  resolveSubtitle
102
- } from "./chunk-YOOHNQ3L.js";
103
- import {
104
- maxOf,
105
- pushAll
106
- } from "./chunk-WYJEOMNY.js";
109
+ } from "./chunk-RJICOOB3.js";
107
110
  import {
108
111
  compareText,
109
112
  defaultMeasurer,
110
113
  wrapText
111
- } from "./chunk-SNQ7D5R7.js";
114
+ } from "./chunk-UIHGGWES.js";
115
+ import {
116
+ maxOf,
117
+ pushAll
118
+ } from "./chunk-WYJEOMNY.js";
112
119
 
113
120
  // src/core/geo/decode.ts
114
121
  var packedArcCache = /* @__PURE__ */ new WeakMap();
@@ -457,11 +464,14 @@ function mapKeysOnce(input) {
457
464
  }
458
465
  function shortestRegionName(region, font, measure) {
459
466
  let shortName = region.anchor.shortName;
460
- if (shortName === region.id) return shortName;
467
+ if (shortName === region.id || region.anchor.authored) return shortName;
461
468
  let shortWidth = measure(shortName, font).width, idWidth = measure(region.id, font).width;
462
469
  return idWidth < shortWidth || idWidth === shortWidth && compareText(region.id, shortName) < 0 ? region.id : shortName;
463
470
  }
464
- var VALUE_TABLE_MAX_ROWS = 20, TABLE_COLUMN_GAP = 16, GROUP_GAP = 6, COLUMN_STRETCH = 1.6;
471
+ var VALUE_TABLE_MAX_ROWS = 20, TABLE_COLUMN_GAP = 16, GROUP_GAP = 6, COLUMN_STRETCH = 1.6, alignedIn = (left, track, width, align, fallback) => {
472
+ let chosen = align ?? fallback;
473
+ return chosen === "left" ? left : chosen === "right" ? left + track - width : left + (track - width) / 2;
474
+ };
465
475
  function valueTable(input) {
466
476
  let { theme, measure } = input, regular = { family: theme.type.family, ...theme.type.label }, bold = { ...regular, weight: emphasisWeight(theme) }, fontOf = (id) => input.bold.has(id) ? bold : regular, lineH = regular.size * (regular.lineHeight ?? 1.2), rowH = Math.max(SWATCH + (input.compact ? 2 : 4), lineH + (input.compact ? 0.4 : 3)), columnGap = input.compact ? 8 : TABLE_COLUMN_GAP, rows = input.ids.map((id) => {
467
477
  let state = input.states?.get(id), value = input.values.get(id) ?? null;
@@ -473,7 +483,20 @@ function valueTable(input) {
473
483
  state,
474
484
  listed: input.values.has(id)
475
485
  };
476
- }).sort((a, b) => (a.value === null || a.state ? 1 : 0) - (b.value === null || b.state ? 1 : 0) || (a.value !== null && b.value !== null && !a.state && !b.state ? b.value - a.value : 0) || compareText(a.code, b.code)), groupN = rows.slice(0, input.bold.size).every((row) => input.bold.has(row.id)) && input.bold.size < rows.length ? input.bold.size : 0, codeW = Math.max(0, maxOf(rows.map((row) => measure(row.code, fontOf(row.id)).width))), valueW = Math.max(input.unit ? measure(input.unit, bold).width : 0, maxOf(rows.map((row) => measure(row.text, fontOf(row.id)).width))), columnW = SWATCH + SWATCH_GAP + codeW + (input.compact ? 6 : 12) + valueW, caption = { family: theme.type.family, ...theme.type.footnote }, headerH = input.unit ? caption.size * (caption.lineHeight ?? 1.2) + 4 : 0, columnsOf = (perColumn) => Math.ceil(rows.length / Math.max(1, perColumn)), countsOf = (columns) => Array.from({ length: columns }, (_, i) => Math.floor(rows.length / columns) + (i < rows.length % columns ? 1 : 0)), columnWidth = (columns, width, full = !1) => width === void 0 ? columnW : Math.min(full ? 1 / 0 : columnW * COLUMN_STRETCH, Math.max(columnW, (width - (columns - 1) * columnGap) / columns)), groupGap = (columns) => groupN > 0 && groupN < countsOf(columns)[0] ? GROUP_GAP : 0, size = (perColumn, width, full = !1) => {
486
+ }).sort((a, b) => (a.value === null || a.state ? 1 : 0) - (b.value === null || b.state ? 1 : 0) || (a.value !== null && b.value !== null && !a.state && !b.state ? b.value - a.value : 0) || compareText(a.code, b.code));
487
+ if (input.rowOrder?.length) {
488
+ let seat = new Map(input.rowOrder.map((id, index) => [id, index]));
489
+ rows.sort((a, b) => (seat.get(a.id) ?? 1 / 0) - (seat.get(b.id) ?? 1 / 0) || 0);
490
+ }
491
+ let groupN = rows.slice(0, input.bold.size).every((row) => input.bold.has(row.id)) && input.bold.size < rows.length ? input.bold.size : 0, overrides = input.columns?.overrides, swatchDrawn = input.columns?.swatch !== !1, valueDrawn = input.columns?.value !== !1, headText = valueDrawn ? overrides?.value?.label ?? input.unit : void 0, codeNeed = Math.max(0, maxOf(rows.map((row) => measure(row.code, fontOf(row.id)).width))), valueNeed = valueDrawn ? Math.max(headText ? measure(headText, bold).width : 0, maxOf(rows.map((row) => measure(row.text, fontOf(row.id)).width))) : 0, swatchW = swatchDrawn ? Math.max(SWATCH + SWATCH_GAP, overrides?.swatch?.width ?? 0) : 0, codeW = Math.max(codeNeed, overrides?.code?.width ?? 0), valueW = Math.max(valueNeed, overrides?.value?.width ?? 0), codeGap = valueDrawn ? input.compact ? 6 : 12 : 0, below = (track, need) => track?.width !== void 0 && track.width < need, widthFloored = swatchDrawn && below(overrides?.swatch, SWATCH + SWATCH_GAP) || below(overrides?.code, codeNeed) || valueDrawn && below(overrides?.value, valueNeed), excess = swatchW + codeW + codeGap + valueW - (input.maxColumnW ?? 1 / 0), widthCapped = excess > 0 && (swatchW > SWATCH + SWATCH_GAP || codeW > codeNeed || valueW > valueNeed);
492
+ if (widthCapped) {
493
+ let left = excess, giveUp = (width, floor) => {
494
+ let taken = Math.min(left, Math.max(0, width - floor));
495
+ return left -= taken, width - taken;
496
+ };
497
+ valueW = giveUp(valueW, valueNeed), codeW = giveUp(codeW, codeNeed), swatchDrawn && (swatchW = giveUp(swatchW, SWATCH + SWATCH_GAP));
498
+ }
499
+ let columnW = swatchW + codeW + codeGap + valueW, caption = { family: theme.type.family, ...theme.type.footnote }, headerH = headText ? caption.size * (caption.lineHeight ?? 1.2) + 4 : 0, columnsOf = (perColumn) => Math.ceil(rows.length / Math.max(1, perColumn)), countsOf = (columns) => Array.from({ length: columns }, (_, i) => Math.floor(rows.length / columns) + (i < rows.length % columns ? 1 : 0)), columnWidth = (columns, width, full = !1) => width === void 0 ? columnW : Math.min(full ? 1 / 0 : columnW * COLUMN_STRETCH, Math.max(columnW, (width - (columns - 1) * columnGap) / columns)), groupGap = (columns) => groupN > 0 && groupN < countsOf(columns)[0] ? GROUP_GAP : 0, size = (perColumn, width, full = !1) => {
477
500
  let columns = columnsOf(perColumn), w = columnWidth(columns, width, full);
478
501
  return { w: columns * w + (columns - 1) * columnGap, h: headerH + countsOf(columns)[0] * rowH + groupGap(columns), columns };
479
502
  }, rowsIn = (height) => Math.floor((height - headerH - (groupN ? GROUP_GAP : 0)) / rowH), columnsIn = (width) => Math.max(0, Math.floor((width + columnGap) / (columnW + columnGap))), rowsAcross = (width, keepGroup = !0) => {
@@ -495,19 +518,19 @@ function valueTable(input) {
495
518
  candidates: [{ slot: "valueTable", rect: { x: left, y: top + (rowH - measured.height) / 2, w: measured.width, h: measured.height }, penalty: 0 }]
496
519
  });
497
520
  };
498
- if (input.unit) {
499
- let measured = measure(input.unit, caption);
521
+ if (headText) {
522
+ let measured = measure(headText, caption), headAlign = overrides?.value?.headAlign ?? overrides?.value?.align, headX = headAlign === void 0 ? x : alignedIn(x + colW - valueW, valueW, measured.width, headAlign, "right");
500
523
  requests.push({
501
524
  id: "value-table-unit:0",
502
525
  kind: "annotation",
503
526
  typeRole: "footnote",
504
527
  owner: {},
505
- text: input.unit,
506
- lines: [input.unit],
528
+ text: headText,
529
+ lines: [headText],
507
530
  font: caption,
508
531
  priority: PRIORITY.endpoint,
509
532
  role: "caption",
510
- candidates: [{ slot: "valueTable", rect: { x, y, w: measured.width, h: measured.height }, penalty: 0 }]
533
+ candidates: [{ slot: "valueTable", rect: { x: headX, y, w: measured.width, h: measured.height }, penalty: 0 }]
511
534
  });
512
535
  }
513
536
  let counts = countsOf(columns), gap = groupGap(columns);
@@ -529,27 +552,33 @@ function valueTable(input) {
529
552
  rows.forEach((row, index) => {
530
553
  let column = 0, rowIndex = index;
531
554
  for (; rowIndex >= counts[column]; ) rowIndex -= counts[column++];
532
- let left = x + column * (colW + columnGap), top = y + headerH + rowIndex * rowH + (gap && rowIndex >= groupN ? gap : 0), rect = { x: left, y: top + (rowH - SWATCH) / 2, w: SWATCH, h: SWATCH };
533
- nodes.push({
534
- t: "rect",
535
- id: `value-table-swatch:${row.id}`,
536
- rect,
537
- fill: row.state ? { token: "inkMuted" } : row.listed ? row.value === null ? input.scale.legend.find((item) => item.id === "no-data")?.paint ?? { token: "neutral" } : input.scale.paint(row.value) : { token: "background" },
538
- ...row.state ? { pattern: geoStatePattern(row.state) } : row.listed && row.value === null ? { pattern: "hatch45" } : {},
539
- stroke: { token: "leader" },
540
- strokeWidth: strokeToken(theme, "hair"),
541
- owner: { categoryId: row.id },
542
- part: "smallMemberSwatch"
543
- }), occupied.claim(rect, "legend", { categoryId: row.id }, "smallMemberSwatch");
555
+ let left = x + column * (colW + columnGap), top = y + headerH + rowIndex * rowH + (gap && rowIndex >= groupN ? gap : 0);
556
+ if (swatchDrawn) {
557
+ let rect = { x: alignedIn(left, swatchW - SWATCH_GAP, SWATCH, overrides?.swatch?.align, "left"), y: top + (rowH - SWATCH) / 2, w: SWATCH, h: SWATCH };
558
+ nodes.push({
559
+ t: "rect",
560
+ id: `value-table-swatch:${row.id}`,
561
+ rect,
562
+ fill: row.state ? { token: "inkMuted" } : row.listed ? row.value === null ? input.scale.legend.find((item) => item.id === "no-data")?.paint ?? { token: "neutral" } : input.scale.paint(row.value) : { token: "background" },
563
+ ...row.state ? { pattern: geoStatePattern(row.state) } : row.listed && row.value === null ? { pattern: "hatch45" } : {},
564
+ stroke: { token: "leader" },
565
+ strokeWidth: strokeToken(theme, "hair"),
566
+ owner: { categoryId: row.id },
567
+ part: "smallMemberSwatch"
568
+ }), occupied.claim(rect, "legend", { categoryId: row.id }, "smallMemberSwatch");
569
+ }
544
570
  let f = fontOf(row.id);
545
- text(`value-table-code:${row.id}`, row.code, f, left + SWATCH + SWATCH_GAP, top, "category", row.id), text(`value-table-value:${row.id}`, row.text, f, left + colW - measure(row.text, f).width, top, "point", row.id);
571
+ if (text(`value-table-code:${row.id}`, row.code, f, alignedIn(left + swatchW, codeW, measure(row.code, f).width, overrides?.code?.align, "left"), top, "category", row.id), valueDrawn) {
572
+ let valueTextW = measure(row.text, f).width;
573
+ text(`value-table-value:${row.id}`, row.text, f, overrides?.value?.align === void 0 ? left + colW - valueTextW : alignedIn(left + colW - valueW, valueW, valueTextW, overrides.value.align, "right"), top, "point", row.id);
574
+ }
546
575
  });
547
576
  let solved = solveLabels(requests, occupied, solveCtx), fontById = new Map(requests.map((request) => [request.id, request.font]));
548
577
  pushAll(nodes, labelsToNodes(theme, solved.placed, (label) => fontById.get(label.id) ?? regular));
549
578
  let block = { x, y, ...size(perColumn, width, full) };
550
579
  return occupied.claim({ x: block.x, y: block.y, w: block.w, h: block.h }, "reserved", {}, "smallMembers"), { nodes, placed: solved.placed, decisions: solved.decisions, warnings: solved.warnings, rect: { x: block.x, y: block.y, w: block.w, h: block.h } };
551
580
  };
552
- return { rowCount: rows.length, rowH, headerH, columnW, size, rowsIn, rowsAcross, columnsIn, draw };
581
+ return { rowCount: rows.length, rowH, headerH, columnW, widthCapped, widthFloored, size, rowsIn, rowsAcross, columnsIn, draw };
553
582
  }
554
583
 
555
584
  // src/core/charts/choropleth/outsideLabels.ts
@@ -688,8 +717,35 @@ var MAP_PAD = 8, WIDE_SLOT = 1.6, US_MAP_PAD_Y = 6, LEADER_GUTTER = 92, LEADER_G
688
717
  function defaultRegionValues(pack, size, autoLabelled, tableDrawn) {
689
718
  return !tableDrawn && autoLabelled > 0 && (autoLabelled <= REGION_VALUES_DEFAULT_MAX || pack.id !== "world" && size.width >= REGION_VALUES_MIN_WIDTH && size.width * size.height / autoLabelled >= REGION_VALUES_MIN_AREA_PER_LABEL);
690
719
  }
691
- function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__PURE__ */ new Map(), omittedOverlays = /* @__PURE__ */ new Set()) {
692
- let warnings = geoOptionRefusals(options, "choropleth"), pack = getGeoPack(data.pack), idIndex = geoRegionIdIndex(pack.regions), canonicalIds = idIndex.canonical, { valuesById, statesById, leftOut } = ingestGeoRegions(data.regions, idIndex, { where: `pack '${pack.id}'`, regionWord: "pack region" }, warnings, (id, index) => {
720
+ var renamedPacks = /* @__PURE__ */ new WeakMap();
721
+ function packWithRowNames(pack, overrides, index) {
722
+ if (!overrides) return pack;
723
+ let known = renamedPacks.get(overrides);
724
+ if (known?.id === pack.id) return known;
725
+ let names = new Map(Object.entries(overrides).flatMap(([id, override]) => {
726
+ let resolved = resolveGeoRegionId(index, id);
727
+ return resolved.kind === "resolved" && override.label ? [[resolved.id, override.label]] : [];
728
+ })), renamed = { ...pack, regions: pack.regions.map((region) => {
729
+ let name = names.get(region.id);
730
+ return name === void 0 ? region : { ...region, anchor: { ...region.anchor, name, shortName: name, authored: !0 } };
731
+ }) };
732
+ return renamedPacks.set(overrides, renamed), renamed;
733
+ }
734
+ function layoutChoropleth(data, options = {}) {
735
+ if (options.columnOverrides === void 0) return layoutMapPass(data, options);
736
+ let pinned = options[TARGET_SIZE]?.fixed.height ?? !heightOmitted(options.size), drawn = widthsThatFit(options, (next) => layoutMapPass(data, next), pinned), { label, ...valueTrack } = options.columnOverrides.value ?? {};
737
+ if (label === void 0 || fitsRoom(drawn, pinned)) return drawn;
738
+ let plain = widthsThatFit({ ...options, columnOverrides: { ...options.columnOverrides, value: valueTrack } }, (next) => layoutMapPass(data, next), pinned);
739
+ return fitsRoom(plain, pinned) ? { ...plain, warnings: [...plain.warnings, {
740
+ code: "option-ignored",
741
+ severity: "warn",
742
+ field: ["options", "columnOverrides", "value", "label"],
743
+ message: "the value head needs more height than this chart has, so it does not print",
744
+ suggest: "Give the chart more height, or remove the label."
745
+ }] } : drawn;
746
+ }
747
+ function layoutMapPass(data, options, listed, pass = 0, passes = /* @__PURE__ */ new Map(), omittedOverlays = /* @__PURE__ */ new Set()) {
748
+ let warnings = geoOptionRefusals(options, "choropleth"), sourcePack = getGeoPack(data.pack), idIndex = geoRegionIdIndex(sourcePack.regions), pack = packWithRowNames(sourcePack, options.rowOverrides, idIndex), canonicalIds = idIndex.canonical, { valuesById, statesById, leftOut } = ingestGeoRegions(data.regions, idIndex, { where: `pack '${pack.id}'`, regionWord: "pack region" }, warnings, (id, index) => {
693
749
  let suggestion = nearestRegionId(id, [...canonicalIds.keys()], canonicalIds);
694
750
  return {
695
751
  code: "choropleth-unknown-region",
@@ -741,11 +797,11 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
741
797
  });
742
798
  let hasNoDataRegion = pack.regions.some(
743
799
  (region) => valuesById.has(region.id) && valuesById.get(region.id) === null && !statesById.has(region.id)
744
- ), scale = buildGeoScale(numericValues, options, fmt, hasNoDataRegion, theme, { token: "background" });
800
+ ), scale = buildGeoScale(numericValues, options, fmt, hasNoDataRegion, theme, { token: "background" }), keyScale = unitMagnitude(options.unit) === void 0;
745
801
  scale.edgeFmt = options.format !== void 0 ? scale.edgeFmt : (value) => {
746
- let magnitude = Math.abs(value) >= 1e9 ? 1e9 : Math.abs(value) >= 1e6 ? 1e6 : Math.abs(value) >= 1e3 ? 1e3 : 1, scaled = value / magnitude, decimals = 0;
802
+ let magnitude = keyScale ? Math.abs(value) >= 1e9 ? 1e9 : Math.abs(value) >= 1e6 ? 1e6 : Math.abs(value) >= 1e3 ? 1e3 : 1 : 1, scaled = value / magnitude, decimals = 0;
747
803
  for (; decimals < 6 && !(Math.abs(Math.round(scaled * 10 ** decimals) - scaled * 10 ** decimals) < 1e-6); ) decimals++;
748
- return formatAutomaticNumber(value, { locale: options.locale?.language, magnitude: "auto", decimals });
804
+ return formatAutomaticNumber(value, { locale: options.locale?.language, magnitude: keyScale ? "auto" : "none", decimals });
749
805
  };
750
806
  let visibleStates = pack.regions.filter((region) => region.polygons.length > 0 || visibleMarkerIds.has(region.id)).flatMap((region) => statesById.has(region.id) ? [statesById.get(region.id)] : []);
751
807
  pushAll(scale.legend, geoStateLegend(visibleStates, options));
@@ -786,9 +842,21 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
786
842
  measure,
787
843
  plot: frameResult.plot,
788
844
  labelPad: 0
789
- }), tableMode = options.valueTable ?? "auto", tableIds = pack.regions.filter((region) => valuesById.has(region.id) && (region.polygons.length > 0 || visibleMarkerIds.has(region.id))).map((region) => region.id), ranks = valueRanks(valuesById), topIds = new Set([...ranks].filter(([, rank]) => tableIds.length >= 4 && rank < Math.min(5, Math.ceil(tableIds.length / 4))).map(([id]) => id)), table = tableMode !== !1 && tableIds.length > 0 && (tableMode !== "auto" || tableIds.length <= VALUE_TABLE_MAX_ROWS && numericValues.length > 0) ? valueTable({
845
+ }), tableMode = options.valueTable ?? "auto", tableIds = pack.regions.filter((region) => valuesById.has(region.id) && (region.polygons.length > 0 || visibleMarkerIds.has(region.id))).map((region) => region.id), ranks = valueRanks(valuesById), topIds = new Set([...ranks].filter(([, rank]) => tableIds.length >= 4 && rank < Math.min(5, Math.ceil(tableIds.length / 4))).map(([id]) => id)), canonicalRow = (id) => {
846
+ let resolved = resolveGeoRegionId(idIndex, id);
847
+ return resolved.kind === "resolved" ? resolved.id : void 0;
848
+ }, hiddenRows = new Set(Object.entries(options.rowVisibility ?? {}).flatMap(([id, shown]) => shown === !1 ? [canonicalRow(id) ?? id] : [])), drawnIds = hiddenRows.size > 0 ? tableIds.filter((id) => !hiddenRows.has(id)) : tableIds, boldIds = options.valueTableEmphasis === !1 ? /* @__PURE__ */ new Set() : hiddenRows.size > 0 ? new Set([...topIds].filter((id) => !hiddenRows.has(id))) : topIds, mapEmphasis = options.valueTableEmphasis === !1 ? boldIds : topIds, lookupColumns = options.columnVisibility || options.columnOverrides ? { swatch: options.columnVisibility?.swatch, value: options.columnVisibility?.value, ...options.columnOverrides ? { overrides: options.columnOverrides } : {} } : void 0, sideTableColumns = Math.ceil(drawnIds.length / SIDE_ROWS), forcedSideColumnW = tableMode === "side" ? (frameResult.plot.w * (1 - SIDE_MIN_SHARE) - (sideTableColumns - 1) * TABLE_GAP) / sideTableColumns : void 0;
849
+ options.valueTable === "auto" && drawnIds.length > VALUE_TABLE_MAX_ROWS && numericValues.length > 0 && warnings.push({
850
+ code: "option-ignored",
851
+ severity: "warn",
852
+ field: ["options", "valueTable"],
853
+ message: `options.valueTable 'auto' has no effect on choropleth with more than ${VALUE_TABLE_MAX_ROWS} regions and is ignored. This map has ${drawnIds.length}, so it draws no value table.`,
854
+ suggest: "Set valueTable to 'below' or 'side' to draw the table, or remove valueTable.",
855
+ fix: [{ op: "remove", path: "/options/valueTable" }]
856
+ });
857
+ let table = tableMode !== !1 && drawnIds.length > 0 && (tableMode !== "auto" || drawnIds.length <= VALUE_TABLE_MAX_ROWS && numericValues.length > 0) ? valueTable({
790
858
  options,
791
- ids: tableIds,
859
+ ids: drawnIds,
792
860
  pack,
793
861
  values: valuesById,
794
862
  states: statesById,
@@ -796,9 +864,11 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
796
864
  fmt,
797
865
  theme,
798
866
  measure,
867
+ ...options.rowOrder ? { rowOrder: options.rowOrder.flatMap((id) => canonicalRow(id) ?? []) } : {},
868
+ ...lookupColumns ? { columns: lookupColumns, maxColumnW: forcedSideColumnW ?? frameResult.plot.w } : {},
799
869
  unit: compactCard && unitPrinted({ subtitle: resolveSubtitle(options.subtitle), unit: options.unit, unitShown: options.unitShown }) ? void 0 : options.unit,
800
870
  compact: compactCard,
801
- bold: topIds
871
+ bold: boldIds
802
872
  }) : void 0, baseSmallIds = table ? /* @__PURE__ */ new Set() : smallRegionIds(pack, labelPolicy.eligibleIds, explicitLabelIds, options), smallIds = /* @__PURE__ */ new Set([...baseSmallIds, ...table ? [] : listed ?? []]), keyTitle = options.keyTitle, named = options.legend !== void 0 && options.legend !== "auto" || theme.legend?.required !== void 0, plot0 = frameResult.plot, yPad = pack.id === "us-states" ? US_MAP_PAD_Y : MAP_PAD, packAspect = (pack.bounds[3] - pack.bounds[1]) / (pack.bounds[2] - pack.bounds[0]), sideCapH = Math.min(MAP_MAX_HEIGHT * size.width, SIDE_MAP_MAX_PX), sideNaturalW = table ? Math.max(SIDE_KEY_MIN_W, table.size(Math.ceil(table.rowCount / Math.ceil(table.rowCount / SIDE_ROWS))).w) : 0, sideMapW = Math.min(plot0.w - tableGap - sideNaturalW, sideCapH / packAspect + 2 * MAP_PAD), sideBlockW = plot0.w - sideMapW - tableGap, sideMaxColumns = table ? table.columnsIn(sideBlockW) : 0, sideColumns = table ? Math.min(sideMaxColumns, Math.ceil(table.rowCount / SIDE_ROWS)) : 0, sideWanted = table !== void 0 && !named && tableMode !== "below" && sideColumns >= 1 && (tableMode === "side" || sideMapW >= SIDE_MIN_MAP_W), keyBase = {
803
873
  options,
804
874
  target: options.target,
@@ -885,8 +955,8 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
885
955
  (tableMode === "below" || !pinnedHeight || area.h - block.h - tableGap >= minMapHeight) && (naturalAreaH = naturalMapH(area.w, stackedShare) + tableGap + block.h, mapArea = { ...area, h: Math.max(10, Math.min(area.h - block.h - tableGap, naturalMapH(area.w, stackedShare))) }, tablePlace = { x: area.x + Math.max(0, (area.w - block.w) / 2), y: area.y + mapArea.h + tableGap, perColumn, width: area.w });
886
956
  }
887
957
  if (table && !tablePlace && tableMode === "auto") {
888
- let fallback = layoutChoropleth(data, { ...options, valueTable: !1 }, listed, pass, /* @__PURE__ */ new Map(), omittedOverlays), valueLost = (geometry2) => geometry2.labels.some((label) => label.kind === "category" && label.hidden && label.hidden !== "redundant" && valuesById.get(label.owner.categoryId) != null && !geometry2.labels.some((cell) => cell.id === `small-member-value:${label.owner.categoryId}` && !cell.hidden));
889
- return !fallback.refused && (fallback.sizing?.minHeight ?? 0) <= size.height && (fallback.sizing?.minWidth ?? 0) <= size.width && !valueLost(fallback) ? fallback : layoutChoropleth(data, { ...options, valueTable: "below" }, listed, pass, /* @__PURE__ */ new Map(), omittedOverlays);
958
+ let fallback = layoutMapPass(data, { ...options, valueTable: !1 }, listed, pass, /* @__PURE__ */ new Map(), omittedOverlays), valueLost = (geometry2) => geometry2.labels.some((label) => label.kind === "category" && label.hidden && label.hidden !== "redundant" && valuesById.get(label.owner.categoryId) != null && !geometry2.labels.some((cell) => cell.id === `small-member-value:${label.owner.categoryId}` && !cell.hidden));
959
+ return !fallback.refused && (fallback.sizing?.minHeight ?? 0) <= size.height && (fallback.sizing?.minWidth ?? 0) <= size.width && !valueLost(fallback) ? fallback : layoutMapPass(data, { ...options, valueTable: "below" }, listed, pass, /* @__PURE__ */ new Map(), omittedOverlays);
890
960
  }
891
961
  table && !tablePlace && (mapArea = { ...area, h: Math.min(area.h, naturalMapH(area.w)) });
892
962
  let tableDrawn = table && tablePlace ? table.draw(tablePlace.x, tablePlace.y, tablePlace.perColumn, occupied, solveCtx, tablePlace.width, tablePlace.full) : void 0, mapCtx = { ...solveCtx, plot: { ...solveCtx.plot, h: mapArea.y + mapArea.h - solveCtx.plot.y } }, naturalHeight = Math.ceil(size.height - area.h + naturalAreaH - 1e-6), mapLabels = {
@@ -895,7 +965,36 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
895
965
  leaderIds: new Set([...labelPolicy.leaderIds].filter((id) => !smallIds.has(id)))
896
966
  };
897
967
  smallIds.size && mapLabels.eligibleIds.size === 0 && (minMapHeight = Math.min(minMapHeight, 2 * (compactPadding ?? MAP_PAD) + 2 * theme.type.label.size)), tableDrawn && mapArea.h < MIN_MAP_AREA_H + theme.type.label.size * 6 && (mapLabels.eligibleIds.clear(), mapLabels.leaderIds.clear(), minMapHeight = Math.min(minMapHeight, 2 * (compactPadding ?? MAP_PAD) + 2 * theme.type.label.size));
898
- let autoLabelled = [...labelPolicy.eligibleIds].filter((id) => !baseSmallIds.has(id)).length, regionValues = options.regionValues ?? defaultRegionValues(pack, size, autoLabelled, !!tableDrawn), withTable = tableDrawn ? { emphasis: topIds } : void 0, valueTexts = new Map(regionValues ? [...valuesById].flatMap(([id, value]) => value === null ? [] : [[id, fmt(value)]]) : []), plot = frameResult.plot, laneSpan = !tableDrawn && small.position !== "right" && small.position !== "left" && small.blocks.x + small.blocks.w <= plot.x + plot.w - LEADER_GUTTER ? { y: plot.y, h: mapArea.y + mapArea.h - plot.y } : { y: mapArea.y, h: mapArea.h }, keyArea = { x: small.blocks.x - MAP_GAP, y: small.blocks.y - MAP_GAP, w: small.blocks.w + 2 * MAP_GAP, h: small.blocks.h + 2 * MAP_GAP }, underKey = (candidate) => candidate.fitted.regions.some((region) => region.polygons.some((polygon) => polygon.some((ring) => ring.some(([x, y]) => pointInRect(x, y, keyArea)))) || region.marker !== void 0 && pointInRect(region.marker.x, region.marker.y, keyArea)), reserved = mapArea.y - plot.y, prepared;
968
+ let autoLabelled = [...labelPolicy.eligibleIds].filter((id) => !baseSmallIds.has(id)).length, regionValues = options.regionValues ?? defaultRegionValues(pack, size, autoLabelled, !!tableDrawn), withTable = tableDrawn ? { emphasis: mapEmphasis } : void 0, rowsDrawn = (authored) => authored === void 0 ? [] : tableDrawn ? (Array.isArray(authored) ? authored : Object.keys(authored)).filter((id) => {
969
+ let canonical = canonicalRow(id);
970
+ return canonical !== void 0 && tableIds.includes(canonical);
971
+ }) : [], columnsDrawn = tableDrawn ? [...options.columnVisibility?.swatch !== !1 ? ["swatch"] : [], "code", ...options.columnVisibility?.value !== !1 ? ["value"] : []] : [];
972
+ warnings.push(
973
+ ...generatedIdWarnings("choropleth", "columnVisibility", options.columnVisibility, tableDrawn ? ["swatch", "code", "value"] : []),
974
+ ...generatedIdWarnings("choropleth", "columnOverrides", options.columnOverrides, columnsDrawn),
975
+ ...generatedIdWarnings("choropleth", "rowVisibility", options.rowVisibility, rowsDrawn(options.rowVisibility)),
976
+ ...generatedIdWarnings("choropleth", "rowOrder", options.rowOrder, rowsDrawn(options.rowOrder)),
977
+ ...generatedIdWarnings("choropleth", "rowOverrides", options.rowOverrides, Object.keys(options.rowOverrides ?? {}).filter((id) => canonicalRow(id) !== void 0))
978
+ ), table?.widthFloored && warnings.push({
979
+ code: "generated-column-width-floored",
980
+ severity: "warn",
981
+ field: ["options", "columnOverrides"],
982
+ message: "an authored lookup column width is narrower than its text, so it was raised",
983
+ suggest: "Use a larger width, or leave the width out."
984
+ }), table?.widthCapped && warnings.push({
985
+ code: "generated-column-width-capped",
986
+ severity: "warn",
987
+ field: ["options", "columnOverrides"],
988
+ message: `the authored lookup column widths do not fit the ${Math.round(frameResult.plot.w)} px plot, so they were reduced`,
989
+ suggest: "Use smaller widths, or give the chart more width."
990
+ }), tableDrawn && (options.columnVisibility?.value === !1 || drawnIds.length < tableIds.length) && warnings.push({
991
+ code: "choropleth-lookup-partial",
992
+ severity: "warn",
993
+ field: ["options", options.columnVisibility?.value === !1 ? "columnVisibility" : "rowVisibility"],
994
+ message: options.columnVisibility?.value === !1 ? "the lookup prints no values, so the map colours are the only print of them" : "a hidden lookup row leaves its map code without a name or a printed value",
995
+ suggest: "Keep the column or the rows, or name the regions in the text around the map."
996
+ });
997
+ let valueTexts = new Map(regionValues ? [...valuesById].flatMap(([id, value]) => value === null ? [] : [[id, fmt(value)]]) : []), plot = frameResult.plot, laneSpan = !tableDrawn && small.position !== "right" && small.position !== "left" && small.blocks.x + small.blocks.w <= plot.x + plot.w - LEADER_GUTTER ? { y: plot.y, h: mapArea.y + mapArea.h - plot.y } : { y: mapArea.y, h: mapArea.h }, keyArea = { x: small.blocks.x - MAP_GAP, y: small.blocks.y - MAP_GAP, w: small.blocks.w + 2 * MAP_GAP, h: small.blocks.h + 2 * MAP_GAP }, underKey = (candidate) => candidate.fitted.regions.some((region) => region.polygons.some((polygon) => polygon.some((ring) => ring.some(([x, y]) => pointInRect(x, y, keyArea)))) || region.marker !== void 0 && pointInRect(region.marker.x, region.marker.y, keyArea)), reserved = mapArea.y - plot.y, prepared;
899
998
  if (small.position === "top" && reserved > 0)
900
999
  for (let share of [0, 0.25, 0.5, 0.75]) {
901
1000
  let top = plot.y + share * reserved, rect = { ...mapArea, y: top, h: mapArea.y + mapArea.h - top }, padding = mapLabels.eligibleIds.size ? void 0 : compactPadding;
@@ -907,12 +1006,12 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
907
1006
  }
908
1007
  }
909
1008
  let { labelLayout, mapFrame, fitted, leaderLanes, outsideFits } = prepared ?? prepareMapLayout(pack, mapArea, laneSpan, occupied, valuesById, mapLabels, visibleMarkerIds, theme, measure, mapCtx, valueTexts, mapLabels.eligibleIds.size ? void 0 : compactPadding, withTable), grow = rowDrivenHeight({ options, width: size.width, height: size.height, chromeH: 0, rowsH: naturalHeight });
910
- if (grow !== void 0) return layoutChoropleth(data, { ...options, size: { width: size.width, height: grow } }, listed, pass, passes, omittedOverlays);
1009
+ if (grow !== void 0) return layoutMapPass(data, { ...options, size: { width: size.width, height: grow } }, listed, pass, passes, omittedOverlays);
911
1010
  let glyphDiscs = [], nextOmitted = new Set(omittedOverlays), heightReady = options[TARGET_SIZE]?.fixed.height !== !1 || size.height >= naturalHeight - 2;
912
1011
  if (overlays.forEach((overlay, index) => {
913
1012
  let anchor = resolveChoroplethOverlayAnchor(overlay, index, fitted, idIndex, pack), radius = geoOverlayDiameter(overlay) / 2 * (overlay.glyph.kind === "marker" && overlay.glyph.shape === "square" ? Math.SQRT2 : 1);
914
1013
  !geoOverlayInFrame(anchor, mapFrame) || heightReady && glyphDiscs.some((prior) => Math.hypot(anchor.x - prior.x, anchor.y - prior.y) < radius + prior.radius) ? nextOmitted.add(overlay.id) : glyphDiscs.push({ ...anchor, radius });
915
- }), nextOmitted.size > omittedOverlays.size) return layoutChoropleth(data, options, listed, pass, /* @__PURE__ */ new Map(), nextOmitted);
1014
+ }), nextOmitted.size > omittedOverlays.size) return layoutMapPass(data, options, listed, pass, /* @__PURE__ */ new Map(), nextOmitted);
916
1015
  let nodes = [...frameResult.nodes], regionStroke = strokeToken(theme, "hair");
917
1016
  pushAll(warnings, small.warnings);
918
1017
  let marks = { regions: [], boundaries: [] }, labelPlans = [], chipOnlyNoData = [], undrawnUnlisted = 0, landStart = nodes.length, landNodes = [];
@@ -1103,9 +1202,9 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
1103
1202
  if ((geometry.sizing?.minHeight ?? 0) > size.height + 1) return geometry;
1104
1203
  for (let move of [[...lost, ...far], lost, lost.length ? [...labelPolicy.eligibleIds] : []]) {
1105
1204
  if (!move.length) continue;
1106
- let ids = /* @__PURE__ */ new Set([...listed ?? [], ...move]), key = `${pass + 1}:${[...ids].sort().join(",")}`, next = passes.get(key) ?? layoutChoropleth(data, options, ids, pass + 1, passes, omittedOverlays), height = Math.ceil(Math.max(next.sizing?.minHeight ?? 0, next.sizing?.naturalHeight ?? 0));
1205
+ let ids = /* @__PURE__ */ new Set([...listed ?? [], ...move]), key = `${pass + 1}:${[...ids].sort().join(",")}`, next = passes.get(key) ?? layoutMapPass(data, options, ids, pass + 1, passes, omittedOverlays), height = Math.ceil(Math.max(next.sizing?.minHeight ?? 0, next.sizing?.naturalHeight ?? 0));
1107
1206
  if (options[TARGET_SIZE]?.fixed.height === !1 && height > next.size.height && height <= 1400) {
1108
- let taller = layoutChoropleth(data, { ...options, size: { width: size.width, height } }, ids, pass + 1, /* @__PURE__ */ new Map(), omittedOverlays);
1207
+ let taller = layoutMapPass(data, { ...options, size: { width: size.width, height } }, ids, pass + 1, /* @__PURE__ */ new Map(), omittedOverlays);
1109
1208
  hidden(taller) < hidden(geometry) && (next = taller);
1110
1209
  }
1111
1210
  if (passes.set(key, next), !next.labels.some((label) => label.hidden && label.slot === "smallMember") && // A longer list must not widen a side key past the width floor.
@@ -1447,7 +1546,9 @@ function resolveLabelRegionIds(requested, idIndex, pack) {
1447
1546
  "choropleth-ambiguous-region",
1448
1547
  `labelRegions[${index}]`,
1449
1548
  `region '${id}' is ambiguous in pack '${pack.id}' \u2014 ${resolution.candidates.join(", ")} all answer to it`,
1450
- `use one of ${resolution.candidates.join(", ")}`
1549
+ `use one of ${resolution.candidates.join(", ")}`,
1550
+ void 0,
1551
+ ["options", "labelRegions", index]
1451
1552
  );
1452
1553
  if (resolution.kind === "unknown") {
1453
1554
  let suggestion = nearestRegionId(id, [...canonicalIds.keys()], canonicalIds);
@@ -1455,7 +1556,9 @@ function resolveLabelRegionIds(requested, idIndex, pack) {
1455
1556
  "choropleth-unknown-region",
1456
1557
  `labelRegions[${index}]`,
1457
1558
  `region '${id}' is not present in pack '${pack.id}'`,
1458
- suggestion ? `did you mean '${suggestion}'?` : void 0
1559
+ suggestion ? `did you mean '${suggestion}'?` : void 0,
1560
+ void 0,
1561
+ ["options", "labelRegions", index]
1459
1562
  );
1460
1563
  }
1461
1564
  resolved.add(resolution.id);
@@ -2155,15 +2258,6 @@ function boundsOfPolygons(polygons) {
2155
2258
  let bounds = [minX, minY, maxX, maxY];
2156
2259
  return regionBounds.set(polygons, bounds), bounds;
2157
2260
  }
2158
- function nearestRegionId(input, candidates, canonical) {
2159
- let best;
2160
- for (let candidate of candidates) {
2161
- let distance = levenshtein(input.toUpperCase(), candidate.toUpperCase());
2162
- (!best || distance < best.distance || distance === best.distance && candidate < best.id) && (best = { id: candidate, distance });
2163
- }
2164
- if (!(!best || best.distance > Math.max(2, Math.floor(input.length / 2))))
2165
- return canonical.get(best.id);
2166
- }
2167
2261
  function pointInRect(x, y, rect) {
2168
2262
  return x >= rect.x && x <= rect.x + rect.w && y >= rect.y && y <= rect.y + rect.h;
2169
2263
  }
@@ -0,0 +1,24 @@
1
+ import {
2
+ sharedKeys10,
3
+ sharedKeys5,
4
+ sharedKeys9
5
+ } from "./chunk-7BQK2UDV.js";
6
+ import {
7
+ optionKeyCheck
8
+ } from "./chunk-Z6H5ED2I.js";
9
+ import {
10
+ createChartComponent
11
+ } from "./chunk-5SLBD4BT.js";
12
+ import {
13
+ scatterCore
14
+ } from "./chunk-NQVJ4FPY.js";
15
+ import {
16
+ registeredType
17
+ } from "./chunk-2QI2PK2O.js";
18
+
19
+ // src/react/charts/scatter.ts
20
+ var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labels: { value: 0, "*": 0 }, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: { show: 0, min: 0, max: 0, tickStep: 0, includeZero: 0, percent: 0, log: 0, reverse: 0, gridlines: 0, clamp: { min: 0, max: 0, x: { min: 0, max: 0 }, y: { min: 0, max: 0 } } }, scaleGroup: { y: 0, id: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, annotations: sharedKeys9, viewDomain: { x: 0, y: 0 }, axisTitles: { x: 0, y: 0 }, axisFormat: { x: 0, y: 0 }, minCount: 0, sizeBy: 0, maxPointLabels: 0, quadrants: { x: { stat: 0 }, y: { stat: 0 }, labels: { tl: 0, tr: 0, bl: 0, br: 0 }, tint: 0, captionPlacement: 0, axisNames: { x: 0, y: 0 } }, zones: { grid: { x: 0, y: 0, cells: { "[]": { id: 0, column: 0, row: 0, label: 0, tone: 0, labelAt: 0, a11y: 0 } }, xLabels: 0, yLabels: 0 }, regions: { "[]": { id: 0, points: { "[]": { x: 0, y: 0 } }, smooth: 0, label: 0, tone: 0, labelAt: 0, a11y: 0 } } }, trend: { groups: 0, label: 0 }, frontier: { x: 0, y: 0, label: 0, extend: 0, groups: 0 }, sizeLegend: { values: 0, label: 0 }, qualitativeAxes: 0, methodNote: 0 }, labels: ["point", "value"] }), ScatterChart = createChartComponent(registeredType(scatterCore), checkOptionKeys);
21
+
22
+ export {
23
+ ScatterChart
24
+ };
@@ -0,0 +1,72 @@
1
+ import {
2
+ rectContains
3
+ } from "./chunk-TX5FSNAU.js";
4
+ import {
5
+ NormalizeError
6
+ } from "./chunk-RJICOOB3.js";
7
+
8
+ // src/core/charts/band/labelPosition.ts
9
+ function hasLabelPosition(options) {
10
+ return options.labelPosition !== void 0 && options.labelPosition !== "auto";
11
+ }
12
+ function refuseLabelPosition(options, variant, accepted) {
13
+ if (!(!hasLabelPosition(options) || accepted.includes(options.labelPosition)))
14
+ throw new NormalizeError(
15
+ "label-position-unsupported",
16
+ "options.labelPosition",
17
+ `${variant} does not support labelPosition '${options.labelPosition}'`,
18
+ `Use labelPosition ${["auto", ...accepted].map((value) => `'${value}'`).join(", ")}.`,
19
+ void 0,
20
+ ["options", "labelPosition"]
21
+ );
22
+ }
23
+ function positionBarLabel(request, options, bar) {
24
+ let position = options.labelPosition;
25
+ if (position === void 0 || position === "auto" || options.labelPlacements?.[request.id] || request.pinnedSlot) return request;
26
+ let { rect, size: { width: w, height: h }, orientation, endPositive, fallback, muted } = bar, vertical = orientation === "vertical", gap = bar.edgeGap ?? 4, outsideGap = bar.outsideGap ?? 4, center = { x: rect.x + (rect.w - w) / 2, y: rect.y + (rect.h - h) / 2, w, h }, inside = (at) => {
27
+ if (muted || bar.zero || w + 8 > rect.w || h + (vertical && at !== "center" ? 4 : 2) > rect.h) return [];
28
+ let positive = at === "insideBase" ? !endPositive : endPositive, seat = at === "center" ? center : vertical ? { ...center, y: positive ? rect.y + gap : rect.y + rect.h - h - gap } : { ...center, x: positive ? rect.x + rect.w - w - gap : rect.x + gap };
29
+ if (!rectContains(rect, seat)) return [];
30
+ let paint = bar.paints ? bar.paints.find((paint2) => rectContains(paint2.rect, seat)) : bar;
31
+ return paint ? [{
32
+ slot: at === "center" ? "insideBarCenter" : at === "insideEnd" ? "insideBarEnd" : "insideBarBase",
33
+ rect: seat,
34
+ penalty: 0,
35
+ // The fit check already leaves air inside the bar; extra padding would reject its base line.
36
+ pad: 0,
37
+ insideFill: paint.insideFill,
38
+ insidePaint: paint.insidePaint,
39
+ insidePattern: paint.insidePattern
40
+ }] : [];
41
+ }, outside = (positive) => ({
42
+ slot: vertical ? positive ? "outsideBarTop" : "outsideBarBottom" : positive ? "outsideBarRight" : "outsideBarLeft",
43
+ rect: vertical ? { ...center, y: positive ? rect.y - h - outsideGap : rect.y + rect.h + outsideGap } : { ...center, x: positive ? rect.x + rect.w + outsideGap : rect.x - w - outsideGap },
44
+ penalty: 0
45
+ }), asked = position === "outsideEnd" ? [outside(endPositive)] : inside(position), next = fallback === "bridge" ? [outside(!0), outside(!1)] : fallback === "inside" || fallback === "stack" && !bar.zero ? [] : [outside(endPositive)], old = request.candidates.flatMap((candidate) => {
46
+ if (!candidate.slot.startsWith("inside")) return [candidate];
47
+ if (muted || bar.zero) return [];
48
+ if (fallback === "stack") return [candidate];
49
+ let heightRoom = vertical && !/Center/.test(candidate.slot) ? 4 : 2;
50
+ if (w + 8 > rect.w || h + heightRoom > rect.h || !rectContains(rect, candidate.rect)) return [];
51
+ let paint = bar.paints ? bar.paints.find((paint2) => rectContains(paint2.rect, candidate.rect)) : bar;
52
+ return paint ? [{
53
+ ...candidate,
54
+ needsBacking: !1,
55
+ insideFill: paint.insideFill,
56
+ insidePaint: paint.insidePaint,
57
+ insidePattern: paint.insidePattern
58
+ }] : [];
59
+ }), others = ["center", "insideEnd", "insideBase"].filter((at) => at !== position).flatMap(inside), clear = [
60
+ ...asked,
61
+ ...next.map((candidate, i) => ({ ...candidate, penalty: i + 1 })),
62
+ ...old.map((candidate) => ({ ...candidate, penalty: candidate.penalty + next.length + 2 })),
63
+ ...others.map((candidate) => ({ ...candidate, penalty: next.length + 40 }))
64
+ ].map((candidate) => ({ ...candidate, keepOffLines: !0, overRules: !1, overValueLines: !1 }));
65
+ return { ...request, candidates: [...clear, ...request.candidates.map((candidate) => ({ ...candidate, penalty: candidate.penalty + next.length + 80 }))] };
66
+ }
67
+
68
+ export {
69
+ hasLabelPosition,
70
+ refuseLabelPosition,
71
+ positionBarLabel
72
+ };
@@ -0,0 +1,13 @@
1
+ // src/react/optionKeyTrees.ts
2
+ var sharedKeys0 = { show: 0, min: 0, max: 0, tickStep: 0, includeZero: 0, percent: 0, gridlines: 0 }, sharedKeys1 = { placement: 0, rows: 0, groups: { "[]": { id: 0, label: 0, tone: 0, glyph: 0 } }, keyTitle: 0 }, sharedKeys2 = { id: 0, label: 0, numeratorSeriesId: 0, denominatorSeriesId: 0, at: 0, format: 0, direction: 0 }, sharedKeys3 = { seriesId: 0, categoryId: 0, segmentId: 0, pointId: 0, valueLineId: 0, annotationId: 0, rowId: 0, colId: 0 }, sharedKeys4 = { show: 0, min: 0, max: 0, tickStep: 0, includeZero: 0, percent: 0, gridlines: 0, break: { from: 0, to: 0, style: 0 } }, sharedKeys5 = { owner: sharedKeys3 }, sharedKeys6 = { type: 0, scale: 0, cap: { pct: 0, abs: 0 }, alpha: 0, excludeTotals: 0, steps: 0, bins: 0, span: 0, center: 0, tolerance: { pct: 0, abs: 0 }, columns: 0 }, sharedKeys7 = { "*": sharedKeys6 }, sharedKeys8 = { kind: 0, id: 0, text: 0, format: 0, priority: 0, icon: 0, status: 0, shape: 0, "*": 0, from: 0, to: 0, label: 0, tone: 0, style: 0, divider: 0, low: 0, high: 0, value: 0, seriesId: 0, scenario: 0, direction: 0 }, sharedKeys9 = { "[]": sharedKeys8 }, sharedKeys10 = { newItems: 0, lostItems: 0, cohortMeasure: 0, cohortFormula: 0, others: 0, total: 0, source: 0, notApplicable: 0, partial: 0, better: 0, worse: 0, positiveTotal: 0, rangeMidNote: 0, sensitivityNote: 0, hatchedBaseNote: 0, missingSwingNote: 0, rankOmitted: 0, noRank: 0, rankMethod: 0, higherBetter: 0, lowerBetter: 0, rankFormat: 0, rankRing: 0, nearZeroNote: 0, flagged: 0, corridor: 0, corridorBounds: 0, median: 0, anomalySmallSample: 0, anomalyZeroMad: 0, anomalyMadRule: 0, anomalyCentreZero: 0, anomalyCentreMedian: 0, anomalyThresholdRule: 0, outsideBounds: 0, belowBound: 0, aboveBound: 0, lowerBound: 0, upperBound: 0, undrawnBounds: 0, hiddenLabels: 0, noteOne: 0, noteMany: 0, notesAndSources: 0, close: 0, mapCredit: 0, gapBetween: 0, aboveSeries: 0, belowSeries: 0, average: 0, valueLineRange: 0, toDate: 0, forecast: 0, plan: 0, forecastHeader: 0, net: 0, incomplete: 0, range: 0, valuesNotOnColumns: 0, valuesNotBesideMarks: 0, partialTotals: 0, knownPartsTotals: 0, without: 0, and: 0, aboveZero: 0, belowZero: 0, declaredBounds: 0, tied: 0, tiedSymbol: 0, currentValue: 0, baseCase: 0, swingOutsideBase: 0, fanGap: 0, mixedShares: 0, heatBelow: 0, heatAround: 0, heatAbove: 0, bandKey: 0, moreListed: 0, cellNote: 0, storyBack: 0, storyNext: 0, storyCounter: 0, storyStep: 0, axisLow: 0, axisHigh: 0, target: 0, actualColumn: 0, shareColumn: 0, deltaColumn: 0, targetColumn: 0, gapColumn: 0, gapBelow: 0, gapAbove: 0, gapOn: 0, nearZeroChange: 0, mixedCoverage: 0, hiddenPeriods: 0, share: 0, histogramBins: 0, histogramAbout: 0, histogramMethod: 0, histogramRuleCount: 0, histogramRuleWidth: 0, histogramSnapped: 0, histogramRounded: 0, histogramSmallSample: 0, missingStack: 0, incompleteStacks: 0, knownPartsShares: 0, rebaseZero: 0, rebaseMissing: 0 };
3
+
4
+ export {
5
+ sharedKeys0,
6
+ sharedKeys1,
7
+ sharedKeys2,
8
+ sharedKeys4,
9
+ sharedKeys5,
10
+ sharedKeys7,
11
+ sharedKeys9,
12
+ sharedKeys10
13
+ };