feat: simplify types used to register shapes by tbouffard · Pull Request #768 · maxGraph/maxGraph

@tbouffard

Previously, there were TSC errors when registering some builtin or custom shape because their constructor didn't match
the signature of the `Shape` constructor.
The type of various `CellRenderer` properties and methods has been updated to fix this, so it is no longer necessary to
add some 'ts-ignore' to silently ignore these false errors.

In addition:
  - Various improvements in the JSDoc of `CellRenderer`
  - `CellRenderer.getShape` allows `undefined` parameter
  - Move `ActorShape` to the directory storing vertex shapes for consistency

@tbouffard added the bug

Something isn't working

label

Apr 17, 2025

@tbouffard tbouffard marked this pull request as ready for review

April 17, 2025 06:34

@tbouffard tbouffard changed the title fix: simplify types used to register shapes feat: simplify types used to register shapes

Apr 17, 2025

@tbouffard tbouffard deleted the fix/improve_type_to_registerShape branch

April 17, 2025 08:57