LayoutTreeNode

@Serializable
data class LayoutTreeNode(val domNodeIndex: Int, val boundingBox: DOM.Rect, val layoutText: String? = null, val inlineTextNodes: List<DOMSnapshot.InlineTextBox>? = null, val styleIndex: Int? = null, val paintOrder: Int? = null, val isStackingContext: Boolean? = null)

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

Constructors

Link copied to clipboard
constructor(domNodeIndex: Int, boundingBox: DOM.Rect, layoutText: String? = null, inlineTextNodes: List<DOMSnapshot.InlineTextBox>? = null, styleIndex: Int? = null, paintOrder: Int? = null, isStackingContext: Boolean? = null)

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

The post-layout inline text nodes, if any.

Link copied to clipboard

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

Link copied to clipboard
val layoutText: String? = null

Contents of the LayoutText, if any.

Link copied to clipboard
val paintOrder: 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 getSnapshot was true.

Link copied to clipboard
val styleIndex: Int? = null

Index into the computedStyles array returned by getSnapshot.