support directionality. update the example index.html. update the documentation.