UNPKG

@open-e/oe-coordinator

Version:

This module is used to detect mouse movement on the border of HTMLElement. Useful usecase is to enable resize event in `div` element when mouse is on the border of it.

25 lines (24 loc) 582 B
export declare namespace Public { interface CoordinateComponentInterface { constructor(): void; Coordinate: Coordinate; } interface Coordinate { clientWidth: number; clientHeight: number; width: number; height: number; top: number; bottom: number; left: number; right: number; } interface OnBorder { left: boolean; right: boolean; top: boolean; bottom: boolean; } type isDrag = boolean; type Variation = number; }