interface
TextFill
Properties to be provided with fillText.
Properties
- align
Text alignment when drawing text.
- Type:
-
"center" | "left" | "right"
- baseline
Text baseline when drawing text.
- Type:
-
"top" | "bottom" | "middle"
- color
Text color.
- Type:
-
string
- font
CSS font string.
- Type:
-
string
- text
Text to draw.
- Type:
-
string
- x
X-axis coordinate at which to begin drawing text.
- Type:
-
number
- y
Y-axis coordinate at which to begin drawing text.
- Type:
-
number