Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccollum-woolpert committed Jun 13, 2024
1 parent fcf875b commit 63369f4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
</div>
<div class="percent-label">
<svg width="100%" height="14">
<rect x="10%" y="3.5px" width="80%" height="7px" class="break-time" mask="url(#BreakMask)"></rect>
<rect
x="10%"
y="3.5px"
width="80%"
height="7px"
class="break-time"
mask="url(#BreakMask)"></rect>
</svg>
<div class="mat-body-strong">
{{ formattedVehicleTimeAverages?.breakTime || 0 | number: '1.0-0' }}%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
}
}

line.driving, line.idle-time, line.service {
line.driving,
line.idle-time,
line.service {
stroke: $blue-dark;
}

rect.break-time {
fill: $blue-dark;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ const selectSelectedRoutesColors = createSelector(
}
);

const selectRouteColor = (id: number) => createSelector(
selectSelectedRoutesColors,
(colors) => colors[id]
)
const selectRouteColor = (id: number) =>
createSelector(selectSelectedRoutesColors, (colors) => colors[id]);

const selectSelectedRoutesVisitIds = createSelector(
selectSelectedRoutes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ export class RoutesRowComponent implements OnChanges, OnInit, OnDestroy {
this.range$ = this.store.pipe(select(RoutesChartSelectors.selectRange));

this.color$ = this.route$.pipe(
switchMap((route) => this.store.pipe(select(RoutesChartSelectors.selectRouteColor(route.id)))),
map(color => color?.hex)
switchMap((route) =>
this.store.pipe(select(RoutesChartSelectors.selectRouteColor(route.id)))
),
map((color) => color?.hex)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
y="3.5px"
height="7px"
[attr.fill]="color"
mask="url(#BreakMask)"/>
mask="url(#BreakMask)" />
</ng-template>
</g>
</g>
Expand Down

0 comments on commit 63369f4

Please sign in to comment.