Skip to content

Commit

Permalink
Formatted Code Comments
Browse files Browse the repository at this point in the history
Signed-off-by: Satish Muddana <satish.muddana@ericsson.com>
  • Loading branch information
Satish Muddana authored and MatthewKhouzam committed Sep 25, 2020
1 parent 3fd9ffb commit 4f6aacf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions timeline-chart/src/components/time-graph-row-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class TimeGraphRowElement extends TimeGraphComponent {
x: this.range.start,
y: this._row.position.y + ((this.row.height - this.height) / 2)
};
// min width of a state should never be less than 1(for visibility)
// min width of a state should never be less than 1 (for visibility)
const width = Math.max(1, this.range.end - this.range.start);
this._options = {
color: _style.color,
Expand Down Expand Up @@ -142,4 +142,4 @@ export class TimeGraphRowElement extends TimeGraphComponent {
this.rect(this._options);
this.renderLabel();
}
}
}
4 changes: 2 additions & 2 deletions timeline-chart/src/layer/time-graph-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class TimeGraphChart extends TimeGraphChartLayer {
x: this.getPixels(start - this.unitController.viewRange.start),
y: el.position.y
},
// min width of a state should never be less than (for visibility)
// min width of a state should never be less than 1 (for visibility)
width: Math.max(1, this.getPixels(end - start))
}
el.update(opts);
Expand Down Expand Up @@ -433,4 +433,4 @@ export class TimeGraphChart extends TimeGraphChartLayer {
}
this.handleSelectedRowElementChange();
}
}
}

0 comments on commit 4f6aacf

Please sign in to comment.