@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
@@ -9,7 +9,7 @@ import {
9
9
  stripDefaultModifier,
10
10
  tagAttrKey,
11
11
  validateTagGroupNames
12
- } from "./chunk-LGUFJ7Y2.js";
12
+ } from "./chunk-KW3CC7SB.js";
13
13
  import {
14
14
  AliasRegistry,
15
15
  KANBAN_REGISTRY,
@@ -22,7 +22,7 @@ import {
22
22
  splitNameAndMeta,
23
23
  warnUnknownMetaKeys,
24
24
  withTagAliases
25
- } from "./chunk-FUYEXLAN.js";
25
+ } from "./chunk-RFGQDIOI.js";
26
26
  import {
27
27
  resolveColorWithDiagnostic
28
28
  } from "./chunk-3J7O3CU6.js";
@@ -1,19 +1,22 @@
1
1
  import {
2
2
  ScaleContext
3
3
  } from "./chunk-24YPR5EH.js";
4
+ import {
5
+ renderCollapseBar
6
+ } from "./chunk-42AZPI2W.js";
4
7
  import {
5
8
  TITLE_FONT_SIZE,
6
9
  TITLE_FONT_WEIGHT
7
- } from "./chunk-VLC6WNRD.js";
10
+ } from "./chunk-GULGSH2Z.js";
8
11
  import {
9
12
  FONT_FAMILY
10
13
  } from "./chunk-ICLB27PZ.js";
11
14
  import {
12
15
  fillModeFromOptions
13
- } from "./chunk-FUYEXLAN.js";
16
+ } from "./chunk-RFGQDIOI.js";
14
17
  import {
15
18
  measureText
16
- } from "./chunk-KAO7JL4I.js";
19
+ } from "./chunk-PU5X3P3T.js";
17
20
  import {
18
21
  contrastText,
19
22
  mix,
@@ -42,6 +45,7 @@ function getElementSemanticColor(el, palette) {
42
45
  }
43
46
  return null;
44
47
  }
48
+ var wfClipCounter = 0;
45
49
  function renderWireframe(container, parsed, layout, palette, isDark, _onClickItem, exportDims, theme, options) {
46
50
  const opts = options ?? {};
47
51
  const effectiveExportDims = opts.exportDims ?? exportDims;
@@ -57,6 +61,7 @@ function renderWireframe(container, parsed, layout, palette, isDark, _onClickIte
57
61
  } else {
58
62
  svg.attr("width", "100%").style("display", "block");
59
63
  }
64
+ wfClipCounter = 0;
60
65
  const ctx = {
61
66
  palette,
62
67
  isTransparent: effectiveTheme === "transparent",
@@ -176,7 +181,14 @@ function renderGroup(g, node, ctx, depth) {
176
181
  g.append("text").attr("x", 10).attr("y", 18).attr("fill", palette.textMuted).attr("font-size", 11).attr("font-weight", "bold").attr("letter-spacing", "0.5px").text(el.label.toUpperCase());
177
182
  }
178
183
  if (el.states.includes("collapsed")) {
179
- g.append("text").attr("x", node.width - 20).attr("y", 18).attr("fill", palette.textMuted).attr("font-size", 12).attr("opacity", 0.6).text("\u25B6");
184
+ renderCollapseBar(g, {
185
+ width: node.width,
186
+ height: node.height,
187
+ rx: GROUP_CORNER,
188
+ fill: palette.border,
189
+ clipId: `wf-collapse-clip-${wfClipCounter++}`,
190
+ prefix: "wf"
191
+ });
180
192
  return;
181
193
  }
182
194
  if (el.states.includes("scrollable")) {
@@ -5,16 +5,16 @@ import {
5
5
  import {
6
6
  LABEL_REACH_WIDE,
7
7
  placeEdgeLabels
8
- } from "./chunk-IN7XI6NO.js";
8
+ } from "./chunk-4NMRS6HW.js";
9
9
  import {
10
10
  buildPlacedNotes,
11
11
  noteCanvasShift,
12
12
  resolveNotes
13
- } from "./chunk-HH3DHNQA.js";
13
+ } from "./chunk-UWWQECLC.js";
14
14
  import {
15
15
  measureText,
16
16
  wrapTextToWidth
17
- } from "./chunk-KAO7JL4I.js";
17
+ } from "./chunk-PU5X3P3T.js";
18
18
 
19
19
  // src/boxes-and-lines/layout.ts
20
20
  var MARGIN = 40;
@@ -105,7 +105,7 @@ function computeNodeSize(node, reserveValueRow) {
105
105
  return { width: w, height: Math.max(NODE_HEIGHT, totalHeight) };
106
106
  }
107
107
  async function layoutBoxesAndLines(parsed, collapseInfo, layoutOptions) {
108
- const { layoutBoxesAndLinesSearch } = await import("./layout-search-C2TYUH4L.js");
108
+ const { layoutBoxesAndLinesSearch } = await import("./layout-search-UZYZE4PR.js");
109
109
  const searchOpts = {
110
110
  ...layoutOptions?.hideDescriptions !== void 0 && {
111
111
  hideDescriptions: layoutOptions.hideDescriptions
@@ -6,10 +6,10 @@ import {
6
6
  BOX_CLEAR_PAD,
7
7
  EDGE_LABEL_FONT_SIZE,
8
8
  measureEdgeLabel
9
- } from "./chunk-IN7XI6NO.js";
9
+ } from "./chunk-4NMRS6HW.js";
10
10
  import {
11
11
  measureText
12
- } from "./chunk-KAO7JL4I.js";
12
+ } from "./chunk-PU5X3P3T.js";
13
13
 
14
14
  // src/boxes-and-lines/edge-clip.ts
15
15
  function rectBorderPoint(rect, toward) {
@@ -10,14 +10,17 @@ import {
10
10
  import {
11
11
  ScaleContext
12
12
  } from "./chunk-24YPR5EH.js";
13
+ import {
14
+ renderCollapseBar
15
+ } from "./chunk-42AZPI2W.js";
13
16
  import {
14
17
  layoutInlineHeader
15
- } from "./chunk-R5L5E3TC.js";
18
+ } from "./chunk-REKLKGR6.js";
16
19
  import {
17
20
  TITLE_FONT_SIZE,
18
21
  TITLE_FONT_WEIGHT,
19
22
  TITLE_Y
20
- } from "./chunk-VLC6WNRD.js";
23
+ } from "./chunk-GULGSH2Z.js";
21
24
  import {
22
25
  ARROWHEAD_HEIGHT,
23
26
  ARROWHEAD_WIDTH,
@@ -27,21 +30,17 @@ import {
27
30
  EDGE_LABEL_UNRESOLVED_KNOCKOUT_OPACITY,
28
31
  EDGE_STROKE_WIDTH,
29
32
  NODE_STROKE_WIDTH
30
- } from "./chunk-XCKNFFKM.js";
33
+ } from "./chunk-WH6E6SHC.js";
31
34
  import {
32
35
  renderIntegratedLegend
33
- } from "./chunk-PGD6CNWO.js";
36
+ } from "./chunk-DFEVFLEG.js";
34
37
  import {
35
38
  getLegendExtent,
36
39
  getMaxLegendReservedHeight
37
- } from "./chunk-JILEYZ2V.js";
40
+ } from "./chunk-VVL2KKG4.js";
38
41
  import {
39
- NOTE_BADGE_RADIUS,
40
- noteConnectorPoints,
41
- renderNoteBadge,
42
- renderNoteBox,
43
- renderNoteConnector
44
- } from "./chunk-67N26CER.js";
42
+ renderNodeNote
43
+ } from "./chunk-DA2GIHAY.js";
45
44
  import {
46
45
  wrapDescriptionLines
47
46
  } from "./chunk-7WEYXYLC.js";
@@ -56,17 +55,17 @@ import {
56
55
  resolveGroupTagColor,
57
56
  resolveTagColor,
58
57
  tagAttrKey
59
- } from "./chunk-LGUFJ7Y2.js";
58
+ } from "./chunk-KW3CC7SB.js";
60
59
  import {
61
60
  fillModeFromOptions,
62
61
  legendInlineRequested,
63
62
  legendSuppressed
64
- } from "./chunk-FUYEXLAN.js";
63
+ } from "./chunk-RFGQDIOI.js";
65
64
  import {
66
65
  CHAR_WIDTH_RATIO,
67
66
  measureText,
68
67
  truncateText
69
- } from "./chunk-KAO7JL4I.js";
68
+ } from "./chunk-PU5X3P3T.js";
70
69
  import {
71
70
  contrastText,
72
71
  groupFill,
@@ -89,7 +88,6 @@ var NODE_FONT_SIZE = 11;
89
88
  var MIN_NODE_FONT_SIZE = 9;
90
89
  var EDGE_LABEL_FONT_SIZE = 11;
91
90
  var NODE_RX = CARD_RADIUS;
92
- var COLLAPSE_BAR_HEIGHT = 4;
93
91
  var DESC_FONT_SIZE = 10;
94
92
  var DESC_LINE_HEIGHT = 1.4;
95
93
  var MAX_DESC_LINES = 6;
@@ -287,7 +285,6 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
287
285
  const sEdgeLabelFontSize = sctx.text(EDGE_LABEL_FONT_SIZE);
288
286
  const sEdgeStrokeWidth = sctx.structural(EDGE_STROKE_WIDTH);
289
287
  const sNodeStrokeWidth = sctx.structural(NODE_STROKE_WIDTH);
290
- const sCollapseBarHeight = sctx.structural(COLLAPSE_BAR_HEIGHT);
291
288
  const sDescFontSize = sctx.text(DESC_FONT_SIZE);
292
289
  const sGroupLabelFontSize = sctx.text(GROUP_LABEL_FONT_SIZE);
293
290
  const sGroupLabelZone = sctx.structural(GROUP_LABEL_ZONE);
@@ -457,14 +454,22 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
457
454
  const groupG = diagramG.append("g").attr(
458
455
  "class",
459
456
  group.collapsed ? "bl-group bl-group-collapsed" : "bl-group"
460
- ).attr("data-line-number", String(group.lineNumber)).attr("data-node-id", group.label).attr("data-group-toggle", group.label).style("cursor", "pointer");
457
+ ).attr("data-line-number", String(group.lineNumber)).attr("data-node-id", group.label).attr("data-group-toggle", group.label).attr("role", "button").attr("aria-expanded", group.collapsed ? "false" : "true").attr("aria-label", group.label).style("cursor", "pointer");
461
458
  if (group.collapsed) {
462
459
  const fillColor = groupTagColor ? groupFill(palette, isDark, groupTagColor) : themeBaseBg(palette, isDark);
463
460
  const strokeColor = groupTagColor ?? palette.border;
464
461
  groupG.append("rect").attr("x", gx).attr("y", gy).attr("width", group.width).attr("height", group.height).attr("rx", NODE_RX).attr("ry", NODE_RX).attr("fill", fillColor).attr("stroke", strokeColor).attr("stroke-width", sNodeStrokeWidth);
465
- const clipId = `bl-clip-${group.label.replace(/[[\]\s]/g, "")}`;
466
- groupG.append("clipPath").attr("id", clipId).append("rect").attr("x", gx).attr("y", gy).attr("width", group.width).attr("height", group.height).attr("rx", NODE_RX);
467
- groupG.append("rect").attr("x", gx).attr("y", gy + group.height - sCollapseBarHeight).attr("width", group.width).attr("height", sCollapseBarHeight).attr("fill", strokeColor).attr("clip-path", `url(#${clipId})`).attr("class", "bl-collapse-bar");
462
+ renderCollapseBar(groupG, {
463
+ x: gx,
464
+ y: gy,
465
+ width: group.width,
466
+ height: group.height,
467
+ rx: NODE_RX,
468
+ fill: strokeColor,
469
+ clipId: `bl-clip-${group.label.replace(/[[\]\s]/g, "")}`,
470
+ prefix: "bl",
471
+ scale: sctx
472
+ });
468
473
  const maxLabelLines = Math.max(
469
474
  2,
470
475
  Math.floor((group.height - 16) / (sMinNodeFontSize * 1.3))
@@ -490,6 +495,18 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
490
495
  } else {
491
496
  groupG.append("rect").attr("x", gx).attr("y", gy).attr("width", group.width).attr("height", groupHeight).attr("rx", GROUP_RX).attr("ry", GROUP_RX).attr("fill", groupFill(palette, isDark, groupTagColor)).attr("stroke", groupStroke(palette, groupTagColor)).attr("stroke-width", 1).attr("stroke-opacity", groupTagColor ? 1 : 0.35);
492
497
  groupG.append("text").attr("class", "bl-group-label").attr("x", gx + group.width / 2).attr("y", gy + 18).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("font-size", sGroupLabelFontSize).attr("font-weight", "bold").attr("fill", palette.text).text(group.label);
498
+ renderCollapseBar(groupG, {
499
+ expanded: true,
500
+ x: gx,
501
+ y: gy,
502
+ width: group.width,
503
+ height: groupHeight,
504
+ rx: GROUP_RX,
505
+ fill: groupStroke(palette, groupTagColor),
506
+ clipId: `bl-clip-${group.label.replace(/[[\]\s]/g, "")}`,
507
+ prefix: "bl",
508
+ scale: sctx
509
+ });
493
510
  }
494
511
  }
495
512
  for (let i = 0; i < layout.edges.length; i++) {
@@ -694,46 +711,13 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
694
711
  nodeG.attr(FULL_TEXT_ATTR, fullNodeText(node.label, drawnDesc));
695
712
  }
696
713
  if (ln.note) {
697
- if (ln.note.collapsed) {
698
- renderNoteBadge(
699
- nodeG,
700
- {
701
- x: ln.width / 2 - NOTE_BADGE_RADIUS - 3,
702
- y: -ln.height / 2 + NOTE_BADGE_RADIUS + 3
703
- },
704
- palette,
705
- {
706
- isDark,
707
- ...ln.note.color && { color: ln.note.color },
708
- lineNumber: ln.note.lineNumber,
709
- endLineNumber: ln.note.endLineNumber
710
- }
711
- );
712
- } else {
713
- const [cx1, cy1, cx2, cy2] = noteConnectorPoints(
714
- { width: ln.width, height: ln.height },
715
- ln.note
716
- );
717
- renderNoteConnector(nodeG, cx1, cy1, cx2, cy2, palette);
718
- renderNoteBox(
719
- nodeG,
720
- {
721
- x: ln.note.x,
722
- y: ln.note.y,
723
- width: ln.note.width,
724
- height: ln.note.height
725
- },
726
- ln.note.lines,
727
- palette,
728
- {
729
- isDark,
730
- ...ln.note.color && { color: ln.note.color },
731
- lineNumber: ln.note.lineNumber,
732
- endLineNumber: ln.note.endLineNumber,
733
- interactive: true
734
- }
735
- );
736
- }
714
+ renderNodeNote(
715
+ nodeG,
716
+ { width: ln.width, height: ln.height },
717
+ ln.note,
718
+ palette,
719
+ isDark
720
+ );
737
721
  }
738
722
  }
739
723
  const labelLayer = diagramG.append("g").attr("class", "bl-edge-labels");
@@ -8,7 +8,7 @@ import {
8
8
  splitNameAndMeta,
9
9
  tryParseSharedOption,
10
10
  warnUnknownMetaKeys
11
- } from "./chunk-FUYEXLAN.js";
11
+ } from "./chunk-RFGQDIOI.js";
12
12
  import {
13
13
  makeDgmoError,
14
14
  makeFail
@@ -21,7 +21,7 @@ import {
21
21
  tagAttrKey,
22
22
  validateTagGroupNames,
23
23
  validateTagValues
24
- } from "./chunk-LGUFJ7Y2.js";
24
+ } from "./chunk-KW3CC7SB.js";
25
25
  import {
26
26
  PERT_REGISTRY,
27
27
  extractColor,
@@ -31,7 +31,7 @@ import {
31
31
  splitNameAndMeta,
32
32
  warnUnknownMetaKeys,
33
33
  withTagAliases
34
- } from "./chunk-FUYEXLAN.js";
34
+ } from "./chunk-RFGQDIOI.js";
35
35
  import {
36
36
  emit,
37
37
  makeDgmoError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  measureText,
3
3
  truncateText
4
- } from "./chunk-KAO7JL4I.js";
4
+ } from "./chunk-PU5X3P3T.js";
5
5
 
6
6
  // src/utils/time-ticks.ts
7
7
  var TICK_LABEL_GAP = 8;
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  resolveNotes,
6
6
  tryCollectNote
7
- } from "./chunk-HH3DHNQA.js";
7
+ } from "./chunk-UWWQECLC.js";
8
8
  import {
9
9
  displayName,
10
10
  normalizeName
@@ -17,7 +17,7 @@ import {
17
17
  tagAttrKey,
18
18
  validateTagGroupNames,
19
19
  validateTagValues
20
- } from "./chunk-LGUFJ7Y2.js";
20
+ } from "./chunk-KW3CC7SB.js";
21
21
  import {
22
22
  ALL_CHART_TYPES,
23
23
  FILL_FAMILY_TOKENS,
@@ -30,7 +30,7 @@ import {
30
30
  parseMetadataRegion,
31
31
  tryParseSharedOption,
32
32
  withTagAliases
33
- } from "./chunk-FUYEXLAN.js";
33
+ } from "./chunk-RFGQDIOI.js";
34
34
  import {
35
35
  resolveColorWithDiagnostic
36
36
  } from "./chunk-3J7O3CU6.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  resolveNotes,
6
6
  tryCollectNote
7
- } from "./chunk-HH3DHNQA.js";
7
+ } from "./chunk-UWWQECLC.js";
8
8
  import {
9
9
  normalizeName
10
10
  } from "./chunk-NOTA6TEI.js";
@@ -18,7 +18,7 @@ import {
18
18
  tagAttrKey,
19
19
  validateTagGroupNames,
20
20
  validateTagValues
21
- } from "./chunk-LGUFJ7Y2.js";
21
+ } from "./chunk-KW3CC7SB.js";
22
22
  import {
23
23
  AliasRegistry,
24
24
  BOXES_AND_LINES_REGISTRY,
@@ -27,11 +27,12 @@ import {
27
27
  parseFirstLine,
28
28
  peelQuotedName,
29
29
  peelRampColors,
30
+ peelTrailingCollapsedFlag,
30
31
  splitNameAndMeta,
31
32
  tryParseSharedOption,
32
33
  warnUnknownMetaKeys,
33
34
  withTagAliases
34
- } from "./chunk-FUYEXLAN.js";
35
+ } from "./chunk-RFGQDIOI.js";
35
36
  import {
36
37
  makeDgmoError,
37
38
  suggest
@@ -426,16 +427,17 @@ function parseBoxesAndLines(content, palette) {
426
427
  );
427
428
  continue;
428
429
  }
429
- const groupMeta = parseTailMeta(
430
- groupMatch[2] ?? "",
431
- metaAliasMap
432
- ).metadata;
430
+ const groupPeel = peelTrailingCollapsedFlag(groupMatch[2] ?? "");
431
+ const groupMeta = parseTailMeta(groupPeel.rest, metaAliasMap).metadata;
432
+ const groupCollapsed = groupPeel.collapsed || groupMeta["collapsed"] === "true";
433
+ delete groupMeta["collapsed"];
433
434
  const parentGs = currentGroupState();
434
435
  const group = {
435
436
  label,
436
437
  children: [],
437
438
  lineNumber: lineNum,
438
439
  metadata: groupMeta,
440
+ ...groupCollapsed && { collapsed: true },
439
441
  ...parentGs ? { parentGroup: parentGs.group.label } : {}
440
442
  };
441
443
  if (parentGs && indent > parentGs.indent) {
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-QKPOIJBT.js";
7
7
  import {
8
8
  measureText
9
- } from "./chunk-KAO7JL4I.js";
9
+ } from "./chunk-PU5X3P3T.js";
10
10
  import {
11
11
  mix
12
12
  } from "./chunk-6GXLAKUH.js";
@@ -164,15 +164,48 @@ function renderNoteBadge(parent, center, palette, opts) {
164
164
  g.append("line").attr("x1", -3.5).attr("y1", -0.5).attr("x2", 1.5).attr("y2", -0.5).attr("stroke", palette.textMuted).attr("stroke-width", 0.75).style("pointer-events", "none");
165
165
  return g;
166
166
  }
167
+ function renderNodeNote(nodeG, node, note, palette, isDark) {
168
+ const accent = note.color ? { color: note.color } : {};
169
+ if (note.collapsed) {
170
+ renderNoteBadge(
171
+ nodeG,
172
+ {
173
+ x: node.width / 2 - NOTE_BADGE_RADIUS - 3,
174
+ y: -node.height / 2 + NOTE_BADGE_RADIUS + 3
175
+ },
176
+ palette,
177
+ {
178
+ isDark,
179
+ ...accent,
180
+ lineNumber: note.lineNumber,
181
+ endLineNumber: note.endLineNumber
182
+ }
183
+ );
184
+ return;
185
+ }
186
+ const [x1, y1, x2, y2] = noteConnectorPoints(node, note);
187
+ renderNoteConnector(nodeG, x1, y1, x2, y2, palette);
188
+ renderNoteBox(
189
+ nodeG,
190
+ { x: note.x, y: note.y, width: note.width, height: note.height },
191
+ note.lines,
192
+ palette,
193
+ {
194
+ isDark,
195
+ ...accent,
196
+ lineNumber: note.lineNumber,
197
+ endLineNumber: note.endLineNumber,
198
+ interactive: true
199
+ }
200
+ );
201
+ }
167
202
 
168
203
  export {
204
+ NOTE_FONT_SIZE,
169
205
  NOTE_GAP,
170
206
  NOTE_BULLET_INDENT,
171
207
  wrapNoteBody,
172
208
  noteBoxSize,
173
- renderNoteConnector,
174
209
  noteConnectorPoints,
175
- renderNoteBox,
176
- NOTE_BADGE_RADIUS,
177
- renderNoteBadge
210
+ renderNodeNote
178
211
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  computeLegendLayout
3
- } from "./chunk-JILEYZ2V.js";
3
+ } from "./chunk-VVL2KKG4.js";
4
4
  import {
5
5
  FONT_FAMILY
6
6
  } from "./chunk-ICLB27PZ.js";
7
7
  import {
8
8
  tagAttrKey
9
- } from "./chunk-LGUFJ7Y2.js";
9
+ } from "./chunk-KW3CC7SB.js";
10
10
  import {
11
11
  CONTROLS_ICON_PATH,
12
12
  LEGEND_DOT_R,
@@ -19,7 +19,7 @@ import {
19
19
  LEGEND_TOGGLE_OFF_OPACITY,
20
20
  legendChromeColors,
21
21
  measureLegendText
22
- } from "./chunk-UOCWYLYT.js";
22
+ } from "./chunk-OZXKW5NA.js";
23
23
  import {
24
24
  valueRampStops
25
25
  } from "./chunk-6GXLAKUH.js";
@@ -5,7 +5,7 @@ import {
5
5
  parseFirstLine,
6
6
  splitNameAndMeta,
7
7
  warnUnknownMetaKeys
8
- } from "./chunk-FUYEXLAN.js";
8
+ } from "./chunk-RFGQDIOI.js";
9
9
  import {
10
10
  makeDgmoError,
11
11
  makeFail,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  searchPlacement
3
- } from "./chunk-VNAPEZX2.js";
3
+ } from "./chunk-NHN6GBG7.js";
4
4
  import {
5
5
  buildPlacedNotes,
6
6
  noteCanvasShift,
7
7
  resolveNotes
8
- } from "./chunk-HH3DHNQA.js";
8
+ } from "./chunk-UWWQECLC.js";
9
9
  import {
10
10
  measureText
11
- } from "./chunk-KAO7JL4I.js";
11
+ } from "./chunk-PU5X3P3T.js";
12
12
 
13
13
  // src/class/layout.ts
14
14
  import dagre from "@dagrejs/dagre";
@@ -5,22 +5,22 @@ import {
5
5
  PAIR_GAP,
6
6
  layoutBracket,
7
7
  wrapText
8
- } from "./chunk-ZI6WC24V.js";
8
+ } from "./chunk-ZBJV4KNU.js";
9
9
  import {
10
10
  layoutInlineHeader
11
- } from "./chunk-R5L5E3TC.js";
11
+ } from "./chunk-REKLKGR6.js";
12
12
  import {
13
13
  TITLE_FONT_SIZE,
14
14
  TITLE_FONT_WEIGHT,
15
15
  TITLE_Y
16
- } from "./chunk-VLC6WNRD.js";
16
+ } from "./chunk-GULGSH2Z.js";
17
17
  import {
18
18
  renderIntegratedLegend
19
- } from "./chunk-PGD6CNWO.js";
19
+ } from "./chunk-DFEVFLEG.js";
20
20
  import {
21
21
  getLegendExtent,
22
22
  getMaxLegendReservedHeight
23
- } from "./chunk-JILEYZ2V.js";
23
+ } from "./chunk-VVL2KKG4.js";
24
24
  import {
25
25
  renderInlineText
26
26
  } from "./chunk-QKPOIJBT.js";
@@ -30,13 +30,13 @@ import {
30
30
  import {
31
31
  resolveTagColor,
32
32
  tagAttrKey
33
- } from "./chunk-LGUFJ7Y2.js";
33
+ } from "./chunk-KW3CC7SB.js";
34
34
  import {
35
35
  LEGEND_GROUP_GAP
36
- } from "./chunk-UOCWYLYT.js";
36
+ } from "./chunk-OZXKW5NA.js";
37
37
  import {
38
38
  measureText
39
- } from "./chunk-KAO7JL4I.js";
39
+ } from "./chunk-PU5X3P3T.js";
40
40
  import {
41
41
  contrastText,
42
42
  getSeriesColors,
@@ -16,7 +16,7 @@ import {
16
16
  fillModeFromToken,
17
17
  measureIndent,
18
18
  parseFirstLine
19
- } from "./chunk-FUYEXLAN.js";
19
+ } from "./chunk-RFGQDIOI.js";
20
20
  import {
21
21
  makeDgmoError,
22
22
  makeFail
@@ -3,18 +3,18 @@ import {
3
3
  } from "./chunk-6OSGENN5.js";
4
4
  import {
5
5
  parseDgmoChartType
6
- } from "./chunk-I3ZRIMR7.js";
6
+ } from "./chunk-3EDV56HL.js";
7
7
  import {
8
8
  FONT_FAMILY,
9
9
  MONO_FAMILY
10
10
  } from "./chunk-ICLB27PZ.js";
11
11
  import {
12
12
  chartTypes
13
- } from "./chunk-FUYEXLAN.js";
13
+ } from "./chunk-RFGQDIOI.js";
14
14
  import {
15
15
  measureText,
16
16
  truncateText
17
- } from "./chunk-KAO7JL4I.js";
17
+ } from "./chunk-PU5X3P3T.js";
18
18
 
19
19
  // src/error-card.ts
20
20
  var DOCS_BASE = "https://diagrammo.app/docs";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  isTagBlockHeading,
6
6
  matchTagBlockHeading
7
- } from "./chunk-LGUFJ7Y2.js";
7
+ } from "./chunk-KW3CC7SB.js";
8
8
  import {
9
9
  makeDgmoError
10
10
  } from "./chunk-BYU54C3S.js";
@@ -1,3 +1,22 @@
1
+ import {
2
+ TITLE_FONT_WEIGHT
3
+ } from "./chunk-GULGSH2Z.js";
4
+
5
+ // src/graph/title.ts
6
+ import * as d3Selection from "d3-selection";
7
+ function renderGraphTitle(svg, opts) {
8
+ const { titleLineNumber, onClickItem } = opts;
9
+ const titleEl = svg.append("text").attr("class", "chart-title").attr("x", opts.x).attr("y", opts.y).attr("text-anchor", opts.anchor).attr("fill", opts.color).attr("font-size", opts.fontSize).attr("font-weight", TITLE_FONT_WEIGHT).style("cursor", onClickItem && titleLineNumber ? "pointer" : "default").text(opts.title);
10
+ if (!titleLineNumber) return;
11
+ titleEl.attr("data-line-number", titleLineNumber);
12
+ if (!onClickItem) return;
13
+ titleEl.on("click", () => onClickItem(titleLineNumber)).on("mouseenter", function() {
14
+ d3Selection.select(this).attr("opacity", 0.7);
15
+ }).on("mouseleave", function() {
16
+ d3Selection.select(this).attr("opacity", 1);
17
+ });
18
+ }
19
+
1
20
  // src/graph/edge-spline.ts
2
21
  import * as d3Shape from "d3-shape";
3
22
  var lineGenerator = d3Shape.line().x((d) => d.x).y((d) => d.y).curve(d3Shape.curveBasis);
@@ -42,6 +61,7 @@ function selfLoopArcPath(points) {
42
61
  }
43
62
 
44
63
  export {
64
+ renderGraphTitle,
45
65
  edgeSplinePath,
46
66
  selfLoopArcPath
47
67
  };