1/** 2 * Copyright (c) 2020, JGraph Ltd 3 * Copyright (c) 2020, Gaudenz Alder 4 */ 5EmbedFile = function(ui, data, desc) 6{ 7 DrawioFile.call(this, ui, data); 8 9 this.desc = desc || {}; 10 this.mode = App.MODE_EMBED; 11}; 12 13//Extends DrawioFile 14mxUtils.extend(EmbedFile, DrawioFile); 15 16EmbedFile.prototype.getMode = function() 17{ 18 return this.mode; 19}; 20 21EmbedFile.prototype.getTitle = function() 22{ 23 return this.desc.title || ''; 24}; 25 26//This class need to be implemented by integrations if some file features like real-time collaboration is needed