Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the maximum allowed ratio between half of the ICanvasRenderingContext2D::lineWidth value and the miter length. If the miter limit is too small then the two lines won't meet using the ICanvasRenderingContext2D::lineJoin you specify.
![]() ![]() |
Syntax
object.put_miterLimit(number miterlimit);object.get_miterLimit(number* miterlimit);
Property values
Type: number
10
Default. If not explicitly set, this value defaults to 10.
A positive number
Zero, negative numbers, infinite numbers, and not a number (NaN) values are ignored.
Standards information
- HTML Canvas 2D Context, Section 6
Remarks
The miter length is the distance from the point where two lines meet to the point where two lines that are drawn along the outer edges of the two lines would intersect. If the ratio of these values exceeds the ICanvasRenderingContext2D::miterLimit value, a ICanvasRenderingContext2D::lineJoin miter style is not drawn.
.png)
.png)