mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fix foreignObject issue
This commit is contained in:
parent
5b6dfb01a6
commit
5cf061cb32
@ -48,7 +48,7 @@ function svgCreateDefs (svg) {
|
||||
.attr('y', config.nodeLabel.y)
|
||||
.attr('class', 'node-label')
|
||||
.attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility')
|
||||
.append('xhtml:p')
|
||||
.append('p')
|
||||
.html('')
|
||||
}
|
||||
|
||||
|
@ -432,7 +432,7 @@ const render = function (id, txt, cb, container) {
|
||||
s.innerHTML = scope(themes[config.theme] || defaultTheme, `#${id}`)
|
||||
svg.insertBefore(s, svg.firstChild)
|
||||
|
||||
d3.select('#d' + id).selectAll('foreignobject div').attr('xmlns', 'http://www.w3.org/1999/xhtml')
|
||||
d3.select('#' + id).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml')
|
||||
|
||||
let url = ''
|
||||
if (config.arrowMarkerAbsolute) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user