@panoramax/web-viewer 3.2.3-develop-00ee44cd → 3.2.3-develop-33cd154c

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-00ee44cd",
3
+ "version": "3.2.3-develop-33cd154c",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -89,17 +89,17 @@
89
89
  "workbox-webpack-plugin": "^6.5.4"
90
90
  },
91
91
  "dependencies": {
92
- "@fortawesome/fontawesome-svg-core": "^6.6.0",
93
- "@fortawesome/free-regular-svg-icons": "^6.6.0",
94
- "@fortawesome/free-solid-svg-icons": "^6.6.0",
95
- "@photo-sphere-viewer/core": "5.11.0-beta.1",
96
- "@photo-sphere-viewer/equirectangular-tiles-adapter": "5.11.0-beta.1",
97
- "@photo-sphere-viewer/gallery-plugin": "5.11.0-beta.1",
98
- "@photo-sphere-viewer/markers-plugin": "5.11.0-beta.1",
99
- "@photo-sphere-viewer/virtual-tour-plugin": "5.11.0-beta.1",
92
+ "@fortawesome/fontawesome-svg-core": "^6.7.2",
93
+ "@fortawesome/free-regular-svg-icons": "^6.7.2",
94
+ "@fortawesome/free-solid-svg-icons": "^6.7.2",
95
+ "@photo-sphere-viewer/core": "5.12.1",
96
+ "@photo-sphere-viewer/equirectangular-tiles-adapter": "5.12.1",
97
+ "@photo-sphere-viewer/gallery-plugin": "5.12.1",
98
+ "@photo-sphere-viewer/markers-plugin": "5.12.1",
99
+ "@photo-sphere-viewer/virtual-tour-plugin": "5.12.1",
100
100
  "lit": "^3.2.1",
101
- "maplibre-gl": "^4.7.1",
102
- "pmtiles": "^3.2.0",
101
+ "maplibre-gl": "^5.2.0",
102
+ "pmtiles": "^4.3.0",
103
103
  "query-selector-shadow-dom": "^1.0.1"
104
104
  },
105
105
  "eslintConfig": {
@@ -205,8 +205,9 @@ export default class Photo extends PSViewer {
205
205
  this.setOption("maxFov", Math.min(toNode.horizontalFov * 3/4, 90));
206
206
 
207
207
  const centerNoAnim = {
208
+ showLoader: false,
209
+ effect: "none",
208
210
  speed: 0,
209
- fadeIn: false,
210
211
  rotation: false,
211
212
  rotateTo: { pitch: 0, yaw: 0 },
212
213
  zoomTo: PSV_DEFAULT_ZOOM
@@ -228,7 +229,7 @@ export default class Photo extends PSViewer {
228
229
  else {
229
230
  nodeTransition = {
230
231
  speed: animationDuration,
231
- fadeIn: following && animated,
232
+ effect: following && animated ? "fade" : "none",
232
233
  rotation: following && sameSequence && animated,
233
234
  rotateTo: this.getPosition()
234
235
  };
@@ -247,7 +248,7 @@ export default class Photo extends PSViewer {
247
248
  const notTooMuchRotation = Math.abs(fromNodeHeading - toNodeHeading) <= Math.PI / 4;
248
249
  nodeTransition = {
249
250
  speed: animationDuration,
250
- fadeIn: following && notTooMuchRotation && animated,
251
+ effect: following && notTooMuchRotation && animated ? "fade" : "none",
251
252
  rotation: following && notTooMuchRotation && animated,
252
253
  rotateTo: keepZoomPos ? this.getPosition() : { pitch: 0, yaw: 0 },
253
254
  zoomTo: keepZoomPos ? this.getZoomLevel() : PSV_DEFAULT_ZOOM,
@@ -259,7 +260,7 @@ export default class Photo extends PSViewer {
259
260
  }
260
261
  }
261
262
 
262
- if(nodeTransition.fadeIn && nodeTransition.speed >= 150) {
263
+ if(nodeTransition.effect === "fade" && nodeTransition.speed >= 150) {
263
264
  setTimeout(this._clearArrows, nodeTransition.speed-100);
264
265
  }
265
266
  else {