@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
| Property | Type | Description | Defined in |
|---|---|---|---|
camera? | THREE.Camera | Pre-built three.js camera. When omitted the component creates one from projection. | components/Camera.ts:13 |
type? | CameraRuntimeType | Runtime camera mode. | components/Camera.ts:15 |
isDefault? | boolean | Mark this camera as the default camera the renderer uses. | components/Camera.ts:17 |
projection? | CameraProjection | Projection model. | components/Camera.ts:19 |
fov? | number | Vertical field of view in degrees (perspective only). | components/Camera.ts:21 |
near? | number | Near clip plane in world units. | components/Camera.ts:23 |
far? | number | Far clip plane in world units. | components/Camera.ts:25 |
left? | number | Left edge of the orthographic frustum in world units. | components/Camera.ts:27 |
right? | number | Right edge of the orthographic frustum in world units. | components/Camera.ts:29 |
top? | number | Top edge of the orthographic frustum in world units. | components/Camera.ts:31 |
bottom? | number | Bottom edge of the orthographic frustum in world units. | components/Camera.ts:33 |
zoom? | number | Zoom multiplier (1 = no zoom). | components/Camera.ts:35 |

