WriteTextToCanvasOptions

sealed external interface WriteTextToCanvasOptions(source)

Properties

Link copied to clipboard
abstract var backgroundColor: Color?

The background color of the canvas. Default value - Color.TRANSPARENT

Link copied to clipboard
abstract var fill: Boolean?

Whether to fill the text. Default value - true

Link copied to clipboard
abstract var fillColor: Color?

The fill color. Default value - Color.WHITE

Link copied to clipboard
abstract var font: String?

The CSS font to use. Default value - '10px sans-serif'

Link copied to clipboard
abstract var padding: Double?

The pixel size of the padding to add around the text. Default value - 0

Link copied to clipboard
abstract var stroke: Boolean?

Whether to stroke the text. Default value - false

Link copied to clipboard
abstract var strokeColor: Color?

The stroke color. Default value - Color.BLACK

Link copied to clipboard
abstract var strokeWidth: Double?

The stroke width. Default value - 1

Link copied to clipboard
abstract var textBaseline: String?

The baseline of the text. Default value - 'bottom'