mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
#5237 fix for broken multiple classDef
This commit is contained in:
parent
a35e62db14
commit
d408efdd1d
@ -152,6 +152,7 @@ let cssClasses = newClassesList(); // style classes defined by a classDef
|
|||||||
*
|
*
|
||||||
* @param nodes
|
* @param nodes
|
||||||
* @param nodeData
|
* @param nodeData
|
||||||
|
* @param classes
|
||||||
*/
|
*/
|
||||||
function insertOrUpdateNode(nodes, nodeData, classes) {
|
function insertOrUpdateNode(nodes, nodeData, classes) {
|
||||||
if (!nodeData.id || nodeData.id === '</join></fork>' || nodeData.id === '</choice>') {
|
if (!nodeData.id || nodeData.id === '</join></fork>' || nodeData.id === '</choice>') {
|
||||||
@ -248,7 +249,7 @@ function getClassesFromDbInfo(dbInfoItem) {
|
|||||||
}
|
}
|
||||||
//add comma for all other classes
|
//add comma for all other classes
|
||||||
else {
|
else {
|
||||||
classStr += dbInfoItem.classes[i] + ',';
|
classStr += dbInfoItem.classes[i] + ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return classStr;
|
return classStr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user