mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1.4 KiB
1.4 KiB
Home > puppeteer > Protocol > DOMSnapshot > InlineTextBox
Protocol.DOMSnapshot.InlineTextBox interface
Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.
Signature:
export interface InlineTextBox
Properties
Property | Type | Description |
---|---|---|
boundingBox | DOM.Rect | The bounding box in document coordinates. Note that scroll offset of the document is ignored. |
numCharacters | 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. |
startCharacterIndex | 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. |