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