-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2389 from maiermic/feature/1893_data_flow_diagrams
Feature/1893 data flow diagrams
- Loading branch information
Showing
5 changed files
with
114 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Mermaid Quick Test Page</title> | ||
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo="> | ||
<style> | ||
div.mermaid { | ||
/* font-family: 'trebuchet ms', verdana, arial; */ | ||
font-family: 'Courier New', Courier, monospace !important; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h2>Data Flow Diagram Example</h2> | ||
<div class="mermaid"> | ||
flowchart LR | ||
DataStore[|borders:tb|Database] -->|input| Process((System)) -->|output| Entity[Customer]; | ||
</div> | ||
|
||
<h2>Borders Example</h2> | ||
<div class="mermaid"> | ||
flowchart TD | ||
allSides[ stroke all sides ]; | ||
allSides2[|borders:ltrb| stroke all sides ]; | ||
rbSides[|borders:rb| stroke right and bottom sides ]; | ||
ltSides[|borders:lt| stroke left and top sides ]; | ||
lrSides[|borders:lr| stroke left and right sides ]; | ||
noSide[|borders:no| stroke no side ]; | ||
</div> | ||
|
||
<script src="./mermaid.js"></script> | ||
<script> | ||
mermaid.initialize({ | ||
theme: 'forest', | ||
logLevel: 3, | ||
securityLevel: 'loose', | ||
flowchart: { curve: 'basis' } | ||
}); | ||
</script> | ||
<script> | ||
function testClick(nodeId) { | ||
console.log("clicked", nodeId) | ||
var originalBgColor = document.querySelector('body').style.backgroundColor | ||
document.querySelector('body').style.backgroundColor = 'yellow' | ||
setTimeout(function() { | ||
document.querySelector('body').style.backgroundColor = originalBgColor | ||
}, 100) | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters