Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/graphics
TextRun
Class TextRun
Hierarchy
TextRun
Implements
Graphics
Equals
Debug
Index
Constructors
constructor
Properties
font
text
text
Align
text
Baseline
text
Color
text
Origin
Methods
copy
debug
draw
equals
render
render
Text
to
Any
to
String
with
Font
with
Text
with
Text
Align
with
Text
Baseline
with
Text
Color
with
Text
Origin
create
from
Any
Constructors
constructor
new
Text
Run
(
text
:
string
, font
:
null
|
Font
, textAlign
:
null
|
CanvasTextAlign
, textBaseline
:
null
|
CanvasTextBaseline
, textOrigin
:
null
|
R2Point
, textColor
:
null
|
Color
)
:
TextRun
Parameters
text:
string
font:
null
|
Font
textAlign:
null
|
CanvasTextAlign
textBaseline:
null
|
CanvasTextBaseline
textOrigin:
null
|
R2Point
textColor:
null
|
Color
Returns
TextRun
Properties
Readonly
font
font
:
null
|
Font
Readonly
text
text
:
string
Readonly
text
Align
text
Align
:
null
|
CanvasTextAlign
Readonly
text
Baseline
text
Baseline
:
null
|
CanvasTextBaseline
Readonly
text
Color
text
Color
:
null
|
Color
Readonly
text
Origin
text
Origin
:
null
|
R2Point
Methods
Protected
copy
copy
(
text
:
string
, font
:
null
|
Font
, textAlign
:
null
|
CanvasTextAlign
, textBaseline
:
null
|
CanvasTextBaseline
, textOrigin
:
null
|
R2Point
, textColor
:
null
|
Color
)
:
TextRun
Parameters
text:
string
font:
null
|
Font
textAlign:
null
|
CanvasTextAlign
textBaseline:
null
|
CanvasTextBaseline
textOrigin:
null
|
R2Point
textColor:
null
|
Color
Returns
TextRun
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
draw
draw
(
context
:
CanvasContext
, frame
:
R2Box
)
:
void
Parameters
context:
CanvasContext
frame:
R2Box
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
render
render
(
renderer
:
GraphicsRenderer
, frame
:
R2Box
)
:
void
Parameters
renderer:
GraphicsRenderer
frame:
R2Box
Returns
void
Protected
render
Text
render
Text
(
context
:
CanvasContext
, frame
:
R2Box
)
:
void
Parameters
context:
CanvasContext
frame:
R2Box
Returns
void
to
Any
to
Any
(
)
:
TextRunInit
Returns
TextRunInit
to
String
to
String
(
)
:
string
Returns
string
with
Font
with
Font
(
font
:
null
|
AnyFont
)
:
TextRun
Parameters
font:
null
|
AnyFont
Returns
TextRun
with
Text
with
Text
(
text
:
string
)
:
TextRun
Parameters
text:
string
Returns
TextRun
with
Text
Align
with
Text
Align
(
textAlign
:
null
|
CanvasTextAlign
)
:
TextRun
Parameters
textAlign:
null
|
CanvasTextAlign
Returns
TextRun
with
Text
Baseline
with
Text
Baseline
(
textBaseline
:
null
|
CanvasTextBaseline
)
:
TextRun
Parameters
textBaseline:
null
|
CanvasTextBaseline
Returns
TextRun
with
Text
Color
with
Text
Color
(
textColor
:
null
|
AnyColor
)
:
TextRun
Parameters
textColor:
null
|
AnyColor
Returns
TextRun
with
Text
Origin
with
Text
Origin
(
textOrigin
:
null
|
AnyR2Point
)
:
null
|
TextRun
Parameters
textOrigin:
null
|
AnyR2Point
Returns
null
|
TextRun
Static
create
create
(
text
:
string
, font
?:
null
|
AnyFont
, textAlign
?:
null
|
CanvasTextAlign
, textBaseline
?:
null
|
CanvasTextBaseline
, textOrigin
?:
null
|
AnyR2Point
, textColor
?:
null
|
AnyColor
)
:
TextRun
Parameters
text:
string
Optional
font:
null
|
AnyFont
Optional
textAlign:
null
|
CanvasTextAlign
Optional
textBaseline:
null
|
CanvasTextBaseline
Optional
textOrigin:
null
|
AnyR2Point
Optional
textColor:
null
|
AnyColor
Returns
TextRun
Static
from
Any
from
Any
(
value
:
AnyTextRun
)
:
TextRun
Parameters
value:
AnyTextRun
Returns
TextRun
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Text
Run
constructor
font
text
text
Align
text
Baseline
text
Color
text
Origin
copy
debug
draw
equals
render
render
Text
to
Any
to
String
with
Font
with
Text
with
Text
Align
with
Text
Baseline
with
Text
Color
with
Text
Origin
create
from
Any
Generated using
TypeDoc