From 246a4582eda90825a6beaaa963c8d3772c6cf8dc Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Thu, 16 Jul 2020 13:41:44 -0400 Subject: measurespace has default [0,0] to give useful answer w/o loc --- utils/measurespace.js | 1 + 1 file changed, 1 insertion(+) (limited to 'utils') 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++){ -- cgit