textAlign property
The
CanvasRenderingContext2D.textAlign
property of the Canvas 2D API specifies the current text alignment used
when drawing
text.
The alignment is relative to the x value of the
CanvasRenderingContext2D.fillText method. For example, if
textAlign is "center", then the text's left edge will be at
x - (textWidth / 2).
Implementation
external CanvasTextAlign get textAlign;
Implementation
external set textAlign(CanvasTextAlign value);