Skip to content

Commit 39f4e0a

Browse files
committed
oops comments
1 parent 69ee75e commit 39f4e0a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

packages/replay-canvas/src/canvas.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -114,25 +114,6 @@ export const _replayCanvasIntegration = ((options: Partial<ReplayCanvasOptions>
114114
const canvasManager = await _canvasManager;
115115

116116
canvasManager.snapshot(canvasElement, options);
117-
// createImageBitmap(canvasElement).then(async imageBitmap => {
118-
// // debug
119-
// const canvas = document.getElementById('test');
120-
// canvas.height = imageBitmap.height;
121-
// canvas.width = imageBitmap.width;
122-
// // temp1.getContext("2d").drawImage(bitmap, 0, 0);
123-
// // const canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height);
124-
// const ctx = canvas.getContext('2d');
125-
//
126-
// // Draw the ImageBitmap onto the canvas
127-
// ctx.drawImage(imageBitmap, 0, 0);
128-
//
129-
// // Convert the canvas content to a data URL (Base64 encoded PNG by default)
130-
// const dataURL = await canvas.toDataURL('image/webp'); // Specify format if needed
131-
//
132-
// console.log(dataURL);
133-
// canvasManager.snapshotBitmap(canvasElement, imageBitmap);
134-
// imageBitmap.close();
135-
// });
136117
},
137118
};
138119
}) satisfies IntegrationFn<ReplayCanvasIntegration>;

0 commit comments

Comments
 (0)