(width, height)
| 13 | */ |
| 14 | const NodeCanvasFactory = { |
| 15 | create (width, height) { |
| 16 | const canvas = Canvas.createCanvas(width, height) |
| 17 | const context = canvas.getContext('2d') |
| 18 | return { |
| 19 | canvas, |
| 20 | context |
| 21 | } |
| 22 | }, |
| 23 | |
| 24 | reset (canvasAndContext, width, height) { |
| 25 | canvasAndContext.canvas.width = width |
nothing calls this directly
no outgoing calls
no test coverage detected