UNPKG

@wcardinal/wcardinal-geditor

Version:

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

31 lines 1.27 kB
import { __extends } from "tslib"; import { DCommandBase } from "@wcardinal/wcardinal-ui"; var ECommandDocumentSnapTargetToggleVisibility = /** @class */ (function (_super) { __extends(ECommandDocumentSnapTargetToggleVisibility, _super); function ECommandDocumentSnapTargetToggleVisibility(snapper) { var _this = _super.call(this) || this; _this._snapper = snapper; return _this; } Object.defineProperty(ECommandDocumentSnapTargetToggleVisibility.prototype, "snapper", { get: function () { return this._snapper; }, enumerable: false, configurable: true }); ECommandDocumentSnapTargetToggleVisibility.prototype.execute = function () { return this.redo(); }; ECommandDocumentSnapTargetToggleVisibility.prototype.redo = function () { var target = this._snapper.target; target.visible = !target.visible; return true; }; ECommandDocumentSnapTargetToggleVisibility.prototype.undo = function () { return this.redo(); }; return ECommandDocumentSnapTargetToggleVisibility; }(DCommandBase)); export { ECommandDocumentSnapTargetToggleVisibility }; //# sourceMappingURL=e-command-document-snap-target-toggle-visibility.js.map