fix(edges): edges not reacting to hidden nodes
* Change getEdges to parse edges with source & target nodes and filter if one of them is missing * add new type for Edges w sourceTargetNode called GraphEdge which is the return type of getEdges * Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -1,17 +1,17 @@
|
||||
import { CSSProperties } from 'vue'
|
||||
import { Edge, EdgeTypes, GraphEdge } from './edge'
|
||||
import { Edge, EdgeTypes } from './edge'
|
||||
import { NodeExtent, GraphNode, NodeTypes, TranslateExtent, Node } from './node'
|
||||
import { ConnectionLineType, ConnectionMode } from './connection'
|
||||
import { KeyCode, PanOnScrollMode } from './zoom'
|
||||
import { FlowStore } from './store'
|
||||
|
||||
export type ElementId = string
|
||||
export type FlowElement<T = any> = GraphNode<T> | GraphEdge<T>
|
||||
export type FlowElement<T = any> = GraphNode<T> | Edge<T>
|
||||
export type FlowElements<T = any> = FlowElement<T>[]
|
||||
export type Elements<T = any> = (Node<T> | Edge<T>)[]
|
||||
export type NextElements = {
|
||||
nextNodes: GraphNode[]
|
||||
nextEdges: GraphEdge[]
|
||||
nextEdges: Edge[]
|
||||
}
|
||||
|
||||
export type Transform = [number, number, number]
|
||||
|
||||
Reference in New Issue
Block a user