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.

46 lines 1.58 kB
var _a, _b; import { NDEffectType } from "./NDEffectType"; import { RecolorEffectParameters, } from "./RecolorEffectParameters"; var NDEffects = /** @class */ (function () { function NDEffects() { this[_a] = null; this[_b] = new RecolorEffectParameters(); } Object.defineProperty(NDEffects.prototype, "recolorEffect", { get: function () { return this[NDEffectType.Recolor]; }, set: function (params) { this[NDEffectType.Recolor] = params; }, enumerable: true, configurable: true }); NDEffects.prototype.clone = function () { var ndEffects = new NDEffects(); if (this[NDEffectType.None] != null) { ndEffects[NDEffectType.None] = {}; } if (this[NDEffectType.Recolor] != null) { ndEffects.recolorEffect = this.recolorEffect.clone(); } return ndEffects; }; NDEffects.prototype.equals = function (ndEffect) { if (ndEffect == null) return false; return ndEffect.recolorEffect.equals(this.recolorEffect); }; NDEffects.prototype.toJSON = function () { var _c; var _d; return _c = {}, _c[NDEffectType.None] = {}, _c[NDEffectType.Recolor] = (_d = this.recolorEffect) === null || _d === void 0 ? void 0 : _d.toJSON(), _c; }; return NDEffects; }()); export { NDEffects }; _a = NDEffectType.None, _b = NDEffectType.Recolor; //# sourceMappingURL=NDEffects.js.map