The miterLimit property is used to or returns the maximum miter length. It is used to prevent the miter length from being too long.
The miter length is the distance between the inner corner and the outer corner where two lines meet.
context.miterLimit = number;
- number: It is a positive number that shows the maximum miter length.
Supported Browsers: The browsers supported by HTML canvas miterLimit Property are listed below:
- Google Chrome
- Internet Explorer
- Apple Safari