feat: CellStateStyle port constraints accept multiple DirectionValue by tbouffard · Pull Request #721 · maxGraph/maxGraph

@tbouffard

Previously, the properties only accept a single DIRECTION enum value. It wasn't possible to pass a string related to
the DirectionValue type, it generated a TS error.
In addition, it is now possible to pass several values, as this was possible in mxGraph. This is what the Orthogonal
story requires for example.

For backward compatibility, the implementation still support the former mxGraph configuration where the directions were
passed as a concatenated string. This ensures that the mxGraph XML models can be correctly loaded.

About 20 tests have been added to validate the implementation.

@tbouffard

@tbouffard

@tbouffard tbouffard marked this pull request as ready for review

March 25, 2025 15:35

@tbouffard tbouffard deleted the feat/type_cellstyle_portConstraint_allow_multiple_directions branch

March 25, 2025 18:08