cap

Specifies the rendered termination of the stroke.

Strokes that form an enclosed area do not have a rendered termination. In particular, all rectangle and border edges, as well as all 360-degree arc edges, are not considered to have any termination. Arcs with sweep angles less than 360 degrees and lines do have terminations at both endpoints.

Syntax

Reference_Syntax.cap = "square | butt | round"

Values

Type

Values

String

  • square (default)

  • butt

  • round

The stroke terminates by rendering the end of the edge squarely beyond the edge’s endpoint a distance equal to one-half the edge’s thickness.

  • butt

  • round

The stroke terminates by rendering the end of the edge squarely across the endpoint.

  • round

The stroke terminates by rendering the end of the edge with a semi-circle at the edge’s endpoint, having a radius equal to one-half the edge’s thickness.

Applies to

Version

XFA 2.1

Examples

JavaScript

Line1.resolveNode("value.#line.edge").cap = "round";

FormCalc

Line1.value.#line.edge.cap = "round"

// Ethnio survey code removed