With the current (0.15.0) implementation, the overlay is not displayed when the label is empty.
The leading and trailing spaces are not taken into account in non empty string.
Tweaking the generated svg (with browser dev tools) can display something.
The following examples show the overlay that previously displayed a non empty label that has been replaced by a space (font size: 30, default font family).
Number of characters
default font size
font size 30
1
2
Generated svg with non empty label, removing the text node keep the rectangle visible
With the current (
0.15.0
) implementation, the overlay is not displayed when the label is empty. The leading and trailing spaces are not taken into account in non empty string.Tweaking the generated svg (with browser dev tools) can display something.
The following examples show the overlay that previously displayed a non empty label that has been replaced by a space (font size: 30, default font family).
Generated svg with non empty label, removing the
text
node keep the rectangle visibleGenerated svg with empty label, the rect position and dimension are very small Same result with a label that only contains spaces (1 or several).
Generated svg with
null
orundefined
label