Prebuilt module for commit e779d24a6d

This commit is contained in:
Paper.js Bot 2019-06-22 16:45:59 +00:00
parent 8ec8d1f446
commit 84d412bc82
6 changed files with 36 additions and 24 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Jun 22 18:21:47 2019 +0200
* Date: Sat Jun 22 18:42:19 2019 +0200
*
***
*
@ -2667,9 +2667,13 @@ var Line = Base.extend({
vx -= px;
vy -= py;
}
return vx === 0 ? vy > 0 ? x - px : px - x
: vy === 0 ? vx < 0 ? y - py : py - y
: ((x-px) * vy - (y-py) * vx) / Math.sqrt(vx * vx + vy * vy);
return vx === 0 ? (vy > 0 ? x - px : px - x)
: vy === 0 ? (vx < 0 ? y - py : py - y)
: ((x - px) * vy - (y - py) * vx) / (
vy > vx
? vy * Math.sqrt(1 + (vx * vx) / (vy * vy))
: vx * Math.sqrt(1 + (vy * vy) / (vx * vx))
);
},
getDistance: function(px, py, vx, vy, x, y, asVector) {

12
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Jun 22 18:21:47 2019 +0200
* Date: Sat Jun 22 18:42:19 2019 +0200
*
***
*
@ -2664,9 +2664,13 @@ var Line = Base.extend({
vx -= px;
vy -= py;
}
return vx === 0 ? vy > 0 ? x - px : px - x
: vy === 0 ? vx < 0 ? y - py : py - y
: ((x-px) * vy - (y-py) * vx) / Math.sqrt(vx * vx + vy * vy);
return vx === 0 ? (vy > 0 ? x - px : px - x)
: vy === 0 ? (vx < 0 ? y - py : py - y)
: ((x - px) * vy - (y - py) * vx) / (
vy > vx
? vy * Math.sqrt(1 + (vx * vx) / (vy * vy))
: vx * Math.sqrt(1 + (vy * vy) / (vx * vx))
);
},
getDistance: function(px, py, vx, vy, x, y, asVector) {

File diff suppressed because one or more lines are too long

12
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Jun 22 18:21:47 2019 +0200
* Date: Sat Jun 22 18:42:19 2019 +0200
*
***
*
@ -2667,9 +2667,13 @@ var Line = Base.extend({
vx -= px;
vy -= py;
}
return vx === 0 ? vy > 0 ? x - px : px - x
: vy === 0 ? vx < 0 ? y - py : py - y
: ((x-px) * vy - (y-py) * vx) / Math.sqrt(vx * vx + vy * vy);
return vx === 0 ? (vy > 0 ? x - px : px - x)
: vy === 0 ? (vx < 0 ? y - py : py - y)
: ((x - px) * vy - (y - py) * vx) / (
vy > vx
? vy * Math.sqrt(1 + (vx * vx) / (vy * vy))
: vx * Math.sqrt(1 + (vy * vy) / (vx * vx))
);
},
getDistance: function(px, py, vx, vy, x, y, asVector) {

File diff suppressed because one or more lines are too long

2
dist/paper.d.ts vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Sat Jun 22 18:21:47 2019 +0200
* Date: Sat Jun 22 18:42:19 2019 +0200
*
* This is an auto-generated type definition.
*/