b3a060a194
Former-commit-id: 648b0f02cb
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
// $Id = DriveFile.js,v 1.12 2010-01-02 09 =45 =14 gaudenz Exp $
|
|
// Copyright (c) 2006-2014, JGraph Ltd
|
|
/**
|
|
* Constructs a new point for the optional x and y coordinates. If no
|
|
* coordinates are given, then the default values for <x> and <y> are used.
|
|
* @constructor
|
|
* @class Implements a basic 2D point. Known subclassers = {@link mxRectangle}.
|
|
* @param {number} x X-coordinate of the point.
|
|
* @param {number} y Y-coordinate of the point.
|
|
*/
|
|
OneDriveLibrary = function(ui, data, meta)
|
|
{
|
|
OneDriveFile.call(this, ui, data, meta);
|
|
};
|
|
|
|
//Extends mxEventSource
|
|
mxUtils.extend(OneDriveLibrary, OneDriveFile);
|
|
|
|
/**
|
|
* Translates this point by the given vector.
|
|
*
|
|
* @param {number} dx X-coordinate of the translation.
|
|
* @param {number} dy Y-coordinate of the translation.
|
|
*/
|
|
OneDriveLibrary.prototype.isAutosave = function()
|
|
{
|
|
return false;
|
|
};
|
|
|
|
/**
|
|
* Overridden to avoid updating data with current file.
|
|
*/
|
|
OneDriveLibrary.prototype.doSave = function(title, success, error)
|
|
{
|
|
this.saveFile(title, false, success, error);
|
|
};
|
|
|
|
/**
|
|
* Returns the location as a new object.
|
|
* @type mx.Point
|
|
*/
|
|
OneDriveLibrary.prototype.open = function()
|
|
{
|
|
// Do nothing - this should never be called
|
|
};
|