fix(edges): type marker prop in EdgeProps

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-06 17:41:46 +01:00
committed by Braks
parent 9326c580da
commit c673b04422
4 changed files with 15 additions and 10 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@vue-flow/core': patch
---
Type `markerEnd` and `markerStart` in `EdgeProps`
@@ -168,6 +168,7 @@ const EdgeWrapper = defineComponent({
targetNode: props.targetNode,
source: edge.source,
target: edge.target,
type: edge.type,
updatable: props.updatable,
selected: edge.selected,
animated: edge.animated,
+5 -6
View File
@@ -123,8 +123,8 @@ export interface EdgeProps<Data = ElementData, CustomEvents = {}> {
id: string
sourceNode: GraphNode
targetNode: GraphNode
type?: keyof DefaultEdgeTypes | string
label?: string | VNode | Component<EdgeTextProps> | Object
type?: string
style?: CSSProperties
sourceX: number
sourceY: number
@@ -144,8 +144,8 @@ export interface EdgeProps<Data = ElementData, CustomEvents = {}> {
labelBgBorderRadius?: number
animated?: boolean
updatable?: boolean
markerStart?: string
markerEnd?: string
markerStart: string
markerEnd: string
curvature?: number
interactionWidth?: number
data: Data
@@ -159,7 +159,6 @@ export interface SmoothStepEdgeProps<Data = ElementData, CustomEvents = {}> exte
sourceNode: GraphNode
targetNode: GraphNode
label?: string | VNode | Component<EdgeTextProps> | Object
type?: string
style?: CSSProperties
sourceX: number
sourceY: number
@@ -179,8 +178,8 @@ export interface SmoothStepEdgeProps<Data = ElementData, CustomEvents = {}> exte
labelBgBorderRadius?: number
animated?: boolean
updatable?: boolean
markerStart?: string
markerEnd?: string
markerStart: string
markerEnd: string
borderRadius?: number
offset?: number
interactionWidth?: number
+4 -4
View File
@@ -21,8 +21,8 @@ export interface PathFindingEdgeProps extends EdgeProps<never> {
labelBgPadding?: [number, number]
labelBgBorderRadius?: number
style?: CSSProperties
markerEnd?: string
markerStart?: string
markerEnd: string
markerStart: string
sourceHandleId?: string
targetHandleId?: string
}
@@ -46,8 +46,8 @@ export interface PerfectArrowProps {
labelBgPadding?: [number, number]
labelBgBorderRadius?: number
style?: CSSProperties
markerEnd?: string
markerStart?: string
markerEnd: string
markerStart: string
sourceHandleId?: string
targetHandleId?: string
options?: ArrowOptions