@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
23 lines • 1.07 kB
JavaScript
import { __extends } from "tslib";
import { EShapeButton } from "@wcardinal/wcardinal-ui";
import { ECommandShapePropertySimple } from "../../command/e-command-shape-property-simple";
var ECommandShapeButtonPropertyIsToggle = /** @class */ (function (_super) {
__extends(ECommandShapeButtonPropertyIsToggle, _super);
function ECommandShapeButtonPropertyIsToggle() {
return _super !== null && _super.apply(this, arguments) || this;
}
ECommandShapeButtonPropertyIsToggle.prototype.getProperty = function (shape, capability) {
if (shape instanceof EShapeButton) {
return shape.isToggle;
}
return false;
};
ECommandShapeButtonPropertyIsToggle.prototype.setProperty = function (shape, capability, property) {
if (shape instanceof EShapeButton) {
shape.isToggle = property;
}
};
return ECommandShapeButtonPropertyIsToggle;
}(ECommandShapePropertySimple));
export { ECommandShapeButtonPropertyIsToggle };
//# sourceMappingURL=e-command-shape-button-property-is-toggle.js.map