Skip to content

Commit

Permalink
feat: linecap round
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Apr 15, 2024
1 parent 59eb25d commit 60e011a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/board-components/src/lib/drawing/drawing.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class DrawingDirective {
this.context.lineWidth = event.size ?? this.#drawingStore.size();
this.context.strokeStyle = event.color ?? this.#drawingStore.color();

this.context.lineCap = 'round';
this.context.beginPath();
this.context.moveTo(event.x, event.y);
this.context.lineTo(event.nX, event.nY);
Expand Down

0 comments on commit 60e011a

Please sign in to comment.