Comparing version 7.0.15 to 7.0.16
{ | ||
"name": "mermaid", | ||
"version": "7.0.15", | ||
"version": "7.0.16", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
@@ -5,0 +5,0 @@ "main": "dist/mermaid.core.js", |
@@ -38,4 +38,15 @@ /** | ||
import darkStyle from './less/dark/mermaid.less' | ||
import defaultStyle from './less/default/mermaid.less' | ||
import forestStyle from './less/forest/mermaid.less' | ||
import neutralStyle from './less/neutral/mermaid.less' | ||
const themes = { | ||
dark: darkStyle, | ||
default: defaultStyle, | ||
forest: forestStyle, | ||
neutral: neutralStyle | ||
} | ||
const defaultTheme = forestStyle | ||
/** | ||
@@ -53,2 +64,4 @@ * ## Configuration | ||
var config = { | ||
theme: defaultTheme, | ||
/** | ||
@@ -430,3 +443,3 @@ * logLevel , decides the amount of logging to be used. | ||
const s = document.createElement('style') | ||
s.innerHTML = forestStyle | ||
s.innerHTML = themes[config.theme] || defaultTheme | ||
svg.insertBefore(s, svg.firstChild) | ||
@@ -433,0 +446,0 @@ |
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 too big to display
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
4152122
86772
14