Fixing label rendering for repetition
Rendering a text element with a string leads to just a <text/> element. Rendering with an array leads to <text><tspan/></text>. Decided to use the latter since it matches with the majority of text rendering currently in use.
This commit is contained in:
@@ -56,7 +56,7 @@ export default {
|
||||
label, labelBox, box;
|
||||
|
||||
if (labelStr) {
|
||||
label = this.container.text(0, 0, labelStr)
|
||||
label = this.container.text(0, 0, [labelStr])
|
||||
.addClass('repeat-label');
|
||||
|
||||
box = this.getBBox();
|
||||
|
||||
Reference in New Issue
Block a user