Rotation functionality & Event Position Issues with Raphael Library 2.1.0

63 views
Skip to first unread message

Rajeev Singh

unread,
Dec 11, 2012, 8:00:27 AM12/11/12
to raph...@googlegroups.com
We have created a needle and rotate it on the basis of real time data; this works fine with Raphael Library Version 1.5.2. 
This rotation functionality stopped working when we updated the reference to the latest Raphael Library version 2.1.0. 
Running the example code at http://jsfiddle.net/BS6j6/1/ works with Raphael 1.5.2, but the rotation does not work with Raphael 2.0.

Also, When we make use of Raphael Library Version 2.1.0, it returns wrong position of event(on IE Browser), 
While with Raphael Library Version 1.5.2, its working fine on every browser. 
Running the example code at http://jsfiddle.net/BS6j6/820/ for Raphael 1.5.2 and Raphael 2.0 shows the difference.

Are these known problems with Raphael 2?
Does anyone have a fix for these problems?

chasbeen

unread,
Dec 11, 2012, 6:12:19 PM12/11/12
to raph...@googlegroups.com
    var triangle = paper.path("M210 200L190 200L200 100Z").attr({fill:"#000"});

    var circle = paper.circle(200,200,5).attr({fill:"#f00"});
    // to rotate with center point 200,200, works fine
    triangle.rotate(80,200,200);
triangle.animate({transform:"r100,200,200"},1000,'<>');
Reply all
Reply to author
Forward
0 new messages