From 14863ea0d1ed6752442125925059d35535cd79f0 Mon Sep 17 00:00:00 2001 From: Aleksandr Penskoi Date: Mon, 7 Mar 2022 21:58:29 +0300 Subject: [PATCH] Add support of horizontal relations in UI. --- web/src/components/ProcessView.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/web/src/components/ProcessView.tsx b/web/src/components/ProcessView.tsx index 6629f33fc..86e932422 100644 --- a/web/src/components/ProcessView.tsx +++ b/web/src/components/ProcessView.tsx @@ -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");