WriteTextToCanvasOptions

external interface WriteTextToCanvasOptions(source)

Properties

Link copied to clipboard
abstract val backgroundColor: Color?

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

Link copied to clipboard
abstract val fill: Boolean?

Whether to fill the text. Default value - true

Link copied to clipboard
abstract val fillColor: Color?

The fill color. Default value - Color.WHITE

Link copied to clipboard
abstract val font: String?

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

Link copied to clipboard
abstract val padding: Double?

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

Link copied to clipboard
abstract val stroke: Boolean?

Whether to stroke the text. Default value - false

Link copied to clipboard
abstract val strokeColor: Color?

The stroke color. Default value - Color.BLACK

Link copied to clipboard
abstract val strokeWidth: Double?

The stroke width. Default value - 1