mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Simplify code
This commit is contained in:
parent
23dfe1e8a9
commit
0d0f793f81
@ -385,7 +385,7 @@ const render = function (id, txt, cb, container) {
|
||||
if (graphType === 'flowchart') {
|
||||
const classes = flowRenderer.getClasses(txt)
|
||||
for (const className in classes) {
|
||||
style += `\n.${className} rect,.${className} polygon,.${className} circle,.${className} ellipse{${classes[className].styles.join(' !important;')} !important;}`
|
||||
style += `\n.${className} > * { ${classes[className].styles.join(' !important; ')} !important; }`
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user