@diagrammo/dgmo 0.6.1 → 0.6.2
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.md +76 -0
- package/dist/cli.cjs +160 -159
- package/dist/index.cjs +780 -147
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +780 -147
- package/dist/index.js.map +1 -1
- package/docs/ai-integration.md +33 -50
- package/package.json +4 -3
- package/src/c4/layout.ts +68 -5
- package/src/cli.ts +124 -2
- package/src/er/classify.ts +206 -0
- package/src/er/layout.ts +259 -94
- package/src/er/renderer.ts +231 -17
- package/src/infra/layout.ts +60 -13
- package/src/infra/renderer.ts +375 -32
- package/src/initiative-status/layout.ts +46 -30
- package/.claude/skills/dgmo-chart/SKILL.md +0 -141
- package/.claude/skills/dgmo-flowchart/SKILL.md +0 -61
- package/.claude/skills/dgmo-generate/SKILL.md +0 -59
- package/.claude/skills/dgmo-sequence/SKILL.md +0 -104
package/dist/index.d.cts
CHANGED
|
@@ -996,7 +996,9 @@ declare function layoutERDiagram(parsed: ParsedERDiagram): ERLayoutResult;
|
|
|
996
996
|
declare function renderERDiagram(container: HTMLDivElement, parsed: ParsedERDiagram, layout: ERLayoutResult, palette: PaletteColors, isDark: boolean, onClickItem?: (lineNumber: number) => void, exportDims?: {
|
|
997
997
|
width?: number;
|
|
998
998
|
height?: number;
|
|
999
|
-
}, activeTagGroup?: string | null
|
|
999
|
+
}, activeTagGroup?: string | null,
|
|
1000
|
+
/** When false, semantic role colors are suppressed and entities use a neutral color. */
|
|
1001
|
+
semanticColorsActive?: boolean): void;
|
|
1000
1002
|
declare function renderERDiagramForExport(content: string, theme: 'light' | 'dark' | 'transparent', palette: PaletteColors): string;
|
|
1001
1003
|
|
|
1002
1004
|
interface InlineSpan {
|
|
@@ -1783,6 +1785,7 @@ interface InfraLayoutResult {
|
|
|
1783
1785
|
groups: InfraLayoutGroup[];
|
|
1784
1786
|
/** Diagram-level options (e.g., default-latency-ms, default-uptime). */
|
|
1785
1787
|
options: Record<string, string>;
|
|
1788
|
+
direction: 'LR' | 'TB';
|
|
1786
1789
|
width: number;
|
|
1787
1790
|
height: number;
|
|
1788
1791
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -996,7 +996,9 @@ declare function layoutERDiagram(parsed: ParsedERDiagram): ERLayoutResult;
|
|
|
996
996
|
declare function renderERDiagram(container: HTMLDivElement, parsed: ParsedERDiagram, layout: ERLayoutResult, palette: PaletteColors, isDark: boolean, onClickItem?: (lineNumber: number) => void, exportDims?: {
|
|
997
997
|
width?: number;
|
|
998
998
|
height?: number;
|
|
999
|
-
}, activeTagGroup?: string | null
|
|
999
|
+
}, activeTagGroup?: string | null,
|
|
1000
|
+
/** When false, semantic role colors are suppressed and entities use a neutral color. */
|
|
1001
|
+
semanticColorsActive?: boolean): void;
|
|
1000
1002
|
declare function renderERDiagramForExport(content: string, theme: 'light' | 'dark' | 'transparent', palette: PaletteColors): string;
|
|
1001
1003
|
|
|
1002
1004
|
interface InlineSpan {
|
|
@@ -1783,6 +1785,7 @@ interface InfraLayoutResult {
|
|
|
1783
1785
|
groups: InfraLayoutGroup[];
|
|
1784
1786
|
/** Diagram-level options (e.g., default-latency-ms, default-uptime). */
|
|
1785
1787
|
options: Record<string, string>;
|
|
1788
|
+
direction: 'LR' | 'TB';
|
|
1786
1789
|
width: number;
|
|
1787
1790
|
height: number;
|
|
1788
1791
|
}
|