This is a tech blog for the JavaScript Konva 2D canvas library. There's over 70 posts pitched for beginners, experts, and experienced developers covering concepts, how-tos, techniques, practices, experiences and opinions.

Most posts are members-only - it's free to sign up and I'll never pass on your contacts so join in and see whats on the other side of the wall - it'll be worth it.

Konva text - tight border

Konva text - tight border

VanquishedWombat

Someone asked on the Discord channel about how to make a border around a multi-line Konva.Text element and how to get that border to tightly wrap around the text. They had tried making a Konv.Rect at the same size and position as the text shape but the border had too much gap. Lets take a look...

Members only