Class: ResolutionPlugin

PSV.plugins~ResolutionPlugin

new ResolutionPlugin (psv, options)

Adds a setting to choose between multiple resolutions of the panorama.

Name Type Description
psv PSV.Viewer
options PSV.plugins.ResolutionPlugin.Options

Extends

Members

PSV.plugins.ResolutionPlugin.EVENTS string staticconstant

Available events

id string readonly inherited overrides

Unique identifier of the plugin

Reference to main controller

Available resolutions

Methods

destroy () package overrides

getResolution ()string

Returns the current resolution

Returns:
Type Description
string

setResolution (id)

Changes the current resolution

Name Type Description
id string

setResolutions (resolutions)

Changes the available resolutions

Name Type Description
resolutions Array.<PSV.plugins.ResolutionPlugin.Resolution>

Type Definitions

PSV.plugins.ResolutionPlugin.Options Object

Properties:
Name Type Description
resolutions Array.<PSV.plugins.ResolutionPlugin.Resolution>

list of available resolutions

PSV.plugins.ResolutionPlugin.Resolution Object

Properties:
Name Type Description
id string
label string
panorama string | Array.<string> | PSV.Cubemap

Events

PSV.plugins.ResolutionPlugin.event:resolution-changed

Triggered when the resolution is changed

Name Type Description
resolutionId string