From 143cbbac7ce023c2425c16f3bd0f35f7bcf5ba77 Mon Sep 17 00:00:00 2001 From: Vadim Namniak Date: Fri, 27 Jun 2014 09:22:26 -0400 Subject: [PATCH] Update index.html --- index.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index fcdcacb..1493fe5 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@

-

Syntax:


+

Syntax


new CanvasTextWrapper(HTMLCanvasElement, String [, Options]);


@@ -31,7 +31,7 @@ -
-
-

Defaults & Usage:


+ +

Defaults


The default options object which values will be used if a property is not specified or no object is passed:

@@ -99,6 +98,7 @@


+

Usage


Use standard canvas text drawing methods such as "fillStyle" and "globalCompositeOperation" when needed before using CanvasTextWrapper like so: @@ -114,6 +114,12 @@ context.globalCompositeOperation = "destination-out";
var wrapper = new CanvasTextWrapper(canvas, 'Hello'); // default options will apply

+ +

Installation


+

+ bower install canvas-text-wrapper
+ npm install canvas-text-wrapper +

Examples:

@@ -122,4 +128,4 @@ ← View on GitHub - \ No newline at end of file +