mirror of
https://github.com/wassname/CanvasTextWrapper.git
synced 2026-08-05 12:40:31 +08:00
Update README.md
This commit is contained in:
@@ -44,6 +44,8 @@ NOTE: if a single word is too long to fit the width with specified font size, it
|
|||||||
##Usage
|
##Usage
|
||||||
Configure context settings properties such as "fillStyle", "lineWidth" or "strokeStyle" before using CanvasTextWrapper like so:
|
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");
|
var canvas = document.getElementById("#canvasText");
|
||||||
canvas.width = 200;
|
canvas.width = 200;
|
||||||
canvas.height = 200;
|
canvas.height = 200;
|
||||||
|
|||||||
Reference in New Issue
Block a user