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.

32 lines 1.11 kB
import { EventObject } from "../../EventObject"; export class PathBoundedTextPermissions { constructor(defaultValue) { this.propertyChanged = new EventObject(); if (defaultValue == null) defaultValue = true; this.allowChangeColumnCount = defaultValue; } get allowChangeColumnCount() { return this._allowChangeColumnCount; } set allowChangeColumnCount(value) { if (this._allowChangeColumnCount === value) return; this._allowChangeColumnCount = value; this.propertyChanged.notify("allowChangeColumnCount"); } getSimplifiedObject() { const result = {}; result["allowChangeColumnCount"] = this.allowChangeColumnCount; return result; } clone() { const clone = new PathBoundedTextPermissions(); clone.allowChangeColumnCount = this.allowChangeColumnCount; return clone; } equals(p) { return this.allowChangeColumnCount === p.allowChangeColumnCount; } } //# sourceMappingURL=PathBoundedTextPermissions.js.map