refactor(Stylesheet): simplify default style creation methods by tbouffard · Pull Request #955 · maxGraph/maxGraph
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
deleted the
refactor/simplify_stylesheet_default_styles
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters