NGL@0.10.4 Home Manual Reference Source GalleryRepository
import PickingProxy from 'ngl/src/controls/picking-proxy.js'
public class | source

PickingProxy

Picking proxy class.

Constructor Summary

Public Constructor
public

constructor(pickingData: PickingData, stage: Stage)

Create picking proxy object

Member Summary

Public Members
public get

altKey: *

If the alt key was pressed

public get

arrow: *

public get

atom: *

public get

axes: *

public get

bond: *

public get

Position of the mouse on the canvas

public get

clash: *

public get

The atom of a picked bond that is closest to the mouse

public get

The component the picked data is part of

public get

cone: *

public get

contact: *

public
public get

ctrlKey: *

If the ctrl key was pressed

public get
public get
public get
public
public get

mesh: *

public get

metaKey: *

If the meta key was pressed

public

mouse: *

public get

object: *

The picked object data

public get

The 3d position in the scene of the picked object

public get

If the shift key was pressed

public get

slice: *

public get

sphere: *

public

stage: *

public get

surface: *

public get

type: *

Kind of the picked data

public get
public get

unknown: *

public get

volume: *

Public Constructors

public constructor(pickingData: PickingData, stage: Stage) source

Create picking proxy object

Params:

NameTypeAttributeDescription
pickingData PickingData

picking data

stage Stage

stage object

Public Members

public get altKey: * source

If the alt key was pressed

public get arrow: * source

public get atom: * source

public get axes: * source

public get bond: * source

public get canvasPosition: * source

Position of the mouse on the canvas

public get clash: * source

public get closestBondAtom: * source

The atom of a picked bond that is closest to the mouse

public get component: * source

The component the picked data is part of

public get cone: * source

public get contact: * source

public controls: * source

public get ctrlKey: * source

If the ctrl key was pressed

public get cylinder: * source

public get distance: * source

public get ellipsoid: * source

public instance: * source

public get mesh: * source

public get metaKey: * source

If the meta key was pressed

public mouse: * source

public get object: * source

The picked object data

public get position: * source

The 3d position in the scene of the picked object

public get shiftKey: * source

If the shift key was pressed

public get slice: * source

public get sphere: * source

public stage: * source

public get surface: * source

public get type: * source

Kind of the picked data

public get unitcell: * source

public get unknown: * source

public get volume: * source