@panoramax/web-viewer 3.2.3-develop-f339ab99 → 3.2.3-develop-d0fdb647

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-f339ab99",
3
+ "version": "3.2.3-develop-d0fdb647",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -188,9 +188,9 @@ export default class ShareMenu extends LitElement {
188
188
  <pnx-copy-button ._t=${this._parent?._t} text=${shareUrl}>
189
189
  ${fa(faCopy)} ${this._parent?._t.pnx.share_page}
190
190
  </pnx-copy-button>
191
- <pnx-button @click=${window.print.bind(window)}>
191
+ ${this._parent.isWidthSmall() ? nothing : html`<pnx-button @click=${window.print.bind(window)}>
192
192
  ${fa(faPrint)} ${this._parent?._t.pnx.share_print}
193
- </pnx-button>
193
+ </pnx-button>`}
194
194
  </div>
195
195
 
196
196
  <h4>
@@ -71,7 +71,9 @@ export default class Map extends maplibregl.Map {
71
71
  touchZoomRotate: true,
72
72
  touchPitch: false,
73
73
  doubleClickZoom: false,
74
- preserveDrawingBuffer: !parent.isWidthSmall(),
74
+ canvasContextAttributes: {
75
+ preserveDrawingBuffer: !parent.isWidthSmall(),
76
+ },
75
77
  transformRequest: parent.api._getMapRequestTransform(),
76
78
  locale: parent._t.maplibre,
77
79
  hash: false,