feat: let "fit center" with the new `FitPlugin` by tbouffard · Pull Request #733 · maxGraph/maxGraph
Introduce `FitPlugin` which is intended to contain all fit methods in the future. The “fit center” implementation is inspired by the old example provided in the `Graph.fit` method. It has been updated to improve margin management and to limit rounding impacts, particularly when the method is called several times in succession. The ts-example and the story now use the new method to demonstrate its use and operation in different contexts.
tbouffard
marked this pull request as ready for review
tbouffard
deleted the
feat/fitCenter_in_new_FitPlugin
branch
This was referenced
May 19, 2025This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters