mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 04:49:44 +02:00
#1657 Handling class definitions for flowchart beta
This commit is contained in:
@@ -839,6 +839,9 @@ export const insertNode = (elem, node, dir) => {
|
||||
if (node.tooltip) {
|
||||
el.attr('title', node.tooltip);
|
||||
}
|
||||
if (node.class) {
|
||||
el.attr('class', 'node default ' + node.class);
|
||||
}
|
||||
|
||||
nodeElems[node.id] = newEl;
|
||||
|
||||
|
Reference in New Issue
Block a user