Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / CameraComponentOptions

Type Alias: CameraComponentOptions ​

ts
type CameraComponentOptions = {
  camera?: THREE.Camera;
  type?: CameraRuntimeType;
  isDefault?: boolean;
  projection?: CameraProjection;
  fov?: number;
  near?: number;
  far?: number;
  left?: number;
  right?: number;
  top?: number;
  bottom?: number;
  zoom?: number;
};

Defined in: components/Camera.ts:15

Optional initializer for CameraComponent. Any field omitted falls back to the defaults documented on the component.

Properties ​

PropertyTypeDescriptionDefined in
camera?THREE.CameraPre-built three.js camera. When omitted the component creates one from projection.components/Camera.ts:17
type?CameraRuntimeTypeRuntime camera mode.components/Camera.ts:19
isDefault?booleanMark this camera as the default camera the renderer uses.components/Camera.ts:21
projection?CameraProjectionProjection model.components/Camera.ts:23
fov?numberVertical field of view in degrees (perspective only).components/Camera.ts:25
near?numberNear clip plane in world units.components/Camera.ts:27
far?numberFar clip plane in world units.components/Camera.ts:29
left?numberLeft edge of the orthographic frustum in world units.components/Camera.ts:31
right?numberRight edge of the orthographic frustum in world units.components/Camera.ts:33
top?numberTop edge of the orthographic frustum in world units.components/Camera.ts:35
bottom?numberBottom edge of the orthographic frustum in world units.components/Camera.ts:37
zoom?numberZoom multiplier (1 = no zoom).components/Camera.ts:39