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

Function readPoint

src/core/dispatch-interactions.ts:205–216  ·  view source on GitHub ↗
(
  positionals: string[],
  errorMessage: string,
  details?: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

203};
204
205function readPoint(
206 positionals: string[],
207 errorMessage: string,
208 details?: Record<string, unknown>,
209): Point {
210 const x = Number(positionals[0]);
211 const y = Number(positionals[1]);
212 if (Number.isNaN(x) || Number.isNaN(y)) {
213 throw new AppError('INVALID_ARGS', errorMessage, details);
214 }
215 return { x, y };
216}
217
218async function handleMacOsSurfacePress(
219 x: number,

Callers 4

handleLongPressCommandFunction · 0.70
handleFocusCommandFunction · 0.70
handlePressCommandFunction · 0.70
handleReadCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected