Comparing version 8.0.0-alpha.9 to 8.0.0-beta.1
{ | ||
"name": "mermaid", | ||
"version": "8.0.0-alpha.9", | ||
"version": "8.0.0-beta.1", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
@@ -5,0 +5,0 @@ "main": "dist/mermaid.core.js", |
@@ -52,3 +52,4 @@ /** | ||
const config = { | ||
theme: themes.default, | ||
theme: 'default', | ||
themeCSS: undefined, | ||
@@ -384,4 +385,11 @@ /** | ||
// pre-defined theme | ||
let style = config.theme !== undefined ? themes[config.theme] : '' | ||
// user provided theme CSS | ||
if (config.themeCSS !== undefined) { | ||
style += `\n${config.themeCSS}` | ||
} | ||
// classDef | ||
let style = themes[config.theme] || themes.default | ||
if (graphType === 'flowchart') { | ||
@@ -388,0 +396,0 @@ const classes = flowRenderer.getClasses(txt) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11124143
84676