News for hackers. Stuff that matters.
Re:Konva.js - Declarative 2D Canvas for React, Vue, and Svelte by solardev on Wednesday March 19, 2025 @12:11PM (#43413894)
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?
Re:Konva.js - Declarative 2D Canvas for React, Vue, and Svelte by salojoo on Wednesday March 19, 2025 @01:31PM (#43414934)
I'm rendering charts. The native API conveniently provides the fundamentals with lines and rectangles. In addition masking and text have been very useful.

Interaction is also supported by the API with hit regions, though I've opted to do my calculations. But I agree that interaction is where Konva would probably have shined.