Fix for classDiagram-v2 support for generics using '~'

This commit is contained in:
Ashish Jain
2021-08-19 17:51:22 +02:00
parent d09dea7e5e
commit 46a3d10e8a

View File

@@ -648,8 +648,12 @@ const class_box = (parent, node) => {
let classTitleString = node.classData.id;
if (node.classData.type !== undefined && node.classData.type !== '') {
if (getConfig().flowchart.htmlLabels) {
classTitleString += '<' + node.classData.type + '>';
} else {
classTitleString += '<' + node.classData.type + '>';
}
}
const classTitleLabel = labelContainer
.node()
.appendChild(createLabel(classTitleString, node.labelStyle, true, true));