mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Prebuilt module for commit b40efbf6db
This commit is contained in:
parent
e3045dc488
commit
a295df7120
5 changed files with 10 additions and 10 deletions
4
dist/docs/assets/js/paper.js
vendored
4
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Feb 22 17:29:23 2017 +0100
|
||||
* Date: Wed Feb 22 17:41:51 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2601,7 +2601,7 @@ var Line = Base.extend({
|
|||
var v2x = x - px,
|
||||
v2y = y - py,
|
||||
ccw = v2x * vy - v2y * vx;
|
||||
if (ccw === 0 && !isInfinite) {
|
||||
if (!isInfinite && Numerical.isZero(ccw)) {
|
||||
ccw = (v2x * vx + v2x * vx) / (vx * vx + vy * vy);
|
||||
if (ccw >= 0 && ccw <= 1)
|
||||
ccw = 0;
|
||||
|
|
4
dist/paper-core.js
vendored
4
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Feb 22 17:29:23 2017 +0100
|
||||
* Date: Wed Feb 22 17:41:51 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2601,7 +2601,7 @@ var Line = Base.extend({
|
|||
var v2x = x - px,
|
||||
v2y = y - py,
|
||||
ccw = v2x * vy - v2y * vx;
|
||||
if (ccw === 0 && !isInfinite) {
|
||||
if (!isInfinite && Numerical.isZero(ccw)) {
|
||||
ccw = (v2x * vx + v2x * vx) / (vx * vx + vy * vy);
|
||||
if (ccw >= 0 && ccw <= 1)
|
||||
ccw = 0;
|
||||
|
|
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
4
dist/paper-full.js
vendored
4
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Feb 22 17:29:23 2017 +0100
|
||||
* Date: Wed Feb 22 17:41:51 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -2601,7 +2601,7 @@ var Line = Base.extend({
|
|||
var v2x = x - px,
|
||||
v2y = y - py,
|
||||
ccw = v2x * vy - v2y * vx;
|
||||
if (ccw === 0 && !isInfinite) {
|
||||
if (!isInfinite && Numerical.isZero(ccw)) {
|
||||
ccw = (v2x * vx + v2x * vx) / (vx * vx + vy * vy);
|
||||
if (ccw >= 0 && ccw <= 1)
|
||||
ccw = 0;
|
||||
|
|
4
dist/paper-full.min.js
vendored
4
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue