ixfx
Preparing search index...
Visual
Drawing
textBlock
Function textBlock
textBlock
(
ctx
:
CanvasRenderingContext2D
,
lines
:
readonly
string
[]
,
opts
:
Visual
.
Drawing
.
DrawingOpts
&
{
align
?:
"center"
|
"top"
;
anchor
:
Geometry
.
Point
;
anchorPadding
?:
number
;
bounds
?:
Geometry
.
RectPositioned
;
}
,
)
:
void
Draws a block of text. Each array item is considered a line.
Parameters
ctx
:
CanvasRenderingContext2D
lines
:
readonly
string
[]
opts
:
Visual
.
Drawing
.
DrawingOpts
&
{
align
?:
"center"
|
"top"
;
anchor
:
Geometry
.
Point
;
anchorPadding
?:
number
;
bounds
?:
Geometry
.
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.