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.

47 lines 1.71 kB
import { EventObject } from "../../EventObject"; export class LinePermissions { get allowChangeLineWidth() { return this._allowChangeLineWidth; } set allowChangeLineWidth(value) { if (this._allowChangeLineWidth === value) return; this._allowChangeLineWidth = value; this.propertyChanged.notify("allowChangeLineWidth"); } get allowChangeLineColor() { return this._allowChangeLineColor; } set allowChangeLineColor(value) { if (this._allowChangeLineColor === value) return; this._allowChangeLineColor = value; this.propertyChanged.notify("allowChangeLineColor"); } constructor(defaultValue) { this._allowChangeLineWidth = true; this._allowChangeLineColor = true; this.propertyChanged = new EventObject(); if (defaultValue == null) defaultValue = true; this.allowChangeLineWidth = defaultValue; this.allowChangeLineColor = defaultValue; } getSimplifiedObject() { const result = {}; result["allowChangeLineWidth"] = this.allowChangeLineWidth; result["allowChangeLineColor"] = this.allowChangeLineColor; return result; } clone() { const clone = new LinePermissions(); clone.allowChangeLineWidth = this.allowChangeLineWidth; clone.allowChangeLineColor = this.allowChangeLineColor; return clone; } equals(p) { return this.allowChangeLineColor === p.allowChangeLineColor && this.allowChangeLineWidth === p.allowChangeLineWidth; } } //# sourceMappingURL=LinePermissions.js.map