Fix line styling (dashed / thick) when not using HTML labels option

This commit is contained in:
jsyang 2019-04-24 16:31:09 +01:00
parent b2c833b879
commit fa9cf2b345
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ export const addEdges = function (edges, g) {
edgeData.label = '<span class="edgeLabel">' + edge.text + '</span>'
} else {
edgeData.labelType = 'text'
edgeData.style = 'stroke: #333; stroke-width: 1.5px;fill:none'
edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none'
edgeData.label = edge.text.replace(/<br>/g, '\n')
}
} else {