Contains methods for displaying items horizontally in a legend.
_positionLegendItems
items
maxWidth
maxHeight
totalWidth
totalHeight
padding
horizontalGap
verticalGap
hAlign
Displays items horizontally in a legend.
items
Array
Array of items to display in the legend.
maxWidth
Number
The width of the largest item in the legend.
maxHeight
Number
The height of the largest item in the legend.
totalWidth
Number
The total width of all items in a legend.
totalHeight
Number
The total height of all items in a legend.
padding
Number
The left, top, right and bottom padding properties for the legend.
horizontalGap
Number
The horizontal distance between items in a legend.
verticalGap
Number
The vertical distance between items in a legend.
hAlign
String
The horizontal alignment of the legend.
_setRowArrays
items
limit
horizontalGap
Creates row and total width arrays used for displaying multiple rows of legend items based on the items, available width and horizontalGap for the legend.
getStartPoint
w
totalWidth
align
padding
Returns the starting x-coordinate for a row of legend items.
Number