Math.round(
              ((mousePosition.x - state.pan.x) / state.zoom -
                cell.get('size').width / 2) /
                gridsize
            ) * gridsize,