---
name: "CanvasContext.setLineJoin"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.8" }
title: "setLineJoin"
---

## CanvasContext.setLineJoin

> [VERSION] Base Library >= 2.21.8

### Description

Set line join style

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `lineJoin` | `"round" \| "bevel" \| "miter"` | Yes | Line join style |

### Return Value

None


### Examples

#### Set line join

```ts
const ctx = ty.createCanvasContext('myCanvas');
ctx.setLineJoin('round');
ctx.setLineWidth(10);
ctx.beginPath();
ctx.moveTo(10, 10);
ctx.lineTo(100, 50);
ctx.lineTo(10, 90);
ctx.stroke();
ctx.draw();
```
