Skip to content

Commit

Permalink
Add support of horizontal relations in UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukzak committed Mar 7, 2022
1 parent 6a65727 commit 14863ea
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions web/src/components/ProcessView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ function renderProcessViewDot(process: ProcessData): string {
});

process.relations.forEach((relation: RelationData) => {
// FIXME: replace by commented code after source code update
lines.push(` ${relation[0]} -> ${relation[1]};`);
/* if (relation.tag === "Vertical") {
* lines.push(` ${relation.vUp} -> ${relation.vDown};`);
* }
* if (relation.tag === "Horizontal") {
* lines.push(` ${relation.hPrev} -> ${relation.hNext}[style=dashed];`);
* } */
if (relation.tag === "Vertical") {
lines.push(` ${relation.vUp} -> ${relation.vDown};`);
}
if (relation.tag === "Horizontal") {
lines.push(` ${relation.hPrev} -> ${relation.hNext}[style=dashed];`);
}
});
lines.push("}");
return lines.join("\n");
Expand Down

0 comments on commit 14863ea

Please sign in to comment.