diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..dd461b81 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,54 @@ +# Change Log +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## 0.1.5 +### Added +- `save()` To save the current state onto a stack. +- `rotate()` To add a rotation to the transformation matrix. +- `scale()` To perform scaling transformations. +- `traslate()` To perform translating transformations. +- `fill()` To fill the current/given path. +- `stroke()` To stroke the current/given path. +- `addStrokeText()` To add stroked text. +- `measureText()` To measure in pixels a text. Be **careful**, if you do not +provide a callback (second argument), this method will return an Integer value +instead of being chainable. +- `setTextBaseline()` To set the text's baseline. +- `setShadowOffsetX()` To set the shadow offset for the axis X. +- `setShadowOffsetY()` To set the shadow offset for the axis Y. +- `setGlobalAlpha()` To set the global alpha value for the next elements. +- `clearCircle()` To clear the pixels with a circle shape. +- `clearPixels()` To clear the pixels with a rectangle shape. (Usage is +identical to `addRect()`). + +### Changed +- **Breaking** | `fillRect()` -> `addRect()` | To keep consistency. +- `addText()` now accepts a third argument: `maxWidth`. +- `addImage()` now saves and restores the context. + +### Fix +- `addRoundImage()` now points to `addImage()` with the correct arguments. +- `addBevelImage()` now points to `addImage()` with the correct arguments. + +## 0.1.4 +### Changed +- Updated `README.md`. + +## 0.1.3 +### Fixed +- Fix a weird bug with the `in` operator in `addImage()` + +## 0.1.0 +### Added +- Added `addFont()` method for retrocompatibility with old versions of Canvas. +(Thanks to [York](https://github.com/YorkAARGH) in +[PR#1](https://github.com/kyranet/canvasConstructor/pull/1)) + +### Changed +- Better `README.md`. + +### Fixed +- Bugs in the `options` argument for `addImage()`. \ No newline at end of file diff --git a/package.json b/package.json index 5f18df80..95f86cca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "canvas-constructor", - "version": "0.1.4", + "version": "0.1.5", "description": "A ES6 class for node-canvas with built-in functions and chained methods.", "main": "index.js", "scripts": {