fix(edges): add missing edge class to edge wrapper
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -3,11 +3,10 @@ import BaseEdge from './BaseEdge'
|
||||
import type { SmoothStepEdgeProps } from '~/types'
|
||||
import { Position } from '~/types'
|
||||
|
||||
const SmoothStepEdge: FunctionalComponent<SmoothStepEdgeProps> = function ({
|
||||
sourcePosition = Position.Bottom,
|
||||
targetPosition = Position.Top,
|
||||
...props
|
||||
}) {
|
||||
const SmoothStepEdge: FunctionalComponent<SmoothStepEdgeProps> = function (
|
||||
{ sourcePosition = Position.Bottom, targetPosition = Position.Top, ...props },
|
||||
{ attrs },
|
||||
) {
|
||||
const [path, labelX, labelY] = getSmoothStepPath({
|
||||
sourcePosition,
|
||||
targetPosition,
|
||||
@@ -19,6 +18,7 @@ const SmoothStepEdge: FunctionalComponent<SmoothStepEdgeProps> = function ({
|
||||
labelX,
|
||||
labelY,
|
||||
...props,
|
||||
...attrs,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ SmoothStepEdge.props = [
|
||||
'borderRadius',
|
||||
'markerEnd',
|
||||
'markerStart',
|
||||
'style',
|
||||
'interactionWidth',
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user