Skip to content

Commit

Permalink
text width
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-at-sri committed Aug 22, 2024
1 parent 01b058d commit deac3ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/logics/graphImpl/cytoImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function toCyNode(n: NodeData): cy.NodeDefinition {
'background-opacity': 0,
'background-image': getIcon(n.type),
'background-fit': 'contain',
'text-max-width' : '100px',
//'font-size': '0px',
'text-max-width' : '80px',
'text-wrap': 'wrap',
'text-valign': 'bottom'
},
Expand Down Expand Up @@ -112,6 +113,7 @@ export function getCytoGraph(container?: HTMLElement, data?: GraphData, options?
width: 1,
"curve-style": "bezier",
"target-arrow-shape": 'triangle',
//"font-size": "0px",
"text-rotation": "autorotate",
"label": "data(label)"
}
Expand Down

0 comments on commit deac3ec

Please sign in to comment.