1 | import { RenderingContext2D } from './types';
|
2 | import BoundingBox from './BoundingBox';
|
3 | import Screen from './Screen';
|
4 | import { Element } from './Document';
|
5 | export interface IEvent {
|
6 | type: string;
|
7 | x: number;
|
8 | y: number;
|
9 | run(event: any): void;
|
10 | }
|
11 | export default class Mouse {
|
12 | private readonly screen;
|
13 | private working;
|
14 | private events;
|
15 | private eventElements;
|
16 | constructor(screen: Screen);
|
17 | isWorking(): boolean;
|
18 | start(): void;
|
19 | stop(): void;
|
20 | hasEvents(): boolean;
|
21 | runEvents(): void;
|
22 | checkPath(element: Element, ctx: RenderingContext2D): void;
|
23 | checkBoundingBox(element: Element, boundingBox: BoundingBox): void;
|
24 | private mapXY;
|
25 | private onClick;
|
26 | private onMouseMove;
|
27 | }
|
28 | //# sourceMappingURL=Mouse.d.ts.map |
\ | No newline at end of file |