Skip to main content

Class: DefaultCameraController

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:11

A camera controller based on the camera-controls library.

No Inherit Doc​

Extends​

  • CameraControls

Constructors​

Constructor​

new DefaultCameraController(__namedParameters: {
camera_entity: Entity;
viewport: Viewport;
activate?: boolean;
preset?: CameraControllerPreset;
}): CameraController;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:52

Parameters​

ParameterType
__namedParameters{ camera_entity: Entity; viewport: Viewport; activate?: boolean; preset?: CameraControllerPreset; }
__namedParameters.camera_entityEntity
__namedParameters.viewportViewport
__namedParameters.activate?boolean
__namedParameters.preset?CameraControllerPreset

Returns​

CameraController

Overrides​

CameraControls.constructor;

Methods​

cancel​

cancel: () => void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:196

Force cancel user dragging.

Returns​

void

Inherited from​

CameraControls.cancel;

lockPointer​

lockPointer: () => void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:202

Still an experimental feature. This could change at any time.

Returns​

void

Inherited from​

CameraControls.lockPointer;

unlockPointer​

unlockPointer: () => void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:208

Still an experimental feature. This could change at any time.

Returns​

void

Inherited from​

CameraControls.unlockPointer;

addEventListener()​

addEventListener<K>(type: K, listener: (event: CameraControlsEventMap[K]) => any): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:379

Adds the specified event listener. Applicable event types (which is K) are:

Event nameTiming
'controlstart'When the user starts to control the camera via mouse / touches. ¹
'control'When the user controls the camera (dragging).
'controlend'When the user ends to control the camera. ¹
'transitionstart'When any kind of transition starts, either user control or using a method with enableTransition = true
'update'When the camera position is updated.
'wake'When the camera starts moving.
'rest'When the camera movement is below .restThreshold ².
'sleep'When the camera end moving.
  1. mouseButtons.wheel (Mouse wheel control) does not emit 'controlstart' and 'controlend'. mouseButtons.wheel uses scroll-event internally, and scroll-event happens intermittently. That means "start" and "end" cannot be detected.
  2. Due to damping, sleep will usually fire a few seconds after the camera appears to have stopped moving. If you want to do something (e.g. enable UI, perform another transition) at the point when the camera has stopped, you probably want the rest event. This can be fine tuned using the .restThreshold parameter. See the Rest and Sleep Example.

e.g.

cameraControl.addEventListener( 'controlstart', myCallbackFunction );

Type Parameters​

Type Parameter
K extends keyof CameraControlsEventMap

Parameters​

ParameterTypeDescription
typeKevent name
listener(event: CameraControlsEventMap[K]) => anyhandler function

Returns​

void

Inherited from​

CameraControls.addEventListener;

removeEventListener()​

removeEventListener<K>(type: K, listener: (event: CameraControlsEventMap[K]) => any): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:390

Removes the specified event listener e.g.

cameraControl.addEventListener( 'controlstart', myCallbackFunction );

Type Parameters​

Type Parameter
K extends keyof CameraControlsEventMap

Parameters​

ParameterTypeDescription
typeKevent name
listener(event: CameraControlsEventMap[K]) => anyhandler function

Returns​

void

Inherited from​

CameraControls.removeEventListener;

rotate()​

rotate(
azimuthAngle: number,
polarAngle: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:399

Rotate azimuthal angle(horizontal) and polar angle(vertical). Every value is added to the current value.

Parameters​

ParameterTypeDescription
azimuthAnglenumberAzimuth rotate angle. In radian.
polarAnglenumberPolar rotate angle. In radian.
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.rotate;

rotateAzimuthTo()​

rotateAzimuthTo(azimuthAngle: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:411

Rotate azimuthal angle(horizontal) to the given angle and keep the same polar angle(vertical) target.

e.g.

cameraControls.rotateAzimuthTo( 30 * THREE.MathUtils.DEG2RAD, true );

Parameters​

ParameterTypeDescription
azimuthAnglenumberAzimuth rotate angle. In radian.
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.rotateAzimuthTo;

rotatePolarTo()​

rotatePolarTo(polarAngle: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:423

Rotate polar angle(vertical) to the given angle and keep the same azimuthal angle(horizontal) target.

e.g.

cameraControls.rotatePolarTo( 30 * THREE.MathUtils.DEG2RAD, true );

Parameters​

ParameterTypeDescription
polarAnglenumberPolar rotate angle. In radian.
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.rotatePolarTo;

rotateTo()​

rotateTo(
azimuthAngle: number,
polarAngle: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:462

Rotate azimuthal angle(horizontal) and polar angle(vertical) to the given angle. Camera view will rotate over the orbit pivot absolutely:

azimuthAngle

0º
\
90º -----+----- -90º
\
180º
directionangle
front0º
left90º (Math.PI / 2)
right-90º (- Math.PI / 2)
back180º (Math.PI)

polarAngle

180º
|
90º
|
0º
directionangle
top/sky180º (Math.PI)
horizontal from view90º (Math.PI / 2)
bottom/floor0º

Parameters​

ParameterTypeDescription
azimuthAnglenumberAzimuth rotate angle to. In radian.
polarAnglenumberPolar rotate angle to. In radian.
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.rotateTo;

dolly()​

dolly(distance: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:469

Dolly in/out camera position.

Parameters​

ParameterTypeDescription
distancenumberDistance of dollyIn. Negative number for dollyOut.
enableTransition?booleanWhether to move smoothly or immediately.

Returns​

Promise<void>

Inherited from​

CameraControls.dolly;

dollyTo()​

dollyTo(distance: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:476

Dolly in/out camera position to given distance.

Parameters​

ParameterTypeDescription
distancenumberDistance of dolly.
enableTransition?booleanWhether to move smoothly or immediately.

Returns​

Promise<void>

Inherited from​

CameraControls.dollyTo;

dollyInFixed()​

dollyInFixed(distance: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:485

Dolly in, but does not change the distance between the target and the camera, and moves the target position instead. Specify a negative value for dolly out.

Parameters​

ParameterTypeDescription
distancenumberDistance of dolly.
enableTransition?booleanWhether to move smoothly or immediately.

Returns​

Promise<void>

Inherited from​

CameraControls.dollyInFixed;

zoom()​

zoom(zoomStep: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:493

Zoom in/out camera. The value is added to camera zoom. Limits set with .minZoom and .maxZoom

Parameters​

ParameterTypeDescription
zoomStepnumberzoom scale
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.zoom;

zoomTo()​

zoomTo(zoom: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:501

Zoom in/out camera to given scale. The value overwrites camera zoom. Limits set with .minZoom and .maxZoom

Parameters​

ParameterTypeDescription
zoomnumber-
enableTransition?boolean-

Returns​

Promise<void>

Inherited from​

CameraControls.zoomTo;

pan()​

pan(
x: number,
y: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:506

Parameters​

ParameterType
xnumber
ynumber
enableTransition?boolean

Returns​

Promise<void>

Deprecated​

pan() has been renamed to truck()

Inherited from​

CameraControls.pan;

truck()​

truck(
x: number,
y: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:514

Truck and pedestal camera using current azimuthal angle

Parameters​

ParameterTypeDescription
xnumberHorizontal translate amount
ynumberVertical translate amount
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.truck;

forward()​

forward(distance: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:521

Move forward / backward.

Parameters​

ParameterTypeDescription
distancenumberAmount to move forward / backward. Negative value to move backward
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.forward;

elevate()​

elevate(height: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:528

Move up / down.

Parameters​

ParameterTypeDescription
heightnumberAmount to move up / down. Negative value to move down
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.elevate;

moveTo()​

moveTo(
x: number,
y: number,
z: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:537

Move target position to given point.

Parameters​

ParameterTypeDescription
xnumberx coord to move center position
ynumbery coord to move center position
znumberz coord to move center position
enableTransition?booleanWhether to move smoothly or immediately

Returns​

Promise<void>

Inherited from​

CameraControls.moveTo;

lookInDirectionOf()​

lookInDirectionOf(
x: number,
y: number,
z: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:547

Look in the given point direction.

Parameters​

ParameterTypeDescription
xnumberpoint x.
ynumberpoint y.
znumberpoint z.
enableTransition?booleanWhether to move smoothly or immediately.

Returns​

Promise<void>

Transition end promise

Inherited from​

CameraControls.lookInDirectionOf;

fitToBox()​

fitToBox(
aabb: Box3,
enableTransition: boolean,
options?: Partial<FitToOptions>): Promise<void[]>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:561

Fit the viewport to the box or the bounding box of the object, using the nearest axis. paddings are in unit. set cover: true to fill enter screen. e.g.

cameraControls.fitToBox( myMesh );

Parameters​

ParameterTypeDescription
aabbBox3Axis aligned bounding box to fit the view.
enableTransitionbooleanWhether to move smoothly or immediately.
options?Partial<FitToOptions><object> { cover: boolean, paddingTop: number, paddingLeft: number, paddingBottom: number, paddingRight: number }

Returns​

Promise<void[]>

Transition end promise

Inherited from​

CameraControls.fitToBox;

fitToSphere()​

fitToSphere(boundingSphere: Sphere, enableTransition: boolean): Promise<void[]>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:568

Fit the viewport to the sphere or the bounding sphere of the object.

Parameters​

ParameterTypeDescription
boundingSphereSphere-
enableTransitionboolean-

Returns​

Promise<void[]>

Inherited from​

CameraControls.fitToSphere;

setLookAt()​

setLookAt(
positionX: number,
positionY: number,
positionZ: number,
targetX: number,
targetY: number,
targetZ: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:580

Look at the target from the position.

Parameters​

ParameterTypeDescription
positionXnumber-
positionYnumber-
positionZnumber-
targetXnumber-
targetYnumber-
targetZnumber-
enableTransition?boolean-

Returns​

Promise<void>

Inherited from​

CameraControls.setLookAt;

lerpLookAt()​

lerpLookAt(
positionAX: number,
positionAY: number,
positionAZ: number,
targetAX: number,
targetAY: number,
targetAZ: number,
positionBX: number,
positionBY: number,
positionBZ: number,
targetBX: number,
targetBY: number,
targetBZ: number,
t: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:599

Similar to setLookAt, but it interpolates between two states.

Parameters​

ParameterTypeDescription
positionAXnumber-
positionAYnumber-
positionAZnumber-
targetAXnumber-
targetAYnumber-
targetAZnumber-
positionBXnumber-
positionBYnumber-
positionBZnumber-
targetBXnumber-
targetBYnumber-
targetBZnumber-
tnumber-
enableTransition?boolean-

Returns​

Promise<void>

Inherited from​

CameraControls.lerpLookAt;

setPosition()​

setPosition(
positionX: number,
positionY: number,
positionZ: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:609

Set angle and distance by given position. An alias of setLookAt(), without target change. Thus keep gazing at the current target

Parameters​

ParameterTypeDescription
positionXnumber-
positionYnumber-
positionZnumber-
enableTransition?boolean-

Returns​

Promise<void>

Inherited from​

CameraControls.setPosition;

setTarget()​

setTarget(
targetX: number,
targetY: number,
targetZ: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:619

Set the target position where gaze at. An alias of setLookAt(), without position change. Thus keep the same position.

Parameters​

ParameterTypeDescription
targetXnumber-
targetYnumber-
targetZnumber-
enableTransition?boolean-

Returns​

Promise<void>

Inherited from​

CameraControls.setTarget;

setFocalOffset()​

setFocalOffset(
x: number,
y: number,
z: number,
enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:628

Set focal offset using the screen parallel coordinates. z doesn't affect in Orthographic as with Dolly.

Parameters​

ParameterTypeDescription
xnumber-
ynumber-
znumber-
enableTransition?boolean-

Returns​

Promise<void>

Inherited from​

CameraControls.setFocalOffset;

setOrbitPoint()​

setOrbitPoint(
targetX: number,
targetY: number,
targetZ: number): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:637

Set orbit point without moving the camera. SHOULD NOT RUN DURING ANIMATIONS. setOrbitPoint() will immediately fix the positions.

Parameters​

ParameterTypeDescription
targetXnumber-
targetYnumber-
targetZnumber-

Returns​

void

Inherited from​

CameraControls.setOrbitPoint;

setBoundary()​

setBoundary(box3?: Box3): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:643

Set the boundary box that encloses the target of the camera. box3 is in THREE.Box3

Parameters​

ParameterTypeDescription
box3?Box3-

Returns​

void

Inherited from​

CameraControls.setBoundary;

setViewport()​

setViewport(
viewportOrX: number | Vector4 | null,
y: number,
width: number,
height: number): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:653

Set (or unset) the current viewport. Set this when you want to use renderer viewport and .dollyToCursor feature at the same time.

Parameters​

ParameterTypeDescription
viewportOrXnumber | Vector4 | null-
ynumber-
widthnumber-
heightnumber-

Returns​

void

Inherited from​

CameraControls.setViewport;

getDistanceToFitBox()​

getDistanceToFitBox(
width: number,
height: number,
depth: number,
cover?: boolean): number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:662

Calculate the distance to fit the box.

Parameters​

ParameterTypeDescription
widthnumberbox width
heightnumberbox height
depthnumberbox depth
cover?boolean-

Returns​

number

distance

Inherited from​

CameraControls.getDistanceToFitBox;

getDistanceToFitSphere()​

getDistanceToFitSphere(radius: number): number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:669

Calculate the distance to fit the sphere.

Parameters​

ParameterTypeDescription
radiusnumbersphere radius

Returns​

number

distance

Inherited from​

CameraControls.getDistanceToFitSphere;

getTarget()​

getTarget(out: Vector3, receiveEndValue?: boolean): Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:676

Returns the orbit center position, where the camera looking at.

Parameters​

ParameterTypeDescription
outVector3The receiving Vector3 instance to copy the result
receiveEndValue?booleanWhether receive the transition end coords or current. default is true

Returns​

Vector3

Inherited from​

CameraControls.getTarget;

getPosition()​

getPosition(out: Vector3, receiveEndValue?: boolean): Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:683

Returns the camera position.

Parameters​

ParameterTypeDescription
outVector3The receiving Vector3 instance to copy the result
receiveEndValue?booleanWhether receive the transition end coords or current. default is true

Returns​

Vector3

Inherited from​

CameraControls.getPosition;

getSpherical()​

getSpherical(out: Spherical, receiveEndValue?: boolean): Spherical;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:690

Returns the spherical coordinates of the orbit.

Parameters​

ParameterTypeDescription
outSphericalThe receiving Spherical instance to copy the result
receiveEndValue?booleanWhether receive the transition end coords or current. default is true

Returns​

Spherical

Inherited from​

CameraControls.getSpherical;

getFocalOffset()​

getFocalOffset(out: Vector3, receiveEndValue?: boolean): Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:697

Returns the focal offset, which is how much the camera appears to be translated in screen parallel coordinates.

Parameters​

ParameterTypeDescription
outVector3The receiving Vector3 instance to copy the result
receiveEndValue?booleanWhether receive the transition end coords or current. default is true

Returns​

Vector3

Inherited from​

CameraControls.getFocalOffset;

normalizeRotations()​

normalizeRotations(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:702

Normalize camera azimuth angle rotation between 0 and 360 degrees.

Returns​

void

Inherited from​

CameraControls.normalizeRotations;

reset()​

reset(enableTransition?: boolean): Promise<void[]>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:712

Reset all rotation and position to defaults.

Parameters​

ParameterTypeDescription
enableTransition?boolean-

Returns​

Promise<void[]>

Inherited from​

CameraControls.reset;

saveState()​

saveState(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:717

Set current camera position as the default position.

Returns​

void

Inherited from​

CameraControls.saveState;

updateCameraUp()​

updateCameraUp(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:723

Sync camera-up direction. When camera-up vector is changed, .updateCameraUp() must be called.

Returns​

void

Inherited from​

CameraControls.updateCameraUp;

applyCameraUp()​

applyCameraUp(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:729

Apply current camera-up direction to the camera. The orbit system will be re-initialized with the current position.

Returns​

void

Inherited from​

CameraControls.applyCameraUp;

update()​

update(delta: number): boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:737

Update camera position and directions. This should be called in your tick loop every time, and returns true if re-rendering is needed.

Parameters​

ParameterTypeDescription
deltanumber-

Returns​

boolean

updated

Inherited from​

CameraControls.update;

toJSON()​

toJSON(): string;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:742

Get all state in JSON string

Returns​

string

Inherited from​

CameraControls.toJSON;

fromJSON()​

fromJSON(json: string, enableTransition?: boolean): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:749

Reproduce the control state with JSON. enableTransition is where anim or not in a boolean.

Parameters​

ParameterTypeDescription
jsonstring-
enableTransition?boolean-

Returns​

void

Inherited from​

CameraControls.fromJSON;

connect()​

connect(domElement: HTMLElement): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:754

Attach all internal event handlers to enable drag control.

Parameters​

ParameterType
domElementHTMLElement

Returns​

void

Inherited from​

CameraControls.connect;

dispose()​

dispose(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:763

Dispose the cameraControls instance itself, remove all eventListeners.

Returns​

void

Inherited from​

CameraControls.dispose;

hasEventListener()​

hasEventListener(type: string, listener: Listener): boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/EventDispatcher.d.ts:21

Presence of the specified event listener.

Parameters​

ParameterTypeDescription
typestringevent name
listenerListenerhandler function

Returns​

boolean

Inherited from​

CameraControls.hasEventListener;

removeAllEventListeners()​

removeAllEventListeners(type?: string): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/EventDispatcher.d.ts:34

Removes all event listeners

Parameters​

ParameterTypeDescription
type?stringevent name

Returns​

void

Inherited from​

CameraControls.removeAllEventListeners;

dispatchEvent()​

dispatchEvent(event: DispatcherEvent): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/EventDispatcher.d.ts:40

Fire an event type.

Parameters​

ParameterTypeDescription
eventDispatcherEventDispatcherEvent

Returns​

void

Inherited from​

CameraControls.dispatchEvent;

Properties​

minPolarAngle​

minPolarAngle: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:28

Minimum vertical angle in radians. The angle has to be between 0 and .maxPolarAngle inclusive. The default value is 0.

e.g.

cameraControls.maxPolarAngle = 0;

Inherited from​

CameraControls.minPolarAngle;

maxPolarAngle​

maxPolarAngle: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:40

Maximum vertical angle in radians. The angle has to be between .maxPolarAngle and Math.PI inclusive. The default value is Math.PI.

e.g.

cameraControls.maxPolarAngle = Math.PI;

Inherited from​

CameraControls.maxPolarAngle;

minAzimuthAngle​

minAzimuthAngle: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:52

Minimum horizontal angle in radians. The angle has to be less than .maxAzimuthAngle. The default value is - Infinity.

e.g.

cameraControls.minAzimuthAngle = - Infinity;

Inherited from​

CameraControls.minAzimuthAngle;

maxAzimuthAngle​

maxAzimuthAngle: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:64

Maximum horizontal angle in radians. The angle has to be greater than .minAzimuthAngle. The default value is Infinity.

e.g.

cameraControls.maxAzimuthAngle = Infinity;

Inherited from​

CameraControls.maxAzimuthAngle;

minDistance​

minDistance: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:70

Minimum distance for dolly. The value must be higher than 0. Default is Number.EPSILON. PerspectiveCamera only.

Inherited from​

CameraControls.minDistance;

maxDistance​

maxDistance: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:76

Maximum distance for dolly. The value must be higher than minDistance. Default is Infinity. PerspectiveCamera only.

Inherited from​

CameraControls.maxDistance;

infinityDolly​

infinityDolly: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:82

true to enable Infinity Dolly for wheel and pinch. Use this with minDistance and maxDistance If the Dolly distance is less (or over) than the minDistance (or maxDistance), infinityDolly will keep the distance and pushes the target position instead.

Inherited from​

CameraControls.infinityDolly;

minZoom​

minZoom: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:87

Minimum camera zoom.

Inherited from​

CameraControls.minZoom;

maxZoom​

maxZoom: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:92

Maximum camera zoom.

Inherited from​

CameraControls.maxZoom;

smoothTime​

smoothTime: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:97

Approximate time in seconds to reach the target. A smaller value will reach the target faster.

Inherited from​

CameraControls.smoothTime;

draggingSmoothTime​

draggingSmoothTime: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:102

the smoothTime while dragging

Inherited from​

CameraControls.draggingSmoothTime;

maxSpeed​

maxSpeed: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:107

Max transition speed in unit-per-seconds

Inherited from​

CameraControls.maxSpeed;

azimuthRotateSpeed​

azimuthRotateSpeed: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:112

Speed of azimuth (horizontal) rotation.

Inherited from​

CameraControls.azimuthRotateSpeed;

polarRotateSpeed​

polarRotateSpeed: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:117

Speed of polar (vertical) rotation.

Inherited from​

CameraControls.polarRotateSpeed;

dollySpeed​

dollySpeed: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:122

Speed of mouse-wheel dollying.

Inherited from​

CameraControls.dollySpeed;

dollyDragInverted​

dollyDragInverted: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:127

true to invert direction when dollying or zooming via drag

Inherited from​

CameraControls.dollyDragInverted;

truckSpeed​

truckSpeed: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:132

Speed of drag for truck and pedestal.

Inherited from​

CameraControls.truckSpeed;

scaleTruckSpeed​

scaleTruckSpeed: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:137

Scale of the truck speed with target distance.

Inherited from​

CameraControls.scaleTruckSpeed;

dollyToCursor​

dollyToCursor: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:142

true to enable Dolly-in to the mouse cursor coords.

Inherited from​

CameraControls.dollyToCursor;

dragToOffset​

dragToOffset: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:146

Inherited from​

CameraControls.dragToOffset;

boundaryFriction​

boundaryFriction: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:151

Friction ratio of the boundary.

Inherited from​

CameraControls.boundaryFriction;

restThreshold​

restThreshold: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:156

Controls how soon the rest event fires as the camera slows.

Inherited from​

CameraControls.restThreshold;

mouseButtons​

mouseButtons: MouseButtons;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:175

User's mouse input config.

button to assignbehavior
mouseButtons.leftCameraControls.ACTION.ROTATE* | CameraControls.ACTION.TRUCK | CameraControls.ACTION.OFFSET | CameraControls.ACTION.DOLLY | CameraControls.ACTION.ZOOM | CameraControls.ACTION.NONE
mouseButtons.rightCameraControls.ACTION.ROTATE | CameraControls.ACTION.TRUCK* | CameraControls.ACTION.OFFSET | CameraControls.ACTION.DOLLY | CameraControls.ACTION.ZOOM | CameraControls.ACTION.NONE
mouseButtons.wheel ¹CameraControls.ACTION.ROTATE | CameraControls.ACTION.TRUCK | CameraControls.ACTION.OFFSET | CameraControls.ACTION.DOLLY | CameraControls.ACTION.ZOOM | CameraControls.ACTION.NONE
mouseButtons.middle ²CameraControls.ACTION.ROTATE | CameraControls.ACTION.TRUCK | CameraControls.ACTION.OFFSET | CameraControls.ACTION.DOLLY* | CameraControls.ACTION.ZOOM | CameraControls.ACTION.NONE
  1. Mouse wheel event for scroll "up/down" on mac "up/down/left/right"
  2. Mouse click on wheel event "button"
  • * is the default.
  • The default of mouseButtons.wheel is:
    • DOLLY for Perspective camera.
    • ZOOM for Orthographic camera, and can't set DOLLY.

Inherited from​

CameraControls.mouseButtons;

touches​

touches: Touches;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:191

User's touch input config.

fingers to assignbehavior
touches.oneCameraControls.ACTION.TOUCH_ROTATE* | CameraControls.ACTION.TOUCH_TRUCK | CameraControls.ACTION.TOUCH_OFFSET | CameraControls.ACTION.DOLLY
touches.twoACTION.TOUCH_DOLLY_TRUCK | ACTION.TOUCH_DOLLY_OFFSET | ACTION.TOUCH_DOLLY_ROTATE | ACTION.TOUCH_ZOOM_TRUCK | ACTION.TOUCH_ZOOM_OFFSET | ACTION.TOUCH_ZOOM_ROTATE | ACTION.TOUCH_DOLLY | ACTION.TOUCH_ZOOM | CameraControls.ACTION.TOUCH_ROTATE | CameraControls.ACTION.TOUCH_TRUCK | CameraControls.ACTION.TOUCH_OFFSET | CameraControls.ACTION.NONE
touches.threeACTION.TOUCH_DOLLY_TRUCK | ACTION.TOUCH_DOLLY_OFFSET | ACTION.TOUCH_DOLLY_ROTATE | ACTION.TOUCH_ZOOM_TRUCK | ACTION.TOUCH_ZOOM_OFFSET | ACTION.TOUCH_ZOOM_ROTATE | CameraControls.ACTION.TOUCH_ROTATE | CameraControls.ACTION.TOUCH_TRUCK | CameraControls.ACTION.TOUCH_OFFSET | CameraControls.ACTION.NONE
  • * is the default.
  • The default of touches.two and touches.three is:
    • TOUCH_DOLLY_TRUCK for Perspective camera.
    • TOUCH_ZOOM_TRUCK for Orthographic camera, and can't set TOUCH_DOLLY_TRUCK and TOUCH_DOLLY.

Inherited from​

CameraControls.touches;

Other​

invert_middle_button_dolly​

invert_middle_button_dolly: boolean;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:16

Invert the movement direction of the dolly action on middle button only


orbit_on_cursor​

orbit_on_cursor: {
enabled: boolean;
cancel_target_offset: boolean;
}

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:21

Orbit on cursor options

NameTypeDescription
enabledbooleanEnable for the rotate action to pick the orbit target on the pointer down
cancel_target_offsetbooleanEnable to use the previous target when none is picked to prevent target shift on truck and dolly actions.

Default​

-{ enabled: false, cancel_target_offset: false };

lock_pointer​

lock_pointer: {
aim: LockMousePointerAim;
on_drag_threshold_in_pixels: number;
}

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:31

Lock pointer options

NameTypeDescription
aimLockMousePointerAimAim of the pointer lock
on_drag_threshold_in_pixelsnumberThreshold in pixels of the pointer movement before to lock it when lock_pointer.aim = "on-drag"

Default​

-{ aim: "off", on_drag_threshold_in_pixels: 0 };

init_options​

init_options: Readonly<CameraControllerInitOptions>;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:40

Set of options used by CameraController.initController


keyboard_fly_controls​

keyboard_fly_controls: KeyboardFlyControls | null;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:44


preset​

readonly preset: CameraControllerPreset;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:48


onViewportResize​

onViewportResize: () => void;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:61

Returns​

void


ACTION​

readonly static ACTION: Readonly<{
NONE: 0;
ROTATE: 1;
TRUCK: 2;
SCREEN_PAN: 4;
OFFSET: 8;
DOLLY: 16;
ZOOM: 32;
TOUCH_ROTATE: 64;
TOUCH_TRUCK: 128;
TOUCH_SCREEN_PAN: 256;
TOUCH_OFFSET: 512;
TOUCH_DOLLY: 1024;
TOUCH_ZOOM: 2048;
TOUCH_DOLLY_TRUCK: 4096;
TOUCH_DOLLY_SCREEN_PAN: 8192;
TOUCH_DOLLY_OFFSET: 16384;
TOUCH_DOLLY_ROTATE: 32768;
TOUCH_ZOOM_TRUCK: 65536;
TOUCH_ZOOM_OFFSET: 131072;
TOUCH_ZOOM_SCREEN_PAN: 262144;
TOUCH_ZOOM_ROTATE: 524288;
}>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:16

Inherited from​

CameraControls.ACTION;

_enabled​

protected _enabled: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:209

Inherited from​

CameraControls._enabled;

_camera​

protected _camera: any;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:210

Inherited from​

CameraControls._camera;

_yAxisUpSpace​

protected _yAxisUpSpace: Quaternion;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:211

Inherited from​

CameraControls._yAxisUpSpace;

_yAxisUpSpaceInverse​

protected _yAxisUpSpaceInverse: Quaternion;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:212

Inherited from​

CameraControls._yAxisUpSpaceInverse;

_state​

protected _state: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:213

Inherited from​

CameraControls._state;

_aspectRatio​

protected _aspectRatio: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:214

Inherited from​

CameraControls._aspectRatio;

_domElement?​

protected optional _domElement?: HTMLElement;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:215

Inherited from​

CameraControls._domElement;

_viewport​

protected _viewport: Vector4 | null;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:216

Inherited from​

CameraControls._viewport;

_target​

protected _target: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:217

Inherited from​

CameraControls._target;

_targetEnd​

protected _targetEnd: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:218

Inherited from​

CameraControls._targetEnd;

_focalOffset​

protected _focalOffset: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:219

Inherited from​

CameraControls._focalOffset;

_focalOffsetEnd​

protected _focalOffsetEnd: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:220

Inherited from​

CameraControls._focalOffsetEnd;

_spherical​

protected _spherical: Spherical;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:221

Inherited from​

CameraControls._spherical;

_sphericalEnd​

protected _sphericalEnd: Spherical;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:222

Inherited from​

CameraControls._sphericalEnd;

_lastDistance​

protected _lastDistance: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:223

Inherited from​

CameraControls._lastDistance;

_zoom​

protected _zoom: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:224

Inherited from​

CameraControls._zoom;

_zoomEnd​

protected _zoomEnd: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:225

Inherited from​

CameraControls._zoomEnd;

_lastZoom​

protected _lastZoom: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:226

Inherited from​

CameraControls._lastZoom;

_cameraUp0​

protected _cameraUp0: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:227

Inherited from​

CameraControls._cameraUp0;

_target0​

protected _target0: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:228

Inherited from​

CameraControls._target0;

_position0​

protected _position0: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:229

Inherited from​

CameraControls._position0;

_zoom0​

protected _zoom0: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:230

Inherited from​

CameraControls._zoom0;

_focalOffset0​

protected _focalOffset0: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:231

Inherited from​

CameraControls._focalOffset0;

_dollyControlCoord​

protected _dollyControlCoord: Vector2;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:232

Inherited from​

CameraControls._dollyControlCoord;

_changedDolly​

protected _changedDolly: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:233

Inherited from​

CameraControls._changedDolly;

_changedZoom​

protected _changedZoom: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:234

Inherited from​

CameraControls._changedZoom;

_nearPlaneCorners​

protected _nearPlaneCorners: [Vector3, Vector3, Vector3, Vector3];

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:235

Inherited from​

CameraControls._nearPlaneCorners;

_hasRested​

protected _hasRested: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:241

Inherited from​

CameraControls._hasRested;

_boundary​

protected _boundary: Box3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:242

Inherited from​

CameraControls._boundary;

_boundaryEnclosesCamera​

protected _boundaryEnclosesCamera: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:243

Inherited from​

CameraControls._boundaryEnclosesCamera;

_needsUpdate​

protected _needsUpdate: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:244

Inherited from​

CameraControls._needsUpdate;

_updatedLastTime​

protected _updatedLastTime: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:245

Inherited from​

CameraControls._updatedLastTime;

_elementRect​

protected _elementRect: DOMRect;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:246

Inherited from​

CameraControls._elementRect;

_isDragging​

protected _isDragging: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:247

Inherited from​

CameraControls._isDragging;

_dragNeedsUpdate​

protected _dragNeedsUpdate: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:248

Inherited from​

CameraControls._dragNeedsUpdate;

_activePointers​

protected _activePointers: PointerInput[];

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:249

Inherited from​

CameraControls._activePointers;

_lockedPointer​

protected _lockedPointer: PointerInput | null;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:250

Inherited from​

CameraControls._lockedPointer;

_interactiveArea​

protected _interactiveArea: DOMRect;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:251

Inherited from​

CameraControls._interactiveArea;

_isUserControllingRotate​

protected _isUserControllingRotate: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:252

Inherited from​

CameraControls._isUserControllingRotate;

_isUserControllingDolly​

protected _isUserControllingDolly: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:253

Inherited from​

CameraControls._isUserControllingDolly;

_isUserControllingTruck​

protected _isUserControllingTruck: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:254

Inherited from​

CameraControls._isUserControllingTruck;

_isUserControllingOffset​

protected _isUserControllingOffset: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:255

Inherited from​

CameraControls._isUserControllingOffset;

_isUserControllingZoom​

protected _isUserControllingZoom: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:256

Inherited from​

CameraControls._isUserControllingZoom;

_lastDollyDirection​

protected _lastDollyDirection: DOLLY_DIRECTION;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:257

Inherited from​

CameraControls._lastDollyDirection;

_thetaVelocity​

protected _thetaVelocity: Ref;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:258

Inherited from​

CameraControls._thetaVelocity;

_phiVelocity​

protected _phiVelocity: Ref;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:259

Inherited from​

CameraControls._phiVelocity;

_radiusVelocity​

protected _radiusVelocity: Ref;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:260

Inherited from​

CameraControls._radiusVelocity;

_targetVelocity​

protected _targetVelocity: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:261

Inherited from​

CameraControls._targetVelocity;

_focalOffsetVelocity​

protected _focalOffsetVelocity: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:262

Inherited from​

CameraControls._focalOffsetVelocity;

_zoomVelocity​

protected _zoomVelocity: Ref;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:263

Inherited from​

CameraControls._zoomVelocity;

protected _livelink_viewport: ViewportInterface;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:264

Inherited from​

CameraControls._livelink_viewport;

position​

readonly position: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:286

Inherited from​

CameraControls.position;

orientation​

readonly orientation: Quaternion;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:290

Inherited from​

CameraControls.orientation;

direction​

readonly direction: Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:294

Inherited from​

CameraControls.direction;

aspectRatio​

aspectRatio: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:302

Inherited from​

CameraControls.aspectRatio;

enabled​

enabled: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:308

Inherited from​

CameraControls.enabled;

active​

readonly active: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:314

Inherited from​

CameraControls.active;

currentAction​

readonly currentAction: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:320

Inherited from​

CameraControls.currentAction;

distance​

distance: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:325

Inherited from​

CameraControls.distance;

azimuthAngle​

azimuthAngle: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:331

Inherited from​

CameraControls.azimuthAngle;

polarAngle​

polarAngle: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:336

Inherited from​

CameraControls.polarAngle;

boundaryEnclosesCamera​

boundaryEnclosesCamera: boolean;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:341

Inherited from​

CameraControls.boundaryEnclosesCamera;

interactiveArea​

interactiveArea:
| DOMRect
| {
x: number;
y: number;
width: number;
height: number;
};

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:348

Inherited from​

CameraControls.interactiveArea;

getTargetDistance​

getTargetDistance: () => number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:771

Returns​

number

Inherited from​

CameraControls.getTargetDistance;

_truckInternal​

protected _truckInternal: (deltaX: number, deltaY: number, dragToOffset: boolean, screenSpacePanning: boolean) => void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:772

Parameters​

ParameterType
deltaXnumber
deltaYnumber
dragToOffsetboolean
screenSpacePanningboolean

Returns​

void

Inherited from​

CameraControls._truckInternal;

_rotateInternal​

protected _rotateInternal: (deltaX: number, deltaY: number) => void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:773

Parameters​

ParameterType
deltaXnumber
deltaYnumber

Returns​

void

Inherited from​

CameraControls._rotateInternal;

_dollyInternal​

protected _dollyInternal: (delta: number, x: number, y: number) => void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:774

Parameters​

ParameterType
deltanumber
xnumber
ynumber

Returns​

void

Inherited from​

CameraControls._dollyInternal;

_zoomInternal​

protected _zoomInternal: (delta: number, x: number, y: number) => void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:775

Parameters​

ParameterType
deltanumber
xnumber
ynumber

Returns​

void

Inherited from​

CameraControls._zoomInternal;

dampingFactor​

dampingFactor: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:793

Inherited from​

CameraControls.dampingFactor;

draggingDampingFactor​

draggingDampingFactor: number;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:804

Inherited from​

CameraControls.draggingDampingFactor;

release()​

release(): void;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:65

Returns​

void


activate()​

activate(): void;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:69

Returns​

void


deactivate()​

deactivate(): void;

Defined in: livelink.clients/livelink.js/dist/livelink.js/sources/rendering/camera/CameraController.d.ts:73

Returns​

void


updateTransform()​

updateTransform(position: Vec3, orientation: Quat): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:298

Updates the camera local position and local orientation.

Parameters​

ParameterType
positionVec3
orientationQuat

Returns​

void

Inherited from​

CameraControls.updateTransform;

_dollyToNoClamp()​

protected _dollyToNoClamp(distance: number, enableTransition?: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:477

Parameters​

ParameterType
distancenumber
enableTransition?boolean

Returns​

Promise<void>

Inherited from​

CameraControls._dollyToNoClamp;

stop()​

stop(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:706

stop all transitions.

Returns​

void

Inherited from​

CameraControls.stop;

disconnect()​

disconnect(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:758

Detach all internal event handlers to disable drag control.

Returns​

void

Inherited from​

CameraControls.disconnect;

_getTargetDirection()​

protected _getTargetDirection(out: Vector3): Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:764

Parameters​

ParameterType
outVector3

Returns​

Vector3

Inherited from​

CameraControls._getTargetDirection;

_getCameraDirection()​

protected _getCameraDirection(out: Vector3): Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:765

Parameters​

ParameterType
outVector3

Returns​

Vector3

Inherited from​

CameraControls._getCameraDirection;

_findPointerById()​

protected _findPointerById(pointerId: number): PointerInput | undefined;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:766

Parameters​

ParameterType
pointerIdnumber

Returns​

PointerInput | undefined

Inherited from​

CameraControls._findPointerById;

_findPointerByMouseButton()​

protected _findPointerByMouseButton(mouseButton: MOUSE_BUTTON): PointerInput | undefined;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:767

Parameters​

ParameterType
mouseButtonMOUSE_BUTTON

Returns​

PointerInput | undefined

Inherited from​

CameraControls._findPointerByMouseButton;

_disposePointer()​

protected _disposePointer(pointer: PointerInput): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:768

Parameters​

ParameterType
pointerPointerInput

Returns​

void

Inherited from​

CameraControls._disposePointer;

_encloseToBoundary()​

protected _encloseToBoundary(
position: Vector3,
offset: Vector3,
friction: number): Vector3;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:769

Parameters​

ParameterType
positionVector3
offsetVector3
frictionnumber

Returns​

Vector3

Inherited from​

CameraControls._encloseToBoundary;

_updateNearPlaneCorners()​

protected _updateNearPlaneCorners(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:770

Returns​

void

Inherited from​

CameraControls._updateNearPlaneCorners;

_getClientRect()​

protected _getClientRect(target: DOMRect): DOMRect | undefined;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:779

Get its client rect and package into given DOMRect .

Parameters​

ParameterType
targetDOMRect

Returns​

DOMRect | undefined

Inherited from​

CameraControls._getClientRect;

_createOnRestPromise()​

protected _createOnRestPromise(resolveImmediately: boolean): Promise<void>;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:780

Parameters​

ParameterType
resolveImmediatelyboolean

Returns​

Promise<void>

Inherited from​

CameraControls._createOnRestPromise;

_addAllEventListeners()​

protected _addAllEventListeners(_domElement: HTMLElement): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:781

Parameters​

ParameterType
_domElementHTMLElement

Returns​

void

Inherited from​

CameraControls._addAllEventListeners;

_removeAllEventListeners()​

protected _removeAllEventListeners(): void;

Defined in: node_modules/@3dverse/livelink-camera-controls/dist/CameraControls.d.ts:782

Returns​

void

Inherited from​

CameraControls._removeAllEventListeners;