HeatmapDisplayPolicy

data class HeatmapDisplayPolicy(val hideContentBelow: Dp = 16.dp, val showMetricAbove: Dp = 40.dp, val showLabelAbove: Dp = 48.dp, val cellContentPadding: Dp = 6.dp, val adaptiveContent: Boolean = true, val metricFormatter: HeatmapMetricFormatter = SignedMetricFormatter)

Rules that preserve readable content in small heatmap cells.

With adaptiveContent enabled (the default), measured text dimensions decide whether a label and metric fit. The size thresholds remain deterministic fallback rules when it is disabled.

Constructors

Link copied to clipboard
constructor(hideContentBelow: Dp = 16.dp, showMetricAbove: Dp = 40.dp, showLabelAbove: Dp = 48.dp, cellContentPadding: Dp = 6.dp, adaptiveContent: Boolean = true, metricFormatter: HeatmapMetricFormatter = SignedMetricFormatter)

Properties

Link copied to clipboard

Uses measured text dimensions instead of only fixed cell-size thresholds.

Link copied to clipboard

Maximum inner padding. Small cells automatically use a smaller value.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard