Skip to content

Releases

v1.4.0: Moji, Inkwell, Isometric and Contour

Choose a tag to compare

@marvelousdev99 marvelousdev99 released this 03 Dec 09:46

Opaline 1.4.0

The four new styles: Moji, Inkwell, Isometric and Contour

Four new styles and Angular group options. Packages: @inlaylab/opaline, -react, -vue, -svelte, -angular and -element 1.4.0.

New

  • Moji (@inlaylab/opaline/moji): bright cartoon people. Set hair (23), outfit (15) and expression. Sits on a circle by default; shape: 'none' draws the person alone.
  • Inkwell (@inlaylab/opaline/inkwell): ink-line people with a splash of colour. Set hair (27), glasses, mouth (25), prop and expression. Sits on a square tile by default.
  • Isometric (@inlaylab/opaline/isometric): little block characters. Set body (12), topper, prop, pattern, expression and palette. Sits on a square tile by default.
  • Contour (@inlaylab/opaline/contour): a contour map of a made-up land, in the seed's hue. Set terrain: layers, island, lakes or thermal. Every browser draws the same contours.
  • Moji, Inkwell and Isometric share 26 expressions, from calm and grin to wow and oops.
  • Skin tone in Moji and Inkwell is chosen separately, so it never depends on hair, clothes, props or expression.
  • LookOptions and every wrapper take the new styles and options.

Improvements

  • The Angular group takes shape: 'none' and passes every per-style option to its members, as the React, Vue and Svelte groups do.
  • Older styles have slightly smaller bundles, with the same output. Gzipped: core + morph 6.61 → 6.56 KB, core + gradient 7.42 → 7.38 KB, core + clay 7.60 → 7.56 KB, core + plush 8.88 → 8.83 KB.
  • The docs site shows all fifteen styles, and the playground has controls for every new option.

Full changelog: v1.3.0...v1.4.0

v1.3.0: Critters, Cosmos, Folk and Doodle

Choose a tag to compare

@marvelousdev99 marvelousdev99 released this 30 Nov 07:50
34d9abd

Opaline 1.3.0

The four new styles: Critters, Cosmos, Folk and Doodle

Four new styles, a status badge and a gummy finish. Every 1.2 seed and option set renders the same bytes, and the new styles and values appear only when you set them.

New styles

  • Critters are 19 soft vinyl-toy animals. Set animal, and coat: 'palette' to colour the fur from the seed.
  • Cosmos has 15 glowing space objects. Set object, tone for a colour theme, and shape for a night-sky tile.
  • Folk draws people, head and shoulders. Doodle draws only the face, in lines. Both have 18 expressions, 11 colour looks through scheme, and a square tile that shape: 'none' removes.

New options

  • Every style takes status: online, away, busy or offline. With title or alt the label reads Ada (away). The badge is not drawn below 20px.
  • finish: 'gummy' works on Morph, Gradient, Pip, Clay and Critters. Plush takes material instead: gummy, flat or soft.
  • These values can be set by name and are never drawn by a seed: eight expressions, nine Gradient form outlines, the Morph families star, drop and bloom, five Pip forms, a Clay ghost body with fox and mouse ears, and four Plush hats.
  • LookOptions in the core is one props type with every option of every style.

Changed

  • Bundles for the older styles are larger, because the new faces, the gummy finish, Gradient forms and the status badge ship with every style. Core + Morph is 6.61 KB gzipped, up from 4.91 KB. Making them optional is planned for 1.4.
  • Expression, Family, Finish, Accessory, PipForm and Clay body and ears take new values. A switch that covers every value, or a Record<Expression, …>, needs the new keys.

Improved

  • Every wrapper takes every new style and option. React, Vue and Svelte groups pass each member's status, and a status on the group goes to members that have none.
  • Cosmos tone also takes a numeric string, so tone="1" works as a plain attribute in Vue and Angular.
  • The docs site is redesigned: type a name and the page takes its colour. Try the new styles in the playground.

Full changelog: v1.2.0...v1.3.0

v1.2.0: Plush and Pip

Choose a tag to compare

@marvelousdev99 marvelousdev99 released this 12 Nov 09:27
image

Two new styles that keep the seed's colour, so a user stays one colour across styles. Existing output is unchanged.

New

  • plush draws gummy critters with a face and a seeded accessory: beret, cap, beanie, glasses, shades, flower, sprout, bow, star or none.
  • pip draws bold geometric forms with two pill eyes. form is circle, squircle, triangle, hexagon, diamond, heart, drop, pill or dome.
  • Every wrapper accepts accessory and form.

Full changelog: v1.1.2...v1.2.0

v1.1.2: React 18 and Angular 20

Choose a tag to compare

@marvelousdev99 marvelousdev99 released this 12 Nov 09:26

Wider framework support. The core is unchanged, and so is component output.

Improved

  • The React wrapper works with React 18 and later (peer react >=18). With React 18, use @types/react 18.2.6 or later.
  • The Angular wrapper works with Angular 20 to 22 (peer @angular/core >=20 <23).

Full changelog: v1.1.1...v1.1.2

v1.1.1: Readable initials, PNG export and groups

Choose a tag to compare

@marvelousdev99 marvelousdev99 released this 30 Nov 07:33
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

v1.1.0: Initials and shapes

Choose a tag to compare

@marvelousdev99 marvelousdev99 released this 05 Nov 13:51

New

  • initials (@inlaylab/opaline/initials) draws the person's initials on a seeded tile, taken from the seed or set with text.
  • Every style takes shape: circle, squircle, square or ellipse (ellipse was removed in 1.1.1). Leaving it unset gives exactly the 1.0 output.

Fixed

  • <op-avatar> clears static finish, body and ears attributes from its host, like every other input.

Full changelog: v1.0.0...v1.1.0

v1.0.0: Stable output

Choose a tag to compare

@marvelousdev99 marvelousdev99 released this 05 Nov 13:50

The first stable release, with Morph, Gradient, Aura and Clay for React, Vue, Svelte, Angular and Web Components.

  • The same seed and options give a byte-identical SVG in every 1.x release. A checksum file in CI checks it.
  • An option set to its default gives exactly the unset output, gradient IDs included.
  • Every package ships a README, the MIT license and full npm metadata.

Full changelog: https://github.com/Inlaylab/Opaline/commits/v1.0.0