Feat: add data to edges with source and handle info
This commit is contained in:
parent
0fa51db7c5
commit
3395a932aa
2 changed files with 6 additions and 1 deletions
|
|
@ -203,6 +203,10 @@ export default function Page({
|
|||
addEdge(
|
||||
{
|
||||
...params,
|
||||
data: {
|
||||
targetHandle: scapeJSONParse(params.targetHandle!),
|
||||
sourceHandle: scapeJSONParse(params.sourceHandle!),
|
||||
},
|
||||
style: { stroke: "#555" },
|
||||
className:
|
||||
((scapeJSONParse(params.targetHandle!) as targetHandleType)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue