feat(connecting): move pane when mouse is close to edge of canvas #2753

This commit is contained in:
moklick
2023-01-16 16:39:48 +01:00
parent 893ee87838
commit e413bceb19
4 changed files with 69 additions and 16 deletions
+1
View File
@@ -1,4 +1,5 @@
import type { KeyboardEvent as ReactKeyboardEvent } from 'react';
import type { Dimensions, Node, XYPosition, CoordinateExtent, Box, Rect } from '../types';
export const getDimensions = (node: HTMLDivElement): Dimensions => ({