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

Function renderAndCheck

test/spec/helper.ts:143–148  ·  view source on GitHub ↗
(
  node: HTMLDivElement = getCaptureNode(),
  options: Options = {},
)

Source from the content-addressed store, hash-verified

141}
142
143export async function renderAndCheck(
144 node: HTMLDivElement = getCaptureNode(),
145 options: Options = {},
146) {
147 return toPng(node, options).then(check)
148}
149
150export function compareToRefImage(sourceData: ImageData, threshold = 0.1) {
151 const ref = getReferenceImage()

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…