From fd49c8a414332a2b97807e01f5b3fbf26b2269a2 Mon Sep 17 00:00:00 2001 From: chiayin Date: Wed, 13 Mar 2024 17:09:12 +0800 Subject: [PATCH] fix: Issues #211 done. --- src/module/cytoscapeMap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/module/cytoscapeMap.js b/src/module/cytoscapeMap.js index 84c0e12..02449c7 100644 --- a/src/module/cytoscapeMap.js +++ b/src/module/cytoscapeMap.js @@ -145,7 +145,8 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu //'border-radius': '5', 'shape':'data(shape)', 'text-wrap': 'wrap', - 'text-max-width':75, + 'text-max-width': 'data(width)', // 在 div 內換行 + 'text-overflow-wrap': 'anywhere', // 在 div 內換行 'text-halign': 'center', 'text-valign': 'center', 'height': 'data(height)',