'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * Licensed Materials - Property of IBM * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2019 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['../../../../../lib/@waca/dashboard-common/dist/core/APIFactory', '../UndoRedoAPI'], function (APIFactory, UndoRedoAPI) { var UndoRedo = function () { function UndoRedo(undoRedoController) { _classCallCheck(this, UndoRedo); this.undoRedoController = undoRedoController; } UndoRedo.prototype.getAPI = function getAPI() { return APIFactory.createAPI(this, [UndoRedoAPI]); }; UndoRedo.prototype.canUndo = function canUndo() { return this.undoRedoController.canUndo(); }; UndoRedo.prototype.canRedo = function canRedo() { return this.undoRedoController.canRedo(); }; UndoRedo.prototype.undo = function undo() { return this.undoRedoController.undo(); }; UndoRedo.prototype.redo = function redo() { return this.undoRedoController.redo(); }; UndoRedo.prototype.clearStack = function clearStack() { this.undoRedoController.clearStack(); }; return UndoRedo; }(); return UndoRedo; }); //# sourceMappingURL=UndoRedo.js.map