mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
code style
This commit is contained in:
parent
7f31e624ca
commit
38097c9095
@ -196,7 +196,6 @@ const setClickFunc = function(_id, functionName, tooltip) {
|
|||||||
funs.push(function() {
|
funs.push(function() {
|
||||||
const elem = document.querySelector(`[id="${elemId}"]`);
|
const elem = document.querySelector(`[id="${elemId}"]`);
|
||||||
if (elem !== null) {
|
if (elem !== null) {
|
||||||
|
|
||||||
elem.addEventListener(
|
elem.addEventListener(
|
||||||
'click',
|
'click',
|
||||||
function() {
|
function() {
|
||||||
|
@ -432,8 +432,7 @@ const drawClass = function(elem, classDef) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (classDef.tooltip) {
|
if (classDef.tooltip) {
|
||||||
title.insert('title')
|
title.insert('title').text(classDef.tooltip);
|
||||||
.text(classDef.tooltip);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
membersLine.attr('x2', rectWidth);
|
membersLine.attr('x2', rectWidth);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user