HeatmapState

State holder for drill-down navigation in Heatmap.

Properties

Link copied to clipboard

The root-to-visible path, including the visible group.

Link copied to clipboard

Whether a platform back action can return from the current group to its parent.

Link copied to clipboard

Root-relative group path. IDs may repeat in different branches.

Link copied to clipboard

The id of selectedNode, retained as a convenient lightweight selection value.

Link copied to clipboard

The leaf selected by the consumer, including its domain data, if any.

Link copied to clipboard

Root-relative selected leaf path, suitable for the display tree aggregatedSources mapping.

Link copied to clipboard

Functions

Link copied to clipboard

Clears the current leaf selection.

Link copied to clipboard

Opens an exact group from the current tree, including deeply nested visible groups.

fun drillDown(nodeId: String): Boolean

Opens a direct child group of the currently visible node.

Link copied to clipboard

Whether node is the exact leaf currently selected in this heatmap tree.

Link copied to clipboard
fun navigateTo(nodeId: String): Boolean

Navigates to an item in breadcrumbs.

Link copied to clipboard

Navigates to an item at index in breadcrumbs.

Link copied to clipboard

Opens any group by its complete root-relative path. Invalid paths leave state unchanged.

Link copied to clipboard

Navigates one level upward, returning whether the visible group changed.

Link copied to clipboard
fun reset()

Returns to the initial heatmap root.

Link copied to clipboard
fun select(node: HeatmapNode)

Marks a leaf as selected. Selection does not change the visible navigation path.

Link copied to clipboard

Replaces immutable data while retaining valid navigation and selection paths.