canvas-compositor/Compositor/NodeEvent.ts

24 lines
580 B
TypeScript
Raw Permalink Normal View History

2023-06-11 16:01:50 +03:00
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;
}
}