@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
41 lines • 1.65 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 { GroupItemHandler } from "./GroupItemHandler";
var ClipartItemHandler = /** @class */ (function (_super) {
__extends(ClipartItemHandler, _super);
function ClipartItemHandler() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(ClipartItemHandler.prototype, "item", {
get: function () {
return this._getItem();
},
enumerable: true,
configurable: true
});
ClipartItemHandler.prototype._onItemPropertyChanged = function (sender, propertyName) {
switch (propertyName) {
case "colorGroups":
if (this.canvas != null) {
this.update();
this.canvas.redraw();
}
break;
}
_super.prototype._onItemPropertyChanged.call(this, sender, propertyName);
};
return ClipartItemHandler;
}(GroupItemHandler));
export { ClipartItemHandler };
//# sourceMappingURL=ClipartItemHandler.js.map