mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
Fix code style issues
This commit is contained in:
@@ -337,15 +337,14 @@ const drawClass = function(elem, classDef) {
|
|||||||
let title;
|
let title;
|
||||||
if (classDef.link) {
|
if (classDef.link) {
|
||||||
title = g
|
title = g
|
||||||
.append("svg:a")
|
.append('svg:a')
|
||||||
.attr("xlink:href", classDef.link)
|
.attr('xlink:href', classDef.link)
|
||||||
.attr('xlink:target', '_blank')
|
.attr('xlink:target', '_blank')
|
||||||
.attr('xlink:title', classDef.tooltip)
|
.attr('xlink:title', classDef.tooltip)
|
||||||
.append('text')
|
.append('text')
|
||||||
.attr('y', conf.textHeight + conf.padding)
|
.attr('y', conf.textHeight + conf.padding)
|
||||||
.attr('x', 0);
|
.attr('x', 0);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
title = g
|
title = g
|
||||||
.append('text')
|
.append('text')
|
||||||
.attr('y', conf.textHeight + conf.padding)
|
.attr('y', conf.textHeight + conf.padding)
|
||||||
@@ -370,7 +369,7 @@ const drawClass = function(elem, classDef) {
|
|||||||
.append('tspan')
|
.append('tspan')
|
||||||
.text(classTitleString)
|
.text(classTitleString)
|
||||||
.attr('class', 'title');
|
.attr('class', 'title');
|
||||||
|
|
||||||
// If class has annotations the title needs to have an offset of the text height
|
// If class has annotations the title needs to have an offset of the text height
|
||||||
if (!isFirst) classTitle.attr('dy', conf.textHeight);
|
if (!isFirst) classTitle.attr('dy', conf.textHeight);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user