fix(core,edges): correct edge component prop types
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import type { FunctionalComponent } from 'vue'
|
||||
import BaseEdge from './BaseEdge'
|
||||
import type { SmoothStepEdgeProps } from '~/types'
|
||||
import type { BaseEdgeProps, EdgePositions, EdgeProps, SmoothStepPathOptions } from '~/types'
|
||||
import { Position } from '~/types'
|
||||
|
||||
export type SmoothStepEdgeProps = EdgePositions &
|
||||
Omit<BaseEdgeProps, 'labelX' | 'labelY' | 'path'> &
|
||||
Pick<EdgeProps, 'sourcePosition' | 'targetPosition'> &
|
||||
SmoothStepPathOptions
|
||||
|
||||
const SmoothStepEdge: FunctionalComponent<SmoothStepEdgeProps> = function (
|
||||
{ sourcePosition = Position.Bottom, targetPosition = Position.Top, ...props },
|
||||
{ attrs },
|
||||
@@ -39,6 +44,7 @@ SmoothStepEdge.props = [
|
||||
'markerEnd',
|
||||
'markerStart',
|
||||
'interactionWidth',
|
||||
'offset',
|
||||
]
|
||||
|
||||
SmoothStepEdge.inheritAttrs = false
|
||||
|
||||
Reference in New Issue
Block a user