Closed brettzallen closed 3 weeks ago
This looks like a good start to the issue. Let's expand it with a demo of your issue (e.g. jsbin) so we can move forward to the next step.
Assigning to @brettzallen until he posts his demo
Here is the demo!
https://jsbin.com/gitebepobo/edit?js,console
it looks like the positions are 0 instead of null in this case. Interestingly if you click the output the graph appears to work, but I am not sure where the positions are coming from. Regardless, I just need the coordinates so the display doesn't matter in this case
See the output graph working, but the positions are not...
@maxkfranz don't think I am able to assign this back to you but that is the demo
Here are some references on how asynchronous code works in JS and force-directed (continuous/async) layouts. That should sort it out.
See
Before you post
A request for help or a request for a how-to should be directed to Phind.
lol
Environment info
Current (buggy) behaviour
What does the bug do?
I have this simple code:
and I am getting what looks like a correct output:
But then when I uncomment those three more nodes:
all of the sudden something breaks:
Desired behaviour
What do you expect Cytoscape.js to do instead?
I would expect positions to be generated for the non-compound nodes just the same as it did in the first iteration.
Minimum steps to reproduce
What do you need to do to reproduce the issue?
Fork/clone this JSBin demo and reproduce your issue so that your issue can be addressed quickly and effectively: http://jsbin.com/fiqugiq
Just run the code I attached above!
For reviewers
Reviewers should ensure that the following tasks are carried out for incorporated issues:
master
,unstable
, and1.1.x
if the current release is 1.2).bug
, if necessary.