2.8 KiB
2.8 KiB
Home > puppeteer > Protocol > DOMSnapshot > LayoutTreeSnapshot
Protocol.DOMSnapshot.LayoutTreeSnapshot interface
Table of details of an element in the DOM tree with a LayoutObject.
Signature:
export interface LayoutTreeSnapshot
Properties
Property | Type | Description |
---|---|---|
bounds | Rectangle[] | The absolute position bounding box. |
clientRects | Rectangle[] | The client rect of nodes. Only available when includeDOMRects is set to true |
nodeIndex | integer[] | Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot . |
offsetRects | Rectangle[] | The offset rect of nodes. Only available when includeDOMRects is set to true |
paintOrders | integer[] | 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 | Rectangle[] | The scroll rect of nodes. Only available when includeDOMRects is set to true |
stackingContexts | RareBooleanData | Stacking context information. |
styles | ArrayOfStrings[] | Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot . |
text | StringIndex[] | Contents of the LayoutText, if any. |