feat(edges): add data-type to edge anchors

This commit is contained in:
braks
2022-10-07 22:55:38 +02:00
committed by Braks
parent 1526ecd1f1
commit 9cea1326de
@@ -180,10 +180,11 @@ const Wrapper = defineComponent({
onMouseout: onEdgeUpdaterMouseOut,
},
h(EdgeAnchor, {
position: sourcePosition,
centerX: sourceX,
centerY: sourceY,
radius: props.edgeUpdaterRadius,
'position': sourcePosition,
'centerX': sourceX,
'centerY': sourceY,
'radius': props.edgeUpdaterRadius,
'data-type': 'source',
}),
),
]
@@ -198,10 +199,11 @@ const Wrapper = defineComponent({
onMouseout: onEdgeUpdaterMouseOut,
},
h(EdgeAnchor, {
position: targetPosition,
centerX: targetX,
centerY: targetY,
radius: props.edgeUpdaterRadius,
'position': targetPosition,
'centerX': targetX,
'centerY': targetY,
'radius': props.edgeUpdaterRadius,
'data-type': 'target',
}),
),
]