Skip to content

Commit

Permalink
Minor tweaks for testing charts
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Jan 6, 2025
1 parent 3f02a60 commit d153408
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/src/analysis.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ export async function main() {
'laps'
]),
common.initNationFlags(),
common.getWorldList(),
common.getWorldList({all: true}),
common.rpc.getPowerZones(1),
]);
athleteData = _ad;
Expand Down
3 changes: 1 addition & 2 deletions pages/src/charts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ export function calcMagicPowerZonesGraphics(chart, zones, seriesId, ftp, options
startPx = chart.convertToPixel({xAxisIndex}, data[x.start][0]);
}
const widthPx = chart.convertToPixel({xAxisIndex}, data[x.end][0]) - startPx;
if (widthPx < 0) {
debugger;
if (widthPx < 1) {
continue;
}
const top = x.zone.to ? chart.convertToPixel({yAxisIndex}, x.zone.to * ftp * 0.95) : 0;
Expand Down
1 change: 1 addition & 0 deletions src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const worldMetas = {
[realWorldCourseId]: {
worldId: realWorldCourseId,
courseId: realWorldCourseId,
name: 'Earth',
lonOffset: 0,
latOffset: 0,
lonDegDist: 0.01,
Expand Down

0 comments on commit d153408

Please sign in to comment.