Background Element
@Serializable
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
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