MCPcopy
hub / github.com/bubkoo/html-to-image / logDataUrl

Function logDataUrl

test/spec/helper.ts:132–141  ·  view source on GitHub ↗
(node: HTMLDivElement = getCaptureNode())

Source from the content-addressed store, hash-verified

130}
131
132export 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
143export async function renderAndCheck(
144 node: HTMLDivElement = getCaptureNode(),

Callers

nothing calls this directly

Calls 2

toPngFunction · 0.90
getCaptureNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…