@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
31 lines • 1.41 kB
JavaScript
import { __extends } from "tslib";
import { EShapeCapabilities, EShapeCapability } from "@wcardinal/wcardinal-ui";
import { ECommandShapePropertyRecursiveSimple } from "./e-command-shape-property-recursive-simple";
var ECommandShapePropertyLineHeadSizeX = /** @class */ (function (_super) {
__extends(ECommandShapePropertyLineHeadSizeX, _super);
function ECommandShapePropertyLineHeadSizeX() {
return _super !== null && _super.apply(this, arguments) || this;
}
ECommandShapePropertyLineHeadSizeX.prototype.toCapability = function (shape) {
if (EShapeCapabilities.contains(shape, EShapeCapability.LINE_HEAD)) {
return EShapeCapability.LINE_HEAD;
}
return EShapeCapability.NONE;
};
ECommandShapePropertyLineHeadSizeX.prototype.getProperty = function (shape, capability) {
var points = shape.points;
if (points) {
return points.marker.head.size.x;
}
return 0;
};
ECommandShapePropertyLineHeadSizeX.prototype.setProperty = function (shape, capability, property) {
var points = shape.points;
if (points) {
points.marker.head.size.x = property;
}
};
return ECommandShapePropertyLineHeadSizeX;
}(ECommandShapePropertyRecursiveSimple));
export { ECommandShapePropertyLineHeadSizeX };
//# sourceMappingURL=e-command-shape-property-line-head-size-x.js.map