points -> pointList

This commit is contained in:
Micho 2013-05-19 09:55:44 +02:00
parent 564f78c2c6
commit bcb8daffcf
1 changed files with 4 additions and 4 deletions

View File

@ -105,9 +105,9 @@ function renderTime() {
}
function updateData() {
var points = [];
var pointList = [];
data.points.forEach(function (point, index) {
points[index] = [];
pointList[index] = [];
})
data.matrix.forEach(function (times, index) {
@ -128,10 +128,10 @@ function updateData() {
}
client.point = point;
}
if (valid(client.point)) points[client.point].push(index);
if (valid(client.point)) pointList[client.point].push(index);
});
points.forEach(function (clientList, pointIndex) {
pointList.forEach(function (clientList, pointIndex) {
var point = data.points[pointIndex];
var x0 = Math.round(point.x*width);
var y0 = Math.round(point.y*height);