RectangleCollection
- class Communicator.Markup.Shape.RectangleCollection()
This is useful for drawing a number of rectangles which share the same visual appearance.
Methods
Methods
addRectangle
clear
- RectangleCollection.clear()
Removes all rectangles from this collection
- Return type
void
getBorderRadius
- RectangleCollection.getBorderRadius()
Gets the border radius for this shape
- Return type
number
- Returns
the border radius
getFillColor
getFillOpacity
- RectangleCollection.getFillOpacity()
Gets the fill opacity for this shape
- Return type
number
- Returns
the fill opacity
getRectangles
- RectangleCollection.getRectangles()
Gets the rectangles in the collection
- Return type
[_MarkupRectangleData]
getStrokeColor
getStrokeWidth
setBorderRadius
- RectangleCollection.setBorderRadius(borderRadius)
Sets the border radius for this shape
- Arguments
borderRadius (
number()
) – the border radius in pixels
- Return type
void
setFillColor
setFillOpacity
- RectangleCollection.setFillOpacity(fillOpacity)
Sets the fill opacity for this shape
- Arguments
fillOpacity (
number()
) – the fill opacity
- Return type
void