UndoRedoAPI.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. "use strict";
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class UndoRedoAPI
  10. * @hideconstructor
  11. * @classdesc API class that handles undo and redo functionality
  12. */
  13. define([], function () {
  14. return function () {
  15. function UndoRedoAPI() {
  16. _classCallCheck(this, UndoRedoAPI);
  17. }
  18. /**
  19. * @function UndoRedoAPI#canUndo
  20. * @description Determines whether undo can be applied.
  21. * @returns True if undo can be applied, otherwise false
  22. */
  23. UndoRedoAPI.prototype.canUndo = function canUndo() {};
  24. /**
  25. * @function UndoRedoAPI#canRedo
  26. * @description Determines whether redo can be applied.
  27. * @returns True if redo can be applied, otherwise false
  28. */
  29. UndoRedoAPI.prototype.canRedo = function canRedo() {};
  30. /**
  31. * @function UndoRedoAPI#undo
  32. * @description Undo the last operation.
  33. */
  34. UndoRedoAPI.prototype.undo = function undo() {};
  35. /**
  36. * @function UndoRedoAPI#redo
  37. * @description Redo will restore the last action that was undone.
  38. */
  39. UndoRedoAPI.prototype.redo = function redo() {};
  40. /**
  41. * @function UndoRedoAPI#clearStack
  42. * @description Clears the full undo/redo stack.
  43. */
  44. UndoRedoAPI.prototype.clearStack = function clearStack() {};
  45. return UndoRedoAPI;
  46. }();
  47. });
  48. //# sourceMappingURL=UndoRedoAPI.js.map