import { Event } from "../Event" ; import { CanvasElementModel } from "../../models-canvas/CanvasElementModel" ; export class ElementEvent extends Event { element : CanvasElementModel ; constructor ( name , source , element ) { super ( name , source ) ; this . element = element ; } } export class PressElementEvent extends ElementEvent { static NAME = "press-element" ; constructor ( source , element ) { super ( PressElementEvent . NAME , source , element ) ; } } export class UnPressElementEvent extends ElementEvent { static NAME = "unpress-element" ; constructor ( source , element ) { super ( UnPressElementEvent . NAME , source , element ) ; } }