@panoramax/web-viewer 4.0.1-develop-2250d7d3 → 4.0.1-develop-2f3000b7

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-2250d7d3",
3
+ "version": "4.0.1-develop-2f3000b7",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -81,7 +81,7 @@ export default class Legend extends LitElement {
81
81
  >
82
82
  <img class="logo" src=${PanoramaxImg} alt="" />
83
83
  <div>
84
- Panoramax est le géocommun des photos de rues.
84
+ ${this._parent?._t.pnx.whats_panoramax}
85
85
  <pnx-link-button
86
86
  title=${this._parent?._t.map.more_panoramax}
87
87
  kind="superinline"
@@ -39,6 +39,7 @@
39
39
  "share_embed": "Embed on your website",
40
40
  "share_embed_docs": "Read more about embed configuration",
41
41
  "share_print": "Print",
42
+ "whats_panoramax": "Panoramax is the geo-commons for territories' pictures.",
42
43
  "copy": "Copy",
43
44
  "copied": "Copied",
44
45
  "error": "We have a problem…",
@@ -39,6 +39,7 @@
39
39
  "share_embed": "Intégration sur votre site",
40
40
  "share_embed_docs": "Découvrir plus de possibilités pour l'intégration sur votre site",
41
41
  "share_print": "Imprimer",
42
+ "whats_panoramax": "Panoramax est le géocommun des photos des territoires.",
42
43
  "copy": "Copier",
43
44
  "copied": "Copié",
44
45
  "error": "On a un problème…",
@@ -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
  }