main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
901 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | import { RenderingContext2D } from './types';
|
---|
| 2 | import BoundingBox from './BoundingBox';
|
---|
| 3 | import Screen from './Screen';
|
---|
| 4 | import { Element } from './Document';
|
---|
| 5 | interface IEventTarget {
|
---|
| 6 | onClick?(): void;
|
---|
| 7 | onMouseMove?(): void;
|
---|
| 8 | }
|
---|
| 9 | export interface IEvent {
|
---|
| 10 | type: string;
|
---|
| 11 | x: number;
|
---|
| 12 | y: number;
|
---|
| 13 | run(eventTarget: IEventTarget): void;
|
---|
| 14 | }
|
---|
| 15 | export default class Mouse {
|
---|
| 16 | private readonly screen;
|
---|
| 17 | private working;
|
---|
| 18 | private events;
|
---|
| 19 | private eventElements;
|
---|
| 20 | constructor(screen: Screen);
|
---|
| 21 | isWorking(): boolean;
|
---|
| 22 | start(): void;
|
---|
| 23 | stop(): void;
|
---|
| 24 | hasEvents(): boolean;
|
---|
| 25 | runEvents(): void;
|
---|
| 26 | checkPath(element: Element, ctx: RenderingContext2D): void;
|
---|
| 27 | checkBoundingBox(element: Element, boundingBox: BoundingBox): void;
|
---|
| 28 | private mapXY;
|
---|
| 29 | private onClick;
|
---|
| 30 | private onMouseMove;
|
---|
| 31 | }
|
---|
| 32 | export {};
|
---|
| 33 | //# sourceMappingURL=Mouse.d.ts.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.