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

Unified Diff: tracing/tracing/ui/tracks/chart_series_y_axis.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 months 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: tracing/tracing/ui/tracks/chart_series_y_axis.html
diff --git a/tracing/tracing/ui/tracks/chart_series_y_axis.html b/tracing/tracing/ui/tracks/chart_series_y_axis.html
index 2c8d52d12410c7dcff6a87dd52996d42ec9dd170..84d31348f648421a9888c14cc5bfd72c0dfb366b 100644
--- a/tracing/tracing/ui/tracks/chart_series_y_axis.html
+++ b/tracing/tracing/ui/tracks/chart_series_y_axis.html
@@ -6,7 +6,7 @@ found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/color_scheme.html">
-<link rel="import" href="/tracing/base/range.html">
+<link rel="import" href="/tracing/base/math/range.html">
<link rel="import" href="/tracing/base/unit.html">
<script>
@@ -27,7 +27,7 @@ tr.exportTo('tr.ui.tracks', function() {
*/
function ChartSeriesYAxis(opt_min, opt_max) {
this.guid_ = tr.b.GUID.allocateSimple();
- this.bounds = new tr.b.Range();
+ this.bounds = new tr.b.math.Range();
if (opt_min !== undefined)
this.bounds.addValue(opt_min);
if (opt_max !== undefined)
@@ -63,7 +63,7 @@ tr.exportTo('tr.ui.tracks', function() {
* argument flags.
*/
autoSetFromSeries: function(series, opt_config) {
- var range = new tr.b.Range();
+ var range = new tr.b.math.Range();
series.forEach(function(s) {
range.addRange(s.range);
}, this);
@@ -139,7 +139,7 @@ tr.exportTo('tr.ui.tracks', function() {
var idealMajorMarkHeightWorld =
transform.vectorToWorldDistance(idealMajorMarkHeightPx);
- return tr.b.preferredNumberLargerThanMin(idealMajorMarkHeightWorld);
+ return tr.b.math.preferredNumberLargerThanMin(idealMajorMarkHeightWorld);
},
draw: function(ctx, transform, showYAxisLabels, showYGridLines) {
« no previous file with comments | « tracing/tracing/ui/tracks/chart_series.html ('k') | tracing/tracing/ui/tracks/chart_series_y_axis_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698