export default class NodeEvent { public type = ""; public prevented = false; public stoppedBubbling = false; public data : any = {}; public keyCode : number; public key : string; public x : number; public y : number; public clone() { let u = new NodeEvent(); u.type = this.type; u.prevented = this.prevented; u.stoppedBubbling = this.stoppedBubbling; u.data = this.data; u.keyCode = this.keyCode; u.key = this.key; u.x = this.x; u.y = this.y; return u; } }