# HG changeset patch # User hertzhaft # Date 1476374894 -7200 # Node ID dc63c24c59be3fbddccfc7cbd8ce3eec918a1b0f # Parent c883ee76e1a79c4f536b98806cd53e4b91fc86fb vector plugin: new handle type (circle) diff -r c883ee76e1a7 -r dc63c24c59be webapp/src/main/webapp/jquery/jquery.digilib.vector.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.vector.js Thu Oct 13 17:33:49 2016 +0200 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.vector.js Thu Oct 13 18:08:14 2016 +0200 @@ -499,7 +499,14 @@ var $h = $(svgElement('rect', attr)); $h.attr({'width': hs, 'height': hs}); $h.moveTo = function (p) { - this.attr({'x': p.x-d, 'y': p.y-d }); + this.attr({'x': p.x-d, 'y': p.y-d}); + }; + return $h; + }, + 'circle' : function () { + var $h = $(svgElement('circle', attr)); + $h.moveTo = function (p) { + this.attr({'cx': p.x, 'cy': p.y, 'r': d}); }; return $h; },