@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 ECommandShapePropertyLineTailSizeY = /** @class */ (function (_super) {
__extends(ECommandShapePropertyLineTailSizeY, _super);
function ECommandShapePropertyLineTailSizeY() {
return _super !== null && _super.apply(this, arguments) || this;
}
ECommandShapePropertyLineTailSizeY.prototype.toCapability = function (shape) {
if (EShapeCapabilities.contains(shape, EShapeCapability.LINE_TAIL)) {
return EShapeCapability.LINE_TAIL;
}
return EShapeCapability.NONE;
};
ECommandShapePropertyLineTailSizeY.prototype.getProperty = function (shape, capability) {
var points = shape.points;
if (points) {
return points.marker.tail.size.y;
}
return 0;
};
ECommandShapePropertyLineTailSizeY.prototype.setProperty = function (shape, capability, property) {
var points = shape.points;
if (points) {
points.marker.tail.size.y = property;
}
};
return ECommandShapePropertyLineTailSizeY;
}(ECommandShapePropertyRecursiveSimple));
export { ECommandShapePropertyLineTailSizeY };
//# sourceMappingURL=e-command-shape-property-line-tail-size-y.js.map