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.

43 lines 1.19 kB
import { EventObject } from "../../EventObject"; export class VisualizationPermissions { constructor() { this._noPrint = false; this._noShow = false; this.propertyChanged = new EventObject(); } get noPrint() { return this._noPrint; } set noPrint(value) { if (this._noPrint === value) return; this._noPrint = value; this.propertyChanged.notify(); } get noShow() { return this._noShow; } set noShow(value) { if (this._noShow === value) return; this._noShow = value; this.propertyChanged.notify(); } clone() { const clone = new VisualizationPermissions(); clone.noShow = this.noShow; clone.noPrint = this.noPrint; return clone; } equals(p) { return this.noShow === p.noShow && this.noPrint === p.noPrint; } getSimplifiedObject() { const result = {}; result["noPrint"] = this.noPrint; result["noShow"] = this.noShow; return result; } } //# sourceMappingURL=VisualizationPermissions.js.map