Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

PointLike

PointLike = Point | [number, number]

Defined in: src/ui/camera.ts:30

A Point or an array of two numbers representing x and y screen coordinates in pixels.

Example

ts
let p1 = new Point(-77, 38); // a PointLike which is a Point
let p2 = [-77, 38]; // a PointLike which is an array of two numbers