Skip to content

Function: windowPixelDistance() ​

ts
function windowPixelDistance(win, i, j): number;

Experimental

CSS distance from the cursor to the centre of window pixel (i, j) (row from the bottom). The pixel under the cursor is distance 0: whatever is drawn there is under the pointer.

Parameters ​

ParameterType
winReadonly<PickWindow>
inumber
jnumber

Returns ​

number

Released under the MIT License.