(node: HTMLDivElement = getCaptureNode())
| 130 | } |
| 131 | |
| 132 | export async function logDataUrl(node: HTMLDivElement = getCaptureNode()) { |
| 133 | return toPng(node) |
| 134 | .then(makeImage) |
| 135 | .then(makeCanvas) |
| 136 | .then(({ canvas }) => { |
| 137 | // eslint-disable-next-line |
| 138 | console.log(canvas.toDataURL()) |
| 139 | return node |
| 140 | }) |
| 141 | } |
| 142 | |
| 143 | export async function renderAndCheck( |
| 144 | node: HTMLDivElement = getCaptureNode(), |
nothing calls this directly
no test coverage detected
searching dependent graphs…