NPM package : @photo-sphere-viewer/autorotate-plugin
Documentation : https://photo-sphere-viewer.js.org/plugins/autorotate.html