module:Arc

Arc class
arc demo

Constructor

new module:Arc(positionDefinition, widthopt, heightopt, startAngleopt, endAngleopt, optionsopt)

Arc constructor

Parameters:
NameTypeAttributesDefaultDescription
positionDefinitionPositionDefinition

Center of arc

widthNumber<optional>
0

Horizontal radius

heightNumber<optional>
0

Vertical radius

startAngleNumber<optional>
0

Angle to start from (0 is top, 0.5 is bottom and 1 is full circle back to top)

endAngleNumber<optional>
0.5

Angle to end to (from startAngle and in clockwise rotation)

optionsLineOptions<optional>

Drawing options

Extends

Members

(static) caps :LineCaps

Type:
  • LineCaps

(static) defaultOptions :LineOptions

Type:
  • LineOptions

Methods

(static) from(definition) → {Arc}

Parameters:
NameTypeDescription
definitionObject

Arc definition

Returns:
Type: 
Arc

trace(path) → {Arc}

Draw the arc

Parameters:
NameTypeDescription
pathPath2D

Drawing context

Returns:

Itself

Type: 
Arc