Class: PSVNavBar

PSVNavBar

new PSVNavBar(psv)

Represents the navigation bar.

Parameters:
Name Type Description
psv PhotoSphereViewer

A PhotoSphereViewer object

Source:

Methods

create() → {void}

Creates the elements.

Source:
Returns:
Type
void

getBar() → {HTMLElement}

Returns the bar itself.

Source:
Returns:

The bar

Type
HTMLElement

hide() → {void}

Hides the bar.

Source:
Returns:
Type
void

isHidden() → {boolean}

Returns the current state.

Source:
Returns:

true if navigation bar is hidden, false otherwise

Type
boolean

mustBeHidden(stateopt) → {void}

Indicates that the bar must be hidden or not.

Parameters:
Name Type Attributes Default Description
state boolean <optional>
true

true to automatically hide the bar, false to show it

Source:
Returns:
Type
void

setStyle(new_style) → {void}

Sets the style.

Parameters:
Name Type Description
new_style object

The properties to change

Properties
Name Type Attributes Default Description
backgroundColor string <optional>
rgba(61, 61, 61, 0.5)

Navigation bar background color

buttonsColor string <optional>
rgba(255, 255, 255, 0.7)

Buttons foreground color

buttonsBackgroundColor string <optional>
transparent

Buttons background color

activeButtonsBackgroundColor string <optional>
rgba(255, 255, 255, 0.1)

Active buttons background color

buttonsHeight number <optional>
20

Buttons height in pixels

autorotateThickness number <optional>
1

Autorotate icon thickness in pixels

zoomRangeWidth number <optional>
50

Zoom range width in pixels

zoomRangeThickness number <optional>
1

Zoom range thickness in pixels

zoomRangeDisk number <optional>
7

Zoom range disk diameter in pixels

fullscreenRatio number <optional>
4/3

Fullscreen icon ratio (width / height)

fullscreenThickness number <optional>
2

Fullscreen icon thickness in pixels

gyroscopeThickness number <optional>
1

Gyroscope icon thickness in pixels

virtualRealityRatio number <optional>
4/3

Virtual reality icon ratio (width / height)

virtualRealityBorderRadius number <optional>
2

Virtual reality icon border radius in pixels

Source:
Returns:
Type
void

show() → {void}

Shows the bar.

Source:
Returns:
Type
void