Release v0.4
Bug fixes
- Default font size and padding — Labels now always get the default font size and padding on the element, even when you don’t pass them or pass the same values as the defaults. Fixes #10
- Labels with
draw(false)— When you calldraw(false)to skip overlap detection, labels are still shown. Visibility is set from whether they’re on screen before drawing. Fixes #7
Improvements
- Label text — You can pass label text as a number; it’s converted to a string automatically.
Security
- XSS prevention — Label text is set via
textContentby default. UsedangerouslySetHtml()or thedangerousHtmloption only for trusted or sanitized HTML.