OneDriveLibrary.js 834 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * Copyright (c) 2006-2017, JGraph Ltd
  3. * Copyright (c) 2006-2017, Gaudenz Alder
  4. */
  5. OneDriveLibrary = function(ui, data, meta)
  6. {
  7. OneDriveFile.call(this, ui, data, meta);
  8. };
  9. //Extends mxEventSource
  10. mxUtils.extend(OneDriveLibrary, OneDriveFile);
  11. /**
  12. * Translates this point by the given vector.
  13. *
  14. * @param {number} dx X-coordinate of the translation.
  15. * @param {number} dy Y-coordinate of the translation.
  16. */
  17. OneDriveLibrary.prototype.isAutosave = function()
  18. {
  19. return true;
  20. };
  21. /**
  22. * Overridden to avoid updating data with current file.
  23. */
  24. OneDriveLibrary.prototype.doSave = function(title, success, error)
  25. {
  26. this.saveFile(title, false, success, error);
  27. };
  28. /**
  29. * Returns the location as a new object.
  30. * @type mx.Point
  31. */
  32. OneDriveLibrary.prototype.open = function()
  33. {
  34. // Do nothing - this should never be called
  35. };