Prebuilt module for commit 9aa29e0afc

This commit is contained in:
Paper.js Bot 2016-05-27 09:40:22 +00:00
parent 387b7a3c9a
commit c64222a74a
5 changed files with 80 additions and 74 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun May 22 21:23:46 2016 +0200
* Date: Fri May 27 11:37:59 2016 +0200
*
***
*
@ -1151,19 +1151,20 @@ var Point = Base.extend({
if (this.__read)
this.__read = arg0 === null ? 1 : 0;
} else {
if (Array.isArray(arg0)) {
this.x = arg0[0];
this.y = arg0.length > 1 ? arg0[1] : arg0[0];
} else if (arg0.x != null) {
this.x = arg0.x;
this.y = arg0.y;
} else if (arg0.width != null) {
this.x = arg0.width;
this.y = arg0.height;
} else if (arg0.angle != null) {
this.x = arg0.length;
var obj = type === 'string' ? arg0.split(/[\s,]+/) || [] : arg0;
if (Array.isArray(obj)) {
this.x = obj[0];
this.y = obj.length > 1 ? obj[1] : obj[0];
} else if ('x' in obj) {
this.x = obj.x;
this.y = obj.y;
} else if ('width' in obj) {
this.x = obj.width;
this.y = obj.height;
} else if ('angle' in obj) {
this.x = obj.length;
this.y = 0;
this.setAngle(arg0.angle);
this.setAngle(obj.angle);
} else {
this.x = this.y = 0;
if (this.__read)
@ -1495,15 +1496,16 @@ var Size = Base.extend({
if (this.__read)
this.__read = arg0 === null ? 1 : 0;
} else {
if (Array.isArray(arg0)) {
this.width = arg0[0];
this.height = arg0.length > 1 ? arg0[1] : arg0[0];
} else if (arg0.width != null) {
this.width = arg0.width;
this.height = arg0.height;
} else if (arg0.x != null) {
this.width = arg0.x;
this.height = arg0.y;
var obj = type === 'string' ? arg0.split(/[\s,]+/) || [] : arg0;
if (Array.isArray(obj)) {
this.width = obj[0];
this.height = obj.length > 1 ? obj[1] : obj[0];
} else if ('width' in obj) {
this.width = obj.width;
this.height = obj.height;
} else if ('x' in obj) {
this.width = obj.x;
this.height = obj.y;
} else {
this.width = this.height = 0;
if (this.__read)

46
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun May 22 21:23:46 2016 +0200
* Date: Fri May 27 11:37:59 2016 +0200
*
***
*
@ -1151,19 +1151,20 @@ var Point = Base.extend({
if (this.__read)
this.__read = arg0 === null ? 1 : 0;
} else {
if (Array.isArray(arg0)) {
this.x = arg0[0];
this.y = arg0.length > 1 ? arg0[1] : arg0[0];
} else if (arg0.x != null) {
this.x = arg0.x;
this.y = arg0.y;
} else if (arg0.width != null) {
this.x = arg0.width;
this.y = arg0.height;
} else if (arg0.angle != null) {
this.x = arg0.length;
var obj = type === 'string' ? arg0.split(/[\s,]+/) || [] : arg0;
if (Array.isArray(obj)) {
this.x = obj[0];
this.y = obj.length > 1 ? obj[1] : obj[0];
} else if ('x' in obj) {
this.x = obj.x;
this.y = obj.y;
} else if ('width' in obj) {
this.x = obj.width;
this.y = obj.height;
} else if ('angle' in obj) {
this.x = obj.length;
this.y = 0;
this.setAngle(arg0.angle);
this.setAngle(obj.angle);
} else {
this.x = this.y = 0;
if (this.__read)
@ -1495,15 +1496,16 @@ var Size = Base.extend({
if (this.__read)
this.__read = arg0 === null ? 1 : 0;
} else {
if (Array.isArray(arg0)) {
this.width = arg0[0];
this.height = arg0.length > 1 ? arg0[1] : arg0[0];
} else if (arg0.width != null) {
this.width = arg0.width;
this.height = arg0.height;
} else if (arg0.x != null) {
this.width = arg0.x;
this.height = arg0.y;
var obj = type === 'string' ? arg0.split(/[\s,]+/) || [] : arg0;
if (Array.isArray(obj)) {
this.width = obj[0];
this.height = obj.length > 1 ? obj[1] : obj[0];
} else if ('width' in obj) {
this.width = obj.width;
this.height = obj.height;
} else if ('x' in obj) {
this.width = obj.x;
this.height = obj.y;
} else {
this.width = this.height = 0;
if (this.__read)

File diff suppressed because one or more lines are too long

46
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sun May 22 21:23:46 2016 +0200
* Date: Fri May 27 11:37:59 2016 +0200
*
***
*
@ -1151,19 +1151,20 @@ var Point = Base.extend({
if (this.__read)
this.__read = arg0 === null ? 1 : 0;
} else {
if (Array.isArray(arg0)) {
this.x = arg0[0];
this.y = arg0.length > 1 ? arg0[1] : arg0[0];
} else if (arg0.x != null) {
this.x = arg0.x;
this.y = arg0.y;
} else if (arg0.width != null) {
this.x = arg0.width;
this.y = arg0.height;
} else if (arg0.angle != null) {
this.x = arg0.length;
var obj = type === 'string' ? arg0.split(/[\s,]+/) || [] : arg0;
if (Array.isArray(obj)) {
this.x = obj[0];
this.y = obj.length > 1 ? obj[1] : obj[0];
} else if ('x' in obj) {
this.x = obj.x;
this.y = obj.y;
} else if ('width' in obj) {
this.x = obj.width;
this.y = obj.height;
} else if ('angle' in obj) {
this.x = obj.length;
this.y = 0;
this.setAngle(arg0.angle);
this.setAngle(obj.angle);
} else {
this.x = this.y = 0;
if (this.__read)
@ -1495,15 +1496,16 @@ var Size = Base.extend({
if (this.__read)
this.__read = arg0 === null ? 1 : 0;
} else {
if (Array.isArray(arg0)) {
this.width = arg0[0];
this.height = arg0.length > 1 ? arg0[1] : arg0[0];
} else if (arg0.width != null) {
this.width = arg0.width;
this.height = arg0.height;
} else if (arg0.x != null) {
this.width = arg0.x;
this.height = arg0.y;
var obj = type === 'string' ? arg0.split(/[\s,]+/) || [] : arg0;
if (Array.isArray(obj)) {
this.width = obj[0];
this.height = obj.length > 1 ? obj[1] : obj[0];
} else if ('width' in obj) {
this.width = obj.width;
this.height = obj.height;
} else if ('x' in obj) {
this.width = obj.x;
this.height = obj.y;
} else {
this.width = this.height = 0;
if (this.__read)

File diff suppressed because one or more lines are too long