Skip to content

autoCenter: false does not seem to work correctly #1491

Description

@Whiteflight

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())

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions