Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

pointers

Returns an array [[x0, y0], [x1, y1]…] of coordinates of the specified event’s pointer locations relative to the specified target. For touch events, the returned array of positions corresponds to the event.touches array; for other events, returns a single-element array.

If target is not specified, it defaults to the source event’s currentTarget property, if any.

function pointers(event: any, target?: any): Array<[number, number]>;
§
pointers(event: any, target?: any): Array<[number, number]>
[src]

§Parameters

§
event: any
[src]

The specified event.

§
target?: any optional
[src]

The target which the coordinates are relative to.

§Return Type

§
Array<[number, number]>
[src]