refactor(nodes): use watcher to calc xyzpos
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user