DmitryBaranovskiy/raphael — Issue #436: Matrix.y defect on rotated elements
Author: phogberg
Created: 2011-10-29 20:43:54+00:00
State: open

It seems that Matrix.y is defect in Raphael 2.0.0 when applied to rotated matrices. Here's an example:

var paper = Raphael(0, 0, 300, 300);
var el = paper.rect(100, 100, 100, 100);
el.rotate(45);
var x = el.matrix.x(0, 0), y = el.matrix.y(0, 0);
var t = paper.text(150, 290, "x = " + x + ", y = "+ y);
var el = paper.rect(x, y, 100, 100).attr({stroke:"red"});

http://jsfiddle.net/gq6HT/

y should contain 150 in above example code. If element is not rotated Matrix.y works fine.