@diagrammo/dgmo 0.2.18 → 0.2.20

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A diagram markup language — parser, config builder, renderer, and color system.
4
4
 
5
- Write plain-text `.dgmo` files and render them as charts, diagrams, and visualizations. Supports 26 chart types across ECharts, D3, and a built-in sequence renderer. Ships as both a library and a standalone CLI.
5
+ Write plain-text `.dgmo` files and render them as charts, diagrams, and visualizations. Supports 26 chart types data charts, structural diagrams, and sequence diagrams. Ships as both a library and a standalone CLI.
6
6
 
7
7
  ## Install
8
8
 
@@ -58,47 +58,47 @@ dgmo diagram.dgmo --theme dark --palette catppuccin
58
58
 
59
59
  ## Supported chart types
60
60
 
61
- | Type | Framework | Description |
62
- |------|-----------|-------------|
63
- | `bar` | ECharts | Vertical/horizontal bar charts |
64
- | `bar-stacked` | ECharts | Stacked bar charts |
65
- | `line` | ECharts | Line charts with crosshair |
66
- | `multi-line` | ECharts | Multi-series line charts |
67
- | `area` | ECharts | Filled area charts |
68
- | `pie` | ECharts | Pie charts with connector labels |
69
- | `doughnut` | ECharts | Doughnut charts |
70
- | `radar` | ECharts | Radar/spider charts |
71
- | `polar-area` | ECharts | Polar area charts |
72
- | `scatter` | ECharts | XY scatter with categories and sizing |
73
- | `sankey` | ECharts | Flow diagrams |
74
- | `chord` | ECharts | Circular relationship diagrams |
75
- | `function` | ECharts | Mathematical function plots |
76
- | `heatmap` | ECharts | Matrix heatmaps |
77
- | `funnel` | ECharts | Conversion funnels |
78
- | `slope` | D3 | Before/after comparison |
79
- | `wordcloud` | D3 | Weighted text clouds |
80
- | `arc` | D3 | Arc/network diagrams |
81
- | `timeline` | D3 | Timelines with eras and markers |
82
- | `venn` | D3 | Set intersection diagrams |
83
- | `quadrant` | D3 | 2D quadrant scatter (also has a Mermaid output path) |
84
- | `sequence` | D3 | Sequence diagrams with type inference |
85
- | `flowchart` | D3 | Directed graph flowcharts with branching and 6 node shapes |
86
- | `class` | D3 | UML class diagrams with inheritance, composition, and visibility |
87
- | `er` | D3 | Entity-relationship diagrams with crow's foot notation |
88
- | `org` | D3 | Org charts with hierarchy, team containers, and tag group color-coding |
61
+ | Type | Description |
62
+ |------|-------------|
63
+ | `bar` | Vertical/horizontal bar charts |
64
+ | `bar-stacked` | Stacked bar charts |
65
+ | `line` | Line charts with crosshair |
66
+ | `multi-line` | Multi-series line charts |
67
+ | `area` | Filled area charts |
68
+ | `pie` | Pie charts with connector labels |
69
+ | `doughnut` | Doughnut charts |
70
+ | `radar` | Radar/spider charts |
71
+ | `polar-area` | Polar area charts |
72
+ | `scatter` | XY scatter with categories and sizing |
73
+ | `sankey` | Flow diagrams |
74
+ | `chord` | Circular relationship diagrams |
75
+ | `function` | Mathematical function plots |
76
+ | `heatmap` | Matrix heatmaps |
77
+ | `funnel` | Conversion funnels |
78
+ | `slope` | Before/after comparison |
79
+ | `wordcloud` | Weighted text clouds |
80
+ | `arc` | Arc/network diagrams |
81
+ | `timeline` | Timelines with eras and markers |
82
+ | `venn` | Set intersection diagrams |
83
+ | `quadrant` | 2D quadrant scatter |
84
+ | `sequence` | Sequence diagrams with type inference |
85
+ | `flowchart` | Directed graph flowcharts with branching and 6 node shapes |
86
+ | `class` | UML class diagrams with inheritance, composition, and visibility |
87
+ | `er` | Entity-relationship diagrams with crow's foot notation |
88
+ | `org` | Org charts with hierarchy, team containers, and tag group color-coding |
89
89
 
90
90
  ## How it works
91
91
 
92
- Every `.dgmo` file is plain text with a `chart: <type>` header followed by metadata and data. The library routes each chart type to the right framework and gives you either:
92
+ Every `.dgmo` file is plain text with a `chart: <type>` header followed by metadata and data. The library parses each chart type and gives you either:
93
93
 
94
- - A **framework config object** you render yourself (ECharts, Mermaid)
95
- - A **rendered SVG** via D3 or the built-in sequence renderer
94
+ - A **config object** you render yourself
95
+ - A **rendered SVG** directly
96
96
 
97
97
  ```
98
98
  parse → build config → render
99
99
  ```
100
100
 
101
- All parsers are pure functions with no DOM dependency. D3 renderers accept a container element. The CLI sets up jsdom internally for headless rendering.
101
+ All parsers are pure functions with no DOM dependency. The CLI sets up jsdom internally for headless rendering.
102
102
 
103
103
  ## Usage
104
104