IsPointInside fix for transformed paths

This commit is contained in:
Tomas Alabes 2013-06-02 14:50:59 -03:00
parent e5048b7f81
commit 5ae208676c
3 changed files with 8 additions and 2 deletions

4
raphael-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -3641,6 +3641,9 @@
\*/
elproto.isPointInside = function (x, y) {
var rp = this.realPath = this.realPath || getPath[this.type](this);
if (this.attr('transform') && this.attr('transform').length) {
rp = R.transformPath(rp, this.attr('transform'));
}
return R.isPointInsidePath(rp, x, y);
};
/*\

View File

@ -4020,6 +4020,9 @@
\*/
elproto.isPointInside = function (x, y) {
var rp = this.realPath = this.realPath || getPath[this.type](this);
if (this.attr('transform') && this.attr('transform').length) {
rp = R.transformPath(rp, this.attr('transform'));
}
return R.isPointInsidePath(rp, x, y);
};
/*\