@panoramax/web-viewer 5.0.0-develop-d26305dd → 5.0.0-develop-be5ba1a7

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.
Files changed (153) hide show
  1. package/build/cjs/index.js +1 -1
  2. package/build/cjs/index_photoviewer.js +1 -1
  3. package/build/esm/components/core/Basic.js +1 -1
  4. package/build/esm/translations/el.json +92 -1
  5. package/package.json +1 -1
  6. package/build/bundle.cjs +0 -3399
  7. package/build/bundle.cjs.map +0 -1
  8. package/build/bundle_photoviewer.cjs +0 -2510
  9. package/build/bundle_photoviewer.cjs.map +0 -1
  10. package/build/components/core/Basic.css +0 -56
  11. package/build/components/core/Basic.js +0 -378
  12. package/build/components/core/CoverageMap.css +0 -10
  13. package/build/components/core/CoverageMap.js +0 -169
  14. package/build/components/core/Editor.css +0 -33
  15. package/build/components/core/Editor.js +0 -398
  16. package/build/components/core/PhotoViewer.css +0 -70
  17. package/build/components/core/PhotoViewer.js +0 -650
  18. package/build/components/core/Viewer.css +0 -130
  19. package/build/components/core/Viewer.js +0 -711
  20. package/build/components/core/index.js +0 -10
  21. package/build/components/index.js +0 -11
  22. package/build/components/index_photoviewer.js +0 -6
  23. package/build/components/layout/BottomDrawer.js +0 -258
  24. package/build/components/layout/CorneredGrid.js +0 -143
  25. package/build/components/layout/Mini.js +0 -121
  26. package/build/components/layout/Tabs.js +0 -140
  27. package/build/components/layout/index.js +0 -9
  28. package/build/components/menus/LocationPrecisionDoc.js +0 -42
  29. package/build/components/menus/MapBackground.js +0 -110
  30. package/build/components/menus/MapFilters.js +0 -567
  31. package/build/components/menus/MapLayers.js +0 -238
  32. package/build/components/menus/MapLegend.js +0 -68
  33. package/build/components/menus/MiniPictureLegend.js +0 -73
  34. package/build/components/menus/PictureLegend.js +0 -379
  35. package/build/components/menus/PictureMetadata.js +0 -380
  36. package/build/components/menus/PlayerOptions.js +0 -93
  37. package/build/components/menus/QualityScoreDoc.js +0 -42
  38. package/build/components/menus/ReportForm.js +0 -132
  39. package/build/components/menus/SemanticsDoc.js +0 -38
  40. package/build/components/menus/SemanticsDownload.js +0 -33
  41. package/build/components/menus/SemanticsFilters.js +0 -153
  42. package/build/components/menus/SemanticsList.js +0 -413
  43. package/build/components/menus/SemanticsMetadata.js +0 -368
  44. package/build/components/menus/Share.js +0 -105
  45. package/build/components/menus/index.js +0 -22
  46. package/build/components/menus/index_photoviewer.js +0 -11
  47. package/build/components/styles.js +0 -557
  48. package/build/components/ui/AnnotationsSwitch.js +0 -159
  49. package/build/components/ui/Button.js +0 -77
  50. package/build/components/ui/ButtonGroup.css +0 -59
  51. package/build/components/ui/ButtonGroup.js +0 -69
  52. package/build/components/ui/CopyButton.js +0 -110
  53. package/build/components/ui/Grade.js +0 -54
  54. package/build/components/ui/GradeFilter.js +0 -122
  55. package/build/components/ui/IconSwitch.js +0 -193
  56. package/build/components/ui/LinkButton.js +0 -67
  57. package/build/components/ui/ListGroup.js +0 -66
  58. package/build/components/ui/ListItem.js +0 -90
  59. package/build/components/ui/Loader.js +0 -203
  60. package/build/components/ui/Map.css +0 -63
  61. package/build/components/ui/Map.js +0 -853
  62. package/build/components/ui/MapMore.js +0 -175
  63. package/build/components/ui/Photo.css +0 -50
  64. package/build/components/ui/Photo.js +0 -1502
  65. package/build/components/ui/Popup.js +0 -145
  66. package/build/components/ui/ProgressBar.js +0 -104
  67. package/build/components/ui/QualityScore.js +0 -147
  68. package/build/components/ui/SearchBar.js +0 -374
  69. package/build/components/ui/SemanticsEditor.js +0 -191
  70. package/build/components/ui/SemanticsTable.js +0 -88
  71. package/build/components/ui/Switch.js +0 -139
  72. package/build/components/ui/TogglableGroup.js +0 -157
  73. package/build/components/ui/index.js +0 -29
  74. package/build/components/ui/index_photoviewer.js +0 -21
  75. package/build/components/ui/widgets/CopyCoordinates.js +0 -75
  76. package/build/components/ui/widgets/GeoSearch.css +0 -21
  77. package/build/components/ui/widgets/GeoSearch.js +0 -150
  78. package/build/components/ui/widgets/Legend.js +0 -190
  79. package/build/components/ui/widgets/LevelSelect.css +0 -51
  80. package/build/components/ui/widgets/LevelSelect.js +0 -143
  81. package/build/components/ui/widgets/MapFiltersButton.js +0 -114
  82. package/build/components/ui/widgets/MapLayersButton.js +0 -79
  83. package/build/components/ui/widgets/OSMEditors.js +0 -155
  84. package/build/components/ui/widgets/PictureLegendActions.js +0 -99
  85. package/build/components/ui/widgets/Player.css +0 -7
  86. package/build/components/ui/widgets/Player.js +0 -154
  87. package/build/components/ui/widgets/SemanticsFiltersButton.js +0 -65
  88. package/build/components/ui/widgets/Zoom.js +0 -84
  89. package/build/components/ui/widgets/index.js +0 -16
  90. package/build/components/ui/widgets/index_photoviewer.js +0 -7
  91. package/build/img/arrow_360.svg +0 -14
  92. package/build/img/arrow_flat.svg +0 -11
  93. package/build/img/arrow_triangle.svg +0 -9
  94. package/build/img/arrow_turn.svg +0 -8
  95. package/build/img/bg_aerial.jpg +0 -0
  96. package/build/img/bg_streets.jpg +0 -0
  97. package/build/img/loader_base.jpg +0 -0
  98. package/build/img/logo_dead.svg +0 -91
  99. package/build/img/marker.svg +0 -17
  100. package/build/img/marker_blue.svg +0 -20
  101. package/build/img/osm.svg +0 -49
  102. package/build/img/panoramax.svg +0 -13
  103. package/build/img/switch_big.svg +0 -54
  104. package/build/img/switch_mini.svg +0 -48
  105. package/build/img/wd.svg +0 -1
  106. package/build/index_photoviewer.js +0 -4
  107. package/build/package.json +0 -148
  108. package/build/servers.js +0 -14
  109. package/build/translations/ar.json +0 -1
  110. package/build/translations/be.json +0 -257
  111. package/build/translations/br.json +0 -81
  112. package/build/translations/cy.json +0 -117
  113. package/build/translations/da.json +0 -300
  114. package/build/translations/de.json +0 -309
  115. package/build/translations/en.json +0 -294
  116. package/build/translations/eo.json +0 -235
  117. package/build/translations/es.json +0 -292
  118. package/build/translations/fi.json +0 -1
  119. package/build/translations/fr.json +0 -294
  120. package/build/translations/hr.json +0 -294
  121. package/build/translations/hu.json +0 -294
  122. package/build/translations/it.json +0 -306
  123. package/build/translations/ja.json +0 -182
  124. package/build/translations/ko.json +0 -1
  125. package/build/translations/nl.json +0 -305
  126. package/build/translations/nn.json +0 -1
  127. package/build/translations/pl.json +0 -169
  128. package/build/translations/pt.json +0 -296
  129. package/build/translations/pt_BR.json +0 -304
  130. package/build/translations/sv.json +0 -182
  131. package/build/translations/ti.json +0 -9
  132. package/build/translations/tr.json +0 -297
  133. package/build/translations/uk.json +0 -268
  134. package/build/translations/zh_Hant.json +0 -309
  135. package/build/utils/API.js +0 -928
  136. package/build/utils/InitParameters.js +0 -521
  137. package/build/utils/MapStyleComposer.js +0 -889
  138. package/build/utils/PanoraMapProtocol.js +0 -49
  139. package/build/utils/PhotoAdapter.js +0 -49
  140. package/build/utils/PresetsManager.js +0 -148
  141. package/build/utils/SemanticsMapProtocol.js +0 -144
  142. package/build/utils/URLHandler.js +0 -426
  143. package/build/utils/geocoder.js +0 -203
  144. package/build/utils/i18n.js +0 -128
  145. package/build/utils/index.js +0 -17
  146. package/build/utils/index_photoviewer.js +0 -14
  147. package/build/utils/indoor.js +0 -200
  148. package/build/utils/map.js +0 -788
  149. package/build/utils/picture.js +0 -507
  150. package/build/utils/semantics.js +0 -321
  151. package/build/utils/services.js +0 -148
  152. package/build/utils/utils.js +0 -433
  153. package/build/utils/widgets.js +0 -110
@@ -1,145 +0,0 @@
1
- import { LitElement, css, html } from "lit";
2
- import { fa } from "../../utils/widgets.js";
3
- import { faSvg, panel } from "../styles.js";
4
- import { faXmark } from "@fortawesome/free-solid-svg-icons";
5
-
6
- /**
7
- * Popup Element displays a full overlay container.
8
- * @class Panoramax.components.ui.Popup
9
- * @element pnx-popup
10
- * @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
11
- * @fires Panoramax.components.ui.Popup#open
12
- * @fires Panoramax.components.ui.Popup#close
13
- * @example
14
- * ```html
15
- * <pnx-popup @close=${() => alert("closed")}>
16
- * <h3>Popup content</h3>
17
- * </pnx-popup>
18
- * ```
19
- */
20
- export default class Popup extends LitElement {
21
- /** @private */
22
- static styles = [ panel, faSvg, css`
23
- /* Backdrop */
24
- :host {
25
- display: flex;
26
- align-items: center;
27
- justify-content: center;
28
- position: absolute;
29
- top: 0;
30
- right: 0;
31
- left: 0;
32
- bottom: 0;
33
- opacity: 0;
34
- visibility: hidden;
35
- pointer-events: none;
36
- transition: all 0.2s;
37
- background: rgba(0, 0, 0, 0.85);
38
- }
39
- :host(*[visible]) {
40
- opacity: 1;
41
- visibility: visible;
42
- pointer-events: unset;
43
- z-index: 200;
44
- }
45
-
46
- /* Content backgroud */
47
- .pnx-panel {
48
- box-sizing: border-box;
49
- position: relative;
50
- width: 90%;
51
- max-height: 90%;
52
- max-width: 400px;
53
- overflow-y: auto;
54
- }
55
-
56
- .btn-close {
57
- position: absolute;
58
- top: 15px;
59
- right: 15px;
60
- }
61
- `];
62
-
63
- /**
64
- * Component properties.
65
- * @memberof Panoramax.components.ui.Popup#
66
- * @type {Object}
67
- * @property {boolean} [visible=true] Is the popup visible to user ?
68
- */
69
- static properties = {
70
- visible: {type: Boolean, reflect: true},
71
- };
72
-
73
- constructor() {
74
- super();
75
- this.visible = false;
76
- }
77
-
78
- /** @private */
79
- connectedCallback() {
80
- super.connectedCallback();
81
-
82
- // Backdrop closing
83
- this.addEventListener("click", e => {
84
- if(e.target === this) { this.close(); }
85
- });
86
-
87
- // Esc closing
88
- document.addEventListener("keyup", e => {
89
- if(e.key === "Escape" && this.visible) {
90
- this.close();
91
- }
92
- });
93
- }
94
-
95
- /** @private */
96
- attributeChangedCallback(name, _old, value) {
97
- super.attributeChangedCallback(name, _old, value);
98
-
99
- if(name == "visible") {
100
- if(value === "" || value === true) {
101
- /**
102
- * Event for popup opening
103
- * @event Panoramax.components.ui.Popup#open
104
- * @type {Event}
105
- */
106
- this.dispatchEvent(new Event("open"));
107
- }
108
- }
109
- }
110
-
111
- /**
112
- * Close popup
113
- * @memberof Panoramax.components.ui.Popup#
114
- */
115
- close() {
116
- this.visible = false;
117
-
118
- /**
119
- * Event for popup closing
120
- * @event Panoramax.components.ui.Popup#close
121
- * @type {Event}
122
- */
123
- this.dispatchEvent(new Event("close"));
124
- }
125
-
126
- /** @private */
127
- render() {
128
- return html`
129
- <div class="pnx-panel pnx-padded">
130
- <pnx-button
131
- class="btn-close"
132
- kind="inline"
133
- size="l"
134
- @click=${this.close.bind(this)}
135
- >
136
- ${fa(faXmark)}
137
- </pnx-button>
138
-
139
- <slot></slot>
140
- </div>
141
- `;
142
- }
143
- }
144
-
145
- customElements.define("pnx-popup", Popup);
@@ -1,104 +0,0 @@
1
- import { LitElement, css, html, nothing } from "lit";
2
-
3
- /**
4
- * Progress bar with nice styling.
5
- * @class Panoramax.components.ui.ProgressBar
6
- * @element pnx-progress-bar
7
- * @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
8
- * @example
9
- * ```html
10
- * <pnx-loader value="42" ._t=${viewer._t} />
11
- * ```
12
- */
13
- export default class ProgressBar extends LitElement {
14
- /** @private */
15
- static styles = css`
16
- progress {
17
- max-width: 80vh;
18
- width: 300px;
19
- height: 16px;
20
- appearance: none;
21
- -webkit-appearance: none;
22
- border: 1px solid var(--grey-semi-dark);
23
- background-color: var(--grey);
24
- border-radius: 8px;
25
- overflow: hidden;
26
- padding: 3px;
27
- box-sizing: border-box;
28
- display: block;
29
- }
30
-
31
- progress::-webkit-progress-bar {
32
- background-color: var(--grey);
33
- }
34
-
35
- /* Don't merge with -moz below, for some f*ing reason a list selector doesn't work with Chrome */
36
- progress::-webkit-progress-value {
37
- background-color: var(--blue);
38
- border-radius: 5px;
39
- box-sizing: border-box;
40
- }
41
-
42
- progress::-moz-progress-bar {
43
- background-color: var(--blue);
44
- border-radius: 5px;
45
- box-sizing: border-box;
46
- }
47
-
48
- progress[value=""]::-moz-progress-bar,
49
- progress:not([value])::-moz-progress-bar {
50
- animation: indeterminateAnimation 1.5s infinite linear;
51
- }
52
-
53
- progress.indeterminate {
54
- position: relative;
55
- background-color: var(--grey);
56
- overflow: hidden;
57
- }
58
-
59
- progress.indeterminate::after {
60
- content: "";
61
- position: absolute;
62
- left: 3px;
63
- top: 3px;
64
- bottom: 3px;
65
- width: 20%;
66
- background-color: var(--blue);
67
- border-radius: 5px;
68
- animation: indeterminateAnimation 1.5s infinite linear;
69
- pointer-events: none;
70
- }
71
-
72
- @keyframes indeterminateAnimation {
73
- 0% { margin-left: 0%; width: 2%; }
74
- 15% { margin-left: 0%; width: 20%; }
75
- 50% { margin-left: 40%; width: 20%; }
76
- 85% { margin-left: 80%; width: 20%; }
77
- 100% { margin-left: 98%; width: 2%; }
78
- }
79
- `;
80
-
81
- /**
82
- * Component properties.
83
- * @memberof Panoramax.components.ui.ProgressBar#
84
- * @type {Object}
85
- * @property {number} [value] Progress bar percentage (0-100) or empty for indeterminate state
86
- */
87
- static properties = {
88
- value: {type: Number},
89
- };
90
-
91
- /** @private */
92
- render() {
93
- return html`
94
- <progress
95
- value=${this.value >= 0 ? this.value : nothing}
96
- class=${this.value >= 0 ? nothing : "indeterminate"}
97
- max="100"
98
- title=${this._t?.map.loading}
99
- ></progress>
100
- `;
101
- }
102
- }
103
-
104
- customElements.define("pnx-progress-bar", ProgressBar);
@@ -1,147 +0,0 @@
1
- import { LitElement, css, html } from "lit";
2
- import { QUALITYSCORE_VALUES } from "../../utils/utils.js";
3
-
4
- /**
5
- * Quality Score element displays the picture quality grade.
6
- * @class Panoramax.components.ui.QualityScore
7
- * @element pnx-quality-score
8
- * @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
9
- * @fires Panoramax.components.ui.QualityScore#change
10
- * @example
11
- * ```html
12
- * <!-- Read-only -->
13
- * <pnx-quality-score grade="5" ._t=${viewer._t} />
14
- *
15
- * <!-- Input -->
16
- * <pnx-quality-score grade="5" input="pnx-qs-input" @change=${() => alert('changed')} ._t=${viewer._t} />
17
- * ```
18
- */
19
- export default class QualityScore extends LitElement {
20
- /** @private */
21
- static styles = css`
22
- :host {
23
- gap: 0px;
24
- justify-content: center;
25
- height: 2em;
26
- font-size: 18px;
27
- display: inline-flex;
28
- align-items: center;
29
- color: white;
30
- }
31
-
32
- /* Single letter */
33
- span, label {
34
- width: 1.2em;
35
- height: 1.5em;
36
- line-height: 1.5em;
37
- display: inline-block;
38
- border: 0.05em solid white;
39
- text-align: center;
40
- background-color: gray;
41
- color: rgba(255,255,255,0.9);
42
- font-family: var(--font-family);
43
- font-weight: 800;
44
- vertical-align: middle;
45
- }
46
-
47
- /* Rounded corners for first/last */
48
- span:first-of-type, label:first-of-type {
49
- border-top-left-radius: 0.4em;
50
- border-bottom-left-radius: 0.4em;
51
- }
52
-
53
- span:last-of-type, label:last-of-type {
54
- border-top-right-radius: 0.4em;
55
- border-bottom-right-radius: 0.4em;
56
- }
57
-
58
- /* Selected letter */
59
- .selected, input[type="checkbox"]:checked + label {
60
- font-size: 1.3em;
61
- height: 1.6em;
62
- line-height: 1.6em;
63
- border-radius: 0.3em !important;
64
- }
65
-
66
- /* Clickable letter for input */
67
- label { cursor: pointer; }
68
-
69
- label:hover {
70
- font-size: 1.2em;
71
- height: 1.6em;
72
- line-height: 1.6em;
73
- border-radius: 0.3em !important;
74
- }
75
-
76
- input[type="checkbox"] { display: none; }
77
- `;
78
-
79
- /**
80
- * Component properties.
81
- * @memberof Panoramax.components.ui.QualityScore#
82
- * @type {Object}
83
- * @property {number|string} [grade=0] The grade (5=A, 1=E, 0=none selected), or a list of grades
84
- * @property {string} [input=false] If set, score is an input and value is used as ID prefix
85
- */
86
- static properties = {
87
- grade: {type: String, reflect: true},
88
- input: {type: String},
89
- };
90
-
91
- constructor() {
92
- super();
93
- this.grade = 0;
94
- this.input = false;
95
- }
96
-
97
- /** @private */
98
- _onInput() {
99
- // List all checked boxes
100
- const newgrade = [];
101
- for(let i of this.renderRoot.querySelectorAll("input")) {
102
- if(i.checked) { newgrade.push(i.value); }
103
- }
104
- this.grade = newgrade.join(",");
105
-
106
- /**
107
- * Event for grade change
108
- * @event Panoramax.components.ui.QualityScore#change
109
- * @type {CustomEvent}
110
- */
111
- this.dispatchEvent(new CustomEvent("change", {bubbles: true, composed: true}));
112
- }
113
-
114
- /** @private */
115
- render() {
116
- const grades = `${this.grade}`.split(",").map(v => parseInt(v)).filter(v => !isNaN(v));
117
- if(this.input) {
118
- return QUALITYSCORE_VALUES.map((pv, index) => {
119
- return html`
120
- <input
121
- id="${this.input}-${pv.label}"
122
- type="checkbox"
123
- name="qualityscore"
124
- value="${5-index}"
125
- @change="${this._onInput}"
126
- .checked=${grades.includes(5-index)}
127
- />
128
- <label
129
- for="${this.input}-${pv.label}"
130
- title="${this._t?.pnx.filter_qualityscore_help}"
131
- style="background-color: ${pv.color}"
132
- >
133
- ${pv.label}
134
- </label>
135
- `;});
136
- }
137
- else {
138
- return QUALITYSCORE_VALUES.map((pv, index) => html`
139
- <span class="${grades.includes(5-index) ? "selected" : ""}" style="background-color: ${pv.color}">
140
- ${pv.label}
141
- </span>
142
- `);
143
- }
144
- }
145
- }
146
-
147
- customElements.define("pnx-quality-score", QualityScore);