jimmybow / visdcc

Dash Core Components for Visualization.
MIT License
144 stars 18 forks source link

Is it possible to trap "stabilizationIterationsDone" event? #27

Closed LeMoussel closed 2 years ago

LeMoussel commented 3 years ago

I load the Network with physics and stabilization enabled. With visdcc, Is there any possibility once the nodes are stabilized to trap the stabilized event? When the stabilized event is fired, I want to disable the physics via network.setOptions.

For example, with vis.js, I do this:

network = new vis.Network(container, data, options);

network.on("stabilizationIterationsDone", function () {
    network.setOptions( { physics: false } );
});
jimmybow commented 2 years ago

I add a new feature on visdcc.Network you can use this.net in javascript to get the instance of vis.Network see the new v0.0.50 example code