Right hand turn on a green with a pedestrian crossing

If I’m making a right hand turn on a green (or red) light, do I need to wait for the pedestrian to clear the whole road or walk past simply the half I’m in (if they are walking away, but not towards, if towards I’d give the right of way no matter what)