UNPKG

@wcardinal/wcardinal-geditor

Version:

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

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