new xrx.shape.Circle(drawing)
A class representing an engine-independent hoverable, selectable,
modifiable and creatable circle shape.
Parameters:
Name | Type | Description |
---|---|---|
drawing |
xrx.drawing.Drawing | The parent drawing canvas. |
- Source:
Extends
Methods
-
xrx.shape.Circle#disposeInternal()
-
Disposes this circle shape.
-
xrx.shape.Circle#getCenter() → {Array.<number>}
-
Returns the center point of this circle.
- Source:
Returns:
- Type
- Array.<number>
-
xrx.shape.Circle#getCreatable() → {xrx.shape.CircleCreatable}
-
Returns a helper shape that makes this shape creatable.
Returns:
The creatable circle shape. -
xrx.shape.Circle#getFillColor() → {string}
-
Returns the fill color of this shape.
- Inherited From:
- Source:
Returns:
The fill color.- Type
- string
-
xrx.shape.Circle#getFillOpacity() → {number}
-
Returns the fill opacity of this shape.
- Inherited From:
- Source:
Returns:
The fill opacity.- Type
- number
-
xrx.shape.Circle#getHoverable() → {xrx.shape.CircleHoverable}
-
Returns a helper shape that makes this shape hoverable.
Returns:
The hoverable circle shape. -
xrx.shape.Circle#getModifiable() → {xrx.shape.CircleModifiable}
-
Returns a helper shape that makes this shape modifiable.
Returns:
The modifiable circle shape.- Type
- xrx.shape.CircleModifiable
-
xrx.shape.Circle#getRadius() → {number}
-
Returns the radius of this circle.
- Source:
Returns:
The radius.- Type
- number
-
xrx.shape.Circle#getSelectable() → {xrx.shape.CircleSelectable}
-
Returns a helper shape that makes this shape selectable.
Returns:
The selectable circle shape.- Type
- xrx.shape.CircleSelectable
-
xrx.shape.Circle#getStrokeColor() → {string}
-
Returns the stroke color of this shape.
- Inherited From:
- Source:
Returns:
The stroke color.- Type
- string
-
xrx.shape.Circle#getStrokeWidth() → {number}
-
Returns the stroke width of this shape.
- Inherited From:
- Source:
Returns:
The stroke width.- Type
- number
-
xrx.shape.Circle#setCenter(cx, cy)
-
Sets the center point of this circle.
Parameters:
Name Type Description cx
number The X coordinate of the center point. cy
number The Y coordinate of the center point. - Source:
-
xrx.shape.Circle#setFillColor(color)
-
Sets the fill color of this shape.
Parameters:
Name Type Description color
string The fill color. - Inherited From:
- Source:
-
xrx.shape.Circle#setFillOpacity(factor)
-
Sets the fill opacity of this shape.
Parameters:
Name Type Description factor
number The fill opacity. - Inherited From:
- Source:
-
xrx.shape.Circle#setRadius(r)
-
Sets the radius of this circle.
Parameters:
Name Type Description r
number The radius. - Source:
-
xrx.shape.Circle#setStrokeColor(color)
-
Sets the stroke color of this shape.
Parameters:
Name Type Description color
string The stroke color. - Inherited From:
- Source:
-
xrx.shape.Circle#setStrokeWidth(width)
-
Sets the stroke width of this shape.
Parameters:
Name Type Description width
number The stroke width. - Inherited From:
- Source:
-
xrx.shape.Circle#setStyle(style)
-
Sets a stylable object for this shape.
Parameters:
Name Type Description style
xrx.shape.Style - Inherited From:
- Source: