[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3893":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},3893,"konva","konvajs\u002Fkonva","konvajs","Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.","http:\u002F\u002Fkonvajs.org\u002F",null,"TypeScript",14534,1052,170,19,0,3,14,97,15,91.77,"Other",false,"master",[26,27,28,29,30,5,31,32],"animation","canvas","drag-and-drop","graphics","javascript","node-canvas","shape","2026-06-12 04:00:19","\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fkonvajs.org\u002Fimg\u002Ficon.png\" alt=\"Konva logo\" height=\"60\" \u002F>\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">Konva\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\u003Cstrong>Build interactive graphics, editors, and diagrams for the web.\u003C\u002Fstrong>\u003C\u002Fp>\n\n[![npm downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdw\u002Fkonva.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fkonva)\n[![npm version](https:\u002F\u002Fbadge.fury.io\u002Fjs\u002Fkonva.svg)](http:\u002F\u002Fbadge.fury.io\u002Fjs\u002Fkonva)\n[![Financial Contributors on Open Collective](https:\u002F\u002Fopencollective.com\u002Fkonva\u002Fall\u002Fbadge.svg?label=financial+contributors)](https:\u002F\u002Fopencollective.com\u002Fkonva)\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fkonvajs\u002Fkonva\u002Factions\u002Fworkflows\u002Ftest-browser.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fkonvajs\u002Fkonva\u002Factions\u002Fworkflows\u002Ftest-browser.yml)\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fkonvajs\u002Fkonva\u002Factions\u002Fworkflows\u002Ftest-node.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fkonvajs\u002Fkonva\u002Factions\u002Fworkflows\u002Ftest-node.yml)\n[![CDNJS version](https:\u002F\u002Fimg.shields.io\u002Fcdnjs\u002Fv\u002Fkonva.svg)](https:\u002F\u002Fcdnjs.com\u002Flibraries\u002Fkonva)\n\nKonva is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.\n\nYou can draw things onto the stage, add event listeners to them, move them, scale them, and rotate them independently from other shapes to support high performance animations, even if your application uses thousands of shapes. Served hot with a side of awesomeness.\n\nThis repository began as a GitHub fork of [ericdrowell\u002FKineticJS](https:\u002F\u002Fgithub.com\u002Fericdrowell\u002FKineticJS).\n\n- **Visit:** The [Home Page](https:\u002F\u002Fkonvajs.org\u002F) and follow on [Twitter](https:\u002F\u002Ftwitter.com\u002Flavrton)\n- **Discover:** [Tutorials](https:\u002F\u002Fkonvajs.org\u002Fdocs\u002Findex.html), [API Documentation](https:\u002F\u002Fkonvajs.org\u002Fapi\u002FKonva.html)\n- **Try it:** [Canvas Editor](https:\u002F\u002Fkonvajs.org\u002Fdocs\u002Fsandbox\u002FCanvas_Editor.html), [Free Drawing](https:\u002F\u002Fkonvajs.org\u002Fdocs\u002Fsandbox\u002FFree_Drawing.html), [Image Crop](https:\u002F\u002Fkonvajs.org\u002Fdocs\u002Fsandbox\u002FCanvas_Crop_Image.html), [Window Frame Designer](https:\u002F\u002Fkonvajs.org\u002Fdocs\u002Fsandbox\u002FWindow_Frame_Designer.html), and [more demos](https:\u002F\u002Fkonvajs.org\u002Fdocs\u002Fsandbox.html)\n- **Used by:** [Polotno](https:\u002F\u002Fpolotno.com\u002F?utm_source=konvajs) (design editor SDK) and many others — see the full showcase on the [home page](https:\u002F\u002Fkonvajs.org\u002F)\n- **Help:** [StackOverflow](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002Ftagged\u002Fkonvajs), [Discord Chat](https:\u002F\u002Fdiscord.gg\u002F8FqZwVT)\n\n# Quick Look\n\n```html\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002Fkonva@10.0.0-1\u002Fkonva.min.js\">\u003C\u002Fscript>\n\u003Cdiv id=\"container\">\u003C\u002Fdiv>\n\u003Cscript>\n  var stage = new Konva.Stage({\n    container: 'container',\n    width: window.innerWidth,\n    height: window.innerHeight,\n  });\n\n  \u002F\u002F add canvas element\n  var layer = new Konva.Layer();\n  stage.add(layer);\n\n  \u002F\u002F create shape\n  var box = new Konva.Rect({\n    x: 50,\n    y: 50,\n    width: 100,\n    height: 50,\n    fill: '#00D2FF',\n    stroke: 'black',\n    strokeWidth: 4,\n    draggable: true,\n  });\n  layer.add(box);\n\n  \u002F\u002F add cursor styling\n  box.on('mouseover', function () {\n    document.body.style.cursor = 'pointer';\n  });\n  box.on('mouseout', function () {\n    document.body.style.cursor = 'default';\n  });\n\u003C\u002Fscript>\n```\n\n# Browsers support\n\nKonva works in all modern mobile and desktop browsers. A browser need to be capable to run javascript code from ES2015 spec. For older browsers you may need polyfills for missing functions.\n\nAt the current moment `Konva` doesn't work in IE11 directly. To make it work you just need to provide some polyfills such as `Array.prototype.find`, `String.prototype.trimLeft`, `String.prototype.trimRight`, `Array.from`.\n\n# Debugging\n\nThe Chrome inspector simply shows the canvas element. To see the Konva objects and their details, install the konva-dev extension at https:\u002F\u002Fgithub.com\u002Fkonvajs\u002Fkonva-devtool.\n\n# Loading and installing Konva\n\nKonva supports UMD loading. So you can use all possible variants to load the framework into your project:\n\n### Load Konva via classical `\u003Cscript>` tag from CDN:\n\n```html\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002Fkonva@10.0.0-1\u002Fkonva.min.js\">\u003C\u002Fscript>\n```\n\n### Install with npm:\n\n```bash\nnpm install konva --save\n```\n\n```javascript\n\u002F\u002F The modern way (e.g. an ES6-style import for webpack, parcel)\nimport Konva from 'konva';\n```\n\n#### Typescript usage\n\nAdd DOM definitions into your `tsconfig.json`:\n\n```\n{\n  \"compilerOptions\": {\n    \"lib\": [\n        \"es6\",\n        \"dom\"\n    ]\n  }\n}\n```\n\n### 3 Minimal bundle\n\n```javascript\nimport Konva from 'konva\u002Flib\u002FCore';\n\u002F\u002F Now you have a Konva object with Stage, Layer, FastLayer, Group, Shape and some additional utils function.\n\u002F\u002F Also core currently already have support for drag&drop and animations.\n\u002F\u002F BUT there are no shapes (rect, circle, etc), no filters.\n\n\u002F\u002F but you can simply add anything you need:\nimport { Rect } from 'konva\u002Flib\u002Fshapes\u002FRect';\n\u002F\u002F importing a shape will automatically inject it into Konva object\n\nvar rect1 = new Rect();\n\u002F\u002F or:\nvar shape = new Konva.Rect();\n\n\u002F\u002F for filters you can use this:\nimport { Blur } from 'konva\u002Flib\u002Ffilters\u002FBlur';\n```\n\n### 4 NodeJS env\n\nIn order to run `konva` in nodejs environment you also need to install `canvas` or `skia-canvas` package manually for rendering backend.\n\n```bash\n# node-canvas backend\nnpm install konva canvas\n# skia-canvas backend\nnpm install konva skia-canvas\n```\n\nThen you can use the same Konva API and all Konva demos will work just fine. You just don't need to use `container` attribute in your stage.\n\n```js\nimport Konva from 'konva';\nimport 'konva\u002Fcanvas-backend'; \u002F\u002F or import 'konva\u002Fskia-backend';\n\nconst stage = new Konva.Stage({\n  width: 500,\n  height: 500,\n});\n\u002F\u002F then all regular Konva code will work\n```\n\n# Backers\n\n![https:\u002F\u002Fsimpleshow.com](https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99720652?s=200&v=4 'https:\u002F\u002Fsimpleshow.com')\n![https:\u002F\u002Fwww.notably.ai\u002F](https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F80046841?s=200&v=4 'https:\u002F\u002Fwww.notably.ai\u002F')\n\n- [myposter GmbH](https:\u002F\u002Fwww.myposter.de\u002F)\n- [queue.gg](https:\u002F\u002Fqueue.gg\u002F)\n\n# Change log\n\nSee [CHANGELOG.md](https:\u002F\u002Fgithub.com\u002Fkonvajs\u002Fkonva\u002Fblob\u002Fmaster\u002FCHANGELOG.md).\n\n## Building the Konva Framework\n\nTo make a full build run `npm run build`. The command will compile all typescript files, combine then into one bundle and run minifier.\n\n## Testing\n\nKonva uses Mocha for testing.\n\n- If you need run test only one time run `npm run test`.\n- While developing it is easy to use `npm start`. Just run it and go to [http:\u002F\u002Flocalhost:1234\u002Funit-tests.html](http:\u002F\u002Flocalhost:1234\u002Funit-tests.html). The watcher will rebuild the bundle on any change.\n\nKonva is covered with hundreds of tests and well over a thousand assertions.\nKonva uses TDD (test driven development) which means that every new feature or bug fix is accompanied with at least one new test.\n\n## Generate documentation\n\nRun `npx gulp api` which will build the documentation files and place them in the `api` folder.\n\n# Pull Requests\n\nI'd be happy to review any pull requests that may better the Konva project,\nin particular if you have a bug fix, enhancement, or a new shape (see `src\u002Fshapes` for examples). Before doing so, please first make sure that all of the tests pass (`npm run test`).\n\n## Contributors\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https:\u002F\u002Fopencollective.com\u002Fkonva\u002Fcontribute)]\n\n#### Individuals\n\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Findividuals.svg?width=890\">\u003C\u002Fa>\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https:\u002F\u002Fopencollective.com\u002Fkonva\u002Fcontribute)]\n\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F0\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F0\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F1\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F1\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F2\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F2\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F3\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F3\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F4\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F4\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F5\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F5\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F6\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F6\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F7\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F7\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F8\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F8\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F9\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fkonva\u002Forganization\u002F9\u002Favatar.svg\">\u003C\u002Fa>\n","Konva.js 是一个基于 HTML5 Canvas 的 JavaScript 框架，用于构建交互式的图形、编辑器和图表。它支持高性能动画、过渡效果、节点嵌套、图层管理、滤镜应用、缓存机制以及事件处理等功能，特别适用于需要大量图形操作的桌面和移动应用开发场景。利用 Konva.js，开发者可以轻松绘制图形、添加事件监听器，并对图形进行移动、缩放和旋转等操作，即使在处理成千上万个形状时也能保持流畅的动画表现。此外，该项目还提供了丰富的教程、API 文档及示例项目，帮助用户快速上手并深入了解其功能特性。",2,"2026-06-11 02:56:58","top_language"]