fix(edges): add missing edge class to edge wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import type { FunctionalComponent } from 'vue'
|
||||
import BaseEdge from './BaseEdge'
|
||||
import type { EdgeProps } from '~/types'
|
||||
|
||||
const StraightEdge: FunctionalComponent<EdgeProps> = function (props) {
|
||||
const StraightEdge: FunctionalComponent<EdgeProps> = function (props, { attrs }) {
|
||||
const [path, labelX, labelY] = getStraightPath(props)
|
||||
|
||||
return h(BaseEdge, {
|
||||
@@ -10,6 +10,7 @@ const StraightEdge: FunctionalComponent<EdgeProps> = function (props) {
|
||||
labelX,
|
||||
labelY,
|
||||
...props,
|
||||
...attrs,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -26,7 +27,6 @@ StraightEdge.props = [
|
||||
'targetY',
|
||||
'markerEnd',
|
||||
'markerStart',
|
||||
'style',
|
||||
'interactionWidth',
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user