Constructor
new module:Arc(positionDefinition, widthopt, heightopt, startAngleopt, endAngleopt, optionsopt)
Arc constructor
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
positionDefinition | PositionDefinition | Center of arc | ||
width | Number | <optional> | 0 | Horizontal radius |
height | Number | <optional> | 0 | Vertical radius |
startAngle | Number | <optional> | 0 | Angle to start from (0 is top, 0.5 is bottom and 1 is full circle back to top) |
endAngle | Number | <optional> | 0.5 | Angle to end to (from startAngle and in clockwise rotation) |
options | LineOptions | <optional> | Drawing options |
- Source
Extends
Members
(static) caps :LineCaps
Type:
- LineCaps
- Source
(static) defaultOptions :LineOptions
Type:
- LineOptions
- Source
Methods
(static) from(definition) → {Arc}
Parameters:
Name | Type | Description |
---|---|---|
definition | Object | Arc definition |
- Source
Returns:
- Type:
- Arc
trace(path) → {Arc}
Draw the arc
Parameters:
Name | Type | Description |
---|---|---|
path | Path2D | Drawing context |
- Overrides
- Source
Returns:
Itself
- Type:
- Arc