Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Mar 17, 2023
1 parent ae10e0f commit 7bd18b6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/architecture/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Table of Contents

## Overview

<img src="./overview.svg" alt="Overview" />
10 changes: 10 additions & 0 deletions docs/diagrams/overview.d2 → docs/architecture/overview.d2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ compiler: {
parse -> AST
AST: Abstract Syntax Tree {
shape: oval
fill: honeydew
}

AST -> compile
Expand All @@ -16,6 +17,7 @@ compiler: {
compiler.compile -> graph
graph: Graph\n(shapes & connections) {
shape: oval
fill: honeydew
}

graph -> Set Dimensions
Expand All @@ -24,14 +26,21 @@ Set Dimensions -> Use given, premeasured dimensions -> measured graph

measured graph: {
shape: oval
fill: honeydew
}

measured graph -> layout engine -> positioned graph

positioned graph: {
shape: oval
fill: honeydew
}

positioned graph -> exporter -> diagram

diagram: finalized diagram (styled) {
shape: oval
fill: honeydew
}

diagram -> render SVG
Expand All @@ -42,6 +51,7 @@ use sketch post processor -> SVG bytes

SVG bytes: {
shape: oval
fill: honeydew
}

SVG bytes -> screenshot for PNG: optional
Loading

0 comments on commit 7bd18b6

Please sign in to comment.