InlineTextBox

@Serializable
data class InlineTextBox(val boundingBox: DOM.Rect, val startCharacterIndex: Int, val numCharacters: Int)

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

Constructors

Link copied to clipboard
constructor(boundingBox: DOM.Rect, startCharacterIndex: Int, numCharacters: Int)

Properties

Link copied to clipboard

The bounding box in document coordinates. Note that scroll offset of the document is ignored.

Link copied to clipboard

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.

Link copied to clipboard

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.