miterLimit property
Gets or sets the maximum allowed ratio between half of the lineWidth value and the miter length.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Floating-point
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 miterLimit value, a lineJoin miter style is not drawn.
See also
Build date: 11/28/2012

