|
|
聪明伶俐的小刀 · SQLite文本字符集· 2 年前 · |
|
|
打酱油的啄木鸟 · API,SDK,CLI,库,框架,IDE等的 ...· 2 年前 · |
|
|
潇洒的电梯 · Xcode 问题 Command ...· 3 年前 · |
|
|
小胡子的匕首 · 关于CoordinatorLayout在XM ...· 3 年前 · |
|
|
文武双全的企鹅 · C#对大文件进行读写操作 - 掘金· 3 年前 · |
What's the recommended way to use this library on the server side?
The goal is to render images from canvas in Node.js context .
The README mentions that is possible but is lean on samples...
Looked through the unit tests but it seems they are all executed in DOM context.
When in Node.js context I get the message
Error: Stage has no container. A container is required.(basic example here ).So, I thought to myself: alright, perhaps it needs something like JSDOM to create some
divcontainer. In that case, thedataUrlis returned empty.I'm aware of this answer too but supposedly
node-konvais deprecated (as in, merged into the mainkonvapackage), right?The
canvaspackage is included as a dependency already too on my projects, I believe that isn't the issue.Finally , node samples under https://github.com/konvajs/konva/blob/master/konva-node/index.js are still referring to
node-konvaandkonva@7... should I simply downgrade to version 7?