UNPKG

@wcardinal/wcardinal-geditor

Version:

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

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