mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
commit
b828c7733e
2 changed files with 4 additions and 8 deletions
|
@ -15,9 +15,6 @@ addons:
|
|||
- libssl-dev
|
||||
- libjpeg62-dev
|
||||
- libgif-dev
|
||||
before_script:
|
||||
- npm install -g bower
|
||||
- bower install
|
||||
script:
|
||||
- npm run lint
|
||||
- gulp minify
|
||||
|
|
|
@ -568,13 +568,12 @@ var Matrix = Base.extend(/** @lends Matrix# */{
|
|||
|
||||
_transformCoordinates: function(src, dst, count) {
|
||||
var i = 0,
|
||||
j = 0,
|
||||
max = 2 * count;
|
||||
while (i < max) {
|
||||
var x = src[i++],
|
||||
y = src[i++];
|
||||
dst[j++] = x * this._a + y * this._b + this._tx;
|
||||
dst[j++] = x * this._c + y * this._d + this._ty;
|
||||
var x = src[i],
|
||||
y = src[i+1];
|
||||
dst[i++] = x * this._a + y * this._b + this._tx;
|
||||
dst[i++] = x * this._c + y * this._d + this._ty;
|
||||
}
|
||||
return dst;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue