Closed rchancey closed 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" } }]
Never mind.. did not see stylesheet.. answered my own question
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" } }]