You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the above settings, the graph is not laid out correctly when mount() is used. It will only display a straight line graph.
As far as I've verified, quality=proof only works when the initial option is container.
@YusaNazuna I will look into the layout after mount() in detail. However, considering the cue you gave "It will only display a straight line graph.", this generally happens when all nodes are at the same position (on top of each other) before layout and randomize: false is used. In such a case, using a randomized layout (positioning nodes randomly) is a more logical option to obtain a good layout. If this is the case, I mean, all nodes are at the same position after you mount the container, I suggest using randomize: true.
@hasanbalci
Thanks for checking it out for me.
The node and edge data I prepared doesn't have any position data.
But if I follow your demo.html and do not use mount(), the graph is not straight.
I'm puzzled by this phenomenon.
There's a reason why I don't want it to be randomize:true.
The reason I don't want to set it to randomize:true is because I want to increase or decrease the distance between each edge by referring to the weight and other parameters in the data.
Conversely, if there is a way to adjust edge distances with randomize:true, I can use the mount() specification without modifying it this time.
With the above settings, the graph is not laid out correctly when
mount()
is used. It will only display a straight line graph.As far as I've verified, quality=proof only works when the initial option is container.
Works pettern
app.tsx
index.html
Not works pettern
app.tsx
cytoscape.tsx
index.html
Can you confirm this issue?
The text was updated successfully, but these errors were encountered: