mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Simplify formulas based on code review
This commit is contained in:
parent
56050dc9b7
commit
463a8dd778
@ -131,9 +131,9 @@ var effects = {
|
||||
return 1;
|
||||
}
|
||||
if (!p) {
|
||||
p = 1 * 0.3;
|
||||
p = 0.3;
|
||||
}
|
||||
if (a < Math.abs(1)) {
|
||||
if (a < 1) {
|
||||
a = 1;
|
||||
s = p / 4;
|
||||
} else {
|
||||
@ -153,9 +153,9 @@ var effects = {
|
||||
return 1;
|
||||
}
|
||||
if (!p) {
|
||||
p = 1 * 0.3;
|
||||
p = 0.3;
|
||||
}
|
||||
if (a < Math.abs(1)) {
|
||||
if (a < 1) {
|
||||
a = 1;
|
||||
s = p / 4;
|
||||
} else {
|
||||
@ -175,9 +175,9 @@ var effects = {
|
||||
return 1;
|
||||
}
|
||||
if (!p) {
|
||||
p = 0.3 * 1.5;
|
||||
p = 0.45;
|
||||
}
|
||||
if (a < Math.abs(1)) {
|
||||
if (a < 1) {
|
||||
a = 1;
|
||||
s = p / 4;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user