@panoramax/web-viewer 5.2.0-develop-bfbbbc04 → 5.2.0-develop-b08cee73

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.
@@ -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__ = "bfbbbc0";
12
+ const __COMMIT_HASH__ = "b08cee7";
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
 
@@ -8,6 +8,7 @@ import { SEMANTICS_OVERLAY_MINZOOM } from "../../utils/SemanticsMapProtocol.js";
8
8
  * @class Panoramax.components.menus.SemanticsFilters
9
9
  * @element pnx-map-semantics-filters-menu
10
10
  * @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
11
+ * @slot `extra` Append custom content at the end of the menu (e.g. integrator-specific filters). Slotted content is light-DOM owned by the host, so it survives the menu's re-renders.
11
12
  * @fires Panoramax.components.menus.SemanticsFilters#change
12
13
  * @example
13
14
  * ```html
@@ -146,6 +147,7 @@ export default class SemanticsFilters extends LitElement {
146
147
  @change=${e => this._parent.mapStyleComposer.switchDataOverlayVisibility(l.source, e.target.checked)}
147
148
  >${this._parent?._t.pnx.semantics_overlays[l.id] || l.metadata.name || l.id}</pnx-switch>
148
149
  `)}
150
+ <slot name="extra"></slot>
149
151
  `;
150
152
  }
151
153
  }
@@ -10,6 +10,7 @@ import {
10
10
  * @class Panoramax.components.menus.ShareMenu
11
11
  * @element pnx-share-menu
12
12
  * @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
13
+ * @slot `extra` Append custom content at the end of the menu (e.g. integrator-specific share links). Slotted content is light-DOM owned by the host, so it survives the menu's re-renders.
13
14
  * @example
14
15
  * ```html
15
16
  * <pnx-share-menu ._parent=${viewer} />
@@ -98,7 +99,8 @@ export default class ShareMenu extends LitElement {
98
99
  ></pnx-copy-button>
99
100
  </div>
100
101
  </div>
101
- </pnx-tabs>`;
102
+ </pnx-tabs>
103
+ <slot name="extra"></slot>`;
102
104
  }
103
105
  }
104
106
 
@@ -22,7 +22,11 @@ export default class SemanticsFiltersButton extends LitElement {
22
22
  constructor() {
23
23
  super();
24
24
  onceParentAvailable(this).then(() => this._parent.onceMapReady?.().then(() => {
25
+ this.requestUpdate();
25
26
  this._parent?.mapStyleComposer?.addEventListener("dataoverlay-added", () => this.requestUpdate());
27
+ this._parent?.mapStyleComposer?.addEventListener("dataoverlay-changed", () => this.requestUpdate());
28
+ this._parent?.mapStyleComposer?.addEventListener("dataunderlay-added", () => this.requestUpdate());
29
+ this._parent?.mapStyleComposer?.addEventListener("dataunderlay-changed", () => this.requestUpdate());
26
30
  this._parent?.map?.addEventListener("styledata", () => this.requestUpdate());
27
31
  }));
28
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.2.0-develop-bfbbbc04",
3
+ "version": "5.2.0-develop-b08cee73",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",