Skip to content
PHP Ecosystem
Explore

StrokeLineCap

API reference › HTML SVG › Values › StrokeLineCap

enumUIAwesome\Html\Svg\Values\StrokeLineCap
Backed bystring
Sourcesrc/Values/StrokeLineCap.php

Represents literal string values for the SVG stroke-linecap attribute.

Provides the keyword values used by the stroke-linecap attribute.

See also: Circle::strokeLineCap(), Ellipse::strokeLineCap(), G::strokeLineCap(), Line::strokeLineCap(), Path::strokeLineCap(), Polygon::strokeLineCap(), Polyline::strokeLineCap(), Rect::strokeLineCap(), Text::strokeLineCap().

CaseValueDescription
BUTT'butt'butt - Stroke is squared off at the endpoint of the path. This is the default value.
ROUND'round'round - Stroke is rounded at the endpoint of the path.
SQUARE'square'square - Stroke continues beyond the endpoint of the path for a distance equal to half the stroke width.