LayoutTreeSnapshot

@Serializable
data class LayoutTreeSnapshot(val nodeIndex: List<Int>, val styles: List<List<Double>>, val bounds: List<List<Double>>, val text: List<Int>, val stackingContexts: DOMSnapshot.RareBooleanData, val paintOrders: List<Int>? = null, val offsetRects: List<List<Double>>? = null, val scrollRects: List<List<Double>>? = null, val clientRects: List<List<Double>>? = null, val blendedBackgroundColors: List<Int>? = null, val textColorOpacities: List<Double>? = null)

Table of details of an element in the DOM tree with a LayoutObject.

Constructors

Link copied to clipboard
constructor(nodeIndex: List<Int>, styles: List<List<Double>>, bounds: List<List<Double>>, text: List<Int>, stackingContexts: DOMSnapshot.RareBooleanData, paintOrders: List<Int>? = null, offsetRects: List<List<Double>>? = null, scrollRects: List<List<Double>>? = null, clientRects: List<List<Double>>? = null, blendedBackgroundColors: List<Int>? = null, textColorOpacities: List<Double>? = null)

Properties

Link copied to clipboard

The list of background colors that are blended with colors of overlapping elements.

Link copied to clipboard

The absolute position bounding box.

Link copied to clipboard
val clientRects: List<List<Double>>? = null

The client rect of nodes. Only available when includeDOMRects is set to true

Link copied to clipboard

Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.

Link copied to clipboard
val offsetRects: List<List<Double>>? = null

The offset rect of nodes. Only available when includeDOMRects is set to true

Link copied to clipboard
val paintOrders: List<Int>? = null

Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in captureSnapshot was true.

Link copied to clipboard
val scrollRects: List<List<Double>>? = null

The scroll rect of nodes. Only available when includeDOMRects is set to true

Link copied to clipboard

Stacking context information.

Link copied to clipboard

Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.

Link copied to clipboard
val text: List<Int>

Contents of the LayoutText, if any.

Link copied to clipboard

The list of computed text opacities.