mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 16:29:40 +02:00
foreignObject works. labels work! Yeah!
This commit is contained in:
@@ -145,7 +145,10 @@ function renderCommitHistory(svg, commitid, branches, direction) {
|
||||
.text(commit.id);
|
||||
var branch = _.find(branches, ["commit", commit]);
|
||||
if (branch) {
|
||||
svg.select("#node-" + commit.id + " foreignObject")
|
||||
log.debug("found branch ", branch.name);
|
||||
// don't try to select foreignObject - doesn't work.
|
||||
// instead select by class name and it works.
|
||||
svg.select("#node-" + commit.id + " .node-label")
|
||||
.append("xhtml:p")
|
||||
.attr("class", "branch-label")
|
||||
.text(branch.name);
|
||||
|
Reference in New Issue
Block a user