Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Aug 13, 2024
1 parent 1cf7d10 commit e2d51f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/speedometer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ export function setLocalSpeedometerValue(value: number) {
export function setGlobalSpeedometerValue(value: number) {
if (value > GLOBAL_MAX_SPEED) {
GLOBAL_MAX_SPEED = value;
global.max!.innerText = GLOBAL_MAX_SPEED.toString();
global.max.forEach((max) => {
max.innerText = GLOBAL_MAX_SPEED.toString();
});
}
const degree = mapRange(value, 0, GLOBAL_MAX_SPEED, 0, 180);
global.tick.forEach((tick) => {
global.tick.forEach((tick) => {
tick.style.transform = `rotate(${degree}deg)`;
});
global.value.forEach((v) => {
Expand Down

0 comments on commit e2d51f8

Please sign in to comment.