UNPKG

@wcardinal/wcardinal-geditor

Version:

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

23 lines 1.08 kB
import { __extends } from "tslib"; import { EShapeButton } from "@wcardinal/wcardinal-ui"; import { ECommandShapePropertySimple } from "../../command/e-command-shape-property-simple"; var ECommandShapeButtonPropertyIsActive = /** @class */ (function (_super) { __extends(ECommandShapeButtonPropertyIsActive, _super); function ECommandShapeButtonPropertyIsActive() { return _super !== null && _super.apply(this, arguments) || this; } ECommandShapeButtonPropertyIsActive.prototype.getProperty = function (shape, capability) { if (shape instanceof EShapeButton) { return shape.state.isActive; } return false; }; ECommandShapeButtonPropertyIsActive.prototype.setProperty = function (shape, capability, property) { if (shape instanceof EShapeButton) { shape.state.isActive = property; } }; return ECommandShapeButtonPropertyIsActive; }(ECommandShapePropertySimple)); export { ECommandShapeButtonPropertyIsActive }; //# sourceMappingURL=e-command-shape-button-property-is-active.js.map