From 46a76b783e1eae25b9299625fbd93daa8e56f123 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 12 Dec 2021 15:59:42 +0100 Subject: [PATCH] feat(types): add handlebounds type Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- src/types/node.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/types/node.ts b/src/types/node.ts index 3c1d86a7..312436a8 100644 --- a/src/types/node.ts +++ b/src/types/node.ts @@ -4,6 +4,11 @@ import { HandleElement, ValidConnectionFunc } from './components' export type CoordinateExtent = [[number, number], [number, number]] +export type HandleBounds = { + source?: HandleElement[] + target?: HandleElement[] +} + export interface Node extends Element { position: XYPosition targetPosition?: Position