Skip to content

Function: computePickWindow() ​

ts
function computePickWindow(out, x, y, radius, canvas, renderArea, scissor): boolean;

Experimental

Fill out for a pick at CSS (x, y) with radius CSS px, in a view that renders into renderArea (CSS, top-left origin) clipped to scissor (or unclipped when null).

Returns false (leaving out partially written) when the cursor's pixel is not visible in the view, or the view is empty: there is nothing to pick.

Parameters ​

ParameterType
outPickWindow
xnumber
ynumber
radiusnumber
canvasReadonly<PickCanvas>
renderAreaReadonly<ViewportRect>
scissorReadonly<ViewportRect> | null

Returns ​

boolean

Released under the MIT License.