import(obj) {
    u.log(1, `flowchart[${this.data.name}].import()`);
    u.log(0, `flowchart[${this.data.name}].import() obj`, obj);
    this.data.download = (obj.download !== undefined ? obj.download : false);
    if (obj.source) this.data.type = obj.source.type;
    else this.data.type = obj.type || this.data.type || 'xml';
    if (obj.source) this.data.xml = obj.source.xml.value;
    else this.data.xml = obj.xml || this.data.xml || '';
    if (obj.source) this.data.url = obj.source.url.value;
    else this.data.url = (obj.url !== undefined ? obj.url : 'http://<source>:<port>/<pathToXml>');
    if (obj.options) this.data.zoom = obj.options.zoom;
    else this.data.zoom = obj.zoom || '100%';
    if (obj.options) this.data.center = obj.options.center;
    else this.data.center = obj.center !== undefined ? obj.center : true;
    if (obj.options) this.data.scale = obj.options.scale;
    else this.data.scale = obj.scale !== undefined ? obj.scale : true;
    if (obj.options) this.data.lock = obj.options.lock;
    else this.data.lock = obj.lock !== undefined ? obj.lock : true;
    if (obj.options) this.data.tooltip = obj.options.tooltip;
    else this.data.tooltip = obj.tooltip !== undefined ? obj.tooltip : true;
    if (obj.options) this.data.grid = obj.options.grid;
    else this.data.grid = obj.grid !== undefined ? obj.grid : false;
    if (obj.options) this.data.bgColor = obj.options.bgColor;
    else this.data.bgColor = obj.bgColor;
    this.init();
  }
/**
   *Import data object in current flowchart
   *
   * @param {Object} obj
   * @memberof Flowchart
   */
Import data object in current flowchart
@param {Object} obj
@memberof Flowchart
Import data object in current flowchart @param { Object } obj @memberof Flowchart
import(obj) {
    u.log(1, `flowchart[${this.data.name}].import()`);
    u.log(0, `flowchart[${this.data.name}].import() obj`, obj);
    this.data.download = (obj.download !== undefined ? obj.download : false);
    if (obj.source) this.data.type = obj.source.type;
    else this.data.type = obj.type || this.data.type || 'xml';
    if (obj.source) this.data.xml = obj.source.xml.value;
    else this.data.xml = obj.xml || this.data.xml || '';
    if (obj.source) this.data.url = obj.source.url.value;
    else this.data.url = (obj.url !== undefined ? obj.url : 'http://<source>:<port>/<pathToXml>');
    if (obj.options) this.data.zoom = obj.options.zoom;
    else this.data.zoom = obj.zoom || '100%';
    if (obj.options) this.data.center = obj.options.center;
    else this.data.center = obj.center !== undefined ? obj.center : true;
    if (obj.options) this.data.scale = obj.options.scale;
    else this.data.scale = obj.scale !== undefined ? obj.scale : true;
    if (obj.options) this.data.lock = obj.options.lock;
    else this.data.lock = obj.lock !== undefined ? obj.lock : true;
    if (obj.options) this.data.tooltip = obj.options.tooltip;
    else this.data.tooltip = obj.tooltip !== undefined ? obj.tooltip : true;
    if (obj.options) this.data.grid = obj.options.grid;
    else this.data.grid = obj.grid !== undefined ? obj.grid : false;
    if (obj.options) this.data.bgColor = obj.options.bgColor;
    else this.data.bgColor = obj.bgColor;
    this.init();
  }
import ( obj ) { u . log ( 1 , ` ${ this . data . name } ` ) ; u . log ( 0 , ` ${ this . data . name } ` , obj ) ; this . data . download = ( obj . download !== undefined ? obj . download : false ) ; if ( obj . source ) this . data . type = obj . source . type ; else this . data . type = obj . type || this . data . type || 'xml' ; if ( obj . source ) this . data . xml = obj . source . xml . value ; else this . data . xml = obj . xml || this . data . xml || '' ; if ( obj . source ) this . data . url = obj . source . url . value ; else this . data . url = ( obj . url !== undefined ? obj . url : 'http://<source>:<port>/<pathToXml>' ) ; if ( obj . options ) this . data . zoom = obj . options . zoom ; else this . data . zoom = obj . zoom || '100%' ; if ( obj . options ) this . data . center = obj . options . center ; else this . data . center = obj . center !== undefined ? obj . center : true ; if ( obj . options ) this . data . scale = obj . options . scale ; else this . data . scale = obj . scale !== undefined ? obj . scale : true ; if ( obj . options ) this . data . lock = obj . options . lock ; else this . data . lock = obj . lock !== undefined ? obj . lock : true ; if ( obj . options ) this . data . tooltip = obj . options . tooltip ; else this . data . tooltip = obj . tooltip !== undefined ? obj . tooltip : true ; if ( obj . options ) this . data . grid = obj . options . grid ; else this . data . grid = obj . grid !== undefined ? obj . grid : false ; if ( obj . options ) this . data . bgColor = obj . options . bgColor ; else this . data . bgColor = obj . bgColor ; this . init ( ) ; }
Import data object in current flowchart
 @param {Object} obj
 @memberof Flowchart
Import data object in current flowchart @param { Object } obj @memberof Flowchart