pure-canvas
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -22,2 +22,6 @@ import { EventEmitter } from 'eventemitter3'; | ||
node: Node<T> | undefined; | ||
on(event: 'mousedown', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this; | ||
on(event: 'mousemove', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this; | ||
on(event: 'mouseup', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this; | ||
on(event: 'click', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this; | ||
} |
@@ -85,2 +85,6 @@ "use strict"; | ||
} | ||
on(event, fn, context) { | ||
return super.on(event, fn, context); | ||
} | ||
; | ||
} | ||
@@ -87,0 +91,0 @@ exports.default = Stage; |
{ | ||
"name": "pure-canvas", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "TODO", | ||
@@ -5,0 +5,0 @@ "main": "lib/Stage.js", |
@@ -1,2 +0,2 @@ | ||
import {EventEmitter} from 'eventemitter3'; | ||
import {EventEmitter, ListenerFn} from 'eventemitter3'; | ||
import Node from './Node'; | ||
@@ -108,2 +108,10 @@ import {getSafeContext} from './util'; | ||
} | ||
on(event: 'mousedown', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this; | ||
on(event: 'mousemove', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this; | ||
on(event: 'mouseup', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this; | ||
on(event: 'click', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this; | ||
on(event: string | symbol, fn: ListenerFn, context?: any): this { | ||
return super.on(event, fn, context); | ||
}; | ||
}; |
Sorry, the diff of this file is not supported yet
238383
3153