@diagrammo/dgmo 0.95.0 → 0.96.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.
- package/README.md +1 -1
- package/dist/advanced.d.ts +27 -569
- package/dist/advanced.js +157 -350
- package/dist/block.js +54 -55
- package/dist/{calculator-BNH3GSJE.js → calculator-GIB7POFX.js} +2 -2
- package/dist/{chart-meta-BbjsRY7o.d.ts → chart-meta-uImk4eTn.d.ts} +1 -1
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +15 -15
- package/dist/{chart-types-Cppnp31G.d.ts → chart-types-CBVYiLqy.d.ts} +1 -5
- package/dist/{charts-d3-SZV2SFTM.js → charts-d3-IRP5VANE.js} +5 -5
- package/dist/{chunk-MLY5ALOV.js → chunk-2BYFNZVM.js} +2 -2
- package/dist/{chunk-OSSTOSXU.js → chunk-2M3K6GD2.js} +3 -6
- package/dist/{chunk-CDM6XMOT.js → chunk-34JOHSVE.js} +2 -2
- package/dist/chunk-35A3J4Z5.js +14 -0
- package/dist/{chunk-7IALGIOI.js → chunk-3W73ZP6W.js} +9 -4
- package/dist/{chunk-IHN6WDEY.js → chunk-4B45SNZH.js} +5 -5
- package/dist/{chunk-AULZD45V.js → chunk-5ARANBIE.js} +2 -2
- package/dist/{chunk-L5S32VZJ.js → chunk-5BG4OSWJ.js} +5 -5
- package/dist/{chunk-VB4VMB2I.js → chunk-5G4DOOX2.js} +1 -1
- package/dist/{chunk-EXHXTMVR.js → chunk-5GU6C5WB.js} +2 -2
- package/dist/{chunk-EBIDNRSR.js → chunk-5H7SA5ZD.js} +1 -1
- package/dist/{chunk-CN4RDJDV.js → chunk-5LG526X7.js} +1 -1
- package/dist/{chunk-VF7IKIRS.js → chunk-67RKJEKF.js} +5 -5
- package/dist/{chunk-D3K4U3ZM.js → chunk-6K2W3FH7.js} +8 -5
- package/dist/{chunk-C6G36F5S.js → chunk-7UWVHNPM.js} +4 -4
- package/dist/{chunk-FWVE373X.js → chunk-AQRSEQZV.js} +1 -1
- package/dist/{chunk-BQO24BDM.js → chunk-AUXUNV73.js} +1 -1
- package/dist/{chunk-3PP746YM.js → chunk-B2YVZ3QU.js} +1 -1
- package/dist/{chunk-QPQWY5RU.js → chunk-B5CEV7IR.js} +3 -3
- package/dist/{chunk-J7Q4AB23.js → chunk-B7BSRVNC.js} +2 -2
- package/dist/{chunk-IXHWS2HI.js → chunk-BD4O4D2A.js} +2 -2
- package/dist/{chunk-RQTDUZUH.js → chunk-BUVLLK3D.js} +6 -6
- package/dist/{chunk-JJ7RGTAU.js → chunk-CD7VQCDL.js} +6 -6
- package/dist/{chunk-6EFCOES2.js → chunk-CP73WWLN.js} +5 -5
- package/dist/{chunk-GI5R5B3S.js → chunk-D7DGLJ7N.js} +2 -2
- package/dist/{chunk-XOMIYMQ3.js → chunk-DKCVAQU3.js} +6 -6
- package/dist/{chunk-KBDMEOLI.js → chunk-DPNSDCR3.js} +1 -1
- package/dist/{chunk-BRGRIZQB.js → chunk-DWMQ24JR.js} +2 -2
- package/dist/{chunk-4XYZJTFO.js → chunk-EM5SA7NC.js} +11 -3
- package/dist/{chunk-AM42TLSZ.js → chunk-EMGNCG5C.js} +1 -1
- package/dist/{chunk-3KVUFHUJ.js → chunk-EPB3UEMD.js} +2 -2
- package/dist/{chunk-NXU4N5WT.js → chunk-EZ6BI5LL.js} +1 -1
- package/dist/{chunk-2ZW4NBYX.js → chunk-FBK32S4D.js} +1 -1
- package/dist/{chunk-2I4UQG7W.js → chunk-FHX373L5.js} +1 -1
- package/dist/{chunk-AQQUJEDN.js → chunk-FKJWZWNU.js} +1 -1
- package/dist/{chunk-TIIZIAGS.js → chunk-FUYEXLAN.js} +6 -13
- package/dist/{chunk-TASRGDYP.js → chunk-GEHK4UD5.js} +3 -3
- package/dist/{chunk-ZD3QCNB7.js → chunk-GLL237AP.js} +2 -2
- package/dist/{chunk-PGSGJLUR.js → chunk-GM2SLMQW.js} +2 -2
- package/dist/{chunk-V5D6GDNK.js → chunk-H7JVKUA5.js} +4 -4
- package/dist/{chunk-IY62DXT2.js → chunk-H7RQG4PH.js} +2 -2
- package/dist/{chunk-KLBTJEIK.js → chunk-HH3DHNQA.js} +1 -1
- package/dist/{chunk-GWQRTA5W.js → chunk-HZX4QZGR.js} +1 -1
- package/dist/{chunk-KBEWVCK3.js → chunk-I2I2FKAK.js} +1 -1
- package/dist/{chunk-BTP2BMWN.js → chunk-I3ZRIMR7.js} +10 -10
- package/dist/{chunk-IQN2NGEU.js → chunk-IKXQ6NVR.js} +6 -6
- package/dist/{chunk-XJQ6Z3FO.js → chunk-IQZSKWE5.js} +3 -3
- package/dist/{chunk-3GUEYQGL.js → chunk-ITDF3MWD.js} +3 -3
- package/dist/{chunk-JXGSTBW6.js → chunk-IU7XKZA6.js} +2 -2
- package/dist/{chunk-RITTLIDJ.js → chunk-IZFJZCF6.js} +4 -4
- package/dist/{chunk-PGBTUGDB.js → chunk-JBAFAKGX.js} +5 -5
- package/dist/{chunk-VSAKEMDD.js → chunk-JCC3B2GS.js} +8 -2
- package/dist/{chunk-66JTY4AN.js → chunk-JRN2CRXJ.js} +1 -1
- package/dist/{chunk-USZLHYEQ.js → chunk-K2SFH3GJ.js} +2 -2
- package/dist/{chunk-NM5V5EKY.js → chunk-K2WXMXI2.js} +1 -1
- package/dist/{chunk-62GLKE6Q.js → chunk-KDWEOT54.js} +21 -9
- package/dist/{chunk-PVWIBKV2.js → chunk-KQAPFIYF.js} +2 -2
- package/dist/{chunk-4SACN2C5.js → chunk-LGUFJ7Y2.js} +1 -1
- package/dist/{chunk-LAXMUSGW.js → chunk-LRHPBWOY.js} +4 -4
- package/dist/{chunk-5XBYLYYI.js → chunk-M4ZUIW3J.js} +3 -3
- package/dist/{chunk-S4SJ4LLY.js → chunk-MAYTYF5S.js} +3 -3
- package/dist/{chunk-P5XA627W.js → chunk-MVUNMJKO.js} +46 -52
- package/dist/{chunk-E7F76M3U.js → chunk-MYHR3PMH.js} +57 -5
- package/dist/{chunk-NBAAIRFP.js → chunk-NI4L6HEU.js} +4 -1
- package/dist/{chunk-A2A2I4Z4.js → chunk-O2HNVNKO.js} +2 -2
- package/dist/{chunk-4UVCTLRH.js → chunk-OAZ6BIIB.js} +3 -3
- package/dist/{chunk-IZHGT5HD.js → chunk-OO4GUE4E.js} +3 -3
- package/dist/{chunk-KSZB7TIY.js → chunk-OYGJZA24.js} +8 -8
- package/dist/{chunk-H6BT45SN.js → chunk-P2GNNEMN.js} +1 -1
- package/dist/{chunk-U6VS3T2M.js → chunk-P3PSLC2K.js} +4 -4
- package/dist/{chunk-HHVIE45A.js → chunk-P6LKX3IQ.js} +4 -4
- package/dist/{chunk-NMS5XSLX.js → chunk-PGD6CNWO.js} +1 -1
- package/dist/{chunk-NVZ7R4EK.js → chunk-PWZEJNO6.js} +3 -3
- package/dist/{chunk-NPDVWFAQ.js → chunk-QEU6VM4O.js} +1 -1
- package/dist/{chunk-UIEKW4SG.js → chunk-R5L5E3TC.js} +0 -1
- package/dist/{chunk-2WQ3YZMN.js → chunk-RGFVHYDP.js} +2 -2
- package/dist/{chunk-YQMIKX54.js → chunk-RIK6WUMO.js} +62 -29
- package/dist/{chunk-BH2SF4TT.js → chunk-RTRORHSP.js} +1 -1
- package/dist/{chunk-USE6HIOZ.js → chunk-RVOSA4RR.js} +845 -193
- package/dist/{chunk-LKZCUFOW.js → chunk-SCYVGPLI.js} +2 -2
- package/dist/{chunk-XIUGSUE4.js → chunk-SIABEREK.js} +6 -2
- package/dist/{chunk-R46N5KR4.js → chunk-SQBCNEJB.js} +2 -1
- package/dist/{chunk-VTESGA5F.js → chunk-THTYCJGF.js} +2 -2
- package/dist/{chunk-4EX4OKGZ.js → chunk-TIPNNOZC.js} +5 -5
- package/dist/{chunk-UZ7EZW3B.js → chunk-TO53KK2P.js} +6 -1
- package/dist/{chunk-LJGE43SG.js → chunk-TPCP2UOI.js} +3 -3
- package/dist/{chunk-Y3SIQN4J.js → chunk-TUOZ6AXC.js} +2 -2
- package/dist/{chunk-KRPLP5LP.js → chunk-U6N547QA.js} +1 -1
- package/dist/{chunk-BCV2VJTM.js → chunk-VJ7NLYFE.js} +2 -2
- package/dist/{chunk-UXNA2H2V.js → chunk-VLI6AWS3.js} +2 -2
- package/dist/{chunk-2J2CWWWK.js → chunk-VNAPEZX2.js} +1 -1
- package/dist/{chunk-EBVVMUAA.js → chunk-VVTCUIPN.js} +1 -1
- package/dist/{chunk-FVTYJUXR.js → chunk-W5MMPPGX.js} +2 -2
- package/dist/{chunk-BQMHJ6OW.js → chunk-WGNP5ND2.js} +20 -12
- package/dist/{chunk-5OTA2PUH.js → chunk-WLGOIMTI.js} +2 -2
- package/dist/{chunk-IGJEKO2P.js → chunk-WTPS73RM.js} +4 -4
- package/dist/{chunk-R6EGUTIV.js → chunk-YFIUABSF.js} +2 -2
- package/dist/{chunk-7PJBJ2DU.js → chunk-YSGOXZBB.js} +1 -1
- package/dist/{chunk-ZECJ7Q6C.js → chunk-YVIPJGFG.js} +2 -2
- package/dist/{chunk-5KKZXA44.js → chunk-ZBOIYC2G.js} +4 -2
- package/dist/{chunk-RBVFNUAL.js → chunk-ZOKD5F7M.js} +2 -2
- package/dist/{collapse-BSPH3BFM.js → collapse-6X5S2S3G.js} +2 -1
- package/dist/completion-registry.js +4 -38
- package/dist/countdown.js +1 -1
- package/dist/{dgmo-router-6YLKM6WU.js → dgmo-router-EPBQKQW2.js} +44 -45
- package/dist/{dimensions-DS6FWLRY.js → dimensions-DBCRBZIU.js} +4 -4
- package/dist/editor.js +2 -7
- package/dist/{flowchart-parser-J3VWIFWB.js → flowchart-parser-SM5LHF2D.js} +3 -3
- package/dist/{flowchart-renderer-FECH5KK5.js → flowchart-renderer-PPS2GTTD.js} +9 -9
- package/dist/highlight.js +3 -8
- package/dist/index.d.ts +42 -6
- package/dist/index.js +61 -56
- package/dist/{layout-MXHR3P35.js → layout-3J72UULM.js} +3 -3
- package/dist/{layout-TIBRMWHL.js → layout-AF4KA5B2.js} +3 -3
- package/dist/{layout-5SZ5A64I.js → layout-FCFUVCRI.js} +6 -6
- package/dist/{layout-KV27UW25.js → layout-H2KP5A6M.js} +1 -1
- package/dist/{layout-ND26WVX2.js → layout-IXQNVRBE.js} +3 -3
- package/dist/{layout-YBMT74MG.js → layout-KELSNWBD.js} +6 -6
- package/dist/{layout-JTIRCKAW.js → layout-LNVIH45F.js} +3 -3
- package/dist/{layout-EWXHEXNS.js → layout-MPSH3YWE.js} +6 -6
- package/dist/{layout-HFBK5UEG.js → layout-PPIVGJXD.js} +2 -2
- package/dist/{layout-RH3N46HP.js → layout-R6G4MEO3.js} +4 -3
- package/dist/{layout-search-AWPJWBKT.js → layout-search-C2TYUH4L.js} +4 -4
- package/dist/{parser-BT4NI6JY.js → parser-2AXU2MHJ.js} +3 -3
- package/dist/{parser-3QIFY5IN.js → parser-4BOP77CD.js} +2 -2
- package/dist/{parser-MA7L3XND.js → parser-4GHAYZKZ.js} +4 -4
- package/dist/{parser-LTRQASGB.js → parser-5HQPPVHJ.js} +3 -3
- package/dist/{parser-EAQPZX2B.js → parser-5RUD4A3X.js} +3 -3
- package/dist/{parser-BJ7RJNUM.js → parser-6WURFLOB.js} +3 -3
- package/dist/{parser-AR2GON37.js → parser-722KLLAQ.js} +4 -4
- package/dist/{parser-KMKVFET2.js → parser-B7SCN7FG.js} +2 -2
- package/dist/{parser-TUAEX6ML.js → parser-BNRX35NT.js} +3 -3
- package/dist/{parser-NL73FSFI.js → parser-BPYHIG24.js} +3 -3
- package/dist/{parser-3LT3ZUUC.js → parser-CRJYLOHA.js} +2 -2
- package/dist/{parser-NUU3DVW4.js → parser-DGLKH4NT.js} +2 -2
- package/dist/{parser-5UZV32ZI.js → parser-DRUGM3R6.js} +2 -2
- package/dist/{parser-KLCSFQ3J.js → parser-DWV2CYBS.js} +3 -3
- package/dist/{parser-2IKPQVKX.js → parser-F3JJNIFC.js} +3 -3
- package/dist/{parser-EFF22GYO.js → parser-F75WNYMK.js} +3 -3
- package/dist/{parser-RTWPFKXG.js → parser-GBQY3WOZ.js} +3 -3
- package/dist/{parser-F7NDRPMA.js → parser-GM5B2EPW.js} +3 -3
- package/dist/{parser-K2DI26SC.js → parser-H6HT2WFQ.js} +2 -2
- package/dist/{parser-PEZ7RN43.js → parser-HM6FEX5K.js} +3 -3
- package/dist/{parser-YG625J5H.js → parser-L7SI3PW4.js} +4 -4
- package/dist/{parser-GMQJISZ6.js → parser-LUJX7AXO.js} +2 -2
- package/dist/{parser-A3AN76RQ.js → parser-MWINQNQW.js} +3 -3
- package/dist/{parser-KJPPUN4D.js → parser-OHBBDCG4.js} +2 -2
- package/dist/{parser-BTSTKY5G.js → parser-QWTECQEC.js} +4 -4
- package/dist/{parser-4TBSWULQ.js → parser-TTGZYLYD.js} +3 -3
- package/dist/{parser-6TDWUKM5.js → parser-UHKROC7Z.js} +3 -3
- package/dist/{parser-H5OODY5N.js → parser-W6NX3AIV.js} +3 -3
- package/dist/{parser-GDLKUBTO.js → parser-WIKXZP4X.js} +2 -2
- package/dist/{parser-4Y6PODW6.js → parser-XEJP37GQ.js} +3 -3
- package/dist/{parser-RCIEKN7Y.js → parser-Y7QXD2UR.js} +2 -2
- package/dist/{parser-ZRIZFDZY.js → parser-ZV756RMP.js} +4 -4
- package/dist/{parser-KKF6Y5MM.js → parser-ZWWQZ4XZ.js} +4 -3
- package/dist/{redraw-AHW7EUUF.js → redraw-BZ4GI6IC.js} +6 -4
- package/dist/{redraw-STZ4WJAI.js → redraw-LEOXS7C6.js} +3 -3
- package/dist/{renderer-4VGO27EE.js → renderer-2MCV75JQ.js} +11 -11
- package/dist/{renderer-TINHO2IO.js → renderer-2V2XY2V7.js} +4 -4
- package/dist/{renderer-XDX6S7OV.js → renderer-5AEDVLAA.js} +8 -7
- package/dist/{renderer-W4MUMXJE.js → renderer-5GP7YUS4.js} +3 -3
- package/dist/{renderer-ACQQ2JXA.js → renderer-66NCRXSC.js} +6 -6
- package/dist/{renderer-AM7P4LN7.js → renderer-6HU44IGJ.js} +4 -4
- package/dist/{renderer-6BDK47V6.js → renderer-7C76HP5W.js} +6 -6
- package/dist/{renderer-O6RP52CQ.js → renderer-7RAMBMTH.js} +6 -6
- package/dist/{renderer-IGSHD3OT.js → renderer-BYLQ37T2.js} +8 -8
- package/dist/{renderer-7OGGV327.js → renderer-CVCCW7UT.js} +4 -4
- package/dist/{renderer-QTPWRRJ7.js → renderer-D6EH5UQ6.js} +6 -6
- package/dist/renderer-E3334XLT.js +84 -0
- package/dist/{renderer-IXBOT6DU.js → renderer-F7YGMEGQ.js} +2 -2
- package/dist/{renderer-XCLARXCK.js → renderer-GKY55M4Z.js} +5 -5
- package/dist/{renderer-KJ3V5BYP.js → renderer-LFZKG2GR.js} +5 -5
- package/dist/{renderer-2LYX6NHN.js → renderer-LJPUCG3U.js} +5 -5
- package/dist/{renderer-DAZWHNLI.js → renderer-MGF2NNGG.js} +3 -3
- package/dist/{renderer-HX6ICPDX.js → renderer-MVBAQP3M.js} +4 -4
- package/dist/{renderer-UGW4N2W5.js → renderer-MZIWP55B.js} +5 -5
- package/dist/{renderer-MWZC7TMD.js → renderer-N6PM5CSG.js} +7 -7
- package/dist/{renderer-ISQJ2ELA.js → renderer-N75E3UVY.js} +5 -5
- package/dist/{renderer-IVHD7ENY.js → renderer-ONENGXFQ.js} +6 -6
- package/dist/{renderer-RUSQJFFC.js → renderer-PEJF6R2I.js} +2 -2
- package/dist/{renderer-36446HSH.js → renderer-QZJZIAT3.js} +2 -2
- package/dist/{renderer-UTEEJDGB.js → renderer-SYRH3B62.js} +6 -6
- package/dist/{renderer-2QPHDBZY.js → renderer-TS5NHOQD.js} +5 -5
- package/dist/{renderer-Y47EM337.js → renderer-VNJOZPSH.js} +7 -7
- package/dist/{renderer-P3WR7TKD.js → renderer-VNUDN6F5.js} +11 -11
- package/dist/{renderer-JYHA6R2D.js → renderer-VUXAAGUG.js} +5 -5
- package/dist/{renderer-BXD5KVSR.js → renderer-YJVQT7QG.js} +6 -6
- package/dist/{renderer-radial-WFUX3Z3C.js → renderer-radial-4R7AKETK.js} +5 -5
- package/dist/{state-parser-PMNHLHLE.js → state-parser-EQBBEKHR.js} +4 -4
- package/dist/{state-renderer-JQ5DS66J.js → state-renderer-SOGZ2CNN.js} +11 -11
- package/dist/{themes-DzIH3Hjv.d.ts → themes-CbJL3w8L.d.ts} +1 -1
- package/docs/ai-integration.md +5 -6
- package/docs/language-reference.md +68 -104
- package/gallery/fixtures/whiteboard.dgmo +1 -0
- package/package.json +1 -1
- package/dist/chunk-6BQSDF77.js +0 -734
- package/dist/chunk-NWSPPGIE.js +0 -60
- package/dist/chunk-VBMRZCMQ.js +0 -1465
- package/dist/chunk-WZBZXZ6T.js +0 -636
- package/dist/layout-D4L44NRG.js +0 -11
- package/dist/parser-YHDGKPZI.js +0 -14
- package/dist/renderer-WPN2SXGT.js +0 -29
- package/dist/renderer-ZV6KCLCL.js +0 -85
- package/gallery/fixtures/sketch.dgmo +0 -22
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isLiveLinkLine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DPNSDCR3.js";
|
|
4
4
|
import {
|
|
5
5
|
looksLikeSequence
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JCC3B2GS.js";
|
|
7
7
|
import {
|
|
8
8
|
looksLikeOrg
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WLGOIMTI.js";
|
|
10
10
|
import {
|
|
11
11
|
looksLikeSitemap
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YVIPJGFG.js";
|
|
13
13
|
import {
|
|
14
14
|
looksLikePert
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-34JOHSVE.js";
|
|
16
16
|
import {
|
|
17
17
|
looksLikeFlowchart
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-H7RQG4PH.js";
|
|
19
19
|
import {
|
|
20
20
|
looksLikeState
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TPCP2UOI.js";
|
|
22
22
|
import {
|
|
23
23
|
looksLikeERDiagram
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MAYTYF5S.js";
|
|
25
25
|
import {
|
|
26
26
|
looksLikeClassDiagram
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-M4ZUIW3J.js";
|
|
28
28
|
import {
|
|
29
29
|
parseFirstLine
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FUYEXLAN.js";
|
|
31
31
|
|
|
32
32
|
// src/chart-type-detect.ts
|
|
33
33
|
var GANTT_DURATION_RE = /^\d+(?:\.\d+)?(?:min|bd|sp|d|w|m|q|y|h)(?:\?)?\s+/;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutERDiagram
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3W73ZP6W.js";
|
|
4
4
|
import {
|
|
5
5
|
serializeSvg
|
|
6
6
|
} from "./chunk-CYRB2JTN.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-24YPR5EH.js";
|
|
10
10
|
import {
|
|
11
11
|
layoutInlineHeader
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R5L5E3TC.js";
|
|
13
13
|
import {
|
|
14
14
|
TITLE_FONT_SIZE,
|
|
15
15
|
TITLE_FONT_WEIGHT,
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
} from "./chunk-XCKNFFKM.js";
|
|
23
23
|
import {
|
|
24
24
|
renderIntegratedLegend
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PGD6CNWO.js";
|
|
26
26
|
import {
|
|
27
27
|
getLegendExtent
|
|
28
28
|
} from "./chunk-JILEYZ2V.js";
|
|
29
29
|
import {
|
|
30
30
|
parseERDiagram
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MAYTYF5S.js";
|
|
32
32
|
import {
|
|
33
33
|
NOTE_BADGE_RADIUS,
|
|
34
34
|
noteConnectorPoints,
|
|
@@ -42,12 +42,12 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
resolveTagColor,
|
|
44
44
|
tagAttrKey
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
46
46
|
import {
|
|
47
47
|
fillModeFromOptions,
|
|
48
48
|
legendInlineRequested,
|
|
49
49
|
legendSuppressed
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FUYEXLAN.js";
|
|
51
51
|
import {
|
|
52
52
|
LEGEND_HEIGHT
|
|
53
53
|
} from "./chunk-UOCWYLYT.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-ZI6WC24V.js";
|
|
9
9
|
import {
|
|
10
10
|
layoutInlineHeader
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R5L5E3TC.js";
|
|
12
12
|
import {
|
|
13
13
|
TITLE_FONT_SIZE,
|
|
14
14
|
TITLE_FONT_WEIGHT,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-VLC6WNRD.js";
|
|
17
17
|
import {
|
|
18
18
|
renderIntegratedLegend
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PGD6CNWO.js";
|
|
20
20
|
import {
|
|
21
21
|
getLegendExtent,
|
|
22
22
|
getMaxLegendReservedHeight
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
resolveTagColor,
|
|
32
32
|
tagAttrKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
34
34
|
import {
|
|
35
35
|
LEGEND_GROUP_GAP
|
|
36
36
|
} from "./chunk-UOCWYLYT.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractDatePrefix,
|
|
3
3
|
parseTimelineDate
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AUXUNV73.js";
|
|
5
5
|
import {
|
|
6
6
|
makeYearContext,
|
|
7
7
|
parseDateToken,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
tagAttrKey,
|
|
17
17
|
validateTagGroupNames,
|
|
18
18
|
validateTagValues
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
20
20
|
import {
|
|
21
21
|
EVENT_LINE_REGISTRY,
|
|
22
22
|
extractColor,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
tryParseSharedOption,
|
|
28
28
|
warnUnknownMetaKeys,
|
|
29
29
|
withTagAliases
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FUYEXLAN.js";
|
|
31
31
|
import {
|
|
32
32
|
emit,
|
|
33
33
|
formatDgmoError,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
matchTagBlockHeading,
|
|
10
10
|
stripDefaultModifier,
|
|
11
11
|
tagAttrKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
13
13
|
import {
|
|
14
14
|
extractColor,
|
|
15
15
|
fillModeFromToken,
|
|
16
16
|
measureIndent,
|
|
17
17
|
parseFirstLine
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FUYEXLAN.js";
|
|
19
19
|
import {
|
|
20
20
|
emit
|
|
21
21
|
} from "./chunk-BYU54C3S.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseKanban
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SCYVGPLI.js";
|
|
4
4
|
import {
|
|
5
5
|
serializeSvg
|
|
6
6
|
} from "./chunk-CYRB2JTN.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
keepSwimlaneToggleFocus,
|
|
19
19
|
renderIntegratedLegend,
|
|
20
20
|
wireSwimlaneToggle
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PGD6CNWO.js";
|
|
22
22
|
import {
|
|
23
23
|
getMaxLegendReservedHeight
|
|
24
24
|
} from "./chunk-JILEYZ2V.js";
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
} from "./chunk-ICLB27PZ.js";
|
|
31
31
|
import {
|
|
32
32
|
tagAttrKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
34
34
|
import {
|
|
35
35
|
fillModeFromOptions,
|
|
36
36
|
legendSuppressed
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FUYEXLAN.js";
|
|
38
38
|
import {
|
|
39
39
|
LEGEND_HEIGHT,
|
|
40
40
|
measureLegendText
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutOrg
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O2HNVNKO.js";
|
|
4
4
|
import {
|
|
5
5
|
renderCollapseBar,
|
|
6
6
|
renderNodeCard
|
|
@@ -35,23 +35,23 @@ import {
|
|
|
35
35
|
} from "./chunk-XCKNFFKM.js";
|
|
36
36
|
import {
|
|
37
37
|
renderIntegratedLegend
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-PGD6CNWO.js";
|
|
39
39
|
import {
|
|
40
40
|
getMaxLegendReservedHeight
|
|
41
41
|
} from "./chunk-JILEYZ2V.js";
|
|
42
42
|
import {
|
|
43
43
|
parseOrg
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-WLGOIMTI.js";
|
|
45
45
|
import {
|
|
46
46
|
FONT_FAMILY
|
|
47
47
|
} from "./chunk-ICLB27PZ.js";
|
|
48
48
|
import {
|
|
49
49
|
resolveTagColor,
|
|
50
50
|
tagAttrKey
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
52
52
|
import {
|
|
53
53
|
fillModeFromOptions
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-FUYEXLAN.js";
|
|
55
55
|
import {
|
|
56
56
|
EYE_CLOSED_PATH,
|
|
57
57
|
EYE_OPEN_PATH,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
tagAttrKey,
|
|
22
22
|
validateTagGroupNames,
|
|
23
23
|
validateTagValues
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
25
25
|
import {
|
|
26
26
|
AliasRegistry,
|
|
27
27
|
FILL_FAMILY_TOKENS,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
splitNameAndMeta,
|
|
36
36
|
warnUnknownMetaKeys,
|
|
37
37
|
withTagAliases
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FUYEXLAN.js";
|
|
39
39
|
import {
|
|
40
40
|
NAME_DIAGNOSTIC_CODES,
|
|
41
41
|
formatDgmoError,
|
|
@@ -1008,6 +1008,12 @@ function parseSequenceDgmo(content, palette) {
|
|
|
1008
1008
|
return fail(1, 'No "sequence" header and no sequence content detected');
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
+
if (result.messages.length === 0 && result.participants.length === 0 && result.diagnostics.length === 0) {
|
|
1012
|
+
pushWarning(
|
|
1013
|
+
1,
|
|
1014
|
+
"No participants or messages found. Add a message like 'Alice -> Bob'."
|
|
1015
|
+
);
|
|
1016
|
+
}
|
|
1011
1017
|
if (result.messages.length > 0) {
|
|
1012
1018
|
const usedIds = /* @__PURE__ */ new Set();
|
|
1013
1019
|
for (const msg of result.messages) {
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-6OSGENN5.js";
|
|
4
4
|
import {
|
|
5
5
|
parseDgmoChartType
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I3ZRIMR7.js";
|
|
7
7
|
import {
|
|
8
8
|
FONT_FAMILY,
|
|
9
9
|
MONO_FAMILY
|
|
10
10
|
} from "./chunk-ICLB27PZ.js";
|
|
11
11
|
import {
|
|
12
12
|
chartTypes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FUYEXLAN.js";
|
|
14
14
|
import {
|
|
15
15
|
measureText,
|
|
16
16
|
truncateText
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-24YPR5EH.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutInlineHeader
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R5L5E3TC.js";
|
|
7
7
|
import {
|
|
8
8
|
TITLE_FONT_SIZE,
|
|
9
9
|
TITLE_FONT_WEIGHT,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-XCKNFFKM.js";
|
|
19
19
|
import {
|
|
20
20
|
renderIntegratedLegend
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PGD6CNWO.js";
|
|
22
22
|
import {
|
|
23
23
|
getLegendExtent,
|
|
24
24
|
getMaxLegendReservedHeight
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
isSequenceBlock,
|
|
28
28
|
isSequenceNote,
|
|
29
29
|
isSequenceSection
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JCC3B2GS.js";
|
|
31
31
|
import {
|
|
32
32
|
wrapDescriptionLines
|
|
33
33
|
} from "./chunk-7WEYXYLC.js";
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
resolveActiveTagGroup,
|
|
42
42
|
tagAttrKey
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
44
44
|
import {
|
|
45
45
|
fillModeFromOptions,
|
|
46
46
|
legendInlineRequested,
|
|
47
47
|
legendSuppressed
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-FUYEXLAN.js";
|
|
49
49
|
import {
|
|
50
50
|
legendChromeColors
|
|
51
51
|
} from "./chunk-UOCWYLYT.js";
|
|
@@ -907,6 +907,7 @@ function layoutSequencePass(parsed, containerWidth, options, fit) {
|
|
|
907
907
|
const clampStep = (i) => Math.min(Math.max(i, 0), lastStepIdx);
|
|
908
908
|
const activations = activationsOff ? [] : computeActivations(allRenderSteps).map((a) => {
|
|
909
909
|
const closingStep = allRenderSteps[a.endStep];
|
|
910
|
+
const openingStep = allRenderSteps[a.startStep];
|
|
910
911
|
return {
|
|
911
912
|
...a,
|
|
912
913
|
startStep: clampStep(allToFiltered[a.startStep] ?? 0),
|
|
@@ -914,7 +915,14 @@ function layoutSequencePass(parsed, containerWidth, options, fit) {
|
|
|
914
915
|
// True when the return that closes this bar was dropped from the
|
|
915
916
|
// layout, so `endStep` is not the bar's own event but whatever
|
|
916
917
|
// happens next. The bar has to stop short of it — see the render.
|
|
917
|
-
implicitEnd: closingStep !== void 0 && !stepSurvives(closingStep)
|
|
918
|
+
implicitEnd: closingStep !== void 0 && !stepSurvives(closingStep),
|
|
919
|
+
// True when nothing laid out follows the dropped return, so
|
|
920
|
+
// `endStep` clamps back onto the last step and the bar ends where
|
|
921
|
+
// a next step WOULD sit instead (#1436); a last unreturned call's
|
|
922
|
+
// bar used to draw 0 tall. Only for a bar whose own call is laid
|
|
923
|
+
// out: one opened inside a collapsed section clamps onto a step
|
|
924
|
+
// that is not its own, and stays the 0-tall bar it always was.
|
|
925
|
+
endsAfterLast: openingStep !== void 0 && stepSurvives(openingStep) && (allToFiltered[a.endStep] ?? 0) >= renderSteps.length
|
|
918
926
|
};
|
|
919
927
|
});
|
|
920
928
|
const stepSpacing = 35;
|
|
@@ -1247,7 +1255,8 @@ function layoutSequencePass(parsed, containerWidth, options, fit) {
|
|
|
1247
1255
|
}
|
|
1248
1256
|
});
|
|
1249
1257
|
for (const act of activations) {
|
|
1250
|
-
if (!act.implicitEnd || act.
|
|
1258
|
+
if (!act.implicitEnd || act.endsAfterLast) continue;
|
|
1259
|
+
if (act.endStep <= act.startStep) continue;
|
|
1251
1260
|
const step = renderSteps[act.endStep];
|
|
1252
1261
|
if (!step || step.from === step.to) continue;
|
|
1253
1262
|
if (step.from === act.participantId || step.to === act.participantId) {
|
|
@@ -1278,6 +1287,7 @@ function layoutSequencePass(parsed, containerWidth, options, fit) {
|
|
|
1278
1287
|
const stepYPositions = [];
|
|
1279
1288
|
const sectionYPositions = /* @__PURE__ */ new Map();
|
|
1280
1289
|
let layoutEndY;
|
|
1290
|
+
let stepsEndY;
|
|
1281
1291
|
{
|
|
1282
1292
|
let curY = lifelineStartY0 + messageStartOffset;
|
|
1283
1293
|
for (let i = 0; i < renderSteps.length; i++) {
|
|
@@ -1300,6 +1310,7 @@ function layoutSequencePass(parsed, containerWidth, options, fit) {
|
|
|
1300
1310
|
const isSelfCall = step.type === "call" && step.from === step.to;
|
|
1301
1311
|
curY += isSelfCall ? sSelfCallHeight + 25 : stepSpacing;
|
|
1302
1312
|
}
|
|
1313
|
+
stepsEndY = curY;
|
|
1303
1314
|
for (const sec of trailingSections) {
|
|
1304
1315
|
const bandPad = collapsedBandPad(sec);
|
|
1305
1316
|
curY += SECTION_TOP_PAD + bandPad;
|
|
@@ -1803,8 +1814,9 @@ function layoutSequencePass(parsed, containerWidth, options, fit) {
|
|
|
1803
1814
|
if (px === void 0) return null;
|
|
1804
1815
|
const x = px - sActivationWidth / 2 + act.depth * ACTIVATION_NEST_OFFSET;
|
|
1805
1816
|
const y1 = stepY(act.startStep);
|
|
1806
|
-
const rawY2 = stepY(act.endStep);
|
|
1807
|
-
const
|
|
1817
|
+
const rawY2 = act.endsAfterLast ? stepsEndY : stepY(act.endStep);
|
|
1818
|
+
const roomBefore = act.endsAfterLast ? 0 : labelRoomBefore[act.endStep];
|
|
1819
|
+
const implicitY2 = rawY2 - roomBefore - ACTIVATION_IMPLICIT_END_CLEARANCE;
|
|
1808
1820
|
const y2 = act.implicitEnd && implicitY2 > y1 + sActivationWidth ? implicitY2 : rawY2;
|
|
1809
1821
|
return { x, y: y1, width: sActivationWidth, height: y2 - y1 };
|
|
1810
1822
|
});
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stripDefaultModifier,
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
21
21
|
import {
|
|
22
22
|
AliasRegistry,
|
|
23
23
|
GANTT_BOOLEAN_SET,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
splitNameAndMeta,
|
|
33
33
|
warnUnknownMetaKeys,
|
|
34
34
|
withTagAliases
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FUYEXLAN.js";
|
|
36
36
|
import {
|
|
37
37
|
getSeriesColors
|
|
38
38
|
} from "./chunk-6GXLAKUH.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
NODE_LABEL_LINE_HEIGHT,
|
|
6
6
|
layoutGraph,
|
|
7
7
|
wrapNodeLabel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5GU6C5WB.js";
|
|
9
9
|
import {
|
|
10
10
|
appendArrowheadMarkers
|
|
11
11
|
} from "./chunk-XBJJP2HN.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
INLINE_HEADER_PAD,
|
|
23
23
|
layoutInlineHeader,
|
|
24
24
|
measureTitleWidth
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-R5L5E3TC.js";
|
|
26
26
|
import {
|
|
27
27
|
TITLE_FONT_SIZE,
|
|
28
28
|
TITLE_FONT_WEIGHT,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "./chunk-XCKNFFKM.js";
|
|
38
38
|
import {
|
|
39
39
|
parseFlowchart
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-H7RQG4PH.js";
|
|
41
41
|
import {
|
|
42
42
|
NOTE_BADGE_RADIUS,
|
|
43
43
|
noteConnectorPoints,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from "./chunk-ICLB27PZ.js";
|
|
51
51
|
import {
|
|
52
52
|
fillModeFromOptions
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-FUYEXLAN.js";
|
|
54
54
|
import {
|
|
55
55
|
measureText
|
|
56
56
|
} from "./chunk-KAO7JL4I.js";
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes,
|
|
6
6
|
tryCollectNote
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HH3DHNQA.js";
|
|
8
8
|
import {
|
|
9
9
|
displayName,
|
|
10
10
|
normalizeName
|
|
11
11
|
} from "./chunk-NOTA6TEI.js";
|
|
12
12
|
import {
|
|
13
13
|
isTagBlockHeading
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
15
15
|
import {
|
|
16
16
|
AliasRegistry,
|
|
17
17
|
OPTION_NOCOLON_RE,
|
|
18
18
|
measureIndent,
|
|
19
19
|
parseFirstLine,
|
|
20
20
|
tryParseSharedOption
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FUYEXLAN.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveColorWithDiagnostic
|
|
24
24
|
} from "./chunk-3J7O3CU6.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes,
|
|
6
6
|
tryCollectNote
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HH3DHNQA.js";
|
|
8
8
|
import {
|
|
9
9
|
displayName,
|
|
10
10
|
normalizeName
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames,
|
|
20
20
|
validateTagValues
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LGUFJ7Y2.js";
|
|
22
22
|
import {
|
|
23
23
|
AliasRegistry,
|
|
24
24
|
ER_REGISTRY,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
tryParseSharedOption,
|
|
33
33
|
warnUnknownMetaKeys,
|
|
34
34
|
withTagAliases
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FUYEXLAN.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveColorWithDiagnostic
|
|
38
38
|
} from "./chunk-3J7O3CU6.js";
|