translated Shape.js