@panoramax/web-viewer 3.2.3-develop-6f96afa8 → 3.2.3-develop-db697921

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": "3.2.3-develop-6f96afa8",
3
+ "version": "3.2.3-develop-db697921",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -59,7 +59,7 @@ export default class Tabs extends LitElement {
59
59
  * @property {string} [activeTabIndex=0] The selected tab index
60
60
  */
61
61
  static properties = {
62
- activeTabIndex: {type: Number},
62
+ activeTabIndex: {type: Number, reflect: true},
63
63
  };
64
64
 
65
65
  constructor() {
@@ -48,7 +48,6 @@ export default class PictureMetadata extends LitElement {
48
48
  }
49
49
 
50
50
  /* Small data blocks */
51
- /* .data-blocks { display: flex; } */
52
51
  .data-block {
53
52
  display: inline-block;
54
53
  min-width: 50%;
@@ -82,6 +81,14 @@ export default class PictureMetadata extends LitElement {
82
81
  });
83
82
  }
84
83
 
84
+ /** @private */
85
+ _onQualityScoreClick() {
86
+ const qsTab = this.shadowRoot.querySelector("pnx-tabs");
87
+ if(qsTab) {
88
+ qsTab.setAttribute("activeTabIndex", 3);
89
+ }
90
+ }
91
+
85
92
  /** @private */
86
93
  _toTab(title, data) {
87
94
  return html`
@@ -237,7 +244,11 @@ export default class PictureMetadata extends LitElement {
237
244
  // Quality score
238
245
  hasQualityScore && {
239
246
  title: this._parent?._t.pnx.metadata_quality,
240
- content: html`<pnx-quality-score grade=${generalGrade} style="font-size: 14px" />`
247
+ content: html`<pnx-quality-score
248
+ grade=${generalGrade}
249
+ style="font-size: 14px; cursor: pointer"
250
+ @click=${this._onQualityScoreClick}
251
+ />`
241
252
  },
242
253
  // Copy ID
243
254
  {
@@ -306,7 +306,7 @@ export function apiFeatureToPSVNode(f, t, fastInternet=false, customLinkFilter=n
306
306
  let panorama;
307
307
 
308
308
  // Cropped panorama
309
- if(!tileUrl && Object.keys(croppedPanoData).length > 0) {
309
+ if(Object.keys(croppedPanoData).length > 0) {
310
310
  panorama = {
311
311
  baseUrl: fastInternet ? hdUrl : baseUrl,
312
312
  origBaseUrl: fastInternet ? hdUrl : baseUrl,