Overview

Attribute Summary

nametypedescription
Public
fillPaint

The fill property paints the interior of the given graphical element.

fillOpacityNumber
strokePaint

The stroke property paints along the outline of the given graphical element.

strokeDashArrayNumber[]

strokeDashArray controls the pattern of dashes and gaps used to stroke paths.

strokeDashOffsetNumber

strokeDashOffset specifies the distance into the dash pattern to start the dash.

strokeLineCapStrokeLineCap

strokeLineCap specifies the shape to be used at the end of open subpaths when they are stroked.

strokeLineJoinStrokeLineJoin

strokeLineJoin specifies the shape to be used at the corners of paths or basic shapes when they are stroked.

strokeMiterLimitNumber

When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.

strokeWidthNumber

The width of the stroke on the current object.

Protected

Inherited Attributes

Function Summary

protected abstract updateStroke() : Void

Inherited Functions

Attributes

public fill: Paint

The fill property paints the interior of the given graphical element. The area to be painted consists of any areas inside the outline of the node's shape.

public stroke: Paint

The stroke property paints along the outline of the given graphical element.

public strokeDashArray: Number[]

strokeDashArray controls the pattern of dashes and gaps used to stroke paths. This attribute contains a list of lengths that specify the lengths of alternating dashes and gaps. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. Thus, strokeDashArray: [5,3,2] is equivalent to strokeDashArray: [5,3,2,5,3,2]. Defaults to [].

public strokeDashOffset: Number

strokeDashOffset specifies the distance into the dash pattern to start the dash. Defaults to 0.0.

public strokeLineCap: StrokeLineCap

strokeLineCap specifies the shape to be used at the end of open subpaths when they are stroked. Defaults to SQUARE.

public strokeLineJoin: StrokeLineJoin

strokeLineJoin specifies the shape to be used at the corners of paths or basic shapes when they are stroked. Defaults to MITER.

public strokeMiterLimit: Number

When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The 'strokeMiterLimit' imposes a limit on the ratio of the miter length to the 'strokeWidth'. When the limit is exceeded, the join is converted from a miter to a bevel.

strokeMiterLimit
The limit on the ratio of the miter length to the 'strokeWidth'. The value of must be a number greater than or equal to 1. Any other value is an error. Defaults to 10.0.

The ratio of miter length (distance between the outer tip and the inner corner of the miter) to 'strokeWidth' is directly related to the angle (theta) between the segments in user space by the formula:

    miterLength / strokeWidth = 1 / sin(theta/2)

For example, a miter limit of 1.414 converts miters to bevels for theta less than 90 degrees, a limit of 4.0 converts them for theta less than approximately 29 degrees, and a limit of 10.0 converts them for theta less than approximately 11.5 degrees.

public strokeWidth: Number

The width of the stroke on the current object. A zero value causes no stroke to be painted. A negative value is an error. Defaults to 1.0.

Functions