This topic has not yet been rated - Rate this topic

miterLimit property

Gets or sets the maximum allowed ratio between half of the lineWidth value and the miter length.

HTML Canvas 2D Context, Section 6

Syntax

JavaScript

p = object.miterLimit

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

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

CanvasRenderingContext2D

 

 

Build date: 11/28/2012

© 2013 Microsoft. All rights reserved.