Comparing version 8.0.0-alpha.2 to 8.0.0-alpha.3
{ | ||
"name": "mermaid", | ||
"version": "8.0.0-alpha.2", | ||
"version": "8.0.0-alpha.3", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
@@ -5,0 +5,0 @@ "main": "dist/mermaid.core.js", |
@@ -431,6 +431,16 @@ /** | ||
const svg = element.firstChild | ||
const s = document.createElement('style') | ||
s.innerHTML = scope(themes[config.theme] || defaultTheme, `#${id}`) | ||
svg.insertBefore(s, svg.firstChild) | ||
const firstChild = svg.firstChild | ||
const style1 = document.createElement('style') | ||
style1.innerHTML = scope(themes[config.theme] || defaultTheme, `#${id}`) | ||
svg.insertBefore(style1, firstChild) | ||
const style2 = document.createElement('style') | ||
const cs = window.getComputedStyle(svg) | ||
style2.innerHTML = `#${id} { | ||
color: ${cs.color}; | ||
font: ${cs.font}; | ||
}` | ||
svg.insertBefore(style2, firstChild) | ||
d3.select('#' + id).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml') | ||
@@ -437,0 +447,0 @@ |
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
11729509
89456