isPointInside incorrectly caches the path used to calculate its value. By @lvanderbijl
This commit is contained in:
parent
ad15a1c9b0
commit
a96fd3b222
File diff suppressed because one or more lines are too long
|
|
@ -3652,7 +3652,7 @@
|
||||||
= (boolean) `true` if point inside the shape
|
= (boolean) `true` if point inside the shape
|
||||||
\*/
|
\*/
|
||||||
elproto.isPointInside = function (x, y) {
|
elproto.isPointInside = function (x, y) {
|
||||||
var rp = this.realPath = this.realPath || getPath[this.type](this);
|
var rp = this.realPath = getPath[this.type](this);
|
||||||
if (this.attr('transform') && this.attr('transform').length) {
|
if (this.attr('transform') && this.attr('transform').length) {
|
||||||
rp = R.transformPath(rp, this.attr('transform'));
|
rp = R.transformPath(rp, this.attr('transform'));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4031,7 +4031,7 @@
|
||||||
= (boolean) `true` if point inside the shape
|
= (boolean) `true` if point inside the shape
|
||||||
\*/
|
\*/
|
||||||
elproto.isPointInside = function (x, y) {
|
elproto.isPointInside = function (x, y) {
|
||||||
var rp = this.realPath = this.realPath || getPath[this.type](this);
|
var rp = this.realPath = getPath[this.type](this);
|
||||||
if (this.attr('transform') && this.attr('transform').length) {
|
if (this.attr('transform') && this.attr('transform').length) {
|
||||||
rp = R.transformPath(rp, this.attr('transform'));
|
rp = R.transformPath(rp, this.attr('transform'));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue