Skip to content

Commit

Permalink
Added readme, bump to 0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Aug 6, 2017
1 parent 758d261 commit f3d495d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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()`.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit f3d495d

Please sign in to comment.