mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Uses an empty text node instead of a string for svg group labels
This commit is contained in:
parent
4984f9e041
commit
0187407cff
@ -134,7 +134,8 @@ exports.addVertices = function (vert, g) {
|
|||||||
break;
|
break;
|
||||||
case 'group':
|
case 'group':
|
||||||
_shape = 'rect';
|
_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;
|
break;
|
||||||
default:
|
default:
|
||||||
_shape = 'rect';
|
_shape = 'rect';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user