StylishTreeLayoutEngine

class StylishTreeLayoutEngine<T>(val rowHeightPx: Float = 48.0f, val indentPx: Float = 20.0f, val horizontalPaddingPx: Float = 0.0f) : StylishLayoutEngine<StylishTreeLayoutInput<T>>

Deterministic tree layout and semantics plan for native and Compose renderers.

StylishTree remains the reference Compose renderer. A Web, SwiftUI, or desktop renderer can consume this same output to preserve row geometry, identity, and accessibility semantics without importing Compose. Coordinates are in viewport pixels.

Constructors

Link copied to clipboard
constructor(rowHeightPx: Float = 48.0f, indentPx: Float = 20.0f, horizontalPaddingPx: Float = 0.0f)

Properties

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

Functions

Link copied to clipboard
open override fun layout(input: StylishTreeLayoutInput<T>, viewport: StylishViewport): StylishRenderPlan

Computes deterministic geometry and semantics for input in viewport.