|
|
@ -865,6 +865,9 @@ Node.prototype._label = function (ctx, text, x, y, align, baseline, labelUnderNo |
|
|
|
var height = this.options.fontSize * lineCount; |
|
|
|
var left = x - width / 2; |
|
|
|
var top = y - height / 2; |
|
|
|
if (ctx.textBaseline == "top") { |
|
|
|
top += 0.5 * fontSize; |
|
|
|
} |
|
|
|
ctx.fillStyle = this.options.fontFill; |
|
|
|
ctx.fillRect(left, top, width, height); |
|
|
|
} |
|
|
|