MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / zoom

Function zoom

source code/utils/computerUse/executor.ts:422–446  ·  view source on GitHub ↗
(
      regionLogical: { x: number; y: number; w: number; h: number },
      allowedBundleIds: string[],
      displayId?: number,
    )

Source from the content-addressed store, hash-verified

420 },
421
422 async zoom(
423 regionLogical: { x: number; y: number; w: number; h: number },
424 allowedBundleIds: string[],
425 displayId?: number,
426 ): Promise<{ base64: string; width: number; height: number }> {
427 const d = cu.display.getSize(displayId)
428 const [outW, outH] = computeTargetDims(
429 regionLogical.w,
430 regionLogical.h,
431 d.scaleFactor,
432 )
433 return drainRunLoop(() =>
434 cu.screenshot.captureRegion(
435 withoutTerminal(allowedBundleIds),
436 regionLogical.x,
437 regionLogical.y,
438 regionLogical.w,
439 regionLogical.h,
440 outW,
441 outH,
442 SCREENSHOT_JPEG_QUALITY,
443 displayId,
444 ),
445 )
446 },
447
448 // ── Keyboard ─────────────────────────────────────────────────────────
449

Callers

nothing calls this directly

Calls 3

computeTargetDimsFunction · 0.85
drainRunLoopFunction · 0.85
withoutTerminalFunction · 0.85

Tested by

no test coverage detected