@awayjs/renderer
Version:
Renderer for AwayJS
32 lines (31 loc) • 914 B
JavaScript
import { __extends } from "tslib";
import { EventBase } from '@awayjs/core';
var StyleEvent = /** @class */ (function (_super) {
__extends(StyleEvent, _super);
function StyleEvent(type, style) {
var _this = _super.call(this, type) || this;
_this._style = style;
return _this;
}
Object.defineProperty(StyleEvent.prototype, "style", {
get: function () {
return this._style;
},
enumerable: false,
configurable: true
});
/**
* Clones the event.
* @return An exact duplicate of the current object.
*/
StyleEvent.prototype.clone = function () {
return new StyleEvent(this.type, this._style);
};
/**
*
*/
StyleEvent.INVALIDATE_PROPERTIES = 'invalidateProperties';
StyleEvent.INVALIDATE_IMAGES = 'invalidateImages';
return StyleEvent;
}(EventBase));
export { StyleEvent };