File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
packages/replay-canvas/src Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff 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 > ;
You can’t perform that action at this time.
0 commit comments