-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathInterfaces.d.ts
60 lines (48 loc) · 1.29 KB
/
Interfaces.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
interface Touch {
identifier: number;
target: EventTarget;
screenX: number;
screenY: number;
clientX: number;
clientY: number;
pageX: number;
pageY: number;
}
interface TouchList extends Array<Touch> {
item(index: number): Touch;
identifiedTouch(identifier: number): Touch;
}
interface TouchEvent extends UIEvent {
touches: TouchList;
targetTouches: TouchList;
changedTouches: TouchList;
altKey: boolean;
metaKey: boolean;
ctrlKey: boolean;
shiftKey: boolean;
// initTouchEvent (type:string, canBubble:boolean, cancelable:boolean, view:AbstractView, detail:number, ctrlKey:boolean, altKey:boolean, shiftKey:boolean, metaKey:boolean, touches:TouchList, targetTouches:TouchList, changedTouches:TouchList);
}
declare module MapPaint {
export interface PaintPoint {
x: number;
y: number;
}
export interface PaintBounds {
xMin: number;
xMax: number;
yMin: number;
yMax: number;
}
export interface PartitionGridPaintPoint extends PaintPoint {
remove?: boolean;
}
export interface Pencil {
draw(context: CanvasRenderingContext2D, point: PaintPoint, previousPoint: PaintPoint, sketch: Sketchy);
}
}
declare module L {
export interface IMapPaint extends L.IHandler {
saveMethod: (image: string, bounds: L.LatLngBounds) => void;
}
export var MapPaint: IMapPaint;
}