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

Save-load bug #130

Closed ugurdogrusoz closed 8 years ago

ugurdogrusoz commented 8 years ago

The below map did not contain any bend points upon save. But when you load it, a couple of the edges have a bend point each at arbitrary locations!

Once the problem is fixed, we should put this diagram into our samples as default (first) one!

neuronal_muscle_signalling.sbgn.txt

ugurdogrusoz commented 8 years ago

This is the original map. When you load this and layout, bend points disappear on the drawing but when you save it, apparently they are stored in the file and come back upon load in arbitrary locations. neuronal_muscle_signalling_org.sbgn.txt

metincansiper commented 8 years ago

Upon save we are using 'edge._private.rscratch.segpts' data, which is not updated when we remove the data related to bendpoints before performing layout, to get the bendpoint positions. I have updated it and it seems to be working now.