mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Prebuilt module for commit c30767ed2e
This commit is contained in:
parent
2440f04047
commit
13a41cf6b6
7 changed files with 37 additions and 18 deletions
|
@ -6,6 +6,10 @@
|
|||
|
||||
- Improve `new Raster(size[, position])` constructor (#1621).
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix error in `Item#exportSVG()` when `Item#matrix` is not invertible (#1580).
|
||||
|
||||
# `0.12.1`
|
||||
|
||||
### Added
|
||||
|
|
13
dist/docs/assets/js/paper.js
vendored
13
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri Jun 7 22:30:01 2019 +0200
|
||||
* Date: Wed Oct 24 19:05:32 2018 +0900
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -14333,11 +14333,16 @@ new function() {
|
|||
var attrs = new Base(),
|
||||
trans = matrix.getTranslation();
|
||||
if (coordinates) {
|
||||
matrix = matrix._shiftless();
|
||||
var point = matrix._inverseTransform(trans);
|
||||
var point;
|
||||
if (matrix.isInvertible()) {
|
||||
matrix = matrix._shiftless();
|
||||
point = matrix._inverseTransform(trans);
|
||||
trans = null;
|
||||
} else {
|
||||
point = new Point();
|
||||
}
|
||||
attrs[center ? 'cx' : 'x'] = point.x;
|
||||
attrs[center ? 'cy' : 'y'] = point.y;
|
||||
trans = null;
|
||||
}
|
||||
if (!matrix.isIdentity()) {
|
||||
var decomposed = matrix.decompose();
|
||||
|
|
13
dist/paper-core.js
vendored
13
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri Jun 7 22:30:01 2019 +0200
|
||||
* Date: Wed Oct 24 19:05:32 2018 +0900
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -14330,11 +14330,16 @@ new function() {
|
|||
var attrs = new Base(),
|
||||
trans = matrix.getTranslation();
|
||||
if (coordinates) {
|
||||
matrix = matrix._shiftless();
|
||||
var point = matrix._inverseTransform(trans);
|
||||
var point;
|
||||
if (matrix.isInvertible()) {
|
||||
matrix = matrix._shiftless();
|
||||
point = matrix._inverseTransform(trans);
|
||||
trans = null;
|
||||
} else {
|
||||
point = new Point();
|
||||
}
|
||||
attrs[center ? 'cx' : 'x'] = point.x;
|
||||
attrs[center ? 'cy' : 'y'] = point.y;
|
||||
trans = null;
|
||||
}
|
||||
if (!matrix.isIdentity()) {
|
||||
var decomposed = matrix.decompose();
|
||||
|
|
4
dist/paper-core.min.js
vendored
4
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
13
dist/paper-full.js
vendored
13
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri Jun 7 22:30:01 2019 +0200
|
||||
* Date: Wed Oct 24 19:05:32 2018 +0900
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -14333,11 +14333,16 @@ new function() {
|
|||
var attrs = new Base(),
|
||||
trans = matrix.getTranslation();
|
||||
if (coordinates) {
|
||||
matrix = matrix._shiftless();
|
||||
var point = matrix._inverseTransform(trans);
|
||||
var point;
|
||||
if (matrix.isInvertible()) {
|
||||
matrix = matrix._shiftless();
|
||||
point = matrix._inverseTransform(trans);
|
||||
trans = null;
|
||||
} else {
|
||||
point = new Point();
|
||||
}
|
||||
attrs[center ? 'cx' : 'x'] = point.x;
|
||||
attrs[center ? 'cy' : 'y'] = point.y;
|
||||
trans = null;
|
||||
}
|
||||
if (!matrix.isIdentity()) {
|
||||
var decomposed = matrix.decompose();
|
||||
|
|
6
dist/paper-full.min.js
vendored
6
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/paper.d.ts
vendored
2
dist/paper.d.ts
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri Jun 7 22:30:01 2019 +0200
|
||||
* Date: Wed Oct 24 19:05:32 2018 +0900
|
||||
*
|
||||
* This is an auto-generated type definition.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue