Simplify code

This commit is contained in:
Tyler Long 2018-03-14 21:38:29 +08:00
parent 23dfe1e8a9
commit 0d0f793f81

View File

@ -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; }`
}
}