Skip to content

Release v0.4

Choose a tag to compare

@Stukova Stukova released this 18 Feb 05:22
· 17 commits to main since this release
71bfddd

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 call draw(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 textContent by default. Use dangerouslySetHtml() or the dangerousHtml option only for trusted or sanitized HTML.