Heatmap
fun Heatmap(state: HeatmapState, modifier: Modifier = Modifier, displayPolicy: HeatmapDisplayPolicy = HeatmapDisplayPolicy(), style: HeatmapStyle = HeatmapStyle(), interaction: HeatmapInteraction = HeatmapInteraction(), colorScale: HeatmapColorScale = SignedMetricColorScale(), logoContent: HeatmapLogoContent? = null, onGroupClick: (HeatmapNode) -> Unit = {}, onLeafClick: (HeatmapNode) -> Unit = {}, onLeafLongClick: (HeatmapNode) -> Unit = {}, onLeafHover: (HeatmapNode?) -> Unit? = null, cellContent: @Composable (HeatmapNode, Modifier) -> Unit = { node, cellModifier ->
DefaultHeatmapCell(
node = node,
modifier = cellModifier,
displayPolicy = displayPolicy,
color = node.color ?: colorScale.colorOf(node),
selected = state.isSelected(node),
selectedBorderColor = style.selectedBorderColor,
contentColor = style.leafTextColor,
logoContent = logoContent,
)
}, motion: HeatmapMotion = HeatmapMotion(), tooltipContent: HeatmapTooltipContent? = null)
Renders the visible level in state using the size supplied by modifier's parent.
The composable deliberately does not apply a size modifier. Consumers can place it in a card, pane, or full screen layout without the library overriding their constraints.