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

Function computeTargetDims

source code/utils/computerUse/executor.ts:62–70  ·  view source on GitHub ↗

Logical → physical → API target dims. See `targetImageSize` + COORDINATES.md.

(
  logicalW: number,
  logicalH: number,
  scaleFactor: number,
)

Source from the content-addressed store, hash-verified

60
61/** Logical → physical → API target dims. See `targetImageSize` + COORDINATES.md. */
62function computeTargetDims(
63 logicalW: number,
64 logicalH: number,
65 scaleFactor: number,
66): [number, number] {
67 const physW = Math.round(logicalW * scaleFactor)
68 const physH = Math.round(logicalH * scaleFactor)
69 return targetImageSize(physW, physH, API_RESIZE_PARAMS)
70}
71
72async function readClipboardViaPbpaste(): Promise<string> {
73 const { stdout, code } = await execFileNoThrow('pbpaste', [], {

Callers 3

resolvePrepareCaptureFunction · 0.85
screenshotFunction · 0.85
zoomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected