struct Protocol::DOMSnapshot::TextBoxSnapshot

Overview

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

Included Modules

Defined in:

protocol/dom_snapshot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def bounds : Array(Rectangle) #

The absolute position bounding box.


[View source]
def layout_index : Array(Int::Primitive) #

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


[View source]
def length : Array(Int::Primitive) #

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.


[View source]
def start : Array(Int::Primitive) #

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.


[View source]