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:
Braks
2021-11-23 18:25:08 +01:00
parent cddf875b6d
commit d22e21041d
9 changed files with 76 additions and 107 deletions
+5 -4
View File
@@ -5,15 +5,16 @@ import {
ElementId,
Elements,
FitViewParams,
FlowOptions, Loading,
FlowOptions,
Loading,
Position,
XYPosition,
} from './flow'
import { Connection, ConnectionLineType, ConnectionMode } from './connection'
import { GraphNode, Node, NodeExtent, NodeTypes, TranslateExtent } from './node'
import { FlowStore } from '~/types/store'
import { EdgeTypes } from '~/types/edge'
import { KeyCode, PanOnScrollMode } from '~/types/zoom'
import { FlowStore } from './store'
import { EdgeTypes } from './edge'
import { KeyCode, PanOnScrollMode } from './zoom'
export type HandleType = 'source' | 'target'