@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
27 lines • 1.23 kB
JavaScript
import { __extends } from "tslib";
import { EShapeCapabilities, EShapeCapability } from "@wcardinal/wcardinal-ui";
import { ECommandShapePropertySimple } from "./e-command-shape-property-simple";
var ECommandShapePropertySkew = /** @class */ (function (_super) {
__extends(ECommandShapePropertySkew, _super);
function ECommandShapePropertySkew() {
return _super !== null && _super.apply(this, arguments) || this;
}
ECommandShapePropertySkew.prototype.toCapability = function (shape) {
if (EShapeCapabilities.contains(shape, EShapeCapability.SKEW)) {
return EShapeCapability.SKEW;
}
return EShapeCapability.NONE;
};
ECommandShapePropertySkew.prototype.getProperty = function (shape, capability) {
return shape.transform.skew.x;
};
ECommandShapePropertySkew.prototype.setProperty = function (shape, capability, property) {
shape.transform.skew.set(property, property);
};
ECommandShapePropertySkew.prototype.isMergeable = function () {
return true;
};
return ECommandShapePropertySkew;
}(ECommandShapePropertySimple));
export { ECommandShapePropertySkew };
//# sourceMappingURL=e-command-shape-property-skew.js.map