UNPKG

@wcardinal/wcardinal-geditor

Version:

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

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