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)',