From d4566c71cfec06b93ba83b7d4fcd8c218d04d095 Mon Sep 17 00:00:00 2001 From: Vadim Namniak Date: Fri, 27 Jun 2014 02:16:45 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 765af2c..2d1d588 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ new CanvasTextWrapper(HTMLCanvasElement, String [, options]); - ```verticalAlign: "top" | "middle" | "bottom"``` - vertical alignment that applies on a whole block of text - ```paddingX: Number``` - horizontal padding in pixels set equally on both, left and right sides of the element - ```paddingY: Number``` - vertical padding in pixels set equally on both, top and bottom sides of the element -- ```fitParent: Boolean``` - parameter that controls which element to fit ( if ```true```then fits canvas parent's width instead of canvas own width +- ```fitParent: Boolean``` - parameter that controls which element to fit where ```true``` means fit canvas parent's width instead of canvas own width - ```lineBreak: "auto" | "word"``` - text split rule. When using ```"auto"```, text fills the element's width going to a new line on a whole word when no more space. If ```"word"``` is set as value, each next word will be placed on a new line. NOTE: if a single word is too long to fit the width with specified font size, it will be broken into as many lines as required on any letter without specific word breaking rule.