swimlane / ngx-graph

Graph visualization library for angular
https://swimlane.github.io/ngx-graph
MIT License
922 stars 285 forks source link

feat: add ng-content at the end of the svg to allow users to add custom svg elements over the nodes. #531

Open Kr0san89 opened 8 months ago

Kr0san89 commented 8 months ago

As SVG Renders in Order as provided in the DOM with the current approach we can only add elements in the background but this ng-content allows with the class "end-content" to brings them into the foreground

What kind of change does this PR introduce? (check one with "x")

What is the current behavior? (You can also link to an open issue here) Custom SVG Elements only in Background

What is the new behavior? Custom SVG Elements in Background and Foreground

Does this PR introduce a breaking change? (check one with "x")

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ... If someone used already the css class "end-content" the svg elements would go into foreground, but i guess this is unlikely

Other information: