Prebuilt module for commit 2532f205a7

This commit is contained in:
Paper.js Bot 2016-07-09 10:57:15 +00:00
parent ca2d8d7757
commit f11458e319
5 changed files with 26 additions and 20 deletions

View file

@ -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
View file

@ -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 {

File diff suppressed because one or more lines are too long

8
dist/paper-full.js vendored
View file

@ -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 {

File diff suppressed because one or more lines are too long