Skip to content

Camera

Defined in: display/Camera.ts:59

Extends

  • Container

Implements

Constructors

new Camera()

new Camera(config): Camera

Defined in: display/Camera.ts:72

Parameters

config

CustomCameraConfig

Returns

Camera

Overrides

Container.constructor

Properties

config

config: CustomCameraConfig

Defined in: display/Camera.ts:72


container

container: Container

Defined in: display/Camera.ts:62

Implementation of

ICamera.container


maxX

maxX: number

Defined in: display/Camera.ts:65

Implementation of

ICamera.maxX


maxY

maxY: number

Defined in: display/Camera.ts:66

Implementation of

ICamera.maxY


minX

minX: number = 0

Defined in: display/Camera.ts:63

Implementation of

ICamera.minX


minY

minY: number = 0

Defined in: display/Camera.ts:64

Implementation of

ICamera.minY


onZoom

onZoom: Signal<(camera?) => void>

Defined in: display/Camera.ts:60

Implementation of

ICamera.onZoom


onZoomComplete

onZoomComplete: Signal<(camera?) => void>

Defined in: display/Camera.ts:61

Implementation of

ICamera.onZoomComplete


viewportHeight

viewportHeight: number

Defined in: display/Camera.ts:68

Implementation of

ICamera.viewportHeight


viewportWidth

viewportWidth: number

Defined in: display/Camera.ts:67

Implementation of

ICamera.viewportWidth


worldHeight

worldHeight: number

Defined in: display/Camera.ts:70

Implementation of

ICamera.worldHeight


worldWidth

worldWidth: number

Defined in: display/Camera.ts:69

Implementation of

ICamera.worldWidth

Accessors

app

Get Signature

get app(): IApplication

Defined in: display/Camera.ts:167

Returns

IApplication

Implementation of

ICamera.app


followOffset

Get Signature

get followOffset(): Point

Defined in: display/Camera.ts:159

Returns

Point

Set Signature

set followOffset(value): void

Defined in: display/Camera.ts:163

Parameters
value

PointLike

Returns

void

Implementation of

ICamera.followOffset


lerp

Get Signature

get lerp(): number

Defined in: display/Camera.ts:133

Returns

number

Set Signature

set lerp(value): void

Defined in: display/Camera.ts:137

Parameters
value

number

Returns

void

Implementation of

ICamera.lerp


target

Get Signature

get target(): null | ContainerLike

Defined in: display/Camera.ts:147

Returns

null | ContainerLike

Set Signature

set target(value): void

Defined in: display/Camera.ts:151

Parameters
value

null | ContainerLike

Returns

void

Implementation of

ICamera.target


targetPivot

Get Signature

get targetPivot(): Point

Defined in: display/Camera.ts:121

Returns

Point

Implementation of

ICamera.targetPivot


targetScale

Get Signature

get targetScale(): Point

Defined in: display/Camera.ts:127

Returns

Point

Implementation of

ICamera.targetScale


zooming

Get Signature

get zooming(): boolean

Defined in: display/Camera.ts:109

Returns

boolean

Implementation of

ICamera.zooming


zoomLerp

Get Signature

get zoomLerp(): number

Defined in: display/Camera.ts:115

Returns

number

Implementation of

ICamera.zoomLerp

Methods

follow()

follow(target, offset?): void

Defined in: display/Camera.ts:171

Parameters

target

ContainerLike

offset?

PointLike

Returns

void

Implementation of

ICamera.follow


pan()

pan(deltaX, deltaY): void

Defined in: display/Camera.ts:179

Parameters

deltaX

number

deltaY

number

Returns

void

Implementation of

ICamera.pan


update()

update(): void

Defined in: display/Camera.ts:196

Returns

void

Implementation of

ICamera.update


zoom()

zoom(scale, lerp): void

Defined in: display/Camera.ts:190

Parameters

scale

number

lerp

number = 0.1

Returns

void

Implementation of

ICamera.zoom