-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(1624): first draft, prototype of context map grammar and diagram
- Loading branch information
1 parent
3c3d28d
commit 8613b08
Showing
27 changed files
with
1,918 additions
and
95 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
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,68 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title>Context Map Language 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> | ||
<h1>Context Map demo</h1> | ||
<pre class="mermaid"> | ||
context-map-beta | ||
|
||
ContextMap DDDSampleMap { | ||
contains CargoBookingContext | ||
contains VoyagePlanningContext | ||
contains LocationContext | ||
|
||
CargoBookingContext [SK]<->[SK] VoyagePlanningContext | ||
CargoBookingContext [D]<-[U,OHS,PL] LocationContext | ||
VoyagePlanningContext [D]<-[U,OHS,PL] LocationContext | ||
} | ||
</pre | ||
> | ||
|
||
<pre class="mermaid"> | ||
context-map-beta | ||
|
||
ContextMap InsuranceContextMap { | ||
contains CustomerManagementContext | ||
contains CustomerSelfServiceContext | ||
contains PrintingContext | ||
contains PolicyManagementContext | ||
contains RiskManagementContext | ||
contains DebtCollection | ||
|
||
CustomerSelfServiceContext [D,C]<-[U,S] CustomerManagementContext | ||
CustomerManagementContext [D,ACL]<-[U,OHS,PL] PrintingContext | ||
PrintingContext [U,OHS,PL]->[D,ACL] PolicyManagementContext | ||
RiskManagementContext [P]<->[P] PolicyManagementContext | ||
PolicyManagementContext [D,CF]<-[U,OHS,PL] CustomerManagementContext | ||
DebtCollection [D,ACL]<-[U,OHS,PL] PrintingContext | ||
PolicyManagementContext [SK]<->[SK] DebtCollection | ||
} | ||
</pre | ||
> | ||
|
||
<script type="module"> | ||
import mermaid from './mermaid.esm.mjs'; | ||
mermaid.initialize({ | ||
theme: 'base', | ||
logLevel: 0, | ||
useMaxWidth: false, | ||
}); | ||
mermaid.parseError = function (err, hash) { | ||
console.error('In parse error:'); | ||
console.error(err); | ||
}; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,94 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<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> | ||
<h1>Mermaid quick test and demo pages</h1> | ||
<p> | ||
Some of these pages have duplicates; some are slow to load because they have so many graphs. | ||
</p> | ||
<p>You can test custom code in the <a href="./dev/example.html">development page</a>.</p> | ||
<p> | ||
If you'd like to clean up one of the pages, please feel free to | ||
<a href="https://github.com/mermaid-js/mermaid/pulls">submit a pull request (PR).</a> | ||
</p> | ||
|
||
<ul> | ||
<li> | ||
<h2><a href="./c4context.html">C4 Context</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./classchart.html">Class diagrams</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./dataflowchart.html">Data flow charts</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./er.html">Entity Relation diagram</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./flowchart.html">Flow charts</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./gantt.html">Gantt</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./git.html">Git</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./info.html">Info</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./journey.html">Journey</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./mindmap.html">Mindmap</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./pie.html">Pie</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./quadrantchart.html">Quadrant charts</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./xychart.html">XY charts</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./requirements.html">Requirements</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./sequence.html">Sequence</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./state.html">State</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./timeline.html">Timeline</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./zenuml.html">ZenUML</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./sankey.html">Sankey</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./packet.html">Packet</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./block.html">Layered Blocks</a></h2> | ||
</li> | ||
</ul> | ||
</body> | ||
</html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<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> | ||
<h1>Mermaid quick test and demo pages</h1> | ||
<p> | ||
Some of these pages have duplicates; some are slow to load because they have so many graphs. | ||
</p> | ||
<p>You can test custom code in the <a href="./dev/example.html">development page</a>.</p> | ||
<p> | ||
If you'd like to clean up one of the pages, please feel free to | ||
<a href="https://github.com/mermaid-js/mermaid/pulls">submit a pull request (PR).</a> | ||
</p> | ||
|
||
<ul> | ||
<li> | ||
<h2><a href="./c4context.html">C4 Context</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./classchart.html">Class diagrams</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./dataflowchart.html">Data flow charts</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./er.html">Entity Relation diagram</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./flowchart.html">Flow charts</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./gantt.html">Gantt</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./git.html">Git</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./info.html">Info</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./journey.html">Journey</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./mindmap.html">Mindmap</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./contextMap.html">Context Map</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./pie.html">Pie</a></h2> | ||
<h2><a href="./quadrantchart.html">Quadrant charts</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./xychart.html">XY charts</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./requirements.html">Requirements</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./sequence.html">Sequence</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./state.html">State</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./timeline.html">Timeline</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./zenuml.html">ZenUML</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./sankey.html">Sankey</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./packet.html">Packet</a></h2> | ||
</li> | ||
<li> | ||
<h2><a href="./block.html">Layered Blocks</a></h2> | ||
</li> | ||
</ul> | ||
</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
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
Oops, something went wrong.