Skip to content

Commit

Permalink
Fixed broken profile chart test
Browse files Browse the repository at this point in the history
  • Loading branch information
jirkapok committed Apr 2, 2024
1 parent 585059b commit d3b1eaf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class ProfileDifferenceChartComponent extends Streamed implements OnInit
this.plotter.plotCharts(this.profileA.totalDuration);
}

// TODO fix hover over the diff chart
private hookChartEvents(): void {
// used any to prevent typescript type gymnastic
const chartElement: any = document.getElementById(this.plotter.elementName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { WayPointsService } from '../shared/waypoints.service';
import { SelectedWaypoint } from '../shared/selectedwaypointService';
import { DiveSchedules } from '../shared/dive.schedules';
import { ReloadDispatcher } from '../shared/reloadDispatcher';
import { ChartPlotterFactory } from '../shared/chartPlotter';
import { ResamplingService } from '../shared/ResamplingService';

describe('ProfileChartComponent', () => {
let component: ProfileChartComponent;
Expand All @@ -17,7 +19,8 @@ describe('ProfileChartComponent', () => {
providers: [
WorkersFactoryCommon, ReloadDispatcher,
WayPointsService, SelectedWaypoint,
UnitConversion, DiveSchedules
UnitConversion, DiveSchedules,
ChartPlotterFactory, ResamplingService
]
});

Expand Down
1 change: 0 additions & 1 deletion projects/planner/src/app/shared/chartPlotter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { DateFormats } from './formaters';
import { WayPoint } from './models';
import { Ceiling, Event } from 'scuba-physics';

// TODO merge with profileChart component drawing methods
@Injectable()
export class ChartPlotterFactory {
public static readonly depthLineColorA = 'rgb(31, 119, 180)';
Expand Down

0 comments on commit d3b1eaf

Please sign in to comment.