import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { LayoutTreeNode } = Protocol.DOMSnapshot;
Details of an element in the DOM tree with a LayoutObject.
Properties
domNodeIndex: integer
The index of the related DOM node in the domNodes
array returned by getSnapshot
.
boundingBox: DOM.Rect
The bounding box in document coordinates. Note that scroll offset of the document is ignored.
optional
inlineTextNodes: InlineTextBox[]The post-layout inline text nodes, if any.
optional
styleIndex: integerIndex into the computedStyles
array returned by getSnapshot
.
optional
paintOrder: integerGlobal 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.