pl.wendigo.chrome.domain.domsnapshot / LayoutTreeNode

LayoutTreeNode

data class LayoutTreeNode (source)

Details of an element in the DOM tree with a LayoutObject.

Constructors

<init>

LayoutTreeNode(domNodeIndex: Int, boundingBox: Rect, layoutText: String? = null, inlineTextNodes: List<InlineTextBox>? = null, styleIndex: Int? = null, paintOrder: Int? = null, isStackingContext: Boolean? = null)

Details of an element in the DOM tree with a LayoutObject.

Properties

boundingBox

val boundingBox: Rect

The bounding box in document coordinates. Note that scroll offset of the document is ignored.

domNodeIndex

val domNodeIndex: Int

The index of the related DOM node in the domNodes array returned by getSnapshot.

inlineTextNodes

val inlineTextNodes: List<InlineTextBox>?

The post-layout inline text nodes, if any.

isStackingContext

val isStackingContext: Boolean?

Set to true to indicate the element begins a new stacking context.

layoutText

val layoutText: String?

Contents of the LayoutText, if any.

paintOrder

val paintOrder: Int?

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 getSnapshot was true.

styleIndex

val styleIndex: Int?

Index into the computedStyles array returned by getSnapshot.