mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prebuilt module for commit e779d24a6d
This commit is contained in:
parent
8ec8d1f446
commit
84d412bc82
6 changed files with 36 additions and 24 deletions
12
dist/docs/assets/js/paper.js
vendored
12
dist/docs/assets/js/paper.js
vendored
|
@ -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
12
dist/paper-core.js
vendored
|
@ -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) {
|
||||
|
|
10
dist/paper-core.min.js
vendored
10
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
12
dist/paper-full.js
vendored
12
dist/paper-full.js
vendored
|
@ -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-full.min.js
vendored
12
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: Sat Jun 22 18:21:47 2019 +0200
|
||||
* Date: Sat Jun 22 18:42:19 2019 +0200
|
||||
*
|
||||
* This is an auto-generated type definition.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue