(event: string, callback: (bound: { topLeft: Plottable.Point, bottomRight: Plottable.Point }) => void)
| 26 | }); |
| 27 | |
| 28 | function onEvent(event: string, callback: (bound: { topLeft: Plottable.Point, bottomRight: Plottable.Point }) => void) { |
| 29 | switch (event) { |
| 30 | case "dragStart": |
| 31 | dbl.onDragStart(callback); |
| 32 | break; |
| 33 | case "drag": |
| 34 | dbl.onDragStart(callback); |
| 35 | break; |
| 36 | case "dragEnd": |
| 37 | dbl.onDragEnd(callback); |
| 38 | break; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | function offEvent(event: string, callback: (bound: { topLeft: Plottable.Point, bottomRight: Plottable.Point }) => void) { |
| 43 | switch (event) { |
no test coverage detected