From deac3ec6a8faef668426a04767146dfc6b260e1c Mon Sep 17 00:00:00 2001 From: Brian Blonski Date: Wed, 21 Aug 2024 17:25:56 -0700 Subject: [PATCH] text width --- src/logics/graphImpl/cytoImpl.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logics/graphImpl/cytoImpl.ts b/src/logics/graphImpl/cytoImpl.ts index 184566c..76874ee 100644 --- a/src/logics/graphImpl/cytoImpl.ts +++ b/src/logics/graphImpl/cytoImpl.ts @@ -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' }, @@ -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)" }