# Interface: RenderTextOpts
# Properties
# backdrop
• Optional backdrop: BackdropOptions
Dimensions for drawing the label backdrop
# Defined in
types/index.d.ts:1470
# color
• Optional color: Color
The fill color of the text. If unset, the existing fillStyle property of the canvas is unchanged.
# Defined in
types/index.d.ts:1409
# decorationWidth
• Optional decorationWidth: number
The width of the strikethrough / underline
Default
2
# Defined in
types/index.d.ts:1415
# maxWidth
• Optional maxWidth: number
The max width of the text in pixels
# Defined in
types/index.d.ts:1420
# rotation
• Optional rotation: number
A rotation to be applied to the canvas This is applied after the translation is applied
# Defined in
types/index.d.ts:1426
# strikethrough
• Optional strikethrough: boolean
Apply a strikethrough effect to the text
# Defined in
types/index.d.ts:1431
# strokeColor
• Optional strokeColor: Color
The color of the text stroke. If unset, the existing strokeStyle property of the context is unchanged
# Defined in
types/index.d.ts:1437
# strokeWidth
• Optional strokeWidth: number
The text stroke width. If unset, the existing lineWidth property of the context is unchanged
# Defined in
types/index.d.ts:1443
# textAlign
• Optional textAlign: CanvasTextAlign
The text alignment to use. If unset, the existing textAlign property of the context is unchanged
# Defined in
types/index.d.ts:1449
# textBaseline
• Optional textBaseline: CanvasTextBaseline
The text baseline to use. If unset, the existing textBaseline property of the context is unchanged
# Defined in
types/index.d.ts:1455
# translation
• Optional translation: [number, number]
If specified, a translation to apply to the context
# Defined in
types/index.d.ts:1460
# underline
• Optional underline: boolean
Underline the text
# Defined in
types/index.d.ts:1465