I allow room for an escutcheon, the shutoff and about 1/4" between.
You can have them farther out too.
For a quick measurement, I put the cutter on the pipe and put my finger between the wall and the handle of the cutter.
I have no idea what distance that is, but it works for me.
The drain is determined by location of the drain on the sink or lav.