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:
Braks
2021-11-23 17:46:55 +01:00
parent 091f3f82c2
commit cddf875b6d
4 changed files with 21 additions and 16 deletions
+5
View File
@@ -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