modern-canvas
Version:
A JavaScript WebGL rendering engine. only the ESM.
35 lines (34 loc) • 959 B
TypeScript
import type { Cursor } from './Cursor';
export declare class InputEvent<N extends UIEvent = UIEvent> implements UIEvent {
nativeEvent: N;
cursor?: Cursor;
bubbles: boolean;
cancelBubble: boolean;
cancelable: boolean;
composed: boolean;
currentTarget: any;
defaultPrevented: boolean;
eventPhase: number;
isTrusted: boolean;
returnValue: boolean;
srcElement: EventTarget | null;
target: any;
timeStamp: number;
type: string;
path: any[];
composedPath(): any[];
initEvent(..._args: any[]): void;
preventDefault(): void;
propagationImmediatelyStopped: boolean;
stopImmediatePropagation(): void;
propagationStopped: boolean;
stopPropagation(): void;
readonly NONE = 0;
readonly CAPTURING_PHASE = 1;
readonly AT_TARGET = 2;
readonly BUBBLING_PHASE = 3;
detail: number;
view: WindowProxy;
which: number;
initUIEvent(..._args: any[]): void;
}