2 Commits

Author SHA1 Message Date
Vadim Namniak 4ae38b6eb8 Update README.md 2015-09-19 22:54:46 -04:00
Vadim eaf4897b0c version updated 2015-09-19 20:18:56 -04:00
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -44,6 +44,8 @@ NOTE: if a single word is too long to fit the width with specified font size, it
##Usage
Configure context settings properties such as "fillStyle", "lineWidth" or "strokeStyle" before using CanvasTextWrapper like so:
```
var CanvasTextWrapper = require('canvas-text-wrapper').CanvasTextWrapper;
var canvas = document.getElementById("#canvasText");
canvas.width = 200;
canvas.height = 200;
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "canvas-text-wrapper",
"description": "Pure JavaScript canvas text wrapper that automatically splits a string into lines on specified rule with alignment and padding.",
"version": "0.3.2",
"version": "0.4.0",
"license": "MIT",
"main": "CanvasTextWrapper.min.js",
"homepage": "http://namniak.github.io/CanvasTextWrapper/",