feat!: introduce global config for the Manhattan connector by tbouffard · Pull Request #681 · maxGraph/maxGraph

@tbouffard

Introduce a dedicated `ManhattanConnectorConfig` global object and its companion reset function.

BREAKING CHANGES: `ManhattanConnector` is now configured with the global `ManhattanConnectorConfig` object.
The following properties that were previously on `EdgeStyle` have moved to `ManhattanConnectorConfig`:
  - `MANHATTAN_END_DIRECTIONS` to `endDirections`
  - `MANHATTAN_MAX_ALLOWED_DIRECTION_CHANGE` to `maxAllowedDirectionChange`
  - `MANHATTAN_MAXIMUM_LOOPS` to `maxLoops`
  - `MANHATTAN_START_DIRECTIONS` to `startDirections`
  - `MANHATTAN_STEP` to `step`

coderabbitai[bot]

@tbouffard

coderabbitai[bot]

@tbouffard

@tbouffard

Also make the code more robust and better use the maxGraph API.

coderabbitai[bot]

@tbouffard

@tbouffard tbouffard deleted the feat/introduce_ManhattanConnectorConfig branch

February 18, 2025 06:44

This was referenced

Feb 18, 2025