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())
Sigma with option
autoRescale: false, autoCenter:falseSearching 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())