/

HTML / CSS / JavaScript Tutorial

JavaScript canvas2d object property: miterLimit

[this page | pdf | back links]

The miterLimit property of the JavaScript DOM object returned by the getContext("2d") method applied to the HTML <canvas> element sets / returns the maximum mitre limit.

 

The mitre is the distance between the inner and outer corner where two lines meet. The miterLimit property is only relevant if the lineJoin property is miter. It will apply when the angle between the two lines is small, when the corner will be displayed as if its lineJoin property is bevel.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile