iVis-at-Bilkent / sbgnviz.js

A web based visualization tool for process description maps in SBGN
http://www.cs.bilkent.edu.tr/~ivis/SBGNViz_sample_app/
GNU Lesser General Public License v3.0
35 stars 14 forks source link

Fix for getting sbgnml file map properties #219

Closed okg21 closed 3 months ago

okg21 commented 3 months ago

Fix related to the newt issue https://github.com/iVis-at-Bilkent/newt/issues/689. Now the sbgnml files properties are being returned correctly.

In mainUtilities.getMapProperties in 'sbgnml' format conditional branch there exist an incorrect function call. The function is not called, but do we need to call this function in a proper way?


mainUtilities.getMapProperties = function() {
  if( elementUtilities.fileFormat !== undefined){
    if( elementUtilities.fileFormat == 'sbgnml'){
-      this.showNodesSmart
+      return sbgnmlToJson.mapPropertiesToObj();
    }
    else if(