refactor(nodes): use watcher to calc xyzpos

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 774cb2e644
commit 60fcbc2d06
3 changed files with 17 additions and 16 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ export interface Node<T = any> extends Element<T> {
isValidTargetPos?: ValidConnectionFunc
isValidSourcePos?: ValidConnectionFunc
extent?: 'parent' | CoordinateExtent
children?: Node[]
children?: Node<T>[]
dimensions?: Dimensions
}
@@ -25,7 +25,7 @@ export interface GraphNode<T = any> extends Node<T> {
source?: HandleElement[]
target?: HandleElement[]
}
parentNode?: GraphNode
parentNode?: GraphNode<T>
isParent?: boolean
computedPosition: XYZPosition
selected?: boolean