@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.
38 lines • 1.56 kB
JavaScript
import { EventObject } from "../../EventObject";
var PathBoundedTextPermissions = /** @class */ (function () {
function PathBoundedTextPermissions(defaultValue) {
this.propertyChanged = new EventObject();
if (defaultValue == null)
defaultValue = true;
this.allowChangeColumnCount = defaultValue;
}
Object.defineProperty(PathBoundedTextPermissions.prototype, "allowChangeColumnCount", {
get: function () {
return this._allowChangeColumnCount;
},
set: function (value) {
if (this._allowChangeColumnCount === value)
return;
this._allowChangeColumnCount = value;
this.propertyChanged.notify("allowChangeColumnCount");
},
enumerable: true,
configurable: true
});
PathBoundedTextPermissions.prototype.getSimplifiedObject = function () {
var result = {};
result["allowChangeColumnCount"] = this.allowChangeColumnCount;
return result;
};
PathBoundedTextPermissions.prototype.clone = function () {
var clone = new PathBoundedTextPermissions();
clone.allowChangeColumnCount = this.allowChangeColumnCount;
return clone;
};
PathBoundedTextPermissions.prototype.equals = function (p) {
return this.allowChangeColumnCount === p.allowChangeColumnCount;
};
return PathBoundedTextPermissions;
}());
export { PathBoundedTextPermissions };
//# sourceMappingURL=PathBoundedTextPermissions.js.map