Doors must typically swing in the direction of egress travel when serving:

Two measurements must be taken into account with regard to encroachment:

What determines the direction in which a door must swing?

Source: https://idighardware.com/2012/10/door-swing-and-encroachment/