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.
|
115
|
-
const locationY =
|
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]);
|