Preparing search index...
The search index is not available
@niuee/board
@niuee/board
BoardCameraV2
Class BoardCameraV2
Implements
BoardCamera
Index
Constructors
constructor
Properties
_boundaries?
_observer
_position
_rotation
_rotation
Boundaries?
_view
Port
Height
_view
Port
Width
_zoom
Boundaries?
_zoom
Level
Accessors
boundaries
observer
position
rotation
rotation
Boundaries
view
Port
Height
view
Port
Width
zoom
Boundaries
zoom
Level
Methods
convert
From
View
Port2
World
Space
invert
From
World
Space2
View
Port
on
set
Horizontal
Boundaries
set
Max
Zoom
Level
set
Min
Zoom
Level
set
Position
set
Rotation
set
Vertical
Boundaries
set
Zoom
Level
Constructors
constructor
new
Board
Camera
V2
(
cameraObserver
?
,
position
?
,
viewPortWidth
?
,
viewPortHeight
?
,
zoomLevel
?
,
rotation
?
)
:
BoardCameraV2
Parameters
cameraObserver
:
CameraObserverV2
= ...
position
:
Point
= { x: 0, y: 0 }
viewPortWidth
:
number
= 1000
viewPortHeight
:
number
= 1000
zoomLevel
:
number
= 1
rotation
:
number
= 0
Returns
BoardCameraV2
Properties
Private
Optional
_boundaries
_boundaries
?:
Boundaries
Private
_observer
_observer
:
CameraObserverV2
Private
_position
_position
:
Point
Private
_rotation
_rotation
:
number
Private
Optional
_rotation
Boundaries
_rotation
Boundaries
?:
RotationLimits
Private
_view
Port
Height
_view
Port
Height
:
number
Private
_view
Port
Width
_view
Port
Width
:
number
Private
Optional
_zoom
Boundaries
_zoom
Boundaries
?:
ZoomLevelLimits
Private
_zoom
Level
_zoom
Level
:
number
Accessors
read and write
boundaries
get
boundaries
(
)
:
Boundaries
Returns
Boundaries
set
boundaries
(
boundaries
)
:
void
Parameters
boundaries
:
Boundaries
Returns
void
read only
observer
get
observer
(
)
:
CameraObserverV2
Returns
CameraObserverV2
read only
position
get
position
(
)
:
Point
Returns
Point
read only
rotation
get
rotation
(
)
:
number
Returns
number
read and write
rotation
Boundaries
get
rotationBoundaries
(
)
:
RotationLimits
Returns
RotationLimits
set
rotationBoundaries
(
rotationBoundaries
)
:
void
Parameters
rotationBoundaries
:
RotationLimits
Returns
void
read and write
view
Port
Height
get
viewPortHeight
(
)
:
number
Returns
number
set
viewPortHeight
(
height
)
:
void
Parameters
height
:
number
Returns
void
read and write
view
Port
Width
get
viewPortWidth
(
)
:
number
Returns
number
set
viewPortWidth
(
width
)
:
void
Parameters
width
:
number
Returns
void
read and write
zoom
Boundaries
get
zoomBoundaries
(
)
:
ZoomLevelLimits
Returns
ZoomLevelLimits
set
zoomBoundaries
(
zoomBoundaries
)
:
void
Parameters
zoomBoundaries
:
ZoomLevelLimits
Returns
void
read only
zoom
Level
get
zoomLevel
(
)
:
number
Returns
number
Methods
convert
From
View
Port2
World
Space
convert
From
View
Port2
World
Space
(
point
)
:
Point
Parameters
point
:
Point
Returns
Point
invert
From
World
Space2
View
Port
invert
From
World
Space2
View
Port
(
point
)
:
Point
Parameters
point
:
Point
Returns
Point
on
on
<
K
>
(
eventName
,
callback
)
:
UnSubscribe
Type Parameters
K
extends
keyof
CameraEvent
Parameters
eventName
:
K
callback
:
(
(
event
,
cameraState
)
=>
void
)
(
event
,
cameraState
)
:
void
Parameters
event
:
CameraEvent
[
K
]
cameraState
:
CameraState
Returns
void
Returns
UnSubscribe
set
Horizontal
Boundaries
set
Horizontal
Boundaries
(
min
,
max
)
:
void
Parameters
min
:
number
max
:
number
Returns
void
set
Max
Zoom
Level
set
Max
Zoom
Level
(
maxZoomLevel
)
:
boolean
Parameters
maxZoomLevel
:
number
Returns
boolean
set
Min
Zoom
Level
set
Min
Zoom
Level
(
minZoomLevel
)
:
boolean
Parameters
minZoomLevel
:
number
Returns
boolean
set
Position
set
Position
(
destination
)
:
void
Parameters
destination
:
Point
Returns
void
set
Rotation
set
Rotation
(
rotation
)
:
void
Parameters
rotation
:
number
Returns
void
set
Vertical
Boundaries
set
Vertical
Boundaries
(
min
,
max
)
:
void
Parameters
min
:
number
max
:
number
Returns
void
set
Zoom
Level
set
Zoom
Level
(
zoomLevel
)
:
void
Parameters
zoomLevel
:
number
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_boundaries
_observer
_position
_rotation
_rotation
Boundaries
_view
Port
Height
_view
Port
Width
_zoom
Boundaries
_zoom
Level
boundaries
observer
position
rotation
rotation
Boundaries
view
Port
Height
view
Port
Width
zoom
Boundaries
zoom
Level
convert
From
View
Port2
World
Space
invert
From
World
Space2
View
Port
on
set
Horizontal
Boundaries
set
Max
Zoom
Level
set
Min
Zoom
Level
set
Position
set
Rotation
set
Vertical
Boundaries
set
Zoom
Level
@niuee/board
Board
Board
Input Strategy
DefaultBoardKMTStrategy
DefaultTouchStrategy
BoardKMTStrategy
Camera Observer
CameraObserverV2
Input Observer
InputObserver
Other
BasePanHandler
BaseRotationHandler
BaseZoomHandler
BoardCameraV2
BoardStateObserver
ClampHandler
PanHandlerBoilerPlate
PanRig
PanWithRestriction
RotationClampHandler
Loading...
Generated using
TypeDoc