@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
35 lines • 1.43 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { BaseImageEffect } from "./BaseImageEffect";
import * as _ from "underscore";
var AutoErasePoint = /** @class */ (function () {
function AutoErasePoint() {
}
return AutoErasePoint;
}());
export { AutoErasePoint };
var AutoEraseEffect = /** @class */ (function (_super) {
__extends(AutoEraseEffect, _super);
function AutoEraseEffect(rawPoints) {
var _this = _super.call(this) || this;
_this.points = [];
// ReSharper disable once InconsistentNaming
_this.__type = "AutoEraseEffect";
_this.points = _.map(rawPoints, function (rawValue) { return _.extend(new AutoErasePoint(), rawValue); });
return _this;
}
return AutoEraseEffect;
}(BaseImageEffect));
export { AutoEraseEffect };
//# sourceMappingURL=AutoEraseEffect.js.map