mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Add dontNotify parameter to _transformPoint(), required sometimes for LinkedPoints.
This commit is contained in:
parent
9384fb4fb5
commit
f92434ab54
1 changed files with 3 additions and 2 deletions
|
@ -301,14 +301,15 @@ var Matrix = this.Matrix = Base.extend({
|
||||||
* A faster version of transform that only takes one point and does not
|
* A faster version of transform that only takes one point and does not
|
||||||
* attempt to convert it.
|
* attempt to convert it.
|
||||||
*/
|
*/
|
||||||
_transformPoint: function(point, dest) {
|
_transformPoint: function(point, dest, dontNotify) {
|
||||||
var x = point.x,
|
var x = point.x,
|
||||||
y = point.y;
|
y = point.y;
|
||||||
if (!dest)
|
if (!dest)
|
||||||
dest = new Point(Point.dont);
|
dest = new Point(Point.dont);
|
||||||
return dest.set(
|
return dest.set(
|
||||||
x * this._m00 + y * this._m01 + this._m02,
|
x * this._m00 + y * this._m01 + this._m02,
|
||||||
x * this._m10 + y * this._m11 + this._m12
|
x * this._m10 + y * this._m11 + this._m12,
|
||||||
|
dontNotify
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue