@panoramax/web-viewer 5.2.0-develop-08c7a778 → 5.2.0-develop-bd0c390b

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__ = "08c7a77";
12
+ const __COMMIT_HASH__ = "bd0c390";
13
13
  const __PACKAGE_VERSION__ = "5.2.0";
14
14
  const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
15
15
 
@@ -137,8 +137,8 @@ export default class ClickAndGo {
137
137
  const sizeFactor = cursorSizeFactor(rad2deg(yp.pitch));
138
138
  const cursorHeight = CURSOR_SIZE * 2/5 * sizeFactor;
139
139
  const cursorWidth = CURSOR_SIZE * sizeFactor;
140
- this._cursor.style.top = `${e.clientY - 3 * cursorHeight / 5}px`;
141
- this._cursor.style.left = `${e.clientX - cursorWidth / 2}px`;
140
+ this._cursor.style.top = `${e.layerY - 3 * cursorHeight / 5}px`;
141
+ this._cursor.style.left = `${e.layerX - cursorWidth / 2}px`;
142
142
  this._cursor.style.height = `${cursorHeight}px`;
143
143
  this._cursor.style.width = `${cursorWidth}px`;
144
144
  this._cursor.style.display = "block";
@@ -431,7 +431,11 @@ export default class ClickAndGo {
431
431
  * @returns {boolean} True if image has pitch/roll correction
432
432
  */
433
433
  function hasGoodYPR(metadata) {
434
- return metadata?.properties?.["pers:roll"] !== undefined || metadata?.properties?.["pers:pitch"] !== undefined;
434
+ return (
435
+ metadata.properties?.["pers:interior_orientation"]?.field_of_view === 360
436
+ || metadata?.properties?.["pers:roll"] !== undefined
437
+ || metadata?.properties?.["pers:pitch"] !== undefined
438
+ );
435
439
  }
436
440
 
437
441
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.2.0-develop-08c7a778",
3
+ "version": "5.2.0-develop-bd0c390b",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",