Adds a setting to choose between multiple resolutions of the panorama.
Name | Type | Description |
---|---|---|
psv |
PSV.Viewer | |
options |
PSV.plugins.ResolutionPlugin.Options |
Extends
Members
-
Available events
-
-
-
Unique identifier of the plugin
-
-
psv PSV.Viewer readonly inherited overrides
Reference to main controller
-
-
resolutions Array.<PSV.plugins.ResolutionPlugin.Resolution>
Available resolutions
-
Methods
-
destroy () package overrides
-
-
Returns the current resolution
-
Returns:
Type Description string -
init () package overrides
-
-
Changes the current resolution
-
Name Type Description id
string Throws:
-
if the resolution does not exist
- Type
- PSVError
-
-
Changes the available resolutions
-
Name Type Description resolutions
Array.<PSV.plugins.ResolutionPlugin.Resolution> defaultResolution
string optional if not provided, the current panorama is kept
Type Definitions
-
Properties:
Name Type Argument Default Description resolutions
Array.<PSV.plugins.ResolutionPlugin.Resolution> list of available resolutions
defaultResolution
string <optional>
the default resolution if no panorama is configured on the viewer
showBadge
boolean <optional>
true show the resolution id as a badge on the settings button
-
Properties:
Name Type Description id
string label
string panorama
*
Events
-
Triggered when the resolution is changed
-
Name Type Description resolutionId
string