Skip to content

Releases: daveknights/cre8bit

2.3.1

12 Feb 21:33
Compare
Choose a tag to compare

Fix typos in readme files

Fix typo in github and npm readme files and path to the unminified version in the github readme.

2.3.0

12 Feb 20:53
Compare
Choose a tag to compare

Responsive option added

You can now pass 3 size values for mobile, tablet and desktop using the responsive key, to be used by the chosen character at different break points.

Example: new cre8bit().create('ghost', { responsive: [6, 8, 12] });

2.2.0

24 Nov 19:21
Compare
Choose a tag to compare

New character added

Pikachu has been added to the list of available character.

2.1.0

20 Oct 20:38
Compare
Choose a tag to compare

Reflections

A new option has been added. Pass reflection: true in the create method options object argument to produce a reflection effect of the character. Works with all other options, including animate where eligible.

2.0.0

10 Oct 19:55
Compare
Choose a tag to compare

Simplified flip

*** Breaking Changes ***

The vertically flip option is being withdrawn. It likely had very little usage or practical application with the svgs. Therefore the overhead caused by supporting this option value when consideing adding new functionality to the library was deemed unworthy.

The flip option and setFlip method now expect a boolean. So {flip: true} or setFlip(true) flip the svg horizontally only. Using setFlip(false) can be used to reset a horizontal flip applied at creation.

This is only partially breaking because the boolean argument isn't being enforced, so any current uses of flip that pass horizontally would still work after upgrading to this version. Passing vertically or anything else would also apply a horizontal flip now. This may be made more strict in a future version where only true or false would be accepted.

It is possible to flip the svg vertically using this css transform: scale(1,-1); if that functionality is still required.

1.1.2

03 Oct 20:05
Compare
Choose a tag to compare

Bug fix

A change in a previous version caused the wrapperClass option, which wraps the svg in a div with the provided class name, to break.
This release has fixed that.

1.1.1

28 Sep 19:09
Compare
Choose a tag to compare

Improve outline appearance

The svg viewbox is now slighlty bigger and the path's position is adjusted when the outline option is set to true to fully accommodate the character path with a 0.5 stroke width. This fixes the issue where the outline looked thinner at the edges of the svg.

1.1.0

22 Sep 16:19
Compare
Choose a tag to compare

New characters added

Mario and Kirby now added to the available characters.

1.0.7

20 Sep 16:11
Compare
Choose a tag to compare

Remove minified version

  • The minified version (cre8bit.min.js) has been removed from this repository and moved to it's own dedicated one so it can be published on npm as a separate package.
  • The npm readme file now references (and links to) the minified package on npm.

1.0.6

20 Sep 13:42
Compare
Choose a tag to compare

README updates

Versions 1.0.4 - 1.0.6 relate to updates/changes to the readme file, including providing a different version for GitHub and npm.