Merge pull request #429 from daveaglick/master

Uses an empty text node instead of a string for svg group labels
This commit is contained in:
Knut Sveidqvist 2016-12-10 10:05:01 +01:00 committed by GitHub
commit a3fa318edc
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ exports.addVertices = function (vert, g) {
break;
case 'group':
_shape = 'rect';
verticeText = '';
// Need to create a text node if using svg labels, see #367
verticeText = conf.htmlLabels ? '' : document.createElementNS('http://www.w3.org/2000/svg', 'text');
break;
default:
_shape = 'rect';