Repository navigation
v1.1.1: Readable initials, PNG export and groups
New
@inlaylab/opaline/pngis a new entry. In the browser,toPng(avatar, { size, vars })returns a PNGBlobwith 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
+Nchip pastmax. The core'savatarGroup(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-fgstill overrides it.
Fixed
- The
ellipseshape is removed.shapetakescircle,squircleorsquare, and any other value falls back like an unknown one. 1.0 output is unchanged.
Full changelog: v1.1.0...v1.1.1