mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-19 16:26:43 +02:00
fixed bug where background is removed @monicanguyen25 @udvale
This commit is contained in:
@@ -243,8 +243,6 @@ export const draw = function (text, id, version, diagObj) {
|
|||||||
.enter()
|
.enter()
|
||||||
.append('rect')
|
.append('rect')
|
||||||
.attr('x', 0)
|
.attr('x', 0)
|
||||||
.data(numOccurrences)
|
|
||||||
.enter()
|
|
||||||
.attr('y', function (d, i) {
|
.attr('y', function (d, i) {
|
||||||
// Ignore the incoming i value and use our order instead
|
// Ignore the incoming i value and use our order instead
|
||||||
i = d.order;
|
i = d.order;
|
||||||
@@ -261,7 +259,9 @@ export const draw = function (text, id, version, diagObj) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 'section section0';
|
return 'section section0';
|
||||||
});
|
})
|
||||||
|
.data(numOccurrences)
|
||||||
|
.enter();
|
||||||
|
|
||||||
// Draw the rects representing the tasks
|
// Draw the rects representing the tasks
|
||||||
const rectangles = svg.append('g').selectAll('rect').data(theArray).enter();
|
const rectangles = svg.append('g').selectAll('rect').data(theArray).enter();
|
||||||
|
Reference in New Issue
Block a user