Skip to content

Commit 9cea132

Browse files
committed
feat(edges): add data-type to edge anchors
1 parent 1526ecd commit 9cea132

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/vue-flow/src/components/Edges/Wrapper.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,11 @@ const Wrapper = defineComponent({
180180
onMouseout: onEdgeUpdaterMouseOut,
181181
},
182182
h(EdgeAnchor, {
183-
position: sourcePosition,
184-
centerX: sourceX,
185-
centerY: sourceY,
186-
radius: props.edgeUpdaterRadius,
183+
'position': sourcePosition,
184+
'centerX': sourceX,
185+
'centerY': sourceY,
186+
'radius': props.edgeUpdaterRadius,
187+
'data-type': 'source',
187188
}),
188189
),
189190
]
@@ -198,10 +199,11 @@ const Wrapper = defineComponent({
198199
onMouseout: onEdgeUpdaterMouseOut,
199200
},
200201
h(EdgeAnchor, {
201-
position: targetPosition,
202-
centerX: targetX,
203-
centerY: targetY,
204-
radius: props.edgeUpdaterRadius,
202+
'position': targetPosition,
203+
'centerX': targetX,
204+
'centerY': targetY,
205+
'radius': props.edgeUpdaterRadius,
206+
'data-type': 'target',
205207
}),
206208
),
207209
]

0 commit comments

Comments
 (0)