|
@@ -91,12 +91,6 @@
|
|
|
|
|
|
<Panel class="process-panel" position="top-right">
|
|
|
<div class="layout-panel">
|
|
|
- <button
|
|
|
- title="set horizontal layout"
|
|
|
- @click="layoutGraph('LR')"
|
|
|
- >
|
|
|
- <PannelIcon name="horizontal" />
|
|
|
- </button>
|
|
|
|
|
|
<button title="set vertical layout" @click="layoutGraph('TB')">
|
|
|
<PannelIcon name="vertical" />
|
|
@@ -557,7 +551,6 @@ const { nodes } = toRefs(flowData); //ref(initialNodes);
|
|
|
const { edges } = toRefs(flowData); //ref(initialEdges);
|
|
|
async function layoutGraph(direction) {
|
|
|
nodes.value = layout(nodes.value, edges.value, direction);
|
|
|
-
|
|
|
nextTick(() => {
|
|
|
fitView();
|
|
|
});
|