Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: packages/charted/lib/core/scales/log_scale.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: packages/charted/lib/core/scales/log_scale.dart
diff --git a/packages/charted/lib/core/scales/log_scale.dart b/packages/charted/lib/core/scales/log_scale.dart
index 20fc3a4fc29d212eeb7db417fe5e6e079ae255ad..ae9d5b049530fe7e1a44a11b158a2c913a62f2c0 100644
--- a/packages/charted/lib/core/scales/log_scale.dart
+++ b/packages/charted/lib/core/scales/log_scale.dart
@@ -21,9 +21,7 @@ class LogScale implements Scale {
static const defaultBase = 10;
static const defaultDomain = const [1, 10];
static final negativeNumbersRoundFunctionsPair =
- new RoundingFunctions(
- (x) => -((-x).floor()),
- (x) => -((-x).ceil()));
+ new RoundingFunctions((x) => -((-x).floor()), (x) => -((-x).ceil()));
final LinearScale _linear;
@@ -43,8 +41,9 @@ class LogScale implements Scale {
_nice = source._nice,
_ticksCount = source._ticksCount;
- num _log(x) => (_positive ?
- math.log(x < 0 ? 0 : x) : -math.log(x > 0 ? 0 : -x)) / math.log(base);
+ num _log(x) =>
+ (_positive ? math.log(x < 0 ? 0 : x) : -math.log(x > 0 ? 0 : -x)) /
+ math.log(base);
num _pow(x) => _positive ? math.pow(base, x) : -math.pow(base, -x);
« no previous file with comments | « packages/charted/lib/core/scales/linear_scale.dart ('k') | packages/charted/lib/core/scales/ordinal_scale.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698