Skip to content

Commit

Permalink
merge proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-at-sri committed Aug 13, 2024
1 parent 0316c13 commit c21ba90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/logics/graphImpl/cytoImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ function toCyNode(n: NodeData): cy.NodeDefinition {
'background-color': color,
'background-opacity': 0,
'background-image': getIcon(n.type),
'background-fit': 'none'
'background-fit': 'none',
'text-max-width' : '100px',
'text-wrap': 'wrap'
},
position: { x: n.x ? n.x : Math.random(), y: n.y ? n.y : Math.random() },
};
Expand Down Expand Up @@ -108,7 +110,8 @@ export function getCytoGraph(container?: HTMLElement, data?: GraphData, options?
style: {
width: 1,
"curve-style": "bezier",
"target-arrow-shape": 'triangle',
"target-arrow-shape": 'triangle',
"text-rotation": "autorotate",
"label": "data(label)"
}
}
Expand Down

0 comments on commit c21ba90

Please sign in to comment.