forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svgjs.draggable.d.ts
26 lines (22 loc) · 686 Bytes
/
svgjs.draggable.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
// Type definitions for svgjs.draggable
// Project: http://www.svgjs.com/
// Definitions by: Luigi Trabacchin <https://github.com/LiFeleSs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace svgjs {
export module draggable {
export interface DragDelta {
x: number
y: number
zoom: number
}
}
export interface Element {
draggable(): this
draggable(obj: Object): this
fixed(): this
beforedrag: (event: MouseEvent) => any
dragstart: (delta: draggable.DragDelta, event: MouseEvent) => any
dragmove: (delta: draggable.DragDelta, event: MouseEvent) => any
dragend: (delta: draggable.DragDelta, event: MouseEvent) => any
}
}