@diagrammo/dgmo 0.55.0 → 0.57.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 (292) hide show
  1. package/dist/advanced.d.ts +62 -2
  2. package/dist/advanced.js +190 -188
  3. package/dist/{analyzer-TDN5KJFP.js → analyzer-HQUXKZ5J.js} +3 -3
  4. package/dist/auto.css +24 -0
  5. package/dist/auto.js +155 -129
  6. package/dist/auto.mjs +1354 -729
  7. package/dist/block.css +24 -0
  8. package/dist/block.d.ts +12 -0
  9. package/dist/block.js +93 -63
  10. package/dist/{calculator-VBIT6GQF.js → calculator-BBKAAQGD.js} +3 -3
  11. package/dist/chart-meta.js +55 -55
  12. package/dist/charts-d3-Z6FOKUAL.js +29 -0
  13. package/dist/{chunk-IALX52TR.js → chunk-3D6LDLIH.js} +10 -10
  14. package/dist/{chunk-VVIRAGID.js → chunk-3G7BCZ4J.js} +20 -17
  15. package/dist/{chunk-A2ARDILY.js → chunk-3KOPPSUQ.js} +3 -3
  16. package/dist/{chunk-IWG2ECAO.js → chunk-3M6MKHIQ.js} +11 -9
  17. package/dist/{chunk-M53MDBIW.js → chunk-3NSOKT7C.js} +5 -5
  18. package/dist/{chunk-INTAQV2Y.js → chunk-3ZONSZOX.js} +5 -5
  19. package/dist/{chunk-JYDMBWRP.js → chunk-42IT4BG2.js} +2 -2
  20. package/dist/{chunk-ASPS5O6F.js → chunk-44GBBTMU.js} +7 -7
  21. package/dist/{chunk-COVYNAKJ.js → chunk-46NVO5UA.js} +3 -3
  22. package/dist/{chunk-JQLSFZZP.js → chunk-4MB4UOT5.js} +3 -3
  23. package/dist/{chunk-ITXL2KU5.js → chunk-4MJOBVY7.js} +3 -3
  24. package/dist/{chunk-LW7STMYZ.js → chunk-57RE4N22.js} +7 -7
  25. package/dist/{chunk-WITOJZGL.js → chunk-5J2RQGFG.js} +4 -4
  26. package/dist/{chunk-ZGIBV36U.js → chunk-5LBCOFA5.js} +8 -8
  27. package/dist/{chunk-FBP33UM6.js → chunk-5VLUAAAE.js} +4 -4
  28. package/dist/{chunk-P5XXIVEU.js → chunk-5XMDSXZT.js} +3 -3
  29. package/dist/{chunk-QZYGRDMM.js → chunk-6DR2GMDM.js} +100 -100
  30. package/dist/{chunk-6NJWBMJV.js → chunk-6HSRT6WI.js} +10 -10
  31. package/dist/{chunk-MEQYZZFR.js → chunk-6IVXRTXH.js} +96 -23
  32. package/dist/{chunk-FGAMFJNJ.js → chunk-6PRLPGJB.js} +14 -14
  33. package/dist/{chunk-US3P2DQO.js → chunk-6VJCURWU.js} +2 -2
  34. package/dist/{chunk-QZAW5SFH.js → chunk-7NK42OIB.js} +2 -2
  35. package/dist/{chunk-RKBCKCSF.js → chunk-7Q35X3AL.js} +2 -2
  36. package/dist/{chunk-NN5TF4OV.js → chunk-7SXTD7L6.js} +3 -3
  37. package/dist/{chunk-LCRPGGGS.js → chunk-7YPSFQFA.js} +20 -17
  38. package/dist/{chunk-JGCEFKZP.js → chunk-A6XELFU6.js} +15 -15
  39. package/dist/{chunk-RYNCWA5X.js → chunk-ADKDIWCW.js} +7 -7
  40. package/dist/{chunk-MEH4TJEX.js → chunk-APD52YJV.js} +8 -8
  41. package/dist/{chunk-PIXZTCKH.js → chunk-BIWMOFSE.js} +9 -9
  42. package/dist/{chunk-ZXNHHO6D.js → chunk-BQLJAYVB.js} +9 -9
  43. package/dist/{chunk-HO3RCNF6.js → chunk-CGLBK5Q4.js} +2 -2
  44. package/dist/{chunk-ADYKAKE3.js → chunk-CQ7Y3O67.js} +7 -4
  45. package/dist/{chunk-2R6HG6D5.js → chunk-CQJ5SE5T.js} +9 -9
  46. package/dist/{chunk-A2PTRSAO.js → chunk-CXI6X54X.js} +3 -3
  47. package/dist/{chunk-PCVXXPYU.js → chunk-CY5KE2P5.js} +57 -7
  48. package/dist/{chunk-JR7Q6GHE.js → chunk-D5FANMSG.js} +3 -3
  49. package/dist/{chunk-MSWIBF6J.js → chunk-D64FRGKU.js} +3 -3
  50. package/dist/{chunk-W4TSD3IP.js → chunk-D76B4DMV.js} +5 -5
  51. package/dist/{chunk-5K5XBEXT.js → chunk-DIKIHU52.js} +4 -4
  52. package/dist/{chunk-EMSOFHEN.js → chunk-DNSEG6P2.js} +2 -2
  53. package/dist/{chunk-UJRTPOHH.js → chunk-DUI5SMFX.js} +2 -2
  54. package/dist/{chunk-O4CZDTQA.js → chunk-EEKGMS63.js} +4 -4
  55. package/dist/{chunk-2HX6ZGY7.js → chunk-ES3MUYRX.js} +5 -5
  56. package/dist/{chunk-GRXPFBYC.js → chunk-ES66QH6J.js} +2 -2
  57. package/dist/{chunk-ZKPPI6BF.js → chunk-EXNKNJ65.js} +2 -2
  58. package/dist/{chunk-VMWSZCAK.js → chunk-FERE46TP.js} +5 -5
  59. package/dist/{chunk-GTO5VCYG.js → chunk-FMPYKUKI.js} +8 -8
  60. package/dist/{chunk-B4XS2AF2.js → chunk-FWVKPEG3.js} +3 -3
  61. package/dist/{chunk-KK3L5NVK.js → chunk-FZECLCCU.js} +4 -4
  62. package/dist/{chunk-ETTDF3S2.js → chunk-G3L4GWLA.js} +90 -59
  63. package/dist/{chunk-3IUHKMJI.js → chunk-H52HJ26L.js} +3 -3
  64. package/dist/{chunk-5H5GWWA4.js → chunk-HBRGNLF5.js} +19 -19
  65. package/dist/{chunk-BEOAKGNA.js → chunk-I55PVEIX.js} +2 -2
  66. package/dist/{chunk-EFUQENO5.js → chunk-IMXG673Y.js} +3 -3
  67. package/dist/{chunk-Y4BBGFKY.js → chunk-INU6ANOH.js} +2 -2
  68. package/dist/{chunk-32HUNA33.js → chunk-J6V3SMR3.js} +18 -15
  69. package/dist/{chunk-VXTUWXFB.js → chunk-K2GDF2ZR.js} +10 -10
  70. package/dist/{chunk-HX7QNHC6.js → chunk-KF575IXC.js} +4 -4
  71. package/dist/{chunk-5D5VHDJM.js → chunk-KH74OWHU.js} +13 -13
  72. package/dist/{chunk-ZP265ICS.js → chunk-KRKU6WRS.js} +10 -10
  73. package/dist/{chunk-JTSMEYIZ.js → chunk-L43KTQTW.js} +5 -2
  74. package/dist/{chunk-5HWPEYWB.js → chunk-LDVUPGWC.js} +2 -2
  75. package/dist/{chunk-3B2GXZCX.js → chunk-LSFZDBAP.js} +3 -3
  76. package/dist/{chunk-ZWVKTWK6.js → chunk-LV5BFA24.js} +6 -6
  77. package/dist/{chunk-IG6J7JWH.js → chunk-LZX3RLRP.js} +24 -21
  78. package/dist/{chunk-L2DIXZUT.js → chunk-M3IYDSI7.js} +24 -21
  79. package/dist/{chunk-KC3WBBI7.js → chunk-M65UOFJA.js} +12 -12
  80. package/dist/{chunk-HES4K6DV.js → chunk-MD2KWAXJ.js} +4 -4
  81. package/dist/{chunk-ETYF5QZR.js → chunk-MGLJA5TK.js} +3 -3
  82. package/dist/{chunk-RZWIPDZ2.js → chunk-MXDT446P.js} +8 -8
  83. package/dist/chunk-NCT22MOD.js +93 -0
  84. package/dist/{chunk-3BZJ5KD5.js → chunk-NFAHDPCG.js} +4 -4
  85. package/dist/{chunk-S52F62GW.js → chunk-NHZAYL2X.js} +7 -7
  86. package/dist/{chunk-YXKNXIWA.js → chunk-NIUE5VWY.js} +8 -8
  87. package/dist/chunk-NZ5QVASG.js +20 -0
  88. package/dist/{chunk-QQXFYTLC.js → chunk-OFEUXZPI.js} +38 -21
  89. package/dist/{chunk-PC4YLEKA.js → chunk-OHBIN74X.js} +4 -4
  90. package/dist/{chunk-4W2PE66Q.js → chunk-OLMWTJVU.js} +11 -1
  91. package/dist/{chunk-SCOHNGPG.js → chunk-ORZQVUGW.js} +33 -20
  92. package/dist/{chunk-4MZCJV4M.js → chunk-OYCIVSL3.js} +22 -19
  93. package/dist/{chunk-MNS2ENXF.js → chunk-PFG3EVRD.js} +4 -4
  94. package/dist/{chunk-UBQU2BY6.js → chunk-PKFW6GJD.js} +10 -10
  95. package/dist/{chunk-UXXLE6AH.js → chunk-PRKPFRC2.js} +6 -6
  96. package/dist/{chunk-AKE6C2D7.js → chunk-PUGUOFM6.js} +8 -8
  97. package/dist/{chunk-UES4P7FN.js → chunk-Q772PVKH.js} +11 -19
  98. package/dist/{chunk-F5ZNUMSY.js → chunk-QMOX5I3G.js} +22 -19
  99. package/dist/{chunk-HLGOG44K.js → chunk-QWUYFUNO.js} +3 -3
  100. package/dist/{chunk-WVGNXDEE.js → chunk-RB4HOOKP.js} +6 -6
  101. package/dist/{chunk-HUTP35XT.js → chunk-RQGNELB3.js} +5 -5
  102. package/dist/{chunk-WF64MW5G.js → chunk-RRX4Z4TH.js} +2 -2
  103. package/dist/{chunk-PSIDVCBA.js → chunk-RV2N7COG.js} +4 -4
  104. package/dist/{chunk-X3X4LZDC.js → chunk-S6QDCFEU.js} +2 -2
  105. package/dist/{chunk-NPPUZ4SK.js → chunk-SADYIA5Q.js} +9 -9
  106. package/dist/{chunk-Q5IHQ4NW.js → chunk-SCJ7CAJF.js} +2 -2
  107. package/dist/{chunk-LKGQ46P4.js → chunk-SFVG4AIG.js} +9 -9
  108. package/dist/{chunk-2ZJXKJSI.js → chunk-SQWWYGPT.js} +21 -21
  109. package/dist/{chunk-4R5KIPNX.js → chunk-ST3ZNEUQ.js} +3 -3
  110. package/dist/{chunk-SSHS42QG.js → chunk-SZCZOA2L.js} +3 -3
  111. package/dist/{chunk-HGKOVKAX.js → chunk-T2VMOWAM.js} +12 -9
  112. package/dist/{chunk-DS4MDEQ7.js → chunk-TZ72UBOA.js} +5 -5
  113. package/dist/{chunk-Q5CMQVWF.js → chunk-U3DGAE7L.js} +9 -9
  114. package/dist/{chunk-PV7ND5WL.js → chunk-U4FSWAOJ.js} +16 -16
  115. package/dist/{chunk-A4UJP4IS.js → chunk-UG4MWUXE.js} +18 -18
  116. package/dist/{chunk-NL7FUIVD.js → chunk-ULR3BVNH.js} +8 -8
  117. package/dist/{chunk-YP2T5YUP.js → chunk-USFZQPJ2.js} +5 -5
  118. package/dist/{chunk-UU6LUYUH.js → chunk-VJARCVMH.js} +2 -2
  119. package/dist/{chunk-PKUWYPI5.js → chunk-VS7DGDT3.js} +17 -25
  120. package/dist/{chunk-NYOOPQFD.js → chunk-VSFAJUEF.js} +4 -4
  121. package/dist/{chunk-XKKH2DPG.js → chunk-VYCV5WKH.js} +71 -52
  122. package/dist/{chunk-IIUYKQ5J.js → chunk-VYEQPPS6.js} +7 -7
  123. package/dist/{chunk-WB3NA3JJ.js → chunk-W4EKQ2P6.js} +2 -2
  124. package/dist/{chunk-3HDBAXF5.js → chunk-WGC42WJU.js} +8 -1
  125. package/dist/{chunk-IF4KYSJZ.js → chunk-WOMXS5R7.js} +20 -5
  126. package/dist/chunk-WTTIODDV.js +10 -0
  127. package/dist/{chunk-RSBH2C7O.js → chunk-X32RDWT5.js} +5 -5
  128. package/dist/{chunk-3FUTFYSP.js → chunk-X3ON4M5S.js} +15 -15
  129. package/dist/{chunk-3BFXELBL.js → chunk-XBTJJLAU.js} +10 -5
  130. package/dist/{chunk-AU75JHSR.js → chunk-YNAHUNMA.js} +3 -3
  131. package/dist/cli.cjs +153 -150
  132. package/dist/cloud-reference.d.ts +69 -0
  133. package/dist/cloud-reference.js +49 -0
  134. package/dist/completion-registry.js +6 -6
  135. package/dist/dgmo-router-PMEKTIJ7.js +88 -0
  136. package/dist/dimensions-XRWIPAFO.js +22 -0
  137. package/dist/element.js +156 -130
  138. package/dist/element.mjs +1354 -729
  139. package/dist/flowchart-parser-DA3V2SLH.js +21 -0
  140. package/dist/flowchart-renderer-JGLZB5P5.js +36 -0
  141. package/dist/index.js +70 -65
  142. package/dist/layout-5CX27X7I.js +21 -0
  143. package/dist/layout-AO3TPZUS.js +15 -0
  144. package/dist/layout-AQXLQVAJ.js +15 -0
  145. package/dist/layout-EQTOVNEE.js +15 -0
  146. package/dist/layout-NU5LQ4UP.js +21 -0
  147. package/dist/{layout-CB3XWCOI.js → layout-NX37NSRY.js} +3 -3
  148. package/dist/layout-OHAIIXBC.js +10 -0
  149. package/dist/layout-RIS5VTGL.js +18 -0
  150. package/dist/layout-TCWNJ2OZ.js +18 -0
  151. package/dist/{layout-CRLTSFYQ.js → layout-TZKPVXKJ.js} +6 -6
  152. package/dist/{layout-LGXOKUCD.js → layout-WHOOLGPO.js} +8 -8
  153. package/dist/{layout-search-U2H4ORFJ.js → layout-search-6CVR2MTZ.js} +320 -37
  154. package/dist/{legend-constants-B77VKB3R.js → legend-constants-QQU3QYBF.js} +5 -5
  155. package/dist/{palettes-FGTNFARW.js → palettes-WO3VA6NU.js} +4 -4
  156. package/dist/parser-4TX6U4ZU.js +11 -0
  157. package/dist/{parser-DYYTPLBL.js → parser-4ZIJDGPG.js} +6 -6
  158. package/dist/parser-5UZWYSIV.js +16 -0
  159. package/dist/{parser-PVBUAVRR.js → parser-5WMH55UA.js} +8 -8
  160. package/dist/parser-6CM27UPA.js +14 -0
  161. package/dist/parser-73YUU35J.js +11 -0
  162. package/dist/parser-A6M25MLK.js +11 -0
  163. package/dist/parser-AYZTKZC3.js +11 -0
  164. package/dist/parser-CCAUZLYI.js +15 -0
  165. package/dist/parser-D7YZX3CH.js +12 -0
  166. package/dist/parser-DQ2DGDYO.js +11 -0
  167. package/dist/parser-DTXM5ROT.js +14 -0
  168. package/dist/parser-HMQZPPOK.js +19 -0
  169. package/dist/parser-IPBEW2DG.js +13 -0
  170. package/dist/parser-IQLLBMBQ.js +15 -0
  171. package/dist/parser-KTVDCWHG.js +13 -0
  172. package/dist/parser-LMNFVTIV.js +16 -0
  173. package/dist/{parser-2LF33IS2.js → parser-MH62NYKM.js} +6 -6
  174. package/dist/parser-O5XCVGZG.js +11 -0
  175. package/dist/parser-OPOGIKFR.js +17 -0
  176. package/dist/parser-PEBXIOPX.js +12 -0
  177. package/dist/parser-PQXN6SBB.js +18 -0
  178. package/dist/parser-Q3KNFXQR.js +12 -0
  179. package/dist/parser-Q62VR2UJ.js +20 -0
  180. package/dist/parser-QEWSTNEJ.js +15 -0
  181. package/dist/{parser-SUV52NQW.js → parser-QL2LBPFE.js} +7 -7
  182. package/dist/{parser-BMOTF72G.js → parser-QN3GJJ3J.js} +5 -5
  183. package/dist/parser-RBNOWHGM.js +15 -0
  184. package/dist/parser-SJ7ECFAP.js +13 -0
  185. package/dist/parser-WT3DSNPQ.js +13 -0
  186. package/dist/{parser-TO7IENWL.js → parser-XQNM7BGD.js} +7 -7
  187. package/dist/parser-XWNSCDY6.js +13 -0
  188. package/dist/renderer-2TEGR3RX.js +26 -0
  189. package/dist/renderer-3WYLLPQL.js +27 -0
  190. package/dist/renderer-5BFS4NBL.js +24 -0
  191. package/dist/renderer-6OFPEBHG.js +25 -0
  192. package/dist/renderer-AK2X3VRY.js +30 -0
  193. package/dist/renderer-B6XOO6EE.js +20 -0
  194. package/dist/{renderer-TKTM2SL4.js → renderer-BNEO5W3E.js} +15 -15
  195. package/dist/renderer-BZZKS7KQ.js +38 -0
  196. package/dist/renderer-EJ3FETD2.js +28 -0
  197. package/dist/renderer-FQLFE3TQ.js +26 -0
  198. package/dist/renderer-HDLM6OY6.js +39 -0
  199. package/dist/renderer-HGWKAXS6.js +16 -0
  200. package/dist/renderer-I2P5FTZ2.js +39 -0
  201. package/dist/renderer-IAJMS5U5.js +30 -0
  202. package/dist/{renderer-CENXCMWG.js → renderer-JHYUK5TN.js} +8 -8
  203. package/dist/{renderer-RDBUXW7P.js → renderer-KXMKAXPQ.js} +9 -9
  204. package/dist/renderer-LMLSA457.js +25 -0
  205. package/dist/renderer-LNOBG226.js +29 -0
  206. package/dist/renderer-LRQ3OPNJ.js +27 -0
  207. package/dist/renderer-LU4R3BP2.js +16 -0
  208. package/dist/{renderer-IO4KCFVL.js → renderer-N4V7XVC3.js} +17 -16
  209. package/dist/{renderer-5EMHIQL5.js → renderer-ND7YIUHD.js} +6 -6
  210. package/dist/renderer-NKVIQA3C.js +17 -0
  211. package/dist/{renderer-TXTTV4HA.js → renderer-PLRNQ6T3.js} +15 -14
  212. package/dist/renderer-Q6TJ52B4.js +21 -0
  213. package/dist/{renderer-QZESC66H.js → renderer-RJT3MOUU.js} +5 -5
  214. package/dist/renderer-TIIHLRMM.js +19 -0
  215. package/dist/{renderer-DW6TEBLA.js → renderer-VWBNIZV3.js} +16 -16
  216. package/dist/renderer-W3JK5YVD.js +22 -0
  217. package/dist/renderer-W5GF5USI.js +25 -0
  218. package/dist/renderer-XKMG3SYD.js +23 -0
  219. package/dist/renderer-XSZ5MUIF.js +28 -0
  220. package/dist/renderer-radial-LZAPQVM5.js +21 -0
  221. package/dist/{resolver-ZSFQQRTH.js → resolver-W3WKLWDP.js} +3 -3
  222. package/dist/state-parser-NQGVYSM3.js +19 -0
  223. package/dist/state-renderer-KSAKMFQ2.js +40 -0
  224. package/docs/language-reference.md +9 -1
  225. package/package.json +6 -2
  226. package/dist/charts-d3-KZ6V4OP2.js +0 -28
  227. package/dist/chunk-BMR4CIEO.js +0 -41
  228. package/dist/dgmo-router-T4HGLIGA.js +0 -88
  229. package/dist/dimensions-3JINHSYK.js +0 -22
  230. package/dist/flowchart-parser-M7KKTLX7.js +0 -21
  231. package/dist/flowchart-renderer-FFEQFQEU.js +0 -35
  232. package/dist/layout-3ZZBKUQC.js +0 -20
  233. package/dist/layout-AUKTWGYL.js +0 -15
  234. package/dist/layout-FNZDJGKF.js +0 -19
  235. package/dist/layout-GHWRJKZQ.js +0 -15
  236. package/dist/layout-NF4EWFLT.js +0 -17
  237. package/dist/layout-SP7HJWKA.js +0 -17
  238. package/dist/layout-UR7CYAHL.js +0 -23
  239. package/dist/layout-UTMEVFHN.js +0 -15
  240. package/dist/parser-2AXPSKWB.js +0 -14
  241. package/dist/parser-2AZ2KQTO.js +0 -12
  242. package/dist/parser-3QJ2Z4H4.js +0 -11
  243. package/dist/parser-5GCQFSTQ.js +0 -13
  244. package/dist/parser-62OHBRU5.js +0 -11
  245. package/dist/parser-7LYJFZCP.js +0 -14
  246. package/dist/parser-CIFLYZYP.js +0 -15
  247. package/dist/parser-D2UL2G5U.js +0 -11
  248. package/dist/parser-DM2APTKB.js +0 -11
  249. package/dist/parser-GOUGUTPU.js +0 -12
  250. package/dist/parser-HGVUVD6J.js +0 -11
  251. package/dist/parser-IEJD3CZB.js +0 -11
  252. package/dist/parser-JBEWNLAV.js +0 -20
  253. package/dist/parser-JMXPHNZD.js +0 -12
  254. package/dist/parser-JMXSQY3K.js +0 -13
  255. package/dist/parser-LUXS7J32.js +0 -16
  256. package/dist/parser-M5BUHULF.js +0 -15
  257. package/dist/parser-MESRHUS4.js +0 -17
  258. package/dist/parser-OOYNI2UT.js +0 -15
  259. package/dist/parser-QKRBSQLJ.js +0 -18
  260. package/dist/parser-S6NWSIJO.js +0 -16
  261. package/dist/parser-SFEK6Q7Z.js +0 -19
  262. package/dist/parser-SZHGLOOZ.js +0 -13
  263. package/dist/parser-TVAMC7CQ.js +0 -13
  264. package/dist/parser-VAW46R57.js +0 -13
  265. package/dist/parser-XDSPOXSE.js +0 -15
  266. package/dist/renderer-3PWLOJPD.js +0 -29
  267. package/dist/renderer-5PODNLYP.js +0 -16
  268. package/dist/renderer-AQJIQ2XU.js +0 -25
  269. package/dist/renderer-BEW3AYFT.js +0 -28
  270. package/dist/renderer-C3UYAXA6.js +0 -26
  271. package/dist/renderer-CXM3ARYN.js +0 -23
  272. package/dist/renderer-FE5M6SEZ.js +0 -25
  273. package/dist/renderer-FXK6ZL3P.js +0 -20
  274. package/dist/renderer-G5ESLCJB.js +0 -29
  275. package/dist/renderer-HTDS4FED.js +0 -37
  276. package/dist/renderer-IRAFJNTK.js +0 -27
  277. package/dist/renderer-K7XLVPH5.js +0 -17
  278. package/dist/renderer-MFTTFW32.js +0 -38
  279. package/dist/renderer-MPXI4FVL.js +0 -24
  280. package/dist/renderer-NVBEMQ6L.js +0 -19
  281. package/dist/renderer-OOGDCR6K.js +0 -16
  282. package/dist/renderer-Q5P72O4A.js +0 -26
  283. package/dist/renderer-S4XB3JR2.js +0 -27
  284. package/dist/renderer-SIWEEWJ5.js +0 -26
  285. package/dist/renderer-UZIU4AHK.js +0 -28
  286. package/dist/renderer-V72VJIGG.js +0 -38
  287. package/dist/renderer-VEGOEZOI.js +0 -25
  288. package/dist/renderer-W6I6T2TA.js +0 -21
  289. package/dist/renderer-WSHJRR2T.js +0 -22
  290. package/dist/renderer-radial-AG75PBYD.js +0 -21
  291. package/dist/state-parser-KIPZGIB4.js +0 -19
  292. package/dist/state-renderer-U6OSJG52.js +0 -39
@@ -1,12 +1,12 @@
1
- import {
2
- tryStripDescriptionKeyword
3
- } from "./chunk-IYULMRBE.js";
4
1
  import {
5
2
  inferParticipantType
6
3
  } from "./chunk-C3Z4DX3V.js";
7
4
  import {
8
5
  parseInArrowLabel
9
- } from "./chunk-WF64MW5G.js";
6
+ } from "./chunk-RRX4Z4TH.js";
7
+ import {
8
+ tryStripDescriptionKeyword
9
+ } from "./chunk-IYULMRBE.js";
10
10
  import {
11
11
  normalizeName
12
12
  } from "./chunk-NOTA6TEI.js";
@@ -17,7 +17,7 @@ import {
17
17
  stripDefaultModifier,
18
18
  tagAttrKey,
19
19
  validateTagGroupNames
20
- } from "./chunk-JR7Q6GHE.js";
20
+ } from "./chunk-D5FANMSG.js";
21
21
  import {
22
22
  C4_REGISTRY,
23
23
  OPTION_NOCOLON_RE,
@@ -27,13 +27,13 @@ import {
27
27
  splitNameAndMeta,
28
28
  warnUnknownMetaKeys,
29
29
  withTagAliases
30
- } from "./chunk-A2ARDILY.js";
30
+ } from "./chunk-3KOPPSUQ.js";
31
31
  import {
32
32
  formatDgmoError,
33
33
  makeDgmoError,
34
34
  makeFail,
35
35
  suggest
36
- } from "./chunk-4W2PE66Q.js";
36
+ } from "./chunk-OLMWTJVU.js";
37
37
 
38
38
  // src/c4/parser.ts
39
39
  var CONTAINER_RE = /^\[([^\]]+)\](?:\s+(collapsed)|\s+collapsed:\s*(\S+))?$/;
@@ -825,4 +825,4 @@ function validateDeploymentRefs(result, knownNames, pushWarning) {
825
825
  export {
826
826
  parseC4
827
827
  };
828
- //# sourceMappingURL=chunk-YXKNXIWA.js.map
828
+ //# sourceMappingURL=chunk-NIUE5VWY.js.map
@@ -0,0 +1,20 @@
1
+ // src/utils/svg-serialize.ts
2
+ function escapeAttributeAngleBrackets(svg) {
3
+ return svg.replace(
4
+ // ` name="value"` / ` xlink:href="value"` — attribute names in SVG may carry
5
+ // a namespace prefix, a dot, or a dash.
6
+ /(\s[\w:.-]+=")([^"]*)"/g,
7
+ (match, prefix, value) => {
8
+ if (!value.includes("<") && !value.includes(">")) return match;
9
+ return `${prefix}${value.replace(/</g, "&lt;").replace(/>/g, "&gt;")}"`;
10
+ }
11
+ );
12
+ }
13
+ function serializeSvg(svgEl) {
14
+ return escapeAttributeAngleBrackets(svgEl.outerHTML);
15
+ }
16
+
17
+ export {
18
+ serializeSvg
19
+ };
20
+ //# sourceMappingURL=chunk-NZ5QVASG.js.map
@@ -11,13 +11,13 @@ import {
11
11
  initD3Chart,
12
12
  renderChartTitle,
13
13
  resolveExportPalette
14
- } from "./chunk-ADYKAKE3.js";
14
+ } from "./chunk-CQ7Y3O67.js";
15
15
  import {
16
16
  layoutInlineHeader
17
- } from "./chunk-US3P2DQO.js";
17
+ } from "./chunk-6VJCURWU.js";
18
18
  import {
19
19
  computeLegendLayout
20
- } from "./chunk-GRXPFBYC.js";
20
+ } from "./chunk-ES66QH6J.js";
21
21
  import {
22
22
  TITLE_FONT_SIZE,
23
23
  TITLE_FONT_WEIGHT,
@@ -32,19 +32,22 @@ import {
32
32
  getSimpleChartLegendGroups,
33
33
  parseChart,
34
34
  parseExtendedChart
35
- } from "./chunk-PCVXXPYU.js";
35
+ } from "./chunk-CY5KE2P5.js";
36
36
  import {
37
37
  EMPHASIS_DIM_OPACITY,
38
38
  EMPHASIS_DIM_TEXT_OPACITY,
39
39
  resolveEmphasis
40
40
  } from "./chunk-2CW5ZTNH.js";
41
+ import {
42
+ tagAttrKey
43
+ } from "./chunk-D5FANMSG.js";
41
44
  import {
42
45
  LEGEND_DOT_R,
43
46
  LEGEND_ENTRY_FONT_SIZE,
44
47
  LEGEND_HEIGHT,
45
48
  LEGEND_PILL_FONT_SIZE,
46
49
  legendChromeColors
47
- } from "./chunk-Q5IHQ4NW.js";
50
+ } from "./chunk-SCJ7CAJF.js";
48
51
  import {
49
52
  measureText
50
53
  } from "./chunk-4ASYQ347.js";
@@ -57,10 +60,7 @@ import {
57
60
  mix,
58
61
  shapeFill,
59
62
  themeBaseBg
60
- } from "./chunk-JYDMBWRP.js";
61
- import {
62
- tagAttrKey
63
- } from "./chunk-JR7Q6GHE.js";
63
+ } from "./chunk-42IT4BG2.js";
64
64
 
65
65
  // src/utils/legend-svg.ts
66
66
  function esc(s) {
@@ -284,7 +284,7 @@ function drawValueLabel(svg, text, x, y, color, anchor = "middle") {
284
284
 
285
285
  // src/charts-d3/bar.ts
286
286
  import { scaleBand, scaleLinear } from "d3-scale";
287
- import { max as d3max } from "d3-array";
287
+ import { max as d3max, min as d3min } from "d3-array";
288
288
  function seriesValues(pt, seriesCount) {
289
289
  const out = [pt.value];
290
290
  for (let s = 1; s < seriesCount; s++) out.push(pt.extraValues?.[s - 1] ?? 0);
@@ -319,9 +319,18 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
319
319
  inlineTitle
320
320
  );
321
321
  const perCat = data.map((d) => seriesValues(d, seriesCount));
322
- const maxVal = stacked ? d3max(perCat, (vals) => vals.reduce((a, b) => a + b, 0)) ?? 0 : d3max(perCat, (vals) => d3max(vals) ?? 0) ?? 0;
323
- const niceMax = maxVal === 0 ? 1 : maxVal;
324
- const leftLabels = horizontal ? data.map((d) => d.label) : [fmtNum(niceMax), fmtNum(niceMax / 2)];
322
+ const maxVal = stacked ? d3max(
323
+ perCat,
324
+ (vals) => vals.filter((v) => v > 0).reduce((a, b) => a + b, 0)
325
+ ) ?? 0 : d3max(perCat, (vals) => d3max(vals) ?? 0) ?? 0;
326
+ const minVal = stacked ? d3min(
327
+ perCat,
328
+ (vals) => vals.filter((v) => v < 0).reduce((a, b) => a + b, 0)
329
+ ) ?? 0 : d3min(perCat, (vals) => d3min(vals) ?? 0) ?? 0;
330
+ const hiVal = Math.max(0, maxVal);
331
+ const loVal = Math.min(0, minVal);
332
+ const niceMax = hiVal === 0 && loVal === 0 ? 1 : hiVal;
333
+ const leftLabels = horizontal ? data.map((d) => d.label) : [fmtNum(niceMax), fmtNum(niceMax / 2), fmtNum(loVal), fmtNum(loVal / 2)];
325
334
  const m = {
326
335
  top: top + 8,
327
336
  right: 32,
@@ -334,7 +343,7 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
334
343
  const catRange = horiz ? [m.top, m.top + plotH] : [m.left, m.left + plotW];
335
344
  const cat = scaleBand().domain(data.map((d) => d.label)).range(catRange).padding(0.3);
336
345
  const valRange = horiz ? [m.left, m.left + plotW] : [m.top + plotH, m.top];
337
- const val = scaleLinear().domain([0, niceMax]).nice().range(valRange);
346
+ const val = scaleLinear().domain([loVal, niceMax]).nice().range(valRange);
338
347
  for (const t of val.ticks(6)) {
339
348
  if (horiz) {
340
349
  const x = val(t);
@@ -359,7 +368,8 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
359
368
  data.forEach((d, ci) => {
360
369
  const base = cat(d.label) ?? 0;
361
370
  const vals = seriesValues(d, seriesCount);
362
- let acc = 0;
371
+ let accPos = 0;
372
+ let accNeg = 0;
363
373
  vals.forEach((v, s) => {
364
374
  const stroke = colorFor(s, ci, seriesCount === 1 ? d.color : void 0);
365
375
  const fill = fillOf(stroke);
@@ -373,6 +383,7 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
373
383
  seriesName: multiSeries ? sName : void 0
374
384
  };
375
385
  if (stacked) {
386
+ const acc = v < 0 ? accNeg : accPos;
376
387
  if (horiz) {
377
388
  const x0 = val(acc);
378
389
  const x1 = val(acc + v);
@@ -416,7 +427,8 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
416
427
  textColor
417
428
  );
418
429
  }
419
- acc += v;
430
+ if (v < 0) accNeg += v;
431
+ else accPos += v;
420
432
  } else {
421
433
  const off = inner(s) ?? 0;
422
434
  const bw = inner.bandwidth();
@@ -432,13 +444,16 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
432
444
  stroke,
433
445
  tag
434
446
  );
447
+ const txt = fmtNum(v);
448
+ const approxW = txt.length * 7 + 6;
449
+ const inside = v < 0 ? x1 - approxW < m.left : x1 + approxW > m.left + plotW;
435
450
  drawValueLabel(
436
451
  svg,
437
- fmtNum(v),
438
- x1 + 6,
452
+ txt,
453
+ v < 0 ? inside ? x1 + 6 : x1 - 6 : inside ? x1 - 6 : x1 + 6,
439
454
  base + off + bw / 2 + 4,
440
455
  textColor,
441
- "start"
456
+ v < 0 !== inside ? "end" : "start"
442
457
  );
443
458
  } else {
444
459
  const y1 = val(v);
@@ -452,11 +467,13 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
452
467
  stroke,
453
468
  tag
454
469
  );
470
+ const yOut = v < 0 ? y1 + 14 : y1 - 6;
471
+ const yInside = v < 0 ? yOut > m.top + plotH - 2 : yOut < m.top + 2;
455
472
  drawValueLabel(
456
473
  svg,
457
474
  fmtNum(v),
458
475
  base + off + bw / 2,
459
- y1 - 6,
476
+ yInside ? v < 0 ? y1 - 6 : y1 + 14 : yOut,
460
477
  textColor
461
478
  );
462
479
  }
@@ -2044,4 +2061,4 @@ export {
2044
2061
  supportsD3DataChart,
2045
2062
  renderDataChartD3
2046
2063
  };
2047
- //# sourceMappingURL=chunk-QQXFYTLC.js.map
2064
+ //# sourceMappingURL=chunk-OFEUXZPI.js.map
@@ -13,7 +13,7 @@ import {
13
13
  tagAttrKey,
14
14
  validateTagGroupNames,
15
15
  validateTagValues
16
- } from "./chunk-JR7Q6GHE.js";
16
+ } from "./chunk-D5FANMSG.js";
17
17
  import {
18
18
  ALL_CHART_TYPES,
19
19
  OPTION_NOCOLON_RE,
@@ -25,13 +25,13 @@ import {
25
25
  tryParseSharedOption,
26
26
  warnUnknownMetaKeys,
27
27
  withTagAliases
28
- } from "./chunk-A2ARDILY.js";
28
+ } from "./chunk-3KOPPSUQ.js";
29
29
  import {
30
30
  formatDgmoError,
31
31
  makeDgmoError,
32
32
  makeFail,
33
33
  suggest
34
- } from "./chunk-4W2PE66Q.js";
34
+ } from "./chunk-OLMWTJVU.js";
35
35
 
36
36
  // src/sitemap/parser.ts
37
37
  var CONTAINER_RE = /^\[([^\]]+)\]\s*(.*)$/;
@@ -520,4 +520,4 @@ export {
520
520
  looksLikeSitemap,
521
521
  parseSitemap
522
522
  };
523
- //# sourceMappingURL=chunk-PC4YLEKA.js.map
523
+ //# sourceMappingURL=chunk-OHBIN74X.js.map
@@ -98,6 +98,15 @@ var METADATA_DIAGNOSTIC_CODES = {
98
98
  function emptyMetadataValueMessage(key) {
99
99
  return `Metadata key '${key}:' has no value \u2014 the pair is dropped. Provide a value or remove the key.`;
100
100
  }
101
+ var NEGATIVE_VALUE_DX = {
102
+ code: "E_VALUE_NEGATIVE",
103
+ severity: "error",
104
+ chartType: null,
105
+ title: "Negative value on a magnitude channel",
106
+ message: (p) => `Negative value ${p.value ?? -300} on "${p.label ?? "Refunds"}" \u2014 ${p.channel ?? "this chart's values"} encode magnitude and can't be negative.`,
107
+ hint: 'Restate the data as positive magnitudes (e.g. "decline %"). If direction matters, use a bar chart \u2014 bars support negative values.',
108
+ example: "pie Budget\nRent 1200\nRefunds -300"
109
+ };
101
110
  var TITLE_DIRECTIVE_DX = {
102
111
  code: "E_TITLE_DIRECTIVE",
103
112
  severity: "error",
@@ -119,6 +128,7 @@ export {
119
128
  nameMergedMessage,
120
129
  METADATA_DIAGNOSTIC_CODES,
121
130
  emptyMetadataValueMessage,
131
+ NEGATIVE_VALUE_DX,
122
132
  TITLE_DIRECTIVE_DX
123
133
  };
124
- //# sourceMappingURL=chunk-4W2PE66Q.js.map
134
+ //# sourceMappingURL=chunk-OLMWTJVU.js.map
@@ -4,30 +4,31 @@ import {
4
4
  renderNoteBadge,
5
5
  renderNoteBox,
6
6
  renderNoteConnector
7
- } from "./chunk-3IUHKMJI.js";
8
- import {
9
- renderInlineText
10
- } from "./chunk-3HDBAXF5.js";
7
+ } from "./chunk-H52HJ26L.js";
11
8
  import {
12
9
  EDGE_STROKE_WIDTH,
13
10
  NODE_STROKE_WIDTH
14
11
  } from "./chunk-3CIOJ5YJ.js";
15
12
  import {
16
13
  wrapDescriptionLines
17
- } from "./chunk-BMR4CIEO.js";
14
+ } from "./chunk-NCT22MOD.js";
15
+ import {
16
+ renderInlineText,
17
+ stripInlineMarkdown
18
+ } from "./chunk-WGC42WJU.js";
18
19
  import {
19
20
  ScaleContext
20
21
  } from "./chunk-YYVTBZZC.js";
21
22
  import {
22
23
  layoutInlineHeader
23
- } from "./chunk-US3P2DQO.js";
24
+ } from "./chunk-6VJCURWU.js";
24
25
  import {
25
26
  renderIntegratedLegend
26
- } from "./chunk-ASPS5O6F.js";
27
+ } from "./chunk-44GBBTMU.js";
27
28
  import {
28
29
  getLegendExtent,
29
30
  getMaxLegendReservedHeight
30
- } from "./chunk-GRXPFBYC.js";
31
+ } from "./chunk-ES66QH6J.js";
31
32
  import {
32
33
  TITLE_FONT_SIZE,
33
34
  TITLE_FONT_WEIGHT,
@@ -36,6 +37,14 @@ import {
36
37
  import {
37
38
  FONT_FAMILY
38
39
  } from "./chunk-6KFWC4CO.js";
40
+ import {
41
+ resolveTagColor
42
+ } from "./chunk-D5FANMSG.js";
43
+ import {
44
+ fillModeFromOptions,
45
+ legendInlineRequested,
46
+ legendSuppressed
47
+ } from "./chunk-3KOPPSUQ.js";
39
48
  import {
40
49
  CHAR_WIDTH_RATIO,
41
50
  measureText,
@@ -48,18 +57,10 @@ import {
48
57
  shapeFill,
49
58
  themeBaseBg,
50
59
  valueRampColor
51
- } from "./chunk-JYDMBWRP.js";
52
- import {
53
- resolveTagColor
54
- } from "./chunk-JR7Q6GHE.js";
55
- import {
56
- fillModeFromOptions,
57
- legendInlineRequested,
58
- legendSuppressed
59
- } from "./chunk-A2ARDILY.js";
60
+ } from "./chunk-42IT4BG2.js";
60
61
  import {
61
62
  resolveColor
62
- } from "./chunk-ZKPPI6BF.js";
63
+ } from "./chunk-EXNKNJ65.js";
63
64
 
64
65
  // src/boxes-and-lines/renderer.ts
65
66
  import * as d3Selection from "d3-selection";
@@ -420,6 +421,18 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
420
421
  for (let li = 0; li < fitted.lines.length; li++) {
421
422
  groupG.append("text").attr("class", "bl-group-label").attr("x", group.x).attr("y", group.y - totalH / 2 + lineH / 2 + li * lineH).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", fitted.fontSize).attr("font-weight", "600").attr("fill", palette.text).text(fitted.lines[li]);
422
423
  }
424
+ if (group.childCount !== void 0 && group.childCount > 0) {
425
+ const chipFont = Math.max(9, sMinNodeFontSize - 2);
426
+ const chipH = chipFont + 7;
427
+ const chipW = Math.max(
428
+ chipH,
429
+ String(group.childCount).length * chipFont * 0.62 + 10
430
+ );
431
+ const chipCx = gx + group.width - chipW / 2 - 6;
432
+ const chipCy = gy + chipH / 2 + 6;
433
+ groupG.append("rect").attr("class", "bl-collapse-count").attr("x", chipCx - chipW / 2).attr("y", chipCy - chipH / 2).attr("width", chipW).attr("height", chipH).attr("rx", chipH / 2).attr("ry", chipH / 2).attr("fill", palette.textMuted).attr("fill-opacity", 0.18);
434
+ groupG.append("text").attr("class", "bl-collapse-count").attr("x", chipCx).attr("y", chipCy).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", chipFont).attr("font-weight", "600").attr("fill", palette.text).text(String(group.childCount));
435
+ }
423
436
  } else {
424
437
  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", mix(palette.surface, palette.bg, 40)).attr("stroke", palette.textMuted).attr("stroke-width", 1).attr("stroke-opacity", 0.35);
425
438
  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", "600").attr("fill", palette.text).text(group.label);
@@ -569,7 +582,7 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
569
582
  maxTextWidth / (sDescFontSize * CHAR_WIDTH_RATIO)
570
583
  );
571
584
  const descLineH = sDescFontSize * DESC_LINE_HEIGHT;
572
- const displayLen = (text) => text.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/\*\*(.+?)\*\*/g, "$1").replace(/\*(.+?)\*/g, "$1").replace(/`(.+?)`/g, "$1").replace(/https?:\/\/\S+/g, (u) => u.slice(0, 20)).length;
585
+ const displayLen = (text) => stripInlineMarkdown(text).length;
573
586
  const normalizedLines = [];
574
587
  for (const descLine of desc) {
575
588
  let normalized = descLine.startsWith("- ") ? "\u2022 " + descLine.slice(2) : descLine;
@@ -800,4 +813,4 @@ export {
800
813
  renderBoxesAndLines,
801
814
  renderBoxesAndLinesForExport
802
815
  };
803
- //# sourceMappingURL=chunk-SCOHNGPG.js.map
816
+ //# sourceMappingURL=chunk-ORZQVUGW.js.map
@@ -4,10 +4,7 @@ import {
4
4
  layoutC4Containers,
5
5
  layoutC4Context,
6
6
  layoutC4Deployment
7
- } from "./chunk-AKE6C2D7.js";
8
- import {
9
- renderInlineText
10
- } from "./chunk-3HDBAXF5.js";
7
+ } from "./chunk-PUGUOFM6.js";
11
8
  import {
12
9
  CARD_RADIUS,
13
10
  EDGE_STROKE_WIDTH,
@@ -15,9 +12,15 @@ import {
15
12
  META_LINE_HEIGHT,
16
13
  NODE_STROKE_WIDTH
17
14
  } from "./chunk-3CIOJ5YJ.js";
15
+ import {
16
+ renderInlineText
17
+ } from "./chunk-WGC42WJU.js";
18
+ import {
19
+ serializeSvg
20
+ } from "./chunk-NZ5QVASG.js";
18
21
  import {
19
22
  renderIntegratedLegend
20
- } from "./chunk-ASPS5O6F.js";
23
+ } from "./chunk-44GBBTMU.js";
21
24
  import {
22
25
  TITLE_FONT_SIZE,
23
26
  TITLE_FONT_WEIGHT
@@ -27,13 +30,19 @@ import {
27
30
  } from "./chunk-6KFWC4CO.js";
28
31
  import {
29
32
  parseC4
30
- } from "./chunk-YXKNXIWA.js";
33
+ } from "./chunk-NIUE5VWY.js";
31
34
  import {
32
35
  preprocessDescriptionLine
33
36
  } from "./chunk-IYULMRBE.js";
37
+ import {
38
+ tagAttrKey
39
+ } from "./chunk-D5FANMSG.js";
40
+ import {
41
+ fillModeFromOptions
42
+ } from "./chunk-3KOPPSUQ.js";
34
43
  import {
35
44
  LEGEND_HEIGHT
36
- } from "./chunk-Q5IHQ4NW.js";
45
+ } from "./chunk-SCJ7CAJF.js";
37
46
  import {
38
47
  measureText,
39
48
  wrapTextToWidth
@@ -42,13 +51,7 @@ import {
42
51
  contrastText,
43
52
  mix,
44
53
  shapeFill
45
- } from "./chunk-JYDMBWRP.js";
46
- import {
47
- tagAttrKey
48
- } from "./chunk-JR7Q6GHE.js";
49
- import {
50
- fillModeFromOptions
51
- } from "./chunk-A2ARDILY.js";
54
+ } from "./chunk-42IT4BG2.js";
52
55
 
53
56
  // src/c4/renderer.ts
54
57
  import * as d3Selection from "d3-selection";
@@ -328,7 +331,7 @@ function renderC4ContextForExport(content, theme, palette) {
328
331
  }
329
332
  svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
330
333
  svgEl.style.fontFamily = FONT_FAMILY;
331
- return svgEl.outerHTML;
334
+ return serializeSvg(svgEl);
332
335
  } finally {
333
336
  document.body.removeChild(container);
334
337
  }
@@ -944,7 +947,7 @@ function renderC4ContainersForExport(content, systemName, theme, palette) {
944
947
  }
945
948
  svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
946
949
  svgEl.style.fontFamily = FONT_FAMILY;
947
- return svgEl.outerHTML;
950
+ return serializeSvg(svgEl);
948
951
  } finally {
949
952
  document.body.removeChild(el);
950
953
  }
@@ -976,7 +979,7 @@ function renderC4ComponentsForExport(content, systemName, containerName, theme,
976
979
  }
977
980
  svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
978
981
  svgEl.style.fontFamily = FONT_FAMILY;
979
- return svgEl.outerHTML;
982
+ return serializeSvg(svgEl);
980
983
  } finally {
981
984
  document.body.removeChild(el);
982
985
  }
@@ -1021,7 +1024,7 @@ function renderC4DeploymentForExport(content, theme, palette) {
1021
1024
  }
1022
1025
  svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
1023
1026
  svgEl.style.fontFamily = FONT_FAMILY;
1024
- return svgEl.outerHTML;
1027
+ return serializeSvg(svgEl);
1025
1028
  } finally {
1026
1029
  document.body.removeChild(el);
1027
1030
  }
@@ -1036,4 +1039,4 @@ export {
1036
1039
  renderC4Deployment,
1037
1040
  renderC4DeploymentForExport
1038
1041
  };
1039
- //# sourceMappingURL=chunk-4MZCJV4M.js.map
1042
+ //# sourceMappingURL=chunk-OYCIVSL3.js.map
@@ -10,7 +10,7 @@ import {
10
10
  tagAttrKey,
11
11
  validateTagGroupNames,
12
12
  validateTagValues
13
- } from "./chunk-JR7Q6GHE.js";
13
+ } from "./chunk-D5FANMSG.js";
14
14
  import {
15
15
  OPTION_NOCOLON_RE,
16
16
  ORG_REGISTRY,
@@ -20,13 +20,13 @@ import {
20
20
  splitNameAndMeta,
21
21
  warnUnknownMetaKeys,
22
22
  withTagAliases
23
- } from "./chunk-A2ARDILY.js";
23
+ } from "./chunk-3KOPPSUQ.js";
24
24
  import {
25
25
  formatDgmoError,
26
26
  makeDgmoError,
27
27
  makeFail,
28
28
  suggest
29
- } from "./chunk-4W2PE66Q.js";
29
+ } from "./chunk-OLMWTJVU.js";
30
30
 
31
31
  // src/org/parser.ts
32
32
  var CONTAINER_RE = /^\[([^\]]+)\]$/;
@@ -362,4 +362,4 @@ export {
362
362
  looksLikeOrg,
363
363
  parseOrg
364
364
  };
365
- //# sourceMappingURL=chunk-MNS2ENXF.js.map
365
+ //# sourceMappingURL=chunk-PFG3EVRD.js.map
@@ -1,3 +1,11 @@
1
+ import {
2
+ injectDefaultTagMetadata,
3
+ resolveTagColor,
4
+ tagAttrKey
5
+ } from "./chunk-D5FANMSG.js";
6
+ import {
7
+ legendSuppressed
8
+ } from "./chunk-3KOPPSUQ.js";
1
9
  import {
2
10
  LEGEND_CAPSULE_PAD,
3
11
  LEGEND_DOT_R,
@@ -11,18 +19,10 @@ import {
11
19
  LEGEND_PILL_FONT_SIZE,
12
20
  LEGEND_PILL_PAD,
13
21
  measureLegendText
14
- } from "./chunk-Q5IHQ4NW.js";
22
+ } from "./chunk-SCJ7CAJF.js";
15
23
  import {
16
24
  measureText
17
25
  } from "./chunk-4ASYQ347.js";
18
- import {
19
- injectDefaultTagMetadata,
20
- resolveTagColor,
21
- tagAttrKey
22
- } from "./chunk-JR7Q6GHE.js";
23
- import {
24
- legendSuppressed
25
- } from "./chunk-A2ARDILY.js";
26
26
 
27
27
  // src/org/layout.ts
28
28
  import { hierarchy, tree } from "d3-hierarchy";
@@ -870,4 +870,4 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
870
870
  export {
871
871
  layoutOrg
872
872
  };
873
- //# sourceMappingURL=chunk-UBQU2BY6.js.map
873
+ //# sourceMappingURL=chunk-PKFW6GJD.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  buildSwatches
3
- } from "./chunk-B4XS2AF2.js";
3
+ } from "./chunk-FWVKPEG3.js";
4
4
  import {
5
5
  layoutMap,
6
6
  mapLegendConfig,
7
7
  mapLegendGroups,
8
8
  parsePathRings
9
- } from "./chunk-ZGIBV36U.js";
9
+ } from "./chunk-5LBCOFA5.js";
10
10
  import {
11
11
  renderIntegratedLegend
12
- } from "./chunk-ASPS5O6F.js";
12
+ } from "./chunk-44GBBTMU.js";
13
13
  import {
14
14
  TITLE_FONT_SIZE,
15
15
  TITLE_FONT_WEIGHT,
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-6KFWC4CO.js";
21
21
  import {
22
22
  parseClock
23
- } from "./chunk-AU75JHSR.js";
23
+ } from "./chunk-YNAHUNMA.js";
24
24
  import {
25
25
  fixedParts,
26
26
  formatTime,
@@ -34,7 +34,7 @@ import {
34
34
  import {
35
35
  mix,
36
36
  themeBaseBg
37
- } from "./chunk-JYDMBWRP.js";
37
+ } from "./chunk-42IT4BG2.js";
38
38
 
39
39
  // src/map/renderer.ts
40
40
  import * as d3Selection from "d3-selection";
@@ -781,4 +781,4 @@ export {
781
781
  renderMap,
782
782
  renderMapForExport
783
783
  };
784
- //# sourceMappingURL=chunk-UXXLE6AH.js.map
784
+ //# sourceMappingURL=chunk-PRKPFRC2.js.map
@@ -1,3 +1,9 @@
1
+ import {
2
+ tagAttrKey
3
+ } from "./chunk-D5FANMSG.js";
4
+ import {
5
+ legendSuppressed
6
+ } from "./chunk-3KOPPSUQ.js";
1
7
  import {
2
8
  LEGEND_CAPSULE_PAD,
3
9
  LEGEND_DOT_R,
@@ -8,17 +14,11 @@ import {
8
14
  LEGEND_PILL_FONT_SIZE,
9
15
  LEGEND_PILL_PAD,
10
16
  measureLegendText
11
- } from "./chunk-Q5IHQ4NW.js";
17
+ } from "./chunk-SCJ7CAJF.js";
12
18
  import {
13
19
  measureText,
14
20
  wrapTextToWidth
15
21
  } from "./chunk-4ASYQ347.js";
16
- import {
17
- tagAttrKey
18
- } from "./chunk-JR7Q6GHE.js";
19
- import {
20
- legendSuppressed
21
- } from "./chunk-A2ARDILY.js";
22
22
 
23
23
  // src/c4/layout.ts
24
24
  import dagre from "@dagrejs/dagre";
@@ -1718,4 +1718,4 @@ export {
1718
1718
  layoutC4Components,
1719
1719
  layoutC4Deployment
1720
1720
  };
1721
- //# sourceMappingURL=chunk-AKE6C2D7.js.map
1721
+ //# sourceMappingURL=chunk-PUGUOFM6.js.map