12 lines
664 B
TypeScript
12 lines
664 B
TypeScript
import { KonvaEventObject } from './Node';
|
|
import { Shape } from './Shape';
|
|
import { Stage } from './Stage';
|
|
export interface KonvaPointerEvent extends KonvaEventObject<PointerEvent> {
|
|
pointerId: number;
|
|
}
|
|
export declare function getCapturedShape(pointerId: number): Stage | Shape<import("./Shape").ShapeConfig>;
|
|
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;
|