mirror of
https://github.com/konvajs/konva.git
synced 2026-01-22 21:02:26 +08:00
fix readme
This commit is contained in:
11
README.md
11
README.md
@@ -123,21 +123,14 @@ import { Blur } from 'konva/lib/filters/Blur';
|
||||
|
||||
### 4 NodeJS env
|
||||
|
||||
We are using [node-canvas](https://github.com/Automattic/node-canvas) to create canvas element.
|
||||
Please check installation instructions for it. Then just run
|
||||
In order to run `konva` in nodejs environment you also need to install `canvas` package manually. Konva will use it for 2d canvas API.
|
||||
|
||||
```bash
|
||||
npm install konva-node
|
||||
npm install konva canvas
|
||||
```
|
||||
|
||||
Then in you javascript file you will need to use
|
||||
|
||||
```javascript
|
||||
const Konva = require('konva-node');
|
||||
```
|
||||
|
||||
See file `konva-node/demo.js` file in this repo as a sample.
|
||||
|
||||
# Backers
|
||||
|
||||
- [myposter GmbH](https://www.myposter.de/)
|
||||
|
||||
Reference in New Issue
Block a user