feat: set the edge as the data source to achieve two-way linkage betw… (#1299)

### What problem does this PR solve?

feat: set the edge as the data source to achieve two-way linkage between
the edge and the to field. #918

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-06-27 18:09:02 +08:00
committed by GitHub
parent 5a1e01d96f
commit 840e921e96
5 changed files with 49 additions and 41 deletions

View File

@@ -22,7 +22,8 @@ const CategorizeHandle = ({ top, right, text, idx }: IProps) => {
<Handle
type="source"
position={Position.Right}
id={`CategorizeHandle${idx}`}
// id={`CategorizeHandle${idx}`}
id={text}
isConnectable
style={{
...DEFAULT_HANDLE_STYLE,