You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
676 B

'use strict';
/**
* @license Angular
* (c) 2010-2025 Google LLC. https://angular.dev/
* License: MIT
*/
// packages/zone.js/lib/browser/canvas.js
function patchCanvas(Zone2) {
Zone2.__load_patch("canvas", (global, Zone3, api) => {
const HTMLCanvasElement = global["HTMLCanvasElement"];
if (typeof HTMLCanvasElement !== "undefined" && HTMLCanvasElement.prototype && HTMLCanvasElement.prototype.toBlob) {
api.patchMacroTask(HTMLCanvasElement.prototype, "toBlob", (self, args) => {
return { name: "HTMLCanvasElement.toBlob", target: self, cbIdx: 0, args };
});
}
});
}
// packages/zone.js/lib/browser/rollup-canvas.js
patchCanvas(Zone);