@diagrammo/dgmo 0.8.3 ā 0.8.4
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/.claude/commands/dgmo-diagram-this.md +60 -0
- package/.claude/commands/dgmo-document-project.md +128 -0
- package/.claude/commands/dgmo.md +185 -50
- package/.cursorrules +32 -37
- package/.github/copilot-instructions.md +35 -44
- package/.windsurfrules +32 -37
- package/README.md +4 -4
- package/dist/cli.cjs +153 -153
- package/dist/editor.cjs +336 -0
- package/dist/editor.cjs.map +1 -0
- package/dist/editor.d.cts +27 -0
- package/dist/editor.d.ts +27 -0
- package/dist/editor.js +305 -0
- package/dist/editor.js.map +1 -0
- package/dist/index.cjs +3336 -1055
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3336 -1055
- package/dist/index.js.map +1 -1
- package/docs/language-reference.md +30 -29
- package/gallery/fixtures/arc.dgmo +18 -0
- package/gallery/fixtures/area.dgmo +19 -0
- package/gallery/fixtures/bar-stacked.dgmo +10 -0
- package/gallery/fixtures/bar.dgmo +10 -0
- package/gallery/fixtures/c4-full.dgmo +52 -0
- package/gallery/fixtures/c4.dgmo +17 -0
- package/gallery/fixtures/chord.dgmo +12 -0
- package/gallery/fixtures/class-basic.dgmo +14 -0
- package/gallery/fixtures/class-full.dgmo +43 -0
- package/gallery/fixtures/doughnut.dgmo +8 -0
- package/gallery/fixtures/flowchart-basic.dgmo +3 -0
- package/gallery/fixtures/flowchart-colors.dgmo +5 -0
- package/gallery/fixtures/flowchart-complex.dgmo +17 -0
- package/gallery/fixtures/flowchart-decision.dgmo +5 -0
- package/gallery/fixtures/flowchart-full.dgmo +13 -0
- package/gallery/fixtures/flowchart-groups.dgmo +10 -0
- package/gallery/fixtures/flowchart-loop.dgmo +7 -0
- package/gallery/fixtures/flowchart-nested.dgmo +7 -0
- package/gallery/fixtures/flowchart-shapes.dgmo +5 -0
- package/gallery/fixtures/function.dgmo +8 -0
- package/gallery/fixtures/funnel.dgmo +7 -0
- package/gallery/fixtures/gantt-full.dgmo +49 -0
- package/gallery/fixtures/gantt.dgmo +42 -0
- package/gallery/fixtures/heatmap.dgmo +8 -0
- package/gallery/fixtures/infra-full.dgmo +78 -0
- package/gallery/fixtures/infra-overload.dgmo +25 -0
- package/gallery/fixtures/infra.dgmo +47 -0
- package/gallery/fixtures/initiative-status-full.dgmo +46 -0
- package/gallery/fixtures/initiative-status-phases.dgmo +29 -0
- package/gallery/fixtures/initiative-status.dgmo +9 -0
- package/gallery/fixtures/line.dgmo +19 -0
- package/gallery/fixtures/multi-line.dgmo +11 -0
- package/gallery/fixtures/org-basic.dgmo +16 -0
- package/gallery/fixtures/org-full.dgmo +69 -0
- package/gallery/fixtures/org-teams.dgmo +25 -0
- package/gallery/fixtures/pie.dgmo +9 -0
- package/gallery/fixtures/polar-area.dgmo +8 -0
- package/gallery/fixtures/quadrant.dgmo +18 -0
- package/gallery/fixtures/radar.dgmo +8 -0
- package/gallery/fixtures/sankey.dgmo +31 -0
- package/gallery/fixtures/scatter.dgmo +21 -0
- package/gallery/fixtures/sequence-tags-protocols.dgmo +45 -0
- package/gallery/fixtures/sequence-tags.dgmo +41 -0
- package/gallery/fixtures/sequence.dgmo +35 -0
- package/gallery/fixtures/sitemap-basic.dgmo +12 -0
- package/gallery/fixtures/sitemap-full.dgmo +156 -0
- package/gallery/fixtures/slope.dgmo +8 -0
- package/gallery/fixtures/spr-eras.dgmo +62 -0
- package/gallery/fixtures/state.dgmo +30 -0
- package/gallery/fixtures/timeline-intraday.dgmo +14 -0
- package/gallery/fixtures/timeline.dgmo +32 -0
- package/gallery/fixtures/venn.dgmo +10 -0
- package/gallery/fixtures/wordcloud.dgmo +24 -0
- package/package.json +51 -2
- package/src/c4/layout.ts +372 -90
- package/src/c4/parser.ts +100 -55
- package/src/chart.ts +91 -28
- package/src/class/parser.ts +41 -12
- package/src/cli.ts +168 -61
- package/src/completion.ts +378 -183
- package/src/d3.ts +887 -288
- package/src/dgmo-mermaid.ts +16 -13
- package/src/dgmo-router.ts +69 -23
- package/src/echarts.ts +646 -153
- package/src/editor/dgmo.grammar +69 -0
- package/src/editor/dgmo.grammar.d.ts +2 -0
- package/src/editor/dgmo.grammar.js +18 -0
- package/src/editor/dgmo.grammar.terms.d.ts +5 -0
- package/src/editor/dgmo.grammar.terms.js +35 -0
- package/src/editor/highlight.ts +36 -0
- package/src/editor/index.ts +28 -0
- package/src/editor/keywords.ts +220 -0
- package/src/editor/tokens.ts +30 -0
- package/src/er/parser.ts +48 -14
- package/src/er/renderer.ts +112 -53
- package/src/gantt/calculator.ts +91 -29
- package/src/gantt/parser.ts +197 -71
- package/src/gantt/renderer.ts +1120 -350
- package/src/graph/flowchart-parser.ts +46 -25
- package/src/graph/state-parser.ts +47 -17
- package/src/infra/parser.ts +157 -53
- package/src/infra/renderer.ts +723 -271
- package/src/initiative-status/parser.ts +138 -44
- package/src/kanban/parser.ts +25 -14
- package/src/org/layout.ts +111 -44
- package/src/org/parser.ts +69 -22
- package/src/palettes/index.ts +3 -2
- package/src/sequence/parser.ts +193 -61
- package/src/sitemap/parser.ts +65 -29
- package/src/utils/arrows.ts +2 -22
- package/src/utils/duration.ts +39 -21
- package/src/utils/legend-constants.ts +0 -2
- package/src/utils/parsing.ts +75 -31
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
line U.S. Strategic Petroleum Reserve
|
|
2
|
+
y-label Million Barrels
|
|
3
|
+
|
|
4
|
+
era '77 -> '81 Carter (blue)
|
|
5
|
+
era '81 -> '89 Reagan (red)
|
|
6
|
+
era '89 -> '93 Bush (red)
|
|
7
|
+
era '93 -> '01 Clinton (blue)
|
|
8
|
+
era '01 -> '09 Bush (red)
|
|
9
|
+
era '09 -> '17 Obama (blue)
|
|
10
|
+
era '17 -> '21 Trump (red)
|
|
11
|
+
era '21 -> '25 Biden (blue)
|
|
12
|
+
era '25 -> '25 Trump (red)
|
|
13
|
+
|
|
14
|
+
'77 7
|
|
15
|
+
'78 67
|
|
16
|
+
'79 91
|
|
17
|
+
'80 108
|
|
18
|
+
'81 230
|
|
19
|
+
'82 294
|
|
20
|
+
'83 379
|
|
21
|
+
'84 451
|
|
22
|
+
'85 493
|
|
23
|
+
'86 512
|
|
24
|
+
'87 541
|
|
25
|
+
'88 560
|
|
26
|
+
'89 580
|
|
27
|
+
'90 586
|
|
28
|
+
'91 569
|
|
29
|
+
'92 575
|
|
30
|
+
'93 587
|
|
31
|
+
'94 592
|
|
32
|
+
'95 592
|
|
33
|
+
'96 566
|
|
34
|
+
'97 563
|
|
35
|
+
'98 571
|
|
36
|
+
'99 567
|
|
37
|
+
'00 541
|
|
38
|
+
'01 550
|
|
39
|
+
'02 599
|
|
40
|
+
'03 638
|
|
41
|
+
'04 676
|
|
42
|
+
'05 685
|
|
43
|
+
'06 689
|
|
44
|
+
'07 697
|
|
45
|
+
'08 702
|
|
46
|
+
'09 727
|
|
47
|
+
'10 727
|
|
48
|
+
'11 696
|
|
49
|
+
'12 695
|
|
50
|
+
'13 696
|
|
51
|
+
'14 691
|
|
52
|
+
'15 695
|
|
53
|
+
'16 695
|
|
54
|
+
'17 663
|
|
55
|
+
'18 649
|
|
56
|
+
'19 635
|
|
57
|
+
'20 638
|
|
58
|
+
'21 594
|
|
59
|
+
'22 372
|
|
60
|
+
'23 355
|
|
61
|
+
'24 394
|
|
62
|
+
'25 413
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
state Order Lifecycle
|
|
2
|
+
|
|
3
|
+
[*] -> Pending
|
|
4
|
+
|
|
5
|
+
Pending
|
|
6
|
+
-submit-> Validating
|
|
7
|
+
|
|
8
|
+
Validating
|
|
9
|
+
-approved-> Processing
|
|
10
|
+
-rejected-> Cancelled
|
|
11
|
+
|
|
12
|
+
[Fulfillment]
|
|
13
|
+
Processing
|
|
14
|
+
-pack-> Shipping
|
|
15
|
+
-out of stock-> Cancelled
|
|
16
|
+
|
|
17
|
+
Shipping
|
|
18
|
+
-delivered-> Delivered
|
|
19
|
+
-lost-> Refunded
|
|
20
|
+
|
|
21
|
+
[Resolution]
|
|
22
|
+
Delivered
|
|
23
|
+
-return request-> Returning
|
|
24
|
+
|
|
25
|
+
Returning
|
|
26
|
+
-received-> Refunded
|
|
27
|
+
|
|
28
|
+
Cancelled -> [*]
|
|
29
|
+
Refunded -> [*]
|
|
30
|
+
Delivered -> [*]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
gantt Conference Day 1
|
|
2
|
+
start 2024-06-15 08:00
|
|
3
|
+
|
|
4
|
+
30min Registration
|
|
5
|
+
1.5h Opening Keynote
|
|
6
|
+
15min Break
|
|
7
|
+
parallel
|
|
8
|
+
1h Track A - Workshop
|
|
9
|
+
1h Track B - Panel
|
|
10
|
+
30min Lunch
|
|
11
|
+
2h Afternoon Sessions
|
|
12
|
+
|
|
13
|
+
marker 2024-06-15 12:30 Lunch
|
|
14
|
+
era 2024-06-15 08:00 -> 2024-06-15 09:30 Morning Block
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
timeline Product Roadmap 2024-2025
|
|
2
|
+
sort tag:Team
|
|
3
|
+
|
|
4
|
+
tag Team alias t
|
|
5
|
+
Engineering(blue)
|
|
6
|
+
Design(purple)
|
|
7
|
+
Product(green)
|
|
8
|
+
|
|
9
|
+
era 2024-01 -> 2024-06 Phase 1 - Foundation
|
|
10
|
+
era 2024-07 -> 2024-12 Phase 2 - Growth
|
|
11
|
+
era 2025-01 -> 2025-06 Phase 3 - Scale
|
|
12
|
+
|
|
13
|
+
marker 2024-03 Beta Launch
|
|
14
|
+
marker 2024-09 GA Release
|
|
15
|
+
marker 2025-01 Series A
|
|
16
|
+
|
|
17
|
+
2024-01->2024-03 Core API Development | t: Engineering
|
|
18
|
+
2024-02->2024-05 Auth & Permissions | t: Engineering
|
|
19
|
+
2024-04->2024-07 Real-time Features | t: Engineering
|
|
20
|
+
2024-08->2024-11 Performance Optimization | t: Engineering
|
|
21
|
+
2025-01->2025-04 Multi-region Deploy | t: Engineering
|
|
22
|
+
|
|
23
|
+
2024-01->2024-02 Design System v1 | t: Design
|
|
24
|
+
2024-03->2024-05 User Research | t: Design
|
|
25
|
+
2024-06->2024-08 Design System v2 | t: Design
|
|
26
|
+
2024-09->2024-11 Accessibility Audit | t: Design
|
|
27
|
+
2025-02->2025-05 Mobile Redesign | t: Design
|
|
28
|
+
|
|
29
|
+
2024-02 Competitor Analysis | t: Product
|
|
30
|
+
2024-06 User Survey | t: Product
|
|
31
|
+
2024-10 Pricing Strategy | t: Product
|
|
32
|
+
2025-01->2025-03 Enterprise Features | t: Product
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
wordcloud Tech Conference Topics
|
|
2
|
+
|
|
3
|
+
Kubernetes 95
|
|
4
|
+
Machine Learning 88
|
|
5
|
+
Microservices 72
|
|
6
|
+
DevOps 68
|
|
7
|
+
Serverless 55
|
|
8
|
+
GraphQL 48
|
|
9
|
+
TypeScript 82
|
|
10
|
+
Rust 62
|
|
11
|
+
WebAssembly 45
|
|
12
|
+
Edge Computing 38
|
|
13
|
+
Observability 52
|
|
14
|
+
Platform Engineering 60
|
|
15
|
+
AI Agents 90
|
|
16
|
+
LLM 85
|
|
17
|
+
RAG 70
|
|
18
|
+
Vector Database 58
|
|
19
|
+
Terraform 42
|
|
20
|
+
Docker 65
|
|
21
|
+
GitOps 35
|
|
22
|
+
Zero Trust 30
|
|
23
|
+
Service Mesh 28
|
|
24
|
+
eBPF 25
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diagrammo/dgmo",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "DGMO diagram markup language ā parser, renderer, and color system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,12 +20,23 @@
|
|
|
20
20
|
"types": "./dist/index.d.cts",
|
|
21
21
|
"default": "./dist/index.cjs"
|
|
22
22
|
}
|
|
23
|
+
},
|
|
24
|
+
"./editor": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/editor.d.ts",
|
|
27
|
+
"default": "./dist/editor.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/editor.d.cts",
|
|
31
|
+
"default": "./dist/editor.cjs"
|
|
32
|
+
}
|
|
23
33
|
}
|
|
24
34
|
},
|
|
25
35
|
"files": [
|
|
26
36
|
"dist",
|
|
27
37
|
"src",
|
|
28
38
|
"docs",
|
|
39
|
+
"gallery/fixtures",
|
|
29
40
|
".claude/commands",
|
|
30
41
|
".github/copilot-instructions.md",
|
|
31
42
|
".cursorrules",
|
|
@@ -34,15 +45,23 @@
|
|
|
34
45
|
],
|
|
35
46
|
"sideEffects": false,
|
|
36
47
|
"scripts": {
|
|
48
|
+
"prebuild": "rm -rf dist && lezer-generator src/editor/dgmo.grammar -o src/editor/dgmo.grammar.js",
|
|
37
49
|
"build": "tsup",
|
|
38
50
|
"typecheck": "tsc --noEmit",
|
|
39
51
|
"dev": "tsup --watch",
|
|
40
52
|
"test": "vitest run",
|
|
41
53
|
"test:watch": "vitest",
|
|
42
54
|
"gallery": "pnpm build && node scripts/generate-gallery.mjs",
|
|
55
|
+
"lint": "eslint .",
|
|
56
|
+
"lint:fix": "eslint . --fix",
|
|
57
|
+
"format": "prettier --write src/",
|
|
58
|
+
"format:check": "prettier --check src/",
|
|
43
59
|
"check:duplication": "jscpd ./src",
|
|
44
60
|
"check:deadcode": "knip",
|
|
45
|
-
"
|
|
61
|
+
"check:spelling": "cspell \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
62
|
+
"check:size": "pnpm build && du -sh dist/ && echo '---' && ls -lh dist/*.js dist/*.cjs",
|
|
63
|
+
"postinstall": "node -e \"console.log('\\nš” Claude Code user? Run: dgmo --install-claude-skill\\n')\"",
|
|
64
|
+
"prepare": "husky"
|
|
46
65
|
},
|
|
47
66
|
"dependencies": {
|
|
48
67
|
"@dagrejs/dagre": "^2.0.4",
|
|
@@ -60,6 +79,10 @@
|
|
|
60
79
|
"jsdom": "^28.1.0"
|
|
61
80
|
},
|
|
62
81
|
"devDependencies": {
|
|
82
|
+
"@codemirror/language": "^6.12.3",
|
|
83
|
+
"@codemirror/state": "^6.6.0",
|
|
84
|
+
"@eslint/js": "^10.0.1",
|
|
85
|
+
"@lezer/generator": "^1.8.0",
|
|
63
86
|
"@types/d3-array": "^3.2.1",
|
|
64
87
|
"@types/d3-cloud": "^1.2.9",
|
|
65
88
|
"@types/d3-hierarchy": "^3.1.7",
|
|
@@ -67,10 +90,36 @@
|
|
|
67
90
|
"@types/d3-selection": "^3.0.11",
|
|
68
91
|
"@types/d3-shape": "^3.1.7",
|
|
69
92
|
"@types/jsdom": "^28.0.0",
|
|
93
|
+
"cspell": "^9.7.0",
|
|
94
|
+
"eslint": "^10.1.0",
|
|
95
|
+
"husky": "^9.1.7",
|
|
70
96
|
"jscpd": "^4.0.8",
|
|
71
97
|
"knip": "^6.0.1",
|
|
98
|
+
"lint-staged": "^16.4.0",
|
|
99
|
+
"prettier": "^3.8.1",
|
|
72
100
|
"tsup": "^8.5.1",
|
|
73
101
|
"typescript": "^5.7.3",
|
|
102
|
+
"typescript-eslint": "^8.57.2",
|
|
74
103
|
"vitest": "^4.0.18"
|
|
104
|
+
},
|
|
105
|
+
"lint-staged": {
|
|
106
|
+
"*.ts": [
|
|
107
|
+
"eslint --fix",
|
|
108
|
+
"prettier --write"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"peerDependencies": {
|
|
112
|
+
"@codemirror/language": "^6.12.3",
|
|
113
|
+
"@codemirror/state": "^6.6.0",
|
|
114
|
+
"@lezer/common": "^1.5.1",
|
|
115
|
+
"@lezer/highlight": "^1.2.3",
|
|
116
|
+
"@lezer/lr": "^1.4.8"
|
|
117
|
+
},
|
|
118
|
+
"peerDependenciesMeta": {
|
|
119
|
+
"@codemirror/language": { "optional": true },
|
|
120
|
+
"@codemirror/state": { "optional": true },
|
|
121
|
+
"@lezer/common": { "optional": true },
|
|
122
|
+
"@lezer/highlight": { "optional": true },
|
|
123
|
+
"@lezer/lr": { "optional": true }
|
|
75
124
|
}
|
|
76
125
|
}
|