@panoramax/web-viewer 5.2.0-develop-a4bfc0fc → 5.2.0-develop-0b4f95c7
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 +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index_photoviewer.js +5 -5
- package/build/cjs/index_photoviewer.js.map +1 -1
- package/build/esm/components/core/Basic.js +1 -1
- package/build/esm/components/menus/SemanticsMetadata.js +3 -2
- package/build/esm/utils/ClickAndGo.js +2 -2
- 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__ = "0b4f95c";
|
|
13
13
|
const __PACKAGE_VERSION__ = "5.2.0";
|
|
14
14
|
const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
|
|
15
15
|
|
|
@@ -304,8 +304,9 @@ export default class SemanticsMetadata extends LitElement {
|
|
|
304
304
|
/* eslint-disable eqeqeq */
|
|
305
305
|
if(!this._meta?.properties) { return; }
|
|
306
306
|
|
|
307
|
-
const
|
|
308
|
-
const
|
|
307
|
+
const localApiAllowsEdit = !this._meta.origInstance && this._meta.permissions.edit_semantics;
|
|
308
|
+
const apiAllowsEdit = localApiAllowsEdit || (this._meta.origInstance && this._parent.api._endpoint.startsWith(this._meta.origInstance.href));
|
|
309
|
+
const canEdit = localApiAllowsEdit && (this._authUrl || getUserAccount() !== null);
|
|
309
310
|
|
|
310
311
|
return html`
|
|
311
312
|
${(this._addTag || this._editTag) ? html`
|
|
@@ -137,8 +137,8 @@ export default class ClickAndGo {
|
|
|
137
137
|
const sizeFactor = cursorSizeFactor(rad2deg(yp.pitch));
|
|
138
138
|
const cursorHeight = CURSOR_SIZE * 2/5 * sizeFactor;
|
|
139
139
|
const cursorWidth = CURSOR_SIZE * sizeFactor;
|
|
140
|
-
this._cursor.style.top = `${e.
|
|
141
|
-
this._cursor.style.left = `${e.
|
|
140
|
+
this._cursor.style.top = `${e.layerY - 3 * cursorHeight / 5}px`;
|
|
141
|
+
this._cursor.style.left = `${e.layerX - cursorWidth / 2}px`;
|
|
142
142
|
this._cursor.style.height = `${cursorHeight}px`;
|
|
143
143
|
this._cursor.style.width = `${cursorWidth}px`;
|
|
144
144
|
this._cursor.style.display = "block";
|
package/package.json
CHANGED