feat: let "fit center" with the new `FitPlugin` by tbouffard · Pull Request #733 · maxGraph/maxGraph

@tbouffard

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

@tbouffard

@tbouffard tbouffard marked this pull request as ready for review

March 26, 2025 19:49

coderabbitai[bot]

@tbouffard

@tbouffard

coderabbitai[bot]

@tbouffard tbouffard deleted the feat/fitCenter_in_new_FitPlugin branch

March 26, 2025 20:43

This was referenced

May 19, 2025