Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.DOMSnapshot.LayoutTreeSnapshot

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
interface Protocol.DOMSnapshot.LayoutTreeSnapshot
import { type Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { LayoutTreeSnapshot } = Protocol.DOMSnapshot;

Table of details of an element in the DOM tree with a LayoutObject.

Properties

nodeIndex: integer[]

Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.

styles: ArrayOfStrings[]

Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.

bounds: Rectangle[]

The absolute position bounding box.

text: StringIndex[]

Contents of the LayoutText, if any.

stackingContexts: RareBooleanData

Stacking context information.

optional
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.

optional
offsetRects: Rectangle[]

The offset rect of nodes. Only available when includeDOMRects is set to true

optional
scrollRects: Rectangle[]

The scroll rect of nodes. Only available when includeDOMRects is set to true

optional
clientRects: Rectangle[]

The client rect of nodes. Only available when includeDOMRects is set to true

optional
blendedBackgroundColors: StringIndex[]

The list of background colors that are blended with colors of overlapping elements.

optional
textColorOpacities: number[]

The list of computed text opacities.