Skip to content

Commit

Permalink
added export function to match others
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiapezzotti committed Aug 16, 2024
1 parent 55c254b commit f277ee5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions modules/services/pannellum_photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ export default {

if (keepOrientation) {
yaw = this.getYaw();
pitch = _pannellumViewer.getPitch();
hfov = _pannellumViewer.getHfov();
pitch = this.getPitch();
hfov = this.getHfov();
}
_pannellumViewer.loadScene(key, pitch, yaw, hfov);
dispatch.call('viewerChanged');
Expand All @@ -157,6 +157,14 @@ export default {

getYaw: function() {
return _pannellumViewer.getYaw();
},

getPitch: function() {
return _pannellumViewer.getPitch();
},

getHfov: function() {
return _pannellumViewer.getHfov();
}

};

0 comments on commit f277ee5

Please sign in to comment.