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:11

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:13
type?CameraRuntimeTypeRuntime camera mode.components/Camera.ts:15
isDefault?booleanMark this camera as the default camera the renderer uses.components/Camera.ts:17
projection?CameraProjectionProjection model.components/Camera.ts:19
fov?numberVertical field of view in degrees (perspective only).components/Camera.ts:21
near?numberNear clip plane in world units.components/Camera.ts:23
far?numberFar clip plane in world units.components/Camera.ts:25
left?numberLeft edge of the orthographic frustum in world units.components/Camera.ts:27
right?numberRight edge of the orthographic frustum in world units.components/Camera.ts:29
top?numberTop edge of the orthographic frustum in world units.components/Camera.ts:31
bottom?numberBottom edge of the orthographic frustum in world units.components/Camera.ts:33
zoom?numberZoom multiplier (1 = no zoom).components/Camera.ts:35