SemBioProcess / SemGen

A tool for semantics-based annotation and composition of biosimulation models
18 stars 3 forks source link

Nodes should remain highlighted after extraction and graph shouldn't move #255

Closed maxneal closed 7 years ago

maxneal commented 7 years ago

To reproduce:

Nodes should remain highlighted and the graph shouldn't start moving around again.

maxneal commented 7 years ago

There is also a related bug where groups of unselected nodes move together when you attempt to drag one node around.

All the previously selected nodes (which are no longer highlighted) are dragged together instead of the single node. The correct behavior here is that after the extraction is performed, the selected nodes should remain selected, and any time a single node is selected and dragged (in general), only that node should move. I'm guessing that fixing the main issue here (#255) will probably correct this related bug.

thompsct commented 7 years ago

Fixed the bug where one node was getting excluded.

thompsct commented 7 years ago

Selected nodes weren't being highlighted after an update. That's fixed. Second, I added an option to disable the function that runs the simulation briefly even if 'fix nodes' is set.

maxneal commented 7 years ago

Where in the GUI can I set this option to disable the post-extraction graph activity?

thompsct commented 7 years ago

I hard-coded it. I'm not sure what causes the simulation to run for a second or two after updating. I'm concerned it's built into D3.

maxneal commented 7 years ago

Confirmed the fix for the node selection. But the graph still moves when I perform an extraction on my end. i.e. I don't see a change in behavior. Maybe the change wasn't pushed to master?

thompsct commented 7 years ago

I set the simulation to set for 0.25 seconds if nodes are fixed and an extraction is added. The delay can't be too much below that or the graph doesn't load properly.