Reference strokeJoin()

strokeJoin()

Sets the style of the joints that connect line segments.

Joints are either mitered (MITER), beveled (BEVEL), or rounded (ROUND). The default joint is MITER in 2D mode and ROUND in WebGL mode.

The argument passed to strokeJoin() must be written in ALL CAPS because the constants MITER, BEVEL, and ROUND are defined this way. JavaScript is a case-sensitive language.

Examples

Syntax

strokeJoin(join)

Parameters

join
Constant:

either MITER, BEVEL, or ROUND

This page is generated from the comments in src/core/shape/attributes.js . Please feel free to edit it and submit a pull request!

Related References