@panoramax/web-viewer 4.3.0-develop-19c22213 → 4.3.0-develop-b0bac381

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-19c22213",
3
+ "version": "4.3.0-develop-b0bac381",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -104,6 +104,8 @@ export default class Basic extends LitElement {
104
104
  console.error(`Component attribute "${k}" has been renamed into "${v}". Old attribute "${k}" is ignored.`);
105
105
  }
106
106
  });
107
+
108
+ if(isInIframe()) { this.classList.add("pnx-iframed"); }
107
109
  }
108
110
 
109
111
  /**
@@ -44,6 +44,12 @@ pnx-viewer pnx-cornered-grid::part(corner-bottom-right) {
44
44
  align-items: flex-start;
45
45
  justify-content: flex-start;
46
46
  }
47
+
48
+ /* Offset bottom buttons on smartphones */
49
+ pnx-viewer:not(.pnx-iframed) pnx-cornered-grid::part(corner-bottom-right),
50
+ pnx-viewer:not(.pnx-iframed) pnx-cornered-grid::part(corner-bottom-left) {
51
+ margin-bottom: 30px;
52
+ }
47
53
  }
48
54
 
49
55
  /* Mini component */
@@ -1,7 +1,8 @@
1
1
  import { LitElement, html } from "lit";
2
- import { faSvg, titles } from "../styles";
2
+ import { faSvg, titles, docPopup } from "../styles";
3
3
  import { fa } from "../../utils/widgets";
4
4
  import { faMapMarkerAlt } from "@fortawesome/free-solid-svg-icons/faMapMarkerAlt";
5
+ import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons/faExternalLinkAlt";
5
6
  import { QUALITYSCORE_GPS_VALUES } from "../../utils/utils";
6
7
 
7
8
  /**
@@ -15,7 +16,7 @@ import { QUALITYSCORE_GPS_VALUES } from "../../utils/utils";
15
16
  * ```
16
17
  */
17
18
  export default class LocationPrecisionDoc extends LitElement {
18
- static styles = [ titles, faSvg ];
19
+ static styles = [ titles, faSvg, docPopup ];
19
20
 
20
21
  render() {
21
22
  /* eslint-disable indent */
@@ -35,7 +36,7 @@ export default class LocationPrecisionDoc extends LitElement {
35
36
  target="_blank"
36
37
  kind="outline"
37
38
  style="width: 100%"
38
- >${this._t?.pnx.filter_gps_precision_help}</pnx-link-button>
39
+ >${fa(faExternalLinkAlt)} ${this._t?.pnx.filter_gps_precision_help}</pnx-link-button>
39
40
  `;
40
41
  }
41
42
  }
@@ -1,7 +1,8 @@
1
1
  import { LitElement, html } from "lit";
2
- import { faSvg, titles } from "../styles";
2
+ import { faSvg, titles, docPopup } from "../styles";
3
3
  import { fa } from "../../utils/widgets";
4
4
  import { faMedal } from "@fortawesome/free-solid-svg-icons/faMedal";
5
+ import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons/faExternalLinkAlt";
5
6
 
6
7
  /**
7
8
  * Quality Score Doc displays a synthetic summary of how Quality Score is computed.
@@ -14,21 +15,27 @@ import { faMedal } from "@fortawesome/free-solid-svg-icons/faMedal";
14
15
  * ```
15
16
  */
16
17
  export default class QualityScoreDoc extends LitElement {
17
- static styles = [ titles, faSvg ];
18
+ static styles = [ titles, faSvg, docPopup ];
18
19
 
19
20
  render() {
20
21
  return html`
21
- <h4>${fa(faMedal)} ${this._t?.pnx.qualityscore_title}</h4>
22
+ <h4>${fa(faMedal)} ${this._t?.pnx.filter_qualityscore}</h4>
22
23
  <p>${this._t?.pnx.qualityscore_doc_1}</p>
23
24
  <p>${this._t?.pnx.qualityscore_doc_2}</p>
24
- <pnx-quality-score grade="5"></pnx-quality-score>
25
+ <pnx-quality-score grade=""></pnx-quality-score>
25
26
  <p>${this._t?.pnx.qualityscore_doc_3}</p>
27
+ <p>${this._t?.pnx.qualityscore_doc_4}</p>
28
+ <ul>
29
+ <li>${this._t?.pnx.qualityscore_doc_41}</li>
30
+ <li>${this._t?.pnx.qualityscore_doc_42}</li>
31
+ </ul>
32
+ <p>${this._t?.pnx.qualityscore_doc_5}</p>
26
33
  <pnx-link-button
27
34
  href="https://docs.panoramax.fr/pictures-metadata/quality_score/"
28
35
  target="_blank"
29
36
  kind="outline"
30
37
  style="width: 100%"
31
- >${this._t?.pnx.qualityscore_doc_link}</pnx-link-button>
38
+ >${fa(faExternalLinkAlt)} ${this._t?.pnx.qualityscore_doc_link}</pnx-link-button>
32
39
  `;
33
40
  }
34
41
  }
@@ -1,7 +1,8 @@
1
1
  import { LitElement, html } from "lit";
2
- import { faSvg, titles } from "../styles";
2
+ import { faSvg, titles, docPopup } from "../styles";
3
3
  import { fa } from "../../utils/widgets";
4
4
  import { faTags } from "@fortawesome/free-solid-svg-icons/faTags";
5
+ import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons/faExternalLinkAlt";
5
6
 
6
7
  /**
7
8
  * Semantics Doc displays a synthetic summary of what are semantics and how to use it.
@@ -14,11 +15,11 @@ import { faTags } from "@fortawesome/free-solid-svg-icons/faTags";
14
15
  * ```
15
16
  */
16
17
  export default class SemanticsDoc extends LitElement {
17
- static styles = [ titles, faSvg ];
18
+ static styles = [ titles, faSvg, docPopup ];
18
19
 
19
20
  render() {
20
21
  return html`
21
- <h4>${fa(faTags)} ${this._t?.pnx.semantics_doc_title}</h4>
22
+ <h4>${fa(faTags)} ${this._t?.pnx.semantics_title}</h4>
22
23
  <p>${this._t?.pnx.semantics_doc_info1}</p>
23
24
  <ul style="padding-left: 1.5em;">
24
25
  <li>${this._t?.pnx.semantics_doc_info1u1}</li>
@@ -30,7 +31,7 @@ export default class SemanticsDoc extends LitElement {
30
31
  target="_blank"
31
32
  kind="outline"
32
33
  style="width: 100%"
33
- >${this._t?.pnx.semantics_doc_link}</pnx-link-button>
34
+ >${fa(faExternalLinkAlt)} ${this._t?.pnx.semantics_doc_link}</pnx-link-button>
34
35
  `;
35
36
  }
36
37
  }
@@ -542,3 +542,14 @@ export const dataBlocks = css`
542
542
  font-size: 0.8em;
543
543
  }
544
544
  `;
545
+
546
+ // Documentation popup
547
+ export const docPopup = css`
548
+ h4 {
549
+ font-size: 1.3em;
550
+ font-weight: 600;
551
+ border-bottom: 3px solid var(--grey-pale);
552
+ padding-bottom: 10px;
553
+ padding-top: 5px;
554
+ }
555
+ `;
@@ -120,10 +120,13 @@
120
120
  "picture_360_long": "Panoramic picture",
121
121
  "filter_qualityscore": "Quality score",
122
122
  "filter_qualityscore_help": "Click to enable or disable",
123
- "qualityscore_title": "About the quality score",
124
- "qualityscore_doc_1": "Panoramax offers a Quality Score for each picture. It allows easy map filtering and comprehensive display of high-quality pictures availability.",
125
- "qualityscore_doc_2": "The grade is shown to users as a A/B/C/D/E score (A is the best, E the worst), and shown graphically through this scale:",
126
- "qualityscore_doc_3": "It is computed based on GPS precision and picture resolution. A professional system will have an A-rating, a 360° action camera will have a B-rating, and a smartphone will be C/D/E-rated.",
123
+ "qualityscore_doc_1": "A Quality Score is computed for each picture.",
124
+ "qualityscore_doc_2": "The Score is shown as a letter:",
125
+ "qualityscore_doc_3": "\"A\" is the best grade, \"E\" the worst.",
126
+ "qualityscore_doc_4": "This Score is computed based on:",
127
+ "qualityscore_doc_41": "the GPS precision",
128
+ "qualityscore_doc_42": "the picture resolution",
129
+ "qualityscore_doc_5": "A professional device will have an A-grade, a 360° action camera a B-grade, and a smartphone a grade between C and E.",
127
130
  "qualityscore_doc_link": "Know more about the Quality Score",
128
131
  "filter_gps_precision": "Location precision",
129
132
  "filter_gps_precision_lessthan": "Less than {n} meters",
@@ -199,7 +202,6 @@
199
202
  "semantics_picture_tags": "Picture tag",
200
203
  "semantics_annotation_tags": "Object tag",
201
204
  "semantics_doc": "Help",
202
- "semantics_doc_title": "About tags",
203
205
  "semantics_doc_info1": "Give context around a picture using tags.",
204
206
  "semantics_doc_info1u1": "You can tag it as captured by car with the transport=car tag.",
205
207
  "semantics_doc_info2": "You can draw objects in the picture as well: road signs, urban equipments… Mark what you see using existing tags. You can create your own ones as well if necessary.",
@@ -119,10 +119,13 @@
119
119
  "picture_360_long": "Photo panoramique",
120
120
  "filter_qualityscore": "Score de qualité",
121
121
  "filter_qualityscore_help": "Cliquez pour activer ou désactiver",
122
- "qualityscore_title": "À propos du score de qualité",
123
- "qualityscore_doc_1": "Panoramax propose un Score de Qualité pour chacune de ses photos. Cela facilite le filtre et la recherche de photos de bonne qualité sur la carte.",
124
- "qualityscore_doc_2": "Le score est affiché sous la forme d'une lettre A/B/C/D/E (A étant le meilleur, E le moins bon), et visualisable grâce à cette échelle :",
125
- "qualityscore_doc_3": "Il est calculé en fonction de la précision du GPS ainsi que la résolution de la photo. Un matériel professionnel aura une note de A, une caméra sportive 360° une note de B, et un smartphone une note de C à E.",
122
+ "qualityscore_doc_1": "Un Score de Qualité est calculé pour chaque image.",
123
+ "qualityscore_doc_2": "Le Score est affiché sous la forme d'une lettre :",
124
+ "qualityscore_doc_3": "\"A\" est la meilleure note, \"E\" la moins bonne.",
125
+ "qualityscore_doc_4": "Ce score est calculé selon :",
126
+ "qualityscore_doc_41": "la précision du GPS",
127
+ "qualityscore_doc_42": "la résolution de la photo",
128
+ "qualityscore_doc_5": "Un matériel professionnel aura une note de A, une caméra sportive 360° une note de B, et un smartphone une note entre C et E.",
126
129
  "qualityscore_doc_link": "En savoir plus sur le Score de Qualité",
127
130
  "filter_zoom_in": "Zoomez la carte pour voir ce filtre",
128
131
  "filter_gps_precision": "Précision du positionnement",
@@ -199,7 +202,6 @@
199
202
  "semantics_picture_tags": "Tag de photo",
200
203
  "semantics_annotation_tags": "Tag d'un objet",
201
204
  "semantics_doc": "Aide",
202
- "semantics_doc_title": "À propos des tags",
203
205
  "semantics_doc_info1": "Précisez le contexte d'une photo en utilisant un tag.",
204
206
  "semantics_doc_info1u1": "Indiquez par exemple qu'elle a été prise en voiture avec le tag transport=car.",
205
207
  "semantics_doc_info2": "Vous pouvez également détourer des objets au sein d'une photo : panneaux routiers, mobilier urbain… Précisez ce que vous voyez en utilisant les tags déjà utilisés par la communauté. Vous pouvez également créer votre propre tag si besoin.",