UNPKG

konva

Version:

<p align="center"> <img src="https://konvajs.org/android-chrome-192x192.png" alt="Konva logo" height="180" /> </p>

12 lines (11 loc) 688 B
import { KonvaEventObject } from './Node.js'; import { Shape } from './Shape.js'; import { Stage } from './Stage.js'; export interface KonvaPointerEvent extends KonvaEventObject<PointerEvent> { pointerId: number; } export declare function getCapturedShape(pointerId: number): Stage | Shape<import("./Shape.js").ShapeConfig> | undefined; export declare function createEvent(evt: PointerEvent): KonvaPointerEvent; export declare function hasPointerCapture(pointerId: number, shape: Shape | Stage): boolean; export declare function setPointerCapture(pointerId: number, shape: Shape | Stage): void; export declare function releaseCapture(pointerId: number, target?: Shape | Stage): void;