pl.wendigo.chrome.api.domsnapshot / TextBoxSnapshot

TextBoxSnapshot

data class TextBoxSnapshot (source)

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

Link
DOMSnapshot#TextBoxSnapshot type documentation.

Constructors

<init>

TextBoxSnapshot(layoutIndex: List<Int>, bounds: List<Rectangle>, start: List<Int>, length: List<Int>)

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

Properties

bounds

val bounds: List<Rectangle>

The absolute position bounding box.

layoutIndex

val layoutIndex: List<Int>

Index of the layout tree node that owns this box collection.

length

val length: List<Int>

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

val start: List<Int>

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.