@panoramax/web-viewer 3.2.3-develop-f339ab99 → 3.2.3-develop-72318485
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/CHANGELOG.md +1 -0
- package/build/index.js +5 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/menus/Share.js +2 -2
- package/src/components/ui/Map.js +3 -1
- package/src/utils/API.js +4 -3
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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>
|
package/src/components/ui/Map.js
CHANGED
|
@@ -71,7 +71,9 @@ export default class Map extends maplibregl.Map {
|
|
|
71
71
|
touchZoomRotate: true,
|
|
72
72
|
touchPitch: false,
|
|
73
73
|
doubleClickZoom: false,
|
|
74
|
-
|
|
74
|
+
canvasContextAttributes: {
|
|
75
|
+
preserveDrawingBuffer: !parent.isWidthSmall(),
|
|
76
|
+
},
|
|
75
77
|
transformRequest: parent.api._getMapRequestTransform(),
|
|
76
78
|
locale: parent._t.maplibre,
|
|
77
79
|
hash: false,
|
package/src/utils/API.js
CHANGED
|
@@ -307,12 +307,13 @@ export default class API {
|
|
|
307
307
|
/**
|
|
308
308
|
* Get the defaults fetch options to pass during API calls
|
|
309
309
|
* @memberOf Panoramax.utils.API#
|
|
310
|
+
* @param {boolean} [noTimeout=false] Set to true to avoid default timeout
|
|
310
311
|
* @private
|
|
311
312
|
* @returns {object} The fetch options
|
|
312
313
|
*/
|
|
313
|
-
_getFetchOptions() {
|
|
314
|
+
_getFetchOptions(noTimeout=false) {
|
|
314
315
|
return Object.assign({
|
|
315
|
-
signal: AbortSignal.timeout(15000)
|
|
316
|
+
signal: noTimeout ? undefined : AbortSignal.timeout(15000)
|
|
316
317
|
}, this._fetchOpts);
|
|
317
318
|
}
|
|
318
319
|
|
|
@@ -357,7 +358,7 @@ export default class API {
|
|
|
357
358
|
API.isIdValid(seqId);
|
|
358
359
|
return fetch(
|
|
359
360
|
next || `${this._endpoints.collections}/${seqId}/items`,
|
|
360
|
-
this._getFetchOptions()
|
|
361
|
+
this._getFetchOptions(true)
|
|
361
362
|
)
|
|
362
363
|
.then(res => res.json())
|
|
363
364
|
.then(res => {
|