Konva.js Blog

A tech blog giving usable explainers, advice, tools, tricks and techniques for the Konva.js JavaScript canvas library, the HTML5 canvas, and related subjects.

Konva - focus border around a group

Konva - focus border around a group

VanquishedWombat ― May 14, 2024

We can use a Kova.Transformer to put a temporary frame around grouped shapes, but what if we want the frame to persist? Here's a solution for that...

Konva Tricks Group
Konva - fill opacity without affecting stroke

Konva - fill opacity without affecting stroke

VanquishedWombat ― May 14, 2024

Ever needed to have a rect with alpha applied to the fill bit not the stroke - here's how.

Konva Tricks
Konva - React & Vue reactivity considerations HTML Canvas libs

Konva - React & Vue reactivity considerations HTML Canvas libs

VanquishedWombat ― May 14, 2024

React, Vue and many other libraries use an object model that represents the HTML page DOM. You make changes to the model and a complex engine decides when to update the visual HTML DOM. These engines ONLY update the HTML element or component that changed. But the HTML Canvas is different...

Konva React Vue
Konva - text with block background

Konva - text with block background

VanquishedWombat ― May 14, 2024

Giving text a block color background with margin and padding is catered for well in CSS but not so easy in Konva where there is nothing as capable as CSS built-in. Here's some code to give you that feature.

Konva Text Tricks CSS
Konva - editing path points

Konva - editing path points

VanquishedWombat ― May 14, 2024

Both the Konva Line and Path use a list of points to draw themselves. Someone asked about how to edit the points so I wrote this article and demo to explain...

Konva Line Path Tricks Point
Konva - trap an image in a framing shape

Konva - trap an image in a framing shape

VanquishedWombat ― May 14, 2024

In this short post I show you how to keep an oversized image inside a framing rectangle whilst allowing the user to position the image within the frame, with no gaps allowed. Here's the approach...

Konva Tricks ClipFunc
Konva - path point simplification with Simplify.js

Konva - path point simplification with Simplify.js

VanquishedWombat ― May 14, 2024

Free-drawn lines can be represented by the Line or Path shapes. Standard UX is that the user moves the pointer and we add a line point at the pointer position in each mouse-move event. But that makes for a lot of points. Can we reduce the number of points and retain the line? Lets see...

Konva Line Path Tricks
Konva - HTML5 canvas blur & spotlight effect

Konva - HTML5 canvas blur & spotlight effect

VanquishedWombat ― May 14, 2024

Based on the learnings from an earlier clip regions article I thought I would cover how to make a spotlight effect since it has been asked for a few times on the discord channel. Here we go...

Konva Tricks ClipFunc
Page 4 of 12
  • Home
  • About
  • Hire me
KonvaTricksJavaScriptCanvasTextTransformationsVitePerformanceLinePathCSSrichTextClipFuncTypeScriptAnimation
  • Sign up
© 2026 Konva.js Blog
Forma theme by Just Good Themes. Powered by Ghost.