Skip to content

Commit

Permalink
demo.bandwidth: round frequency label value (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorgewilliams authored Feb 16, 2022
1 parent d7a5651 commit eca9696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/bandwidth/src/bandwidth.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const Bandwidth = dia.Element.define('Bandwidth', {

updateFrequencyLabel(opt) {
const { x } = this.getBBox().center();
this.attr('bottomLabel/text', `${x} MHz`, opt);
this.attr('bottomLabel/text', `${Math.round(x)} MHz`, opt);
return this;
}
});
Expand Down

0 comments on commit eca9696

Please sign in to comment.