new PSVOverlay( psv )

Description

Overlay class

Parameters
Name Type Description
psv PhotoSphereViewer

Members


<readonly> container :HTMLElement

Details
HTMLElement

<readonly> parent :PhotoSphereViewer|module:components.PSVComponent


<readonly> psv :PhotoSphereViewer


<readonly> visible :boolean

Visibility of the component

Methods


<protected> create()

Creates the component


<protected> destroy()

Destroys the component


<protected> hide()

Hides the component


hideOverlay()

Hides the notification

Fires

isOverlayVisible() → {boolean}

Checks if the overlay is visible

Returns

<protected> show()

Displays the component


showOverlay( config )

Displays an overlay on the viewer

Parameters
Name Type Description
config Object | string
Name Type Description
image string
text string
subtext string
Examples
viewer.showOverlay({
			  image: '<svg></svg>',
			  text: '....',
			  subtext: '....'
			})

Events


hide-overlay

Trigered when the overlay is hidden


show-overlay

Trigered when the overlay is shown