Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sinco/deps.ts>Protocol.DOMSnapshot.TextBoxSnapshot

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
interface Protocol.DOMSnapshot.TextBoxSnapshot
import { type Protocol } from "https://deno.land/x/sinco@v4.1.0/deps.ts";
const { TextBoxSnapshot } = Protocol.DOMSnapshot;

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

layoutIndex: integer[]

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

bounds: Rectangle[]

The absolute position bounding box.

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.

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.