puppeteer/new-docs/puppeteer.protocol.domsnapshot.layouttreenode.md
2020-07-13 14:01:35 +01:00

27 lines
2.1 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [DOMSnapshot](./puppeteer.protocol.domsnapshot.md) &gt; [LayoutTreeNode](./puppeteer.protocol.domsnapshot.layouttreenode.md)
## Protocol.DOMSnapshot.LayoutTreeNode interface
Details of an element in the DOM tree with a LayoutObject.
<b>Signature:</b>
```typescript
export interface LayoutTreeNode
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [boundingBox](./puppeteer.protocol.domsnapshot.layouttreenode.boundingbox.md) | [DOM.Rect](./puppeteer.protocol.dom.rect.md) | The bounding box in document coordinates. Note that scroll offset of the document is ignored. |
| [domNodeIndex](./puppeteer.protocol.domsnapshot.layouttreenode.domnodeindex.md) | [integer](./puppeteer.protocol.integer.md) | The index of the related DOM node in the <code>domNodes</code> array returned by <code>getSnapshot</code>. |
| [inlineTextNodes](./puppeteer.protocol.domsnapshot.layouttreenode.inlinetextnodes.md) | [InlineTextBox](./puppeteer.protocol.domsnapshot.inlinetextbox.md)<!-- -->\[\] | The post-layout inline text nodes, if any. |
| [isStackingContext](./puppeteer.protocol.domsnapshot.layouttreenode.isstackingcontext.md) | boolean | Set to true to indicate the element begins a new stacking context. |
| [layoutText](./puppeteer.protocol.domsnapshot.layouttreenode.layouttext.md) | string | Contents of the LayoutText, if any. |
| [paintOrder](./puppeteer.protocol.domsnapshot.layouttreenode.paintorder.md) | [integer](./puppeteer.protocol.integer.md) | 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](./puppeteer.protocol.domsnapshot.layouttreenode.styleindex.md) | [integer](./puppeteer.protocol.integer.md) | Index into the <code>computedStyles</code> array returned by <code>getSnapshot</code>. |