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
3
.gitattributes
vendored
3
.gitattributes
vendored
|
|
@ -17,4 +17,5 @@
|
|||
|
||||
# Denote all files that are truly binary and should not be modified.
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpg binary
|
||||
*.mp4 binary
|
||||
|
|
@ -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