svg: add transform util method for rotation