feat(types): add handlebounds type
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,11 @@ import { HandleElement, ValidConnectionFunc } from './components'
|
|||||||
|
|
||||||
export type CoordinateExtent = [[number, number], [number, number]]
|
export type CoordinateExtent = [[number, number], [number, number]]
|
||||||
|
|
||||||
|
export type HandleBounds = {
|
||||||
|
source?: HandleElement[]
|
||||||
|
target?: HandleElement[]
|
||||||
|
}
|
||||||
|
|
||||||
export interface Node<T = any> extends Element<T> {
|
export interface Node<T = any> extends Element<T> {
|
||||||
position: XYPosition
|
position: XYPosition
|
||||||
targetPosition?: Position
|
targetPosition?: Position
|
||||||
|
|||||||
Reference in New Issue
Block a user