UNPKG

awayjs-display

Version:
34 lines (27 loc) 603 B
import {EventBase} from "awayjs-core/lib/events/EventBase"; import {Style} from "../base/Style"; export class StyleEvent extends EventBase { private _style:Style; /** * */ public static INVALIDATE_PROPERTIES:string = "invalidateProperties"; public get style():Style { return this._style; } constructor(type:string, style:Style) { super(type); this._style = style; } /** * Clones the event. * @return An exact duplicate of the current object. */ public clone():StyleEvent { return new StyleEvent(this.type, this._style); } }