getBounds(context: ICanvasContext): Rect {
const bounds = this.createArrowPath(this.distance).getBounds()
const matrix = new Matrix(
-this.direction.x,
-this.direction.y,
this.direction.y,
-this.direction.x,
this.anchor.x,
this.anchor.y
)
matrix.scale(this.length, this.length)
return matrix.calculateTransformedBounds(bounds)
}