UNPKG

@wcardinal/wcardinal-geditor

Version:

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

31 lines 1.41 kB
import { __extends } from "tslib"; import { EShapeCapabilities, EShapeCapability } from "@wcardinal/wcardinal-ui"; import { ECommandShapePropertyRecursiveSimple } from "./e-command-shape-property-recursive-simple"; var ECommandShapePropertyLineTailSizeX = /** @class */ (function (_super) { __extends(ECommandShapePropertyLineTailSizeX, _super); function ECommandShapePropertyLineTailSizeX() { return _super !== null && _super.apply(this, arguments) || this; } ECommandShapePropertyLineTailSizeX.prototype.toCapability = function (shape) { if (EShapeCapabilities.contains(shape, EShapeCapability.LINE_TAIL)) { return EShapeCapability.LINE_TAIL; } return EShapeCapability.NONE; }; ECommandShapePropertyLineTailSizeX.prototype.getProperty = function (shape, capability) { var points = shape.points; if (points) { return points.marker.tail.size.x; } return 0; }; ECommandShapePropertyLineTailSizeX.prototype.setProperty = function (shape, capability, property) { var points = shape.points; if (points) { points.marker.tail.size.x = property; } }; return ECommandShapePropertyLineTailSizeX; }(ECommandShapePropertyRecursiveSimple)); export { ECommandShapePropertyLineTailSizeX }; //# sourceMappingURL=e-command-shape-property-line-tail-size-x.js.map