@panoramax/web-viewer 5.1.2-develop-1bfb025a → 5.1.2-develop-cf7c38b4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
9
9
  document.adoptedStyleSheets.push(AtkinsonStyles);
10
10
  document.adoptedStyleSheets.push(BasicStyles);
11
11
 
12
- const __COMMIT_HASH__ = "1bfb025";
12
+ const __COMMIT_HASH__ = "cf7c38b";
13
13
  const __PACKAGE_VERSION__ = "5.1.2";
14
14
  const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
15
15
 
@@ -132,8 +132,10 @@ export function getSphereCorrection(picture) {
132
132
  }
133
133
  roll = roll || 0;
134
134
 
135
+ const is360 = picture.properties?.["pers:interior_orientation"]?.["field_of_view"] === 360;
136
+
135
137
  // Send result
136
- return pitch !== 0 && roll !== 0 ? {
138
+ return (!is360 && (pitch !== 0 || roll !== 0)) || (pitch !== 0 && roll !== 0) ? {
137
139
  pan: yaw * Math.PI / 180,
138
140
  tilt: -pitch * Math.PI / 180,
139
141
  roll: roll * Math.PI / 180,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.1.2-develop-1bfb025a",
3
+ "version": "5.1.2-develop-cf7c38b4",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",