Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Sep 24, 2024
1 parent cc58c73 commit 3085ef7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cargo/core/compiler/timings.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ const BG_COLOR = getCssColor('--background');
const CANVAS_BG= getCssColor('--canvas-background');
const TICK_COLOR = getCssColor('--tick');
const GRID_COLOR = getCssColor('--grid');
const BLOCK_COLOR = getCssColor('--grid');
const BLOCK_COLOR = getCssColor('--block');
const CUSTOM_BUILD_COLOR = getCssColor('--custom-build');
const NOT_CUSTOM_BUILD_COLOR = getCssColor('--not-custom-build');
const DEP_LINE_COLOR = getCssColor('--dep-line');
const DEP_LINE_HIGHTLIGHTED_COLOR = getCssColor('--dep-line-highlighted');
const DEP_LINE_HIGHLIGHTED_COLOR = getCssColor('--dep-line-highlighted');
const CPU_COLOR = getCssColor('--cpu');

for (let n=0; n<UNIT_DATA.length; n++) {
Expand Down Expand Up @@ -161,7 +161,7 @@ function draw_dep_lines(ctx, unit_idx, highlighted) {
function draw_one_dep_line(ctx, from_x, from_y, to_unit, highlighted) {
if (to_unit in UNIT_COORDS) {
let {x: u_x, y: u_y} = UNIT_COORDS[to_unit];
ctx.strokeStyle = highlighted ? DEP_LINE_HIGHTLIGHTED_COLOR: DEP_LINE_COLOR;
ctx.strokeStyle = highlighted ? DEP_LINE_HIGHLIGHTED_COLOR: DEP_LINE_COLOR;
ctx.setLineDash([2]);
ctx.beginPath();
ctx.moveTo(from_x, from_y+BOX_HEIGHT/2);
Expand Down

0 comments on commit 3085ef7

Please sign in to comment.