mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Prebuilt module for commit 2532f205a7
This commit is contained in:
parent
ca2d8d7757
commit
f11458e319
5 changed files with 26 additions and 20 deletions
8
dist/docs/assets/js/paper.js
vendored
8
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Jul 9 01:10:55 2016 +0200
|
||||
* Date: Sat Jul 9 12:54:17 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -965,6 +965,9 @@ var Numerical = new function() {
|
|||
var abs = Math.abs,
|
||||
sqrt = Math.sqrt,
|
||||
pow = Math.pow,
|
||||
log2 = Math.log2 || function(x) {
|
||||
return Math.log(x) * Math.LOG2E;
|
||||
},
|
||||
EPSILON = 1e-12,
|
||||
MACHINE_EPSILON = 1.12e-16;
|
||||
|
||||
|
@ -998,8 +1001,7 @@ var Numerical = new function() {
|
|||
}
|
||||
|
||||
function getNormalizationFactor(x) {
|
||||
return pow(2, -Math.floor(
|
||||
Math.log(x || MACHINE_EPSILON) * Math.LOG2E + 0.5));
|
||||
return pow(2, -Math.round(log2(x || MACHINE_EPSILON)));
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
8
dist/paper-core.js
vendored
8
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Jul 9 01:10:55 2016 +0200
|
||||
* Date: Sat Jul 9 12:54:17 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -965,6 +965,9 @@ var Numerical = new function() {
|
|||
var abs = Math.abs,
|
||||
sqrt = Math.sqrt,
|
||||
pow = Math.pow,
|
||||
log2 = Math.log2 || function(x) {
|
||||
return Math.log(x) * Math.LOG2E;
|
||||
},
|
||||
EPSILON = 1e-12,
|
||||
MACHINE_EPSILON = 1.12e-16;
|
||||
|
||||
|
@ -998,8 +1001,7 @@ var Numerical = new function() {
|
|||
}
|
||||
|
||||
function getNormalizationFactor(x) {
|
||||
return pow(2, -Math.floor(
|
||||
Math.log(x || MACHINE_EPSILON) * Math.LOG2E + 0.5));
|
||||
return pow(2, -Math.round(log2(x || MACHINE_EPSILON)));
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
16
dist/paper-core.min.js
vendored
16
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
8
dist/paper-full.js
vendored
8
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Jul 9 01:10:55 2016 +0200
|
||||
* Date: Sat Jul 9 12:54:17 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -965,6 +965,9 @@ var Numerical = new function() {
|
|||
var abs = Math.abs,
|
||||
sqrt = Math.sqrt,
|
||||
pow = Math.pow,
|
||||
log2 = Math.log2 || function(x) {
|
||||
return Math.log(x) * Math.LOG2E;
|
||||
},
|
||||
EPSILON = 1e-12,
|
||||
MACHINE_EPSILON = 1.12e-16;
|
||||
|
||||
|
@ -998,8 +1001,7 @@ var Numerical = new function() {
|
|||
}
|
||||
|
||||
function getNormalizationFactor(x) {
|
||||
return pow(2, -Math.floor(
|
||||
Math.log(x || MACHINE_EPSILON) * Math.LOG2E + 0.5));
|
||||
return pow(2, -Math.round(log2(x || MACHINE_EPSILON)));
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
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