@ui-tars/shared
Version:
Shared types for UI-TARS
15 lines (13 loc) • 423 B
text/typescript
/**
* boxStr convert to screen coords
* @param boxStr box string (format: "[x1,y1,x2,y2]" or "[x,y]")
* @param width screen width
* @param height screen height
* @param factor scale factor
* @returns calculated center point coords {x, y}
*/
declare function parseBoxToScreenCoords(boxStr: string, width: number, height: number, factor: number): {
x: number;
y: number;
};
export { parseBoxToScreenCoords };