Releases: daveknights/cre8bit
2.3.1
2.3.0
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
New character added
Pikachu has been added to the list of available character.
2.1.0
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
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
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
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
New characters added
Mario and Kirby now added to the available characters.
1.0.7
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
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.