Rectangle
- 
class 
Markup.Shapes.Rectangle() Represents a rectangle defined by a position and a size.
Constructors
Methods
Constructors
- 
Rectangle.constructor([position[, size]]) Arguments: Creates a new rectangle markup item
Return type: Rectangle 
Methods
getBorderRadius
- 
Rectangle.getBorderRadius() Gets the border radius for this shape
Returns: the border radius Return type: number 
getFillColor
- 
Rectangle.getFillColor() Gets the fill color for this shape
Returns: the fill color Return type: Color 
getFillOpacity
- 
Rectangle.getFillOpacity() Gets the fill opacity for this shape
Returns: the fill opacity Return type: number 
getPosition
- 
Rectangle.getPosition() Gets rectangle position
Returns: the rectangle position Return type: Point2 
getStrokeColor
- 
Rectangle.getStrokeColor() Gets the stroke color for this shape
Returns: the stroke color Return type: Color 
getStrokeWidth
- 
Rectangle.getStrokeWidth() Gets the stroke width for this shape in pixels
Returns: the stroke width in pixels Return type: number 
setBorderRadius
- 
Rectangle.setBorderRadius(borderRadius) Arguments: - borderRadius (
number()) – the border radius in pixels 
Sets the border radius for this shape
Return type: void - borderRadius (
 
setFillColor
setFillOpacity
- 
Rectangle.setFillOpacity(fillOpacity) Arguments: - fillOpacity (
number()) – the fill opacity 
Sets the fill opacity for this shape
Return type: void - fillOpacity (