update for new Direction type

This branch accompanies https://github.com/diagrams/diagrams-lib/pull/186 and should be merged at the same time.