UNPKG

@wcardinal/wcardinal-geditor

Version:

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

27 lines 1.21 kB
import { __extends } from "tslib"; import { EShapeCapabilities, EShapeCapability } from "@wcardinal/wcardinal-ui"; import { ECommandShapePropertySimple } from "./e-command-shape-property-simple"; var ECommandShapePropertySizeY = /** @class */ (function (_super) { __extends(ECommandShapePropertySizeY, _super); function ECommandShapePropertySizeY() { return _super !== null && _super.apply(this, arguments) || this; } ECommandShapePropertySizeY.prototype.toCapability = function (shape) { if (EShapeCapabilities.contains(shape, EShapeCapability.HEIGHT)) { return EShapeCapability.HEIGHT; } return EShapeCapability.NONE; }; ECommandShapePropertySizeY.prototype.getProperty = function (shape, capability) { return shape.size.y; }; ECommandShapePropertySizeY.prototype.setProperty = function (shape, capability, property) { shape.size.y = property; }; ECommandShapePropertySizeY.prototype.isMergeable = function () { return true; }; return ECommandShapePropertySizeY; }(ECommandShapePropertySimple)); export { ECommandShapePropertySizeY }; //# sourceMappingURL=e-command-shape-property-size-y.js.map