Navigation

Navigation

This component takes care of the control and display of the main navigation elements (logo, top view switcher, info and guiding button). Component is used from https://www.npmjs.com/package/clulib

Constructor

Source:

Extends

  • Component

Members

(private) controlProvider_ :ControlProvider

Description:
  • Reference to ControlProvider to monitor the activation of a gamepad controller so that the application's control is adapted to it.

Source:

Reference to ControlProvider to monitor the activation of a gamepad controller so that the application's control is adapted to it.

Type:

(private) exitButton_ :Element

Description:
  • Dom element of the exit/reset button. Only visible in the gamepad mode with the url parameter gamepad=1.

Source:

Dom element of the exit/reset button. Only visible in the gamepad mode with the url parameter gamepad=1.

Type:
  • Element

(private) gamepadGuideButton_ :Element

Description:
  • Dom element of the gamepad guide button. Only visible in the gamepad mode with the url parameter gamepad=1.

Source:

Dom element of the gamepad guide button. Only visible in the gamepad mode with the url parameter gamepad=1.

Type:
  • Element

(private) layerProvider_ :LayerProvider

Description:
  • Reference to LayerProvider for monitoring and controlling layer appearance and disappearance.

Source:

Reference to LayerProvider for monitoring and controlling layer appearance and disappearance.

Type:

(private) topviewSwitcher_ :Element

Description:
  • Dom element of the top view switcher.

Source:

Dom element of the top view switcher.

Type:
  • Element

(private) visitorInfoOpener_ :Element

Description:
  • Dom element of the visitor info button.

Source:

Dom element of the visitor info button.

Type:
  • Element

(private) worldProvider_ :WorldProvider

Description:
  • Reference to the WorldProvider for monitoring actions, loading processes and status changes of the created THREE.Scene.

Source:

Reference to the WorldProvider for monitoring actions, loading processes and status changes of the created THREE.Scene.

Type:

Methods

(private) checkControlling_()

Description:
  • When the gamepad mode is activated (url parameter gamepad=1), the guiding and exit buttons are displayed.

Source:

(private) exhitExhibition_()

Description:
  • Resets the whole application by a window reload.

Source:

(private) handleWorldActivation_()

Description:
  • After the world is activated WorldEventType ACTIVATE specific navigation elements are displayed.

Source:

onInit()

Description:
  • Component is ready and had loaded all dependencies (inherit method waitFor and sub components). Adds listener for active elements.

Source:

(private) openVisitorInfo_()

Description:
  • Opens the visitor layer

Source:

(private) showGamepadGuide_()

Description:
  • Opens the guiding layer

Source:

(private) switchWorldView_()

Description:
  • Init the changes the world view

Source: