MCPcopy Index your code
hub / github.com/callstack/agent-device / normalizedRect

Function normalizedRect

src/utils/screenshot-geometry.ts:18–20  ·  view source on GitHub ↗
(rect: Rect)

Source from the content-addressed store, hash-verified

16export type NormalizedPoint = Point & { readonly [normalizedPointBrand]: 'normalized-point' };
17
18export function normalizedRect(rect: Rect): NormalizedRect {
19 return rect as NormalizedRect;
20}
21
22export function unionRects(rects: Rect[]): Rect {
23 let minX = Number.POSITIVE_INFINITY;

Callers 5

output.test.tsFile · 0.90
toOcrBlockFunction · 0.90
toScreenshotDiffRegionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected