@panoramax/web-viewer 4.3.0-develop-94eec798 → 4.3.0-develop-7923d065

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.3.0-develop-94eec798",
3
+ "version": "4.3.0-develop-7923d065",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -366,14 +366,16 @@ export default class PhotoViewer extends Basic {
366
366
  clearTimeout(this._gridFocus);
367
367
 
368
368
  if(e.data.target.tagName === "CANVAS") {
369
- this._gridFocus = setTimeout(() => {
370
- if(this.grid.toggleAway()) {
371
- this.classList.add("pnx-grid-toggled");
372
- }
373
- else {
374
- this.classList.remove("pnx-grid-toggled");
375
- }
376
- }, 250);
369
+ if(!this.isMapWide || (this.isMapWide && !this.isMapWide())) {
370
+ this._gridFocus = setTimeout(() => {
371
+ if(this.grid.toggleAway()) {
372
+ this.classList.add("pnx-grid-toggled");
373
+ }
374
+ else {
375
+ this.classList.remove("pnx-grid-toggled");
376
+ }
377
+ }, 250);
378
+ }
377
379
  }
378
380
  });
379
381
  }
@@ -36,7 +36,7 @@ export default class LocationPrecisionDoc extends LitElement {
36
36
  target="_blank"
37
37
  kind="outline"
38
38
  style="width: 100%"
39
- >${fa(faExternalLinkAlt)} ${this._t?.pnx.filter_gps_precision_help}</pnx-link-button>
39
+ >${fa(faExternalLinkAlt)} ${this._t?.pnx.popup_details_link}</pnx-link-button>
40
40
  `;
41
41
  }
42
42
  }
@@ -35,7 +35,7 @@ export default class QualityScoreDoc extends LitElement {
35
35
  target="_blank"
36
36
  kind="outline"
37
37
  style="width: 100%"
38
- >${fa(faExternalLinkAlt)} ${this._t?.pnx.qualityscore_doc_link}</pnx-link-button>
38
+ >${fa(faExternalLinkAlt)} ${this._t?.pnx.popup_details_link}</pnx-link-button>
39
39
  `;
40
40
  }
41
41
  }
@@ -31,7 +31,7 @@ export default class SemanticsDoc extends LitElement {
31
31
  target="_blank"
32
32
  kind="outline"
33
33
  style="width: 100%"
34
- >${fa(faExternalLinkAlt)} ${this._t?.pnx.semantics_doc_link}</pnx-link-button>
34
+ >${fa(faExternalLinkAlt)} ${this._t?.pnx.popup_details_link}</pnx-link-button>
35
35
  `;
36
36
  }
37
37
  }
@@ -595,7 +595,9 @@ export default class Map extends maplibregl.Map {
595
595
 
596
596
  if(e.defaultPrevented === false) {
597
597
  dropPreview();
598
- this._gridFocus = setTimeout(() => this._parent?.grid?.toggleAway(), 250);
598
+ if(this._parent.isMapWide?.()) {
599
+ this._gridFocus = setTimeout(() => this._parent?.grid?.toggleAway(), 250);
600
+ }
599
601
  }
600
602
  });
601
603
  }
@@ -49,7 +49,7 @@ export default class Popup extends LitElement {
49
49
  position: relative;
50
50
  width: 90%;
51
51
  max-height: 90%;
52
- max-width: 550px;
52
+ max-width: 400px;
53
53
  overflow-y: auto;
54
54
  }
55
55
 
@@ -129,7 +129,7 @@ export default class Popup extends LitElement {
129
129
  <div class="pnx-panel pnx-padded">
130
130
  <pnx-button
131
131
  class="btn-close"
132
- kind="flat"
132
+ kind="inline"
133
133
  size="l"
134
134
  @click=${this.close.bind(this)}
135
135
  >
@@ -118,6 +118,7 @@
118
118
  "picture_360": "360°",
119
119
  "picture_flat_long": "Classic picture",
120
120
  "picture_360_long": "Panoramic picture",
121
+ "popup_details_link": "More details",
121
122
  "filter_qualityscore": "Quality score",
122
123
  "filter_qualityscore_help": "Click to enable or disable",
123
124
  "qualityscore_doc_1": "A Quality Score is computed for each picture.",
@@ -117,6 +117,7 @@
117
117
  "picture_360": "360°",
118
118
  "picture_flat_long": "Photo classique",
119
119
  "picture_360_long": "Photo panoramique",
120
+ "popup_details_link": "Plus de détails",
120
121
  "filter_qualityscore": "Score de qualité",
121
122
  "filter_qualityscore_help": "Cliquez pour activer ou désactiver",
122
123
  "qualityscore_doc_1": "Un Score de Qualité est calculé pour chaque image.",