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

1.6 KiB

Home > puppeteer > Protocol > DOMSnapshot > TextBoxSnapshot

Protocol.DOMSnapshot.TextBoxSnapshot interface

Table of details of the post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.

Signature:

export interface TextBoxSnapshot 

Properties

Property Type Description
bounds Rectangle[] The absolute position bounding box.
layoutIndex integer[] Index of the layout tree node that owns this box collection.
length integer[] The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.
start integer[] The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.