Skip to main content

@novorender/web_app / ControllerInitParams

Interface: ControllerInitParams

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;

The distance to the pivot point, if applicable.

Defined in

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


fovDegrees?

readonly optional fovDegrees: number;

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

Defined in

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


fovMeters?

readonly optional fovMeters: number;

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

Defined in

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


kind

readonly kind: string;

The kind of controller to initialize.

Defined in

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


pivot?

readonly optional pivot: ReadonlyVec3;

The camera pivot point, if applicable.

Defined in

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


position?

readonly optional position: ReadonlyVec3;

The camera position, if applicable.

Defined in

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


rotation?

readonly optional rotation: ReadonlyQuat;

The camera rotation, if applicable.

Defined in

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