@diagrammo/dgmo 0.72.0 → 0.74.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 (273) hide show
  1. package/dist/advanced.d.ts +20 -11
  2. package/dist/advanced.js +115 -116
  3. package/dist/{analyzer-HQUXKZ5J.js → analyzer-FHRJUIMW.js} +3 -3
  4. package/dist/block.d.ts +2 -2
  5. package/dist/block.js +63 -75
  6. package/dist/calculator-CVQ54JNE.js +13 -0
  7. package/dist/{chart-meta-6JaOudSs.d.ts → chart-meta-lP8Rl19E.d.ts} +4 -3
  8. package/dist/chart-meta.d.ts +3 -3
  9. package/dist/chart-meta.js +49 -49
  10. package/dist/{charts-d3-6IHGTXBR.js → charts-d3-LWHTOVX7.js} +12 -12
  11. package/dist/{chunk-HKL66CKW.js → chunk-2MJSSDK5.js} +9 -9
  12. package/dist/{chunk-MFSTE3YG.js → chunk-2NRIGEHZ.js} +26 -18
  13. package/dist/{chunk-376ATV2Q.js → chunk-2QRIMMIH.js} +5 -5
  14. package/dist/{chunk-JIWDWOYA.js → chunk-3H4PDNP4.js} +4 -4
  15. package/dist/{chunk-MKNWMFZU.js → chunk-3SP6G4LN.js} +31 -27
  16. package/dist/{chunk-VE7PPEU3.js → chunk-474D3IUN.js} +8 -8
  17. package/dist/{chunk-MTPKBSTR.js → chunk-4SXHMFFP.js} +2 -2
  18. package/dist/{chunk-WPXHTYET.js → chunk-4YER7UCV.js} +4 -4
  19. package/dist/{chunk-P6RPHRX7.js → chunk-57Z2WXJ2.js} +6 -6
  20. package/dist/{chunk-7TSBM4BV.js → chunk-5KE6KHY6.js} +5 -5
  21. package/dist/{chunk-DZ34UUXC.js → chunk-5NAOTRLN.js} +11 -11
  22. package/dist/{chunk-MC2H32SM.js → chunk-5PFNUDXR.js} +4 -4
  23. package/dist/{chunk-OLMWTJVU.js → chunk-5SI6T5A5.js} +1 -1
  24. package/dist/{chunk-UJXCDF4E.js → chunk-5VMUVJO4.js} +2 -2
  25. package/dist/{chunk-ZGVVPILJ.js → chunk-6DYZ2JM6.js} +2 -2
  26. package/dist/{chunk-DPGI742S.js → chunk-76LHNLGX.js} +4 -4
  27. package/dist/{chunk-MX3BYU7V.js → chunk-76NHL5UG.js} +3 -3
  28. package/dist/{chunk-AEYRSPVV.js → chunk-7BMX2M3F.js} +3 -3
  29. package/dist/{chunk-FFD6A3B2.js → chunk-7NSNE52V.js} +18 -11
  30. package/dist/{chunk-2OTYNNHS.js → chunk-ALBVWTU4.js} +10 -10
  31. package/dist/{chunk-UF3EALKC.js → chunk-ALDU62VN.js} +10 -10
  32. package/dist/{chunk-W27BULCB.js → chunk-BBH5IAAR.js} +9 -9
  33. package/dist/{chunk-HWNF22ZZ.js → chunk-BWJLLNUX.js} +5 -5
  34. package/dist/{chunk-3HN32MEK.js → chunk-C2WH3BMS.js} +4 -4
  35. package/dist/{chunk-QITH5XOX.js → chunk-CDFIZHVD.js} +11 -11
  36. package/dist/{chunk-66VHK7PP.js → chunk-CMQJP5L4.js} +9 -9
  37. package/dist/{chunk-GK4AU57A.js → chunk-CQKD6GOC.js} +5 -5
  38. package/dist/{chunk-NUF7YTHA.js → chunk-CRLVJZWX.js} +3 -3
  39. package/dist/{chunk-WMHHNK44.js → chunk-DGPFFRLS.js} +2 -2
  40. package/dist/{chunk-UTVKOGFF.js → chunk-DJL5PO27.js} +94 -40
  41. package/dist/{chunk-RJI6MHHK.js → chunk-DU3OIBQE.js} +6 -6
  42. package/dist/{chunk-YYBQ55V2.js → chunk-DY7KDZUF.js} +4 -4
  43. package/dist/{chunk-BSI5EOAX.js → chunk-E3BJVEMZ.js} +7 -11
  44. package/dist/{chunk-7NK42OIB.js → chunk-E6PNTYRK.js} +2 -2
  45. package/dist/{chunk-VLXYWPPE.js → chunk-EPH4UMUE.js} +7 -7
  46. package/dist/{chunk-MUVASOBD.js → chunk-EV6BZMBZ.js} +10 -10
  47. package/dist/{chunk-MWWRIOEN.js → chunk-F4V67JXG.js} +3 -3
  48. package/dist/{chunk-HBVKOYZD.js → chunk-FGXBIOVK.js} +3 -3
  49. package/dist/{chunk-ELIGVSLE.js → chunk-FL5IKZQA.js} +12 -6
  50. package/dist/{chunk-W7SZKJR6.js → chunk-FPRMP6YA.js} +4 -4
  51. package/dist/{chunk-IKHV5IJB.js → chunk-GE5RO4BS.js} +2 -2
  52. package/dist/{chunk-CGLBK5Q4.js → chunk-GJQQCI63.js} +5 -4
  53. package/dist/{chunk-KWRW6BLG.js → chunk-GLREDNBA.js} +2 -2
  54. package/dist/{chunk-N5247W2W.js → chunk-GQJ35I2I.js} +61 -54
  55. package/dist/{chunk-VGLSKDDI.js → chunk-GRN44Z6A.js} +3 -3
  56. package/dist/{chunk-7U3NDE7T.js → chunk-HFCKU73Y.js} +7 -7
  57. package/dist/{chunk-KOVRFBGR.js → chunk-ICVIJLBA.js} +16 -11
  58. package/dist/{chunk-RRX4Z4TH.js → chunk-IHOFUR74.js} +2 -2
  59. package/dist/{chunk-UNM2PX5D.js → chunk-JLODGGN2.js} +4 -4
  60. package/dist/{chunk-UCGEBFUC.js → chunk-JSYAH7KR.js} +4 -4
  61. package/dist/{chunk-GCTKJDLY.js → chunk-KR432TCU.js} +10 -10
  62. package/dist/{chunk-PBV2C3BW.js → chunk-KRTLS3G6.js} +24 -20
  63. package/dist/{chunk-LTGOPJUV.js → chunk-KWSBNLSC.js} +3 -3
  64. package/dist/{chunk-XIZCHGP7.js → chunk-L2EA5YLO.js} +9 -9
  65. package/dist/{chunk-KJWIU5AM.js → chunk-LKS56RDT.js} +3 -3
  66. package/dist/{chunk-ET4R3AU5.js → chunk-LM3HY3VG.js} +2 -2
  67. package/dist/{chunk-O4OVVK6J.js → chunk-LSHMDQZQ.js} +7 -7
  68. package/dist/{chunk-FLXDMH7B.js → chunk-LXXVHLTH.js} +30 -24
  69. package/dist/{chunk-L3XB446I.js → chunk-LYLRNAX2.js} +2 -2
  70. package/dist/{chunk-UY77QQWU.js → chunk-M526IKKH.js} +11 -7
  71. package/dist/{chunk-YH5KJIO5.js → chunk-M5JT2AU7.js} +8 -8
  72. package/dist/{chunk-ZJJWON5O.js → chunk-M5OOAP65.js} +271 -5
  73. package/dist/{chunk-3SNE4CLI.js → chunk-MDEG62W7.js} +7 -7
  74. package/dist/{chunk-RTTELOOP.js → chunk-MS5574I7.js} +3 -3
  75. package/dist/{chunk-I55PVEIX.js → chunk-MSVQ2YCY.js} +2 -2
  76. package/dist/{chunk-FTPNAYL2.js → chunk-NHQ7HUAS.js} +4 -4
  77. package/dist/{chunk-2VBJCTSG.js → chunk-NW3VXCXR.js} +5 -5
  78. package/dist/{chunk-6PA32CUB.js → chunk-OKXWPKUC.js} +4 -4
  79. package/dist/{chunk-UKOOGXRF.js → chunk-PHRBLJ3K.js} +8 -8
  80. package/dist/{chunk-LSHROB27.js → chunk-Q6BAFS7I.js} +5 -5
  81. package/dist/{chunk-WRWUZ2C4.js → chunk-Q6LP67RP.js} +4 -4
  82. package/dist/{chunk-IW6N2JJL.js → chunk-Q74GP3GK.js} +2 -2
  83. package/dist/{chunk-IXVK7XCN.js → chunk-QMFIZQTB.js} +2 -2
  84. package/dist/{chunk-QAJFIXJE.js → chunk-QOVM5VRC.js} +28 -28
  85. package/dist/{chunk-6S53NO3M.js → chunk-QT5UMFPE.js} +5 -5
  86. package/dist/{chunk-HZQCKXPB.js → chunk-R5JPMW2F.js} +42 -42
  87. package/dist/{chunk-SPA7DCB3.js → chunk-RN3PAL4E.js} +3 -3
  88. package/dist/{chunk-REBTZP3W.js → chunk-RQ6SEQOT.js} +6 -6
  89. package/dist/{chunk-NTBHGUXY.js → chunk-RWFMOVHG.js} +4 -4
  90. package/dist/{chunk-QPG55HGH.js → chunk-S5P5Z5Y5.js} +5 -5
  91. package/dist/{chunk-WF2HDQPG.js → chunk-S6OXNZBM.js} +3 -3
  92. package/dist/{chunk-NEC7R2CB.js → chunk-SH4PPRU7.js} +3 -3
  93. package/dist/{chunk-UNTFANSM.js → chunk-SUA56ZSB.js} +15 -10
  94. package/dist/{chunk-7SEQPFBX.js → chunk-SWEKCK34.js} +33 -28
  95. package/dist/{chunk-BYSRXYRW.js → chunk-SXZS56YM.js} +6 -6
  96. package/dist/{chunk-7BHM774H.js → chunk-T6BO4VO6.js} +8 -8
  97. package/dist/{chunk-DHKVHP3Y.js → chunk-TC63QU4M.js} +18 -16
  98. package/dist/{chunk-NJKUTY4M.js → chunk-TDHD3HNO.js} +5 -5
  99. package/dist/{chunk-T7W5LM4N.js → chunk-TN754B3R.js} +5 -5
  100. package/dist/{chunk-DEVZWCD5.js → chunk-TPN7RJOM.js} +21 -12
  101. package/dist/{chunk-4VUFJ7UA.js → chunk-TTCXHFFB.js} +6 -6
  102. package/dist/{chunk-E36Q5ABQ.js → chunk-U74EGVOA.js} +7 -7
  103. package/dist/{chunk-NNMNHE3J.js → chunk-UCZBRGJN.js} +3 -3
  104. package/dist/{chunk-VMXV2CL5.js → chunk-UJBP57UJ.js} +29 -12
  105. package/dist/{chunk-PKTRDOBI.js → chunk-ULEWCCBN.js} +3 -3
  106. package/dist/{chunk-YTFA4VTW.js → chunk-VBJCGGNF.js} +3 -3
  107. package/dist/{chunk-TF7CFAZ5.js → chunk-W7UBPARG.js} +4 -4
  108. package/dist/{chunk-OQKP2X3D.js → chunk-WFA6IULY.js} +57 -3
  109. package/dist/{chunk-N34OTOGH.js → chunk-WQXD3IIN.js} +3 -3
  110. package/dist/{chunk-EETUTZ5C.js → chunk-WWQ6TUVK.js} +2 -2
  111. package/dist/{chunk-6OAKQTXQ.js → chunk-XCAEHWQB.js} +3 -3
  112. package/dist/{chunk-WEC3JPTN.js → chunk-XJLNQEQS.js} +8 -8
  113. package/dist/{chunk-EXNKNJ65.js → chunk-XOGQY4EC.js} +2 -2
  114. package/dist/{chunk-K6MQJ5IV.js → chunk-Y2CYNRL7.js} +3 -3
  115. package/dist/{chunk-PZVYUQJA.js → chunk-YDA46XHI.js} +4 -4
  116. package/dist/{chunk-U4NFAWQW.js → chunk-YJ5G2WRU.js} +9 -9
  117. package/dist/{chunk-6CLC26GU.js → chunk-YJMWEZOB.js} +2 -2
  118. package/dist/{chunk-6DGMS2WJ.js → chunk-YSMI6TNZ.js} +6 -6
  119. package/dist/{chunk-QX53GOI7.js → chunk-YT5ICQ4R.js} +2 -2
  120. package/dist/{chunk-7RAWNJI5.js → chunk-YXY6V2YN.js} +114 -107
  121. package/dist/{chunk-5DYDPP7K.js → chunk-Z7KVOVE4.js} +115 -240
  122. package/dist/{chunk-YG35ZCNW.js → chunk-ZM27UI5O.js} +36 -32
  123. package/dist/completion-registry.js +25 -21
  124. package/dist/countdown.js +26 -6
  125. package/dist/{d3-Bfhj-XBX.d.ts → d3--y67plmW.d.ts} +1 -1
  126. package/dist/{dgmo-router-Lya7cs3R.d.ts → dgmo-router-CY5j16Pl.d.ts} +1 -1
  127. package/dist/dgmo-router-KYNLRE7S.js +89 -0
  128. package/dist/dimensions-Q5SFPATB.js +22 -0
  129. package/dist/editor.js +1 -0
  130. package/dist/flowchart-parser-LY5GGQL2.js +21 -0
  131. package/dist/{flowchart-renderer-JMGOCLTQ.js → flowchart-renderer-TTUSBBQI.js} +12 -12
  132. package/dist/highlight.js +7 -18
  133. package/dist/index.d.ts +7 -7
  134. package/dist/index.js +60 -58
  135. package/dist/layout-5ILNODTP.js +15 -0
  136. package/dist/{layout-RD7GDM4I.js → layout-B5GQVXXY.js} +4 -4
  137. package/dist/{layout-5RUQ5FBZ.js → layout-DAYQ46PS.js} +3 -3
  138. package/dist/{layout-2DVT24YY.js → layout-EM4DLMAX.js} +6 -6
  139. package/dist/{layout-LVMWK4QY.js → layout-KQUSB45X.js} +4 -4
  140. package/dist/{layout-WIMQIHBU.js → layout-ROORJQ4X.js} +4 -4
  141. package/dist/layout-RV2T2YTT.js +15 -0
  142. package/dist/{layout-AWPST2S3.js → layout-UJ62RQQ3.js} +7 -7
  143. package/dist/layout-VUZ3MLOI.js +15 -0
  144. package/dist/{layout-BGXLVSXL.js → layout-ZAGUFT2G.js} +8 -8
  145. package/dist/{layout-search-C44CJQOB.js → layout-search-UOKEMER5.js} +4 -4
  146. package/dist/{legend-constants-FP5MFDD4.js → legend-constants-PLN2YHGM.js} +5 -5
  147. package/dist/{palettes-WQZ2TPVZ.js → palettes-54YSI3IX.js} +4 -4
  148. package/dist/parser-2GMHFSTS.js +16 -0
  149. package/dist/parser-3AOMUX5D.js +14 -0
  150. package/dist/parser-3KQONLXZ.js +11 -0
  151. package/dist/parser-4DLU4SNG.js +11 -0
  152. package/dist/parser-4KFJKLP2.js +11 -0
  153. package/dist/{parser-CDMP3UVH.js → parser-5XFGK5C5.js} +7 -7
  154. package/dist/parser-6FUESG4N.js +13 -0
  155. package/dist/parser-B2XQNHZM.js +11 -0
  156. package/dist/parser-CJNP7RKR.js +13 -0
  157. package/dist/parser-E3OHNNTH.js +12 -0
  158. package/dist/parser-EQ4I3TSH.js +20 -0
  159. package/dist/parser-F4ZKDGUZ.js +12 -0
  160. package/dist/parser-GCVSRQPY.js +17 -0
  161. package/dist/parser-H4ZUNLX4.js +15 -0
  162. package/dist/parser-JYIZEKAS.js +19 -0
  163. package/dist/{parser-ZIEEBJMU.js → parser-L7RXUKYN.js} +7 -7
  164. package/dist/{parser-TJ3SP2MJ.js → parser-L7T7FY3H.js} +7 -7
  165. package/dist/parser-LUOINP6H.js +15 -0
  166. package/dist/parser-LV7PQBUG.js +13 -0
  167. package/dist/parser-ML3LVNDV.js +13 -0
  168. package/dist/parser-PR3OR3LO.js +14 -0
  169. package/dist/parser-QOIZGW7I.js +17 -0
  170. package/dist/parser-RDBXEVI4.js +12 -0
  171. package/dist/parser-TA5TYZNL.js +18 -0
  172. package/dist/parser-UTR5WE4O.js +13 -0
  173. package/dist/parser-WCFG3DZA.js +11 -0
  174. package/dist/{parser-XM6JC3UK.js → parser-WMJEPZDC.js} +6 -6
  175. package/dist/{parser-O7GTECFP.js → parser-WQNT7T2P.js} +5 -5
  176. package/dist/parser-WWRRG2DV.js +15 -0
  177. package/dist/parser-XVSDFO56.js +11 -0
  178. package/dist/parser-YWQCC33R.js +16 -0
  179. package/dist/{parser-EX3AGFT5.js → parser-ZT3PU2HT.js} +6 -6
  180. package/dist/parser-ZXQZZK6W.js +15 -0
  181. package/dist/pert.d.ts +10 -0
  182. package/dist/{renderer-WLA3NQCC.js → renderer-227JWWHX.js} +13 -13
  183. package/dist/renderer-2WW35ZIW.js +23 -0
  184. package/dist/renderer-3FB56573.js +22 -0
  185. package/dist/renderer-3LD3ANCP.js +25 -0
  186. package/dist/renderer-46QQH33X.js +27 -0
  187. package/dist/{renderer-2T2RAFWX.js → renderer-4K6KR3U3.js} +14 -14
  188. package/dist/{renderer-UPTO25OX.js → renderer-55JP6AO4.js} +12 -12
  189. package/dist/renderer-6HRDO635.js +26 -0
  190. package/dist/renderer-6IGQEVTE.js +20 -0
  191. package/dist/renderer-6SSIELBC.js +16 -0
  192. package/dist/{renderer-IH5C7NQT.js → renderer-AA5CC4VJ.js} +6 -6
  193. package/dist/renderer-BUEFD2IF.js +21 -0
  194. package/dist/{renderer-VP4DPLDY.js → renderer-CF5TYQT4.js} +6 -6
  195. package/dist/{renderer-W7JC2CTQ.js → renderer-E5BYZTVH.js} +6 -6
  196. package/dist/renderer-EJXFEA5C.js +25 -0
  197. package/dist/{renderer-FAD65M5Z.js → renderer-EP4GRCDX.js} +6 -6
  198. package/dist/renderer-IPNSOM5J.js +26 -0
  199. package/dist/{renderer-ACGZ5KJG.js → renderer-N2X3WYBY.js} +17 -17
  200. package/dist/{renderer-Y3D36RIT.js → renderer-NECP7G4X.js} +11 -11
  201. package/dist/renderer-OTHBTGBN.js +16 -0
  202. package/dist/{renderer-ZRHTC24Q.js → renderer-OWBIWBMK.js} +11 -11
  203. package/dist/{renderer-IZFO3G22.js → renderer-P55KPBIX.js} +17 -17
  204. package/dist/{renderer-K73COK5L.js → renderer-QLZVE45Z.js} +8 -8
  205. package/dist/{renderer-QZRM6H4S.js → renderer-SCIHPARI.js} +5 -5
  206. package/dist/{renderer-Y4VC3VH4.js → renderer-TI7QABY7.js} +14 -15
  207. package/dist/renderer-U6PK5ZKD.js +24 -0
  208. package/dist/renderer-UUPNOGO5.js +25 -0
  209. package/dist/{renderer-CB44E262.js → renderer-UXZEYV2X.js} +13 -13
  210. package/dist/renderer-UYYBJ7OB.js +76 -0
  211. package/dist/{renderer-CL4X5S3T.js → renderer-W7RKBG6C.js} +12 -12
  212. package/dist/{renderer-VEN6AIWW.js → renderer-XBL6CLN2.js} +12 -12
  213. package/dist/{renderer-E42I44WZ.js → renderer-YM7PLDBF.js} +13 -13
  214. package/dist/{renderer-2MEPYGAP.js → renderer-YQI5U6KJ.js} +13 -13
  215. package/dist/renderer-radial-MZP3SVTZ.js +21 -0
  216. package/dist/{resolver-B3TXWNWF.js → resolver-H5E6V7LJ.js} +3 -3
  217. package/dist/state-parser-TPA67IXM.js +19 -0
  218. package/dist/{state-renderer-FJ2GT4MU.js → state-renderer-OPP6YOJI.js} +17 -17
  219. package/dist/{tag-groups-NUA2F1I5.d.ts → tag-groups-DrHT2tEc.d.ts} +10 -0
  220. package/dist/{themes-Dem5xalq.d.ts → themes-GWhsabnx.d.ts} +2 -2
  221. package/docs/language-reference.md +52 -13
  222. package/gallery/fixtures/countdown.dgmo +1 -1
  223. package/package.json +1 -1
  224. package/dist/calculator-4CNL2GKU.js +0 -13
  225. package/dist/dgmo-router-O55I5UXN.js +0 -89
  226. package/dist/dimensions-EFEBIRS6.js +0 -22
  227. package/dist/flowchart-parser-LZF2GW2P.js +0 -21
  228. package/dist/layout-4D5JRUHX.js +0 -15
  229. package/dist/layout-VMDNULKS.js +0 -15
  230. package/dist/layout-VVTXA3W2.js +0 -15
  231. package/dist/parser-2CXA7K5C.js +0 -13
  232. package/dist/parser-4E2TVMOK.js +0 -13
  233. package/dist/parser-52AZJ3BA.js +0 -17
  234. package/dist/parser-52BOCAVQ.js +0 -15
  235. package/dist/parser-5IPCYVXY.js +0 -12
  236. package/dist/parser-6BF5TJQH.js +0 -16
  237. package/dist/parser-6VZISXFY.js +0 -11
  238. package/dist/parser-6Y5BMNNJ.js +0 -14
  239. package/dist/parser-7HUZBXKW.js +0 -11
  240. package/dist/parser-AEJ73QJS.js +0 -11
  241. package/dist/parser-AWNEAGMJ.js +0 -12
  242. package/dist/parser-C2QRTZPJ.js +0 -13
  243. package/dist/parser-CBSYFN6U.js +0 -11
  244. package/dist/parser-CNKHKQKZ.js +0 -17
  245. package/dist/parser-GK3JWVHY.js +0 -18
  246. package/dist/parser-GZKR6BFA.js +0 -14
  247. package/dist/parser-K26KDCZN.js +0 -11
  248. package/dist/parser-LTJ5AKY4.js +0 -16
  249. package/dist/parser-NIGB4EYX.js +0 -12
  250. package/dist/parser-OHWDJGCP.js +0 -15
  251. package/dist/parser-QCVEWLCO.js +0 -15
  252. package/dist/parser-SUAOF72Y.js +0 -13
  253. package/dist/parser-W2HXBHNC.js +0 -11
  254. package/dist/parser-WF4R7225.js +0 -15
  255. package/dist/parser-XRZQ7SC7.js +0 -13
  256. package/dist/parser-YRJAGBV7.js +0 -19
  257. package/dist/parser-Z3LN7P6G.js +0 -20
  258. package/dist/renderer-4DFEFP4X.js +0 -26
  259. package/dist/renderer-52KYFTNZ.js +0 -16
  260. package/dist/renderer-B4Q6LUW2.js +0 -24
  261. package/dist/renderer-E3UQ24DE.js +0 -25
  262. package/dist/renderer-H5QR3LC3.js +0 -16
  263. package/dist/renderer-JHWGW4Q7.js +0 -25
  264. package/dist/renderer-KQIJV5WD.js +0 -19
  265. package/dist/renderer-MZ4N2SVV.js +0 -25
  266. package/dist/renderer-QMSFXMAL.js +0 -21
  267. package/dist/renderer-VOXE7V6L.js +0 -27
  268. package/dist/renderer-WBG576LB.js +0 -26
  269. package/dist/renderer-XR4SVKNE.js +0 -22
  270. package/dist/renderer-YROML2KW.js +0 -76
  271. package/dist/renderer-YXYEP46H.js +0 -23
  272. package/dist/renderer-radial-KZ3W4WXI.js +0 -21
  273. package/dist/state-parser-HJNCGIFT.js +0 -19
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  isTagBlockHeading,
6
6
  matchTagBlockHeading
7
- } from "./chunk-DPGI742S.js";
7
+ } from "./chunk-76LHNLGX.js";
8
8
  import {
9
9
  makeDgmoError
10
- } from "./chunk-OLMWTJVU.js";
10
+ } from "./chunk-5SI6T5A5.js";
11
11
 
12
12
  // src/pert/share-normalize.ts
13
13
  var START_DATE_NOW_RE = /^(\s*start-date\s+)now(\s*)$/i;
@@ -34,8 +34,9 @@ function normalizePertSourceForShare(dsl) {
34
34
 
35
35
  // src/org/resolver.ts
36
36
  var MAX_DEPTH = 10;
37
- var IMPORT_RE = /^(\s+)import:?\s+(.+\.dgmo)\s*$/i;
38
- var TAGS_RE = /^tags:?\s+(.+\.dgmo)\s*$/i;
37
+ var IMPORT_RE = /^(\s+)import\s+(.+\.dgmo)\s*$/i;
38
+ var HEADER_IMPORT_RE = /^import\s+(.+\.dgmo)\s*$/i;
39
+ var FILE_REF_RE = /^\s*([A-Za-z][\w-]*)(:?)\s+\S+\.dgmo\s*$/;
39
40
  var HEADER_RE = /^(org|kanban|title\s*:)/i;
40
41
  var KNOWN_HEADER_OPTIONS = /* @__PURE__ */ new Set([
41
42
  "direction-tb",
@@ -100,7 +101,7 @@ function parseFileHeader(lines) {
100
101
  }
101
102
  }
102
103
  }
103
- let tagsDirective = null;
104
+ let headerImportPath = null;
104
105
  const contentLines = [];
105
106
  const contentLineIndices = [];
106
107
  let headerDone = false;
@@ -111,9 +112,9 @@ function parseFileHeader(lines) {
111
112
  if (!headerDone && (trimmed === "" || trimmed.startsWith("//"))) continue;
112
113
  if (!headerDone) {
113
114
  if (HEADER_RE.test(trimmed)) continue;
114
- const tagsMatch = trimmed.match(TAGS_RE);
115
- if (tagsMatch) {
116
- tagsDirective = tagsMatch[1].trim();
115
+ const headerImportMatch = rawLine.match(HEADER_IMPORT_RE);
116
+ if (headerImportMatch) {
117
+ headerImportPath = headerImportMatch[1].trim();
117
118
  continue;
118
119
  }
119
120
  if (!rawLine.match(/^\s/) && !isTagBlockHeading(trimmed) && !trimmed.includes("|")) {
@@ -127,7 +128,7 @@ function parseFileHeader(lines) {
127
128
  contentLines.push(rawLine);
128
129
  contentLineIndices.push(i);
129
130
  }
130
- return { contentLines, contentLineIndices, tagGroups, tagsDirective };
131
+ return { contentLines, contentLineIndices, tagGroups, headerImportPath };
131
132
  }
132
133
  async function resolveOrgImports(content, filePath, readFileFn) {
133
134
  const diagnostics = [];
@@ -137,7 +138,8 @@ async function resolveOrgImports(content, filePath, readFileFn) {
137
138
  readFileFn,
138
139
  diagnostics,
139
140
  /* @__PURE__ */ new Set([filePath]),
140
- 0
141
+ 0,
142
+ null
141
143
  );
142
144
  return {
143
145
  content: result.content,
@@ -146,13 +148,40 @@ async function resolveOrgImports(content, filePath, readFileFn) {
146
148
  importSourceMap: result.importSourceMap
147
149
  };
148
150
  }
149
- async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorChain, depth) {
151
+ function pushDiag(diagnostics, origin, line, message) {
152
+ if (origin === null) {
153
+ diagnostics.push(makeDgmoError(line, message));
154
+ return;
155
+ }
156
+ diagnostics.push({
157
+ ...makeDgmoError(
158
+ origin.line,
159
+ `${origin.displayPath} line ${line}: ${message}`
160
+ ),
161
+ file: origin.displayPath,
162
+ fileLine: line
163
+ });
164
+ }
165
+ async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorChain, depth, origin) {
150
166
  const lines = content.split("\n");
167
+ for (let i = 0; i < lines.length; i++) {
168
+ const match = lines[i].match(FILE_REF_RE);
169
+ if (!match) continue;
170
+ const keyword = match[1];
171
+ const colon = match[2];
172
+ if (keyword.toLowerCase() === "import" && colon === "") continue;
173
+ pushDiag(
174
+ diagnostics,
175
+ origin,
176
+ i + 1,
177
+ keyword.toLowerCase() === "import" ? "An import takes no colon: write `import <file>.dgmo`" : `Unknown directive \`${keyword}\`: a file is pulled in with \`import <file>.dgmo\``
178
+ );
179
+ }
151
180
  const headerLines = [];
152
- let tagsDirective = null;
181
+ let headerImportPath = null;
153
182
  const inlineTagGroups = extractTagGroups(lines);
154
183
  const bodyStartIndex = findBodyStart(lines);
155
- let tagsLineNumber = 0;
184
+ let headerImportLine = 0;
156
185
  for (let i = 0; i < bodyStartIndex; i++) {
157
186
  const rawLine = lines[i];
158
187
  const trimmed = rawLine.trim();
@@ -162,24 +191,26 @@ async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorC
162
191
  }
163
192
  if (isTagBlockHeading(trimmed)) continue;
164
193
  if (/^\s/.test(rawLine)) continue;
165
- const tagsMatch = trimmed.match(TAGS_RE);
166
- if (tagsMatch) {
167
- tagsDirective = tagsMatch[1].trim();
168
- tagsLineNumber = i + 1;
194
+ const headerImportMatch = rawLine.match(HEADER_IMPORT_RE);
195
+ if (headerImportMatch) {
196
+ headerImportPath = headerImportMatch[1].trim();
197
+ headerImportLine = i + 1;
169
198
  continue;
170
199
  }
171
200
  headerLines.push({ text: rawLine, originalLine: i + 1 });
172
201
  }
173
- let tagsFileGroups = [];
174
- if (tagsDirective) {
175
- const tagsPath = resolvePath(filePath, tagsDirective);
202
+ let headerImportGroups = [];
203
+ if (headerImportPath) {
204
+ const absPath = resolvePath(filePath, headerImportPath);
176
205
  try {
177
- const tagsContent = await readFileFn(tagsPath);
178
- const tagsLines = tagsContent.split("\n");
179
- tagsFileGroups = extractTagGroups(tagsLines);
206
+ const importedContent = await readFileFn(absPath);
207
+ headerImportGroups = extractTagGroups(importedContent.split("\n"));
180
208
  } catch {
181
- diagnostics.push(
182
- makeDgmoError(tagsLineNumber, `Tags file not found: ${tagsDirective}`)
209
+ pushDiag(
210
+ diagnostics,
211
+ origin,
212
+ headerImportLine,
213
+ `Import file not found: ${headerImportPath}`
183
214
  );
184
215
  }
185
216
  }
@@ -191,6 +222,19 @@ async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorC
191
222
  const lineNumber = bodyStartIndex + i + 1;
192
223
  const importMatch = line.match(IMPORT_RE);
193
224
  if (!importMatch) {
225
+ if (HEADER_IMPORT_RE.test(line)) {
226
+ pushDiag(
227
+ diagnostics,
228
+ origin,
229
+ lineNumber,
230
+ "An import in the body must be indented under the person it reports to"
231
+ );
232
+ continue;
233
+ }
234
+ const fileRef = line.match(FILE_REF_RE);
235
+ if (fileRef && !(fileRef[1].toLowerCase() === "import" && fileRef[2] === "")) {
236
+ continue;
237
+ }
194
238
  const trimmed = line.trim();
195
239
  if (isTagBlockHeading(trimmed) || inlineTagGroups.length > 0 && isTagGroupEntry(line, bodyLines, i)) {
196
240
  continue;
@@ -206,18 +250,21 @@ async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorC
206
250
  const importRelPath = importMatch[2].trim();
207
251
  const importAbsPath = resolvePath(filePath, importRelPath);
208
252
  if (depth >= MAX_DEPTH) {
209
- diagnostics.push(
210
- makeDgmoError(
211
- lineNumber,
212
- `Import depth limit exceeded (${MAX_DEPTH}): ${importRelPath}`
213
- )
253
+ pushDiag(
254
+ diagnostics,
255
+ origin,
256
+ lineNumber,
257
+ `Import depth limit exceeded (${MAX_DEPTH}): ${importRelPath}`
214
258
  );
215
259
  continue;
216
260
  }
217
261
  if (ancestorChain.has(importAbsPath)) {
218
262
  const chain = [...ancestorChain, importAbsPath].map((p) => p.split("/").pop()).join(" -> ");
219
- diagnostics.push(
220
- makeDgmoError(lineNumber, `Circular import detected: ${chain}`)
263
+ pushDiag(
264
+ diagnostics,
265
+ origin,
266
+ lineNumber,
267
+ `Circular import detected: ${chain}`
221
268
  );
222
269
  continue;
223
270
  }
@@ -225,8 +272,11 @@ async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorC
225
272
  try {
226
273
  importedContent = await readFileFn(importAbsPath);
227
274
  } catch {
228
- diagnostics.push(
229
- makeDgmoError(lineNumber, `Import file not found: ${importRelPath}`)
275
+ pushDiag(
276
+ diagnostics,
277
+ origin,
278
+ lineNumber,
279
+ `Import file not found: ${importRelPath}`
230
280
  );
231
281
  continue;
232
282
  }
@@ -238,7 +288,11 @@ async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorC
238
288
  readFileFn,
239
289
  diagnostics,
240
290
  nestedChain,
241
- depth + 1
291
+ depth + 1,
292
+ {
293
+ displayPath: importRelPath,
294
+ line: origin === null ? lineNumber : origin.line
295
+ }
242
296
  );
243
297
  const resolvedLines = resolved.content.split("\n");
244
298
  const parsed = parseFileHeader(resolvedLines);
@@ -289,7 +343,7 @@ async function resolveFile(content, filePath, readFileFn, diagnostics, ancestorC
289
343
  }
290
344
  const mergedGroups = mergeTagGroups(
291
345
  inlineTagGroups,
292
- tagsFileGroups,
346
+ headerImportGroups,
293
347
  importedTagGroups
294
348
  );
295
349
  const outputLines = [];
@@ -357,7 +411,7 @@ function findBodyStart(lines) {
357
411
  inTagGroup = false;
358
412
  }
359
413
  if (HEADER_RE.test(trimmed)) continue;
360
- if (TAGS_RE.test(trimmed)) continue;
414
+ if (HEADER_IMPORT_RE.test(rawLine)) continue;
361
415
  if (!rawLine.match(/^\s/) && !trimmed.includes("|") && !isTagBlockHeading(trimmed)) {
362
416
  const firstToken = trimmed.split(/\s/)[0].toLowerCase();
363
417
  if (KNOWN_HEADER_OPTIONS.has(firstToken)) {
@@ -380,12 +434,12 @@ function isTagGroupEntry(line, allLines, index) {
380
434
  }
381
435
  return false;
382
436
  }
383
- function mergeTagGroups(inline, tagsFile, imported) {
437
+ function mergeTagGroups(inline, headerImport, imported) {
384
438
  const seen = /* @__PURE__ */ new Map();
385
439
  for (const group of inline) {
386
440
  seen.set(group.name, group);
387
441
  }
388
- for (const group of tagsFile) {
442
+ for (const group of headerImport) {
389
443
  if (!seen.has(group.name)) {
390
444
  seen.set(group.name, group);
391
445
  }
@@ -402,4 +456,4 @@ export {
402
456
  normalizePertSourceForShare,
403
457
  resolveOrgImports
404
458
  };
405
- //# sourceMappingURL=chunk-UTVKOGFF.js.map
459
+ //# sourceMappingURL=chunk-DJL5PO27.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-7TF3QOOD.js";
4
4
  import {
5
5
  tryCollectNote
6
- } from "./chunk-MX3BYU7V.js";
6
+ } from "./chunk-76NHL5UG.js";
7
7
  import {
8
8
  resolveNotes
9
- } from "./chunk-7NK42OIB.js";
9
+ } from "./chunk-E6PNTYRK.js";
10
10
  import {
11
11
  parseInArrowLabel
12
- } from "./chunk-RRX4Z4TH.js";
12
+ } from "./chunk-IHOFUR74.js";
13
13
  import {
14
14
  displayName,
15
15
  normalizeName
@@ -21,7 +21,7 @@ import {
21
21
  measureIndent,
22
22
  parseFirstLine,
23
23
  tryParseSharedOption
24
- } from "./chunk-ZJJWON5O.js";
24
+ } from "./chunk-M5OOAP65.js";
25
25
  import {
26
26
  NAME_DIAGNOSTIC_CODES,
27
27
  emit,
@@ -29,7 +29,7 @@ import {
29
29
  makeDgmoError,
30
30
  nameMergedMessage,
31
31
  suggest
32
- } from "./chunk-OLMWTJVU.js";
32
+ } from "./chunk-5SI6T5A5.js";
33
33
 
34
34
  // src/graph/flowchart-parser.ts
35
35
  function nodeId(shape, label) {
@@ -470,4 +470,4 @@ export {
470
470
  looksLikeFlowchart,
471
471
  extractSymbols
472
472
  };
473
- //# sourceMappingURL=chunk-RJI6MHHK.js.map
473
+ //# sourceMappingURL=chunk-DU3OIBQE.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  isTagBlockHeading
3
- } from "./chunk-DPGI742S.js";
3
+ } from "./chunk-76LHNLGX.js";
4
4
  import {
5
5
  OPTION_NOCOLON_RE,
6
6
  measureIndent,
7
7
  parseFirstLine,
8
8
  tryParseSharedOption
9
- } from "./chunk-ZJJWON5O.js";
9
+ } from "./chunk-M5OOAP65.js";
10
10
  import {
11
11
  formatDgmoError,
12
12
  makeDgmoError
13
- } from "./chunk-OLMWTJVU.js";
13
+ } from "./chunk-5SI6T5A5.js";
14
14
 
15
15
  // src/wireframe/parser.ts
16
16
  var KNOWN_OPTIONS = /* @__PURE__ */ new Set(["palette", "theme"]);
@@ -690,4 +690,4 @@ export {
690
690
  resetWireframeIds,
691
691
  parseWireframe
692
692
  };
693
- //# sourceMappingURL=chunk-YYBQ55V2.js.map
693
+ //# sourceMappingURL=chunk-DY7KDZUF.js.map
@@ -21,16 +21,16 @@ import {
21
21
  ordinalFor,
22
22
  sameDay,
23
23
  splitClockSeconds
24
- } from "./chunk-OQKP2X3D.js";
24
+ } from "./chunk-WFA6IULY.js";
25
25
  import {
26
26
  contrastText,
27
27
  getSeriesColors,
28
28
  mix,
29
29
  themeBaseBg
30
- } from "./chunk-KWRW6BLG.js";
30
+ } from "./chunk-GLREDNBA.js";
31
31
  import {
32
32
  resolveColor
33
- } from "./chunk-EXNKNJ65.js";
33
+ } from "./chunk-XOGQY4EC.js";
34
34
 
35
35
  // src/countdown/renderer.ts
36
36
  import * as d3Selection from "d3-selection";
@@ -821,7 +821,7 @@ function renderCountdown(container, parsed, palette, isDark, exportDims) {
821
821
  const now = Date.now();
822
822
  const resolved = parsed.resolvedMs;
823
823
  const label = parsed.sinceLabel ?? parsed.title ?? "";
824
- const ordinal = parsed.since !== null && resolved !== null ? ordinalFor(resolved, parsed.since) : null;
824
+ const ordinal = parsed.sinceLabel !== null && parsed.rule !== null && resolved !== null ? ordinalFor(resolved, parsed.rule) : null;
825
825
  const expiredFrozen = !parsed.rule && parsed.expired !== null && resolved !== null && resolved - now <= 0;
826
826
  const bandKind = resolved === null || parsed.noVisual || expiredFrozen ? null : pickBand(now, resolved, parsed.hasTime);
827
827
  let hero = bakedHero(parsed, now);
@@ -1004,12 +1004,8 @@ function renderCountdown(container, parsed, palette, isDark, exportDims) {
1004
1004
  if (parsed.onDay) value.attr("data-dgmo-countdown-onday", parsed.onDay);
1005
1005
  if (parsed.hasTime) value.attr("data-dgmo-countdown-hastime", "1");
1006
1006
  if (parsed.tz) value.attr("data-dgmo-countdown-tz", parsed.tz);
1007
- if (parsed.since !== null) {
1008
- value.attr("data-dgmo-countdown-since", parsed.since);
1009
- value.attr(
1010
- "data-dgmo-countdown-since-label",
1011
- parsed.sinceLabel ?? `Nth ${parsed.title ?? ""}`
1012
- );
1007
+ if (parsed.sinceLabel !== null) {
1008
+ value.attr("data-dgmo-countdown-since-label", parsed.sinceLabel);
1013
1009
  }
1014
1010
  stampRecur(value, parsed);
1015
1011
  if (subText) {
@@ -1030,4 +1026,4 @@ export {
1030
1026
  renderCountdown,
1031
1027
  renderCountdownForExport
1032
1028
  };
1033
- //# sourceMappingURL=chunk-BSI5EOAX.js.map
1029
+ //# sourceMappingURL=chunk-E3BJVEMZ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  makeDgmoError,
6
6
  suggest
7
- } from "./chunk-OLMWTJVU.js";
7
+ } from "./chunk-5SI6T5A5.js";
8
8
 
9
9
  // src/utils/notes/resolve.ts
10
10
  function resolveNotes(notes, targets, diagnostics) {
@@ -65,4 +65,4 @@ function resolveNotes(notes, targets, diagnostics) {
65
65
  export {
66
66
  resolveNotes
67
67
  };
68
- //# sourceMappingURL=chunk-7NK42OIB.js.map
68
+ //# sourceMappingURL=chunk-E6PNTYRK.js.map
@@ -10,10 +10,10 @@ import {
10
10
  hideTooltip,
11
11
  renderChartTitle,
12
12
  showTooltip
13
- } from "./chunk-SPA7DCB3.js";
13
+ } from "./chunk-RN3PAL4E.js";
14
14
  import {
15
15
  renderIntegratedLegend
16
- } from "./chunk-6S53NO3M.js";
16
+ } from "./chunk-QT5UMFPE.js";
17
17
  import {
18
18
  FONT_FAMILY
19
19
  } from "./chunk-UTCPNJND.js";
@@ -29,20 +29,20 @@ import {
29
29
  legendChromeColors,
30
30
  measureLegendText,
31
31
  truncateLegendText
32
- } from "./chunk-QX53GOI7.js";
32
+ } from "./chunk-YT5ICQ4R.js";
33
33
  import {
34
34
  parseTimelineDate
35
- } from "./chunk-NNMNHE3J.js";
35
+ } from "./chunk-UCZBRGJN.js";
36
36
  import {
37
37
  resolveTagColor,
38
38
  tagAttrKey
39
- } from "./chunk-DPGI742S.js";
39
+ } from "./chunk-76LHNLGX.js";
40
40
  import {
41
41
  getSeriesColors,
42
42
  mix,
43
43
  shapeFill,
44
44
  themeBaseBg
45
- } from "./chunk-KWRW6BLG.js";
45
+ } from "./chunk-GLREDNBA.js";
46
46
 
47
47
  // src/timeline/renderer.ts
48
48
  import * as d3Scale from "d3-scale";
@@ -1672,4 +1672,4 @@ export {
1672
1672
  formatDateLabel,
1673
1673
  renderTimeline
1674
1674
  };
1675
- //# sourceMappingURL=chunk-VLXYWPPE.js.map
1675
+ //# sourceMappingURL=chunk-EPH4UMUE.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computeNodeText,
3
3
  layoutMindmap
4
- } from "./chunk-IXVK7XCN.js";
4
+ } from "./chunk-QMFIZQTB.js";
5
5
  import {
6
6
  extractExportSvg,
7
7
  runInExportContainer
@@ -19,42 +19,42 @@ import {
19
19
  } from "./chunk-24YPR5EH.js";
20
20
  import {
21
21
  layoutInlineHeader
22
- } from "./chunk-6CLC26GU.js";
22
+ } from "./chunk-YJMWEZOB.js";
23
23
  import {
24
24
  TITLE_FONT_SIZE,
25
25
  TITLE_FONT_WEIGHT
26
26
  } from "./chunk-A4GOY3PE.js";
27
27
  import {
28
28
  renderIntegratedLegend
29
- } from "./chunk-6S53NO3M.js";
29
+ } from "./chunk-QT5UMFPE.js";
30
30
  import {
31
31
  getLegendExtent,
32
32
  getMaxLegendReservedHeight
33
- } from "./chunk-MTPKBSTR.js";
33
+ } from "./chunk-4SXHMFFP.js";
34
34
  import {
35
35
  FONT_FAMILY
36
36
  } from "./chunk-UTCPNJND.js";
37
37
  import {
38
38
  LEGEND_GROUP_GAP
39
- } from "./chunk-QX53GOI7.js";
39
+ } from "./chunk-YT5ICQ4R.js";
40
40
  import {
41
41
  parseMindmap
42
- } from "./chunk-QAJFIXJE.js";
42
+ } from "./chunk-QOVM5VRC.js";
43
43
  import {
44
44
  preprocessDescriptionLine
45
45
  } from "./chunk-IYULMRBE.js";
46
46
  import {
47
47
  tagAttrKey
48
- } from "./chunk-DPGI742S.js";
48
+ } from "./chunk-76LHNLGX.js";
49
49
  import {
50
50
  fillModeFromOptions,
51
51
  legendInlineRequested,
52
52
  legendSuppressed
53
- } from "./chunk-ZJJWON5O.js";
53
+ } from "./chunk-M5OOAP65.js";
54
54
  import {
55
55
  contrastText,
56
56
  shapeFill
57
- } from "./chunk-KWRW6BLG.js";
57
+ } from "./chunk-GLREDNBA.js";
58
58
 
59
59
  // src/mindmap/renderer.ts
60
60
  import * as d3Selection from "d3-selection";
@@ -426,4 +426,4 @@ export {
426
426
  renderMindmap,
427
427
  renderMindmapForExport
428
428
  };
429
- //# sourceMappingURL=chunk-MUVASOBD.js.map
429
+ //# sourceMappingURL=chunk-EV6BZMBZ.js.map
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-MTGGOCND.js";
5
5
  import {
6
6
  fillModeFromOptions
7
- } from "./chunk-ZJJWON5O.js";
7
+ } from "./chunk-M5OOAP65.js";
8
8
  import {
9
9
  mix,
10
10
  shapeFill
11
- } from "./chunk-KWRW6BLG.js";
11
+ } from "./chunk-GLREDNBA.js";
12
12
 
13
13
  // src/journey-map/layout.ts
14
14
  var PADDING = 24;
@@ -290,4 +290,4 @@ export {
290
290
  scoreToCurveY,
291
291
  layoutJourneyMap
292
292
  };
293
- //# sourceMappingURL=chunk-MWWRIOEN.js.map
293
+ //# sourceMappingURL=chunk-F4V67JXG.js.map
@@ -9,10 +9,10 @@ import {
9
9
  import {
10
10
  getSeriesColors,
11
11
  mix
12
- } from "./chunk-KWRW6BLG.js";
12
+ } from "./chunk-GLREDNBA.js";
13
13
  import {
14
14
  resolveColor
15
- } from "./chunk-EXNKNJ65.js";
15
+ } from "./chunk-XOGQY4EC.js";
16
16
 
17
17
  // src/version-control/renderer.ts
18
18
  import * as d3Selection from "d3-selection";
@@ -443,4 +443,4 @@ export {
443
443
  renderVersionControl,
444
444
  renderVersionControlForExport
445
445
  };
446
- //# sourceMappingURL=chunk-HBVKOYZD.js.map
446
+ //# sourceMappingURL=chunk-FGXBIOVK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  compactNumber
3
- } from "./chunk-3HN32MEK.js";
3
+ } from "./chunk-C2WH3BMS.js";
4
4
  import {
5
5
  parseInlineMarkdown
6
6
  } from "./chunk-WGC42WJU.js";
@@ -10,15 +10,18 @@ import {
10
10
  import {
11
11
  FONT_FAMILY
12
12
  } from "./chunk-UTCPNJND.js";
13
+ import {
14
+ measureText
15
+ } from "./chunk-MTGGOCND.js";
13
16
  import {
14
17
  getSeriesColors,
15
18
  mix,
16
19
  shapeFill,
17
20
  themeBaseBg
18
- } from "./chunk-KWRW6BLG.js";
21
+ } from "./chunk-GLREDNBA.js";
19
22
  import {
20
23
  resolveColor
21
- } from "./chunk-EXNKNJ65.js";
24
+ } from "./chunk-XOGQY4EC.js";
22
25
 
23
26
  // src/goal/renderer.ts
24
27
  import * as d3Selection from "d3-selection";
@@ -191,8 +194,11 @@ function renderBar(svg, parsed, metrics, paint) {
191
194
  }
192
195
  }
193
196
  if (!parsed.options.noValue) {
194
- const valX = Math.max(x + fillW - 16, x + 52);
195
- g.append("text").attr("x", valX).attr("y", barCy + 24 * 0.35).attr("text-anchor", "end").attr("fill", paint.base).attr("font-family", FONT_FAMILY).attr("font-size", 24).attr("font-weight", 700).text(compactNumber(parsed.now));
197
+ const valueText = compactNumber(parsed.now);
198
+ const valuePad = 16;
199
+ const insideFits = fillW >= measureText(valueText, 24, { bold: true }) + valuePad * 2;
200
+ const valX = insideFits ? x + fillW - valuePad : x + fillW + valuePad;
201
+ g.append("text").attr("x", valX).attr("y", barCy + 24 * 0.35).attr("text-anchor", insideFits ? "end" : "start").attr("fill", insideFits ? paint.base : paint.text).attr("font-family", FONT_FAMILY).attr("font-size", 24).attr("font-weight", 700).text(valueText);
196
202
  }
197
203
  if (parsed.hasTarget) {
198
204
  g.append("text").attr("x", barRight + gap).attr("y", barCy + 26 * 0.35).attr("text-anchor", "start").attr("fill", paint.text).attr("font-family", FONT_FAMILY).attr("font-size", 26).attr("font-weight", 700).text(compactNumber(parsed.target));
@@ -368,4 +374,4 @@ export {
368
374
  renderGoal,
369
375
  renderGoalForExport
370
376
  };
371
- //# sourceMappingURL=chunk-ELIGVSLE.js.map
377
+ //# sourceMappingURL=chunk-FL5IKZQA.js.map
@@ -8,17 +8,17 @@ import {
8
8
  LEGEND_PILL_FONT_SIZE,
9
9
  LEGEND_PILL_PAD,
10
10
  measureLegendText
11
- } from "./chunk-QX53GOI7.js";
11
+ } from "./chunk-YT5ICQ4R.js";
12
12
  import {
13
13
  measureText,
14
14
  wrapTextToWidth
15
15
  } from "./chunk-MTGGOCND.js";
16
16
  import {
17
17
  tagAttrKey
18
- } from "./chunk-DPGI742S.js";
18
+ } from "./chunk-76LHNLGX.js";
19
19
  import {
20
20
  legendSuppressed
21
- } from "./chunk-ZJJWON5O.js";
21
+ } from "./chunk-M5OOAP65.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-W7SZKJR6.js.map
1721
+ //# sourceMappingURL=chunk-FPRMP6YA.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-MU3CJPJF.js";
8
8
  import {
9
9
  resolveNotes
10
- } from "./chunk-7NK42OIB.js";
10
+ } from "./chunk-E6PNTYRK.js";
11
11
 
12
12
  // src/graph/layout.ts
13
13
  import dagre from "@dagrejs/dagre";
@@ -311,4 +311,4 @@ function layoutGraph(graph, options) {
311
311
  export {
312
312
  layoutGraph
313
313
  };
314
- //# sourceMappingURL=chunk-IKHV5IJB.js.map
314
+ //# sourceMappingURL=chunk-GE5RO4BS.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-3TYUXC7D.js";
7
7
  import {
8
8
  makeDgmoError
9
- } from "./chunk-OLMWTJVU.js";
9
+ } from "./chunk-5SI6T5A5.js";
10
10
 
11
11
  // src/pert/monte-carlo.ts
12
12
  function lagDays(lag) {
@@ -668,7 +668,8 @@ function analyzePert(parsed) {
668
668
  projectMu: projectMuOut,
669
669
  projectSigma: projectSigmaOut,
670
670
  unit,
671
- anchor: parsed.options.anchor
671
+ anchor: parsed.options.anchor,
672
+ mcRan: mode === "monte-carlo" && monteCarloResult !== null
672
673
  });
673
674
  return {
674
675
  options: parsed.options,
@@ -956,7 +957,7 @@ function buildProjectSubtitle(input) {
956
957
  const anchor = input.anchor ?? null;
957
958
  const { projectMu, projectSigma, unit } = input;
958
959
  const sigmaPositive = projectSigma !== null && projectSigma > 0;
959
- const sigmaParen = sigmaPositive ? ` (\xB1 ${roundForCaption(projectSigma)})` : "";
960
+ const sigmaParen = sigmaPositive && input.mcRan !== false ? ` (\xB1 ${formatPercentile(projectSigma, unit)})` : "";
960
961
  if (projectMu === null) {
961
962
  if (anchor?.kind === "forward") {
962
963
  return `Expected finish: ? \xB7 \u2248 ? ${pluralizeUnit(2, unit)} of work`;
@@ -1059,4 +1060,4 @@ export {
1059
1060
  buildSummary,
1060
1061
  buildProjectSubtitle
1061
1062
  };
1062
- //# sourceMappingURL=chunk-CGLBK5Q4.js.map
1063
+ //# sourceMappingURL=chunk-GJQQCI63.js.map