Skip to content

Commit

Permalink
Draw plus annotation symbol for unknown symbol styles
Browse files Browse the repository at this point in the history
Fixes #90

Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
  • Loading branch information
bhufmann committed Jan 6, 2021
1 parent 4bab710 commit 39ea33b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions timeline-chart/src/components/time-graph-annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export class TimeGraphAnnotationComponent extends TimeGraphComponent {
const size = this._size;
const x = this._options.position.x;
const y = this._options.position.y;

if (symbol === undefined || symbol == 'none') {
return;
}
if (symbol == 'circle') {
this.drawCircle(x, y, size);
} else if (symbol == 'cross') {
Expand All @@ -61,6 +65,8 @@ export class TimeGraphAnnotationComponent extends TimeGraphComponent {
this.drawPlus(x, y, size);
} else if (symbol == 'diamond') {
this.drawDiamond(x, y, size);
} else {
this.drawPlus(x, y, size);
}
}

Expand Down

0 comments on commit 39ea33b

Please sign in to comment.