File tree 2 files changed +4
-15
lines changed
2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -74,21 +74,10 @@ require("./file2");
74
74
75
75
## Canvas.toDataURL()
76
76
77
- This is still a feature yet to be implemented correctly.
77
+ a bit hackish but works, see:
78
78
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
92
81
93
82
## Tests
94
83
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pixi-shim" ,
3
- "version" : " 2.3.20 " ,
3
+ "version" : " 2.3.21 " ,
4
4
"description" : " pixijs shim for backend use of pixijs" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments