feat: add FlowHeader and delete edge (#959)

### What problem does this PR solve?
feat: add FlowHeader and delete edge #918 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-05-29 10:01:39 +08:00
committed by GitHub
parent 21aac545d9
commit 495a6434ec
13 changed files with 293 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
import { DSLComponents } from '@/interfaces/database/flow';
import dagre from 'dagre';
import { Edge, Node, Position } from 'reactflow';
import { Edge, MarkerType, Node, Position } from 'reactflow';
import { v4 as uuidv4 } from 'uuid';
const buildEdges = (
@@ -16,9 +16,12 @@ const buildEdges = (
allEdges.push({
id: uuidv4(),
label: '',
type: 'step',
// type: 'step',
source: source,
target: target,
markerEnd: {
type: MarkerType.Arrow,
},
});
}
});