临时文件
This commit is contained in:
28
HT.Cloud.Web/wwwroot/lib/drawio/diagramly/DesktopLibrary.js
Normal file
28
HT.Cloud.Web/wwwroot/lib/drawio/diagramly/DesktopLibrary.js
Normal file
@ -0,0 +1,28 @@
|
||||
// Copyright (c) 2006-2020, JGraph Ltd
|
||||
/**
|
||||
*
|
||||
*/
|
||||
DesktopLibrary = function(ui, data, fileObj)
|
||||
{
|
||||
LocalLibrary.call(this, ui, data, fileObj.name);
|
||||
this.fileObj = fileObj;
|
||||
};
|
||||
|
||||
//Extends LocalLibrary
|
||||
mxUtils.extend(DesktopLibrary, LocalLibrary);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
DesktopLibrary.prototype.getHash = function()
|
||||
{
|
||||
return 'S' + encodeURIComponent(this.fileObj.path);
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
DesktopLibrary.prototype.save = function(revision, success, error)
|
||||
{
|
||||
LocalFile.prototype.saveFile.apply(this, arguments);
|
||||
};
|
Reference in New Issue
Block a user