I believe you missed my point. I am creating a circular mask in canvas, hence the snippet:
I'm not following rect(x-15, y+15, textLength, 30). I don't have such a function and wanting to use and offset determine from my mouse up event, not some fixed value.