TouchNavigation
Extends: Control
Source: TouchNavigation.ts:109
Touch pad planet camera dragging control.
Fires
event:inertiamoveevent:dragevent:doubletapzoom
Constructor
new TouchNavigation(
options?: ITouchNavigationParams,
): TouchNavigationParameters
options(ITouchNavigationParams, optional) — Touch navigation options:options.inertia(number, optional) — inertia factor. Default is 0.007options.minSlope(number, optional) — minimal slope for vertical camera movement. Default is 0.1options.jerkLimit(number, optional) — limit for touch jerk speed to prevent unexpected camera movement. Default is 0.08
Instance Methods
oninit()
Inherited from Control#oninit
Overrides: Control#oninit
Control initialization function have to be overridden.
onadd()
Inherited from Control#onadd
Overrides: Control#onadd
Control renderer assigning function have to be overridden.
onremove()
Inherited from Control#onremove
Overrides: Control#onremove
Control remove function have to be overridden.
onactivate()
Inherited from Control#onactivate
Overrides: Control#onactivate
Control activation function have to be overridden.
ondeactivate()
Inherited from Control#ondeactivate
Overrides: Control#ondeactivate
Control deactivation function have to be overriden.
addTo()
Inherited from Control#addTo
Overrides: Control#addTo
Assign renderer to the control.
remove()
Inherited from Control#remove
Overrides: Control#remove
Removes control.
activate()
Inherited from Control#activate
Overrides: Control#activate
Activate control.
deactivate()
Inherited from Control#deactivate
Overrides: Control#deactivate
Deactivate control.
isActive()
Inherited from Control#isActive
Overrides: Control#isActive
Is control active.
Instance Fields
name
Inherited from Control#name
Overrides: Control#name
Returns control name.
Returns
string