@diagrammo/dgmo 0.54.0 → 0.55.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 (196) hide show
  1. package/dist/advanced.d.ts +76 -9
  2. package/dist/advanced.js +118 -95
  3. package/dist/auto.js +125 -124
  4. package/dist/auto.mjs +1579 -282
  5. package/dist/block.js +49 -48
  6. package/dist/chart-meta.js +43 -43
  7. package/dist/{charts-d3-25E4VWXO.js → charts-d3-KZ6V4OP2.js} +7 -6
  8. package/dist/{chunk-MTZOXISJ.js → chunk-2HX6ZGY7.js} +3 -3
  9. package/dist/{chunk-ICKXIMBA.js → chunk-2R6HG6D5.js} +5 -5
  10. package/dist/{chunk-NUTWTV6G.js → chunk-2ZJXKJSI.js} +102 -56
  11. package/dist/{chunk-LPJ6H5X4.js → chunk-32HUNA33.js} +53 -11
  12. package/dist/{chunk-UIT7E6UF.js → chunk-3BFXELBL.js} +51 -4
  13. package/dist/{chunk-C2UORMIA.js → chunk-3BZJ5KD5.js} +7 -3
  14. package/dist/{chunk-A3BDLDYG.js → chunk-3FUTFYSP.js} +57 -18
  15. package/dist/{chunk-DPGQ5UMO.js → chunk-4MZCJV4M.js} +6 -6
  16. package/dist/{chunk-WWHECSYZ.js → chunk-4R5KIPNX.js} +2 -2
  17. package/dist/{chunk-47JNEKJA.js → chunk-5D5VHDJM.js} +43 -8
  18. package/dist/{chunk-KQYQECWQ.js → chunk-5H5GWWA4.js} +49 -13
  19. package/dist/{chunk-RRGKMJYL.js → chunk-5K5XBEXT.js} +8 -3
  20. package/dist/{chunk-HAA25PLC.js → chunk-6NJWBMJV.js} +44 -9
  21. package/dist/{chunk-3FRO35WW.js → chunk-A2ARDILY.js} +17 -3
  22. package/dist/{chunk-TLNVYWPA.js → chunk-A2PTRSAO.js} +2 -2
  23. package/dist/{chunk-APKUAJ2L.js → chunk-A2RUBBVT.js} +14 -1
  24. package/dist/{chunk-KS5ZSM5T.js → chunk-A4UJP4IS.js} +61 -13
  25. package/dist/{chunk-LRSW4JLE.js → chunk-AKE6C2D7.js} +3 -3
  26. package/dist/{chunk-2NZOHEP4.js → chunk-ASPS5O6F.js} +3 -3
  27. package/dist/{chunk-KV4HLIJE.js → chunk-AU75JHSR.js} +6 -3
  28. package/dist/{chunk-R5BGGBFF.js → chunk-DS4MDEQ7.js} +2 -2
  29. package/dist/{chunk-7JDTNFAK.js → chunk-EFUQENO5.js} +76 -32
  30. package/dist/{chunk-BULHGPHK.js → chunk-EMSOFHEN.js} +2 -2
  31. package/dist/{chunk-IYNKLCAZ.js → chunk-ETTDF3S2.js} +45 -7
  32. package/dist/{chunk-KDK5EKUR.js → chunk-ETYF5QZR.js} +2 -2
  33. package/dist/{chunk-COJW2NEY.js → chunk-F5ZNUMSY.js} +50 -11
  34. package/dist/{chunk-EAI6XJ7D.js → chunk-FBP33UM6.js} +3 -3
  35. package/dist/{chunk-KINOX74I.js → chunk-FGAMFJNJ.js} +48 -10
  36. package/dist/{chunk-J7HQPVYH.js → chunk-GRXPFBYC.js} +23 -2
  37. package/dist/{chunk-GQ5ECRP4.js → chunk-GTO5VCYG.js} +3 -3
  38. package/dist/{chunk-RJ5LBZ5U.js → chunk-HES4K6DV.js} +13 -13
  39. package/dist/{chunk-ADCHLNWT.js → chunk-HGKOVKAX.js} +3 -3
  40. package/dist/{chunk-EPRF3ZRV.js → chunk-HLGOG44K.js} +2 -2
  41. package/dist/{chunk-KQ3FNRGR.js → chunk-HUTP35XT.js} +5 -4
  42. package/dist/{chunk-OJ435DQZ.js → chunk-HX7QNHC6.js} +3 -3
  43. package/dist/{chunk-6KL7TFLS.js → chunk-IALX52TR.js} +2 -2
  44. package/dist/{chunk-7SP4C6EV.js → chunk-IF4KYSJZ.js} +7 -3
  45. package/dist/{chunk-5XSNLXU5.js → chunk-IG6J7JWH.js} +51 -12
  46. package/dist/{chunk-M24VXUFG.js → chunk-IIUYKQ5J.js} +3 -3
  47. package/dist/{chunk-5VXU6MND.js → chunk-INTAQV2Y.js} +2 -2
  48. package/dist/{chunk-3KHJJP3J.js → chunk-ITXL2KU5.js} +2 -2
  49. package/dist/{chunk-I47VHSPS.js → chunk-IWG2ECAO.js} +2 -2
  50. package/dist/{chunk-CSHFU6LT.js → chunk-JGCEFKZP.js} +7 -7
  51. package/dist/{chunk-O576GYAP.js → chunk-JQLSFZZP.js} +2 -2
  52. package/dist/{chunk-AHTTKERF.js → chunk-JR7Q6GHE.js} +2 -2
  53. package/dist/{chunk-4T6OCSJ2.js → chunk-KC3WBBI7.js} +3 -3
  54. package/dist/{chunk-BM7MG6HT.js → chunk-KK3L5NVK.js} +3 -3
  55. package/dist/{chunk-FR6UFVSV.js → chunk-L2DIXZUT.js} +91 -41
  56. package/dist/{chunk-WW4BQ744.js → chunk-LCRPGGGS.js} +6 -6
  57. package/dist/{chunk-GKYHWJXI.js → chunk-LKGQ46P4.js} +3 -3
  58. package/dist/{chunk-IOIMQHQ6.js → chunk-LW7STMYZ.js} +2 -2
  59. package/dist/{chunk-OR3R27CU.js → chunk-M53MDBIW.js} +2 -2
  60. package/dist/{chunk-T7Y554OK.js → chunk-MEH4TJEX.js} +4 -4
  61. package/dist/{chunk-T3FAJAJT.js → chunk-MNS2ENXF.js} +3 -3
  62. package/dist/{chunk-CCGWX6AO.js → chunk-MSWIBF6J.js} +2 -2
  63. package/dist/{chunk-B7N5KYXQ.js → chunk-NL7FUIVD.js} +4 -4
  64. package/dist/{chunk-EQOMY4PY.js → chunk-NN5TF4OV.js} +2 -2
  65. package/dist/{chunk-BZJIITYM.js → chunk-NPPUZ4SK.js} +4 -4
  66. package/dist/{chunk-XWODFBHJ.js → chunk-NYOOPQFD.js} +7 -3
  67. package/dist/{chunk-VQFDBNYF.js → chunk-O4CZDTQA.js} +3 -3
  68. package/dist/{chunk-FVMKCZHF.js → chunk-P5XXIVEU.js} +2 -2
  69. package/dist/{chunk-F7XM366V.js → chunk-PC4YLEKA.js} +3 -3
  70. package/dist/{chunk-AQEYUVGJ.js → chunk-PCVXXPYU.js} +12 -5
  71. package/dist/{chunk-TJN2OIVG.js → chunk-PKUWYPI5.js} +180 -12
  72. package/dist/{chunk-W6PCFRPL.js → chunk-PSIDVCBA.js} +2 -2
  73. package/dist/{chunk-RIEAN4D5.js → chunk-PV7ND5WL.js} +48 -8
  74. package/dist/{chunk-7K6NDSXH.js → chunk-Q5CMQVWF.js} +3 -3
  75. package/dist/{chunk-FFVFZLRT.js → chunk-QQXFYTLC.js} +346 -46
  76. package/dist/{chunk-N7BSBAVP.js → chunk-QZYGRDMM.js} +108 -89
  77. package/dist/{chunk-U4IN6AHE.js → chunk-RKBCKCSF.js} +2 -2
  78. package/dist/{chunk-GK32ZFZY.js → chunk-RSBH2C7O.js} +3 -3
  79. package/dist/{chunk-OSXQKC3S.js → chunk-RYNCWA5X.js} +6 -3
  80. package/dist/{chunk-S7YFT3PO.js → chunk-RZWIPDZ2.js} +3 -3
  81. package/dist/{chunk-7UPFTBOW.js → chunk-S52F62GW.js} +4 -4
  82. package/dist/{chunk-WKNAJ4BR.js → chunk-SCOHNGPG.js} +51 -10
  83. package/dist/{chunk-BWYFIVZF.js → chunk-UBQU2BY6.js} +3 -3
  84. package/dist/{chunk-VMSBMIHW.js → chunk-UES4P7FN.js} +2 -2
  85. package/dist/chunk-US3P2DQO.js +87 -0
  86. package/dist/{chunk-AJFHNS67.js → chunk-UXXLE6AH.js} +5 -5
  87. package/dist/{chunk-M3H7ZE6C.js → chunk-VMWSZCAK.js} +5 -4
  88. package/dist/{chunk-S7FOIURR.js → chunk-VVIRAGID.js} +6 -6
  89. package/dist/{chunk-3SBHODJ4.js → chunk-VXTUWXFB.js} +48 -9
  90. package/dist/{chunk-HFEOOQ46.js → chunk-W4TSD3IP.js} +2 -2
  91. package/dist/{chunk-7U4OR7CD.js → chunk-WB3NA3JJ.js} +2 -2
  92. package/dist/{chunk-3SEEP2JM.js → chunk-WITOJZGL.js} +8 -4
  93. package/dist/{chunk-6OYDOQ2Q.js → chunk-WVGNXDEE.js} +2 -2
  94. package/dist/{chunk-UEU6IYKY.js → chunk-X3X4LZDC.js} +2 -2
  95. package/dist/{chunk-SBOAZ7YK.js → chunk-XKKH2DPG.js} +39 -39
  96. package/dist/{chunk-NR5HCAUD.js → chunk-XSVWUOUZ.js} +1 -1
  97. package/dist/{chunk-62Y27T4C.js → chunk-Y4BBGFKY.js} +2 -2
  98. package/dist/{chunk-YENNFS5F.js → chunk-YP2T5YUP.js} +8 -3
  99. package/dist/{chunk-2NYXI35Z.js → chunk-YXKNXIWA.js} +5 -4
  100. package/dist/{chunk-KBVOVDYP.js → chunk-ZGIBV36U.js} +3 -3
  101. package/dist/{chunk-4ZIKWVSQ.js → chunk-ZP265ICS.js} +4 -4
  102. package/dist/{chunk-DLU643TF.js → chunk-ZWVKTWK6.js} +3 -3
  103. package/dist/{chunk-QBYP2FBZ.js → chunk-ZXNHHO6D.js} +2 -2
  104. package/dist/cli.cjs +150 -147
  105. package/dist/clock.js +34 -1
  106. package/dist/completion-registry.js +12 -4
  107. package/dist/dgmo-router-T4HGLIGA.js +88 -0
  108. package/dist/{dimensions-L6BXQXXL.js → dimensions-3JINHSYK.js} +6 -6
  109. package/dist/editor.js +10 -1
  110. package/dist/element.js +124 -123
  111. package/dist/element.mjs +1579 -282
  112. package/dist/{flowchart-parser-UKYOW3VM.js → flowchart-parser-M7KKTLX7.js} +4 -4
  113. package/dist/{flowchart-renderer-DCFKUDDR.js → flowchart-renderer-FFEQFQEU.js} +5 -5
  114. package/dist/highlight.js +10 -1
  115. package/dist/index.js +58 -48
  116. package/dist/{layout-G2ABQJQZ.js → layout-3ZZBKUQC.js} +3 -3
  117. package/dist/{layout-CH4HFFRD.js → layout-AUKTWGYL.js} +4 -4
  118. package/dist/{layout-QBNAMEOA.js → layout-CRLTSFYQ.js} +3 -3
  119. package/dist/{layout-25Y3VDYF.js → layout-FNZDJGKF.js} +4 -4
  120. package/dist/{layout-NY7MHJCL.js → layout-GHWRJKZQ.js} +4 -4
  121. package/dist/{layout-ITLPDG6M.js → layout-LGXOKUCD.js} +4 -4
  122. package/dist/{layout-A6OIGZN2.js → layout-UR7CYAHL.js} +2 -2
  123. package/dist/{layout-4SPLI4HG.js → layout-UTMEVFHN.js} +4 -4
  124. package/dist/{layout-search-LUI475P3.js → layout-search-U2H4ORFJ.js} +8 -6
  125. package/dist/{parser-XRDUX2AR.js → parser-2AXPSKWB.js} +5 -5
  126. package/dist/{parser-B2A7XOAK.js → parser-2AZ2KQTO.js} +4 -4
  127. package/dist/{parser-VVE4THG3.js → parser-2LF33IS2.js} +4 -4
  128. package/dist/{parser-MHKYQPC2.js → parser-3QJ2Z4H4.js} +3 -3
  129. package/dist/parser-5GCQFSTQ.js +13 -0
  130. package/dist/{parser-XCPMEB2Z.js → parser-62OHBRU5.js} +3 -3
  131. package/dist/{parser-GML6V2KZ.js → parser-7LYJFZCP.js} +4 -4
  132. package/dist/{parser-LTA2BOZO.js → parser-BMOTF72G.js} +3 -3
  133. package/dist/{parser-FHRMFUNX.js → parser-CIFLYZYP.js} +3 -3
  134. package/dist/{parser-KTYF6WO5.js → parser-D2UL2G5U.js} +3 -3
  135. package/dist/{parser-5C3PEZK3.js → parser-DM2APTKB.js} +3 -3
  136. package/dist/{parser-X5XLFY4Z.js → parser-DYYTPLBL.js} +4 -4
  137. package/dist/{parser-WPPJGB4R.js → parser-GOUGUTPU.js} +4 -4
  138. package/dist/{parser-T3D7BV6O.js → parser-HGVUVD6J.js} +3 -3
  139. package/dist/{parser-F4FEU57T.js → parser-IEJD3CZB.js} +3 -3
  140. package/dist/{parser-FY3YFFBS.js → parser-JBEWNLAV.js} +5 -5
  141. package/dist/{parser-2UWWNTFL.js → parser-JMXPHNZD.js} +4 -4
  142. package/dist/{parser-YULS5MLD.js → parser-JMXSQY3K.js} +4 -4
  143. package/dist/{parser-YPWYT46P.js → parser-LUXS7J32.js} +4 -4
  144. package/dist/{parser-O7YQYFEN.js → parser-M5BUHULF.js} +4 -4
  145. package/dist/{parser-MVSYFK63.js → parser-MESRHUS4.js} +4 -4
  146. package/dist/{parser-HA3PF5FL.js → parser-OOYNI2UT.js} +4 -4
  147. package/dist/{parser-OPIXXUY4.js → parser-PVBUAVRR.js} +4 -4
  148. package/dist/{parser-3RXYQSA7.js → parser-QKRBSQLJ.js} +5 -5
  149. package/dist/{parser-CCNJKDDA.js → parser-S6NWSIJO.js} +4 -4
  150. package/dist/{parser-S4EJPNVN.js → parser-SFEK6Q7Z.js} +4 -4
  151. package/dist/{parser-7UI6UQ7B.js → parser-SUV52NQW.js} +4 -4
  152. package/dist/{parser-ESHNUFME.js → parser-SZHGLOOZ.js} +4 -4
  153. package/dist/{parser-66RYGJRB.js → parser-TO7IENWL.js} +4 -4
  154. package/dist/{parser-FPCWDYQV.js → parser-TVAMC7CQ.js} +4 -4
  155. package/dist/{parser-LU7UAKNB.js → parser-VAW46R57.js} +4 -4
  156. package/dist/{parser-6MQM7WT3.js → parser-XDSPOXSE.js} +4 -4
  157. package/dist/pert.d.ts +2 -0
  158. package/dist/{renderer-YVMETH6V.js → renderer-3PWLOJPD.js} +8 -8
  159. package/dist/{renderer-7HMZ5OCJ.js → renderer-5EMHIQL5.js} +3 -3
  160. package/dist/{renderer-2DME63VZ.js → renderer-5PODNLYP.js} +4 -4
  161. package/dist/{renderer-4A32DX5L.js → renderer-AQJIQ2XU.js} +7 -6
  162. package/dist/{renderer-RMAM2SOJ.js → renderer-BEW3AYFT.js} +8 -8
  163. package/dist/{renderer-YP3P6UVT.js → renderer-C3UYAXA6.js} +8 -6
  164. package/dist/{renderer-X2LYSMLU.js → renderer-CENXCMWG.js} +3 -3
  165. package/dist/{renderer-6CFML5G3.js → renderer-CXM3ARYN.js} +8 -7
  166. package/dist/{renderer-LHVCKEWF.js → renderer-DW6TEBLA.js} +8 -7
  167. package/dist/{renderer-Y3NXZINM.js → renderer-FE5M6SEZ.js} +8 -7
  168. package/dist/{renderer-G4UOW3RH.js → renderer-FXK6ZL3P.js} +3 -3
  169. package/dist/{renderer-4K5YYX5R.js → renderer-G5ESLCJB.js} +9 -8
  170. package/dist/{renderer-P3YQES7B.js → renderer-HTDS4FED.js} +9 -8
  171. package/dist/{renderer-YEFOOULC.js → renderer-IO4KCFVL.js} +8 -8
  172. package/dist/{renderer-FXMGCSRP.js → renderer-IRAFJNTK.js} +7 -6
  173. package/dist/{renderer-SES7QZYL.js → renderer-MFTTFW32.js} +9 -8
  174. package/dist/{renderer-Z4GNKNXO.js → renderer-MPXI4FVL.js} +6 -6
  175. package/dist/{renderer-RA4PTAMF.js → renderer-NVBEMQ6L.js} +5 -5
  176. package/dist/{renderer-7ZNVOVFG.js → renderer-OOGDCR6K.js} +3 -3
  177. package/dist/{renderer-CJ56SUMF.js → renderer-Q5P72O4A.js} +7 -7
  178. package/dist/{renderer-WCWI4I6A.js → renderer-QZESC66H.js} +2 -2
  179. package/dist/{renderer-B7Y6I7JX.js → renderer-RDBUXW7P.js} +4 -4
  180. package/dist/{renderer-V5SNTPAM.js → renderer-S4XB3JR2.js} +9 -9
  181. package/dist/{renderer-COJZZ4F6.js → renderer-SIWEEWJ5.js} +7 -6
  182. package/dist/{renderer-C3RI4OPJ.js → renderer-TKTM2SL4.js} +8 -7
  183. package/dist/{renderer-WVD6G2TS.js → renderer-TXTTV4HA.js} +8 -7
  184. package/dist/{renderer-HQ4JFZOV.js → renderer-UZIU4AHK.js} +7 -6
  185. package/dist/{renderer-3VY3VXJE.js → renderer-V72VJIGG.js} +9 -8
  186. package/dist/{renderer-PLVIARM7.js → renderer-VEGOEZOI.js} +7 -6
  187. package/dist/{renderer-OZX5KGQM.js → renderer-W6I6T2TA.js} +6 -6
  188. package/dist/{renderer-TQ5QDZOE.js → renderer-WSHJRR2T.js} +6 -6
  189. package/dist/{renderer-radial-VYBZAXXE.js → renderer-radial-AG75PBYD.js} +7 -7
  190. package/dist/{resolver-WFKZYBJ2.js → resolver-ZSFQQRTH.js} +3 -3
  191. package/dist/{state-parser-VIW2WNA5.js → state-parser-KIPZGIB4.js} +5 -5
  192. package/dist/{state-renderer-H22AQD3U.js → state-renderer-U6OSJG52.js} +9 -8
  193. package/docs/language-reference.md +2 -1
  194. package/package.json +1 -1
  195. package/dist/dgmo-router-TGZWFIZO.js +0 -88
  196. package/dist/parser-6GN5YJBJ.js +0 -13
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-6KFWC4CO.js";
15
15
  import {
16
16
  allTasks
17
- } from "./chunk-QBYP2FBZ.js";
17
+ } from "./chunk-ZXNHHO6D.js";
18
18
  import {
19
19
  VARIANTS
20
20
  } from "./chunk-BEOAKGNA.js";
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  fillModeFromOptions,
33
33
  legendSuppressed
34
- } from "./chunk-3FRO35WW.js";
34
+ } from "./chunk-A2ARDILY.js";
35
35
 
36
36
  // src/raci/renderer.ts
37
37
  import * as d3Selection from "d3-selection";
@@ -789,4 +789,4 @@ export {
789
789
  renderRaci,
790
790
  renderRaciForExport
791
791
  };
792
- //# sourceMappingURL=chunk-GQ5ECRP4.js.map
792
+ //# sourceMappingURL=chunk-GTO5VCYG.js.map
@@ -6,13 +6,14 @@ import {
6
6
  } from "./chunk-6KFWC4CO.js";
7
7
  import {
8
8
  fixedParts,
9
+ fixedTimeCells,
9
10
  formatTime,
10
11
  handAngles,
11
12
  rampColor,
12
13
  sunLine,
13
14
  workStatus,
14
15
  zoneParts
15
- } from "./chunk-APKUAJ2L.js";
16
+ } from "./chunk-A2RUBBVT.js";
16
17
  import {
17
18
  contrastText,
18
19
  mix,
@@ -307,12 +308,12 @@ function drawRow(svg, entry, index, parsed, now, rowTop, rowH, geom, col) {
307
308
  const baseY = center + 16;
308
309
  const capTop = baseY - mainFont * 0.7;
309
310
  const sf = 20;
310
- const mainW = [...ts.main].reduce(
311
- (w, c) => w + mainFont * (c === ":" ? 0.334 : 0.6),
312
- 0
313
- );
314
- const stackX = contentLeft + mainW + 5;
315
- g.append("text").attr("data-dgmo-clock-digital", "").attr("data-dgmo-clock-digital-part", "main").attr("x", contentLeft).attr("y", baseY).attr("fill", timeColor).attr("font-family", FONT_FAMILY).attr("font-size", mainFont).attr("font-weight", 600).attr("textLength", mainW).attr("lengthAdjust", "spacing").style("font-variant-numeric", "tabular-nums").text(ts.main);
311
+ const gap = 5;
312
+ const { cells, width: mainW } = fixedTimeCells(ts.main, contentLeft, mainFont);
313
+ const stackX = contentLeft + mainW + gap;
314
+ const mainText = g.append("text").attr("data-dgmo-clock-digital", "").attr("data-dgmo-clock-digital-part", "main").attr("y", baseY).attr("text-anchor", "middle").attr("fill", timeColor).attr("font-family", FONT_FAMILY).attr("font-size", mainFont).attr("font-weight", 600).attr("data-dgmo-clock-x0", contentLeft).attr("data-dgmo-clock-fs", mainFont).attr("data-dgmo-clock-gap", gap);
315
+ for (const c of cells)
316
+ mainText.append("tspan").attr("x", c.x).text(c.ch);
316
317
  g.append("text").attr("data-dgmo-clock-digital-part", "sec").attr("x", stackX).attr("y", capTop + sf * 0.72).attr("fill", muted).attr("font-family", FONT_FAMILY).attr("font-size", sf).attr("font-weight", 600).style("font-variant-numeric", "tabular-nums").text(`:${ts.sec}`);
317
318
  if (ts.ap)
318
319
  g.append("text").attr("data-dgmo-clock-digital-part", "ap").attr("x", stackX).attr("y", baseY).attr("fill", muted).attr("font-family", FONT_FAMILY).attr("font-size", sf).attr("font-weight", 600).text(ts.ap);
@@ -471,14 +472,13 @@ function drawColumns(body, parsed, now, top, geom, col) {
471
472
  const gap = 11;
472
473
  const cap = 0.7;
473
474
  const tf = fitFont(ts.main, 54, innerW - 30 - gap, 20);
474
- const mainW = [...ts.main].reduce(
475
- (w, c) => w + tf * (c === ":" ? 0.334 : 0.6),
476
- 0
477
- );
475
+ const mainW = fixedTimeCells(ts.main, 0, tf).width;
478
476
  const stackW = Math.max(estWidth(`:${ts.sec}`, sf), estWidth(ts.ap, sf));
479
477
  const gLeft = cx - (mainW + gap + stackW) / 2;
480
478
  const baseY = cy + tf * 0.34;
481
- g.append("text").attr("data-dgmo-clock-digital", "").attr("data-dgmo-clock-digital-part", "main").attr("x", gLeft).attr("y", baseY).attr("fill", timeColor).attr("font-family", FONT_FAMILY).attr("font-size", tf).attr("font-weight", 600).attr("textLength", mainW).attr("lengthAdjust", "spacing").style("font-variant-numeric", "tabular-nums").text(ts.main);
479
+ const mainText = g.append("text").attr("data-dgmo-clock-digital", "").attr("data-dgmo-clock-digital-part", "main").attr("y", baseY).attr("text-anchor", "middle").attr("fill", timeColor).attr("font-family", FONT_FAMILY).attr("font-size", tf).attr("font-weight", 600).attr("data-dgmo-clock-x0", gLeft).attr("data-dgmo-clock-fs", tf).attr("data-dgmo-clock-gap", gap);
480
+ for (const c of fixedTimeCells(ts.main, gLeft, tf).cells)
481
+ mainText.append("tspan").attr("x", c.x).text(c.ch);
482
482
  const stackX = gLeft + mainW + gap;
483
483
  g.append("text").attr("data-dgmo-clock-digital-part", "sec").attr("x", stackX).attr("y", baseY - tf * cap + sf * cap).attr("fill", muted).attr("font-family", FONT_FAMILY).attr("font-size", sf).attr("font-weight", 500).text(`:${ts.sec}`);
484
484
  if (ts.ap)
@@ -558,4 +558,4 @@ export {
558
558
  renderClock,
559
559
  renderClockForExport
560
560
  };
561
- //# sourceMappingURL=chunk-RJ5LBZ5U.js.map
561
+ //# sourceMappingURL=chunk-HES4K6DV.js.map
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-6KFWC4CO.js";
33
33
  import {
34
34
  parseFlowchart
35
- } from "./chunk-DLU643TF.js";
35
+ } from "./chunk-ZWVKTWK6.js";
36
36
  import {
37
37
  measureText
38
38
  } from "./chunk-4ASYQ347.js";
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk-JYDMBWRP.js";
43
43
  import {
44
44
  fillModeFromOptions
45
- } from "./chunk-3FRO35WW.js";
45
+ } from "./chunk-A2ARDILY.js";
46
46
 
47
47
  // src/graph/flowchart-renderer.ts
48
48
  import * as d3Selection from "d3-selection";
@@ -582,4 +582,4 @@ export {
582
582
  renderFlowchart,
583
583
  renderFlowchartForExport
584
584
  };
585
- //# sourceMappingURL=chunk-ADCHLNWT.js.map
585
+ //# sourceMappingURL=chunk-HGKOVKAX.js.map
@@ -12,7 +12,7 @@ import {
12
12
  fillModeFromToken,
13
13
  measureIndent,
14
14
  parseFirstLine
15
- } from "./chunk-3FRO35WW.js";
15
+ } from "./chunk-A2ARDILY.js";
16
16
  import {
17
17
  makeDgmoError,
18
18
  makeFail
@@ -546,4 +546,4 @@ export {
546
546
  targetToMs2 as targetToMs,
547
547
  parseCountdown
548
548
  };
549
- //# sourceMappingURL=chunk-EPRF3ZRV.js.map
549
+ //# sourceMappingURL=chunk-HLGOG44K.js.map
@@ -8,7 +8,7 @@ import {
8
8
  stripDefaultModifier,
9
9
  tagAttrKey,
10
10
  validateTagGroupNames
11
- } from "./chunk-AHTTKERF.js";
11
+ } from "./chunk-JR7Q6GHE.js";
12
12
  import {
13
13
  JOURNEY_MAP_REGISTRY,
14
14
  OPTION_NOCOLON_RE,
@@ -19,7 +19,7 @@ import {
19
19
  splitNameAndMeta,
20
20
  warnUnknownMetaKeys,
21
21
  withTagAliases
22
- } from "./chunk-3FRO35WW.js";
22
+ } from "./chunk-A2ARDILY.js";
23
23
  import {
24
24
  resolveColorWithDiagnostic
25
25
  } from "./chunk-ZKPPI6BF.js";
@@ -39,7 +39,8 @@ var KNOWN_BOOLEANS = /* @__PURE__ */ new Set([
39
39
  "fill-solid",
40
40
  "fill-outline",
41
41
  "no-title",
42
- "no-legend"
42
+ "no-legend",
43
+ "legend-inline"
43
44
  ]);
44
45
  function parseJourneyMap(content, palette) {
45
46
  const options = {};
@@ -404,4 +405,4 @@ function parseStepLine(trimmed, lineNumber, counter, aliasMap, warn, diagnostics
404
405
  export {
405
406
  parseJourneyMap
406
407
  };
407
- //# sourceMappingURL=chunk-KQ3FNRGR.js.map
408
+ //# sourceMappingURL=chunk-HUTP35XT.js.map
@@ -10,7 +10,7 @@ import {
10
10
  tagAttrKey,
11
11
  validateTagGroupNames,
12
12
  validateTagValues
13
- } from "./chunk-AHTTKERF.js";
13
+ } from "./chunk-JR7Q6GHE.js";
14
14
  import {
15
15
  MINDMAP_REGISTRY,
16
16
  OPTION_NOCOLON_RE,
@@ -22,7 +22,7 @@ import {
22
22
  tryParseSharedOption,
23
23
  warnUnknownMetaKeys,
24
24
  withTagAliases
25
- } from "./chunk-3FRO35WW.js";
25
+ } from "./chunk-A2ARDILY.js";
26
26
  import {
27
27
  formatDgmoError,
28
28
  makeDgmoError,
@@ -323,4 +323,4 @@ function findMetadataParent(indent, indentStack) {
323
323
  export {
324
324
  parseMindmap
325
325
  };
326
- //# sourceMappingURL=chunk-OJ435DQZ.js.map
326
+ //# sourceMappingURL=chunk-HX7QNHC6.js.map
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-JYDMBWRP.js";
27
27
  import {
28
28
  fillModeFromOptions
29
- } from "./chunk-3FRO35WW.js";
29
+ } from "./chunk-A2ARDILY.js";
30
30
  import {
31
31
  resolveColor
32
32
  } from "./chunk-ZKPPI6BF.js";
@@ -296,4 +296,4 @@ export {
296
296
  renderRing,
297
297
  renderRingForExport
298
298
  };
299
- //# sourceMappingURL=chunk-6KL7TFLS.js.map
299
+ //# sourceMappingURL=chunk-IALX52TR.js.map
@@ -8,7 +8,7 @@ import {
8
8
  stripDefaultModifier,
9
9
  tagAttrKey,
10
10
  validateTagGroupNames
11
- } from "./chunk-AHTTKERF.js";
11
+ } from "./chunk-JR7Q6GHE.js";
12
12
  import {
13
13
  MAP_DIRECTIVE_KEY_SET,
14
14
  MAP_REGISTRY,
@@ -17,7 +17,7 @@ import {
17
17
  peelRampColors,
18
18
  splitNameAndMeta,
19
19
  withTagAliases
20
- } from "./chunk-3FRO35WW.js";
20
+ } from "./chunk-A2ARDILY.js";
21
21
  import {
22
22
  formatDgmoError,
23
23
  makeDgmoError
@@ -270,6 +270,10 @@ function parseMap(content, palette) {
270
270
  case "no-legend":
271
271
  d.noLegend = true;
272
272
  break;
273
+ // §1.9 universal — accepted so it doesn't parse as a region; map renders no
274
+ // one-line header, so render.ts emits the "not supported" warning.
275
+ case "legend-inline":
276
+ break;
273
277
  case "no-coastline":
274
278
  d.noCoastline = true;
275
279
  break;
@@ -633,4 +637,4 @@ export {
633
637
  looksLikeMap,
634
638
  parseMap
635
639
  };
636
- //# sourceMappingURL=chunk-7SP4C6EV.js.map
640
+ //# sourceMappingURL=chunk-IF4KYSJZ.js.map
@@ -23,12 +23,16 @@ import {
23
23
  import {
24
24
  ScaleContext
25
25
  } from "./chunk-YYVTBZZC.js";
26
+ import {
27
+ layoutInlineHeader
28
+ } from "./chunk-US3P2DQO.js";
26
29
  import {
27
30
  renderIntegratedLegend
28
- } from "./chunk-2NZOHEP4.js";
31
+ } from "./chunk-ASPS5O6F.js";
29
32
  import {
33
+ getLegendExtent,
30
34
  getMaxLegendReservedHeight
31
- } from "./chunk-J7HQPVYH.js";
35
+ } from "./chunk-GRXPFBYC.js";
32
36
  import {
33
37
  TITLE_FONT_SIZE,
34
38
  TITLE_FONT_WEIGHT
@@ -58,11 +62,12 @@ import {
58
62
  } from "./chunk-JYDMBWRP.js";
59
63
  import {
60
64
  tagAttrKey
61
- } from "./chunk-AHTTKERF.js";
65
+ } from "./chunk-JR7Q6GHE.js";
62
66
  import {
63
67
  fillModeFromOptions,
68
+ legendInlineRequested,
64
69
  legendSuppressed
65
- } from "./chunk-3FRO35WW.js";
70
+ } from "./chunk-A2ARDILY.js";
66
71
 
67
72
  // src/sitemap/renderer.ts
68
73
  import * as d3Selection from "d3-selection";
@@ -138,7 +143,33 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
138
143
  ) : LEGEND_HEIGHT
139
144
  );
140
145
  const legendReserveH = fixedLegend ? sLegendHeight + sLegendFixedGap : 0;
141
- const fixedReserveTop = fixedTitleH + legendReserveH;
146
+ const inlineRequested = legendInlineRequested(parsed.options);
147
+ const legendExtent = inlineRequested && fixedTitle ? getLegendExtent(
148
+ {
149
+ groups: parsed.tagGroups,
150
+ position: {
151
+ placement: "top-center",
152
+ titleRelation: "inline-with-title"
153
+ },
154
+ mode: exportMode ? "export" : "preview",
155
+ capsulePillAddonWidth: LEGEND_EYE_SIZE + LEGEND_EYE_GAP
156
+ },
157
+ { activeGroup: activeTagGroup ?? null },
158
+ width
159
+ ) : { width: 0, height: 0 };
160
+ const header = layoutInlineHeader({
161
+ requested: inlineRequested,
162
+ title: parsed.title ?? "",
163
+ hasLegend: fixedTitle,
164
+ legendWidth: legendExtent.width,
165
+ legendHeight: legendExtent.height,
166
+ containerWidth: width,
167
+ titleBandHeight: fixedTitleH,
168
+ legendReserve: legendReserveH,
169
+ titleBaselineY: sDiagramPadding + sTitleFontSize,
170
+ titleFontSize: sTitleFontSize
171
+ });
172
+ const fixedReserveTop = header.inline ? fixedTitleH : fixedTitleH + legendReserveH;
142
173
  const fixedReserveBottom = 0;
143
174
  const titleOffset = !fixedTitle && showTitle ? sTitleHeight : 0;
144
175
  const diagramW = layout.width;
@@ -340,7 +371,7 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
340
371
  );
341
372
  }
342
373
  if (fixedTitle) {
343
- const titleEl = svg.append("text").attr("x", width / 2).attr("y", sDiagramPadding + sTitleFontSize).attr("text-anchor", "middle").attr("fill", palette.text).attr("font-size", sTitleFontSize).attr("font-weight", TITLE_FONT_WEIGHT).attr("class", "sitemap-title chart-title").style("font-family", FONT_FAMILY);
374
+ const titleEl = svg.append("text").attr("x", header.titleX).attr("y", sDiagramPadding + sTitleFontSize).attr("text-anchor", header.titleAnchor).attr("fill", palette.text).attr("font-size", sTitleFontSize).attr("font-weight", TITLE_FONT_WEIGHT).attr("class", "sitemap-title chart-title").style("font-family", FONT_FAMILY);
344
375
  if (parsed.titleLineNumber) {
345
376
  titleEl.attr("data-line-number", parsed.titleLineNumber);
346
377
  if (onClickItem) {
@@ -350,7 +381,10 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
350
381
  titleEl.text(parsed.title);
351
382
  }
352
383
  if (fixedLegend) {
353
- const legendParent = svg.append("g").attr("class", "sitemap-legend-fixed").attr("transform", `translate(0, ${sDiagramPadding + fixedTitleH})`);
384
+ const legendParent = svg.append("g").attr("class", "sitemap-legend-fixed").attr(
385
+ "transform",
386
+ header.inline ? `translate(${header.legendX}, ${header.legendY})` : `translate(0, ${sDiagramPadding + fixedTitleH})`
387
+ );
354
388
  if (activeTagGroup) {
355
389
  legendParent.attr("data-legend-active", tagAttrKey(activeTagGroup));
356
390
  }
@@ -362,11 +396,12 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
362
396
  activeTagGroup,
363
397
  width,
364
398
  hiddenAttributes,
365
- exportMode
399
+ exportMode,
400
+ header.inline
366
401
  );
367
402
  }
368
403
  }
369
- function renderLegend(parent, legendGroups, palette, isDark, activeTagGroup, fixedWidth, hiddenAttributes, exportMode) {
404
+ function renderLegend(parent, legendGroups, palette, isDark, activeTagGroup, fixedWidth, hiddenAttributes, exportMode, inlineHeader) {
370
405
  if (legendGroups.length === 0) return;
371
406
  const groups = legendGroups.map((g) => ({
372
407
  name: g.name,
@@ -382,6 +417,10 @@ function renderLegend(parent, legendGroups, palette, isDark, activeTagGroup, fix
382
417
  groups,
383
418
  activeGroup: activeTagGroup ?? null,
384
419
  mode: exportMode ? "export" : "preview",
420
+ position: {
421
+ placement: "top-center",
422
+ titleRelation: inlineHeader ? "inline-with-title" : "below-title"
423
+ },
385
424
  capsulePillAddonWidth: eyeAddonWidth,
386
425
  palette,
387
426
  isDark,
@@ -407,8 +446,8 @@ function renderLegend(parent, legendGroups, palette, isDark, activeTagGroup, fix
407
446
  }
408
447
  }
409
448
  async function renderSitemapForExport(content, theme, palette) {
410
- const { parseSitemap } = await import("./parser-CCNJKDDA.js");
411
- const { layoutSitemap } = await import("./layout-4SPLI4HG.js");
449
+ const { parseSitemap } = await import("./parser-S6NWSIJO.js");
450
+ const { layoutSitemap } = await import("./layout-UTMEVFHN.js");
412
451
  const { getPalette } = await import("./palettes-FGTNFARW.js");
413
452
  const isDark = theme === "dark";
414
453
  const effectivePalette = palette ?? (isDark ? getPalette("nord").dark : getPalette("nord").light);
@@ -458,4 +497,4 @@ export {
458
497
  renderSitemap,
459
498
  renderSitemapForExport
460
499
  };
461
- //# sourceMappingURL=chunk-5XSNLXU5.js.map
500
+ //# sourceMappingURL=chunk-IG6J7JWH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tryCollectNote
3
- } from "./chunk-WWHECSYZ.js";
3
+ } from "./chunk-4R5KIPNX.js";
4
4
  import {
5
5
  resolveNotes
6
6
  } from "./chunk-QZAW5SFH.js";
@@ -16,7 +16,7 @@ import {
16
16
  measureIndent,
17
17
  parseFirstLine,
18
18
  tryParseSharedOption
19
- } from "./chunk-3FRO35WW.js";
19
+ } from "./chunk-A2ARDILY.js";
20
20
  import {
21
21
  resolveColorWithDiagnostic
22
22
  } from "./chunk-ZKPPI6BF.js";
@@ -445,4 +445,4 @@ export {
445
445
  looksLikeClassDiagram,
446
446
  extractSymbols
447
447
  };
448
- //# sourceMappingURL=chunk-M24VXUFG.js.map
448
+ //# sourceMappingURL=chunk-IIUYKQ5J.js.map
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  injectDefaultTagMetadata,
13
13
  resolveTagColor
14
- } from "./chunk-AHTTKERF.js";
14
+ } from "./chunk-JR7Q6GHE.js";
15
15
 
16
16
  // src/mindmap/text-wrap.ts
17
17
  var H_PAD = 16;
@@ -547,4 +547,4 @@ export {
547
547
  computeNodeText,
548
548
  layoutMindmap
549
549
  };
550
- //# sourceMappingURL=chunk-5VXU6MND.js.map
550
+ //# sourceMappingURL=chunk-INTAQV2Y.js.map
@@ -7,7 +7,7 @@ import {
7
7
  splitNameAndMeta,
8
8
  warnUnknownMetaKeys,
9
9
  withTagAliases
10
- } from "./chunk-3FRO35WW.js";
10
+ } from "./chunk-A2ARDILY.js";
11
11
  import {
12
12
  makeDgmoError
13
13
  } from "./chunk-4W2PE66Q.js";
@@ -314,4 +314,4 @@ export {
314
314
  parseTimelineDate,
315
315
  parseTimelineEventLine
316
316
  };
317
- //# sourceMappingURL=chunk-3KHJJP3J.js.map
317
+ //# sourceMappingURL=chunk-ITXL2KU5.js.map
@@ -311,7 +311,7 @@ function computeNodeSize(node, reserveValueRow) {
311
311
  return { width: w, height: Math.max(NODE_HEIGHT, totalHeight) };
312
312
  }
313
313
  async function layoutBoxesAndLines(parsed, collapseInfo, layoutOptions) {
314
- const { layoutBoxesAndLinesSearch } = await import("./layout-search-LUI475P3.js");
314
+ const { layoutBoxesAndLinesSearch } = await import("./layout-search-U2H4ORFJ.js");
315
315
  const searchOpts = {
316
316
  ...layoutOptions?.hideDescriptions !== void 0 && {
317
317
  hideDescriptions: layoutOptions.hideDescriptions
@@ -466,4 +466,4 @@ export {
466
466
  computeNodeSize,
467
467
  layoutBoxesAndLines
468
468
  };
469
- //# sourceMappingURL=chunk-I47VHSPS.js.map
469
+ //# sourceMappingURL=chunk-IWG2ECAO.js.map
@@ -25,16 +25,16 @@ import {
25
25
  } from "./chunk-3CIOJ5YJ.js";
26
26
  import {
27
27
  layoutOrg
28
- } from "./chunk-BWYFIVZF.js";
28
+ } from "./chunk-UBQU2BY6.js";
29
29
  import {
30
30
  ScaleContext
31
31
  } from "./chunk-YYVTBZZC.js";
32
32
  import {
33
33
  renderIntegratedLegend
34
- } from "./chunk-2NZOHEP4.js";
34
+ } from "./chunk-ASPS5O6F.js";
35
35
  import {
36
36
  getMaxLegendReservedHeight
37
- } from "./chunk-J7HQPVYH.js";
37
+ } from "./chunk-GRXPFBYC.js";
38
38
  import {
39
39
  TITLE_FONT_SIZE,
40
40
  TITLE_FONT_WEIGHT
@@ -44,7 +44,7 @@ import {
44
44
  } from "./chunk-6KFWC4CO.js";
45
45
  import {
46
46
  parseOrg
47
- } from "./chunk-T3FAJAJT.js";
47
+ } from "./chunk-MNS2ENXF.js";
48
48
  import {
49
49
  EYE_CLOSED_PATH,
50
50
  EYE_OPEN_PATH,
@@ -65,10 +65,10 @@ import {
65
65
  import {
66
66
  resolveTagColor,
67
67
  tagAttrKey
68
- } from "./chunk-AHTTKERF.js";
68
+ } from "./chunk-JR7Q6GHE.js";
69
69
  import {
70
70
  fillModeFromOptions
71
- } from "./chunk-3FRO35WW.js";
71
+ } from "./chunk-A2ARDILY.js";
72
72
 
73
73
  // src/org/renderer.ts
74
74
  import * as d3Selection from "d3-selection";
@@ -485,4 +485,4 @@ export {
485
485
  renderOrg,
486
486
  renderOrgForExport
487
487
  };
488
- //# sourceMappingURL=chunk-CSHFU6LT.js.map
488
+ //# sourceMappingURL=chunk-JGCEFKZP.js.map
@@ -5,7 +5,7 @@ import {
5
5
  splitNameAndMeta,
6
6
  tryParseSharedOption,
7
7
  warnUnknownMetaKeys
8
- } from "./chunk-3FRO35WW.js";
8
+ } from "./chunk-A2ARDILY.js";
9
9
  import {
10
10
  makeDgmoError,
11
11
  makeFail
@@ -274,4 +274,4 @@ function parseCycle(content) {
274
274
  export {
275
275
  parseCycle
276
276
  };
277
- //# sourceMappingURL=chunk-O576GYAP.js.map
277
+ //# sourceMappingURL=chunk-JQLSFZZP.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  stripQuotes,
3
3
  tokenizeQuoteAware
4
- } from "./chunk-3FRO35WW.js";
4
+ } from "./chunk-A2ARDILY.js";
5
5
  import {
6
6
  CATEGORICAL_COLOR_ORDER,
7
7
  RECOGNIZED_COLOR_NAMES,
@@ -250,4 +250,4 @@ export {
250
250
  resolveActiveTagGroup,
251
251
  matchTagBlockHeading
252
252
  };
253
- //# sourceMappingURL=chunk-AHTTKERF.js.map
253
+ //# sourceMappingURL=chunk-JR7Q6GHE.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-YYVTBZZC.js";
10
10
  import {
11
11
  renderIntegratedLegend
12
- } from "./chunk-2NZOHEP4.js";
12
+ } from "./chunk-ASPS5O6F.js";
13
13
  import {
14
14
  TITLE_FONT_SIZE,
15
15
  TITLE_FONT_WEIGHT,
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-JYDMBWRP.js";
32
32
  import {
33
33
  fillModeFromOptions
34
- } from "./chunk-3FRO35WW.js";
34
+ } from "./chunk-A2ARDILY.js";
35
35
  import {
36
36
  resolveColor
37
37
  } from "./chunk-ZKPPI6BF.js";
@@ -969,4 +969,4 @@ export {
969
969
  renderCycle,
970
970
  renderCycleForExport
971
971
  };
972
- //# sourceMappingURL=chunk-4T6OCSJ2.js.map
972
+ //# sourceMappingURL=chunk-KC3WBBI7.js.map
@@ -5,14 +5,14 @@ import {
5
5
  matchTagBlockHeading,
6
6
  stripDefaultModifier,
7
7
  validateTagGroupNames
8
- } from "./chunk-AHTTKERF.js";
8
+ } from "./chunk-JR7Q6GHE.js";
9
9
  import {
10
10
  OPTION_NOCOLON_RE,
11
11
  extractColor,
12
12
  measureIndent,
13
13
  parseFirstLine,
14
14
  tryParseSharedOption
15
- } from "./chunk-3FRO35WW.js";
15
+ } from "./chunk-A2ARDILY.js";
16
16
  import {
17
17
  formatDgmoError,
18
18
  makeDgmoError
@@ -729,4 +729,4 @@ export {
729
729
  resetWireframeIds,
730
730
  parseWireframe
731
731
  };
732
- //# sourceMappingURL=chunk-BM7MG6HT.js.map
732
+ //# sourceMappingURL=chunk-KK3L5NVK.js.map