@diagrammo/dgmo 0.77.0 → 0.79.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 (280) hide show
  1. package/README.md +17 -13
  2. package/dist/advanced.d.ts +197 -23
  3. package/dist/advanced.js +161 -142
  4. package/dist/block.css +1 -1
  5. package/dist/block.d.ts +2 -2
  6. package/dist/block.js +62 -58
  7. package/dist/{calculator-CVQ54JNE.js → calculator-OHTCZSBW.js} +3 -3
  8. package/dist/{chart-meta-Cf_jkApJ.d.ts → chart-meta-B7lSmrzg.d.ts} +2 -2
  9. package/dist/chart-meta.d.ts +3 -3
  10. package/dist/chart-meta.js +45 -44
  11. package/dist/charts-d3-EST3Z5VG.js +31 -0
  12. package/dist/{chunk-U4DS2ODO.js → chunk-253E5ISJ.js} +9 -9
  13. package/dist/{chunk-7IATMZSA.js → chunk-26EVL454.js} +1 -25
  14. package/dist/{chunk-MG3DE3VO.js → chunk-2F7AG7LA.js} +4 -4
  15. package/dist/{chunk-OWVDD5EC.js → chunk-2R2M2C6V.js} +2 -2
  16. package/dist/{chunk-LYJ53DBK.js → chunk-2RAH6GVR.js} +56 -41
  17. package/dist/{chunk-Q74GP3GK.js → chunk-37NDM5NW.js} +3 -3
  18. package/dist/{chunk-N6MZSBOL.js → chunk-3BN3WCUD.js} +5 -2
  19. package/dist/chunk-3DPOIW3W.js +10 -0
  20. package/dist/{chunk-HDLRRY3N.js → chunk-3KFGPXHD.js} +195 -135
  21. package/dist/{chunk-NWNSXHA5.js → chunk-3KNA7OIO.js} +3 -3
  22. package/dist/{chunk-M5OOAP65.js → chunk-4CA7TJ44.js} +2 -1
  23. package/dist/{chunk-M5JT2AU7.js → chunk-4L43NPSQ.js} +10 -6
  24. package/dist/{chunk-4YER7UCV.js → chunk-4T6V7JJA.js} +3 -3
  25. package/dist/{chunk-3E4YB6TY.js → chunk-4YSWUQKZ.js} +12 -7
  26. package/dist/{chunk-6BVAW7KI.js → chunk-54JYWS7D.js} +50 -43
  27. package/dist/{chunk-7NSNE52V.js → chunk-55DMCFGM.js} +3 -3
  28. package/dist/{chunk-XPBJVSRY.js → chunk-5BV5MXLY.js} +38 -32
  29. package/dist/{chunk-5VMUVJO4.js → chunk-5DWF3N3V.js} +3 -3
  30. package/dist/{chunk-SSEAULA5.js → chunk-6775W3UW.js} +19 -15
  31. package/dist/{chunk-2QRIMMIH.js → chunk-6EMJRAEY.js} +3 -3
  32. package/dist/{chunk-OZOHREFQ.js → chunk-6FUIPWTS.js} +14 -15
  33. package/dist/{chunk-F4V67JXG.js → chunk-6JIMYPXR.js} +4 -4
  34. package/dist/{chunk-CHOK7NCJ.js → chunk-7AEMAUDF.js} +29 -25
  35. package/dist/{chunk-NVOU7N6C.js → chunk-7DCM3CB5.js} +2 -2
  36. package/dist/{chunk-UBDVAHGK.js → chunk-7EUTTKNU.js} +36 -31
  37. package/dist/{chunk-76NHL5UG.js → chunk-7I6NWTPE.js} +2 -2
  38. package/dist/{chunk-OKXWPKUC.js → chunk-7SHL2WME.js} +2 -2
  39. package/dist/{chunk-SWEKCK34.js → chunk-AFOHIR2O.js} +3 -3
  40. package/dist/{chunk-RWFMOVHG.js → chunk-AI7TZQ2R.js} +3 -3
  41. package/dist/{chunk-BWJLLNUX.js → chunk-ALVK3TBO.js} +3 -3
  42. package/dist/{chunk-GLREDNBA.js → chunk-AMQFJ7P7.js} +21 -2
  43. package/dist/{chunk-RGW26UAR.js → chunk-CCETDPLV.js} +11 -11
  44. package/dist/{chunk-5ZD4DDG7.js → chunk-CE654SL2.js} +17 -14
  45. package/dist/{chunk-TPN7RJOM.js → chunk-CFYTCBRH.js} +4 -4
  46. package/dist/{chunk-YT5ICQ4R.js → chunk-CKDYRVOC.js} +3 -3
  47. package/dist/{chunk-WQXD3IIN.js → chunk-CRBW2WS7.js} +11 -9
  48. package/dist/{chunk-J76YDS4V.js → chunk-CREALBZL.js} +3 -3
  49. package/dist/{chunk-MZEGUDTA.js → chunk-CSTYDCKB.js} +16 -16
  50. package/dist/{chunk-QBM5BURJ.js → chunk-DG5IQW74.js} +10 -10
  51. package/dist/{chunk-Y2CYNRL7.js → chunk-DN6K6QCF.js} +2 -2
  52. package/dist/{chunk-43AJKH2U.js → chunk-DQOCYWB6.js} +12 -10
  53. package/dist/{chunk-FTTB64OJ.js → chunk-EBEFYSVZ.js} +40 -40
  54. package/dist/{chunk-L65WI4HO.js → chunk-EDU2OCIQ.js} +2 -2
  55. package/dist/{chunk-SWUQJ5VR.js → chunk-EOG4QKKV.js} +108 -65
  56. package/dist/chunk-EPDBWATV.js +38 -0
  57. package/dist/{chunk-5GM6BZO7.js → chunk-F66R7CPY.js} +6 -3
  58. package/dist/{chunk-7BMX2M3F.js → chunk-FFDHZVEL.js} +2 -2
  59. package/dist/{chunk-WGC42WJU.js → chunk-FWNJDD4U.js} +6 -2
  60. package/dist/{chunk-SI3PYDL4.js → chunk-GWA6UGNX.js} +22 -22
  61. package/dist/{chunk-QMFIZQTB.js → chunk-HIOJSYDA.js} +7 -5
  62. package/dist/{chunk-NHQ7HUAS.js → chunk-HJ5DKZPO.js} +12 -10
  63. package/dist/{chunk-FPRMP6YA.js → chunk-HJZ4OET2.js} +32 -17
  64. package/dist/{chunk-N5NQIZ56.js → chunk-HLTVEXML.js} +25 -25
  65. package/dist/{chunk-6IN4F4RH.js → chunk-I6DFQQER.js} +42 -44
  66. package/dist/chunk-ICLB27PZ.js +11 -0
  67. package/dist/{chunk-R3XI2VC7.js → chunk-IDJGV6VM.js} +2 -1
  68. package/dist/{chunk-ZM27UI5O.js → chunk-IEK2FUWO.js} +19 -6
  69. package/dist/{chunk-FJ57274M.js → chunk-IIEI7VK5.js} +15 -1
  70. package/dist/{chunk-DY7KDZUF.js → chunk-IZK2H4KU.js} +3 -3
  71. package/dist/{chunk-CRLVJZWX.js → chunk-JOG6W3VS.js} +2 -2
  72. package/dist/{chunk-XFXJXLK7.js → chunk-JTLLQT34.js} +19 -19
  73. package/dist/{chunk-MS5574I7.js → chunk-K3K7JHZI.js} +2 -2
  74. package/dist/{chunk-GOW5VO6M.js → chunk-KHRZCKKG.js} +2 -2
  75. package/dist/{chunk-D3B6YEZK.js → chunk-KIF4UFD2.js} +20 -16
  76. package/dist/{chunk-EUVUOPRC.js → chunk-KYK6PMB5.js} +55 -34
  77. package/dist/{chunk-RU2HHHYA.js → chunk-LD2JSKU3.js} +12 -2
  78. package/dist/{chunk-CYMYZYLI.js → chunk-LJ7X6ZNV.js} +25 -28
  79. package/dist/{chunk-ICVIJLBA.js → chunk-LLYHYPYG.js} +4 -4
  80. package/dist/{chunk-VRPV6QXR.js → chunk-LLZVRWVS.js} +2 -2
  81. package/dist/{chunk-Z7KVOVE4.js → chunk-LXTMP3VT.js} +7 -4
  82. package/dist/{chunk-7CXW6EGX.js → chunk-MDUCF376.js} +28 -26
  83. package/dist/{chunk-KWSBNLSC.js → chunk-MQAD75AY.js} +2 -2
  84. package/dist/{chunk-XCFIAGT7.js → chunk-MUTZSF2A.js} +17 -16
  85. package/dist/{chunk-CF3I5SOG.js → chunk-NVI5G57O.js} +29 -27
  86. package/dist/{chunk-76LHNLGX.js → chunk-O2HU4AQN.js} +34 -5
  87. package/dist/{chunk-46KVXDUJ.js → chunk-O5QG5IFV.js} +12 -3
  88. package/dist/{chunk-V4NHFY22.js → chunk-OLRVGPJ3.js} +33 -20
  89. package/dist/{chunk-WHWUVDYK.js → chunk-OM6XZAKM.js} +7 -7
  90. package/dist/{chunk-DSXWJAOA.js → chunk-OMN4F42L.js} +17 -15
  91. package/dist/{chunk-LM3HY3VG.js → chunk-P4U5GST7.js} +3 -3
  92. package/dist/{chunk-BH3BQICT.js → chunk-PKW4TLJC.js} +88 -44
  93. package/dist/{chunk-GRN44Z6A.js → chunk-PQR7E3LY.js} +2 -2
  94. package/dist/{chunk-SH4PPRU7.js → chunk-Q5KGGW7Z.js} +2 -2
  95. package/dist/{chunk-RV5A3EGI.js → chunk-QDHOIBHZ.js} +21 -20
  96. package/dist/{chunk-UH5YTZN7.js → chunk-QDTFFVLT.js} +113 -23
  97. package/dist/chunk-QFIXL3OK.js +68 -0
  98. package/dist/{chunk-QXMHBIQG.js → chunk-QGXH64FT.js} +52 -49
  99. package/dist/{chunk-VS2M72PF.js → chunk-RLJKH4ZO.js} +4 -2
  100. package/dist/{chunk-6ZZKEYBS.js → chunk-RN3DOUOU.js} +17 -15
  101. package/dist/{chunk-VBJCGGNF.js → chunk-RPP3NHKV.js} +2 -2
  102. package/dist/{chunk-RTTZIX34.js → chunk-RVWWCQAB.js} +3 -3
  103. package/dist/{chunk-FR5EVD2X.js → chunk-RWF7TCGT.js} +68 -38
  104. package/dist/{chunk-LKS56RDT.js → chunk-S6GPBJWG.js} +2 -2
  105. package/dist/{chunk-UJBP57UJ.js → chunk-S7ZJEQPW.js} +4 -4
  106. package/dist/{chunk-3H4PDNP4.js → chunk-SEOM2BGQ.js} +3 -3
  107. package/dist/{chunk-5PFNUDXR.js → chunk-T3EW35M2.js} +3 -3
  108. package/dist/{chunk-3SP6G4LN.js → chunk-TPQ6Q7JP.js} +3 -3
  109. package/dist/{chunk-B52RL5VV.js → chunk-ULUZBEFO.js} +11 -11
  110. package/dist/{chunk-F4X5NVKY.js → chunk-UNYOWKEC.js} +13 -4
  111. package/dist/{chunk-DEW62ON3.js → chunk-VSPNH7LC.js} +2 -2
  112. package/dist/{chunk-C2WH3BMS.js → chunk-VTWUHX4H.js} +10 -7
  113. package/dist/{chunk-DJL5PO27.js → chunk-W4MC3KP6.js} +2 -2
  114. package/dist/{chunk-MU3CJPJF.js → chunk-W6DBWWPC.js} +3 -3
  115. package/dist/{chunk-JLODGGN2.js → chunk-WC72PTV4.js} +3 -3
  116. package/dist/{chunk-NCT22MOD.js → chunk-WMIKC5XO.js} +2 -2
  117. package/dist/{chunk-H7BYMIVK.js → chunk-WY4L675I.js} +70 -44
  118. package/dist/chunk-XBJJP2HN.js +37 -0
  119. package/dist/{chunk-KRTLS3G6.js → chunk-XDEEYDPQ.js} +4 -4
  120. package/dist/{chunk-S5P5Z5Y5.js → chunk-XNAMWOPJ.js} +3 -3
  121. package/dist/{chunk-2MTM4E6M.js → chunk-XND5JIJA.js} +68 -65
  122. package/dist/{chunk-S6OXNZBM.js → chunk-XWC4RQ7T.js} +4 -4
  123. package/dist/{chunk-UCZBRGJN.js → chunk-XXLAZQ5E.js} +2 -2
  124. package/dist/{chunk-LXXVHLTH.js → chunk-Y22BJKMK.js} +3 -3
  125. package/dist/{chunk-OO2L2LWV.js → chunk-Y2KFQX5K.js} +89 -66
  126. package/dist/{chunk-TI4YUUW6.js → chunk-Y3OLUMJH.js} +31 -30
  127. package/dist/{chunk-CIWFL2LM.js → chunk-Y3RYIGHZ.js} +17 -15
  128. package/dist/{chunk-MTGGOCND.js → chunk-YC6GVLTI.js} +61 -10
  129. package/dist/{chunk-TKIPK5P6.js → chunk-YD2HPT7W.js} +5 -7
  130. package/dist/{chunk-3O7ZYVJV.js → chunk-YPVP6I62.js} +19 -15
  131. package/dist/{chunk-FF7LRT5L.js → chunk-YQIZIKCK.js} +35 -27
  132. package/dist/{chunk-M526IKKH.js → chunk-Z4COUG7H.js} +2 -2
  133. package/dist/{chunk-LTTZX6RD.js → chunk-Z5ZCTCX4.js} +3 -3
  134. package/dist/{chunk-QOVM5VRC.js → chunk-ZASX45SU.js} +3 -3
  135. package/dist/{chunk-W7UBPARG.js → chunk-ZH3BWGTE.js} +3 -3
  136. package/dist/{chunk-TN754B3R.js → chunk-ZZZJVDIL.js} +2 -2
  137. package/dist/clock.js +11 -5
  138. package/dist/completion-registry.js +3 -3
  139. package/dist/countdown.js +26 -20
  140. package/dist/{d3-BiaJtaSw.d.ts → d3-Bje6Mla1.d.ts} +1 -1
  141. package/dist/dgmo-router-OXFV43XX.js +90 -0
  142. package/dist/{dgmo-router-BwXHZ_P3.d.ts → dgmo-router-zWf4Uxxg.d.ts} +1 -1
  143. package/dist/dimensions-AN34SPVX.js +22 -0
  144. package/dist/{flowchart-parser-NVBP3C5D.js → flowchart-parser-MRNAVG35.js} +4 -4
  145. package/dist/flowchart-renderer-IGSKJFMF.js +37 -0
  146. package/dist/index.d.ts +7 -7
  147. package/dist/index.js +75 -60
  148. package/dist/{layout-Y2V3LYV7.js → layout-5AYAYUJH.js} +2 -2
  149. package/dist/{layout-ZAGUFT2G.js → layout-6APS2RRG.js} +8 -7
  150. package/dist/{layout-B5GQVXXY.js → layout-6VUNAH6F.js} +8 -7
  151. package/dist/{layout-RV2T2YTT.js → layout-74HDWQYG.js} +6 -5
  152. package/dist/{layout-6SKHNQYO.js → layout-FCIYZV63.js} +4 -4
  153. package/dist/{layout-4LNMXLVK.js → layout-J2Z2SYH5.js} +3 -3
  154. package/dist/layout-LELNMRM5.js +16 -0
  155. package/dist/{layout-EM4DLMAX.js → layout-OPF6KTOH.js} +5 -5
  156. package/dist/layout-SUND6B7D.js +9 -0
  157. package/dist/layout-WASEHV3S.js +19 -0
  158. package/dist/{layout-SGYR6HBX.js → layout-XAJLQPI6.js} +3 -3
  159. package/dist/layout-XY45TFJ4.js +16 -0
  160. package/dist/layout-YPRXVCW5.js +19 -0
  161. package/dist/{layout-2OJ25STS.js → layout-ZJOWB27N.js} +9 -8
  162. package/dist/{layout-search-UOKEMER5.js → layout-search-3JKNSUTJ.js} +8 -7
  163. package/dist/{legend-constants-PLN2YHGM.js → legend-constants-RSWFR3L6.js} +4 -4
  164. package/dist/{palettes-54YSI3IX.js → palettes-IAF6WVL4.js} +5 -3
  165. package/dist/{parser-QOIZGW7I.js → parser-2Y7LWKNO.js} +4 -4
  166. package/dist/{parser-EQ4I3TSH.js → parser-4GUQUDAC.js} +5 -5
  167. package/dist/{parser-TA5TYZNL.js → parser-4OXANARZ.js} +5 -5
  168. package/dist/{parser-L7T7FY3H.js → parser-56UEMRXS.js} +4 -4
  169. package/dist/{parser-2GMHFSTS.js → parser-66QZQYGE.js} +4 -4
  170. package/dist/{parser-3AOMUX5D.js → parser-6SS7DKVW.js} +4 -4
  171. package/dist/{parser-QYAIFXLP.js → parser-AYURCBDZ.js} +4 -4
  172. package/dist/{parser-5XFGK5C5.js → parser-COPCQEHV.js} +6 -6
  173. package/dist/{parser-F4ZKDGUZ.js → parser-DEWJM5PX.js} +3 -3
  174. package/dist/{parser-ZXQZZK6W.js → parser-DQKZDA2J.js} +4 -3
  175. package/dist/{parser-WCFG3DZA.js → parser-EMPM3V35.js} +3 -3
  176. package/dist/{parser-6FUESG4N.js → parser-EP2JQJNV.js} +4 -4
  177. package/dist/{parser-ZYAFHXKQ.js → parser-FDDHTBRV.js} +4 -4
  178. package/dist/{parser-3KQONLXZ.js → parser-FDESUQ32.js} +3 -3
  179. package/dist/{parser-LV7PQBUG.js → parser-GK6CMK4P.js} +4 -4
  180. package/dist/{parser-WVE6SKB7.js → parser-H33OKBUB.js} +4 -4
  181. package/dist/{parser-ML3LVNDV.js → parser-HJBSWTDY.js} +4 -4
  182. package/dist/{parser-PR3OR3LO.js → parser-HRIKI5O3.js} +5 -5
  183. package/dist/{parser-H4ZUNLX4.js → parser-I77632XB.js} +3 -3
  184. package/dist/{parser-YWQCC33R.js → parser-JGMQE7FS.js} +4 -4
  185. package/dist/{parser-WMJEPZDC.js → parser-JIPG576H.js} +4 -4
  186. package/dist/{parser-E3OHNNTH.js → parser-JNJ2IFSO.js} +4 -4
  187. package/dist/{parser-CJNP7RKR.js → parser-LCUQTABE.js} +4 -4
  188. package/dist/{parser-4DLU4SNG.js → parser-LXU3MGG6.js} +3 -3
  189. package/dist/{parser-WWRRG2DV.js → parser-N4YB5EIZ.js} +4 -4
  190. package/dist/{parser-XVSDFO56.js → parser-NC36PRBR.js} +3 -3
  191. package/dist/{parser-RDBXEVI4.js → parser-O6WYAXTS.js} +4 -4
  192. package/dist/{parser-4KFJKLP2.js → parser-UHABNZBC.js} +3 -3
  193. package/dist/{parser-GCVSRQPY.js → parser-V6HULGXW.js} +4 -4
  194. package/dist/{parser-UTR5WE4O.js → parser-VVWZIMYS.js} +4 -4
  195. package/dist/{parser-B2XQNHZM.js → parser-YJGTPT7A.js} +3 -3
  196. package/dist/{parser-WQNT7T2P.js → parser-YQ5F7ATB.js} +3 -3
  197. package/dist/{parser-ZT3PU2HT.js → parser-ZUH2G7J2.js} +4 -4
  198. package/dist/renderer-2ZGZSSCV.js +39 -0
  199. package/dist/renderer-33AB7UAZ.js +35 -0
  200. package/dist/renderer-43KEDLTQ.js +23 -0
  201. package/dist/renderer-4E6NNPNU.js +29 -0
  202. package/dist/renderer-4HFT4HJG.js +39 -0
  203. package/dist/renderer-63MHARNI.js +20 -0
  204. package/dist/renderer-6HPV7BMG.js +23 -0
  205. package/dist/renderer-BVJ3NVRB.js +20 -0
  206. package/dist/renderer-DV44AS75.js +28 -0
  207. package/dist/renderer-FLLVGYUY.js +30 -0
  208. package/dist/renderer-FSV7MTW3.js +17 -0
  209. package/dist/renderer-H6XEVHKH.js +27 -0
  210. package/dist/renderer-HNEMQJXT.js +21 -0
  211. package/dist/{renderer-CVWQD442.js → renderer-IIN3RY4F.js} +6 -5
  212. package/dist/renderer-K2OWHNBV.js +25 -0
  213. package/dist/renderer-M6UIXQHH.js +27 -0
  214. package/dist/renderer-N5CRYFBI.js +31 -0
  215. package/dist/{renderer-VF7X66SL.js → renderer-O3O6A3RY.js} +16 -16
  216. package/dist/renderer-OVRX36WE.js +39 -0
  217. package/dist/renderer-PLKMHBAB.js +30 -0
  218. package/dist/{renderer-G2DPKJAN.js → renderer-REHVBQ57.js} +17 -16
  219. package/dist/{renderer-GHBF5PRH.js → renderer-RW446FGL.js} +6 -5
  220. package/dist/renderer-SJV75NUI.js +28 -0
  221. package/dist/renderer-TKWW45LZ.js +36 -0
  222. package/dist/{renderer-FTX67CYZ.js → renderer-UHLTPQTW.js} +7 -6
  223. package/dist/renderer-UNYFAMFE.js +16 -0
  224. package/dist/renderer-URXHBQOF.js +26 -0
  225. package/dist/renderer-VBAQQWDB.js +25 -0
  226. package/dist/renderer-VI72MVFW.js +77 -0
  227. package/dist/renderer-XGJIACBV.js +25 -0
  228. package/dist/renderer-XVTKGPYT.js +20 -0
  229. package/dist/{renderer-R5HIRN2M.js → renderer-YLIICO4R.js} +9 -9
  230. package/dist/renderer-ZG6GPWZF.js +27 -0
  231. package/dist/renderer-radial-7UHFYOOL.js +21 -0
  232. package/dist/{state-parser-TPA67IXM.js → state-parser-XT4ZPQAF.js} +5 -5
  233. package/dist/state-renderer-6TVII5ZJ.js +41 -0
  234. package/dist/{tag-groups-BAtkq0b_.d.ts → tag-groups-DIJV_50B.d.ts} +18 -9
  235. package/dist/{themes-DpsyRSO7.d.ts → themes-Bgkyh6gh.d.ts} +2 -2
  236. package/docs/architecture-report.md +3 -3
  237. package/docs/language-reference.md +128 -30
  238. package/docs/migration-sequence-color-to-tags.md +16 -8
  239. package/package.json +7 -6
  240. package/dist/charts-d3-HMEMHSSW.js +0 -29
  241. package/dist/chunk-53SEVJQM.js +0 -9
  242. package/dist/chunk-LP7EC4MI.js +0 -16
  243. package/dist/chunk-YM5RMLFO.js +0 -40
  244. package/dist/dgmo-router-A3LIHT6H.js +0 -89
  245. package/dist/dimensions-OFF4GRFL.js +0 -22
  246. package/dist/flowchart-renderer-BBJUPORB.js +0 -36
  247. package/dist/layout-5ILNODTP.js +0 -15
  248. package/dist/layout-IN53LAE6.js +0 -9
  249. package/dist/layout-KQUSB45X.js +0 -18
  250. package/dist/layout-ROORJQ4X.js +0 -18
  251. package/dist/layout-VUZ3MLOI.js +0 -15
  252. package/dist/renderer-2ANDPQWC.js +0 -16
  253. package/dist/renderer-2LDT4TUX.js +0 -25
  254. package/dist/renderer-2NYQDW37.js +0 -20
  255. package/dist/renderer-2RIIIO34.js +0 -39
  256. package/dist/renderer-3HFU3DTO.js +0 -25
  257. package/dist/renderer-4BF6ILP6.js +0 -27
  258. package/dist/renderer-5E2AH5TO.js +0 -38
  259. package/dist/renderer-62SLWRYF.js +0 -27
  260. package/dist/renderer-ANJUDBOS.js +0 -34
  261. package/dist/renderer-D6GJ6EVK.js +0 -30
  262. package/dist/renderer-DNFV2IQI.js +0 -36
  263. package/dist/renderer-EDVCGIQO.js +0 -76
  264. package/dist/renderer-EFQSMHID.js +0 -27
  265. package/dist/renderer-GZLRX764.js +0 -24
  266. package/dist/renderer-H2HYLFN3.js +0 -20
  267. package/dist/renderer-IR5655M7.js +0 -28
  268. package/dist/renderer-L237AOOZ.js +0 -16
  269. package/dist/renderer-LSJWYGOL.js +0 -39
  270. package/dist/renderer-LWXDMZOV.js +0 -28
  271. package/dist/renderer-MYSVPERC.js +0 -22
  272. package/dist/renderer-OL5QSZPC.js +0 -31
  273. package/dist/renderer-P26HH3NA.js +0 -30
  274. package/dist/renderer-RNFECJ5D.js +0 -21
  275. package/dist/renderer-RPZVNCTF.js +0 -26
  276. package/dist/renderer-SDNWZDUY.js +0 -23
  277. package/dist/renderer-UKHH4UWV.js +0 -25
  278. package/dist/renderer-Y3Y7PEUS.js +0 -20
  279. package/dist/renderer-radial-QNGCGKZP.js +0 -21
  280. package/dist/state-renderer-ELWDRXD6.js +0 -40
@@ -4,27 +4,28 @@ import {
4
4
  buildLegend,
5
5
  compactNumber,
6
6
  formatPct,
7
+ mutedFill,
7
8
  resolveCellColor,
8
9
  resolveColorMode
9
- } from "./chunk-C2WH3BMS.js";
10
+ } from "./chunk-VTWUHX4H.js";
10
11
  import {
11
12
  renderIntegratedLegend
12
- } from "./chunk-U4DS2ODO.js";
13
+ } from "./chunk-253E5ISJ.js";
13
14
  import {
14
15
  getMaxLegendReservedHeight
15
- } from "./chunk-VRPV6QXR.js";
16
+ } from "./chunk-LLZVRWVS.js";
16
17
  import {
17
18
  FONT_FAMILY
18
- } from "./chunk-53SEVJQM.js";
19
+ } from "./chunk-ICLB27PZ.js";
19
20
  import {
20
21
  LEGEND_GROUP_GAP
21
- } from "./chunk-YT5ICQ4R.js";
22
+ } from "./chunk-CKDYRVOC.js";
22
23
  import {
23
24
  measureText
24
- } from "./chunk-MTGGOCND.js";
25
+ } from "./chunk-YC6GVLTI.js";
25
26
  import {
26
27
  tagAttrKey
27
- } from "./chunk-76LHNLGX.js";
28
+ } from "./chunk-O2HU4AQN.js";
28
29
  import {
29
30
  contrastRatio,
30
31
  contrastText,
@@ -32,7 +33,7 @@ import {
32
33
  hexToHSL,
33
34
  hslToHex,
34
35
  relativeLuminance
35
- } from "./chunk-GLREDNBA.js";
36
+ } from "./chunk-AMQFJ7P7.js";
36
37
 
37
38
  // src/treemap/renderer-radial.ts
38
39
  import * as d3Selection from "d3-selection";
@@ -202,7 +203,8 @@ function renderTreemapRadial(container, parsed, palette, isDark, exportDims, opt
202
203
  rootIndexByLabel,
203
204
  seriesColors,
204
205
  colorOffset: options.colorOffset ?? 0,
205
- bg: palette.bg
206
+ bg: palette.bg,
207
+ muted: mutedFill(palette)
206
208
  };
207
209
  const arcGen = d3arc().startAngle((c) => c.startAngle).endAngle((c) => c.endAngle).innerRadius((c) => c.innerR).outerRadius((c) => c.outerR).padAngle(4e-3).padRadius(radius);
208
210
  let labelSeq = 0;
@@ -281,12 +283,12 @@ function drawCenterDisc(plot, parsed, discRadius, total, isEmpty, palette) {
281
283
  const titleFs = clampFs(15, discRadius);
282
284
  const totalFs = fitFs(totalStr, clampFs(22, discRadius), maxW);
283
285
  if (title) {
284
- const t = disc.append("text").attr("class", "dgmo-treemap-disc-title").attr("text-anchor", "middle").attr("y", -4).attr("fill", ink).attr("font-size", titleFs).attr("font-weight", 600).text(clip(title, maxW, titleFs));
286
+ const t = disc.append("text").attr("class", "dgmo-treemap-disc-title").attr("text-anchor", "middle").attr("y", -4).attr("fill", ink).attr("font-size", titleFs).attr("font-weight", "bold").text(clip(title, maxW, titleFs));
285
287
  if (parsed.titleLineNumber !== null) {
286
288
  t.attr("data-line-number", parsed.titleLineNumber);
287
289
  }
288
290
  }
289
- disc.append("text").attr("class", "dgmo-treemap-disc-total").attr("text-anchor", "middle").attr("y", title ? titleFs : 8).attr("fill", ink).attr("font-size", totalFs).attr("font-weight", 700).text(totalStr);
291
+ disc.append("text").attr("class", "dgmo-treemap-disc-total").attr("text-anchor", "middle").attr("y", title ? titleFs : 8).attr("fill", ink).attr("font-size", totalFs).attr("font-weight", "bold").text(totalStr);
290
292
  }
291
293
  function groupedNumber(v) {
292
294
  const rounded = Math.round(v * 100) / 100;
@@ -327,7 +329,7 @@ function drawArcLabel(g, defs, pathId, cell, opts, palette, fill) {
327
329
  cell,
328
330
  rName,
329
331
  nameFs,
330
- 600,
332
+ "bold",
331
333
  nameText,
332
334
  ink
333
335
  );
@@ -342,7 +344,7 @@ function drawArcLabel(g, defs, pathId, cell, opts, palette, fill) {
342
344
  cell,
343
345
  rVal,
344
346
  valFs,
345
- 500,
347
+ "normal",
346
348
  valText,
347
349
  ink
348
350
  );
@@ -355,7 +357,7 @@ function drawArcLabel(g, defs, pathId, cell, opts, palette, fill) {
355
357
  const fs = fitFs(full, maxFs, availLen);
356
358
  const text = clip(full, availLen, fs);
357
359
  if (!text) return;
358
- drawCurvedLine(g, defs, pathId, cell, rMid, fs, 600, text, ink);
360
+ drawCurvedLine(g, defs, pathId, cell, rMid, fs, "bold", text, ink);
359
361
  }
360
362
  function isBottomHalf(cell) {
361
363
  const mid = (cell.startAngle + cell.endAngle) / 2;
@@ -423,4 +425,4 @@ export {
423
425
  renderTreemapRadialForExport,
424
426
  renderTreemapRadial
425
427
  };
426
- //# sourceMappingURL=chunk-CIWFL2LM.js.map
428
+ //# sourceMappingURL=chunk-Y3RYIGHZ.js.map
@@ -575,6 +575,31 @@ function truncateText(text, fontSize, maxWidth, opts) {
575
575
  }
576
576
  return lo === 0 ? ellipsis : clusters.slice(0, lo).join("") + ellipsis;
577
577
  }
578
+ function breakAtoms(word) {
579
+ const upper = (c) => c >= "A" && c <= "Z";
580
+ const lowerOrDigit = (c) => c >= "a" && c <= "z" || c >= "0" && c <= "9";
581
+ const out = [];
582
+ let current = "";
583
+ for (let i = 0; i < word.length; i++) {
584
+ const c = word[i];
585
+ current += c;
586
+ if (c === "_" || c === "-") {
587
+ out.push(current);
588
+ current = "";
589
+ continue;
590
+ }
591
+ const next = word[i + 1];
592
+ if (next === void 0) continue;
593
+ const boundary = lowerOrDigit(c) && upper(next) || // An acronym run ending where a capitalised word begins.
594
+ upper(c) && upper(next) && word[i + 2] !== void 0 && lowerOrDigit(word[i + 2]);
595
+ if (boundary) {
596
+ out.push(current);
597
+ current = "";
598
+ }
599
+ }
600
+ if (current) out.push(current);
601
+ return out.length > 0 ? out : [word];
602
+ }
578
603
  function wrapTextToWidth(text, fontSize, maxWidth, opts) {
579
604
  const words = text.split(/\s+/).filter((w) => w.length > 0);
580
605
  if (words.length === 0) return [""];
@@ -583,23 +608,32 @@ function wrapTextToWidth(text, fontSize, maxWidth, opts) {
583
608
  const lines = [];
584
609
  let current = "";
585
610
  let currentW = 0;
586
- const pushWord = (word) => {
611
+ const atoms = [];
612
+ for (const word of words) {
613
+ const pieces = breakAtoms(word);
614
+ for (let k = 0; k < pieces.length; k++) {
615
+ atoms.push({ text: pieces[k], sep: k === 0 ? " " : "" });
616
+ }
617
+ }
618
+ const pushAtom = (atom) => {
619
+ const glue = current && atom.sep === " " ? spaceW : 0;
587
620
  const testW = extendWidth(
588
- current ? currentW + spaceW : 0,
589
- word,
621
+ current ? currentW + glue : 0,
622
+ atom.text,
590
623
  fontSize,
591
624
  opts
592
625
  );
593
626
  if (testW <= maxWidth || !current) {
594
- current = current ? `${current} ${word}` : word;
627
+ current = current ? `${current}${atom.sep === " " ? " " : ""}${atom.text}` : atom.text;
595
628
  currentW = testW;
596
629
  } else {
597
630
  lines.push(current);
598
- current = word;
599
- currentW = extendWidth(0, word, fontSize, opts);
631
+ current = atom.text;
632
+ currentW = extendWidth(0, atom.text, fontSize, opts);
600
633
  }
601
634
  };
602
- for (const word of words) {
635
+ for (const atom of atoms) {
636
+ const word = atom.text;
603
637
  if (hardBreak && measureText(word, fontSize, opts) > maxWidth) {
604
638
  if (current) {
605
639
  lines.push(current);
@@ -623,16 +657,33 @@ function wrapTextToWidth(text, fontSize, maxWidth, opts) {
623
657
  currentW = chunkW;
624
658
  continue;
625
659
  }
626
- pushWord(word);
660
+ pushAtom(atom);
627
661
  }
628
662
  if (current) lines.push(current);
629
663
  return lines.length > 0 ? lines : [""];
630
664
  }
665
+ function fitWrapped(label, maxWidth, maxFont, minFont, maxLines = 2, opts = { bold: true }) {
666
+ const wrapOpts = { ...opts, hardBreak: true };
667
+ for (let fs = maxFont; fs >= minFont; fs--) {
668
+ const lines2 = wrapTextToWidth(label, fs, maxWidth, wrapOpts);
669
+ if (lines2.length <= maxLines) return { lines: lines2, fontSize: fs };
670
+ }
671
+ const lines = wrapTextToWidth(label, minFont, maxWidth, wrapOpts);
672
+ if (lines.length <= maxLines) return { lines, fontSize: minFont };
673
+ const kept = lines.slice(0, maxLines);
674
+ let last = kept[maxLines - 1];
675
+ while (last.length > 1 && measureText(`${last}\u2026`, minFont, opts) > maxWidth)
676
+ last = last.slice(0, -1);
677
+ kept[maxLines - 1] = `${last}\u2026`;
678
+ return { lines: kept, fontSize: minFont };
679
+ }
631
680
 
632
681
  export {
633
682
  CHAR_WIDTH_RATIO,
634
683
  measureText,
635
684
  truncateText,
636
- wrapTextToWidth
685
+ breakAtoms,
686
+ wrapTextToWidth,
687
+ fitWrapped
637
688
  };
638
- //# sourceMappingURL=chunk-MTGGOCND.js.map
689
+ //# sourceMappingURL=chunk-YC6GVLTI.js.map
@@ -1,12 +1,10 @@
1
1
  import {
2
+ FONT_FAMILY,
2
3
  MONO_FAMILY
3
- } from "./chunk-OZOHREFQ.js";
4
- import {
5
- FONT_FAMILY
6
- } from "./chunk-53SEVJQM.js";
4
+ } from "./chunk-ICLB27PZ.js";
7
5
  import {
8
6
  truncateText
9
- } from "./chunk-MTGGOCND.js";
7
+ } from "./chunk-YC6GVLTI.js";
10
8
 
11
9
  // src/live-link/renderer.ts
12
10
  var W = 560;
@@ -25,7 +23,7 @@ function renderLiveLinkCard(parsed, palette, theme) {
25
23
  const headline = parsed.title ?? parsed.id ?? "Unresolved live link";
26
24
  const headlineMono = parsed.title === null && parsed.id !== null;
27
25
  parts.push(
28
- `<text x="${CONTENT_X}" y="${y}" fill="${palette.text}" font-family="${headlineMono ? MONO_FAMILY : FONT_FAMILY}" font-size="${HEADLINE_FS}" font-weight="${headlineMono ? 500 : 700}">${escapeXml(truncateText(headline, HEADLINE_FS, CONTENT_W, { bold: !headlineMono }))}</text>`
26
+ `<text x="${CONTENT_X}" y="${y}" fill="${palette.text}" font-family="${headlineMono ? MONO_FAMILY : FONT_FAMILY}" font-size="${HEADLINE_FS}" font-weight="${headlineMono ? "normal" : "bold"}">${escapeXml(truncateText(headline, HEADLINE_FS, CONTENT_W, { bold: !headlineMono }))}</text>`
29
27
  );
30
28
  y += 30;
31
29
  parts.push(
@@ -62,4 +60,4 @@ function escapeXml(s) {
62
60
  export {
63
61
  renderLiveLinkCard
64
62
  };
65
- //# sourceMappingURL=chunk-TKIPK5P6.js.map
63
+ //# sourceMappingURL=chunk-YD2HPT7W.js.map
@@ -1,15 +1,19 @@
1
+ import {
2
+ EDGE_DASH,
3
+ HAIRLINE_DASH
4
+ } from "./chunk-IIEI7VK5.js";
1
5
  import {
2
6
  TITLE_FONT_SIZE,
3
7
  TITLE_FONT_WEIGHT,
4
8
  TITLE_Y
5
- } from "./chunk-DEW62ON3.js";
9
+ } from "./chunk-VSPNH7LC.js";
6
10
  import {
7
11
  FONT_FAMILY
8
- } from "./chunk-53SEVJQM.js";
12
+ } from "./chunk-ICLB27PZ.js";
9
13
  import {
10
14
  getSeriesColors,
11
15
  mix
12
- } from "./chunk-GLREDNBA.js";
16
+ } from "./chunk-AMQFJ7P7.js";
13
17
  import {
14
18
  resolveColor
15
19
  } from "./chunk-XOGQY4EC.js";
@@ -265,7 +269,7 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
265
269
  const gop = (n) => n.ghost ? 0.32 : 1;
266
270
  const dlink = (a, b, color, arrow) => {
267
271
  const A = P(a.key), B = P(b.key), c = mergeCorner(a, b);
268
- g.append("path").attr("d", roundedL(A.x, A.y, c.x, c.y, B.x, B.y, CORNER)).attr("fill", "none").attr("stroke", color).attr("stroke-width", 2).attr("stroke-dasharray", "2 4").attr("opacity", 0.8);
272
+ g.append("path").attr("d", roundedL(A.x, A.y, c.x, c.y, B.x, B.y, CORNER)).attr("fill", "none").attr("stroke", color).attr("stroke-width", 2).attr("stroke-dasharray", HAIRLINE_DASH).attr("opacity", 0.8);
269
273
  if (arrow) {
270
274
  const dx = B.x - c.x, dy = B.y - c.y, l = Math.hypot(dx, dy) || 1;
271
275
  const ux = dx / l, uy = dy / l, px = -uy, py = ux, s = 4;
@@ -282,12 +286,12 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
282
286
  if (n.prev != null) {
283
287
  const a = P(n.prev);
284
288
  const e = g.append("line").attr("x1", a.x).attr("y1", a.y).attr("x2", N.x).attr("y2", N.y).attr("stroke", c).attr("stroke-width", LINE).attr("stroke-linecap", "round").attr("data-branch", n.branch).attr("opacity", o);
285
- if (n.ghost) e.attr("stroke-dasharray", "5 5");
289
+ if (n.ghost) e.attr("stroke-dasharray", EDGE_DASH);
286
290
  }
287
291
  if (n.parent != null) {
288
292
  const par = byKey(n.parent), cc = branchCorner(par, n), pp = P(par.key);
289
293
  const e = g.append("path").attr("d", roundedL(pp.x, pp.y, cc.x, cc.y, N.x, N.y, CORNER)).attr("fill", "none").attr("stroke", c).attr("stroke-width", LINE).attr("stroke-linecap", "round").attr("data-branch", n.branch).attr("opacity", o);
290
- if (n.ghost) e.attr("stroke-dasharray", "5 5");
294
+ if (n.ghost) e.attr("stroke-dasharray", EDGE_DASH);
291
295
  }
292
296
  if (n.mergeFrom != null) {
293
297
  const s = byKey(n.mergeFrom), cc = mergeCorner(s, n), sp = P(s.key);
@@ -310,9 +314,9 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
310
314
  const fp = P(first.key);
311
315
  const col = colorOf(first);
312
316
  if (TB) {
313
- g.append("text").attr("x", fp.x).attr("y", 14).attr("text-anchor", "middle").attr("font-size", 12.5).attr("font-weight", 800).attr("fill", col).text(b.name);
317
+ g.append("text").attr("x", fp.x).attr("y", 14).attr("text-anchor", "middle").attr("font-size", 12.5).attr("font-weight", "bold").attr("fill", col).text(b.name);
314
318
  } else {
315
- g.append("text").attr("x", fp.x - DOT - 1).attr("y", fp.y - DOT - 7).attr("text-anchor", "start").attr("font-size", 12.5).attr("font-weight", 800).attr("fill", col).attr("data-branch", b.name).text(b.name);
319
+ g.append("text").attr("x", fp.x - DOT - 1).attr("y", fp.y - DOT - 7).attr("text-anchor", "start").attr("font-size", 12.5).attr("font-weight", "bold").attr("fill", col).attr("data-branch", b.name).text(b.name);
316
320
  }
317
321
  }
318
322
  }
@@ -358,11 +362,11 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
358
362
  );
359
363
  }
360
364
  }
361
- const pill = (cx, cy, w, text, fill, textColor, border, dash, weight = 700) => {
365
+ const pill = (cx, cy, w, text, fill, textColor, border, dash, weight = "bold") => {
362
366
  const r = g.append("rect").attr("x", cx - w / 2).attr("y", cy - 8.5).attr("width", w).attr("height", 17).attr("rx", 8.5).attr("fill", fill);
363
367
  if (border) {
364
368
  r.attr("stroke", border).attr("stroke-width", 1.3);
365
- if (dash) r.attr("stroke-dasharray", "3 2");
369
+ if (dash) r.attr("stroke-dasharray", HAIRLINE_DASH);
366
370
  }
367
371
  g.append("text").attr("x", cx).attr("y", cy + 4).attr("text-anchor", "middle").attr("font-size", 10.5).attr("font-weight", weight).attr("fill", textColor).text(text);
368
372
  };
@@ -384,7 +388,7 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
384
388
  palette.bg,
385
389
  void 0,
386
390
  false,
387
- 800
391
+ "bold"
388
392
  );
389
393
  else if (pl.kind === "ref")
390
394
  pill(pl.x, pl.y, pl.w, pl.label, palette.bg, c, c, pl.remote);
@@ -392,7 +396,7 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
392
396
  g.append("circle").attr("cx", pl.x).attr("cy", pl.y).attr("r", 8.5).attr("fill", c);
393
397
  g.append("text").attr("x", pl.x).attr("y", pl.y + 4).attr("text-anchor", "middle").attr("font-size", 11).attr("fill", palette.bg).text(pl.label);
394
398
  } else if (pl.kind === "ab") {
395
- g.append("text").attr("x", pl.x).attr("y", pl.y + 4).attr("text-anchor", "start").attr("font-size", 11).attr("font-weight", 700).attr("fill", c).text(pl.label);
399
+ g.append("text").attr("x", pl.x).attr("y", pl.y + 4).attr("text-anchor", "start").attr("font-size", 11).attr("font-weight", "bold").attr("fill", c).text(pl.label);
396
400
  } else {
397
401
  const L = label.get(n.key);
398
402
  const gh = n.ghost;
@@ -415,14 +419,14 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
415
419
  const t = g.append("text").attr("x", tx).attr("y", ty).attr("text-anchor", anchor).attr("font-size", 12).attr("data-branch", n.branch).attr("opacity", gh ? 0.6 : 1);
416
420
  if (L.sha)
417
421
  t.append("tspan").attr("font-family", "ui-monospace, monospace").attr("font-size", 11).attr("fill", palette.textMuted).text(L.sha + " ");
418
- t.append("tspan").attr("fill", mfill).attr("font-weight", n.kind === "cherry" ? 400 : 700).attr("font-style", n.kind === "cherry" ? "italic" : "normal").text(L.msg);
422
+ t.append("tspan").attr("fill", mfill).attr("font-weight", n.kind === "cherry" ? "normal" : "bold").attr("font-style", n.kind === "cherry" ? "italic" : "normal").text(L.msg);
419
423
  }
420
424
  }
421
425
  if (captionY && parsed.notes.length) {
422
426
  let y = captionY + 14;
423
427
  for (const nt of parsed.notes) {
424
428
  const t = g.append("text").attr("x", 12).attr("y", y).attr("font-size", 11.5);
425
- t.append("tspan").attr("fill", palette.text).attr("font-weight", 800).text((CIRCLED[nt.num - 1] ?? `#${nt.num}`) + " ");
429
+ t.append("tspan").attr("fill", palette.text).attr("font-weight", "bold").text((CIRCLED[nt.num - 1] ?? `#${nt.num}`) + " ");
426
430
  t.append("tspan").attr("fill", palette.textMuted).text(nt.text);
427
431
  y += 16;
428
432
  }
@@ -443,4 +447,4 @@ export {
443
447
  renderVersionControl,
444
448
  renderVersionControlForExport
445
449
  };
446
- //# sourceMappingURL=chunk-3O7ZYVJV.js.map
450
+ //# sourceMappingURL=chunk-YPVP6I62.js.map
@@ -1,10 +1,15 @@
1
1
  import {
2
2
  renderNodeCard
3
- } from "./chunk-5GM6BZO7.js";
3
+ } from "./chunk-F66R7CPY.js";
4
4
  import {
5
5
  renderInlineText
6
- } from "./chunk-WGC42WJU.js";
6
+ } from "./chunk-FWNJDD4U.js";
7
7
  import {
8
+ ScaleContext
9
+ } from "./chunk-24YPR5EH.js";
10
+ import {
11
+ ARROWHEAD_HEIGHT,
12
+ ARROWHEAD_WIDTH,
8
13
  CARD_RADIUS,
9
14
  COLLAPSE_BAR_HEIGHT,
10
15
  CONTAINER_HEADER_HEIGHT,
@@ -12,6 +17,7 @@ import {
12
17
  CONTAINER_META_FONT_SIZE,
13
18
  CONTAINER_META_LINE_HEIGHT,
14
19
  CONTAINER_RADIUS,
20
+ EDGE_LABEL_KNOCKOUT_OPACITY,
15
21
  EDGE_STROKE_WIDTH,
16
22
  HEADER_HEIGHT,
17
23
  LABEL_FONT_SIZE,
@@ -19,30 +25,27 @@ import {
19
25
  META_LINE_HEIGHT,
20
26
  NODE_STROKE_WIDTH,
21
27
  SEPARATOR_GAP
22
- } from "./chunk-FJ57274M.js";
23
- import {
24
- ScaleContext
25
- } from "./chunk-24YPR5EH.js";
28
+ } from "./chunk-IIEI7VK5.js";
26
29
  import {
27
30
  layoutInlineHeader
28
- } from "./chunk-MG3DE3VO.js";
31
+ } from "./chunk-2F7AG7LA.js";
29
32
  import {
30
33
  serializeSvg
31
- } from "./chunk-RU2HHHYA.js";
34
+ } from "./chunk-LD2JSKU3.js";
32
35
  import {
33
36
  TITLE_FONT_SIZE,
34
37
  TITLE_FONT_WEIGHT
35
- } from "./chunk-DEW62ON3.js";
38
+ } from "./chunk-VSPNH7LC.js";
36
39
  import {
37
40
  renderIntegratedLegend
38
- } from "./chunk-U4DS2ODO.js";
41
+ } from "./chunk-253E5ISJ.js";
39
42
  import {
40
43
  getLegendExtent,
41
44
  getMaxLegendReservedHeight
42
- } from "./chunk-VRPV6QXR.js";
45
+ } from "./chunk-LLZVRWVS.js";
43
46
  import {
44
47
  FONT_FAMILY
45
- } from "./chunk-53SEVJQM.js";
48
+ } from "./chunk-ICLB27PZ.js";
46
49
  import {
47
50
  EYE_CLOSED_PATH,
48
51
  EYE_OPEN_PATH,
@@ -50,27 +53,27 @@ import {
50
53
  LEGEND_EYE_SIZE,
51
54
  LEGEND_GROUP_GAP,
52
55
  LEGEND_HEIGHT
53
- } from "./chunk-YT5ICQ4R.js";
56
+ } from "./chunk-CKDYRVOC.js";
54
57
  import {
55
58
  measureText
56
- } from "./chunk-MTGGOCND.js";
59
+ } from "./chunk-YC6GVLTI.js";
57
60
  import {
58
61
  preprocessDescriptionLine
59
62
  } from "./chunk-IYULMRBE.js";
60
63
  import {
61
64
  tagAttrKey
62
- } from "./chunk-76LHNLGX.js";
65
+ } from "./chunk-O2HU4AQN.js";
63
66
  import {
64
67
  fillModeFromOptions,
65
68
  legendInlineRequested,
66
69
  legendSuppressed
67
- } from "./chunk-M5OOAP65.js";
70
+ } from "./chunk-4CA7TJ44.js";
68
71
  import {
69
72
  contrastText,
70
73
  mix,
71
74
  shapeFill,
72
75
  themeBaseBg
73
- } from "./chunk-GLREDNBA.js";
76
+ } from "./chunk-AMQFJ7P7.js";
74
77
 
75
78
  // src/sitemap/renderer.ts
76
79
  import * as d3Selection from "d3-selection";
@@ -78,8 +81,6 @@ import * as d3Shape from "d3-shape";
78
81
  var DIAGRAM_PADDING = 20;
79
82
  var MAX_SCALE = 3;
80
83
  var TITLE_HEIGHT = 30;
81
- var ARROWHEAD_W = 10;
82
- var ARROWHEAD_H = 7;
83
84
  var EDGE_LABEL_FONT_SIZE = 11;
84
85
  var LEGEND_FIXED_GAP = 8;
85
86
  function nodeFill(palette, isDark, nodeColor, fillMode) {
@@ -192,11 +193,17 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
192
193
  svg.attr("width", "100%");
193
194
  }
194
195
  const defs = svg.append("defs");
195
- defs.append("marker").attr("id", "sm-arrow").attr("viewBox", `0 0 ${ARROWHEAD_W} ${ARROWHEAD_H}`).attr("refX", ARROWHEAD_W).attr("refY", ARROWHEAD_H / 2).attr("markerWidth", ARROWHEAD_W).attr("markerHeight", ARROWHEAD_H).attr("orient", "auto").append("polygon").attr("points", `0,0 ${ARROWHEAD_W},${ARROWHEAD_H / 2} 0,${ARROWHEAD_H}`).attr("fill", palette.textMuted);
196
+ defs.append("marker").attr("id", "sm-arrow").attr("viewBox", `0 0 ${ARROWHEAD_WIDTH} ${ARROWHEAD_HEIGHT}`).attr("refX", ARROWHEAD_WIDTH).attr("refY", ARROWHEAD_HEIGHT / 2).attr("markerWidth", ARROWHEAD_WIDTH).attr("markerHeight", ARROWHEAD_HEIGHT).attr("orient", "auto").append("polygon").attr(
197
+ "points",
198
+ `0,0 ${ARROWHEAD_WIDTH},${ARROWHEAD_HEIGHT / 2} 0,${ARROWHEAD_HEIGHT}`
199
+ ).attr("fill", palette.textMuted);
196
200
  const edgeColors = /* @__PURE__ */ new Set();
197
201
  for (const color of edgeColors) {
198
202
  const id = `sm-arrow-${color.replace("#", "")}`;
199
- defs.append("marker").attr("id", id).attr("viewBox", `0 0 ${ARROWHEAD_W} ${ARROWHEAD_H}`).attr("refX", ARROWHEAD_W).attr("refY", ARROWHEAD_H / 2).attr("markerWidth", ARROWHEAD_W).attr("markerHeight", ARROWHEAD_H).attr("orient", "auto").append("polygon").attr("points", `0,0 ${ARROWHEAD_W},${ARROWHEAD_H / 2} 0,${ARROWHEAD_H}`).attr("fill", color);
203
+ defs.append("marker").attr("id", id).attr("viewBox", `0 0 ${ARROWHEAD_WIDTH} ${ARROWHEAD_HEIGHT}`).attr("refX", ARROWHEAD_WIDTH).attr("refY", ARROWHEAD_HEIGHT / 2).attr("markerWidth", ARROWHEAD_WIDTH).attr("markerHeight", ARROWHEAD_HEIGHT).attr("orient", "auto").append("polygon").attr(
204
+ "points",
205
+ `0,0 ${ARROWHEAD_WIDTH},${ARROWHEAD_HEIGHT / 2} 0,${ARROWHEAD_HEIGHT}`
206
+ ).attr("fill", color);
200
207
  }
201
208
  const mainG = svg.append("g").attr("transform", `translate(${offsetX}, ${offsetY}) scale(${scale})`);
202
209
  if (!fixedTitle && showTitle) {
@@ -283,7 +290,7 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
283
290
  const mid = edge.points[Math.floor(edge.points.length / 2)];
284
291
  const labelW = measureText(edge.label, sEdgeLabelFontSize) + 10;
285
292
  const labelH = sEdgeLabelFontSize + 6;
286
- edgeG.append("rect").attr("x", mid.x - labelW / 2).attr("y", mid.y - labelH / 2 - 1).attr("width", labelW).attr("height", labelH).attr("rx", 3).attr("fill", palette.bg).attr("opacity", 0.85).attr("class", "sitemap-edge-label-bg");
293
+ edgeG.append("rect").attr("x", mid.x - labelW / 2).attr("y", mid.y - labelH / 2 - 1).attr("width", labelW).attr("height", labelH).attr("rx", 3).attr("fill", palette.bg).attr("opacity", EDGE_LABEL_KNOCKOUT_OPACITY).attr("class", "sitemap-edge-label-bg");
287
294
  edgeG.append("text").attr("x", mid.x).attr("y", mid.y + 4).attr("text-anchor", "middle").attr("fill", edgeColor).attr("font-size", sEdgeLabelFontSize).attr("class", "sitemap-edge-label").text(edge.label);
288
295
  }
289
296
  }
@@ -449,11 +456,12 @@ function renderLegend(parent, legendGroups, palette, isDark, activeTagGroup, fix
449
456
  }
450
457
  }
451
458
  async function renderSitemapForExport(content, theme, palette) {
452
- const { parseSitemap } = await import("./parser-2GMHFSTS.js");
453
- const { layoutSitemap } = await import("./layout-VUZ3MLOI.js");
454
- const { getPalette } = await import("./palettes-54YSI3IX.js");
459
+ const { parseSitemap } = await import("./parser-66QZQYGE.js");
460
+ const { layoutSitemap } = await import("./layout-LELNMRM5.js");
461
+ const { getPalette, DEFAULT_PALETTE_ID } = await import("./palettes-IAF6WVL4.js");
455
462
  const isDark = theme === "dark";
456
- const effectivePalette = palette ?? (isDark ? getPalette("nord").dark : getPalette("nord").light);
463
+ const defaultCfg = getPalette(DEFAULT_PALETTE_ID);
464
+ const effectivePalette = palette ?? (isDark ? defaultCfg.dark : defaultCfg.light);
457
465
  const parsed = parseSitemap(content, effectivePalette);
458
466
  if (parsed.error || parsed.roots.length === 0) return "";
459
467
  const sitemapLayout = layoutSitemap(parsed, void 0, null, void 0, true);
@@ -500,4 +508,4 @@ export {
500
508
  renderSitemap,
501
509
  renderSitemapForExport
502
510
  };
503
- //# sourceMappingURL=chunk-FF7LRT5L.js.map
511
+ //# sourceMappingURL=chunk-YQIZIKCK.js.map
@@ -13,7 +13,7 @@ import {
13
13
  normalizeNumericToken,
14
14
  parseFirstLine,
15
15
  parseSeriesNames
16
- } from "./chunk-M5OOAP65.js";
16
+ } from "./chunk-4CA7TJ44.js";
17
17
  import {
18
18
  RECOGNIZED_COLOR_NAMES,
19
19
  resolveColorWithDiagnostic
@@ -1208,4 +1208,4 @@ export {
1208
1208
  getSimpleChartLegendGroups,
1209
1209
  getExtendedChartLegendGroups
1210
1210
  };
1211
- //# sourceMappingURL=chunk-M526IKKH.js.map
1211
+ //# sourceMappingURL=chunk-Z4COUG7H.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tryCollectNote
3
- } from "./chunk-76NHL5UG.js";
3
+ } from "./chunk-7I6NWTPE.js";
4
4
  import {
5
5
  resolveNotes
6
6
  } from "./chunk-E6PNTYRK.js";
@@ -17,7 +17,7 @@ import {
17
17
  measureIndent,
18
18
  parseFirstLine,
19
19
  tryParseSharedOption
20
- } from "./chunk-M5OOAP65.js";
20
+ } from "./chunk-4CA7TJ44.js";
21
21
  import {
22
22
  resolveColorWithDiagnostic
23
23
  } from "./chunk-XOGQY4EC.js";
@@ -454,4 +454,4 @@ export {
454
454
  looksLikeClassDiagram,
455
455
  extractSymbols
456
456
  };
457
- //# sourceMappingURL=chunk-LTTZX6RD.js.map
457
+ //# sourceMappingURL=chunk-Z5ZCTCX4.js.map
@@ -11,7 +11,7 @@ import {
11
11
  tagAttrKey,
12
12
  validateTagGroupNames,
13
13
  validateTagValues
14
- } from "./chunk-76LHNLGX.js";
14
+ } from "./chunk-O2HU4AQN.js";
15
15
  import {
16
16
  MINDMAP_REGISTRY,
17
17
  OPTION_NOCOLON_RE,
@@ -23,7 +23,7 @@ import {
23
23
  tryParseSharedOption,
24
24
  warnUnknownMetaKeys,
25
25
  withTagAliases
26
- } from "./chunk-M5OOAP65.js";
26
+ } from "./chunk-4CA7TJ44.js";
27
27
  import {
28
28
  formatDgmoError,
29
29
  makeDgmoError,
@@ -337,4 +337,4 @@ function findMetadataParent(indent, indentStack) {
337
337
  export {
338
338
  parseMindmap
339
339
  };
340
- //# sourceMappingURL=chunk-QOVM5VRC.js.map
340
+ //# sourceMappingURL=chunk-ZASX45SU.js.map
@@ -4,13 +4,13 @@ import {
4
4
  matchTagBlockHeading,
5
5
  stripDefaultModifier,
6
6
  tagAttrKey
7
- } from "./chunk-76LHNLGX.js";
7
+ } from "./chunk-O2HU4AQN.js";
8
8
  import {
9
9
  FILL_FAMILY_TOKENS,
10
10
  extractColor,
11
11
  measureIndent,
12
12
  parseFirstLine
13
- } from "./chunk-M5OOAP65.js";
13
+ } from "./chunk-4CA7TJ44.js";
14
14
  import {
15
15
  emit
16
16
  } from "./chunk-5SI6T5A5.js";
@@ -692,4 +692,4 @@ export {
692
692
  SWIMLANE_DIAGNOSTICS,
693
693
  parseSwimlane
694
694
  };
695
- //# sourceMappingURL=chunk-W7UBPARG.js.map
695
+ //# sourceMappingURL=chunk-ZH3BWGTE.js.map
@@ -16,7 +16,7 @@ import {
16
16
  splitNameAndMeta,
17
17
  tryParseSharedOption,
18
18
  warnUnknownMetaKeys
19
- } from "./chunk-M5OOAP65.js";
19
+ } from "./chunk-4CA7TJ44.js";
20
20
  import {
21
21
  resolveColorWithDiagnostic
22
22
  } from "./chunk-XOGQY4EC.js";
@@ -492,4 +492,4 @@ export {
492
492
  parseRaci,
493
493
  allTasks
494
494
  };
495
- //# sourceMappingURL=chunk-TN754B3R.js.map
495
+ //# sourceMappingURL=chunk-ZZZJVDIL.js.map
package/dist/clock.js CHANGED
@@ -220,6 +220,12 @@ function mix(a, b, pct) {
220
220
  return out;
221
221
  }
222
222
 
223
+ // src/utils/now.ts
224
+ var pinnedMs = null;
225
+ function now() {
226
+ return pinnedMs ?? Date.now();
227
+ }
228
+
223
229
  // src/clock/ticker.ts
224
230
  function readWork(node) {
225
231
  const start = node.getAttribute("data-dgmo-clock-work-start");
@@ -260,16 +266,16 @@ function setDigits(group, main) {
260
266
  if (s) s.setAttribute("x", stackX);
261
267
  }
262
268
  }
263
- function updateRow(group, now) {
269
+ function updateRow(group, now2) {
264
270
  const zone = group.getAttribute("data-dgmo-clock-zone");
265
271
  if (!zone) return;
266
272
  const fixedAttr = group.getAttribute("data-dgmo-clock-fixed-offset");
267
- const parts = fixedAttr !== null ? fixedParts(Number(fixedAttr), now) : zoneParts(zone, now);
273
+ const parts = fixedAttr !== null ? fixedParts(Number(fixedAttr), now2) : zoneParts(zone, now2);
268
274
  const latAttr = group.getAttribute("data-dgmo-clock-lat");
269
275
  const lonAttr = group.getAttribute("data-dgmo-clock-lon");
270
276
  const sunOn = group.getAttribute("data-dgmo-clock-sun") === "1";
271
277
  const hasCoords = latAttr !== null && lonAttr !== null;
272
- const sun = sunOn && hasCoords ? sunLine(now, Number(latAttr), Number(lonAttr)) : null;
278
+ const sun = sunOn && hasCoords ? sunLine(now2, Number(latAttr), Number(lonAttr)) : null;
273
279
  const up = sun ? sun.up : parts.h >= 6 && parts.h < 18;
274
280
  const c = (name) => group.getAttribute(`data-dgmo-clock-c-${name}`) ?? "";
275
281
  const stColor = up ? c("day") : c("night");
@@ -338,8 +344,8 @@ function updateRow(group, now) {
338
344
  }
339
345
  function tickClocks(root = document) {
340
346
  if (typeof document === "undefined") return;
341
- const now = Date.now();
342
- root.querySelectorAll("[data-dgmo-clock]").forEach((group) => updateRow(group, now));
347
+ const now2 = now();
348
+ root.querySelectorAll("[data-dgmo-clock]").forEach((group) => updateRow(group, now2));
343
349
  }
344
350
  var intervalStarted = false;
345
351
  function startClocks(root = document) {