Skip to content

Commit d7b164d

Browse files
author
Jacek Pietal
committed
feat: update readme
1 parent 94b50e1 commit d7b164d

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

README.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,10 @@ require("./file2");
7474

7575
## Canvas.toDataURL()
7676

77-
This is still a feature yet to be implemented correctly.
77+
a bit hackish but works, see:
7878

79-
The hardest part is emulating a canvas on node that would be compatible with pixi.
80-
81-
If you need this functionality, you can try, starting with:
82-
83-
```bash
84-
yarn add canvas@2 pixi.js-legacy pixi-shim
85-
```
86-
87-
```javascript
88-
const PIXI = require("pixi-shim/pixi.js");
89-
90-
console.log(PIXI);
91-
```
79+
- https://github.com/Prozi/pixi-shim/blob/master/pixi.spec.js
80+
- https://github.com/Prozi/pixi-shim/blob/master/to-data-url.js
9281

9382
## Tests
9483

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pixi-shim",
3-
"version": "2.3.20",
3+
"version": "2.3.21",
44
"description": "pixijs shim for backend use of pixijs",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)