plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
483 stars 68 forks source link

How to pass an array of styles like Cytoscape needs .. the react takes a regular style #62

Closed rchancey closed 4 years ago

rchancey commented 4 years ago

I am trying to make arrows on the edges and crtoscape uses styles.. and an array of styles.. but this React wrapper seems to leverage the React style.. how to pass the array so I can get the arrow?

{ "selector": "node", "style": { "text-valign": "center", "text-halign": "left", "width": 16, "height": 16 } }, { "selector": "node[type]", "style": { "label": "data(type)" } }, { "selector": "edge", "style": { "width": 1, "curve-style": "straight" } }, { "selector": "edge[arrow]", "style": { "target-arrow-shape": "data(arrow)" } }, { "selector": "edge.hollow", "style": { "target-arrow-fill": "hollow" } }]

rchancey commented 4 years ago

Never mind.. did not see stylesheet.. answered my own question