Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getBBox(data: Point[]) {
const xs = [];
const ys = [];
for (let i = 0; i < data.length; i++) {
xs.push(data[i].x);
ys.push(data[i].y);
}
const xRange = _.getRange(xs);
const yRange = _.getRange(ys);
return BBox.fromRange(xRange.min, yRange.min, xRange.max, yRange.max);
}
}