APIInterfaces
Point
Defined in: types/canvas.ts:48
A two-dimensional coordinate on the canvas.
Remarks
Coordinates are measured in CSS pixels from the top-left corner of the rendered canvas. Pointer events, exported paths, and loaded paths all use this coordinate system.
Properties
x
readonlyx:number
Defined in: types/canvas.ts:52
Horizontal coordinate in pixels from the left edge of the canvas.
y
readonlyy:number
Defined in: types/canvas.ts:56
Vertical coordinate in pixels from the top edge of the canvas.