mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 05:19:58 +02:00
#1694 Applying styles from the graph definition for flowcharts
This commit is contained in:
@@ -15,7 +15,10 @@ export const labelHelper = (parent, node, _classes, isNode) => {
|
||||
.attr('id', node.domId || node.id);
|
||||
|
||||
// Create the label and insert it after the rect
|
||||
const label = shapeSvg.insert('g').attr('class', 'label');
|
||||
const label = shapeSvg
|
||||
.insert('g')
|
||||
.attr('class', 'label')
|
||||
.attr('style', node.labelStyle);
|
||||
|
||||
const text = label
|
||||
.node()
|
||||
|
Reference in New Issue
Block a user