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
Overrides
Container.constructor
Properties
config
config:
CustomCameraConfig
Defined in: display/Camera.ts:72
container
container:
Container
Defined in: display/Camera.ts:62
Implementation of
maxX
maxX:
number
Defined in: display/Camera.ts:65
Implementation of
maxY
maxY:
number
Defined in: display/Camera.ts:66
Implementation of
minX
minX:
number
=0
Defined in: display/Camera.ts:63
Implementation of
minY
minY:
number
=0
Defined in: display/Camera.ts:64
Implementation of
onZoom
onZoom:
Signal
<(camera
?) =>void
>
Defined in: display/Camera.ts:60
Implementation of
onZoomComplete
onZoomComplete:
Signal
<(camera
?) =>void
>
Defined in: display/Camera.ts:61
Implementation of
viewportHeight
viewportHeight:
number
Defined in: display/Camera.ts:68
Implementation of
viewportWidth
viewportWidth:
number
Defined in: display/Camera.ts:67
Implementation of
worldHeight
worldHeight:
number
Defined in: display/Camera.ts:70
Implementation of
worldWidth
worldWidth:
number
Defined in: display/Camera.ts:69
Implementation of
Accessors
app
Get Signature
get app():
IApplication
Defined in: display/Camera.ts:167
Returns
Implementation of
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
Returns
void
Implementation of
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
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
targetPivot
Get Signature
get targetPivot():
Point
Defined in: display/Camera.ts:121
Returns
Point
Implementation of
targetScale
Get Signature
get targetScale():
Point
Defined in: display/Camera.ts:127
Returns
Point
Implementation of
zooming
Get Signature
get zooming():
boolean
Defined in: display/Camera.ts:109
Returns
boolean
Implementation of
zoomLerp
Get Signature
get zoomLerp():
number
Defined in: display/Camera.ts:115
Returns
number
Implementation of
Methods
follow()
follow(
target
,offset
?):void
Defined in: display/Camera.ts:171
Parameters
target
offset?
Returns
void
Implementation of
pan()
pan(
deltaX
,deltaY
):void
Defined in: display/Camera.ts:179
Parameters
deltaX
number
deltaY
number
Returns
void
Implementation of
update()
update():
void
Defined in: display/Camera.ts:196
Returns
void
Implementation of
zoom()
zoom(
scale
,lerp
):void
Defined in: display/Camera.ts:190
Parameters
scale
number
lerp
number
= 0.1
Returns
void