fix(edges): add missing edge class to edge wrapper

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-14 19:04:13 +01:00
committed by Braks
parent cd778715a2
commit f0f7e7e49a
9 changed files with 48 additions and 43 deletions
@@ -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',
]