UNPKG

askui

Version:

Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on

19 lines (18 loc) 719 B
import { BoundingBox } from './boundary-box'; /** * * @param {string} name - The element type e.g text, button * @param {string} text - The detected text inside the element * @param {BoundingBox} bndbox - The element bounding box * @param {string[]} colors - An optional, the element top 3 dominate colors * */ export declare class DetectedElement { name: string; text: string; bndbox: BoundingBox; colors?: string[] | undefined; similarityScore?: number | undefined; constructor(name: string, text: string, bndbox: BoundingBox, colors?: string[] | undefined, similarityScore?: number | undefined); static fromJson(detectedElement: DetectedElement, resizeRatio?: number): DetectedElement; }