feat(types): Add GraphEdge type
* GraphEdges are edges that have been parsed and have a sourceTargetNode property Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Component, CSSProperties, DefineComponent } from 'vue'
|
||||
import { ArrowHeadType, ElementId, Position } from './flow'
|
||||
import { EdgeTextProps } from './components'
|
||||
import { SourceTargetNode } from './node'
|
||||
|
||||
export interface Edge<T = any> {
|
||||
id: ElementId
|
||||
@@ -32,6 +33,10 @@ export interface Edge<T = any> {
|
||||
isHidden?: boolean
|
||||
}
|
||||
|
||||
export interface GraphEdge<T = any> extends Edge<T> {
|
||||
sourceTargetNodes: SourceTargetNode
|
||||
}
|
||||
|
||||
export interface EdgeProps<T = any> extends Edge<T> {
|
||||
sourceX: number
|
||||
sourceY: number
|
||||
|
||||
Reference in New Issue
Block a user