Classes
Namespaces
Members
-
PSV.DEFAULTS PSV.Options staticconstant
Default options
-
-
General information about the system
-
Properties:
Name Type Description loadedboolean Indicates if the system data has been loaded
loadfunction Loads the system if not already loaded
pixelRationumber isWebGLSupportedboolean maxCanvasWidthnumber mouseWheelEventstring fullscreenEventstring getMaxCanvasWidthfunction Returns the max width of a canvas allowed by the browser
isTouchEnabledObject
Methods
-
Register a new button available for all viewers
-
Name Type Description buttonClass.<PSV.buttons.AbstractButton> defaultPosition'start' | 'end' | '[id]:left' | '[id]:right' optional If provided the default configuration of the navbar will be modified.
Type Definitions
-
PSV.AnimateOptions PSV.ExtendedPosition
Object defining animation options
-
Properties:
Name Type Argument Description speednumber | string animation speed or duration in milliseconds
zoomnumber <optional>
new zoom level between 0 and 100
-
Data of the
clickevent -
Properties:
Name Type Argument Description rightclickboolean if it's a right click
clientXnumber position in the browser window
clientYnumber position in the browser window
viewerXnumber position in the viewer
viewerYnumber position in the viewer
longitudenumber position in spherical coordinates
latitudenumber position in spherical coordinates
textureXnumber <optional>
position on the texture, if applicable
textureYnumber <optional>
position on the texture, if applicable
markerPSV.plugins.MarkersPlugin.Marker <optional>
clicked marker
objectsArray.<THREE.Object3D> <optional>
targetEventTarget <optional>
-
Object defining a size in CSS
-
Properties:
Name Type Argument Description widthstring <optional>
heightstring <optional>
-
PSV.ExtendedPosition PSV.Position | PSV.Point
Object defining a spherical or texture position
-
A position that can be expressed either in spherical coordinates (radians or degrees) or in texture coordinates (pixels)
-
Definition of a custom navbar button
-
Properties:
Name Type Argument Default Description idstring <optional>
titlestring <optional>
contentstring <optional>
classNamestring <optional>
onClickfunction disabledboolean <optional>
false visibleboolean <optional>
true collapsableboolean <optional>
true tabbableboolean <optional>
true -
Viewer options, see https://photo-sphere-viewer.js.org/guide/config.html
-
-
Crop information of the panorama
-
Properties:
Name Type Argument Description fullWidthnumber fullHeightnumber croppedWidthnumber croppedHeightnumber croppedXnumber croppedYnumber poseHeadingnumber <optional>
posePitchnumber <optional>
poseRollnumber <optional>
-
PSV.PanoDataProvider (image)PSV.PanoData
Function to compute panorama data once the image is loaded
-
Name Type Description imageImage loaded image
Returns:
Type Description PSV.PanoData computed panorama data -
PSV.PanoramaOptions PSV.ExtendedPosition
Object defining panorama and animation options
-
Properties:
Name Type Argument Default Description captionstring <optional>
new navbar caption
descriptionstring <optional>
new panel description
transitionboolean | number <optional>
1500 duration of the transition between all and new panorama
showLoaderboolean <optional>
true show the loader while loading the new panorama
zoomnumber <optional>
new zoom level between 0 and 100
sphereCorrectionPSV.SphereCorrection <optional>
new sphere correction to apply to the panorama
panoDataPSV.PanoData | PSV.PanoDataProvider <optional>
new data used for this panorama
overlay* <optional>
new overlay to apply to the panorama
overlayOpacitynumber <optional>
new overlay opacity
-
Object defining a point
-
Properties:
Name Type Description xnumber ynumber -
Object defining a spherical position
-
Properties:
Name Type Description longitudenumber latitudenumber -
Object defining a size
-
Properties:
Name Type Description widthnumber heightnumber -
Object defining angular corrections to a sphere
-
Properties:
Name Type Description pannumber tiltnumber rollnumber -
Result of the PSV.adapters.AbstractAdapter#loadTexture method
-
Properties:
Name Type Argument Description panorama* textureexternal:THREE.Texture | Array.<external:THREE.Texture> | Record.<string, Array.<external:THREE.Texture>> panoDataPSV.PanoData <optional>
Events
-
Triggered when the automatic rotation is enabled/disabled
-
Name Type Description enabledboolean -
Triggered before a render, used to modify the view
-
Name Type Description timestampnumber time provided by requestAnimationFrame
elapsednumber time elapsed from the previous frame
-
Triggered before a rotate operation, can be cancelled
-
Type Description PSV.ExtendedPosition -
Triggered when the user clicks on the viewer (everywhere excluding the navbar and the side panel)
-
Name Type Description dataPSV.ClickData -
Triggered when the panel is closed
-
Name Type Description idstring optional -
Triggered after a call to setOption/setOptions
-
Name Type Description nameArray.<string> of changed options
-
Triggered when the user double clicks on the viewer. The simple
clickevent is always fired beforedblclick -
Name Type Description dataPSV.ClickData -
Triggered when the fullscreen mode is enabled/disabled
-
Name Type Description enabledboolean -
Called to alter the target position of an animation
-
Name Type Description positionPosition Returns:
Type Description Position -
Called to alter the target position of a rotation
-
Name Type Description positionPosition Returns:
Type Description Position -
Triggered when the notification is hidden
-
Name Type Description idstring optional -
Triggered when the overlay is hidden
-
Name Type Description idstring optional -
Triggered when the tooltip is hidden
-
Name Type Description Data* associated to this tooltip
-
Triggered when a key is pressed, can be cancelled
-
Name Type Description keystring -
Triggered when the loader value changes
-
Name Type Description valuenumber from 0 to 100
-
Triggered when the panel is opened
-
Name Type Description idstring optional -
Triggered when a panorama image has been loaded
-
Name Type Description textureDataPSV.TextureData -
Triggered when the view longitude and/or latitude changes
-
Name Type Description positionPSV.Position -
Triggered when the panorama image has been loaded and the viewer is ready to perform the first render
-
-
Triggered on each viewer render, this event is triggered very often
-
-
Triggered when the notification is shown
-
Name Type Description idstring optional -
Triggered when the overlay is shown
-
Name Type Description idstring optional -
Triggered when the tooltip is shown
-
Name Type Description Data* associated to this tooltip
InstancePSV.components.Tooltip of the tooltip
-
Triggered when the viewer size changes
-
Name Type Description sizePSV.Size -
Triggered when all current animations are stopped
-
-
Triggered when the zoom level changes
-
Name Type Description zoomLevelnumber