@aurigma/design-atoms-model
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
39 lines • 1.43 kB
JavaScript
import { EventObject } from "../EventObject";
import { equals } from "../Utils/Utils";
var ItemMask = /** @class */ (function () {
function ItemMask() {
this._vectorMask = null;
this._maskChangedEvent = new EventObject();
}
Object.defineProperty(ItemMask.prototype, "vectorMask", {
get: function () { return this._vectorMask; },
set: function (value) {
this._vectorMask = value;
this._maskChangedEvent.notify(this);
},
enumerable: true,
configurable: true
});
ItemMask.prototype.addMaskChanged = function (handler) {
this._maskChangedEvent.add(handler);
};
ItemMask.prototype.removeMaskChanged = function (handler) {
this._maskChangedEvent.remove(handler);
};
ItemMask.prototype.clone = function () {
var clone = new ItemMask();
clone.vectorMask = this.vectorMask != null ? this.vectorMask.clone() : null;
return clone;
};
ItemMask.prototype.equals = function (m) {
return equals(this.vectorMask, m.vectorMask);
};
ItemMask.prototype.getSimplifiedObject = function () {
var simplified = {};
simplified["vectorMask"] = this.vectorMask != null ? this.vectorMask.toString() : null;
return simplified;
};
return ItemMask;
}());
export { ItemMask };
//# sourceMappingURL=ItemMask.js.map