MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / captureWebGLCanvases

Function captureWebGLCanvases

components/download-card-button.tsx:55–69  ·  view source on GitHub ↗
(
  container: HTMLElement
)

Source from the content-addressed store, hash-verified

53}
54
55function captureWebGLCanvases(
56 container: HTMLElement
57): Map<HTMLCanvasElement, string> {
58 const captures = new Map<HTMLCanvasElement, string>();
59 const canvases = container.querySelectorAll("canvas");
60
61 for (const canvas of canvases) {
62 const dataUrl = captureWebGLToImage(canvas);
63 if (dataUrl) {
64 captures.set(canvas, dataUrl);
65 }
66 }
67
68 return captures;
69}
70
71export default function DownloadCardButton({
72 targetId,

Callers 1

DownloadCardButtonFunction · 0.85

Calls 1

captureWebGLToImageFunction · 0.85

Tested by

no test coverage detected