UNPKG

@ariakit/react-core

Version:

Ariakit React core

6 lines (5 loc) 306 B
export type Point = [number, number]; export type Polygon = Point[]; export declare function getEventPoint(event: MouseEvent): Point; export declare function isPointInPolygon(point: Point, polygon: Polygon): boolean; export declare function getElementPolygon(element: Element, enterPoint: Point): Point[];