29 lines
2.8 KiB
Markdown
29 lines
2.8 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [DOMSnapshot](./puppeteer.protocol.domsnapshot.md) > [LayoutTreeSnapshot](./puppeteer.protocol.domsnapshot.layouttreesnapshot.md)
|
||
|
|
||
|
## Protocol.DOMSnapshot.LayoutTreeSnapshot interface
|
||
|
|
||
|
Table of details of an element in the DOM tree with a LayoutObject.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export interface LayoutTreeSnapshot
|
||
|
```
|
||
|
|
||
|
## Properties
|
||
|
|
||
|
| Property | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| [bounds](./puppeteer.protocol.domsnapshot.layouttreesnapshot.bounds.md) | [Rectangle](./puppeteer.protocol.domsnapshot.rectangle.md)<!-- -->\[\] | The absolute position bounding box. |
|
||
|
| [clientRects](./puppeteer.protocol.domsnapshot.layouttreesnapshot.clientrects.md) | [Rectangle](./puppeteer.protocol.domsnapshot.rectangle.md)<!-- -->\[\] | The client rect of nodes. Only available when includeDOMRects is set to true |
|
||
|
| [nodeIndex](./puppeteer.protocol.domsnapshot.layouttreesnapshot.nodeindex.md) | [integer](./puppeteer.protocol.integer.md)<!-- -->\[\] | Index of the corresponding node in the <code>NodeTreeSnapshot</code> array returned by <code>captureSnapshot</code>. |
|
||
|
| [offsetRects](./puppeteer.protocol.domsnapshot.layouttreesnapshot.offsetrects.md) | [Rectangle](./puppeteer.protocol.domsnapshot.rectangle.md)<!-- -->\[\] | The offset rect of nodes. Only available when includeDOMRects is set to true |
|
||
|
| [paintOrders](./puppeteer.protocol.domsnapshot.layouttreesnapshot.paintorders.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 captureSnapshot was true. |
|
||
|
| [scrollRects](./puppeteer.protocol.domsnapshot.layouttreesnapshot.scrollrects.md) | [Rectangle](./puppeteer.protocol.domsnapshot.rectangle.md)<!-- -->\[\] | The scroll rect of nodes. Only available when includeDOMRects is set to true |
|
||
|
| [stackingContexts](./puppeteer.protocol.domsnapshot.layouttreesnapshot.stackingcontexts.md) | [RareBooleanData](./puppeteer.protocol.domsnapshot.rarebooleandata.md) | Stacking context information. |
|
||
|
| [styles](./puppeteer.protocol.domsnapshot.layouttreesnapshot.styles.md) | [ArrayOfStrings](./puppeteer.protocol.domsnapshot.arrayofstrings.md)<!-- -->\[\] | Array of indexes specifying computed style strings, filtered according to the <code>computedStyles</code> parameter passed to <code>captureSnapshot</code>. |
|
||
|
| [text](./puppeteer.protocol.domsnapshot.layouttreesnapshot.text.md) | [StringIndex](./puppeteer.protocol.domsnapshot.stringindex.md)<!-- -->\[\] | Contents of the LayoutText, if any. |
|
||
|
|