Skip to main content

interface.PickContext

API > PickContext

Interface: PickContext

A context interface for pick operations.

Remarks

This is used by some controllers to determine the position and depth of point of screen to allow e.g. orbiting around said point. You may pass View or RenderContext directly, or wrap some custom variant of picking in your own object.

See

View.pick

Properties

pick

pick: (x, y, options?) => Promise\< undefined | PickSample >

Parameters

ParameterType
xnumber
ynumber
options?PickOptions

Returns

Promise\< undefined | PickSample >

Source

@novorender/web_app/controller/base.ts:334