aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/measurespace.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/measurespace.js b/utils/measurespace.js
index 4020926..1cd1fcc 100644
--- a/utils/measurespace.js
+++ b/utils/measurespace.js
@@ -4,6 +4,7 @@ const vec = require('./vec');
module.exports = function(space){
let min = space.loc;
+ if (min.length === 0) min = [0,0];
let data = space.data;
let disp = [data.length, 0];
for (let i = 0; i < data.length; i++){