Skip to content

Commit f3d495d

Browse files
committed
Added readme, bump to 0.1.5
1 parent 758d261 commit f3d495d

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## 0.1.5
8+
### Added
9+
- `save()` To save the current state onto a stack.
10+
- `rotate()` To add a rotation to the transformation matrix.
11+
- `scale()` To perform scaling transformations.
12+
- `traslate()` To perform translating transformations.
13+
- `fill()` To fill the current/given path.
14+
- `stroke()` To stroke the current/given path.
15+
- `addStrokeText()` To add stroked text.
16+
- `measureText()` To measure in pixels a text. Be **careful**, if you do not
17+
provide a callback (second argument), this method will return an Integer value
18+
instead of being chainable.
19+
- `setTextBaseline()` To set the text's baseline.
20+
- `setShadowOffsetX()` To set the shadow offset for the axis X.
21+
- `setShadowOffsetY()` To set the shadow offset for the axis Y.
22+
- `setGlobalAlpha()` To set the global alpha value for the next elements.
23+
- `clearCircle()` To clear the pixels with a circle shape.
24+
- `clearPixels()` To clear the pixels with a rectangle shape. (Usage is
25+
identical to `addRect()`).
26+
27+
### Changed
28+
- **Breaking** | `fillRect()` -> `addRect()` | To keep consistency.
29+
- `addText()` now accepts a third argument: `maxWidth`.
30+
- `addImage()` now saves and restores the context.
31+
32+
### Fix
33+
- `addRoundImage()` now points to `addImage()` with the correct arguments.
34+
- `addBevelImage()` now points to `addImage()` with the correct arguments.
35+
36+
## 0.1.4
37+
### Changed
38+
- Updated `README.md`.
39+
40+
## 0.1.3
41+
### Fixed
42+
- Fix a weird bug with the `in` operator in `addImage()`
43+
44+
## 0.1.0
45+
### Added
46+
- Added `addFont()` method for retrocompatibility with old versions of Canvas.
47+
(Thanks to [York](https://github.com/YorkAARGH) in
48+
[PR#1](https://github.com/kyranet/canvasConstructor/pull/1))
49+
50+
### Changed
51+
- Better `README.md`.
52+
53+
### Fixed
54+
- Bugs in the `options` argument for `addImage()`.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "canvas-constructor",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "A ES6 class for node-canvas with built-in functions and chained methods.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)