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
You're right, I added this setting while implementing autoRescale, but I never plugged it. I'll try to implement it as soon as I can.
About the workaround, you are using the same we use in the nodes dragging story. It should be fine, unless you have some operation that might move the graph affect its scale by a lot. In which case, calling renderer.setCustomBBox(null); will go back to the default behaviour, which is auto rescale and auto center, basically.
Since I actually added that setting and you found it, I agree it should work :) so I just add the "bug" label. Thanks for the report!
Sigma with option
autoRescale: false, autoCenter:false
Searching the code, I cannot find any code that is checking the autoCenter option.
Use case
A user wants to drag a icon from a toolbar into a sigma chart to create a node.
Expected behavior
When the user is dropping the icon on the chart a node is added to the chart at the position where it was dropped.
Actual behaviour
After droppping a node on the chart, Sigma automaticly centers the chart making the icon move away from the dropped position.
Possible workaround
It seems like adding the following line of code after sigma is initialized solves it but I dont know if there are any negavtive effects to it.
renderer.setCustomBBox(renderer.getBBox())
The text was updated successfully, but these errors were encountered: