mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prebuilt module for commit f07927a95e
This commit is contained in:
parent
c64222a74a
commit
408e2acd78
5 changed files with 33 additions and 21 deletions
14
dist/docs/assets/js/paper.js
vendored
14
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri May 27 11:37:59 2016 +0200
|
||||
* Date: Fri May 27 11:42:08 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -5130,11 +5130,15 @@ var Raster = Item.extend({
|
|||
} else if (object instanceof PathItem) {
|
||||
path = object;
|
||||
bounds = object.getBounds();
|
||||
} else if (object.width) {
|
||||
bounds = new Rectangle(object);
|
||||
} else if (object.x) {
|
||||
bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);
|
||||
} else if (typeof object === 'object') {
|
||||
if ('width' in object) {
|
||||
bounds = new Rectangle(object);
|
||||
} else if ('x' in object) {
|
||||
bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);
|
||||
}
|
||||
}
|
||||
if (!bounds)
|
||||
return null;
|
||||
var sampleSize = 32,
|
||||
width = Math.min(bounds.width, sampleSize),
|
||||
height = Math.min(bounds.height, sampleSize);
|
||||
|
|
14
dist/paper-core.js
vendored
14
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri May 27 11:37:59 2016 +0200
|
||||
* Date: Fri May 27 11:42:08 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -5130,11 +5130,15 @@ var Raster = Item.extend({
|
|||
} else if (object instanceof PathItem) {
|
||||
path = object;
|
||||
bounds = object.getBounds();
|
||||
} else if (object.width) {
|
||||
bounds = new Rectangle(object);
|
||||
} else if (object.x) {
|
||||
bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);
|
||||
} else if (typeof object === 'object') {
|
||||
if ('width' in object) {
|
||||
bounds = new Rectangle(object);
|
||||
} else if ('x' in object) {
|
||||
bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);
|
||||
}
|
||||
}
|
||||
if (!bounds)
|
||||
return null;
|
||||
var sampleSize = 32,
|
||||
width = Math.min(bounds.width, sampleSize),
|
||||
height = Math.min(bounds.height, sampleSize);
|
||||
|
|
6
dist/paper-core.min.js
vendored
6
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
14
dist/paper-full.js
vendored
14
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri May 27 11:37:59 2016 +0200
|
||||
* Date: Fri May 27 11:42:08 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -5130,11 +5130,15 @@ var Raster = Item.extend({
|
|||
} else if (object instanceof PathItem) {
|
||||
path = object;
|
||||
bounds = object.getBounds();
|
||||
} else if (object.width) {
|
||||
bounds = new Rectangle(object);
|
||||
} else if (object.x) {
|
||||
bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);
|
||||
} else if (typeof object === 'object') {
|
||||
if ('width' in object) {
|
||||
bounds = new Rectangle(object);
|
||||
} else if ('x' in object) {
|
||||
bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);
|
||||
}
|
||||
}
|
||||
if (!bounds)
|
||||
return null;
|
||||
var sampleSize = 32,
|
||||
width = Math.min(bounds.width, sampleSize),
|
||||
height = Math.min(bounds.height, sampleSize);
|
||||
|
|
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
Loading…
Reference in a new issue