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, onMouseout: onEdgeUpdaterMouseOut,
}, },
h(EdgeAnchor, { h(EdgeAnchor, {
position: sourcePosition, 'position': sourcePosition,
centerX: sourceX, 'centerX': sourceX,
centerY: sourceY, 'centerY': sourceY,
radius: props.edgeUpdaterRadius, 'radius': props.edgeUpdaterRadius,
'data-type': 'source',
}), }),
), ),
] ]
@@ -198,10 +199,11 @@ const Wrapper = defineComponent({
onMouseout: onEdgeUpdaterMouseOut, onMouseout: onEdgeUpdaterMouseOut,
}, },
h(EdgeAnchor, { h(EdgeAnchor, {
position: targetPosition, 'position': targetPosition,
centerX: targetX, 'centerX': targetX,
centerY: targetY, 'centerY': targetY,
radius: props.edgeUpdaterRadius, 'radius': props.edgeUpdaterRadius,
'data-type': 'target',
}), }),
), ),
] ]