Node position doesn't doesn't survive browser reload ... #146
Comments
@pecastro I added a 'preset' mode that will load positions from the db in 3e96aa9 My plan is to separate completely visual state from the data. This means removing positions, layouts, zoom, etc from the network (nodes/edges) data, and have a separate model called 'Views' (better name needed?) to store / retrieve a state of the graph. That means you can have many different visualizations of a same data, save them, share them, etc. Does this sounds like an interesting feature for you? |
Yes that could potentially be an interesting feature. |
@clemsos I've realized why I couldn't see the node changes months ago and why now I couldn't seem to update the position of the nodes. It turns out that in most of the nodesMethods.js functions there's a messing required search param, the topogramId. Notice the output I get in my DB which has many topograms...
|
Wow, you are right. That will make anything with the same name/id to be fetched from different topograms. I will update the tests to pass with a topogramId argument and merge your PR. One thing is that there is currently no update of node/edges data from Topogram's interface (except moving a node). So I guess moving node is the only function affected by the bug so far. I want to focus on having good a working visualization engine before introducing data editing feature. That is why I am trying to separate the data model from 'view' as far as possible (see #152 ). I have started to implement this on #153 |
... conversely changing the node position at the DB level doesn't reflect a position change in the browser.
The text was updated successfully, but these errors were encountered: