@panoramax/web-viewer 3.2.3-develop-17bc8da1 → 3.2.3-develop-d3aad6f3

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-17bc8da1",
3
+ "version": "3.2.3-develop-d3aad6f3",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -89,6 +89,7 @@
89
89
  "workbox-webpack-plugin": "^6.5.4"
90
90
  },
91
91
  "dependencies": {
92
+ "@fontsource/atkinson-hyperlegible-next": "^5.2.2",
92
93
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
93
94
  "@fortawesome/free-regular-svg-icons": "^6.7.2",
94
95
  "@fortawesome/free-solid-svg-icons": "^6.7.2",
@@ -1,5 +1,5 @@
1
1
  /* Colors */
2
- :root {
2
+ :root, :host {
3
3
  --white: #ffffff;
4
4
  --black: #181818;
5
5
  --black-pale: #1b1a17;
@@ -31,6 +31,7 @@
31
31
  --widget-font: var(--grey-dark);
32
32
  --widget-font-active: var(--white);
33
33
  --widget-font-direct: var(--blue);
34
+ --font-family: "Atkinson Hyperlegible Next", sans-serif;
34
35
  }
35
36
 
36
37
  .pnx-hidden { display: none !important; }
@@ -5,6 +5,7 @@ import { DEFAULT_TILES } from "../../utils/map";
5
5
  import { createWebComp } from "../../utils/widgets";
6
6
  import { isInIframe, isInternetFast } from "../../utils/utils";
7
7
  import PACKAGE_JSON from "../../../package.json";
8
+ import "@fontsource/atkinson-hyperlegible-next";
8
9
  import "./Basic.css";
9
10
 
10
11
  /**
@@ -48,7 +48,7 @@ export default class MapFilters extends LitElement {
48
48
  z-index: 131;
49
49
  background-color: rgba(255,255,255,0.8);
50
50
  text-align: center;
51
- font-weight: bold;
51
+ font-weight: 800;
52
52
  position: absolute;
53
53
  top: 0;
54
54
  right: 0;
@@ -80,6 +80,7 @@ export default class MapFilters extends LitElement {
80
80
  color: var(--widget-font);
81
81
  border: 1px solid var(--widget-border-div);
82
82
  border-radius: 20px;
83
+ font-family: var(--font-family);
83
84
  }
84
85
 
85
86
  /* Input shortcuts */
@@ -91,13 +92,14 @@ export default class MapFilters extends LitElement {
91
92
  border: none;
92
93
  height: 20px;
93
94
  line-height: 20px;
94
- font-size: 11px;
95
+ font-size: 0.8em;
95
96
  padding: 0 8px;
96
97
  vertical-align: middle;
97
98
  background-color: var(--grey-pale);
98
99
  color: var(--black);
99
100
  border-radius: 10px;
100
101
  cursor: pointer;
102
+ font-family: var(--font-family);
101
103
  }
102
104
  .pnx-input-shortcuts button:hover {
103
105
  background-color: #d9dcd9;
@@ -17,7 +17,7 @@ export default class MapLegend extends LitElement {
17
17
  /** @private */
18
18
  static styles = css`
19
19
  :host {
20
- font-size: 0.8em;
20
+ font-size: 0.9em;
21
21
  }
22
22
  small {
23
23
  font-size: 1em;
@@ -30,7 +30,7 @@ export default class PictureLegend extends LitElement {
30
30
  }
31
31
 
32
32
  .context {
33
- font-size: 0.8em;
33
+ font-size: 0.9em;
34
34
  display: flex;
35
35
  align-items: center;
36
36
  justify-content: space-between;
@@ -84,7 +84,6 @@ export default class PlayerOptions extends LitElement {
84
84
  id="pnx-player-contrast"
85
85
  title="${this._parent?._t.pnx.contrast}"
86
86
  kind="outline"
87
- style="width: 26px;"
88
87
  @click=${this._onContrastClick}
89
88
  >
90
89
  ${fa(faLightbulb)}
@@ -78,10 +78,13 @@ export default class ShareMenu extends LitElement {
78
78
  /** @private */
79
79
  connectedCallback() {
80
80
  super.connectedCallback();
81
- this._onUrlChange();
82
- this._parent?.addEventListener("ready", this._onUrlChange.bind(this), { once: true });
83
- this._parent?.urlHandler?.addEventListener("url-changed", this._onUrlChange.bind(this));
84
- this._parent?.oncePSVReady().then(() => this._parent.psv.addEventListener("picture-loaded", this._onPictureLoad.bind(this)));
81
+ this._parent?.onceReady().then(() => {
82
+ this._onUrlChange();
83
+ this._parent.urlHandler.addEventListener("url-changed", this._onUrlChange.bind(this));
84
+
85
+ this._parent.onceFirstPicLoaded().then(this._onPictureLoad.bind(this));
86
+ this._parent.psv.addEventListener("picture-loaded", this._onPictureLoad.bind(this));
87
+ });
85
88
  }
86
89
 
87
90
  /** @private */
@@ -13,7 +13,7 @@ export const panel = css`
13
13
  color: var(--widget-font);
14
14
  min-width: 250px;
15
15
  box-sizing: border-box;
16
- font-family: sans-serif;
16
+ font-family: var(--font-family);
17
17
  }
18
18
 
19
19
  .pnx-panel.pnx-hidden {
@@ -58,6 +58,7 @@ export const textarea = css`
58
58
  padding: 5px;
59
59
  width: 100%;
60
60
  box-sizing: border-box;
61
+ font-family: var(--font-family);
61
62
  }
62
63
  `;
63
64
 
@@ -70,6 +71,7 @@ export const select = css`
70
71
  border-radius: 20px;
71
72
  font-size: 16px;
72
73
  padding: 2px 10px;
74
+ font-family: var(--font-family);
73
75
  }
74
76
 
75
77
  select.pnx-100w {
@@ -87,6 +89,7 @@ export const input = css`
87
89
  border-radius: 20px;
88
90
  font-size: 16px;
89
91
  padding: 2px 10px;
92
+ font-family: var(--font-family);
90
93
  }
91
94
 
92
95
  input.pnx-100w {
@@ -98,14 +101,14 @@ export const input = css`
98
101
  // Buttons
99
102
  export const btn = css`
100
103
  :host {
101
- display: inline-block;
104
+ display: inline-flex;
102
105
  }
103
106
 
104
107
  /* Common properties */
105
108
  .pnx-btn {
106
109
  white-space: nowrap;
107
- font-size: 0.9em;
108
- font-family: sans-serif;
110
+ font-size: 1em;
111
+ font-family: var(--font-family);
109
112
  flex-grow: 1;
110
113
  flex-shrink: 1;
111
114
  text-align: center;
@@ -155,7 +158,7 @@ export const btn = css`
155
158
  height: 40px;
156
159
  line-height: 40px;
157
160
  font-size: 16px;
158
- font-weight: 400;
161
+ font-weight: 500;
159
162
  min-width: 40px;
160
163
  padding: 0 10px;
161
164
  gap: 8px;
@@ -232,6 +235,10 @@ export const btn = css`
232
235
 
233
236
  // Titles
234
237
  export const titles = css`
238
+ h1, h2, h3, h4, h5, h6 {
239
+ font-family: var(--font-family);
240
+ }
241
+
235
242
  h3 {
236
243
  font-size: 1.1em;
237
244
  line-height: 1.1em;
@@ -1,3 +1,7 @@
1
+ pnx-button-group > pnx-button {
2
+ display: inline-block;
3
+ }
4
+
1
5
  /* Togglable in group */
2
6
  pnx-button-group > pnx-togglable-group > pnx-button {
3
7
  width: 100%;
@@ -28,7 +28,7 @@ export default class Loader extends LitElement {
28
28
  background-size: cover;
29
29
  background-position: center;
30
30
  z-index: 200;
31
- font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
31
+ font-family: var(--font-family);
32
32
  font-weight: 550;
33
33
  color: var(--black);
34
34
  font-size: 1.4em;
@@ -32,14 +32,14 @@ export default class QualityScore extends LitElement {
32
32
  font-size: 18px;
33
33
  width: 25px;
34
34
  height: 30px;
35
- line-height: 26px;
35
+ line-height: 28px;
36
36
  display: inline-block;
37
37
  border: 1px solid white;
38
38
  text-align: center;
39
39
  background-color: gray;
40
40
  color: rgba(255,255,255,0.9);
41
- font-family: sans-serif;
42
- font-weight: bold;
41
+ font-family: var(--font-family);
42
+ font-weight: 800;
43
43
  vertical-align: middle;
44
44
  }
45
45
 
@@ -58,7 +58,7 @@ export default class QualityScore extends LitElement {
58
58
  .selected, input[type="checkbox"]:checked + label {
59
59
  width: 30px;
60
60
  height: 42px;
61
- line-height: 37px;
61
+ line-height: 41px;
62
62
  border-radius: 8px;
63
63
  font-size: 27px;
64
64
  color: white;
@@ -71,7 +71,7 @@ export default class QualityScore extends LitElement {
71
71
  label:hover {
72
72
  width: 28px;
73
73
  height: 35px;
74
- line-height: 30px;
74
+ line-height: 34px;
75
75
  border-radius: 3px;
76
76
  font-size: 22px;
77
77
  color: white;
@@ -50,6 +50,7 @@ export default class SearchBar extends LitElement {
50
50
  width: fit-content;
51
51
  max-width: 100%;
52
52
  box-sizing: border-box;
53
+ font-family: var(--font-family);
53
54
  }
54
55
  .sb.sb-xxl {
55
56
  height: 40px;
@@ -113,9 +114,9 @@ export default class SearchBar extends LitElement {
113
114
  background-color: var(--widget-bg);
114
115
  color: var(--widget-font);
115
116
  z-index: 130;
116
- font-size: 1em;
117
+ font-size: 1.05em;
117
118
  line-height: normal;
118
- font-family: sans;
119
+ font-family: var(--font-family);
119
120
  }
120
121
  .sb.sb-xxl .sb-results {
121
122
  top: 45px;