@panoramax/web-viewer 4.0.1-develop-9d10729d → 4.0.1-develop-16812d39

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "4.0.1-develop-9d10729d",
3
+ "version": "4.0.1-develop-16812d39",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -191,7 +191,12 @@ export function getCroppedPanoData(picture) {
191
191
  // Check if crop is really necessary
192
192
  if(res) {
193
193
  res = Object.fromEntries(Object.entries(res || {}).filter(e => !isNaN(e[1])));
194
- if(res.fullWidth == res.croppedWidth && res.fullHeight == res.croppedHeight) {
194
+ if(
195
+ (!res.fullWidth && !res.croppedWidth && res.fullHeight && !res.croppedHeight)
196
+ || (res.fullWidth && !res.croppedWidth && !res.fullHeight && !res.croppedHeight)
197
+ || (res.fullWidth && !res.croppedWidth && res.fullHeight && !res.croppedHeight)
198
+ || (res.fullWidth == res.croppedWidth && res.fullHeight == res.croppedHeight)
199
+ ) {
195
200
  res = {};
196
201
  }
197
202
  }