TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

253 点作者 lavrton大约 2 个月前

21 条评论

sebdufbeau大约 2 个月前
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&#x27;ve been enjoying quite a lot.<p>We&#x27;re working on performance-sensitive project, so one lesson we learned is that all shapes listen to all mouse events by default. We didn&#x27;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.
评论 #43415380 未加载
h1fra大约 2 个月前
Don&#x27;t know about the library but the spreadsheet project built on top is impressive <a href="https:&#x2F;&#x2F;www.rowsncolumns.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.rowsncolumns.app&#x2F;</a>
评论 #43414911 未加载
评论 #43420030 未加载
salojoo大约 2 个月前
I evaluated this vs pixi and native canvas API. In the end I decided to use native API.<p>Konva didn&#x27;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<p>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
评论 #43413894 未加载
评论 #43415391 未加载
collingreen大约 2 个月前
I discovered Konva just this week and it has been extremely helpful for jumpstarting my latest project. I&#x27;ve been impressed with the docs and the examples and the ergonomics of the api giving me an unusual amount of &quot;it just works&quot; moments.
Fauntleroy大约 2 个月前
The site and docs for Konva are conspiciously pleasant and well fleshed out. The &quot;price&quot; link jumpscare is also something I haven&#x27;t yet seen.
评论 #43412437 未加载
评论 #43418814 未加载
recroad大约 2 个月前
I PoC&#x27;d this and ended using PhaserJS for the 2D stuff I had to do - it&#x27;s more game-oriented by much more full-featured. The API is intuitive as well.
tetris11大约 2 个月前
Is this the successor library for KineticJS and ConcreteJS?<p>Kinetic was amazing back in it&#x27;s day, but lacked SVG export. I wonder if that&#x27;s built-in now
评论 #43413230 未加载
评论 #43412964 未加载
jonplackett大约 2 个月前
Pricing is unbelievable
评论 #43413931 未加载
gedy大约 2 个月前
For folks who have used this, why would you choose this instead of SVG inside React, Svelte, etc?
评论 #43413149 未加载
评论 #43412540 未加载
评论 #43415351 未加载
评论 #43413932 未加载
评论 #43414023 未加载
评论 #43412467 未加载
tbo47大约 2 个月前
Konva at esm format <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;konva-es" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;konva-es</a><p>It&#x27;s not a fork, just a different way to build the same project.<p>ES2015 module is more efficient than the other formats and can facilitate the creation of smaller bundle size through tree-shaking technique.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;konvajs&#x2F;konva&#x2F;issues&#x2F;1829" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;konvajs&#x2F;konva&#x2F;issues&#x2F;1829</a>
slig大约 2 个月前
I made a jigsaw puzzle (featured in the Konva&#x27;s home page) years ago. Recently did a full conversion to ReactKonva using Claude and it&#x27;s a breeze.
your_challenger大约 2 个月前
I haven&#x27;t tried Konva. But have been using fabric js for an image editor I&#x27;ve been working on. I guess they both do a good job.
vile_wretch大约 2 个月前
I used this for a project a few years ago. It&#x27;s quite intuitive and made developing a workflow&#x2F;graph editor a relative breeze.
robertlagrant大约 2 个月前
Such a catchy pricing page!
probabletrain大约 2 个月前
I&#x27;ve used PixiJS and react-pixi-fiber to write a declarative 2D WebGL renderer in React with excellent results. PixiJS also has a Canvas2D fallback when WebGL isn&#x27;t available. I wonder how this compares.
评论 #43413940 未加载
评论 #43415787 未加载
rapnie大约 2 个月前
Is this a community-driven project, or is there a company behind the project?
评论 #43412927 未加载
Ezhik大约 2 个月前
Reminds me of p5.js - I still fall back to it to do some quick graphics.
I_am_tiberius大约 2 个月前
I once tried creating a table component but couldn&#x27;t solve the issue of having bad font quality when zooming into the canvas. I guess I would have needed to re-render things or so.
boomskats大约 2 个月前
How does this compare to tldraw in terms of featureset &#x2F; target market?
arskeliss16387大约 2 个月前
Looks promising and quite handy for my project
admiralrohan大约 2 个月前
What is the purpose? React for Canvas tag?
评论 #43414057 未加载