ViddikComponent

data class ViddikComponent(val name: String, val group: String, val width: Int = 400, val height: Int = AUTO_HEIGHT, val fontScale: Float = 1.0f, val tolerancePercent: Double? = null, val content: @Composable () -> Unit)

Constructors

Link copied to clipboard
constructor(name: String, group: String, width: Int = 400, height: Int = AUTO_HEIGHT, fontScale: Float = 1.0f, tolerancePercent: Double? = null, content: @Composable () -> Unit)

Properties

Link copied to clipboard
val content: @Composable () -> Unit
Link copied to clipboard

Text scaling to render at, as @Preview.fontScale states it. Kept out of width/height, which stay pixel counts: a font scale changes how large text draws inside a canvas of a given size, not the size of the canvas.

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard

Share of pixels this one fixture may differ by, or null — the normal case — to be judged by whatever the run itself is set to (viddik.tolerancePercent, otherwise DEFAULT_TOLERANCE_PERCENT).

Link copied to clipboard
val width: Int