feat(nodes): only allow teleport on graph nodes

This commit is contained in:
bcakmakoglu
2022-05-27 23:36:01 +02:00
committed by Braks
parent d9e7c7a0b0
commit e38cb4e0c2
+3 -3
View File
@@ -58,9 +58,6 @@ export interface Node<Data = ElementData> extends BaseElement<Data> {
/** overwrites current node type */
template?: NodeComponent
/** teleports node element to specified dom location */
teleport?: TeleportProps['to']
}
export interface GraphNode<Data = ElementData> extends Node<Data> {
@@ -72,6 +69,9 @@ export interface GraphNode<Data = ElementData> extends Node<Data> {
isParent: boolean
selected: boolean
dragging: boolean
/** teleports node element to specified dom location, this property is _not_ available on initial load, only after viewpane is ready */
teleport?: TeleportProps['to']
}
/** these props are passed to node components */