Installation
Usage
- Standard
- Keypoints
In standard mode the panorama rotates continuously. Configure
autorotatePitch to lock the vertical angle.Configuration
Delay in milliseconds after which the automatic rotation begins. Updatable.
Restart the automatic rotation when the user has been idle for
autostartDelay milliseconds. Updatable.The rotation will not restart if the user explicitly clicked the navbar autorotate button to stop it.
Speed of the automatic rotation. Accepts any speed string (e.g.
'2rpm', '10deg/s'). Use a negative value to reverse the direction. Updatable.Vertical angle at which the automatic rotation is performed. When
null the current pitch is kept. Updatable.Zoom level at which the automatic rotation is performed. When
null the current zoom level is kept. Updatable.Initial keypoints. Not updatable after init — use
setKeypoints() instead.Each keypoint is one of:- A position object with
yaw/pitchortextureX/textureY - A marker ID string (requires the Markers plugin)
- A configuration object:
Start from the closest keypoint instead of the first keypoint in the array. Updatable.
Localization strings merged with the main viewer
lang object.Methods
setKeypoints(keypoints)
Replaces the current keypoints. Pass null or an empty array to remove all keypoints.
start() / stop() / toggle()
Start, stop, or toggle the automatic rotation.
Events
autorotate
Triggered when the automatic rotation is enabled or disabled.
Navbar buttons
This plugin adds one button to the default navbar:autorotate— toggles the automatic rotation on and off
If you use a custom navbar, add
'autorotate' to your navbar configuration manually.