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