I'm trying to paint a shape/path to a node canvas and than copy the result into another canvas. Unfortunately, there is no path visible on the canvas. Same example on client-side works fine.
const jsdom = require('jsdom')
const paper = require('paper-jsdom-canvas')
let canvas = createCanvas(1000, 1000) // node-canvas
paper.setup(canvas);
path = new paper.Path({
segments: path_coordinates,
selected: false
})
path.simplify()
path.style = {
...
}
paper.view.update()
//paper.view.draw()
// ctx being another context
ctx.drawImage(canvas, 0, 0, ctx.canvas.width, ctx.canvas.height)
// path not visible ?!??!