Absolute coord position #snippet
calcAbspos = (d) => Math.floor(Math.sqrt(d.row ** 2 + d.col ** 2)); data[i].abspos = calcAbspos(data[i]);