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

Unified Diff: tracing/tracing/ui/base/scatter_chart.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
« no previous file with comments | « tracing/tracing/ui/base/quad_stack_view.html ('k') | tracing/tracing/ui/base/scatter_chart_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/scatter_chart.html
diff --git a/tracing/tracing/ui/base/scatter_chart.html b/tracing/tracing/ui/base/scatter_chart.html
index ee94887a951ef8ed73c70380062031b4ddd1742e..784d2a6a1b5f168b5f041e02e4ce825b3ba3f6c0 100644
--- a/tracing/tracing/ui/base/scatter_chart.html
+++ b/tracing/tracing/ui/base/scatter_chart.html
@@ -5,7 +5,7 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<link rel="import" href="/tracing/base/range.html">
+<link rel="import" href="/tracing/base/math/range.html">
<link rel="import" href="/tracing/ui/base/chart_base_2d.html">
<script>
@@ -28,8 +28,8 @@ tr.exportTo('tr.ui.b', function() {
decorate() {
super.decorate();
- this.brushedXRange_ = new tr.b.Range();
- this.brushedYRange_ = new tr.b.Range();
+ this.brushedXRange_ = new tr.b.math.Range();
+ this.brushedYRange_ = new tr.b.math.Range();
},
get hideLegend() {
@@ -48,11 +48,11 @@ tr.exportTo('tr.ui.b', function() {
super.updateMargins_();
if (this.data.length === 0) return;
- var rightOverhangPx = tr.b.Statistics.max(
+ var rightOverhangPx = tr.b.math.Statistics.max(
this.data, d => this.xScale_(d.x) + d.radius - this.graphWidth);
this.margin.right = Math.max(this.margin.right, rightOverhangPx);
- var topOverhangPx = tr.b.Statistics.max(
+ var topOverhangPx = tr.b.math.Statistics.max(
this.data, d => (this.graphHeight - this.yScale_(d.y)) + d.radius) -
this.graphHeight;
this.margin.top = Math.max(this.margin.top, topOverhangPx);
« no previous file with comments | « tracing/tracing/ui/base/quad_stack_view.html ('k') | tracing/tracing/ui/base/scatter_chart_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698