Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Fixes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Oct 24, 2023
1 parent 588ebaa commit 5b1e65a
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.17.0 (unreleased)

- C4PlantUMLExporter: Adds support for border style and stroke width (see https://github.com/structurizr/export/issues/73).
- MermaidDiagramExporter: Fixes https://github.com/structurizr/export/issues/80

## 1.16.1 (11th August 2023)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected void writeHeader(ModelView view, IndentingWriter writer) {
}
}

writer.writeLine("subgraph diagram [" + viewTitle + "]");
writer.writeLine("subgraph diagram [\"" + viewTitle + "\"]");
writer.indent();
writer.writeLine("style diagram fill:#ffffff,stroke:#ffffff");
writer.writeLine();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [Internet Banking System - API Application - Components]
subgraph diagram ["Internet Banking System - API Application - Components"]
style diagram fill:#ffffff,stroke:#ffffff

4["<div style='font-weight: bold'>Mainframe Banking System</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Stores all of the core<br />banking information about<br />customers, accounts,<br />transactions, etc.</div>"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [Internet Banking System - Containers]
subgraph diagram ["Internet Banking System - Containers"]
style diagram fill:#ffffff,stroke:#ffffff

1["<div style='font-weight: bold'>Personal Banking Customer</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>A customer of the bank, with<br />personal bank accounts.</div>"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [Internet Banking System - Deployment - Development]
subgraph diagram ["Internet Banking System - Deployment - Development"]
style diagram fill:#ffffff,stroke:#ffffff

subgraph 50 [Developer Laptop]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [Internet Banking System - Deployment - Live]
subgraph diagram ["Internet Banking System - Deployment - Live"]
style diagram fill:#ffffff,stroke:#ffffff

subgraph 67 [Customer's mobile device]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [API Application - Dynamic]
subgraph diagram ["API Application - Dynamic"]
style diagram fill:#ffffff,stroke:#ffffff

subgraph 20 [API Application]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [Internet Banking System - System Context]
subgraph diagram ["Internet Banking System - System Context"]
style diagram fill:#ffffff,stroke:#ffffff

1["<div style='font-weight: bold'>Personal Banking Customer</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>A customer of the bank, with<br />personal bank accounts.</div>"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [System Landscape]
subgraph diagram ["System Landscape"]
style diagram fill:#ffffff,stroke:#ffffff

subgraph enterprise [Big Bank plc]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph LR
linkStyle default fill:#ffffff

subgraph diagram [Spring PetClinic - Deployment - Live]
subgraph diagram ["Spring PetClinic - Deployment - Live"]
style diagram fill:#ffffff,stroke:#ffffff

subgraph 5 [Amazon Web Services]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void test_renderContainerDiagramWithExternalContainers() {
assertEquals("graph TB\n" +
" linkStyle default fill:#ffffff\n" +
"\n" +
" subgraph diagram [Software System 1 - Containers]\n" +
" subgraph diagram [\"Software System 1 - Containers\"]\n" +
" style diagram fill:#ffffff,stroke:#ffffff\n" +
"\n" +
" subgraph 1 [Software System 1]\n" +
Expand Down Expand Up @@ -186,7 +186,7 @@ public void test_renderComponentDiagramWithExternalComponents() {
assertEquals("graph TB\n" +
" linkStyle default fill:#ffffff\n" +
"\n" +
" subgraph diagram [Software System 1 - Container 1 - Components]\n" +
" subgraph diagram [\"Software System 1 - Container 1 - Components\"]\n" +
" style diagram fill:#ffffff,stroke:#ffffff\n" +
"\n" +
" subgraph 2 [Container 1]\n" +
Expand Down Expand Up @@ -225,7 +225,7 @@ public void test_renderGroupStyles() {
assertEquals("graph TB\n" +
" linkStyle default fill:#ffffff\n" +
"\n" +
" subgraph diagram [System Landscape]\n" +
" subgraph diagram [\"System Landscape\"]\n" +
" style diagram fill:#ffffff,stroke:#ffffff\n" +
"\n" +
" subgraph group1 [Group 1]\n" +
Expand Down Expand Up @@ -258,7 +258,7 @@ public void test_renderGroupStyles() {
assertEquals("graph TB\n" +
" linkStyle default fill:#ffffff\n" +
"\n" +
" subgraph diagram [System Landscape]\n" +
" subgraph diagram [\"System Landscape\"]\n" +
" style diagram fill:#ffffff,stroke:#ffffff\n" +
"\n" +
" subgraph group1 [Group 1]\n" +
Expand Down Expand Up @@ -302,7 +302,7 @@ public void test_renderCustomView() {
assertEquals("graph TB\n" +
" linkStyle default fill:#ffffff\n" +
"\n" +
" subgraph diagram [Title]\n" +
" subgraph diagram [\"Title\"]\n" +
" style diagram fill:#ffffff,stroke:#ffffff\n" +
"\n" +
" 1[\"<div style='font-weight: bold'>A</div><div style='font-size: 70%; margin-top: 0px'></div>\"]\n" +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [D - F - Components]
subgraph diagram ["D - F - Components"]
style diagram fill:#ffffff,stroke:#ffffff

3["<div style='font-weight: bold'>C</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div>"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [D - Containers]
subgraph diagram ["D - Containers"]
style diagram fill:#ffffff,stroke:#ffffff

3["<div style='font-weight: bold'>C</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div>"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [System Landscape]
subgraph diagram ["System Landscape"]
style diagram fill:#ffffff,stroke:#ffffff

subgraph enterprise [Enterprise]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
linkStyle default fill:#ffffff

subgraph diagram [System Landscape]
subgraph diagram ["System Landscape"]
style diagram fill:#ffffff,stroke:#ffffff

subgraph group1 [Organisation 1]
Expand Down

0 comments on commit 5b1e65a

Please sign in to comment.