protected getBounds(context: ICanvasContext, label: ILabel): Rect {
const labelLayout = label.layout
// calculate the tail area
const tailArea = this.getTailArea(labelLayout)
// return the union of the label layout and tail bounds
return Rect.add(labelLayout.bounds, tailArea.bounds)
}