mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
Added conditional to fallback to old style
This commit is contained in:
@@ -331,6 +331,12 @@ const drawClass = function(elem, classDef) {
|
|||||||
let returnType = parsedText[6] ? ' : ' + parsedText[6] : '';
|
let returnType = parsedText[6] ? ' : ' + parsedText[6] : '';
|
||||||
displayText =
|
displayText =
|
||||||
visibility + methodName + '(' + parameterType + ' ' + parameterName + ')' + returnType;
|
visibility + methodName + '(' + parameterType + ' ' + parameterName + ')' + returnType;
|
||||||
|
} else {
|
||||||
|
let methodEnd = displayText.indexOf(')') + 1;
|
||||||
|
classifier = displayText.substring(methodEnd, methodEnd + 1);
|
||||||
|
if (classifier !== '' && classifier !== ' ') {
|
||||||
|
displayText = displayText.replace(classifier, '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (classifier) {
|
switch (classifier) {
|
||||||
|
Reference in New Issue
Block a user