VanquishedWombat

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

JS Coding - A Better Error Handler for JavaScript

JS Coding - A Better Error Handler for JavaScript

VanquishedWombat ― May 13, 2024

My approach to JS tracing and logging is a fairly formalised token based log switching. But fundamentally it's a console.log - could there be room for improvement! A recent instalment of Chris Ferdinandi's excellent daily developer tips email got me thinking...

JavaScript Error handling
Members only
Konva - Star rating control

Konva - Star rating control

VanquishedWombat ― May 13, 2024

Konva Tricks
Members only
Konva - Point & shape collision detection

Konva - Point & shape collision detection

VanquishedWombat ― May 13, 2024

Thinking about shape-point collision detection in a case where there are many shapes on the stage, and how to improve performance. Here's my explanation of those functions and an possibly better approach.

Konva Hit detection Performance Tricks
Members only
Konva - making a shape fill the view

Konva - making a shape fill the view

VanquishedWombat ― May 13, 2024

Someone asked on the Konva discord channel how to have a shape - in this case a group - be positioned and zoomed so that the shape fills the canvas view and is centered vertically and horizontally. Here's my answer...

Konva Tricks
Members only
Thinking about an approach to do-undo-redo

Thinking about an approach to do-undo-redo

VanquishedWombat ― May 13, 2024

Coding a project that needs an undo-redo feature? Me too - here's my thinking from the end of the development on the subject based on my learnings coding a rich text editor.

Konva rtx
Members only
Konva - Animation for HTML5 canvas

Konva - Animation for HTML5 canvas

VanquishedWombat ― May 13, 2024

I wanted to learn about animation on the canvas so I'm making a smooth spiral animation of the first 199 words of David Bowie's 'Space Oddity' using the excellent Konva canvas library and its animation feature.

Konva Animation Tricks
Members only
Konva - A workaround for inaccurate  Path measuring via SVG

Konva - A workaround for inaccurate Path measuring via SVG

VanquishedWombat ― May 13, 2024

Long story short, Konvas path measuring for Path.getLength() and Path.getPointAtLength() methods are broken. The math involved is very complex and its not surprising that there are bugs. But also there's a simple and higher performance workaround so on balance its not so bad Lets take a look....

Konva Issue Path Tricks Text
Members only
Konva - Stage.draw is dead, you did know, right?

Konva - Stage.draw is dead, you did know, right?

VanquishedWombat ― May 13, 2024

If you know about Stage.draw() and that you don't need to worry about it any more, don't read this - put your feet up and have some coffee & cake. If you are at all fuzzy on the subject, read on...

Konva Tricks Performance
Members only
Page 7 of 12
  • Home
  • About
  • Contact
KonvaTricksJavaScriptCanvasTextTransformationsVitePerformanceLinePathCSSrichTextClipFuncTypeScriptAnimation
  • Sign up
© 2025 VanquishedWombat
Forma theme by Just Good Themes. Powered by Ghost.