BackgroundElement

@Serializable
data class BackgroundElement(val kind: BackgroundKind, val points: List<LayoutPoint> = emptyList(), val text: String? = null, val color: String = "#000000", val strokeWidth: Double = 1.0, val imageRef: String? = null, val fontSize: Double = 12.0, val fontFamily: String? = null)(source)

A static background element (lines, rectangles, text, images).

Constructors

Link copied to clipboard
constructor(kind: BackgroundKind, points: List<LayoutPoint> = emptyList(), text: String? = null, color: String = "#000000", strokeWidth: Double = 1.0, imageRef: String? = null, fontSize: Double = 12.0, fontFamily: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Text font family (e.g. "SansSerif", "Serif", "Monospaced"); null = the renderer default.

Link copied to clipboard

Text size in layout units (scales with zoom); applies to BackgroundKind.TEXT. Appended with a default so older layouts (and positional callers) are unaffected.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val text: String?