1/** 2 * Copyright (c) 2006-2017, JGraph Ltd 3 * Copyright (c) 2006-2017, Gaudenz Alder 4 */ 5DriveLibrary = function(ui, data, desc) 6{ 7 DriveFile.call(this, ui, data, desc); 8}; 9 10//Extends mxEventSource 11mxUtils.extend(DriveLibrary, DriveFile); 12 13/** 14 * Translates this point by the given vector. 15 * 16 * @param {number} dx X-coordinate of the translation. 17 * @param {number} dy Y-coordinate of the translation. 18 */ 19DriveLibrary.prototype.isAutosave = function() 20{ 21 return true; 22}; 23 24/** 25 * Translates this point by the given vector. 26 * 27 * @param {number} dx X-coordinate of the translation. 28 * @param {number} dy Y-coordinate of the translation. 29 */ 30DriveLibrary.prototype.save = function(revision, success, error) 31{ 32 this.ui.drive.saveFile(this, revision, mxUtils.bind(this, function(resp) 33 { 34 this.desc = resp; 35 36 if (success != null) 37 { 38 success(resp); 39 } 40 }), error); 41}; 42 43/** 44 * Returns the location as a new object. 45 * @type mx.Point 46 */ 47DriveLibrary.prototype.open = function() 48{ 49 // Do nothing - this should never be called 50}; 51