# HG changeset patch # User ymh # Date 1433939232 -7200 # Node ID fd2b5a7ec356132ffd5b5115c9663cd46f37dfa9 # Parent 884b35feb04be845467bd889996edd69d7b713cc Correct triangle display with images diff -r 884b35feb04b -r fd2b5a7ec356 client/js/renderer/shapebuilder.js --- a/client/js/renderer/shapebuilder.js Wed Jun 10 12:46:28 2015 +0200 +++ b/client/js/renderer/shapebuilder.js Wed Jun 10 14:27:12 2015 +0200 @@ -76,7 +76,10 @@ return new paper.Path.RegularPolygon([0,0], 3, 1); }, getImageShape: function(center, radius) { - return new paper.Path.RegularPolygon(center, 3, radius); + var shape = new paper.Path.RegularPolygon([0,0], 3, 1); + shape.scale(radius); + shape.translate(center); + return shape; } }, "svg": function(path){