@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/CHANGELOG.md +1 -0
- package/build/index.js +8 -8
- package/build/index.js.map +1 -1
- package/build/photoviewer.js +6 -6
- package/build/photoviewer.js.map +1 -1
- package/package.json +1 -1
- package/src/components/core/PhotoViewer.js +10 -8
- package/src/components/menus/LocationPrecisionDoc.js +1 -1
- package/src/components/menus/QualityScoreDoc.js +1 -1
- package/src/components/menus/SemanticsDoc.js +1 -1
- package/src/components/ui/Map.js +3 -1
- package/src/components/ui/Popup.js +2 -2
- package/src/translations/en.json +1 -0
- package/src/translations/fr.json +1 -0
package/package.json
CHANGED
|
@@ -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.
|
|
370
|
-
|
|
371
|
-
this.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
34
|
+
>${fa(faExternalLinkAlt)} ${this._t?.pnx.popup_details_link}</pnx-link-button>
|
|
35
35
|
`;
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/components/ui/Map.js
CHANGED
|
@@ -595,7 +595,9 @@ export default class Map extends maplibregl.Map {
|
|
|
595
595
|
|
|
596
596
|
if(e.defaultPrevented === false) {
|
|
597
597
|
dropPreview();
|
|
598
|
-
|
|
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:
|
|
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="
|
|
132
|
+
kind="inline"
|
|
133
133
|
size="l"
|
|
134
134
|
@click=${this.close.bind(this)}
|
|
135
135
|
>
|
package/src/translations/en.json
CHANGED
|
@@ -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.",
|
package/src/translations/fr.json
CHANGED
|
@@ -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.",
|