summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-11 14:49:17 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:06:00 +0200
commitcbf8eb9cbf2f4082cb1a83955d435ebcb73be3ab (patch)
treedb58a2d9c363d3256270eb705b5ae13d51836c71 /src/util
parentaa448cb5c3e2e372dad1c79ffc32ff32144b4140 (diff)
Center datacenter on site load
Diffstat (limited to 'src/util')
-rw-r--r--src/util/tile-calculations.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/util/tile-calculations.js b/src/util/tile-calculations.js
index 260f28e6..31b5d8aa 100644
--- a/src/util/tile-calculations.js
+++ b/src/util/tile-calculations.js
@@ -239,13 +239,5 @@ export function calculateRoomListBounds(rooms) {
y: min.y + (max.y - min.y) / 2.0
};
- return {
- min,
- center,
- max
- };
-}
-
-export function calculateRoomBounds(room) {
- return calculateRoomListBounds([room]);
+ return {min, center, max};
}