mirror of
https://github.com/wassname/CanvasTextWrapper.git
synced 2026-08-16 11:13:11 +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:
|
```options``` - is a JavaScript object with the following available properties and values:
|
||||||
|
|
||||||
- ```font: String``` - text style that includes font size(REQUIRED), wheight & family, similar to CSS font shorthand property
|
- ```font: String``` - text style that includes font size(REQUIRED), weight & family, similar to CSS font shorthand property
|
||||||
- ```textAlign: "left" | "center" | "right"``` - horizontal alignment that applies for each line
|
- ```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
|
- ```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
|
- ```paddingX: Number``` - horizontal padding in pixels set equally on both, left and right sides of the element
|
||||||
|
|||||||
Reference in New Issue
Block a user