UNPKG

@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.

57 lines 2.24 kB
import { EventObject } from "../../EventObject"; var LinePermissions = /** @class */ (function () { function LinePermissions(defaultValue) { this._allowChangeLineWidth = true; this._allowChangeLineColor = true; this.propertyChanged = new EventObject(); if (defaultValue == null) defaultValue = true; this.allowChangeLineWidth = defaultValue; this.allowChangeLineColor = defaultValue; } Object.defineProperty(LinePermissions.prototype, "allowChangeLineWidth", { get: function () { return this._allowChangeLineWidth; }, set: function (value) { if (this._allowChangeLineWidth === value) return; this._allowChangeLineWidth = value; this.propertyChanged.notify("allowChangeLineWidth"); }, enumerable: true, configurable: true }); Object.defineProperty(LinePermissions.prototype, "allowChangeLineColor", { get: function () { return this._allowChangeLineColor; }, set: function (value) { if (this._allowChangeLineColor === value) return; this._allowChangeLineColor = value; this.propertyChanged.notify("allowChangeLineColor"); }, enumerable: true, configurable: true }); LinePermissions.prototype.getSimplifiedObject = function () { var result = {}; result["allowChangeLineWidth"] = this.allowChangeLineWidth; result["allowChangeLineColor"] = this.allowChangeLineColor; return result; }; LinePermissions.prototype.clone = function () { var clone = new LinePermissions(); clone.allowChangeLineWidth = this.allowChangeLineWidth; clone.allowChangeLineColor = this.allowChangeLineColor; return clone; }; LinePermissions.prototype.equals = function (p) { return this.allowChangeLineColor === p.allowChangeLineColor && this.allowChangeLineWidth === p.allowChangeLineWidth; }; return LinePermissions; }()); export { LinePermissions }; //# sourceMappingURL=LinePermissions.js.map