IsPointInside fix for transformed paths
This commit is contained in:
parent
e5048b7f81
commit
5ae208676c
File diff suppressed because one or more lines are too long
|
|
@ -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);
|
||||
};
|
||||
/*\
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
/*\
|
||||
|
|
|
|||
Loading…
Reference in New Issue