chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.domsnapshot / LayoutTreeSnapshot

LayoutTreeSnapshot

data class LayoutTreeSnapshot

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

Constructors

<init>

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

LayoutTreeSnapshot(nodeIndex: List<Int>, styles: List<ArrayOfStrings>, bounds: List<Rectangle>, text: List<StringIndex>, stackingContexts: RareBooleanData, paintOrders: List<Int>? = null, offsetRects: List<Rectangle>? = null, scrollRects: List<Rectangle>? = null, clientRects: List<Rectangle>? = null)

Properties

bounds

The absolute position bounding box.

val bounds: List<Rectangle>

clientRects

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

val clientRects: List<Rectangle>?

nodeIndex

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

val nodeIndex: List<Int>

offsetRects

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

val offsetRects: List<Rectangle>?

paintOrders

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.

val paintOrders: List<Int>?

scrollRects

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

val scrollRects: List<Rectangle>?

stackingContexts

Stacking context information.

val stackingContexts: RareBooleanData

styles

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

val styles: List<ArrayOfStrings>

text

Contents of the LayoutText, if any.

val text: List<StringIndex>