hart-estate-widget 0.0.27 → 0.0.28

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.
@@ -111,8 +111,8 @@ const setPanoramaLinks = (json, currentRoom, center, panorama, panoramas) => {
111
111
  return room_id === connectedRoom.ID;
112
112
  });
113
113
  if (!connectedPanorama) return;
114
- const locationX = Location.X - center[0];
115
- const locationY = -(Location.Y - center[1]);
114
+ const locationX = Location.Y - center[1];
115
+ const locationY = Location.X - center[0];
116
116
  const defaultScale = 20;
117
117
  const maxScale = 50;
118
118
  const defaultLength = 120;
@@ -222,6 +222,7 @@ const PanoramaTab = _ref3 => {
222
222
  });
223
223
  newViewer.add(panorama);
224
224
  });
225
+ newViewer.scene.rotation.y = Math.PI / 2;
225
226
  setViewer(newViewer);
226
227
  initPanorama();
227
228
  }, [panoramas]);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "HART Estate widget",
4
4
  "author": "HART",
5
5
  "keywords": [],
6
- "version": "0.0.27",
6
+ "version": "0.0.28",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "module": "build/index.js",