@foblex/drag-toolkit
Version:
A TypeScript library providing foundational classes and utilities for implementing drag-and-drop functionality in Angular applications, with support for both mouse and touch events, and designed to work with or without Angular’s NgZone (zoneless applicati
17 lines (16 loc) • 557 B
TypeScript
export declare abstract class IPointerEvent {
private readonly event;
private target?;
get originalEvent(): (MouseEvent | TouchEvent);
get targetElement(): HTMLElement;
protected constructor(event: (MouseEvent | TouchEvent), target?: HTMLElement | undefined);
setTarget(target: HTMLElement): void;
abstract isMouseLeftButton(): boolean;
abstract isMouseRightButton(): boolean;
preventDefault(): void;
abstract getPosition(): {
x: number;
y: number;
};
get isEventInLockedContext(): boolean;
}