UNPKG

@wcardinal/wcardinal-geditor

Version:

WebGL-based graphic editor, tester and viewer for supervisory systems

21 lines 966 B
import { __extends } from "tslib"; import { ECommandShapeProperty } from "./e-command-shape-property"; var ECommandShapePropertyImage = /** @class */ (function (_super) { __extends(ECommandShapePropertyImage, _super); function ECommandShapePropertyImage(selection, image, gradient) { return _super.call(this, selection, [image, gradient]) || this; } ECommandShapePropertyImage.prototype.getProperty = function (shape, capability) { return shape.image; }; ECommandShapePropertyImage.prototype.setProperty = function (shape, capability, property) { shape.image = property; }; ECommandShapePropertyImage.prototype.initProperty = function (shape, capability, property) { shape.image = property[0]; shape.gradient = property[1]; }; return ECommandShapePropertyImage; }(ECommandShapeProperty)); export { ECommandShapePropertyImage }; //# sourceMappingURL=e-command-shape-property-image.js.map