Live data from Hacker News

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

konvajs.org

21–30 of 76 posts

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

#22

The site and docs for Konva are conspiciously pleasant and well fleshed out. The "price" link jumpscare is also something I haven't yet seen.

The pricing page is well done indeed.

impressive! But know I am left wondering, what the price is...

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

#24
I evaluated this vs pixi and native canvas API. In the end I decided to use native API.

Konva didn't have enough performance for my use case and pixi webgl has a limit on the number of canvases on the screen at the same time

The native API is easy to use and well documented. It also performs well enough to animate charts at 60fps on modern hw for my use case. I also like that there are no libraries to update

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

#28
post #16

Is this the successor library for KineticJS and ConcreteJS? Kinetic was amazing back in it's day, but lacked SVG export. I wonder if that's built-in now

It is a fork of KineticJS. SVG export isn't implemented and I don't think it will be. I, personally, see it as out of the focus of the project.

We used Kinetic a lot for a specific type of visual analysis we had, but when it came to creating publish-worthy figures, working with PNG screenshots was less than desirable.

Would it be so difficult to crawl over a snapshot of the object hierarchy and render to a cairo-like library?

At one point I started implementing that myself using my own object representation that I had running parallel to Kinetic's internal one, but never finished it.

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

#29
post #24

I evaluated this vs pixi and native canvas API. In the end I decided to use native API. Konva didn't have enough performance for my use case and pixi webgl has a limit on the number of canvases on the screen at the same time The native API is easy to use and well documented. It also performs well enough to animate charts at 60fps on modern hw for my use case. I also like that there are no libraries to update

What was your use case? Konva is a pretty high level abstraction, more like a lightweight interactive geometry & paint engine than a graphics API. It must've taken quite a bit of work to recreate similar functionality using native APIs?
Post reply on HN