Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg committed Oct 2, 2022
1 parent 688228a commit b96b78c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions ui/chart/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export interface MovePoint {
let highchartsPromise: Promise<any> | undefined;

export function selectPly(this: PlyChart, ply: number, onMainline: boolean) {
if (this.lastPly === ply && (this as any).onMainline == onMainline) return;
this.lastPly = ply;
(this as any).onMainline = onMainline;
const plyline = (this.xAxis[0] as any).plotLinesAndBands[0];
plyline.options.value = ply - 1 - this.firstPly;
plyline.svgElem?.dashstyleSetter(onMainline ? 'solid' : 'dash');
Expand Down
1 change: 0 additions & 1 deletion ui/chart/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export interface HighchartsHTMLElement extends HTMLElement {
}

export interface PlyChart extends Highcharts.ChartObject {
lastPly?: number | false;
firstPly: number;
selectPly(ply: number, isMainline: boolean): void;
}
Expand Down

0 comments on commit b96b78c

Please sign in to comment.