mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-31 06:06:44 +02:00
Fix code style errors
This commit is contained in:
@@ -3,18 +3,18 @@ import { logger } from '../../logger';
|
|||||||
let relations = [];
|
let relations = [];
|
||||||
let classes = {};
|
let classes = {};
|
||||||
|
|
||||||
const splitClassNameAndType = function(id){
|
const splitClassNameAndType = function(id) {
|
||||||
let genericType = '';
|
let genericType = '';
|
||||||
let className = id;
|
let className = id;
|
||||||
|
|
||||||
if(id.indexOf('~') > 0){
|
if(id.indexOf('~') > 0) {
|
||||||
let split = id.split('~');
|
let split = id.split('~');
|
||||||
className = split[0];
|
className = split[0];
|
||||||
genericType = split[1];
|
genericType = split[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
return {className: className, type: genericType};
|
return { className: className, type: genericType };
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function called by parser when a node definition has been found.
|
* Function called by parser when a node definition has been found.
|
||||||
|
@@ -320,7 +320,7 @@ const drawClass = function(elem, classDef) {
|
|||||||
|
|
||||||
let classTitleString = classDef.id;
|
let classTitleString = classDef.id;
|
||||||
|
|
||||||
if(classDef.genericType !== undefined && classDef.genericType !== ''){
|
if (classDef.genericType !== undefined && classDef.genericType !== '') {
|
||||||
classTitleString += '<' + classDef.genericType + '>';
|
classTitleString += '<' + classDef.genericType + '>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user