@glimt/record 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/record.cjs +6 -1
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +6 -1
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +6 -1
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +1 -1
- package/dist/record.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/record.umd.cjs
CHANGED
|
@@ -396,13 +396,18 @@ function toLowerCase(str) {
|
|
|
396
396
|
}
|
|
397
397
|
const ORIGINAL_ATTRIBUTE_NAME = "__rrweb_original__";
|
|
398
398
|
function is2DCanvasBlank(canvas) {
|
|
399
|
-
|
|
399
|
+
console.log("Creating context with willReadFrequently:", canvas);
|
|
400
|
+
const ctx = canvas.getContext("2d", {
|
|
401
|
+
willReadFrequently: true
|
|
402
|
+
});
|
|
400
403
|
if (!ctx) return true;
|
|
401
404
|
const chunkSize = 50;
|
|
402
405
|
for (let x2 = 0; x2 < canvas.width; x2 += chunkSize) {
|
|
403
406
|
for (let y = 0; y < canvas.height; y += chunkSize) {
|
|
404
407
|
const getImageData = ctx.getImageData;
|
|
405
408
|
const originalGetImageData = ORIGINAL_ATTRIBUTE_NAME in getImageData ? getImageData[ORIGINAL_ATTRIBUTE_NAME] : getImageData;
|
|
409
|
+
console.log("Calling getImageData on ctx:", ctx);
|
|
410
|
+
console.trace();
|
|
406
411
|
const pixelBuffer = new Uint32Array(
|
|
407
412
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
408
413
|
originalGetImageData.call(
|