From f277ee50d49a3dc2d9268aad0aad1e1573f634a9 Mon Sep 17 00:00:00 2001 From: mattiapezzotti Date: Fri, 16 Aug 2024 11:50:24 +0200 Subject: [PATCH] added export function to match others --- modules/services/pannellum_photo.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/services/pannellum_photo.js b/modules/services/pannellum_photo.js index 42fd6d91fa..c77b698120 100644 --- a/modules/services/pannellum_photo.js +++ b/modules/services/pannellum_photo.js @@ -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'); @@ -157,6 +157,14 @@ export default { getYaw: function() { return _pannellumViewer.getYaw(); + }, + + getPitch: function() { + return _pannellumViewer.getPitch(); + }, + + getHfov: function() { + return _pannellumViewer.getHfov(); } };