Skip to content

Commit 3468821

Browse files
committed
renaming
1 parent dedfe4a commit 3468821

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/web_app/lib/src/widget/downloads_chart/widget.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ void drawChart(
306306
lines.add(lineCoordinates);
307307
}
308308

309-
StringBuffer computeLine(List<(double, double)> coordinates) {
309+
StringBuffer computeLinePath(List<(double, double)> coordinates) {
310310
final path = StringBuffer();
311311
var command = 'M';
312312
coordinates.forEach((c) {
@@ -316,7 +316,7 @@ void drawChart(
316316
return path;
317317
}
318318

319-
StringBuffer computeArea(List<(double, double)> topCoordinates,
319+
StringBuffer computeAreaPath(List<(double, double)> topCoordinates,
320320
List<(double, double)> bottomCoordinates) {
321321
final path = StringBuffer();
322322
var command = 'M';
@@ -341,8 +341,8 @@ void drawChart(
341341

342342
for (int i = 0; i < lines.length; i++) {
343343
// We add the lines in reverse order so that the newest versions get the
344-
// main color.
345-
final line = computeLine(lines[lines.length - 1 - i]);
344+
// main colors.
345+
final line = computeLinePath(lines[lines.length - 1 - i]);
346346
final path = SVGPathElement();
347347
path.setAttribute('class', '${strokeColorClass(i)} downloads-chart-line ');
348348
path.setAttribute('d', '$line');
@@ -353,7 +353,7 @@ void drawChart(
353353
final prevLine = i == lines.length - 1
354354
? [(xZero, yZero), (xMax, yZero)]
355355
: lines[lines.length - 1 - i - 1];
356-
final areaPath = computeArea(lines[lines.length - 1 - i], prevLine);
356+
final areaPath = computeAreaPath(lines[lines.length - 1 - i], prevLine);
357357
final area = SVGPathElement();
358358
area.setAttribute('class', '${fillColorClass(i)} downloads-chart-area ');
359359
area.setAttribute('d', '$areaPath');

0 commit comments

Comments
 (0)