added basis, generalized centerXY
Merge pull request #54 from diagrams/basis

Added `basis`, simplified `onBasis`