feat: introduce custom edges, auto layout improvements and node data updates

This commit is contained in:
kasia.oczkowska
2024-05-22 14:19:56 +01:00
committed by Ali BARIN
parent d6abf283bc
commit 737eb31776
6 changed files with 359 additions and 120 deletions

View File

@@ -0,0 +1,30 @@
import { Handle, Position } from 'reactflow';
import { Box } from '@mui/material';
// This node is used for adding an edge with add node button after the last flow step node
function InvisibleNode() {
return (
<Box
maxWidth={900}
width="100vw"
className="nodrag"
sx={{ visibility: 'hidden' }}
>
<Handle
type="target"
position={Position.Top}
isConnectable={false}
style={{ visibility: 'hidden' }}
/>
Invisible node
<Handle
type="source"
position={Position.Bottom}
isConnectable={false}
style={{ visibility: 'hidden' }}
/>
</Box>
);
}
export default InvisibleNode;