Class: KeySpatialNavigationHandler
component.KeySpatialNavigationHandler
The KeySpatialNavigationHandler
allows the user to navigate through a sequence using the
following key commands:
Up Arrow
: Step forward.
Down Arrow
: Step backward.
Left Arrow
: Step to the left.
Rigth Arrow
: Step to the right.
SHIFT
+ Down Arrow
: Turn around.
SHIFT
+ Left Arrow
: Turn to the left.
SHIFT
+ Rigth Arrow
: Turn to the right.
example
var keyboardComponent = viewer.getComponent("keyboard");
keyboardComponent.keySpatialNavigation.disable();keyboardComponent.keySpatialNavigation.enable();
var isEnabled = keyboardComponent.keySpatialNavigation.isEnabled;
#
HierarchyHandlerBase
<KeyboardConfiguration
>↳
KeySpatialNavigationHandler
#
Accessors#
isEnabled• get
isEnabled(): boolean
Returns a Boolean indicating whether the interaction is enabled.
#
Returnsboolean
true
if the interaction is enabled.
#
Defined incomponent/util/HandlerBase.ts:31
#
Methods#
disableâ–¸ disable(): void
Disables the interaction.
example
<component-name>.<handler-name>.disable();
#
Returnsvoid
#
Inherited fromHandlerBase.disable
#
Defined incomponent/util/HandlerBase.ts:60
#
enableâ–¸ enable(): void
Enables the interaction.
example
<component-name>.<handler-name>.enable();
#
Returnsvoid
#
Inherited fromHandlerBase.enable