@diagrammo/dgmo 0.75.0 → 0.76.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/dist/advanced.d.ts +40 -1
- package/dist/advanced.js +181 -19
- package/dist/block.css +20 -3
- package/dist/block.d.ts +10 -2
- package/dist/block.js +29 -12
- package/dist/chart-meta.js +6 -6
- package/dist/{chunk-LYLRNAX2.js → chunk-3EGIU5WY.js} +2 -2
- package/dist/{chunk-2NRIGEHZ.js → chunk-46KVXDUJ.js} +10 -3
- package/dist/{chunk-M3IVOGZE.js → chunk-4CRLM3IT.js} +26 -20
- package/dist/chunk-7IATMZSA.js +72 -0
- package/dist/{chunk-6DYZ2JM6.js → chunk-BZQCAZZZ.js} +203 -29
- package/dist/{chunk-ZMKCG3FT.js → chunk-C576CU77.js} +2 -2
- package/dist/{chunk-DSH7NJ2G.js → chunk-EGXJWRO6.js} +2 -2
- package/dist/{chunk-RT7ACF77.js → chunk-EGY3TS62.js} +6 -6
- package/dist/{chunk-TDHD3HNO.js → chunk-F4X5NVKY.js} +37 -16
- package/dist/{chunk-BFTRW24X.js → chunk-FMZEU7MF.js} +64 -23
- package/dist/{chunk-R5JPMW2F.js → chunk-FTTB64OJ.js} +5 -5
- package/dist/{chunk-IGQW7TKM.js → chunk-GFXFRKUG.js} +2 -2
- package/dist/{chunk-F4CPZRG2.js → chunk-JLJ7SP4X.js} +2 -2
- package/dist/{chunk-SUA56ZSB.js → chunk-LTTZX6RD.js} +6 -2
- package/dist/{chunk-GE5RO4BS.js → chunk-N6MZSBOL.js} +5 -1
- package/dist/{chunk-DU3OIBQE.js → chunk-NWNSXHA5.js} +6 -2
- package/dist/{chunk-QUYYL3LP.js → chunk-OBYZU23V.js} +4 -4
- package/dist/{chunk-XCAEHWQB.js → chunk-PAW4RMH3.js} +2 -2
- package/dist/{chunk-XFLLYY3V.js → chunk-TF76LCZS.js} +33 -49
- package/dist/{dgmo-router-KYNLRE7S.js → dgmo-router-A3LIHT6H.js} +7 -7
- package/dist/{dimensions-NLQ64ED5.js → dimensions-7NYBSZRJ.js} +3 -3
- package/dist/{flowchart-parser-LY5GGQL2.js → flowchart-parser-NVBP3C5D.js} +2 -2
- package/dist/{flowchart-renderer-RIJ5FZKO.js → flowchart-renderer-QYGQ64BM.js} +5 -5
- package/dist/index.js +8 -8
- package/dist/{layout-UJ62RQQ3.js → layout-2OJ25STS.js} +2 -2
- package/dist/{layout-DAYQ46PS.js → layout-LAS67TK3.js} +3 -3
- package/dist/{parser-LUOINP6H.js → parser-QYAIFXLP.js} +3 -3
- package/dist/{parser-L7RXUKYN.js → parser-WVE6SKB7.js} +2 -2
- package/dist/{parser-JYIZEKAS.js → parser-ZYAFHXKQ.js} +2 -2
- package/dist/{renderer-WDSBFDQ2.js → renderer-E6NHTVN6.js} +3 -3
- package/dist/{renderer-A2YWSBPY.js → renderer-F6WSR7UM.js} +3 -3
- package/dist/{renderer-UYYBJ7OB.js → renderer-IH45QV6Z.js} +9 -9
- package/dist/{renderer-73QHYZ2Q.js → renderer-LE3ZKHNS.js} +3 -3
- package/dist/{state-renderer-454ADT7E.js → state-renderer-UIE3AQM6.js} +4 -4
- package/docs/language-reference.md +3 -3
- package/package.json +2 -2
- package/dist/chunk-PDKUANDZ.js +0 -35
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mapContentAspect,
|
|
3
3
|
mapExportDimensions
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-JLJ7SP4X.js";
|
|
5
|
+
import "./chunk-FMZEU7MF.js";
|
|
6
6
|
import "./chunk-4QV26TEG.js";
|
|
7
7
|
import "./chunk-L65WI4HO.js";
|
|
8
8
|
import "./chunk-DEW62ON3.js";
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
mapContentAspect,
|
|
20
20
|
mapExportDimensions
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=dimensions-
|
|
22
|
+
//# sourceMappingURL=dimensions-7NYBSZRJ.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
extractSymbols,
|
|
3
3
|
looksLikeFlowchart,
|
|
4
4
|
parseFlowchart
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NWNSXHA5.js";
|
|
6
6
|
import "./chunk-7TF3QOOD.js";
|
|
7
7
|
import "./chunk-NXMESY4J.js";
|
|
8
8
|
import "./chunk-76NHL5UG.js";
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
looksLikeFlowchart,
|
|
19
19
|
parseFlowchart
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=flowchart-parser-
|
|
21
|
+
//# sourceMappingURL=flowchart-parser-NVBP3C5D.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderFlowchart,
|
|
3
3
|
renderFlowchartForExport
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-OBYZU23V.js";
|
|
5
|
+
import "./chunk-7IATMZSA.js";
|
|
6
|
+
import "./chunk-N6MZSBOL.js";
|
|
7
7
|
import "./chunk-LP7EC4MI.js";
|
|
8
8
|
import "./chunk-Q74GP3GK.js";
|
|
9
9
|
import "./chunk-6EK55ART.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-RU2HHHYA.js";
|
|
|
17
17
|
import "./chunk-DEW62ON3.js";
|
|
18
18
|
import "./chunk-UTCPNJND.js";
|
|
19
19
|
import "./chunk-MTGGOCND.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-NWNSXHA5.js";
|
|
21
21
|
import "./chunk-7TF3QOOD.js";
|
|
22
22
|
import "./chunk-NXMESY4J.js";
|
|
23
23
|
import "./chunk-76NHL5UG.js";
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
renderFlowchart,
|
|
34
34
|
renderFlowchartForExport
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=flowchart-renderer-
|
|
36
|
+
//# sourceMappingURL=flowchart-renderer-QYGQ64BM.js.map
|
package/dist/index.js
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk-SQAG3UXH.js";
|
|
12
12
|
import {
|
|
13
13
|
render
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4CRLM3IT.js";
|
|
15
15
|
import {
|
|
16
16
|
renderErrorCard
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PAW4RMH3.js";
|
|
18
18
|
import {
|
|
19
19
|
MAP_DIAGNOSTICS
|
|
20
20
|
} from "./chunk-EOYPX6SF.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk-U7VO6JAA.js";
|
|
43
43
|
import {
|
|
44
44
|
parseDgmo
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-FTTB64OJ.js";
|
|
46
46
|
import "./chunk-SH4PPRU7.js";
|
|
47
47
|
import "./chunk-A2RUBBVT.js";
|
|
48
48
|
import "./chunk-5PFNUDXR.js";
|
|
@@ -67,10 +67,10 @@ import "./chunk-Z7KVOVE4.js";
|
|
|
67
67
|
import "./chunk-WFA6IULY.js";
|
|
68
68
|
import "./chunk-BWJLLNUX.js";
|
|
69
69
|
import "./chunk-KRTLS3G6.js";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-F4X5NVKY.js";
|
|
71
71
|
import {
|
|
72
72
|
SKETCH_DIAGNOSTICS
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-EGY3TS62.js";
|
|
74
74
|
import {
|
|
75
75
|
SWIMLANE_DIAGNOSTICS
|
|
76
76
|
} from "./chunk-W7UBPARG.js";
|
|
@@ -94,19 +94,19 @@ import {
|
|
|
94
94
|
} from "./chunk-7BMX2M3F.js";
|
|
95
95
|
import "./chunk-3SP6G4LN.js";
|
|
96
96
|
import "./chunk-ZM27UI5O.js";
|
|
97
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-46KVXDUJ.js";
|
|
98
98
|
import "./chunk-TPN7RJOM.js";
|
|
99
99
|
import "./chunk-EQW6HOP4.js";
|
|
100
100
|
import "./chunk-DAOFNU6J.js";
|
|
101
101
|
import "./chunk-7NSNE52V.js";
|
|
102
102
|
import "./chunk-C3Z4DX3V.js";
|
|
103
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-NWNSXHA5.js";
|
|
104
104
|
import {
|
|
105
105
|
GRAPH_DIAGNOSTICS
|
|
106
106
|
} from "./chunk-7TF3QOOD.js";
|
|
107
107
|
import "./chunk-M5JT2AU7.js";
|
|
108
108
|
import "./chunk-NXMESY4J.js";
|
|
109
|
-
import "./chunk-
|
|
109
|
+
import "./chunk-LTTZX6RD.js";
|
|
110
110
|
import "./chunk-ICVIJLBA.js";
|
|
111
111
|
import "./chunk-76NHL5UG.js";
|
|
112
112
|
import "./chunk-E6PNTYRK.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutGraph
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N6MZSBOL.js";
|
|
4
4
|
import "./chunk-6EK55ART.js";
|
|
5
5
|
import "./chunk-MU3CJPJF.js";
|
|
6
6
|
import "./chunk-5DH3KYFH.js";
|
|
@@ -18,4 +18,4 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
18
18
|
export {
|
|
19
19
|
layoutGraph
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=layout-
|
|
21
|
+
//# sourceMappingURL=layout-2OJ25STS.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SKETCH_AUTO_LAYOUT_DEFAULTS,
|
|
3
3
|
layoutSketch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-BZQCAZZZ.js";
|
|
5
|
+
import "./chunk-EGY3TS62.js";
|
|
6
6
|
import "./chunk-5SI6T5A5.js";
|
|
7
7
|
import "./chunk-5WRI5ZAA.js";
|
|
8
8
|
export {
|
|
9
9
|
SKETCH_AUTO_LAYOUT_DEFAULTS,
|
|
10
10
|
layoutSketch
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=layout-
|
|
12
|
+
//# sourceMappingURL=layout-LAS67TK3.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSketch
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-F4X5NVKY.js";
|
|
4
|
+
import "./chunk-EGY3TS62.js";
|
|
5
5
|
import "./chunk-IHOFUR74.js";
|
|
6
6
|
import "./chunk-NOTA6TEI.js";
|
|
7
7
|
import "./chunk-76LHNLGX.js";
|
|
@@ -12,4 +12,4 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
12
12
|
export {
|
|
13
13
|
parseSketch
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=parser-
|
|
15
|
+
//# sourceMappingURL=parser-QYAIFXLP.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
INFRA_TOP_LEVEL_OPTIONS,
|
|
3
3
|
extractSymbols,
|
|
4
4
|
parseInfra
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-46KVXDUJ.js";
|
|
6
6
|
import "./chunk-7TF3QOOD.js";
|
|
7
7
|
import "./chunk-IHOFUR74.js";
|
|
8
8
|
import "./chunk-IYULMRBE.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
extractSymbols,
|
|
18
18
|
parseInfra
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=parser-
|
|
20
|
+
//# sourceMappingURL=parser-WVE6SKB7.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
extractSymbols,
|
|
3
3
|
looksLikeClassDiagram,
|
|
4
4
|
parseClassDiagram
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LTTZX6RD.js";
|
|
6
6
|
import "./chunk-76NHL5UG.js";
|
|
7
7
|
import "./chunk-E6PNTYRK.js";
|
|
8
8
|
import "./chunk-IHOFUR74.js";
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
looksLikeClassDiagram,
|
|
17
17
|
parseClassDiagram
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=parser-
|
|
19
|
+
//# sourceMappingURL=parser-ZYAFHXKQ.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
computeInfraLegendGroups,
|
|
3
3
|
parseAndLayoutInfra,
|
|
4
4
|
renderInfra
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GFXFRKUG.js";
|
|
6
6
|
import "./chunk-ICZ7M6IZ.js";
|
|
7
7
|
import "./chunk-VS2M72PF.js";
|
|
8
8
|
import "./chunk-WGC42WJU.js";
|
|
@@ -15,7 +15,7 @@ import "./chunk-4SXHMFFP.js";
|
|
|
15
15
|
import "./chunk-UTCPNJND.js";
|
|
16
16
|
import "./chunk-YT5ICQ4R.js";
|
|
17
17
|
import "./chunk-MTGGOCND.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-46KVXDUJ.js";
|
|
19
19
|
import "./chunk-7TF3QOOD.js";
|
|
20
20
|
import "./chunk-IHOFUR74.js";
|
|
21
21
|
import "./chunk-IYULMRBE.js";
|
|
@@ -31,4 +31,4 @@ export {
|
|
|
31
31
|
parseAndLayoutInfra,
|
|
32
32
|
renderInfra
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=renderer-
|
|
34
|
+
//# sourceMappingURL=renderer-E6NHTVN6.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderClassDiagram,
|
|
3
3
|
renderClassDiagramForExport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C576CU77.js";
|
|
5
5
|
import "./chunk-LM3HY3VG.js";
|
|
6
6
|
import "./chunk-Q74GP3GK.js";
|
|
7
7
|
import "./chunk-OWVDD5EC.js";
|
|
@@ -21,7 +21,7 @@ import "./chunk-4SXHMFFP.js";
|
|
|
21
21
|
import "./chunk-UTCPNJND.js";
|
|
22
22
|
import "./chunk-YT5ICQ4R.js";
|
|
23
23
|
import "./chunk-MTGGOCND.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-LTTZX6RD.js";
|
|
25
25
|
import "./chunk-76NHL5UG.js";
|
|
26
26
|
import "./chunk-E6PNTYRK.js";
|
|
27
27
|
import "./chunk-IHOFUR74.js";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
renderClassDiagram,
|
|
37
37
|
renderClassDiagramForExport
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=renderer-
|
|
39
|
+
//# sourceMappingURL=renderer-F6WSR7UM.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderLiveLinkCard
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3EGIU5WY.js";
|
|
4
|
+
import "./chunk-PAW4RMH3.js";
|
|
5
5
|
import "./chunk-UTCPNJND.js";
|
|
6
6
|
import "./chunk-MTGGOCND.js";
|
|
7
7
|
import "./chunk-U7VO6JAA.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-FTTB64OJ.js";
|
|
9
9
|
import "./chunk-SH4PPRU7.js";
|
|
10
10
|
import "./chunk-A2RUBBVT.js";
|
|
11
11
|
import "./chunk-5PFNUDXR.js";
|
|
@@ -26,8 +26,8 @@ import "./chunk-Z7KVOVE4.js";
|
|
|
26
26
|
import "./chunk-WFA6IULY.js";
|
|
27
27
|
import "./chunk-BWJLLNUX.js";
|
|
28
28
|
import "./chunk-KRTLS3G6.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-F4X5NVKY.js";
|
|
30
|
+
import "./chunk-EGY3TS62.js";
|
|
31
31
|
import "./chunk-W7UBPARG.js";
|
|
32
32
|
import "./chunk-S5P5Z5Y5.js";
|
|
33
33
|
import "./chunk-QQJUTGQH.js";
|
|
@@ -41,17 +41,17 @@ import "./chunk-UCZBRGJN.js";
|
|
|
41
41
|
import "./chunk-7BMX2M3F.js";
|
|
42
42
|
import "./chunk-3SP6G4LN.js";
|
|
43
43
|
import "./chunk-ZM27UI5O.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-46KVXDUJ.js";
|
|
45
45
|
import "./chunk-TPN7RJOM.js";
|
|
46
46
|
import "./chunk-EQW6HOP4.js";
|
|
47
47
|
import "./chunk-DAOFNU6J.js";
|
|
48
48
|
import "./chunk-7NSNE52V.js";
|
|
49
49
|
import "./chunk-C3Z4DX3V.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-NWNSXHA5.js";
|
|
51
51
|
import "./chunk-7TF3QOOD.js";
|
|
52
52
|
import "./chunk-M5JT2AU7.js";
|
|
53
53
|
import "./chunk-NXMESY4J.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-LTTZX6RD.js";
|
|
55
55
|
import "./chunk-ICVIJLBA.js";
|
|
56
56
|
import "./chunk-76NHL5UG.js";
|
|
57
57
|
import "./chunk-E6PNTYRK.js";
|
|
@@ -73,4 +73,4 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
73
73
|
export {
|
|
74
74
|
renderLiveLinkCard
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=renderer-
|
|
76
|
+
//# sourceMappingURL=renderer-IH45QV6Z.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderMap,
|
|
3
3
|
renderMapForExport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EGXJWRO6.js";
|
|
5
5
|
import "./chunk-MS5574I7.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-FMZEU7MF.js";
|
|
7
7
|
import "./chunk-4QV26TEG.js";
|
|
8
8
|
import "./chunk-L65WI4HO.js";
|
|
9
9
|
import "./chunk-DEW62ON3.js";
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
renderMap,
|
|
25
25
|
renderMapForExport
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=renderer-
|
|
27
|
+
//# sourceMappingURL=renderer-LE3ZKHNS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderState,
|
|
3
3
|
renderStateForExport
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TF76LCZS.js";
|
|
5
|
+
import "./chunk-7IATMZSA.js";
|
|
6
|
+
import "./chunk-N6MZSBOL.js";
|
|
7
7
|
import "./chunk-LP7EC4MI.js";
|
|
8
8
|
import "./chunk-Q74GP3GK.js";
|
|
9
9
|
import "./chunk-6EK55ART.js";
|
|
@@ -37,4 +37,4 @@ export {
|
|
|
37
37
|
renderState,
|
|
38
38
|
renderStateForExport
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=state-renderer-
|
|
40
|
+
//# sourceMappingURL=state-renderer-UIE3AQM6.js.map
|
|
@@ -3767,7 +3767,7 @@ In the desktop app a block diagram is interactive: click a container header to c
|
|
|
3767
3767
|
**Beta — expect rough edges and syntax changes.**
|
|
3768
3768
|
|
|
3769
3769
|
<!-- TIPS start -->
|
|
3770
|
-
**Styling tips:** Sketch is a GUI-authored format — the desktop and web canvas editors generate this markup, so hand-writing it is the exception. If you generate it anyway: keep it SMALL (sketches read best under ~15 shapes), and either omit `at:` everywhere (shapes flow into rows) or use integer half-slot coordinates with shapes at least
|
|
3770
|
+
**Styling tips:** Sketch is a GUI-authored format — the desktop and web canvas editors generate this markup, so hand-writing it is the exception. If you generate it anyway: keep it SMALL (sketches read best under ~15 shapes), and either omit `at:` everywhere (shapes flow into rows) or use integer half-slot coordinates with shapes **at least 3 half-slots apart** on one axis (a footprint spans 2 half-units and the mandatory gap adds 1 more, so each shape claims a 3×3 block; 2 apart overlaps). A `[Box]` may hold another `[Box]`, to **depth 2** — a third level is refused and its shapes join the box above it. Alias any shape an edge references (`as con`). Never write `size:`, colors, fonts, or a `shape:` outside the closed set (database, queue, cloud, person, document, note). In sketch, `~` dashed means secondary emphasis, NOT async. Categorize with a tag group instead of reaching for more shape kinds — kind-of-thing is meaning, and meaning lives in tags. Reach for `sketch` when the drawing itself is the content; reach for `boxes-and-lines` when topology should auto-lay-out.
|
|
3771
3771
|
<!-- TIPS end -->
|
|
3772
3772
|
|
|
3773
3773
|
A **GUI-first constrained canvas**: uniformly-sized shapes placed freely on a snap grid, arrows between them, meaning through tags. The renderer owns all styling — authors own placement, connection, naming, and tags. Every shape has ONE universal footprint (no resizing); text always fits (shrink → smart-wrap → `…`). Pick `sketch` when the spatial arrangement is yours to decide; pick `boxes-and-lines` when topology should auto-lay-out.
|
|
@@ -4285,7 +4285,7 @@ poi Austin red # direct marker color (trailing token, §1.5
|
|
|
4285
4285
|
```
|
|
4286
4286
|
|
|
4287
4287
|
- **Coordinates are positional** — two leading signed numbers (lat then lon); cities never start with a number.
|
|
4288
|
-
- `size:` scales marker area (use `poi-size <label>` for the legend key). A trailing color (`poi Austin red`) sets the marker fill directly — winning over a tag color and the default
|
|
4288
|
+
- `size:` scales marker area (use `poi-size <label>` for the legend key). A trailing color (`poi Austin red`) sets the marker fill directly — winning over a tag color and over the orange fallback. A POI that names no value for a tag group other POIs use takes that group's default value (the entry marked `default`, else the first) and is colored as that category — the same assumption a region makes. Orange is the fill only where there is no such group; a group used solely on connector lines never colors a marker. POI properties: `label`, `size`, `style`, applied tag alias, `as`, `clock`. No `icon` in v1.
|
|
4289
4289
|
- Coord-positioned or relabeled POIs take `as <alias>` for route/edge references; named POIs are referenced by name.
|
|
4290
4290
|
|
|
4291
4291
|
### Local-time cards (`clock`)
|
|
@@ -4309,7 +4309,7 @@ poi 1.29 103.85 as SG clock: Asia/Singapore # bare-coord pin names its zone
|
|
|
4309
4309
|
|
|
4310
4310
|
### Routes & connectors
|
|
4311
4311
|
|
|
4312
|
-
`route <origin>` — an ordered, auto-numbered voyage; the origin gets a distinct marker, and the header takes **no shape option**. Each indented line is a `<arrow> destination` leg that continues from the previous stop, using the same indented arrow idiom as a sitemap — a leg is an edge (in-arrow label, `width:` thickness, and the **arrow glyph alone sets shape**: `-…->` straight, `~…~>` arc, mixable per leg). The **arrow is required and must be directional** — a bare destination errors, and so does an undirected `--`/`~~` glyph (a voyage always flows forward; use `->`/`~>`). A **tag on a leg colours the LINE** (categorical leg-type colouring — flights vs cruises vs trains); `label:`/`as` still name the destination stop. Repeat the origin as a leg's destination to close a loop (no second marker):
|
|
4312
|
+
`route <origin>` — an ordered, auto-numbered voyage; the origin gets a distinct marker, and the header takes **no shape option**. Each indented line is a `<arrow> destination` leg that continues from the previous stop, using the same indented arrow idiom as a sitemap — a leg is an edge (in-arrow label, `width:` thickness, and the **arrow glyph alone sets shape**: `-…->` straight, `~…~>` arc, mixable per leg). The **arrow is required and must be directional** — a bare destination errors, and so does an undirected `--`/`~~` glyph (a voyage always flows forward; use `->`/`~>`). A **tag on a leg colours the LINE** (categorical leg-type colouring — flights vs cruises vs trains), and a leg naming no value for a group other legs use takes that group's default value; `label:`/`as` still name the destination stop. Repeat the origin as a leg's destination to close a loop (no second marker):
|
|
4313
4313
|
|
|
4314
4314
|
```
|
|
4315
4315
|
route Miami
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diagrammo/dgmo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0",
|
|
4
4
|
"description": "DGMO diagram markup language — parser, renderer, and color system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Diagrammo LLC",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"fonts": "node scripts/build-fonts.mjs",
|
|
87
87
|
"metrics": "node scripts/build-text-metrics.mjs",
|
|
88
88
|
"prebuild": "rm -rf dist && pnpm codegen && pnpm fonts && pnpm metrics",
|
|
89
|
-
"build": "DGMO_DEV_RELOAD=1 tsup
|
|
89
|
+
"build": "DGMO_DEV_RELOAD=1 tsup",
|
|
90
90
|
"typecheck": "tsc --noEmit",
|
|
91
91
|
"predev": "pnpm fonts",
|
|
92
92
|
"dev": "DGMO_DEV_RELOAD=1 tsup --watch",
|
package/dist/chunk-PDKUANDZ.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// src/utils/fit-canvas.ts
|
|
2
|
-
function fitDiagramToCanvas(p) {
|
|
3
|
-
const scaleX = (p.width - p.padding * 2) / p.diagramW;
|
|
4
|
-
let scale;
|
|
5
|
-
let canvasHeight;
|
|
6
|
-
if (p.exportMode) {
|
|
7
|
-
scale = Math.min(p.maxScale, scaleX);
|
|
8
|
-
canvasHeight = p.titleHeight + p.diagramH * scale + p.padding * 2;
|
|
9
|
-
} else {
|
|
10
|
-
const availH = p.height - p.titleHeight;
|
|
11
|
-
const scaleY = (availH - p.padding * 2) / p.diagramH;
|
|
12
|
-
scale = Math.min(p.maxScale, scaleX, scaleY);
|
|
13
|
-
canvasHeight = p.height;
|
|
14
|
-
}
|
|
15
|
-
const scaledW = p.diagramW * scale;
|
|
16
|
-
return {
|
|
17
|
-
scale,
|
|
18
|
-
offsetX: (p.width - scaledW) / 2,
|
|
19
|
-
offsetY: p.titleHeight + p.padding,
|
|
20
|
-
canvasHeight
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// src/graph/edge-spline.ts
|
|
25
|
-
import * as d3Shape from "d3-shape";
|
|
26
|
-
var lineGenerator = d3Shape.line().x((d) => d.x).y((d) => d.y).curve(d3Shape.curveBasis);
|
|
27
|
-
function edgeSplinePath(points) {
|
|
28
|
-
return lineGenerator(points);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
fitDiagramToCanvas,
|
|
33
|
-
edgeSplinePath
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=chunk-PDKUANDZ.js.map
|