ixfx
Preparing search index...
@ixfx/visual
Drawing
textBlock
Function textBlock
textBlock
(
ctx
:
CanvasRenderingContext2D
,
lines
:
readonly
string
[]
,
opts
:
Drawing
.
DrawingOpts
&
{
align
?:
"center"
|
"top"
;
anchor
:
Point
;
anchorPadding
?:
number
;
bounds
?:
RectPositioned
;
}
,
)
:
void
Draws a block of text. Each array item is considered a line.
Parameters
ctx
:
CanvasRenderingContext2D
lines
:
readonly
string
[]
opts
:
Drawing
.
DrawingOpts
&
{
align
?:
"center"
|
"top"
;
anchor
:
Point
;
anchorPadding
?:
number
;
bounds
?:
RectPositioned
;
}
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ixfx
Loading...
Draws a block of text. Each array item is considered a line.