Skip to content

Interface: PickWindow ​

Experimental

A square window of size × size device pixels centred on the pixel under the cursor. Mutable and reused across picks; filled by computePickWindow.

Properties ​

PropertyTypeDescription
canvasRowsnumberExperimental Canvas height in device px (floor(cssHeight * dpr)).
centerXnumberExperimental
centerYnumberExperimental
clipX0numberExperimental Visible region in device px, GL bottom-left origin, half-open [x0, x1) × [y0, y1).
clipX1numberExperimental
clipY0numberExperimental
clipY1numberExperimental
colnumberExperimental Device pixel under the cursor: column from the left, row from the top of the canvas.
halfnumberExperimental Device px from the centre pixel to the window edge: ceil(radius * dpr).
pixelRationumberExperimental
radiusnumberExperimental Search radius, CSS px (after clamping).
rownumberExperimental
scaleXnumberExperimental NDC scale and centre of the window: ndc' = (ndc - centre) * scale.
scaleYnumberExperimental
sizenumberExperimental Window side in device px: 2 * half + 1.
vhnumberExperimental
vwnumberExperimental
vxnumberExperimental GL viewport in device px (bottom-left origin), as three.js sets it for this view.
vynumberExperimental
windowHeightnumberExperimental
windowWidthnumberExperimental The window's size in the view's CSS px (size × renderArea / viewport device size). Screen- space sized primitives use this as their uResolution in the pick pass.
xnumberExperimental Cursor, CSS px from the canvas' top-left.
ynumberExperimental

Released under the MIT License.