Feat: add data to edges with source and handle info

This commit is contained in:
igorrCarvalho 2023-08-24 17:44:43 -03:00
commit 3395a932aa
2 changed files with 6 additions and 1 deletions

3
.gitattributes vendored
View file

@ -17,4 +17,5 @@
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.jpg binary
*.mp4 binary

View file

@ -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)