9von10 / ngx-cytoscapejs

Angular 13+ Cytoscape.js Wrapper
MIT License
16 stars 5 forks source link

Apply background color based on CX #12

Closed SherlockMones closed 2 years ago

SherlockMones commented 2 years ago

Hello :)

Problem

The CX2JS converter generates a backgroundColor, that could be applied to the canvas you're rendering the graph in (that's not a problem per se, but would be a nice feature).

You'll find the respective line of code here.

Steps to reproduce

A sample network that has a background color is 5820d988-68d5-11e7-961c-0ac135e8bacf (you can take a look at it here ). When using your library to render this network, the background stays white.

Favored solution

It would be great, if you could expand the @Inputs to allow users to toggle application of the background color.

Project

Angular 13.3.4 Node: 16.15.0 NgRx 13.1.0 ngx-cytoscapejs 1.0.0