@panoramax/web-viewer 5.1.2-develop-1bfb025a → 5.1.2-develop-892ac969
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/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index_photoviewer.js +4 -4
- package/build/cjs/index_photoviewer.js.map +1 -1
- package/build/esm/components/core/Basic.js +1 -1
- package/build/esm/components/ui/Photo.js +0 -1
- package/build/esm/components/ui/SearchBar.js +2 -0
- package/build/esm/utils/picture.js +3 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
|
|
|
9
9
|
document.adoptedStyleSheets.push(AtkinsonStyles);
|
|
10
10
|
document.adoptedStyleSheets.push(BasicStyles);
|
|
11
11
|
|
|
12
|
-
const __COMMIT_HASH__ = "
|
|
12
|
+
const __COMMIT_HASH__ = "892ac96";
|
|
13
13
|
const __PACKAGE_VERSION__ = "5.1.2";
|
|
14
14
|
const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
|
|
15
15
|
|
|
@@ -189,7 +189,6 @@ export default class Photo extends PSViewer {
|
|
|
189
189
|
newMeta.links = newMeta.origLinks;
|
|
190
190
|
newNode.links = filterRelatedPicsLinks(newMeta, this._picturesNavFilter.bind(this));
|
|
191
191
|
this._myVTour.datasource.nodes[newNode.id] = newNode;
|
|
192
|
-
console.log(newNode.links);
|
|
193
192
|
this._myVTour.__renderLinks(newNode);
|
|
194
193
|
}, 2000);
|
|
195
194
|
}
|
|
@@ -305,6 +305,8 @@ export default class SearchBar extends LitElement {
|
|
|
305
305
|
this._parent.renderRoot.appendChild(this._popup);
|
|
306
306
|
if(!this["keep-on-menu-closure"]) {
|
|
307
307
|
listenForMenuClosure(this._popup, this.reset.bind(this));
|
|
308
|
+
} else {
|
|
309
|
+
listenForMenuClosure(this._popup, () => this._results = null);
|
|
308
310
|
}
|
|
309
311
|
}
|
|
310
312
|
|
|
@@ -132,8 +132,10 @@ export function getSphereCorrection(picture) {
|
|
|
132
132
|
}
|
|
133
133
|
roll = roll || 0;
|
|
134
134
|
|
|
135
|
+
const is360 = picture.properties?.["pers:interior_orientation"]?.["field_of_view"] === 360;
|
|
136
|
+
|
|
135
137
|
// Send result
|
|
136
|
-
return pitch !== 0 && roll !== 0 ? {
|
|
138
|
+
return (!is360 && (pitch !== 0 || roll !== 0)) || (pitch !== 0 && roll !== 0) ? {
|
|
137
139
|
pan: yaw * Math.PI / 180,
|
|
138
140
|
tilt: -pitch * Math.PI / 180,
|
|
139
141
|
roll: roll * Math.PI / 180,
|
package/package.json
CHANGED