Constructs the plugin that provides fit
methods.
Reference to the enclosing AbstractGraph.
Specifies the minimum scale to be applied in fit. Set this to null
to allow any value.
Static
Readonly
pluginScales the graph such that the complete diagram fits into Graph.container and returns the current scale in the view.
To fit an initial graph prior to rendering, set GraphView.rendering to false
prior to changing the model
and execute the following after changing the model.
graph.view.rendering = false;
// here, change the model
graph.getPlugin<FitPlugin>('fit')?.fit();
graph.view.rendering = true;
graph.refresh();
To fit and center the graph, use fitCenter.
Optional number that specifies the border.
Fit and center the graph within its container.
Optional
options: FitCenterOptionsOptional options to customize the fit behavior.
The current scale in the view.
Do nothing here.
A plugin providing methods to fit the graph within its container.
Since
0.17.0