@diagrammo/dgmo 0.96.0 → 0.98.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 (264) hide show
  1. package/dist/advanced.d.ts +178 -8
  2. package/dist/advanced.js +232 -246
  3. package/dist/block.d.ts +8 -0
  4. package/dist/block.js +138 -66
  5. package/dist/{calculator-GIB7POFX.js → calculator-CIGGTURF.js} +2 -2
  6. package/dist/{chart-meta-uImk4eTn.d.ts → chart-meta-B7niEd52.d.ts} +3 -1
  7. package/dist/chart-meta.d.ts +2 -2
  8. package/dist/chart-meta.js +19 -19
  9. package/dist/{chart-types-CBVYiLqy.d.ts → chart-types-Dxtv4XSz.d.ts} +3 -0
  10. package/dist/{charts-d3-IRP5VANE.js → charts-d3-INWEGMSD.js} +14 -14
  11. package/dist/{chunk-VLI6AWS3.js → chunk-3C4OXVZJ.js} +2 -2
  12. package/dist/{chunk-I3ZRIMR7.js → chunk-3EDV56HL.js} +15 -15
  13. package/dist/{chunk-OO4GUE4E.js → chunk-3F74NDUY.js} +63 -18
  14. package/dist/{chunk-RGFVHYDP.js → chunk-3IUMSK72.js} +2 -2
  15. package/dist/chunk-42AZPI2W.js +150 -0
  16. package/dist/{chunk-H7AXCRO7.js → chunk-453IWXZ3.js} +0 -11
  17. package/dist/{chunk-FHX373L5.js → chunk-47INRTZ6.js} +2 -2
  18. package/dist/{chunk-IN7XI6NO.js → chunk-4NMRS6HW.js} +1 -1
  19. package/dist/{chunk-JBAFAKGX.js → chunk-4PZP6URA.js} +41 -51
  20. package/dist/{chunk-5LG526X7.js → chunk-5TGZBHEJ.js} +1 -1
  21. package/dist/{chunk-BD4O4D2A.js → chunk-5WZYJC2P.js} +2 -2
  22. package/dist/{chunk-DPNSDCR3.js → chunk-65JFUANT.js} +1 -1
  23. package/dist/{chunk-EZ6BI5LL.js → chunk-6OUMYNAJ.js} +1 -1
  24. package/dist/{chunk-U6N547QA.js → chunk-6PUBFB6D.js} +24 -3
  25. package/dist/{chunk-IKXQ6NVR.js → chunk-6Q46GMKH.js} +21 -58
  26. package/dist/{chunk-DKCVAQU3.js → chunk-6YRTBI2F.js} +53 -75
  27. package/dist/{chunk-RTRORHSP.js → chunk-7QKWU7FX.js} +3 -3
  28. package/dist/{chunk-A6YINTY6.js → chunk-7RACGVUY.js} +1 -1
  29. package/dist/{chunk-H7RQG4PH.js → chunk-A3N4UHHL.js} +2 -2
  30. package/dist/{chunk-UNCCZ3NU.js → chunk-A3V72YIL.js} +14 -1
  31. package/dist/chunk-AHUBG6GR.js +188 -0
  32. package/dist/{chunk-P3PSLC2K.js → chunk-AULFF7L2.js} +2 -2
  33. package/dist/{chunk-SCYVGPLI.js → chunk-B7ZH5EQ2.js} +2 -2
  34. package/dist/{chunk-TUOZ6AXC.js → chunk-BTFB7W5Z.js} +16 -4
  35. package/dist/{chunk-THTYCJGF.js → chunk-BWVJTYTJ.js} +4 -4
  36. package/dist/{chunk-VGAMBOOC.js → chunk-C6ME2L4T.js} +2 -2
  37. package/dist/{chunk-H7JVKUA5.js → chunk-CES7REQM.js} +44 -60
  38. package/dist/{chunk-B2YVZ3QU.js → chunk-CGP7RGLJ.js} +1 -1
  39. package/dist/{chunk-34JOHSVE.js → chunk-CUTEHGXO.js} +2 -2
  40. package/dist/{chunk-NERQSSYD.js → chunk-D67YE4LR.js} +1 -1
  41. package/dist/{chunk-TPCP2UOI.js → chunk-D6XR22KO.js} +3 -3
  42. package/dist/{chunk-OAZ6BIIB.js → chunk-D7FHY6DO.js} +9 -7
  43. package/dist/{chunk-67N26CER.js → chunk-DA2GIHAY.js} +38 -5
  44. package/dist/{chunk-PGD6CNWO.js → chunk-DFEVFLEG.js} +3 -3
  45. package/dist/{chunk-VVTCUIPN.js → chunk-DKMZ4VMV.js} +1 -1
  46. package/dist/{chunk-VJ7NLYFE.js → chunk-DYI73PFY.js} +3 -3
  47. package/dist/{chunk-IQZSKWE5.js → chunk-E6GHXMH2.js} +8 -8
  48. package/dist/{chunk-I2I2FKAK.js → chunk-EBJLT7PH.js} +1 -1
  49. package/dist/{chunk-K2SFH3GJ.js → chunk-ENXENGW5.js} +3 -3
  50. package/dist/{chunk-FKJWZWNU.js → chunk-EUPUVYWO.js} +1 -1
  51. package/dist/{chunk-26EVL454.js → chunk-F4DGHT3F.js} +20 -0
  52. package/dist/{chunk-WLGOIMTI.js → chunk-FDVUD3PR.js} +4 -4
  53. package/dist/{chunk-IU7XKZA6.js → chunk-FK6HZYGK.js} +4 -14
  54. package/dist/{chunk-67RKJEKF.js → chunk-FTRW6YGU.js} +35 -11
  55. package/dist/{chunk-2M3K6GD2.js → chunk-FTW2E2YH.js} +6 -6
  56. package/dist/{chunk-5P2L5QXE.js → chunk-FZVCS2XY.js} +4 -2
  57. package/dist/chunk-G24NSISJ.js +69 -0
  58. package/dist/{chunk-4B45SNZH.js → chunk-G36XKXWT.js} +17 -15
  59. package/dist/{chunk-5H7SA5ZD.js → chunk-GFQFLLP3.js} +2 -2
  60. package/dist/{chunk-MAYTYF5S.js → chunk-GMJBBFKC.js} +3 -3
  61. package/dist/{chunk-5BG4OSWJ.js → chunk-GNQYARON.js} +20 -57
  62. package/dist/{chunk-RVOSA4RR.js → chunk-GNWCMWTO.js} +441 -267
  63. package/dist/{chunk-VLC6WNRD.js → chunk-GULGSH2Z.js} +4 -0
  64. package/dist/{chunk-H5NVCOEJ.js → chunk-GXBH7WNN.js} +2 -2
  65. package/dist/{chunk-7UWVHNPM.js → chunk-H242TVAE.js} +9 -9
  66. package/dist/{chunk-CD7VQCDL.js → chunk-H7XXQSYA.js} +63 -53
  67. package/dist/{chunk-GLCMUTO5.js → chunk-HQNZJMNS.js} +1 -1
  68. package/dist/{chunk-WTPS73RM.js → chunk-II6D6NWX.js} +8 -8
  69. package/dist/{chunk-3W73ZP6W.js → chunk-IMBFWXHF.js} +3 -3
  70. package/dist/{chunk-5ARANBIE.js → chunk-IUFTAFGN.js} +2 -2
  71. package/dist/{chunk-AQRSEQZV.js → chunk-IZEKHIV6.js} +3 -3
  72. package/dist/{chunk-WGNP5ND2.js → chunk-J3YM6RA5.js} +3 -3
  73. package/dist/{chunk-YFIUABSF.js → chunk-J467QBZF.js} +23 -3
  74. package/dist/{chunk-EPDBWATV.js → chunk-K7RRXZHS.js} +4 -2
  75. package/dist/{chunk-TIPNNOZC.js → chunk-KKJG3LBY.js} +41 -19
  76. package/dist/{chunk-YVIPJGFG.js → chunk-KMB754DO.js} +33 -6
  77. package/dist/chunk-KNKZGRRB.js +439 -0
  78. package/dist/{chunk-SIABEREK.js → chunk-KTGJQJB3.js} +2 -2
  79. package/dist/{chunk-LGUFJ7Y2.js → chunk-KW3CC7SB.js} +1 -1
  80. package/dist/{chunk-ITDF3MWD.js → chunk-L3K5O3Z5.js} +3 -3
  81. package/dist/{chunk-NI4L6HEU.js → chunk-LZATSXAA.js} +1 -1
  82. package/dist/{chunk-EPB3UEMD.js → chunk-NBISN6FH.js} +2 -2
  83. package/dist/{chunk-VNAPEZX2.js → chunk-NHN6GBG7.js} +1 -1
  84. package/dist/{chunk-EM5SA7NC.js → chunk-NQFZ7LXC.js} +4 -4
  85. package/dist/chunk-NTDWVTEY.js +12 -0
  86. package/dist/{chunk-ZBOIYC2G.js → chunk-NXOIH5JK.js} +8 -13
  87. package/dist/{chunk-AUXUNV73.js → chunk-O3HRF25Z.js} +1 -1
  88. package/dist/{chunk-KDWEOT54.js → chunk-O5APWRZN.js} +192 -230
  89. package/dist/{chunk-GLL237AP.js → chunk-OSSA5UWA.js} +3 -3
  90. package/dist/{chunk-UOCWYLYT.js → chunk-OZXKW5NA.js} +1 -1
  91. package/dist/{chunk-QEU6VM4O.js → chunk-PLQZJZ2K.js} +1 -1
  92. package/dist/chunk-PRG7NIUU.js +272 -0
  93. package/dist/{chunk-CP73WWLN.js → chunk-PRYAVMU6.js} +48 -14
  94. package/dist/{chunk-KAO7JL4I.js → chunk-PU5X3P3T.js} +6 -5
  95. package/dist/{chunk-B7BSRVNC.js → chunk-PZ5LAAO3.js} +2 -2
  96. package/dist/{chunk-TOHTKLKE.js → chunk-Q5Q5JLRT.js} +1 -1
  97. package/dist/{chunk-MVUNMJKO.js → chunk-Q6OKTHYL.js} +71 -57
  98. package/dist/{chunk-ZOKD5F7M.js → chunk-QDPTOIG7.js} +5 -5
  99. package/dist/{chunk-2BYFNZVM.js → chunk-QGSQ2LMB.js} +57 -15
  100. package/dist/{chunk-ERT7XDQW.js → chunk-QIITSGI5.js} +1 -1
  101. package/dist/{chunk-K2WXMXI2.js → chunk-QLIZ7SB7.js} +1 -1
  102. package/dist/{chunk-P6LKX3IQ.js → chunk-QOLRTPGH.js} +6 -6
  103. package/dist/{chunk-FBK32S4D.js → chunk-R4SXMBGF.js} +1 -1
  104. package/dist/chunk-R4U7IIRX.js +178 -0
  105. package/dist/{chunk-DWMQ24JR.js → chunk-RC6PISCK.js} +4 -2
  106. package/dist/{chunk-R5L5E3TC.js → chunk-REKLKGR6.js} +3 -3
  107. package/dist/{chunk-FUYEXLAN.js → chunk-RFGQDIOI.js} +837 -220
  108. package/dist/{chunk-W5MMPPGX.js → chunk-ROFSIFSY.js} +4 -4
  109. package/dist/{chunk-JCC3B2GS.js → chunk-ROH4LYBL.js} +65 -21
  110. package/dist/{chunk-MYHR3PMH.js → chunk-S5VZLZUQ.js} +7 -7
  111. package/dist/{chunk-JRN2CRXJ.js → chunk-TDUBTDXS.js} +1 -1
  112. package/dist/{chunk-IZFJZCF6.js → chunk-TGQQD2KC.js} +84 -16
  113. package/dist/{chunk-GM2SLMQW.js → chunk-TMB4YY3J.js} +34 -4
  114. package/dist/{chunk-HH3DHNQA.js → chunk-UWWQECLC.js} +2 -2
  115. package/dist/{chunk-HZX4QZGR.js → chunk-V65EDV6S.js} +3 -3
  116. package/dist/{chunk-OYGJZA24.js → chunk-VHVQT4EW.js} +39 -19
  117. package/dist/{chunk-KQAPFIYF.js → chunk-VQWLASDC.js} +2 -2
  118. package/dist/chunk-VTGGPBLW.js +14 -0
  119. package/dist/{chunk-LRHPBWOY.js → chunk-VUBCCY65.js} +32 -69
  120. package/dist/{chunk-JILEYZ2V.js → chunk-VVL2KKG4.js} +1 -1
  121. package/dist/{chunk-D7DGLJ7N.js → chunk-VVZDBUHA.js} +2 -2
  122. package/dist/{chunk-B5CEV7IR.js → chunk-VYEIMHL5.js} +38 -14
  123. package/dist/{chunk-XCKNFFKM.js → chunk-WH6E6SHC.js} +2 -4
  124. package/dist/{chunk-P2GNNEMN.js → chunk-WPYJAHRP.js} +1 -1
  125. package/dist/{chunk-RIK6WUMO.js → chunk-XCYGOCMS.js} +43 -26
  126. package/dist/{chunk-PWZEJNO6.js → chunk-XMUFXJI2.js} +6 -6
  127. package/dist/{chunk-5G4DOOX2.js → chunk-XPOEE2RW.js} +9 -5
  128. package/dist/{chunk-EMGNCG5C.js → chunk-XZGXVN4T.js} +5 -5
  129. package/dist/{chunk-BUVLLK3D.js → chunk-Y24QPREP.js} +27 -17
  130. package/dist/{chunk-GEHK4UD5.js → chunk-YCIOLYWL.js} +92 -23
  131. package/dist/{chunk-V2NQV7VL.js → chunk-YFIDR7JH.js} +2 -2
  132. package/dist/{chunk-6XLMTAEX.js → chunk-YIHRLY55.js} +33 -6
  133. package/dist/{chunk-CYRB2JTN.js → chunk-YLKPRT6U.js} +1 -1
  134. package/dist/{chunk-KMU65FYM.js → chunk-YSDSFXQD.js} +1 -1
  135. package/dist/{chunk-M4ZUIW3J.js → chunk-Z6V73LD6.js} +3 -3
  136. package/dist/{chunk-ZI6WC24V.js → chunk-ZBJV4KNU.js} +1 -1
  137. package/dist/{chunk-YSGOXZBB.js → chunk-ZMVMGZAJ.js} +1 -1
  138. package/dist/{chunk-O2HNVNKO.js → chunk-ZTKO2RD4.js} +5 -5
  139. package/dist/{chunk-5GU6C5WB.js → chunk-ZXPSNBZC.js} +3 -3
  140. package/dist/collapse-6IGH2B24.js +31 -0
  141. package/dist/collapse-GOWNCVHZ.js +7 -0
  142. package/dist/collapse-HNTPLB2Q.js +11 -0
  143. package/dist/collapse-NUM7DPJA.js +10 -0
  144. package/dist/completion-registry.js +27 -4
  145. package/dist/dgmo-router-RXV7BNPN.js +101 -0
  146. package/dist/dimensions-KXAI7U2B.js +21 -0
  147. package/dist/editor.js +882 -215
  148. package/dist/{flowchart-parser-SM5LHF2D.js → flowchart-parser-JAZRKKKJ.js} +5 -5
  149. package/dist/flowchart-renderer-JED3RESY.js +40 -0
  150. package/dist/fold-at-line-DmSAa1eU.d.ts +11 -0
  151. package/dist/highlight.js +883 -216
  152. package/dist/index.d.ts +52 -5
  153. package/dist/index.js +79 -63
  154. package/dist/{layout-LNVIH45F.js → layout-6QXAC2WA.js} +7 -6
  155. package/dist/{layout-2WESJYRE.js → layout-7E7BNOGO.js} +3 -2
  156. package/dist/layout-BSK374N6.js +11 -0
  157. package/dist/{layout-FCFUVCRI.js → layout-DJOZCSAP.js} +10 -10
  158. package/dist/{layout-R6G4MEO3.js → layout-FJDBY3WG.js} +5 -5
  159. package/dist/{layout-H2KP5A6M.js → layout-GC5XX2RH.js} +2 -2
  160. package/dist/{layout-KELSNWBD.js → layout-LCHMEGTV.js} +10 -10
  161. package/dist/{layout-PPIVGJXD.js → layout-ROI5KVSO.js} +3 -3
  162. package/dist/{layout-3TSVAGWH.js → layout-SPPS225I.js} +3 -3
  163. package/dist/{layout-AF4KA5B2.js → layout-VHBM32OD.js} +6 -6
  164. package/dist/{layout-HF3PMI4H.js → layout-VTGOYGRC.js} +2 -2
  165. package/dist/layout-WTHBGTH2.js +15 -0
  166. package/dist/layout-ZCCABSV7.js +15 -0
  167. package/dist/{layout-MPSH3YWE.js → layout-ZDMJL4KO.js} +10 -10
  168. package/dist/{layout-search-C2TYUH4L.js → layout-search-UZYZE4PR.js} +8 -8
  169. package/dist/{legend-constants-55MFBXYF.js → legend-constants-KF3MKWL2.js} +2 -2
  170. package/dist/{parser-6WURFLOB.js → parser-3KMY23A2.js} +3 -3
  171. package/dist/{parser-DGLKH4NT.js → parser-3PMYAVFL.js} +2 -2
  172. package/dist/{parser-OHBBDCG4.js → parser-5KVFS4RN.js} +2 -2
  173. package/dist/{parser-QWTECQEC.js → parser-ASXY2CPV.js} +6 -6
  174. package/dist/{parser-UHKROC7Z.js → parser-BA43YPIQ.js} +3 -3
  175. package/dist/{parser-F75WNYMK.js → parser-CFAYEWLF.js} +3 -3
  176. package/dist/{parser-MWINQNQW.js → parser-DRFEX6OX.js} +3 -3
  177. package/dist/{parser-W6NX3AIV.js → parser-DWVBRBB2.js} +3 -3
  178. package/dist/{parser-DRUGM3R6.js → parser-FWQY3HJX.js} +2 -2
  179. package/dist/{parser-4GHAYZKZ.js → parser-GBB5MYAN.js} +6 -6
  180. package/dist/{parser-GBQY3WOZ.js → parser-GMCXCJSP.js} +3 -3
  181. package/dist/{parser-BPYHIG24.js → parser-IHFHPFL7.js} +3 -3
  182. package/dist/{parser-TTGZYLYD.js → parser-JQGUTDSX.js} +3 -3
  183. package/dist/{parser-BNRX35NT.js → parser-JRKPOO2Z.js} +3 -3
  184. package/dist/{parser-B7SCN7FG.js → parser-KI2XYB2R.js} +2 -2
  185. package/dist/parser-LDVVBP7S.js +12 -0
  186. package/dist/{parser-L7SI3PW4.js → parser-MAGFK6OK.js} +4 -4
  187. package/dist/{parser-722KLLAQ.js → parser-MH5BDN7X.js} +3 -3
  188. package/dist/{parser-5RUD4A3X.js → parser-MUHFEM4G.js} +3 -3
  189. package/dist/{parser-Y7QXD2UR.js → parser-P375HO7Q.js} +2 -2
  190. package/dist/{parser-LUJX7AXO.js → parser-PYY5BRLQ.js} +2 -2
  191. package/dist/parser-QEMFMVF5.js +12 -0
  192. package/dist/{parser-WIKXZP4X.js → parser-QIPDBT5M.js} +2 -2
  193. package/dist/{parser-2AXU2MHJ.js → parser-RNBDDEGL.js} +3 -3
  194. package/dist/{parser-H6HT2WFQ.js → parser-SGX2PVR5.js} +2 -2
  195. package/dist/{parser-ZWWQZ4XZ.js → parser-SJUEFKNM.js} +3 -3
  196. package/dist/{parser-4BOP77CD.js → parser-UMNBPXG2.js} +2 -2
  197. package/dist/{parser-GM5B2EPW.js → parser-WE4VSBBY.js} +3 -3
  198. package/dist/{parser-XEJP37GQ.js → parser-WKEYS7N3.js} +3 -3
  199. package/dist/{parser-DWV2CYBS.js → parser-WPXUUNA2.js} +3 -3
  200. package/dist/{parser-5HQPPVHJ.js → parser-XP3RCOTN.js} +3 -3
  201. package/dist/{parser-F3JJNIFC.js → parser-YV4RBHG7.js} +3 -3
  202. package/dist/{parser-CRJYLOHA.js → parser-YZ3J542U.js} +2 -2
  203. package/dist/{parser-ZV756RMP.js → parser-ZSBMGGTD.js} +6 -6
  204. package/dist/renderer-37LMEGLD.js +26 -0
  205. package/dist/{renderer-TS5NHOQD.js → renderer-3EIZRVO3.js} +12 -11
  206. package/dist/renderer-4LK2RFHD.js +28 -0
  207. package/dist/{renderer-BYLQ37T2.js → renderer-4WD4ZIEH.js} +16 -15
  208. package/dist/renderer-67PNYODC.js +32 -0
  209. package/dist/{renderer-GKY55M4Z.js → renderer-6O5SV5YE.js} +10 -10
  210. package/dist/{renderer-VNJOZPSH.js → renderer-6VBL2DWH.js} +17 -17
  211. package/dist/{renderer-F7YGMEGQ.js → renderer-7OXMSF4R.js} +4 -4
  212. package/dist/{renderer-6HU44IGJ.js → renderer-A36NL2SS.js} +8 -8
  213. package/dist/renderer-CC6O6GQK.js +18 -0
  214. package/dist/renderer-CUEMI3PI.js +85 -0
  215. package/dist/{renderer-QZJZIAT3.js → renderer-D6BEC6LI.js} +6 -4
  216. package/dist/{renderer-5GP7YUS4.js → renderer-DT2PP7NJ.js} +7 -6
  217. package/dist/{renderer-MGF2NNGG.js → renderer-E7LC7HCU.js} +5 -5
  218. package/dist/{renderer-PEJF6R2I.js → renderer-F3JYZERE.js} +4 -4
  219. package/dist/{renderer-CVCCW7UT.js → renderer-FAFSRFGR.js} +9 -9
  220. package/dist/renderer-GHYW6Y3A.js +27 -0
  221. package/dist/{renderer-VUXAAGUG.js → renderer-HRUKL4T6.js} +12 -11
  222. package/dist/renderer-INQMQPNN.js +22 -0
  223. package/dist/{renderer-LJPUCG3U.js → renderer-KOPJ76GS.js} +10 -10
  224. package/dist/renderer-KVC7Z4T2.js +39 -0
  225. package/dist/{renderer-MVBAQP3M.js → renderer-MYKL6VG6.js} +6 -6
  226. package/dist/{renderer-D6EH5UQ6.js → renderer-QVUPRQ4L.js} +13 -12
  227. package/dist/{renderer-SYRH3B62.js → renderer-RBAMFLZQ.js} +14 -13
  228. package/dist/{renderer-YJVQT7QG.js → renderer-S6L3JR6C.js} +11 -11
  229. package/dist/{renderer-ONENGXFQ.js → renderer-SGRZKIMS.js} +14 -12
  230. package/dist/{renderer-NOYLNVTI.js → renderer-SYWVZ4CY.js} +3 -3
  231. package/dist/{renderer-66NCRXSC.js → renderer-TJPBVNVG.js} +14 -11
  232. package/dist/renderer-WK2BPXND.js +41 -0
  233. package/dist/renderer-ZG7WOBBN.js +30 -0
  234. package/dist/{renderer-N6PM5CSG.js → renderer-ZRPL5COW.js} +14 -13
  235. package/dist/{renderer-2V2XY2V7.js → renderer-ZTHXOBXW.js} +8 -8
  236. package/dist/{renderer-radial-4R7AKETK.js → renderer-radial-FC25BDCZ.js} +8 -8
  237. package/dist/{state-parser-EQBBEKHR.js → state-parser-LSFAJFMV.js} +6 -6
  238. package/dist/state-renderer-QTDBFB4F.js +43 -0
  239. package/dist/{themes-CbJL3w8L.d.ts → themes-DoLdhUXV.d.ts} +1 -1
  240. package/docs/ai-integration.md +4 -3
  241. package/docs/language-reference.md +100 -14
  242. package/gallery/fixtures/swot-relabel.dgmo +19 -0
  243. package/gallery/fixtures/swot-tags.dgmo +16 -0
  244. package/gallery/fixtures/swot.dgmo +13 -0
  245. package/package.json +1 -1
  246. package/dist/chunk-R2K5L4UA.js +0 -49
  247. package/dist/collapse-TCVK3RPO.js +0 -8
  248. package/dist/dgmo-router-EPBQKQW2.js +0 -100
  249. package/dist/dimensions-DBCRBZIU.js +0 -21
  250. package/dist/flowchart-renderer-PPS2GTTD.js +0 -40
  251. package/dist/layout-3J72UULM.js +0 -15
  252. package/dist/layout-IXQNVRBE.js +0 -15
  253. package/dist/layout-VDCJOZSH.js +0 -11
  254. package/dist/parser-HM6FEX5K.js +0 -14
  255. package/dist/renderer-2MCV75JQ.js +0 -41
  256. package/dist/renderer-5AEDVLAA.js +0 -31
  257. package/dist/renderer-7C76HP5W.js +0 -30
  258. package/dist/renderer-7RAMBMTH.js +0 -22
  259. package/dist/renderer-E3334XLT.js +0 -84
  260. package/dist/renderer-LFZKG2GR.js +0 -26
  261. package/dist/renderer-MZIWP55B.js +0 -28
  262. package/dist/renderer-N75E3UVY.js +0 -25
  263. package/dist/renderer-VNUDN6F5.js +0 -39
  264. package/dist/state-renderer-SOGZ2CNN.js +0 -42
@@ -4,17 +4,20 @@ import {
4
4
  import {
5
5
  computeNodeSizing,
6
6
  layoutPert
7
- } from "./chunk-NI4L6HEU.js";
7
+ } from "./chunk-LZATSXAA.js";
8
8
  import {
9
9
  serializeSvg
10
- } from "./chunk-CYRB2JTN.js";
10
+ } from "./chunk-YLKPRT6U.js";
11
11
  import {
12
12
  ScaleContext
13
13
  } from "./chunk-24YPR5EH.js";
14
+ import {
15
+ renderCollapseBar
16
+ } from "./chunk-42AZPI2W.js";
14
17
  import {
15
18
  INLINE_HEADER_PAD,
16
19
  layoutInlineHeader
17
- } from "./chunk-R5L5E3TC.js";
20
+ } from "./chunk-REKLKGR6.js";
18
21
  import {
19
22
  CAPTION_BOX_PADDING_X,
20
23
  CAPTION_BOX_PADDING_Y,
@@ -25,12 +28,11 @@ import {
25
28
  TITLE_FONT_SIZE,
26
29
  TITLE_FONT_WEIGHT,
27
30
  TITLE_Y
28
- } from "./chunk-VLC6WNRD.js";
31
+ } from "./chunk-GULGSH2Z.js";
29
32
  import {
30
33
  ARROWHEAD_HEIGHT,
31
34
  ARROWHEAD_WIDTH,
32
35
  CARD_RADIUS,
33
- COLLAPSE_BAR_HEIGHT,
34
36
  CONTAINER_HEADER_HEIGHT,
35
37
  CONTAINER_LABEL_FONT_SIZE,
36
38
  CONTAINER_RADIUS,
@@ -40,16 +42,16 @@ import {
40
42
  LABEL_FONT_SIZE,
41
43
  META_FONT_SIZE,
42
44
  NODE_STROKE_WIDTH
43
- } from "./chunk-XCKNFFKM.js";
45
+ } from "./chunk-WH6E6SHC.js";
44
46
  import {
45
47
  renderIntegratedLegend
46
- } from "./chunk-PGD6CNWO.js";
48
+ } from "./chunk-DFEVFLEG.js";
47
49
  import {
48
50
  getLegendExtent
49
- } from "./chunk-JILEYZ2V.js";
51
+ } from "./chunk-VVL2KKG4.js";
50
52
  import {
51
53
  parsePert
52
- } from "./chunk-34JOHSVE.js";
54
+ } from "./chunk-CUTEHGXO.js";
53
55
  import {
54
56
  addCalendarDays,
55
57
  formatDuration,
@@ -66,15 +68,15 @@ import {
66
68
  resolveGroupTagColor,
67
69
  resolveTagColor,
68
70
  tagAttrKey
69
- } from "./chunk-LGUFJ7Y2.js";
71
+ } from "./chunk-KW3CC7SB.js";
70
72
  import {
71
73
  LEGEND_HEIGHT
72
- } from "./chunk-UOCWYLYT.js";
74
+ } from "./chunk-OZXKW5NA.js";
73
75
  import {
74
76
  measureText,
75
77
  truncateText,
76
78
  wrapTextToWidth
77
- } from "./chunk-KAO7JL4I.js";
79
+ } from "./chunk-PU5X3P3T.js";
78
80
  import {
79
81
  contrastText,
80
82
  groupFill,
@@ -228,7 +230,6 @@ function renderPert(container, resolved, layout, palette, isDark, options = {})
228
230
  const sContainerRadius = ctx.structural(CONTAINER_RADIUS);
229
231
  const sContainerLabelFontSize = ctx.text(CONTAINER_LABEL_FONT_SIZE);
230
232
  const sContainerHeaderHeight = ctx.structural(CONTAINER_HEADER_HEIGHT);
231
- const sCollapseBarHeight = ctx.structural(COLLAPSE_BAR_HEIGHT);
232
233
  const sPinIconW = ctx.structural(PIN_ICON_W);
233
234
  const sPinIconH = ctx.structural(PIN_ICON_H);
234
235
  const scaledWidth = layout.width + sDiagramPad * 2;
@@ -304,7 +305,7 @@ function renderPert(container, resolved, layout, palette, isDark, options = {})
304
305
  containerRadius: sContainerRadius,
305
306
  containerLabelFontSize: sContainerLabelFontSize,
306
307
  containerHeaderHeight: sContainerHeaderHeight,
307
- collapseBarHeight: sCollapseBarHeight,
308
+ scale: ctx,
308
309
  nodeTopRowHeight: sNodeTopRowHeight,
309
310
  nodeBottomRowHeight: sNodeBottomRowHeight,
310
311
  nodeFontSize: sNodeFontSize,
@@ -718,7 +719,7 @@ function renderGroups(root, resolved, layout, palette, isDark, collapsedSet, siz
718
719
  const g = layer.append("g").attr(
719
720
  "class",
720
721
  isCollapsed ? "pert-group pert-group-collapsed" : "pert-group"
721
- ).attr("data-group-id", grp.id).attr("data-group-toggle", grp.id).attr("data-collapsed", String(isCollapsed)).attr("data-line-number", String(resolvedGroup?.group.lineNumber ?? 0)).attr("data-critical-path", String(memberCritical)).attr("data-criticality-band", memberBand ?? "").style("cursor", "pointer");
722
+ ).attr("data-group-id", grp.id).attr("data-group-toggle", grp.id).attr("role", "button").attr("aria-expanded", isCollapsed ? "false" : "true").attr("aria-label", label).attr("data-collapsed", String(isCollapsed)).attr("data-line-number", String(resolvedGroup?.group.lineNumber ?? 0)).attr("data-critical-path", String(memberCritical)).attr("data-criticality-band", memberBand ?? "").style("cursor", "pointer");
722
723
  if (isCollapsed) {
723
724
  const projectStart = resolved.projectStart;
724
725
  const muStr = formatDuration(resolvedGroup?.rolledMu ?? null, unit, "?");
@@ -762,7 +763,6 @@ function renderGroups(root, resolved, layout, palette, isDark, collapsedSet, siz
762
763
  palette.textOnFillDark
763
764
  );
764
765
  const sNR = sc.nodeRadius ?? CARD_RADIUS;
765
- const sCBH = sc.collapseBarHeight ?? COLLAPSE_BAR_HEIGHT;
766
766
  drawTextbookCard(g, {
767
767
  width: grp.width,
768
768
  height: grp.height,
@@ -791,9 +791,17 @@ function renderGroups(root, resolved, layout, palette, isDark, collapsedSet, siz
791
791
  sPinIconH: sc.pinIconH
792
792
  });
793
793
  const safeGroupId = grp.id.replace(/[^A-Za-z0-9_-]/g, "_");
794
- const clipId = `pert-group-clip-${safeGroupId}`;
795
- g.append("clipPath").attr("id", clipId).append("rect").attr("x", grp.x).attr("y", grp.y).attr("width", grp.width).attr("height", grp.height).attr("rx", sNR).attr("ry", sNR);
796
- g.append("rect").attr("class", "pert-collapse-bar").attr("x", grp.x).attr("y", grp.y + grp.height - sCBH).attr("width", grp.width).attr("height", sCBH).attr("fill", cardBaseColor).attr("clip-path", `url(#${clipId})`);
794
+ renderCollapseBar(g, {
795
+ x: grp.x,
796
+ y: grp.y,
797
+ width: grp.width,
798
+ height: grp.height,
799
+ rx: sNR,
800
+ fill: cardBaseColor,
801
+ clipId: `pert-group-clip-${safeGroupId}`,
802
+ prefix: "pert",
803
+ ...sc.scale && { scale: sc.scale }
804
+ });
797
805
  continue;
798
806
  }
799
807
  const sCR = sc.containerRadius ?? CONTAINER_RADIUS;
@@ -802,6 +810,18 @@ function renderGroups(root, resolved, layout, palette, isDark, collapsedSet, siz
802
810
  const sNSW = sc.nodeStrokeWidth ?? NODE_STROKE_WIDTH;
803
811
  g.append("rect").attr("x", grp.x).attr("y", grp.y).attr("width", grp.width).attr("height", grp.height).attr("rx", sCR).attr("ry", sCR).attr("fill", containerFill).attr("stroke", containerStroke).attr("stroke-opacity", grpTagColor ? 1 : 0.35).attr("stroke-width", sNSW);
804
812
  g.append("text").attr("x", grp.x + grp.width / 2).attr("y", grp.y + sCHH / 2 + sCLFS / 2 - 2).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("fill", palette.text).attr("font-size", sCLFS).attr("font-weight", "bold").text(label);
813
+ renderCollapseBar(g, {
814
+ expanded: true,
815
+ x: grp.x,
816
+ y: grp.y,
817
+ width: grp.width,
818
+ height: grp.height,
819
+ rx: sCR,
820
+ fill: containerStroke,
821
+ clipId: `pert-group-clip-${grp.id.replace(/[^A-Za-z0-9_-]/g, "_")}`,
822
+ prefix: "pert",
823
+ ...sc.scale && { scale: sc.scale }
824
+ });
805
825
  }
806
826
  }
807
827
  function renderEdges(root, resolved, layout, palette, collapsedSet, sc = {}) {
@@ -17,7 +17,7 @@ import {
17
17
  stripDefaultModifier,
18
18
  tagAttrKey,
19
19
  validateTagGroupNames
20
- } from "./chunk-LGUFJ7Y2.js";
20
+ } from "./chunk-KW3CC7SB.js";
21
21
  import {
22
22
  AliasRegistry,
23
23
  GANTT_BOOLEAN_SET,
@@ -32,7 +32,7 @@ import {
32
32
  splitNameAndMeta,
33
33
  warnUnknownMetaKeys,
34
34
  withTagAliases
35
- } from "./chunk-FUYEXLAN.js";
35
+ } from "./chunk-RFGQDIOI.js";
36
36
  import {
37
37
  getSeriesColors
38
38
  } from "./chunk-6GXLAKUH.js";
@@ -0,0 +1,14 @@
1
+ // src/shape-caps.ts
2
+ var CYLINDER_RY = 8;
3
+ var QUEUE_CAP = 16;
4
+ var FILE_WAVE = 10;
5
+ var SEQUENCE_CYLINDER_RY = 7;
6
+ var SEQUENCE_QUEUE_CAP = 10;
7
+
8
+ export {
9
+ CYLINDER_RY,
10
+ QUEUE_CAP,
11
+ FILE_WAVE,
12
+ SEQUENCE_CYLINDER_RY,
13
+ SEQUENCE_QUEUE_CAP
14
+ };
@@ -1,20 +1,21 @@
1
1
  import {
2
- edgeSplinePath
3
- } from "./chunk-26EVL454.js";
2
+ edgeSplinePath,
3
+ renderGraphTitle
4
+ } from "./chunk-F4DGHT3F.js";
4
5
  import {
5
6
  NODE_LABEL_LINE_HEIGHT,
6
7
  layoutGraph,
7
8
  wrapNodeLabel
8
- } from "./chunk-5GU6C5WB.js";
9
+ } from "./chunk-ZXPSNBZC.js";
9
10
  import {
10
11
  appendArrowheadMarkers
11
12
  } from "./chunk-XBJJP2HN.js";
12
13
  import {
13
14
  fitDiagramToCanvas
14
- } from "./chunk-EPDBWATV.js";
15
+ } from "./chunk-K7RRXZHS.js";
15
16
  import {
16
17
  serializeSvg
17
- } from "./chunk-CYRB2JTN.js";
18
+ } from "./chunk-YLKPRT6U.js";
18
19
  import {
19
20
  ScaleContext
20
21
  } from "./chunk-24YPR5EH.js";
@@ -22,38 +23,34 @@ import {
22
23
  INLINE_HEADER_PAD,
23
24
  layoutInlineHeader,
24
25
  measureTitleWidth
25
- } from "./chunk-R5L5E3TC.js";
26
+ } from "./chunk-REKLKGR6.js";
26
27
  import {
27
28
  TITLE_FONT_SIZE,
28
- TITLE_FONT_WEIGHT,
29
29
  TITLE_Y
30
- } from "./chunk-VLC6WNRD.js";
30
+ } from "./chunk-GULGSH2Z.js";
31
31
  import {
32
32
  ARROWHEAD_HEIGHT,
33
33
  ARROWHEAD_WIDTH,
34
34
  EDGE_LABEL_KNOCKOUT_OPACITY,
35
35
  EDGE_STROKE_WIDTH,
36
36
  NODE_STROKE_WIDTH
37
- } from "./chunk-XCKNFFKM.js";
37
+ } from "./chunk-WH6E6SHC.js";
38
38
  import {
39
39
  parseFlowchart
40
- } from "./chunk-H7RQG4PH.js";
40
+ } from "./chunk-A3N4UHHL.js";
41
41
  import {
42
- NOTE_BADGE_RADIUS,
43
- noteConnectorPoints,
44
- renderNoteBadge,
45
- renderNoteBox,
46
- renderNoteConnector
47
- } from "./chunk-67N26CER.js";
42
+ NOTE_FONT_SIZE,
43
+ renderNodeNote
44
+ } from "./chunk-DA2GIHAY.js";
48
45
  import {
49
46
  FONT_FAMILY
50
47
  } from "./chunk-ICLB27PZ.js";
51
48
  import {
52
49
  fillModeFromOptions
53
- } from "./chunk-FUYEXLAN.js";
50
+ } from "./chunk-RFGQDIOI.js";
54
51
  import {
55
52
  measureText
56
- } from "./chunk-KAO7JL4I.js";
53
+ } from "./chunk-PU5X3P3T.js";
57
54
  import {
58
55
  contrastText,
59
56
  shapeFill
@@ -336,6 +333,11 @@ function renderFlowchart(container, graph, layout, palette, isDark, onClickItem,
336
333
  const titleHeight = showTitle ? 40 : 0;
337
334
  const diagramW = layout.width;
338
335
  const diagramH = layout.height;
336
+ const smallestTextPx = Math.min(
337
+ sNodeFontSize,
338
+ layout.edges.some((e) => e.label) ? sEdgeLabelFontSize : Infinity,
339
+ graph.options?.["no-notes"] !== "on" && layout.nodes.some((n) => n.note && !n.note.collapsed) ? NOTE_FONT_SIZE : Infinity
340
+ );
339
341
  const fit = fitDiagramToCanvas({
340
342
  width,
341
343
  height,
@@ -344,6 +346,7 @@ function renderFlowchart(container, graph, layout, palette, isDark, onClickItem,
344
346
  padding: sDiagramPadding,
345
347
  titleHeight,
346
348
  maxScale: MAX_SCALE,
349
+ smallestTextPx,
347
350
  exportMode: !!exportDims
348
351
  });
349
352
  const { scale, offsetY, canvasHeight } = fit;
@@ -381,20 +384,16 @@ function renderFlowchart(container, graph, layout, palette, isDark, onClickItem,
381
384
  colors: edgeColors
382
385
  });
383
386
  if (showTitle) {
384
- const titleEl = svg.append("text").attr("class", "chart-title").attr("x", header.titleX).attr("y", sTitleY).attr("text-anchor", header.titleAnchor).attr("fill", palette.text).attr("font-size", sTitleFontSize).attr("font-weight", TITLE_FONT_WEIGHT).style(
385
- "cursor",
386
- onClickItem && graph.titleLineNumber ? "pointer" : "default"
387
- ).text(graph.title);
388
- if (graph.titleLineNumber) {
389
- titleEl.attr("data-line-number", graph.titleLineNumber);
390
- if (onClickItem) {
391
- titleEl.on("click", () => onClickItem(graph.titleLineNumber)).on("mouseenter", function() {
392
- d3Selection.select(this).attr("opacity", 0.7);
393
- }).on("mouseleave", function() {
394
- d3Selection.select(this).attr("opacity", 1);
395
- });
396
- }
397
- }
387
+ renderGraphTitle(svg, {
388
+ title: graph.title ?? "",
389
+ titleLineNumber: graph.titleLineNumber,
390
+ x: header.titleX,
391
+ y: sTitleY,
392
+ anchor: header.titleAnchor,
393
+ fontSize: sTitleFontSize,
394
+ color: palette.text,
395
+ onClickItem
396
+ });
398
397
  }
399
398
  const contentG = svg.append("g").attr("transform", `translate(${offsetX}, ${offsetY}) scale(${scale})`);
400
399
  const LABEL_PAD = 8;
@@ -551,43 +550,7 @@ function renderFlowchart(container, graph, layout, palette, isDark, onClickItem,
551
550
  });
552
551
  }
553
552
  if (hasNote && node.note) {
554
- if (node.note.collapsed) {
555
- renderNoteBadge(
556
- nodeG,
557
- {
558
- x: node.width / 2 - NOTE_BADGE_RADIUS - 3,
559
- y: -node.height / 2 + NOTE_BADGE_RADIUS + 3
560
- },
561
- palette,
562
- {
563
- isDark,
564
- ...node.note.color && { color: node.note.color },
565
- lineNumber: node.note.lineNumber,
566
- endLineNumber: node.note.endLineNumber
567
- }
568
- );
569
- } else {
570
- const [cx1, cy1, cx2, cy2] = noteConnectorPoints(node, node.note);
571
- renderNoteConnector(nodeG, cx1, cy1, cx2, cy2, palette);
572
- renderNoteBox(
573
- nodeG,
574
- {
575
- x: node.note.x,
576
- y: node.note.y,
577
- width: node.note.width,
578
- height: node.note.height
579
- },
580
- node.note.lines,
581
- palette,
582
- {
583
- isDark,
584
- ...node.note.color && { color: node.note.color },
585
- lineNumber: node.note.lineNumber,
586
- endLineNumber: node.note.endLineNumber,
587
- interactive: true
588
- }
589
- );
590
- }
553
+ renderNodeNote(nodeG, node, node.note, palette, isDark);
591
554
  }
592
555
  }
593
556
  }
@@ -13,7 +13,7 @@ import {
13
13
  LEGEND_TOGGLE_DOT_R,
14
14
  measureLegendText,
15
15
  truncateLegendText
16
- } from "./chunk-UOCWYLYT.js";
16
+ } from "./chunk-OZXKW5NA.js";
17
17
 
18
18
  // src/utils/number-format.ts
19
19
  function compactNumber(n) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  isTagBlockHeading
3
- } from "./chunk-LGUFJ7Y2.js";
3
+ } from "./chunk-KW3CC7SB.js";
4
4
  import {
5
5
  OPTION_NOCOLON_RE,
6
6
  measureIndent,
7
7
  parseFirstLine,
8
8
  tryParseSharedOption
9
- } from "./chunk-FUYEXLAN.js";
9
+ } from "./chunk-RFGQDIOI.js";
10
10
  import {
11
11
  formatDgmoError,
12
12
  makeDgmoError
@@ -1,37 +1,40 @@
1
1
  import {
2
2
  isBlockNode
3
3
  } from "./chunk-XSVWUOUZ.js";
4
+ import {
5
+ renderCollapseBar
6
+ } from "./chunk-42AZPI2W.js";
4
7
  import {
5
8
  layoutInlineHeader
6
- } from "./chunk-R5L5E3TC.js";
9
+ } from "./chunk-REKLKGR6.js";
7
10
  import {
8
11
  TITLE_FONT_SIZE,
9
12
  TITLE_FONT_WEIGHT,
10
13
  TITLE_Y
11
- } from "./chunk-VLC6WNRD.js";
14
+ } from "./chunk-GULGSH2Z.js";
12
15
  import {
13
16
  EDGE_DASH
14
- } from "./chunk-XCKNFFKM.js";
17
+ } from "./chunk-WH6E6SHC.js";
15
18
  import {
16
19
  renderIntegratedLegend
17
- } from "./chunk-PGD6CNWO.js";
20
+ } from "./chunk-DFEVFLEG.js";
18
21
  import {
19
22
  getLegendExtent,
20
23
  getMaxLegendReservedHeight
21
- } from "./chunk-JILEYZ2V.js";
24
+ } from "./chunk-VVL2KKG4.js";
22
25
  import {
23
26
  FONT_FAMILY
24
27
  } from "./chunk-ICLB27PZ.js";
25
28
  import {
26
29
  resolveTagColor,
27
30
  tagAttrKey
28
- } from "./chunk-LGUFJ7Y2.js";
31
+ } from "./chunk-KW3CC7SB.js";
29
32
  import {
30
33
  LEGEND_GROUP_GAP
31
- } from "./chunk-UOCWYLYT.js";
34
+ } from "./chunk-OZXKW5NA.js";
32
35
  import {
33
36
  measureText
34
- } from "./chunk-KAO7JL4I.js";
37
+ } from "./chunk-PU5X3P3T.js";
35
38
  import {
36
39
  mix,
37
40
  themeBaseBg
@@ -46,7 +49,6 @@ var BLOCK_PAD = 10;
46
49
  var BLOCK_LEAF_H = 46;
47
50
  var BLOCK_HEADER_H = 28;
48
51
  var BLOCK_COLLAPSED_H = 46;
49
- var BLOCK_BAR_H = 6;
50
52
  var MIN_COL = 104;
51
53
  var MAX_COL = 250;
52
54
  var LABEL_FS = 13;
@@ -322,11 +324,18 @@ function drawItems(g, items, ctx, path = []) {
322
324
  }
323
325
  if (it.type === "collapsed") {
324
326
  const fill2 = color ? fillMode === "solid" ? color : fillMode === "outline" ? themeBaseBg(palette, ctx.isDark) : mix(color, palette.bg, 12) : palette.surface;
325
- const cid = `dgmo-block-clip-${clipCounter++}`;
326
- cell.append("clipPath").attr("id", cid).append("rect").attr("x", it.x).attr("y", it.y).attr("width", it.w).attr("height", it.h).attr("rx", 10);
327
327
  cell.append("rect").attr("x", it.x).attr("y", it.y).attr("width", it.w).attr("height", it.h).attr("rx", 10).attr("fill", fill2).attr("stroke", stroke).attr("stroke-width", 1.5);
328
328
  cell.append("text").attr("x", it.x + it.w / 2).attr("y", it.y + it.h / 2 + 4).attr("text-anchor", "middle").attr("font-size", 12.5).attr("font-weight", "bold").attr("fill", palette.text).text(clipLabel(it.label ?? "", it.w - 24, 12.5));
329
- cell.append("rect").attr("x", it.x).attr("y", it.y + it.h - BLOCK_BAR_H).attr("width", it.w).attr("height", BLOCK_BAR_H).attr("fill", fillMode === "solid" && color ? palette.text : stroke).attr("clip-path", `url(#${cid})`);
329
+ renderCollapseBar(cell, {
330
+ x: it.x,
331
+ y: it.y,
332
+ width: it.w,
333
+ height: it.h,
334
+ rx: 10,
335
+ fill: fillMode === "solid" && color ? palette.text : stroke,
336
+ clipId: `dgmo-block-clip-${clipCounter++}`,
337
+ prefix: "block"
338
+ });
330
339
  bindToggle(cell, it, ctx, it.h);
331
340
  continue;
332
341
  }
@@ -342,7 +351,19 @@ function drawItems(g, items, ctx, path = []) {
342
351
  const headerOpacity = 0.92 - grow * 0.3;
343
352
  const headerY = it.y + Math.round(headerFs * 0.7) + 7;
344
353
  cell.append("text").attr("x", it.x + it.w / 2).attr("y", headerY).attr("text-anchor", "middle").attr("font-size", headerFs).attr("font-weight", "bold").attr("fill", palette.text).attr("opacity", headerOpacity).text(clipLabel(it.label ?? "", it.w - 24, headerFs));
345
- bindToggle(cell, it, ctx, BLOCK_HEADER_H);
354
+ if (bindToggle(cell, it, ctx, BLOCK_HEADER_H)) {
355
+ renderCollapseBar(cell, {
356
+ expanded: true,
357
+ x: it.x,
358
+ y: it.y,
359
+ width: it.w,
360
+ height: it.h,
361
+ rx: 10,
362
+ fill: fillMode === "solid" && color ? palette.text : stroke,
363
+ clipId: `dgmo-block-clip-${clipCounter++}`,
364
+ prefix: "block"
365
+ });
366
+ }
346
367
  if (it.inner) drawItems(g, it.inner, ctx, itemPath);
347
368
  continue;
348
369
  }
@@ -353,10 +374,13 @@ function drawItems(g, items, ctx, path = []) {
353
374
  }
354
375
  }
355
376
  function bindToggle(cell, it, ctx, hitH) {
356
- if (!ctx.onToggle || !it.node || it.lineNumber === void 0) return;
377
+ if (!it.node || it.lineNumber === void 0) return false;
357
378
  const id = it.node.id;
358
379
  const ln = it.lineNumber;
380
+ cell.attr("data-group-toggle", id).attr("role", "button").attr("aria-expanded", String(it.type !== "collapsed")).attr("aria-label", it.label ?? id);
381
+ if (!ctx.onToggle) return true;
359
382
  cell.append("rect").attr("x", it.x).attr("y", it.y).attr("width", it.w).attr("height", hitH).attr("rx", 10).attr("fill", "transparent").style("cursor", "pointer").on("click", () => ctx.onToggle(id, ln));
383
+ return true;
360
384
  }
361
385
  function authoredCollapsedIds(parsed) {
362
386
  const into = /* @__PURE__ */ new Set();
@@ -3,7 +3,7 @@ var NODE_STROKE_WIDTH = 1.5;
3
3
  var EDGE_STROKE_WIDTH = 1.5;
4
4
  var CARD_RADIUS = 6;
5
5
  var CONTAINER_RADIUS = 8;
6
- var COLLAPSE_BAR_INSET = 0;
6
+ var COLLAPSE_BAR_HEIGHT = 4;
7
7
  var EDGE_LABEL_KNOCKOUT_OPACITY = 0.9;
8
8
  var EDGE_LABEL_UNRESOLVED_KNOCKOUT_OPACITY = 1;
9
9
  var ARROWHEAD_WIDTH = 10;
@@ -19,7 +19,6 @@ var LABEL_FONT_SIZE = 13;
19
19
  var META_FONT_SIZE = 11;
20
20
  var META_LINE_HEIGHT = 16;
21
21
  var SEPARATOR_GAP = 6;
22
- var COLLAPSE_BAR_HEIGHT = 6;
23
22
  var CONTAINER_HEADER_HEIGHT = 28;
24
23
  var CONTAINER_LABEL_FONT_SIZE = 13;
25
24
  var CONTAINER_META_FONT_SIZE = 11;
@@ -30,7 +29,7 @@ export {
30
29
  EDGE_STROKE_WIDTH,
31
30
  CARD_RADIUS,
32
31
  CONTAINER_RADIUS,
33
- COLLAPSE_BAR_INSET,
32
+ COLLAPSE_BAR_HEIGHT,
34
33
  EDGE_LABEL_KNOCKOUT_OPACITY,
35
34
  EDGE_LABEL_UNRESOLVED_KNOCKOUT_OPACITY,
36
35
  ARROWHEAD_WIDTH,
@@ -44,7 +43,6 @@ export {
44
43
  META_FONT_SIZE,
45
44
  META_LINE_HEIGHT,
46
45
  SEPARATOR_GAP,
47
- COLLAPSE_BAR_HEIGHT,
48
46
  CONTAINER_HEADER_HEIGHT,
49
47
  CONTAINER_LABEL_FONT_SIZE,
50
48
  CONTAINER_META_FONT_SIZE,
@@ -13,7 +13,7 @@ import {
13
13
  normalizeNumericToken,
14
14
  parseFirstLine,
15
15
  parseSeriesNames
16
- } from "./chunk-FUYEXLAN.js";
16
+ } from "./chunk-RFGQDIOI.js";
17
17
  import {
18
18
  RECOGNIZED_COLOR_NAMES,
19
19
  resolveColorWithDiagnostic