|
|
成熟的硬币 · MSSQLSERVER_7391 - ...· 1 年前 · |
|
|
阳刚的数据线 · 统计法治建设_河南省统计局· 2 年前 · |
|
|
知识渊博的刺猬 · 打好“侨牌”迎头赶上 ...· 2 年前 · |
|
|
卖萌的小马驹 · 京东一加 12、Ace 3/3V ...· 2 年前 · |
|
|
英姿勃勃的羽毛球 · 【Python】CSVデータをPostgre ...· 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?