VanquishedWombat
96 posts

VanquishedWombat

Konva - no automatic scrollbars - what?

Konva - no automatic scrollbars - what?

VanquishedWombat ―

After getting a few shapes onto the canvas, folks start wondering about how to make the canvas play nice with their UI and the subject of scrollbars emerges. But Konva does not have automatic scrollbars on a canvas element, so what can we do...

Konva
Konva - making a rectangle with a hole

Konva - making a rectangle with a hole

VanquishedWombat ―

Konva's clipFunc is usually used to trim off the edges of oversize images. The magic here is that if we draw an outer path clockwise and an inner path counter-clockwise, the area defined by the inner path becomes a hole! Let's look into it...

Konva Tricks