Skip to main content

@novorender/api / ControllerInitParams

Interface: ControllerInitParams

Defined in: @novorender/src/web_app/controller/base.ts:378

Common controller initialization parameters.

Remarks

No controller uses all of these parameters. This interface represents the union of all possible intialization paramters for all possible controllers. This is useful for deserialization, where the kind of controller is not known at compile time.

Properties

distance?

readonly optional distance: number;

Defined in: @novorender/src/web_app/controller/base.ts:398

The distance to the pivot point, if applicable.


fovDegrees?

readonly optional fovDegrees: number;

Defined in: @novorender/src/web_app/controller/base.ts:389

The camera perspective field of view, in degrees, if applicable.


fovMeters?

readonly optional fovMeters: number;

Defined in: @novorender/src/web_app/controller/base.ts:392

The camera orthographic field of meters, in degrees, if applicable.


kind

readonly kind: string;

Defined in: @novorender/src/web_app/controller/base.ts:380

The kind of controller to initialize.


pivot?

readonly optional pivot: ReadonlyVec3;

Defined in: @novorender/src/web_app/controller/base.ts:395

The camera pivot point, if applicable.


position?

readonly optional position: ReadonlyVec3;

Defined in: @novorender/src/web_app/controller/base.ts:383

The camera position, if applicable.


rotation?

readonly optional rotation: ReadonlyQuat;

Defined in: @novorender/src/web_app/controller/base.ts:386

The camera rotation, if applicable.