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

Function formatScreenshotDiffRegionLines

src/utils/output.ts:397–406  ·  view source on GitHub ↗
(data: ScreenshotDiffResult, useColor: boolean)

Source from the content-addressed store, hash-verified

395}
396
397function formatScreenshotDiffRegionLines(data: ScreenshotDiffResult, useColor: boolean): string[] {
398 const regions = Array.isArray(data.regions) ? data.regions : [];
399 if (regions.length === 0) return [];
400
401 const lines = [` ${formatMuted('Changed regions:', useColor)}`];
402 for (const region of regions.slice(0, 5)) {
403 lines.push(...formatScreenshotDiffRegionEntryLines(region));
404 }
405 return lines;
406}
407
408function formatScreenshotDiffRegionEntryLines(region: ScreenshotDiffRegion): string[] {
409 const share =

Callers 1

formatScreenshotDiffTextFunction · 0.85

Calls 3

formatMutedFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected