LineCap

How the start and end of an open line string are terminated. Maps to Mapbox line-cap and is serialized from StrokePaint.lineCap / LineLayerPaint via StyleJSON.

For GLES stencil line masks, the ribbon mesh builder uses this value for end caps.

See also

Entries

Link copied to clipboard

Flat end flush with the segment endpoint (no extension beyond the vertex).

Link copied to clipboard

Semicircular cap centered on the endpoint.

Link copied to clipboard

Flat end extended by half the line width beyond the endpoint (same as butt direction, longer stroke).

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

String emitted to style JSON ("butt", "round", "square").

Functions

Link copied to clipboard
fun valueOf(value: String): LineCap

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.