feat(edges): add data-type to edge anchors
This commit is contained in:
@@ -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',
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user