Skip to content

Commit

Permalink
Simplify diagram.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkang committed Mar 29, 2021
1 parent 4c2a005 commit 082aa44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions meta/machines.dot
Expand Up @@ -8,28 +8,23 @@ digraph {
dim=4;
mode=ipsep;
sep=0.4

bgcolor="#fde725";

// Persisters
PilesPersister;
PilesPersister -> DeckStore [label="setPart"];
PilesPersister -> DeckStore [label="get"];
deckIdsPersister -> localStorage [label="setItem"];
thingPersister -> localStorage [label="setItem"];

subgraph cluster_stores {
label="Stores";
bgcolor="#fde725";
// Stores
DeckCollectionStore;
DeckStore [shape=doublecircle];
activeDeckIdentifier;
PileCollectionStore;
PileStore [shape=doublecircle];
}

subgraph cluster_responders {
label="Responders";
bgcolor="#a5db36";

// Responders
onDeckCollectionChange;
onDeckChange [shape=doublecircle];
onPileCollectionChange;
Expand All @@ -45,12 +40,9 @@ digraph {
PileStore -> onPileChange;
PileStore -> thingPersister [style=dashed, label="write"];
PileCollectionStore -> PilesPersister [style=dashed, label="write"]
}

subgraph cluster_renderers {
label="Renderers";
bgcolor="#54c568";

// Renderers
RenderDeckCollection;
RenderDeck [shape=doublecircle];
RenderPileCollection;
Expand All @@ -64,14 +56,8 @@ digraph {

onPileCollectionChange -> RenderPileCollection;
onPileChange -> RenderPile;
}

subgraph cluster_updaters {
label="Updaters";
bgcolor="#22a884";

addDeck;
addPile;
// Updaters
addDeck -> DeckCollectionStore;
addPile -> PileCollectionStore [label="add"];
RenderDeckCollection -> addDeck [style=dashed];
Expand All @@ -83,15 +69,4 @@ digraph {
RenderPile -> PileCollectionStore [style=dashed, label="remove"];
RenderPile -> PileStore [style=dashed, label="del"];
RenderPile -> PileStore [style=dashed, label="setPart"];
}

//subgraph cluster_legend {
//label="Legend";
//
//singleEntity [shape=circle, label="Single entity"];
//multipleEntities [shape=doublecircle, label="Multiple entities"];
//
//a -> b [label="Call"];
//c -> d [style=dashed, label="Conditional call"];
//}
}
}
Binary file modified meta/machines.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 082aa44

Please sign in to comment.