mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 19:54:17 +01:00
Simplify code
This commit is contained in:
@@ -385,7 +385,7 @@ const render = function (id, txt, cb, container) {
|
|||||||
if (graphType === 'flowchart') {
|
if (graphType === 'flowchart') {
|
||||||
const classes = flowRenderer.getClasses(txt)
|
const classes = flowRenderer.getClasses(txt)
|
||||||
for (const className in classes) {
|
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; }`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user