refactor(Stylesheet): simplify default style creation methods by tbouffard · Pull Request #955 · maxGraph/maxGraph

@tbouffard

Replace imperative property assignment with object literal syntax
in createDefaultVertexStyle() and createDefaultEdgeStyle() methods.
This makes the code more concise and readable without changing behavior.

- Use direct object literal returns instead of empty object + assignments
- Add explicit return type annotations (CellStateStyle)

@tbouffard tbouffard deleted the refactor/simplify_stylesheet_default_styles branch

November 24, 2025 10:53