mirror of
https://github.com/wassname/CanvasTextWrapper.git
synced 2026-06-27 19:45:29 +08:00
Update README.md
This commit is contained in:
@@ -8,7 +8,7 @@ new CanvasTextWrapper(HTMLCanvasElement, String [, options]);
|
||||
|
||||
```options``` - is a JavaScript object with the following available properties and values:
|
||||
|
||||
- ```font: String``` - text style that includes font size(REQUIRED), family, similar to CSS font shorthand property
|
||||
- ```font: String``` - text style that includes font size(REQUIRED), wheight & family, similar to CSS font shorthand property
|
||||
- ```textAlign: "left" | "center" | "right"``` - horizontal alignment that applies for each line
|
||||
- ```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
|
||||
|
||||
Reference in New Issue
Block a user