Skip to content

Commit 566e1d4

Browse files
Copilotsapphi-red
andcommitted
Add notch-rect shape to note nodes in Mermaid graphs
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
1 parent 656abaf commit 566e1d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/composables/graph-mermaid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function generateModuleGraphMermaid(modules: ModuleNode[]): string {
5050
if (modules.length === 1 && modules[0].imports.length === 0) {
5151
lines.push(
5252
` note["Single module, no imports"]`,
53-
` style note fill:#f3f4f6,stroke:#d1d5db`,
53+
` style note fill:#f3f4f6,stroke:#d1d5db,shape:notch-rect`,
5454
)
5555
}
5656

@@ -125,7 +125,7 @@ export function generateChunkGraphMermaid(chunks: ChunkNode[]): string {
125125
if (!hasEdges && chunks.length === 1) {
126126
lines.push(
127127
` note["Single chunk, no imports"]`,
128-
` style note fill:#f3f4f6,stroke:#d1d5db`,
128+
` style note fill:#f3f4f6,stroke:#d1d5db,shape:notch-rect`,
129129
)
130130
}
131131

0 commit comments

Comments
 (0)