zone-patch-canvas.umd.js 753 B

123456789101112131415161718192021
  1. 'use strict';
  2. /**
  3. * @license Angular v<unknown>
  4. * (c) 2010-2022 Google LLC. https://angular.io/
  5. * License: MIT
  6. */
  7. (function (factory) {
  8. typeof define === 'function' && define.amd ? define(factory) :
  9. factory();
  10. })((function () {
  11. 'use strict';
  12. Zone.__load_patch('canvas', function (global, Zone, api) {
  13. var HTMLCanvasElement = global['HTMLCanvasElement'];
  14. if (typeof HTMLCanvasElement !== 'undefined' && HTMLCanvasElement.prototype &&
  15. HTMLCanvasElement.prototype.toBlob) {
  16. api.patchMacroTask(HTMLCanvasElement.prototype, 'toBlob', function (self, args) {
  17. return { name: 'HTMLCanvasElement.toBlob', target: self, cbIdx: 0, args: args };
  18. });
  19. }
  20. });
  21. }));