Live data from Hacker News

Konva.js - Declarative 2D Canvas for React, Vue, and Svelte

konvajs.org

1–10 of 76 posts

Re: Konva.js - Declarative 2D Canvas for React, Vue, and Svelte

#3
I joined a project last year which uses Konva inside an Angular application. It was my first time doing any kind of canvas programming, but the ergonomics of konva can be picked up quite rapidly and I've been enjoying quite a lot.

We're working on performance-sensitive project, so one lesson we learned is that all shapes listen to all mouse events by default. We didn't even have lots of shapes, but this was enough to have a noticeable performance hit due to all the event handlers being registered. We pivoted to an opt-in approach instead and that fixed most of our problems.

Re: Konva.js - Declarative 2D Canvas for React, Vue, and Svelte

#9
post #6

For folks who have used this, why would you choose this instead of SVG inside React, Svelte, etc?

it is not that people would chose svg inside react/vue but that people want react/vue to manage svg for the same reason as we use react/vue to maange html
Post reply on HN