Skip to content

v1.1.1: Readable initials, PNG export and groups

Choose a tag to compare

@marvelousdev99 marvelousdev99 released this 30 Nov 07:33
· 12 commits to main since this release
2bd46a8

New

  • @inlaylab/opaline/png is a new entry. In the browser, toPng(avatar, { size, vars }) returns a PNG Blob with no dependencies. On a server, forRaster(avatar, { size, vars }) prepares the SVG for a rasterizer such as resvg.
  • Every wrapper has an avatar group with a +N chip past max. The core's avatarGroup(members, { max, size, shape }) is the layout behind them.
  • contrast(a, b) returns the WCAG contrast ratio of two hex colours.

Changed

  • Initials letters are a deep shade of the tile's hue, at least 4.5:1 on every palette. On 1.1.0's bright tiles the white letters went as low as 1.9:1. This is the one deliberate output change in 1.x: only the <text> colour changed, and pastel tiles are unchanged. --avatar-fg still overrides it.

Fixed

  • The ellipse shape is removed. shape takes circle, squircle or square, and any other value falls back like an unknown one. 1.0 output is unchanged.

Full changelog: v1.1.0...v1.1.1