fix: use global nodeExtent if node.extent is undefined

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 39c8f60818
commit 8e6e85a007
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -2,6 +2,7 @@ import { XYPosition, Position, SnapGrid, Element, XYZPosition, Dimensions } from
import { DefaultNodeTypes } from './components'
import { HandleElement, ValidConnectionFunc } from './handle'
/** Defined as [[x-from, y-from], [x-to, y-to]] **/
export type CoordinateExtent = [[number, number], [number, number]]
export type NodeHandleBounds = {